JPH05334101A - Strength judging circuit - Google Patents

Strength judging circuit

Info

Publication number
JPH05334101A
JPH05334101A JP13849092A JP13849092A JPH05334101A JP H05334101 A JPH05334101 A JP H05334101A JP 13849092 A JP13849092 A JP 13849092A JP 13849092 A JP13849092 A JP 13849092A JP H05334101 A JPH05334101 A JP H05334101A
Authority
JP
Japan
Prior art keywords
input
strength
interrupt
circuit
sub
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.)
Granted
Application number
JP13849092A
Other languages
Japanese (ja)
Other versions
JP3150419B2 (en
Inventor
Teruaki Uehara
輝昭 上原
Junichi Tamura
純一 田村
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 JP13849092A priority Critical patent/JP3150419B2/en
Publication of JPH05334101A publication Critical patent/JPH05334101A/en
Application granted granted Critical
Publication of JP3150419B2 publication Critical patent/JP3150419B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To provide a circuit superior in expandability and capable of optionally increasing the number of input signals. CONSTITUTION:A strength judging circuit for judging the strength of plural interruptions and selecting which interruption is to be received is provided with plural interruption strength judging sub-circuits 1A to 1C each of which is prepared in each interruption to receive an interruption strength input 5, an overall interruption strength input 10, interruption generation input 18, and a overall interruption generation input 22 and output interruption reception output 25 and an overall interruption generation output 27 and a common circuit 2 for receiving respective outputs 19 from respective sub-circuits 1A to 1C and returning the largest strength value to respective sub-circuits 1A to 1C as an strength input 10. In the case of increasing the number of signals by cascade-connecting respective sub-circuits 1A to 1C, the number of sub-circuits is increased in accordance with the number of signals to be increased.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば割込み制御装置
において発生する割込み等の複数の入力信号の強度を判
定し、いずれの信号を受け付けるかを選択する強度判定
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an intensity determination circuit for determining the intensity of a plurality of input signals such as interrupts generated in an interrupt control device and selecting which signal is accepted.

【0002】[0002]

【従来の技術】近年、ディジタル・シグナル・プロセッ
サ(以下「DSP」という)は、その高性能化に伴い、
ディジタル信号処理技術に必要とされる高速数値演算を
行う高速数値演算処理専用プロセッサとして使用される
以外に、装置の制御を行う制御プロセッサとして使用さ
れる場合が増えている。
2. Description of the Related Art In recent years, digital signal processors (hereinafter referred to as "DSPs") have become higher in performance,
In addition to being used as a processor dedicated to high-speed numerical operation processing for performing high-speed numerical operation required for digital signal processing technology, it is increasingly used as a control processor for controlling an apparatus.

【0003】例えば、ディジタル移動体電話に使用され
るDSPでは、高速数値演算を必要とする音声の符号化
処理に加えて、音声の入力処理等も行っている。このよ
うな複数の処理を1個のプロセッサで無駄な処理を必要
とせずに実現する方法として割込み処理がある。そし
て、DSPにおいても割込み処理能力を持つものが一般
的となっている。この例としては、例えば「ADSP-2100
User's Manual ANALOG DEVICES社」等がある。
For example, a DSP used in a digital mobile telephone performs a voice input process and the like in addition to a voice encoding process which requires high-speed numerical calculation. There is an interrupt process as a method for realizing such a plurality of processes with one processor without needless processing. Also, a DSP having an interrupt processing capability is generally used. As an example of this, for example, "ADSP-2100
User's Manual ANALOG DEVICES, etc.

【0004】[0004]

【発明が解決しようとする課題】ところで、前記従来の
DSPの割込み処理能力では通常受け付ける割込み信号
の数が固定されている。この場合でも、これまではDS
Pが汎用LSIとして開発されているために問題になら
なかった。しかしながら、DSPがASIC(特定用途
向けIC)の演算、制御を実行する基本部分として大き
なLSIの一部に組み込まれるようになると、より多数
の割込み信号がDSPに接続されるようになる。このた
め、従来は問題とならなかった、受け付ける割込み信号
の数が固定されていることが大きな問題となっている。
By the way, in the interrupt processing capability of the conventional DSP, the number of interrupt signals normally accepted is fixed. Even in this case, until now DS
Since P was developed as a general-purpose LSI, there was no problem. However, if the DSP comes to be incorporated in a part of a large LSI as a basic part for performing arithmetic and control of an ASIC (application-specific IC), a larger number of interrupt signals will be connected to the DSP. For this reason, the fixed number of interrupt signals, which has not been a problem in the past, is a serious problem.

【0005】即ち、最初から多数の割込み信号が接続可
能なようにDSPを設計すると、接続する割込み信号の
数が少ない場合回路に無駄が発生し、DSPのコストを
押し上げる原因になる。これと逆に接続可能数が少ない
設計の場合には組み込む周辺回路の個数と種類に制限を
設けることになる。
That is, if the DSP is designed so that a large number of interrupt signals can be connected from the beginning, wasteful circuits will occur if the number of interrupt signals to be connected is small, which will increase the cost of the DSP. On the contrary, in the case of a design in which the connectable number is small, the number and types of peripheral circuits to be incorporated are limited.

【0006】本発明は以上の問題点に鑑みなされたもの
で、受け付ける割込み信号数等の入力信号数を固定せ
ず、入力信号の数を任意に拡張できる拡張性に優れた強
度判定回路を提供することを目的とする。
The present invention has been made in view of the above problems, and provides a strength determination circuit with excellent expandability that can arbitrarily expand the number of input signals without fixing the number of input signals such as the number of interrupt signals to be accepted. The purpose is to do.

【0007】[0007]

【課題を解決するための手段】本発明は前記課題を解決
するために、複数の入力信号に対してその強度を判定
し、いずれを受け付けるかを選択する強度判定回路にお
いて、各入力信号ごとに設けられ、受付許可用入力イネ
ーブル信号、全体入力強度信号、個別入力イネーブル信
号及び個別入力強度信号を受け、受付許可用出力イネー
ブル信号、全体出力強度信号及び個別受付け信号を出力
する複数のサブ強度判定回路と、各サブ強度判定回路か
らの全体出力強度信号をそれぞれ受けて最も強度の大き
な値を各サブ強度判定回路の全体入力強度信号として返
す共通回路とを備え、前記各サブ強度判定回路を、その
うちの一の回路から出力した受付許可用出力イネーブル
信号が他の回路の受付許可用入力イネーブル信号となる
ように直列に接続し、いずれか一つのサブ強度判定回路
のみをイネーブル状態にすることを特徴とする。
In order to solve the above-mentioned problems, the present invention provides a strength judgment circuit for judging the strength of a plurality of input signals and selecting which of them is to be received. A plurality of sub-strength judgments that are provided and receive the acceptance enable input enable signal, the overall input strength signal, the individual input enable signal and the individual input strength signal, and output the acceptance permission output enable signal, the overall output strength signal and the individual acceptance signal A circuit and a common circuit that receives the overall output intensity signal from each sub-intensity determination circuit and returns a value with the highest intensity as the overall input intensity signal of each sub-intensity determination circuit, each sub-intensity determination circuit, Connect in series so that the acceptance enable output enable signal output from one circuit becomes the acceptance enable input enable signal of the other circuit. Characterized by only the enable state any one of the sub-intensity determination circuit.

【0008】[0008]

【作用】以上の構成により、各サブ強度判定回路におい
ては、全体入力強度信号と個別入力強度信号とが比較さ
れ、個別入力強度信号が大きいとき受付許可用入力イネ
ーブル信号と個別入力イネーブル信号の入力を条件に入
力信号は受け付けられ、この個別入力強度信号が全体出
力強度信号として出力される。同時に受付許可用出力イ
ネーブル信号を不許可信号として他のサブ強度判定回路
に出力すると共に入力を受け付ける旨の個別受付け信号
を出力する。大きさが逆の場合には何も出力されない。
With the above configuration, in each sub-strength determination circuit, the overall input intensity signal is compared with the individual input intensity signal, and when the individual input intensity signal is large, the acceptance enable input enable signal and the individual input enable signal are input. The input signal is accepted under the condition of, and this individual input intensity signal is output as the overall output intensity signal. At the same time, the reception permission output enable signal is output as a non-permission signal to another sub-strength determination circuit, and an individual acceptance signal for accepting the input is output. If the sizes are opposite, nothing is output.

【0009】各サブ強度判定回路の全体出力強度信号は
共通回路にそれぞれ入力し、この共通回路によって最も
大きな強度の全体出力強度信号が各サブ強度判定回路に
全体入力強度信号として入力する。
The overall output intensity signal of each sub-strength determination circuit is input to the common circuit, and the overall output intensity signal of the highest intensity is input to each sub-strength determination circuit as the overall input intensity signal by this common circuit.

【0010】これにより、各サブ強度判定回路では前記
共通回路からの全体入力強度信号以上の大きさの個別入
力強度信号しか受け付けなくなる。従って他のサブ強度
判定回路においてこの全体入力強度信号よりも大きな個
別入力強度信号が入力したとき、全体出力強度信号とし
て共通回路に入力し、各サブ強度判定回路に全体入力強
度信号として入力する。この全体入力強度信号の入力に
より、それまで受け付けられていた入力信号は受け付け
られなくなり、代って前記大きな個別入力強度信号が受
け付けられる。
As a result, each sub-strength determination circuit can accept only an individual input strength signal having a magnitude larger than the total input strength signal from the common circuit. Therefore, when an individual input intensity signal larger than the overall input intensity signal is input to the other sub-intensity determination circuits, it is input to the common circuit as the overall output intensity signal and is input to each sub-intensity determination circuit as the overall input intensity signal. Due to the input of this overall input intensity signal, the input signal that has been accepted until then is no longer accepted, and instead the large individual input intensity signal is accepted.

【0011】[0011]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。なお、本実施例においては強度判定
回路として割込み処理の強度を判定する割込み強度判定
回路を例に説明する。図1は本実施例の割込み強度判定
回路を示すブロック図、図2はサブ割込み強度判定回路
の構成の一例を示す論理回路図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. In the present embodiment, an interrupt strength determination circuit that determines the strength of interrupt processing will be described as an example of the strength determination circuit. FIG. 1 is a block diagram showing an interrupt strength judgment circuit of this embodiment, and FIG. 2 is a logic circuit diagram showing an example of a configuration of a sub-interruption strength judgment circuit.

【0012】本実施例の割込み強度判定回路は、図1に
示すように、入力信号としての割込み信号ごとにそれぞ
れ設けられるサブ割込み強度判定回路(以下「サブ回
路」という)1A,1B,…と、これら各サブ回路1
A,1B,…がそれぞれ並列に接続され複数の割込みに
対しそれらの強度を比較する共通回路2とから構成され
ている。
As shown in FIG. 1, the interrupt strength judging circuit of this embodiment has sub-interrupt strength judging circuits (hereinafter referred to as "sub-circuits") 1A, 1B, ... Provided for each interrupt signal as an input signal. , Each of these sub-circuits 1
, A, 1B, ... Are connected in parallel, respectively, and are composed of a common circuit 2 for comparing the intensities of a plurality of interrupts.

【0013】サブ回路1A,1B,…は1割込み信号に
対し1回路ずつ設けられ、割込み信号の数に合せて任意
に増設する。共通回路2はサブ回路1A,1B,…の接
続個数に関係なく、割込み強度判定回路は接続された個
数分の割込み信号を持つ判定回路となる。この場合の共
通回路2としては例えば多数の入力端子を有するOR回
路を用い、サブ回路1A,1B,…に接続されない端子
は常時Hレベルに固定しておく。
The sub-circuits 1A, 1B, ... Are provided for each interrupt signal one by one, and the number of interrupt signals can be increased according to the number of interrupt signals. In the common circuit 2, regardless of the number of sub-circuits 1A, 1B, ... Connected, the interrupt strength determination circuit is a determination circuit that has the number of connected interrupt signals. As the common circuit 2 in this case, for example, an OR circuit having a large number of input terminals is used, and the terminals which are not connected to the sub-circuits 1A, 1B, ... Are always fixed at H level.

【0014】前記各サブ回路1A,1B,…はそれぞれ
共通の構成を有し、割込み強度計算ブロックと割込み受
付け計算ブロックに分れて動作する。
Each of the sub-circuits 1A, 1B, ... Has a common structure and operates by being divided into an interrupt strength calculation block and an interrupt acceptance calculation block.

【0015】割込み強度計算ブロックでは、サブ回路1
A,1B,…に対応する割込みが発生しているとき、発
生した割込みが持つ個別割込み強度と全体割込み強度と
を比較する。この比較により、発生した割込みが持つ割
込み強度の方が大きいときは全体割込み強度出力に対し
て発生した割込みが持つ割込み強度を出力する。また、
発生した割込みが持つ割込み強度が全体割込み強度入力
以下ならば何も出力しない。
In the interrupt strength calculation block, the subcircuit 1
When an interrupt corresponding to A, 1B, ... Is generated, the individual interrupt strength of the generated interrupt is compared with the total interrupt strength. By this comparison, when the generated interrupt has a higher interrupt strength, the interrupt strength of the generated interrupt is output with respect to the overall interrupt strength output. Also,
If the interrupt strength of the generated interrupt is less than or equal to the overall interrupt strength input, nothing is output.

【0016】割込み受付け計算ブロックでは、全体割込
み発生入力がディスエブル状態で前記割込み強度計算ブ
ロックが割込み強度を出力しているとき、割込み受付を
イネーブルにする。全体割込み発生入力がディスエブル
であるときは、割込み受付をイネーブルにし、全体割込
み発生出力をイネーブルにする。それ以外のときは割込
み受付をディスエブルにし、全体割込み発生出力に全体
割込み発生入力と等しい信号を流す。
The interrupt acceptance calculation block enables interrupt acceptance when the overall interrupt generation input is disabled and the interrupt strength calculation block outputs the interrupt strength. When the general interrupt generation input is disabled, the interrupt acceptance is enabled and the general interrupt generation output is enabled. In other cases, interrupt acceptance is disabled and the same signal as the overall interrupt generation input is sent to the overall interrupt generation output.

【0017】このサブ回路1A,1B,…の具体的構成
例を図2に基づいて説明する。なお、各サブ回路1A,
1B,…はすべて同じ構成となっている。
A specific configuration example of the sub-circuits 1A, 1B, ... Will be described with reference to FIG. In addition, each sub-circuit 1A,
1B, ... Have the same configuration.

【0018】個別入力強度信号としての割込み強度入力
5は複数の強度信号(本実施例では3つの強度1,2,
3)から構成される。各強度1,2,3の入力信号は3
つのAND回路6,7,8にそれぞれ入力される。全体
入力強度信号としての全体割込み強度入力10は割込み
強度入力5に対応して3つの強度2,3,4の信号から
構成される。各強度2,3,4の入力信号は各反転回路
11,12,13を介して前記各AND回路6,7,8
にそれぞれ入力される。具体的には、第1AND回路6
には割込み強度入力5の強度1と全体割込み強度入力1
0の各強度2,3,4とが入力される。第2AND回路
7には割込み強度入力5の強度2と全体割込み強度入力
10の各強度3,4とが入力される。第3AND回路8
には割込み強度入力5の強度3と全体割込み強度入力1
0の強度4とが入力される。
The interrupt strength input 5 as an individual input strength signal is a plurality of strength signals (in this embodiment, three strengths 1, 2,
3). Input signal of each intensity 1, 2, 3 is 3
It is input to each of the AND circuits 6, 7 and 8. The total interrupt strength input 10 as a total input strength signal is composed of three strength 2, 3 and 4 signals corresponding to the interrupt strength input 5. The input signals of the intensities 2, 3 and 4 are passed through the inversion circuits 11, 12 and 13 to the AND circuits 6, 7, 8 respectively.
Are input respectively. Specifically, the first AND circuit 6
For interrupt strength input 5 strength 1 and overall interrupt strength input 1
The respective intensities 2, 3, and 4 of 0 are input. The strength 2 of the interrupt strength input 5 and the strengths 3 and 4 of the overall interrupt strength input 10 are input to the second AND circuit 7. Third AND circuit 8
For interrupt strength input 5 strength 3 and overall interrupt strength input 1
An intensity of 4 and 0 is entered.

【0019】全体割込み強度入力10においては、例え
ば割込み強度入力5の強度1以上を受け付ける場合は全
体割込み強度入力10の各強度2,3,4をすべて
“L”とする。これにより、各AND回路6,7,8に
は各反転回路11,12,13で反転した“H”が入力
し、割込み強度入力5の各強度1,2,3のいずれが入
力してもその入力したAND回路6,7,8が“H”を
出力する。例えば割込み強度入力5の強度2以上を受け
付ける場合は全体割込み強度入力10の強度2を“H”
に、強度3,4を“L”とする。これにより、第1AN
D回路6には全体割込み強度入力10の強度2により
“L”が入力し、他のAND回路7,8には“H”が入
力する。そして、割込み強度入力5の強度1が第1AN
D回路6に入力しても、このAND回路6には全体割込
み強度入力10の強度2により“L”が入力しているた
め、“L”を出力し、受け付けられない。割込み強度入
力5の強度2,3がAND回路7,8に入力した場合
は、全体割込み強度入力10の強度3,4によってとも
に“H”が入力しているため割込み強度入力5の強度
2,3のいずれが入力しても各AND回路7,8は
“H”を出力する。以上の構成により、割込み強度計算
ブロックが構成されている。
In the overall interrupt strength input 10, for example, when the strength 1 or more of the interrupt strength input 5 is accepted, all the strengths 2, 3 and 4 of the overall interrupt strength input 10 are set to "L". As a result, "H" inverted by the inverting circuits 11, 12, 13 is input to the AND circuits 6, 7, 8 and any of the intensities 1, 2, 3 of the interrupt intensity input 5 is input. The input AND circuits 6, 7, and 8 output "H". For example, if the strength 2 of the interrupt strength input 5 or more is accepted, the strength 2 of the overall interrupt strength input 10 is set to “H”.
Then, the strengths 3 and 4 are set to "L". As a result, the first AN
"L" is input to the D circuit 6 by the strength 2 of the overall interrupt strength input 10, and "H" is input to the other AND circuits 7 and 8. The strength 1 of the interrupt strength input 5 is the first AN.
Even if input to the D circuit 6, since "L" is input to the AND circuit 6 due to the strength 2 of the overall interrupt strength input 10, "L" is output and cannot be accepted. When the strengths 2 and 3 of the interrupt strength input 5 are input to the AND circuits 7 and 8, "H" is input to both of the strengths 3 and 4 of the overall interrupt strength input 10, so that the strength 2 of the interrupt strength input 5 is 2. The AND circuits 7 and 8 output "H" regardless of which of the three is input. The above configuration constitutes the interrupt strength calculation block.

【0020】第1〜3AND回路6,7,8の出力は第
4〜6AND回路15,16,17にそれぞれ入力され
る。さらに、各AND回路15,16,17には個別入
力イネーブル信号としての割込み発生18が入力され
る。これにより、割込み発生18が“H”のときに各A
ND回路6,7,8のいずれかが“H”を出力すると、
その出力が全体出力強度信号としての全体割込み強度出
力19として共通回路2に出力される。さらに、各AN
D回路15,16,17の出力は第1OR回路20に入
力しており、いずれかのAND回路15,16,17が
“H”を出力すると、第1OR回路20が“H”を出力
するようになっている。この第1OR回路20の出力は
第7AND回路21に入力される。さらに、共通回路2
から出力される受付許可用入力イネーブル信号としての
全体割込み発生入力22も反転回路23を介して第7A
ND回路21に入力される。この第7AND回路21の
出力は、個別受付け信号としての割込み受付25となる
と共に第2OR回路26に入力される。さらに、この第
2OR回路26には前記全体割込み発生入力22が入力
される。この第2OR回路26からの出力は受付許可用
出力イネーブル信号としての全体割込み発生出力27と
なる。
The outputs of the first to third AND circuits 6, 7 and 8 are input to the fourth to sixth AND circuits 15, 16 and 17, respectively. Further, an interrupt generation 18 as an individual input enable signal is input to each AND circuit 15, 16 and 17. As a result, when the interrupt generation 18 is "H", each A
When any of the ND circuits 6, 7, and 8 outputs "H",
The output is output to the common circuit 2 as the overall interrupt strength output 19 as the overall output strength signal. Furthermore, each AN
The outputs of the D circuits 15, 16 and 17 are input to the first OR circuit 20, and when any one of the AND circuits 15, 16 and 17 outputs "H", the first OR circuit 20 outputs "H". It has become. The output of the first OR circuit 20 is input to the seventh AND circuit 21. Furthermore, the common circuit 2
The entire interrupt generation input 22 as an acceptance enable input enable signal output from the
It is input to the ND circuit 21. The output of the seventh AND circuit 21 serves as an interrupt acceptance 25 as an individual acceptance signal and is input to the second OR circuit 26. Further, the overall interrupt generation input 22 is input to the second OR circuit 26. The output from the second OR circuit 26 becomes the overall interrupt generation output 27 as the reception enable output enable signal.

【0021】以上により、割込み受付け計算ブロックが
構成されている。
An interrupt acceptance calculation block is configured as described above.

【0022】全体割込み発生入力22として不許可を示
す“H”が入力すると、反転回路23で反転され“L”
として第7AND回路21に入力し、各AND回路1
5,16,17のいずれかから“H”が出力していても
割込み受付25として“L”を出力する。この割込み受
付25としての“L”は全体割込み発生入力22が
“H”のため受け付けられない旨又は現在受け付けてい
る割込み処理がない旨を示す。これと同時に第2OR回
路26ではその一方に“H”が入力しているため全体割
込み発生出力27は不許可を示す“H”のままとなる。
When "H" indicating non-permission is input as the overall interrupt generation input 22, it is inverted by the inversion circuit 23 and becomes "L".
Is input to the seventh AND circuit 21 as
Even if "H" is output from any one of 5, 16, and 17, "L" is output as the interrupt acceptance 25. "L" as the interrupt acceptance 25 indicates that the entire interrupt generation input 22 is "H" and thus cannot be accepted or that there is no interrupt process currently accepted. At the same time, since "H" is input to one of the second OR circuits 26, the overall interrupt generation output 27 remains "H" indicating non-permission.

【0023】ここで全体割込み発生入力22とは、特に
第1サブ回路1Aに入力し、3つ接続されたサブ回路1
A,1B,…全体のイネーブル状態を制御する信号をい
うが、便宜上各サブ回路1A,1B,…においてすべて
同一名称とする。第1サブ回路1Aから出力する全体割
込み発生出力27が次の第2サブ回路1Bの全体割込み
発生入力22となる。第3サブ回路1Cにおいても同様
である。このように、各サブ回路1A,1B,…は全体
割込み発生入力22に対して直列に接続されている。こ
の各サブ回路1A,1B,…は互いに直列に接続された
状態で共通回路2に対して並列に接続されている。これ
により、第1サブ回路1Aに入力する全体割込み発生入
力22が“H”となると、他のサブ回路1B,1Cの全
体割込み発生入力22はすべて“H”となり、割込み強
度判定回路全体が不許可となる。第サブ回路1Aで受け
付ける割込みがなく、第2サブ回路1Bで割込みが発生
した場合も同様に、第3サブ回路1Cの全体割込み発生
入力22が“H”となる。即ち、いずれか1つのサブ回
路1A,1B,…のみをイネーブル状態にする。
Here, the total interrupt generation input 22 is particularly input to the first sub-circuit 1A, and three sub-circuits 1 connected to each other are input.
A signal for controlling the enable state of the entire A, 1B, ... Is given the same name for convenience in each of the sub-circuits 1A, 1B ,. The overall interrupt generation output 27 output from the first sub circuit 1A becomes the overall interrupt generation input 22 of the next second sub circuit 1B. The same applies to the third sub circuit 1C. As described above, each of the sub-circuits 1A, 1B, ... Is connected in series to the overall interrupt generation input 22. The sub-circuits 1A, 1B, ... Are connected in parallel to the common circuit 2 while being connected in series. As a result, when the total interrupt generation input 22 input to the first sub-circuit 1A becomes "H", all the total interrupt generation inputs 22 of the other sub-circuits 1B and 1C become "H", and the entire interrupt strength judgment circuit becomes ineffective. It will be a permit. Similarly, when there is no interrupt accepted by the third sub-circuit 1A and an interrupt occurs in the second sub-circuit 1B, the overall interrupt generation input 22 of the third sub-circuit 1C becomes "H". That is, only one of the sub-circuits 1A, 1B, ... Is enabled.

【0024】一方、全体割込み発生入力22として許可
を示す“L”を入力すると、第7AND回路21に
“H”が入力し、各AND回路15,16,17のいず
れかから“H”が出力していれば、割込み受付25とし
て割込みを受け付けた旨の“H”が出力すると共に以下
のサブ回路1B,1Cを同時に作動させないように全体
割込み発生出力27として不許可を示す“H”を出力す
る。なお、図1中の30は各サブ回路1A,1B,…の
いずれかに割込みが発生したか否かを知らせる出力であ
る。
On the other hand, when "L" indicating permission is input as the overall interrupt generation input 22, "H" is input to the seventh AND circuit 21, and "H" is output from any one of the AND circuits 15, 16 and 17. If so, "H" indicating that the interrupt is accepted is output as the interrupt acceptance 25, and "H" indicating non-permission is output as the overall interrupt generation output 27 so that the following sub-circuits 1B and 1C are not simultaneously operated. To do. Reference numeral 30 in FIG. 1 is an output for informing whether or not an interrupt has occurred in any of the sub-circuits 1A, 1B, ....

【0025】共通回路2は、例えば3つのOR回路から
構成される。前記各AND回路15,16,17からの
強度1,2,3がそれぞれ3つのOR回路に入力され
る。即ち、1つのOR回路には各サブ回路1A,1B,
…からの全体割込み強度出力19のうち強度1がそれぞ
れ入力される。他のOR回路にはそれぞれ強度2のすべ
て及び強度3のすべてがそれぞれ入力される。そして、
各サブ回路1A,1B,…のいずれかの全体割込み強度
出力19のうち、強度1,2,3のいずれかが“H”に
なると、それに対応した共通回路2内のOR回路が
“H”になり、その強度を全体割込み強度入力10とし
て各サブ回路1A,1B,…に入力させる。
The common circuit 2 is composed of, for example, three OR circuits. The intensities 1, 2 and 3 from the AND circuits 15, 16 and 17 are input to the three OR circuits, respectively. That is, one OR circuit includes each sub circuit 1A, 1B,
The strength 1 of the total interrupt strength outputs 19 from ... is input respectively. All of the strengths 2 and 3 are input to the other OR circuits. And
When one of the intensities 1, 2 and 3 of the overall interrupt intensity output 19 of any one of the sub-circuits 1A, 1B, ... Becomes "H", the OR circuit in the common circuit 2 corresponding to that becomes "H". Then, the strength is input to each sub-circuit 1A, 1B, ...

【0026】例えばサブ回路1A,1B,…のいずれか
において全体割込み強度出力19として強度2が出力さ
れると、それに対応した共通回路2内のOR回路が
“H”を出力する。これにより、全体割込み強度入力1
0は強度2が“H”となり、前記同様の作用により割込
み強度入力5の強度2以上を受け付ける。また、強度の
等しい割込みが発生した場合、第1サブ回路1Aに近い
割込みが優先される。
For example, when the strength 2 is output as the overall interrupt strength output 19 in any of the sub-circuits 1A, 1B, ..., The corresponding OR circuit in the common circuit 2 outputs "H". This allows the overall interrupt strength input 1
For 0, the intensity 2 becomes “H”, and the intensity 2 or more of the interrupt intensity input 5 is accepted by the same operation as described above. Further, when interrupts having the same intensity are generated, the interrupt close to the first sub circuit 1A is prioritized.

【0027】第1サブ回路1Aに入力する全体割込み発
生入力22は、通常“L”(許可)となっている。この
全体割込み発生入力22が“H”になるのは、割込み処
理装置(図示せず)が割込み処理を受入れられない状態
になっているとき、例えば割込み処理が不可能なときや
装置に割込み処理能力がないときである。さらに、割込
み処理機能を使用しない場合にも全体割込み発生入力2
2を“H”にしておく。なお、この全体割込み発生入力
22が“H”のとき“L”のときに関係なく割込み強度
入力5の選択は常時行われる。
The overall interrupt generation input 22 input to the first sub-circuit 1A is normally "L" (permitted). The overall interrupt generation input 22 becomes "H" when the interrupt processing device (not shown) is in a state in which it cannot accept the interrupt processing, for example, when interrupt processing is impossible or when the interrupt processing is performed by the device. It is when there is no ability. Furthermore, even if the interrupt processing function is not used, the entire interrupt generation input 2
Set 2 to "H". The interrupt intensity input 5 is always selected regardless of whether the overall interrupt generation input 22 is "H" or "L".

【0028】割込み強度判定回路全体の作用としては次
のようになる。
The operation of the whole interrupt strength judgment circuit is as follows.

【0029】全体割込み強度入力10の各強度2,3,
4がすべて“L”となっている状態において、例えばい
ずれかのサブ回路1A,1B,…の割込み強度入力5の
強度1が“H”となり全体割込み強度出力19の強度1
が“H”を出力して、入力信号が受け付けられている場
合を考える。このとき他のサブ回路1A,1B,…にお
いて例えば割込み強度入力5の強度3が“H”になる
と、この強度3は受け付けられ第6AND回路17から
“H”を出力する。この強度3の“H”により共通回路
2で全体割込み強度入力10の強度3が“H”となり、
反転回路12を介して第1AND回路6及び第2AND
回路7に“L”が入力される。これにより、それまで受
け付けられていた割込み強度入力5の強度1は受け付け
られなくなり、代りに強度3の割込み要求が受け付けら
れる。同時にそのサブ回路1A,1B,…から割込みを
受け付けた旨の“H”が割込み受付25として出力する
と共に全体割込み発生出力27として“H”が出力し、
他のサブ回路1A,1B,…をディスエブル状態にす
る。
Total interrupt strength input 10 strengths 2, 3,
When all 4 are "L", for example, the strength 1 of the interrupt strength input 5 of any one of the sub-circuits 1A, 1B, ... Becomes "H" and the strength 1 of the overall interrupt strength output 19
Outputs "H" and the input signal is accepted. At this time, for example, when the strength 3 of the interrupt strength input 5 becomes "H" in the other sub-circuits 1A, 1B, ..., The strength 3 is accepted and the sixth AND circuit 17 outputs "H". By the "H" of the strength 3, the strength 3 of the whole interrupt strength input 10 becomes "H" in the common circuit 2,
The first AND circuit 6 and the second AND circuit via the inverting circuit 12
“L” is input to the circuit 7. As a result, the strength 1 of the interrupt strength input 5 that has been accepted until then is not accepted, and instead, the interrupt request of the strength 3 is accepted. At the same time, "H" indicating that an interrupt is accepted from the sub-circuits 1A, 1B, ... Is output as the interrupt acceptance 25 and "H" is output as the overall interrupt generation output 27.
The other sub-circuits 1A, 1B, ... Are put in the disable state.

【0030】このように割込み要求の選択は常に行われ
ており、現在処理中の割込み処理よりも強度の強い割込
み要求があると、その都度受け付ける割込み処理を代え
ていく。そして、その処理が終わると、それまで中断し
ていた処理を再開する。
In this way, the interrupt request is always selected, and if there is an interrupt request having a stronger intensity than the interrupt process currently being processed, the interrupt process accepted each time is replaced. Then, when the processing is completed, the processing interrupted until then is restarted.

【0031】ここで、全体割込み強度入力10の強度4
は割込み強度入力5の各強度1,2,3をすべて受け付
けないようにするための入力で、この強度4が“H”と
なると、反転回路13により“L”となって各AND回
路6,7,8に入力し、割込み強度入力5すべてを受け
付けなくなる。
Here, the strength of the total interrupt strength input 10 is 4
Is an input for not accepting all the intensities 1, 2, and 3 of the interrupt intensity input 5. When the intensity 4 becomes "H", the inverting circuit 13 makes it "L" and each AND circuit 6 ,. Input to 7 and 8 and stop accepting all interrupt strength inputs 5.

【0032】以上のように作用する本実施例の割込み強
度判定回路において、割込み強度入力5を増加する場合
は、サブ回路1A,1B,…を、増加する割込みの数に
合せて増設する。
In the interrupt strength judgment circuit of the present embodiment which operates as described above, when the interrupt strength input 5 is increased, the sub-circuits 1A, 1B, ... Are added according to the increasing number of interrupts.

【0033】これにより拡張性に優れた割込み強度判定
回路が実現できる。
This makes it possible to realize an interrupt strength judgment circuit having excellent expandability.

【0034】さらに、サブ回路1A,1B,…は必要な
割込み信号の数と同数だけ用意すればよく、ASIC用
に開発されるDSPに最適である。
Further, the sub-circuits 1A, 1B, ... Must be prepared in the same number as the required number of interrupt signals, and are optimal for the DSP developed for ASIC.

【0035】なお、前記実施例において、割込み強度に
関しては符号化された数値でも問題はないが、共通回路
を簡単にするために、デコードされた信号を使用する。
このため、例えば強度2ならば強度2と書かれた信号が
“1”となる。このとき共通回路2は3入力のOR回路
3個で構成される。
In the above embodiment, the coded numerical value is not a problem for the interrupt strength, but the decoded signal is used in order to simplify the common circuit.
Therefore, for example, if the intensity is 2, the signal written as the intensity 2 becomes "1". At this time, the common circuit 2 is composed of three 3-input OR circuits.

【0036】また、共通回路2としてはワイアードOR
を使用することもできる。このワイアードORを使用す
ることにより、共通回路2は配線の接続だけとなり、理
論素子が不要となる。
The common circuit 2 is a wired OR.
Can also be used. By using this wired OR, the common circuit 2 only has wiring connections, and a theoretical element is not required.

【0037】また、割込み強度入力5の数を3つにした
が、4つ以上でもよく、この場合にはその数に合せて共
通回路2に内蔵されるOR回路の数を増設することにな
る。割込み強度入力5の強度も前記実施例のように強度
1,2,3に限らず、他の強度に設定することができ
る。
Although the number of the interrupt strength inputs 5 is three, it may be four or more, and in this case, the number of OR circuits built in the common circuit 2 is increased according to the number. .. The strength of the interrupt strength input 5 is not limited to the strengths 1, 2 and 3 as in the above embodiment, but can be set to another strength.

【0038】[0038]

【発明の効果】以上詳述したように、本発明の割込み強
度判定回路によれば、入力信号の数に合せてサブ強度判
定回路を増設し、拡張するようにしたので、拡張性に優
れた割込み強度判定回路を実現することができるように
なる。
As described in detail above, according to the interrupt strength judgment circuit of the present invention, the sub strength judgment circuit is added and expanded in accordance with the number of input signals, so that it has excellent expandability. The interrupt strength judgment circuit can be realized.

【0039】サブ強度判定回路は必要な割込み信号の数
と同数だけ用意すればよいため、ASIC用に開発され
るDSPに最適である。
Since it is necessary to prepare the same number of sub-strength determination circuits as the number of required interrupt signals, it is most suitable for the DSP developed for ASIC.

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

【図1】本発明に係る割込み強度判定回路を示すブロッ
ク図である。
FIG. 1 is a block diagram showing an interrupt strength determination circuit according to the present invention.

【図2】サブ割込み強度判定回路の構成の一例を示す論
理回路図である。
FIG. 2 is a logic circuit diagram showing an example of a configuration of a sub-interruption strength determination circuit.

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

1A,1B,1C サブ回路 2 共通回路 5 割込み強度入力 10 全体割込み強度入力 19 全体割込み強度出力 22 全体割込み発生入力 25 割込み受付 27 全体割込み発生出力 1A, 1B, 1C Sub-circuit 2 Common circuit 5 Interrupt strength input 10 Overall interrupt strength input 19 Overall interrupt strength output 22 Overall interrupt generation input 25 Interrupt acceptance 27 Overall interrupt generation output

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数の入力信号に対してその強度を判定
し、いずれを受け付けるかを選択する強度判定回路にお
いて、 各入力信号ごとに設けられ、受付許可用入力イネーブル
信号、全体入力強度信号、個別入力イネーブル信号及び
個別入力強度信号を受け、受付許可用出力イネーブル信
号、全体出力強度信号及び個別受付け信号を出力する複
数のサブ強度判定回路と、 各サブ強度判定回路からの全体出力強度信号をそれぞれ
受けて最も強度の大きな値を各サブ強度判定回路の全体
入力強度信号として返す共通回路とを備え、 前記各サブ強度判定回路を、そのうちの一の回路から出
力した受付許可用出力イネーブル信号が他の回路の受付
許可用入力イネーブル信号となるように直列に接続し、
いずれか一つのサブ強度判定回路のみをイネーブル状態
にすることを特徴とする強度判定回路。
1. An intensity determination circuit for determining the intensities of a plurality of input signals and selecting which is to be accepted, which is provided for each input signal, and has an acceptance enable input enable signal, an overall input intensity signal, Receives the individual input enable signal and the individual input strength signal and outputs the acceptance enable output enable signal, the overall output strength signal and the individual acceptance signal, and the sub strength judgment circuits and the total output strength signal from each sub strength judgment circuit. And a common circuit that receives the largest value and returns as a whole input strength signal of each sub-strength judgment circuit, each sub-strength judgment circuit outputs an acceptance enable output enable signal from one of the circuits. Connect in series so as to be the input enable signal for acceptance permission of other circuits,
A strength judgment circuit characterized in that only one of the sub strength judgment circuits is enabled.
JP13849092A 1992-05-29 1992-05-29 Strength judgment circuit Expired - Fee Related JP3150419B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13849092A JP3150419B2 (en) 1992-05-29 1992-05-29 Strength judgment circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13849092A JP3150419B2 (en) 1992-05-29 1992-05-29 Strength judgment circuit

Publications (2)

Publication Number Publication Date
JPH05334101A true JPH05334101A (en) 1993-12-17
JP3150419B2 JP3150419B2 (en) 2001-03-26

Family

ID=15223325

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13849092A Expired - Fee Related JP3150419B2 (en) 1992-05-29 1992-05-29 Strength judgment circuit

Country Status (1)

Country Link
JP (1) JP3150419B2 (en)

Also Published As

Publication number Publication date
JP3150419B2 (en) 2001-03-26

Similar Documents

Publication Publication Date Title
JPS61239327A (en) Overflow detecting system
US5161229A (en) Central processing unit
JP3150419B2 (en) Strength judgment circuit
US6339835B1 (en) Pseudo-anding in dynamic logic circuits
JPH01304564A (en) Single chip microcomputer
JP3525582B2 (en) Bit operation circuit
JP2001344100A (en) Central processing unit having a plurality of flag registers
JP2553175B2 (en) Overflow detection circuit
WO2004066150A1 (en) Interrupt control method and interrupt control device
JPH0198046A (en) Integrated circuit for control of cache memory
JPH01307853A (en) Test circuit for semiconductor device
JPS63211438A (en) Interruption control circuit
JPH0241552A (en) Interrupt control system
JPS59211137A (en) Comparison system
JP3231416B2 (en) Arithmetic circuit and data processor using the same
JP3110072B2 (en) Pre-normalization circuit
JPH05143320A (en) Floating point arithmetic method and floating point arithmetic unit
JPH0651870A (en) Reset circuit
JP2004054334A (en) Saturation operation circuit
JPH0254333A (en) Value comparator
JPH07182279A (en) Bus arbitration circuit
JPS63296139A (en) Interruption control circuit
JPH08147175A (en) Interrupt control device
JPH0318925A (en) Arithmetic circuit
JPH07141288A (en) Dma transfer system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees