JPH01200439A - Priority processing circuit for unaccepted request - Google Patents

Priority processing circuit for unaccepted request

Info

Publication number
JPH01200439A
JPH01200439A JP2378988A JP2378988A JPH01200439A JP H01200439 A JPH01200439 A JP H01200439A JP 2378988 A JP2378988 A JP 2378988A JP 2378988 A JP2378988 A JP 2378988A JP H01200439 A JPH01200439 A JP H01200439A
Authority
JP
Japan
Prior art keywords
circuit
request
register
output
requests
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2378988A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Kameyama
亀山 一好
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2378988A priority Critical patent/JPH01200439A/en
Publication of JPH01200439A publication Critical patent/JPH01200439A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accept an unaccepted request with priority by masking the request received from a unit that already accepted a request and accepting and taking out only the requests having the lower ranks than that of the request accepted in the preceding time. CONSTITUTION:An input signal 31 is supplied to an AND circuit 32 which masks the requests given from the unit that is accepted the requests received up to the preceding time within a cycle out of the requests received this time and also to an AND circuit 33 which takes out only those requests having lower ranks than that of the preceding request accepted. Furthermore, the contents 35 of a 1st register 34 storing the information showing the specific units which requests are accepted down to the preceding time within a cycle are supplied to the circuit 32. In the same way, the contents 37 of a 2nd register 36 which holds the mask information for acceptance of only those requests lower than that requested in the preceding time are supplied to the register 33. In such a constitution, the requests given from the units that are not accepted down to the preceding time within a cycle can be accepted with prior ity.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、優先順位決定制御に係わり、特にダイナミッ
クな優先順位を決定制御する未受付要求優先回路に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to priority determination control, and more particularly to an unaccepted request priority circuit that dynamically determines and controls priorities.

〔従来の技術〕[Conventional technology]

コンピュータの高速化に伴い、必要な時点でその必要な
機能を発揮させる、いわゆる割込処理はコンピュータの
効率的な運用に不可欠である。このような割り込みが多
数で同時に生じたときは、優先1頃位(プライオリティ
)の高いものから順次に割込処理が行われる。この場合
には優先順位決定回路が用いられ、割り込みの優先順位
を決定している。
As computers become faster, so-called interrupt processing, which enables the required functions to be performed at the required time, is essential for efficient computer operation. When a large number of such interrupts occur at the same time, interrupt processing is performed sequentially starting from the one with the highest priority. In this case, a priority determination circuit is used to determine the priority of interrupts.

第3図はごのような優先順位決定回路の従来例を示した
ものであり、第4図はその動作を説明するものである。
FIG. 3 shows a conventional example of a priority determining circuit such as this, and FIG. 4 explains its operation.

ここでは話しを簡単にするため、入力信号11は4ビツ
トにしである。この入力信号11は、4ビツトを2ビツ
トに変換する(4→2)プライオリティエンコーダ12
に、4ビツトの入力信号11の中の複数の要求ビットの
中から最高位を選択し、出力するもので、一般の4→2
エンコーダの動作と同じものである。この従来例では、
優先順位は固定されている。2ビツトに符号化されたこ
のプライオリティエンコーダ12の出力信号13は、こ
の2ビツトを4ビツトにデコードするデコーダ14に入
力される。このデコーダ14は、一般の2ビツトから4
ビツトに変換する(2→4)デコーダと同じものである
。このデコーダ13から、デコードされた2ビツトの出
力信号14が与えられる。
Here, for the sake of simplicity, the input signal 11 is set to 4 bits. This input signal 11 is sent to a priority encoder 12 that converts 4 bits into 2 bits (4→2).
It selects and outputs the highest order bit from among the plurality of required bits in the 4-bit input signal 11.
This is the same operation as an encoder. In this conventional example,
Priorities are fixed. The output signal 13 of the priority encoder 12 encoded into 2 bits is input to a decoder 14 which decodes the 2 bits into 4 bits. This decoder 14 converts from general 2 bits to 4 bits.
It is the same as the (2→4) decoder that converts to bits. This decoder 13 provides a decoded 2-bit output signal 14.

この従来の1憂先順位決定回路の動作を第4図にしたが
って説明する。この図は受付要求を決定する表で、入力
信号11、すなわち受け付けた要求の種類にしたがって
ケース■〜■の6通りに分けである。高→低は、プライ
オリティエンコーダ12の入力端子の優先順位21が左
から右に低く、固定されていることを示している。入力
信号11は、例えばケース■の場合は1000の4ビッ
ト配列をなし、したがって1番1憂先順位の高い一番目
のビットが選択される位置22(表の矢印)になる。他
のケース■〜■の場合も同様である。
The operation of this conventional first priority ranking determination circuit will be explained with reference to FIG. This figure is a table for determining accepted requests, and is divided into six cases (1) to (2) according to the input signal 11, that is, the type of accepted request. High→low indicates that the priority order 21 of the input terminal of the priority encoder 12 is low and fixed from left to right. The input signal 11 has a 4-bit array of 1000 in case (2), for example, and therefore the first bit with the highest priority is selected at position 22 (arrow in the table). The same applies to other cases (■) to (■).

このようにして、プライオリティエンコーダ12で選択
された出力信号13は、例えばケース■では3になる。
In this way, the output signal 13 selected by the priority encoder 12 is, for example, 3 in case (2).

他のケース■〜■の場合も同様に出力信号13が得られ
る。次にこれらの出力信号13はデコーダ14で4ビツ
ト2進符号にデコードされ、例えば、ケース■では出力
信号15として1000が得られる。他のケース■〜■
の場合も同様で、結局、選択された位置16は図の矢印
で示した位置になる。
The output signal 13 is obtained in the same manner in other cases (1) to (2). Next, these output signals 13 are decoded into a 4-bit binary code by a decoder 14, and for example, in case (2), 1000 is obtained as the output signal 15. Other cases■〜■
The same is true in the case of , and the selected position 16 ends up being the position indicated by the arrow in the figure.

以上説明したように、従来の優先順位が固定された優先
順位決定回路では、複数の要求のうち、最高位の要求が
選択出力されることになる。
As explained above, in the conventional priority order determination circuit in which the priority order is fixed, the highest order request among a plurality of requests is selected and output.

このように、この種の従来の優先順位決定回路は、シス
テムにより優先順位が一意的に決まっている場合が多い
。このような固定された優先順位を変更したいときは、
システム立ち上げ時に変更設定するか、または、コマン
ドによったり、スイッチを切り換えたり、ROMなどを
利用する方法もある。さらに、ダイナミックに変更した
いときは、高位から低位への順序を定期的に一時逆転さ
せる方法もある。
As described above, in this type of conventional priority determination circuit, the priority is often uniquely determined by the system. If you want to change such a fixed priority, use
There are methods to change the settings when starting up the system, or to use commands, switching switches, or using ROM. Furthermore, if you want to dynamically change the order, there is also a method of periodically reversing the order from high to low.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、これらの従来の方式では、優先順位が固
定されているものがほとんどで、複数の要求があったと
き、高位の要求が通る頻度は高いが、低位の要求が通る
頻度は低く、効率が悪いという問題がある。また、コマ
ンドやスイッチを利用して優先順位を切り換えてもシス
テム運用中はやはり順位は固定されるという問題がある
。さらに、低位から高位に順序を逆転させる場合も、逆
転から逆転の間は高位優先になるという問題がある。
However, in most of these conventional methods, the priority order is fixed, and when there are multiple requests, the high-rank requests pass frequently, but the low-rank requests pass infrequently, resulting in inefficiency. The problem is that it's bad. Another problem is that even if the priority order is changed using commands or switches, the order remains fixed during system operation. Furthermore, even when reversing the order from low to high, there is a problem in that the higher order is prioritized between reversals.

そこで本発明の目的は、未受付要求を優先的に受け付け
ることができ、また収受付要求も平均的に受け付けるこ
とができる未受付要求優先回路を提供することにある。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide an unaccepted request priority circuit that can preferentially accept unaccepted requests and can evenly accept collection requests.

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

本発明の未受付要求優先回路は、n個のユニット全部の
要求を一通り受け付けるまでの1サイクル内で、前回ま
でにどのユニットの要求を受け付けたかの情報を保持す
るnビット幅の第1のレジスタと、このnビット幅の第
1のレジスタの内容と入力されたnビットの要求信号と
の論理積をとり、今回の要求の中で、lサイクル内の前
回までに、要求を受け付けたことのあるユニットからの
要求をマスクする第1の論理積回路と、前回受け付けた
要求よりも低位の要求だけを受け付けるためのマスク情
報を保持するnビット幅の第2のレジスタと、このnビ
ット幅の第2のレジスタの内容と上記入力されたnビッ
トの要求信号との論理積をとり、前回受け付けた要求よ
りも低位の要求だけを取り出す第2の論理積回路と、こ
の第2の論理積回路の結果が前回受け付けた要求よりも
低位の要求が無いことを示した場合は上記入力された要
求信号を選択し、そうでない場合はこの第2の論理積回
路の出力を選択する第1のセレクタと、上記第1の論理
積回路の出力が、上記入力された要求信号の中に、1サ
イクル内で前回までに受け付けてないユニットからの要
求が無いことを示した場合は上記第1のセレクタの出力
を選択し、そうでない場合は、上記第1の論理積回路の
出力を選択する第2の選択回路と、この第2の選択回路
のnビットの出力の中の複数の要求ビットの中から最高
位のものを選択し、出力するプライオリティエンコーダ
と、このプライオリティエンコーダの出力を受け、nビ
ットにデコードするデコーダと、このデコーダからのn
ビットの出力と上記第1のレジスタの内容との論理積を
とり、前回受け付けた要求よりも低位の要求だけをとり
出し、今回受け付けた要求が1サイクル内の前回までに
受け付けたことのあるユニットからの要求の場合、上記
第1のレジスタを更新または抑止するように動作する第
3のAND回路と、この第3のAND回路のnビットの
出力と上記第1のレジスタの内容との排他的論理和をと
り、上記第1のレジスタを更新するように動作する排他
的論理和回路と、この排他的論理和回路のnビットの出
力を入力し、この入力が“0″′のときはlサイクルが
終了したとして全ビット“1”を出力して次のnビット
要求信号に対するマスクがないようにし、この入力が“
0”でないときは、そのまま出力して上記第1のレジス
タにこれをセットする第1の比較回路と、上記デコーダ
からのnビット出力から1を減算して上記第2のレジス
タの更新に供する減算回路と、この減算回路からの出力
を入力し、この入力が“0″のときはlサイクルが終了
したとして全ビット“1”を出力して次のnビット要求
信号に対するマスクがないようにし、この入力が“′0
”でないときはそのまま出力して上記第2のレジスタに
これをセットする第2の比較回路とを具備するものであ
る。
The unaccepted request priority circuit of the present invention includes a first register having an n-bit width that holds information about which unit's requests have been previously accepted within one cycle until requests from all n units are accepted at once. The content of this n-bit wide first register is ANDed with the input n-bit request signal, and it is determined whether any requests have been accepted up to the previous time within l cycles within the current request. a first AND circuit that masks a request from a certain unit; a second register with an n-bit width that holds mask information for accepting only requests lower than the previously accepted request; a second AND circuit that performs an AND operation between the contents of the second register and the input n-bit request signal, and extracts only requests lower than the previously accepted request; If the result shows that there is no request lower than the previously accepted request, the input request signal is selected, and if not, the first selector selects the output of the second AND circuit. If the output of the first AND circuit indicates that there is no request from a unit that has not been previously accepted within one cycle among the input request signals, the first selector a second selection circuit that selects the output of the first logical product circuit and, if not, selects the output of the first AND circuit, and a second selection circuit that selects the output of the first AND circuit; A priority encoder that selects and outputs the highest-ranked one from the above, a decoder that receives the output of this priority encoder and decodes it into n bits, and n bits from this decoder.
The output of the bit is logically ANDed with the contents of the first register, and only the requests lower than the request received last time are taken out. a third AND circuit that operates to update or inhibit the first register; and an exclusive link between the n-bit output of the third AND circuit and the contents of the first register. An exclusive OR circuit that operates to take a logical sum and update the first register, and the n-bit output of this exclusive OR circuit are input, and when this input is "0"', l is input. Assuming that the cycle has ended, all bits are output as “1” so that there is no mask for the next n-bit request signal, and this input is “1”.
a first comparator circuit that outputs it as is and sets it in the first register when it is not 0'', and a subtracter that subtracts 1 from the n-bit output from the decoder and updates the second register. circuit and the output from this subtraction circuit, and when this input is "0", it is assumed that l cycle has ended and all bits are "1", so that there is no mask for the next n-bit request signal, This input is “′0
and a second comparator circuit that outputs the signal as is and sets it in the second register when the signal is not ``.''.

したがって、本発明による未受付要求優先回路を用いる
と、すでに要求を受け付けたことのあるユニットからの
要求をマスクし、前回受け付けた要求よりも低位の要求
だけ受け付け、取り出すことにより、1サイクル内で前
回までに受け付けなかったユニットからの要求を優先的
に受け付けることができる。また、すでに要求を受け付
けたことのあるユニットからの要求に対しても平均的に
これを受け付けることができる。
Therefore, when the unaccepted request priority circuit according to the present invention is used, requests from units that have already accepted requests are masked, and only requests with a lower rank than the previously accepted request are accepted and taken out. Requests from units that were not accepted previously can be accepted with priority. Furthermore, it is possible to accept requests from units that have already received requests on average.

〔実施例〕〔Example〕

以下実施例につき本発明の詳細な説明する。 The present invention will be described in detail with reference to Examples below.

第1図は本実施例の未受付要求優先回路を示すブロック
図、第2図はその動作を示す受付要求決定表を示す図で
ある。本実施例においても、従来例と同様に、入力は4
ビツトとしている。
FIG. 1 is a block diagram showing the unaccepted request priority circuit of this embodiment, and FIG. 2 is a diagram showing an accepted request determination table showing its operation. In this embodiment, as in the conventional example, the input is 4.
It's a bit of a bit of a bit of a bit of a bit of a bit of a bit.

第1図において、入力信号31は、今回の要求の中で、
■サイクル内の前回までに、要求を受け付けたことのあ
るユニットからの要求をマスクする第1の論理積回路3
2(以下第1のAND回路という。)と前回受け付けた
要求よりも低位の要求だけを取り出す第2の論理積回路
33(以下第2のAND回路という。)とに入力される
。第1のAND回路32には更に、4個のユニット全部
の要求を一通り受け付けるまでの1サイクル内で、前回
までにどのユニットの要求を受け付けたかの情報を保持
する4ビツト幅の第1のレジスタ34の内容35が入力
される。同様に、第2のAND回路33には更に、前回
受け付けた要求よりも低位の要求だけを受け付けるため
のマスク情報を保持する4ビツト幅の第2のレジスタ3
6の内容37が入力される。この第2のAND回路33
の出力信号39、すなわち、入力信号31と、第2のレ
ジスタ36の内容37の論理積をとった結果は第1のセ
レクタ40に送出され、さらに、第1のセレクタ40に
は入力信号31が与えられる。この第1のセレクタ40
は、第2のAND回路33の出力信号39が、前回受け
付けた要求よりも低位の要求が無いことを示した場合は
入力信号31、ずなわち要求信号を選択する。そして、
そうでない場合は、この第2のAND回路33の出力信
号39を選択する。
In FIG. 1, the input signal 31 is as follows in the current request:
■First AND circuit 3 that masks requests from units that have received requests up to the previous cycle.
2 (hereinafter referred to as the first AND circuit) and a second AND circuit 33 (hereinafter referred to as the second AND circuit) that extracts only requests lower than the previously accepted request. The first AND circuit 32 further includes a 4-bit wide first register that holds information about which unit's request was previously accepted within one cycle until requests from all four units are accepted. The contents 35 of 34 are input. Similarly, the second AND circuit 33 further includes a 4-bit wide second register 3 that holds mask information for accepting only requests lower than the previously accepted request.
6 contents 37 are input. This second AND circuit 33
The output signal 39 of , that is, the result of ANDing the input signal 31 and the content 37 of the second register 36 is sent to the first selector 40 . Given. This first selector 40
selects the input signal 31, that is, the request signal, when the output signal 39 of the second AND circuit 33 indicates that there is no request lower in level than the previously accepted request. and,
Otherwise, the output signal 39 of this second AND circuit 33 is selected.

この第1のセレクタ40により選択された選択信号42
は第2のセレクタ43に送出される。また、この第2の
セレクタ43には、第1のAND回″I&32の出力信
号44、すなわち前回受け付けた要求よりも低位の要求
が与えられる。この第2のセレクタ43は、第1のAN
D回路32の出力信号44が、入力信号31の要求の中
に、1サイクル内で前回までに受け付けてないユニット
からの要求が無いことを示した場合は第1のセレクタ4
0の出力である選択信号42を選択し、そうでない場合
は、第1のAND回路32の出力信号44を選択する。
Selection signal 42 selected by this first selector 40
is sent to the second selector 43. Further, this second selector 43 is given an output signal 44 of the first AND circuit "I&32," that is, a request that is lower than the previously accepted request.
When the output signal 44 of the D circuit 32 indicates that among the requests of the input signal 31, there is no request from a unit that has not been previously accepted within one cycle, the first selector 4
The selection signal 42 which is the output of 0 is selected, and if not, the output signal 44 of the first AND circuit 32 is selected.

この第2のセレクタ43の出力である選択信号46は、
一般の4ビー/ )から2ビツトへの(以下4→2と略
す。)エンコーダと同様に動作するプライオリティエン
コーダ48に入力される。このプライオリティエンコー
ダ48は、第2のセレクタ43の4ビツトの出力中の複
数の要求ビットの中から最高位のものを選択し、符号化
信号49を出力する。この符号信号49は、デコーダ5
0に入力され、再び4ビツトに変換されてデコード信号
52になる。このデコード信号52は、出力信号69と
して取り出すことができるが、更に第3のAND回路5
3および減算回路54に送出される。
The selection signal 46 which is the output of this second selector 43 is
The signal is input to a priority encoder 48 which operates in the same way as a general 4-bit (4bit/) to 2-bit (hereinafter abbreviated as 4→2) encoder. This priority encoder 48 selects the highest order bit from among the plurality of requested bits among the 4-bit output of the second selector 43 and outputs an encoded signal 49. This code signal 49 is sent to the decoder 5
It is inputted as 0 and converted to 4 bits again to become the decoded signal 52. This decoded signal 52 can be taken out as an output signal 69, but is further outputted to a third AND circuit 5.
3 and the subtraction circuit 54.

第3のAND回路53は、このデコード信号52と第1
のレジスタ34からの第1のレジスタの内容35とを入
力してそれらの論理積をとり、前回受け付けた要求より
も低位の要求だけを取り出し、今回受け付けた要求が1
サイクル内の前回までに受け付けたことのあるユニット
からの要求の場合、第1のレジスタ34の更新を抑制す
るように動作する。すなわち、第3のAND回路53は
、排他的論理和回路55(以下XOR回路)と呼ぶ。
The third AND circuit 53 connects this decoded signal 52 and the first
The content 35 of the first register from the register 34 of
In the case of a request from a unit that has been accepted up to the previous time in the cycle, the update of the first register 34 is suppressed. That is, the third AND circuit 53 is called an exclusive OR circuit 55 (hereinafter referred to as an XOR circuit).

)に4ビツトの出力信号56を送出する。そして、この
XOR回路55は、第3のAND回路53の出力信号5
6と第1のレジスタ34からの第1のレジスタの内容3
5との排他的論理和をとる。
) and sends out a 4-bit output signal 56. This XOR circuit 55 receives the output signal 5 of the third AND circuit 53.
6 and the contents of the first register from the first register 34 3
Exclusive OR with 5 is taken.

このXOR回路55からの出力信号57は第1の比較回
路58に送出される。これを受けた第1の比較回路58
は、第1のレジスタ34に対し、この出力信号57が”
 o ”のときは、■サイクルが終了したとして全ピッ
) ” 1”を出力して次の4ビット要求信号に対する
マスクがないようにし、この出力信号57が“0”でな
いときは、そのまま出力して第1のレジスタ34をセッ
トする抑止・更新信号60を送出する。一方−、デコー
ド信号52を受けた減算回路54は、このデコード信号
52から1を減算してこの減算信号62を第2の比較回
路63に送出する。第2の比較回路63は、第2のレジ
スタ36に対して抑止・更新信号65を送出する。これ
により、第2のレジスタは、第2の比較回路63での減
算信号62が“0”のときは、抑止・更新信号65とし
て全ビット“1”を受けて次の4ビット要求信号に対し
てマスクがないようにされ、減算信号62が“0”でな
いときは抑止・更新信号65としてこれをそのまま入力
され、セットされる。
An output signal 57 from this XOR circuit 55 is sent to a first comparison circuit 58. The first comparison circuit 58 that receives this
This output signal 57 is sent to the first register 34 as "
When the output signal 57 is not "0", it outputs "1" (all pins) assuming that the cycle has ended so that there is no mask for the next 4-bit request signal, and if this output signal 57 is not "0", it outputs it as is. The subtraction circuit 54 that receives the decode signal 52 subtracts 1 from the decode signal 52 and outputs the subtraction signal 62 to the second register 34. The second comparison circuit 63 sends an inhibit/update signal 65 to the second register 36. As a result, the second register When the signal 62 is "0", all bits are "1" as the inhibition/update signal 65, so that there is no mask for the next 4-bit request signal, and when the subtraction signal 62 is not "0", This is input as is as the inhibition/update signal 65 and is set.

次に、第2図に従って本実施例の未受付要求優先回路に
ついてその動作を説明する。
Next, the operation of the unaccepted request priority circuit of this embodiment will be explained with reference to FIG.

図において、4ビツトの入力信号31は、比較のため、
第4図の従来例と同じものを用いることにする。それぞ
れの入力信号31の要求位置67は図の矢印の位置にあ
るとする。ケース■では、mlのレジスタ34と第2の
レジスタ36の内容35と37は、初回の要求として“
1111 ”、すなわちマスクはないものとする。第1
のAND回路32は、この第1のレジスタの内容35“
1111 ”と入力信号31“1000”の論理積をと
り、出力信号44として“1000”を第2のセレクタ
43に送出する。第1のAND回路32は、すでに説明
したように、今回の入力信号31の要求の中で、Iサイ
クル内の前回までに、要求を受け付けたことのあるユニ
ットからの要求をマスクするように動作するが、初回な
ので全ビットともマスクされなかったことになる。更に
、第2のAND回路33は、第2のレジスタの内容37
“1111”と入力信号31“1000 ”の論理積を
とり、出力信号39として“1000″を第1のセレク
タ40に送出する。この第2のAND回路33も、すで
に説明したように、前回受け付けた要求より低位の要求
だけを受け付けるように動作するが、初回の要求なので
、全ビットとも許可したことになる。
In the figure, for comparison, the 4-bit input signal 31 is
The same one as the conventional example shown in FIG. 4 will be used. It is assumed that the required position 67 of each input signal 31 is at the position indicated by the arrow in the figure. In case ■, the contents 35 and 37 of register 34 and second register 36 of ml are "
1111'', that is, there is no mask.
The AND circuit 32 calculates the content 35 of this first register.
1111" and the input signal 31 "1000", and sends "1000" as the output signal 44 to the second selector 43. As already explained, the first AND circuit 32 receives the current input signal Among the 31 requests, the operation is performed to mask requests from units that have received requests up to the previous time in the I cycle, but since this is the first time, not all bits were masked.Furthermore, The second AND circuit 33 selects the contents 37 of the second register.
“1111” and the input signal 31 “1000” are ANDed and “1000” is sent to the first selector 40 as the output signal 39. As already explained, this second AND circuit 33 also operates to accept only requests lower than the previously accepted request, but since this is the first request, all bits are permitted.

第1のセレクタ40は、第2のAND回路33の出力信
号39が“0”、すなわち、入力信号31の要求の中に
前回受け付けた要求より低位の要求が無いときは入力信
号31を選択し、そうでない場合は第2のAND回路3
3の出力信号39を選択するように構成されている。従
って、現在の場合は、前回受け付けた要求より低位の要
求があった訳なので、第2のAND回路33の出力信号
39、すなわち“1000”を選択して、選択信号42
“1000”を第2のセレクタ43に送出する。
The first selector 40 selects the input signal 31 when the output signal 39 of the second AND circuit 33 is "0", that is, when there is no request lower in level than the previously accepted request among the requests of the input signal 31. , otherwise the second AND circuit 3
3 output signals 39 are selected. Therefore, in the current case, there is a lower request than the request received last time, so the output signal 39 of the second AND circuit 33, that is, "1000" is selected, and the selection signal 42 is selected.
“1000” is sent to the second selector 43.

第2のセレクタ43は、第2のAND回路33の出力信
号39が“0”、すなわち、入力信号31の要求の中に
、1サイクル内で前回までに受け付けてないユニットか
らの要求がないときは、第1のセレクタ40の選択信号
42を選択し、そうでないときは第1のAND回路32
の出力信号44を選択するように構成されている。従っ
て、現在の場合は、第1のAND回路32の出力信号4
4“1000”を選択し、選択信号46として“100
0”をプライオリティエンコーダ43に送出する。
The second selector 43 is activated when the output signal 39 of the second AND circuit 33 is "0", that is, when there is no request from a unit that has not been previously accepted within one cycle among the requests of the input signal 31. selects the selection signal 42 of the first selector 40; otherwise, the first AND circuit 32
It is configured to select the output signal 44 of. Therefore, in the current case, the output signal 4 of the first AND circuit 32
4 “1000” is selected and “100” is selected as the selection signal 46.
0'' to the priority encoder 43.

このプライオリティエンコーダ48は、従来例で説明し
たものと同じであり、その入力端子の優先順位71は、
左が高位、右が低位になっており、入力された第2のセ
レクタ43からの選択信号4G“1000”の最高位か
ら1番目の要求を選択し、符号化信号49として“3”
(この値は符号化された2進値をlO進値で表したもの
)をデコーダ50に送出する。デコーダ50はこれをデ
コードして、デコード信号52として“1000″′を
第3のAND回路53および減算回路54に送出する。
This priority encoder 48 is the same as that described in the conventional example, and the priority order 71 of its input terminals is as follows:
The high level is on the left, and the low level is on the right.The first request from the highest level of the input selection signal 4G "1000" from the second selector 43 is selected, and "3" is output as the encoded signal 49.
(This value is the encoded binary value expressed in lO base value) is sent to the decoder 50. The decoder 50 decodes this and sends "1000"' as the decoded signal 52 to the third AND circuit 53 and the subtraction circuit 54.

このデコード信号52は外部に出力信号69としても取
り出すことができる。この場合の選択された位置72は
図の矢印で示された位置になる。第3のAND回路53
は、このデコード信号52と、第1のレジスタ34の出
力である第1のレジスタの内容35との論理積をとり、
その出力信号56として“1000”をXOR回路55
に送出する。
This decoded signal 52 can also be taken out as an output signal 69 to the outside. The selected position 72 in this case is the position indicated by the arrow in the figure. Third AND circuit 53
takes the AND of this decoded signal 52 and the content 35 of the first register which is the output of the first register 34,
“1000” is set to the XOR circuit 55 as the output signal 56.
Send to.

第3のAND回路53は、すでに説明したように、今回
受け付けた入力信号31の中の要求が1サイクル内の前
回までに受け付けたことのあるユニットからの要求の場
合は、“oooo’を出力し、第1のレジスタ34の更
新を抑止するように動作する。現在の場合は、前回まで
に受け付けたことのないユニットからの要求だったため
、“1000nを出力したことになる。
As already explained, the third AND circuit 53 outputs "oooo" if the request in the input signal 31 received this time is from a unit that has been received previously within one cycle. However, it operates to inhibit updating of the first register 34. In the current case, since the request was from a unit that had not been accepted before, "1000n" was output.

XOR回路55は、第3のAND回路53の出力信号5
6“1000”と第1のレジスタ34の出力である第1
のレジスタの内容35“1111”との排他的論理和を
とり、その出力信号57として“0111”を第1の比
較回路58に送出する。このXOR回路55は、すでに
説明したように、第1のレジスタ34を更新するように
動作する。第1の比較回路58は、XOR回路55の出
力信号57を入力すると、これが“0000”であるか
否かをチエツクし、“0000”ならば、1サイクルが
終了したので、“1111”を抑止・更新信号60とし
て出力し、そうでないときは、入力である出力信号57
をそのまま出力するように動作する。現在の場合は、後
者に相当し、“0111 ”を抑止・更新信号60とし
て出力する。
The XOR circuit 55 receives the output signal 5 of the third AND circuit 53.
6 “1000” and the first output which is the output of the first register 34.
Exclusive OR with the register contents 35 "1111" is performed, and "0111" is sent as the output signal 57 to the first comparator circuit 58. This XOR circuit 55 operates to update the first register 34, as described above. When the first comparison circuit 58 receives the output signal 57 of the XOR circuit 55, it checks whether it is "0000" or not. If it is "0000", one cycle has been completed, so it suppresses "1111". - Output as update signal 60, otherwise output signal 57 as input
It operates to output as is. The current case corresponds to the latter, and "0111" is output as the inhibition/update signal 60.

そして、これは第1のレジスタ34に書き込まれ、この
第1のレジスタ34は更新される。
This is then written to the first register 34, and this first register 34 is updated.

一方、減算回路54に送出されたデコーダ信号52“1
000 ”は、ここで1を減算され、減算信号62とし
て“0111”を第2の比較回路63に送出する。この
減算回路54は、すでに説明したように、第2のレジス
タ36を更新するように動作するものである。第2の比
較回路63は、減算回路54の出力である減算信号62
を入力すると、これが“0000”か否かをチエツクし
、“0000”のときは、今回受け付けた要求が最低位
の要求なので、その出力である抑止・更新信号65とし
て、“’1111”を第2のレジスタ36に出力し、そ
うでないときは、そのまま出力するように動作する。現
在の場合は、後者に相当するので、“0111″を抑止
・更新信号65として出力し、これは第2のレジスタ3
6に書き込まれ、この第2のレジスタ36は更新される
On the other hand, the decoder signal 52 "1" sent to the subtraction circuit 54
000'' is here subtracted by 1, and sends ``0111'' as the subtraction signal 62 to the second comparison circuit 63. As already explained, this subtraction circuit 54 updates the second register 36. The second comparison circuit 63 receives the subtraction signal 62 which is the output of the subtraction circuit 54.
When this is input, it is checked whether it is "0000" or not. If it is "0000", the request received this time is the lowest request, so "'1111" is set as the output of the inhibition/update signal 65. The signal is output to the register 36 of No. 2, and if not, the signal is output as is. The current case corresponds to the latter, so "0111" is output as the inhibition/update signal 65, which is sent to the second register 3.
6 and this second register 36 is updated.

ケース■の場合も同様に動作する。すなわち、第1のレ
ジスタ34はケース■で更新されているので、この第1
のレジスタの内容35は“0111′°であり、これと
、入力信号31である“0010”の論理積が第1のA
ND回路32でとられる。この第1のAND回路32で
は、最高位から3番目の要求がマスクされないので、デ
コーダ50のデコード信号52は“0010”となり、
最高位から3番目の要求が受け付けられることになる。
Case ■ also operates in the same way. In other words, since the first register 34 has been updated in case ■, this first register 34
The content 35 of the register is "0111'°, and the AND of this and the input signal 31 "0010" is the first A
It is taken by the ND circuit 32. In this first AND circuit 32, the third request from the highest order is not masked, so the decode signal 52 of the decoder 50 becomes "0010".
The third request from the highest level will be accepted.

そして、第1のレジスタ34は、その内容が“0101
”に、また第2のレジスタ36の内容は“0001”に
それぞれ更新される。
The content of the first register 34 is “0101”.
”, and the contents of the second register 36 are updated to “0001”.

ケース■では、第1のレジスタ34の出力である第1の
レジスタの内容35は“0101″であり、第1のAN
D回路32により、最高位から1番目の要求がマスクさ
れ、その出力信号44は”oooo”となるので、第2
のセレクタ43により第1のセレクタ40の出力である
選択信号42“1000”が選択される。このとき、第
2のレジスタ36の出力である第2のレジスタの内容3
7は“0001″であり、第2のAND回路33により
、最高位から1番目の要求がマスクされるので、第1の
セレクタ40により入力信号31“1000”が選択さ
れ、第1のセレクタ40の出力である選択信号42とし
て“1000”が出力されている。したがって、第2の
セレクタ43の出力である選択信号46は“1000″
となる。
In case ■, the content 35 of the first register 34, which is the output of the first register 34, is "0101", and the first AN
The first request from the highest level is masked by the D circuit 32, and its output signal 44 becomes "oooo", so the second request is masked.
The selector 43 selects the selection signal 42 "1000" which is the output of the first selector 40. At this time, the content 3 of the second register which is the output of the second register 36
7 is "0001", and the second AND circuit 33 masks the first request from the highest order, so the first selector 40 selects the input signal 31 "1000", and the first selector 40 selects the input signal 31 "1000". ``1000'' is output as the selection signal 42 which is the output of . Therefore, the selection signal 46 which is the output of the second selector 43 is "1000"
becomes.

そして、デコード50の出力であるデコード信号52と
して“1000 ”が出力され、最高位から1番目の要
求が受け付けられることになる。この場合、第1のレジ
スタ34は更新されないが、第2のレジスタ36は“0
111”に更新される。
Then, "1000" is output as the decode signal 52 which is the output of the decode 50, and the first request from the highest order is accepted. In this case, the first register 34 is not updated, but the second register 36 is “0”.
111”.

さらに、ケース■の場合も、第1のレジスタ34の出力
である第1のレジスタの内容35は“0101 ”であ
り、第1のAND回路32により最高位から1番目およ
び3番目の要求がマスクされ、第1のAND回路32の
出力信号44は“0000″となる。したがって、第2
のセレクタ43により、第1のセレクタ40の出力であ
る選択信号42が選択されるが、このときは、第2のレ
ジスタ36の出力である第2のレジスタの内容37は“
0111”である。かくして、第2のAND回路33に
より、前回受け付けた、試行位から1番目の要求はマス
クされるが、3番目の要求はマスクされない。このため
、第2のAND回路33の出力として“0010”が出
力され、第1のセレクタ40により第2のAND回路3
3の出力である出力信号39が選択される。その結果、
第1のセレクタ40の出力である選択信号42として“
0010”が出力されている。これにより、第 2のセ
レクタ43の出力である選択信号46は” OO10″
となり、デコーダ50の出力であるデコード信号52と
して“0010”が出力される。かくして、最高位から
3番目の要求が受け付けられることになる。このとき、
第1のレジスタ34は更新されないが、第2のレジスタ
36は“0001 ”に更新される。
Furthermore, in case (3), the content 35 of the first register 34 which is the output of the first register 34 is "0101", and the first and third requests from the highest order are masked by the first AND circuit 32. The output signal 44 of the first AND circuit 32 becomes "0000". Therefore, the second
The selector 43 selects the selection signal 42 that is the output of the first selector 40, but at this time, the content 37 of the second register that is the output of the second register 36 is “
0111''.Thus, the second AND circuit 33 masks the first request from the trial position received last time, but does not mask the third request. “0010” is output as the output, and the first selector 40 selects the second AND circuit 3.
Output signal 39, which is the output of No. 3, is selected. the result,
As the selection signal 42 which is the output of the first selector 40, “
0010" is output. As a result, the selection signal 46 which is the output of the second selector 43 is "OO10".
Therefore, “0010” is output as the decoded signal 52 which is the output of the decoder 50. Thus, the third request from the highest level will be accepted. At this time,
The first register 34 is not updated, but the second register 36 is updated to "0001".

ケース■の場合も、第1のレジスタ34の出力である第
1のレジスタの内容35は” 0101 ”であるが、
第1のAND回路32により、最高位から1番目および
3番目の要求はマスクされるが、2番目の要求はマスク
されない。したがって、デコーダ50の出力であるデコ
ード信号52として“0100”が出力され、最高位か
ら2番目の要求が受け付けられることになる。そして、
第1のレジスタ34は0001”に、第2のレジスタ3
6は’0011’″にそれぞれ更新される。最後にケー
ス■では、第1のレジスタ34の出力である第1のレジ
スタの内容35は“0001 ”であり、第1のAND
回路32により、最高位から1番目、2番目、3番目の
要求はマスクされるが、4番目の要求はマスクされない
。したがって、デコーダ50の出力であるデコード信号
52として“0001″”が出力され、1サイクルが終
了する。
In case (■), the content 35 of the first register 34, which is the output of the first register 34, is "0101", but
The first AND circuit 32 masks the first and third requests from the highest order, but does not mask the second request. Therefore, "0100" is output as the decode signal 52 that is the output of the decoder 50, and the second request from the highest order is accepted. and,
The first register 34 is set to 0001'', the second register 3
6 are respectively updated to '0011'''.Finally, in case 3, the content 35 of the first register 35, which is the output of the first register 34, is “0001”, and the first AND
The first, second, and third requests from the highest level are masked by the circuit 32, but the fourth request is not masked. Therefore, "0001" is output as the decode signal 52 which is the output of the decoder 50, and one cycle is completed.

そして、XOR回路55の出力信号57は“0000”
となり、第1の比較回路58の出力である抑止・更新信
号60が“1111″となり、第1のレジスタ34に書
き込まれる。一方、今回受け付けた要求は最低位の要求
なので、減算回路54の出力である減算信号62は“0
000”となり、第2の比較回路63の出力である抑止
・更新信号65が’1111”となって、第2のレジス
タ36に書き込まれることになる。
Then, the output signal 57 of the XOR circuit 55 is “0000”
Therefore, the inhibit/update signal 60 which is the output of the first comparator circuit 58 becomes "1111" and is written into the first register 34. On the other hand, since the request received this time is the lowest request, the subtraction signal 62 which is the output of the subtraction circuit 54 is "0".
000'', and the inhibit/update signal 65, which is the output of the second comparison circuit 63, becomes '1111' and is written into the second register 36.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、すでに要求を受け付けた
ことのあるユニットからの要求をマスクし、前回受け付
けた要求よりも低位の要求だけを受け付け、取り出すこ
とにより、1サイクル内で前回までに受け付けなかった
ユニットからの要求を優先的に受け付けることができる
効果がある。
As explained above, the present invention masks requests from units that have already received requests, and accepts and extracts only requests lower than the previously accepted request, thereby making it possible to mask requests from units that have already received requests, and to accept and extract requests that are lower than the previously accepted request. This has the effect of allowing requests from previously unavailable units to be accepted on a priority basis.

さらに、すでに要求を受け付けたことのあるユニットか
らの要求に対しても平均的にこれを受け付けることがで
きる効果がある。したがって、本発明を共通バスのバス
使用権の制御に用いれば、効率的なバス使用を可能とす
る効果がある。
Furthermore, there is an effect that requests from units that have already received requests can be accepted on average. Therefore, if the present invention is used to control the right to use the common bus, it is possible to use the bus efficiently.

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

第1図は本発明による未受付要求優先回路の一実施例を
示すブロック図、第2図はその動作を受付要求決定表の
形で示した図、第3図は従来の固定優先順位決定回路を
示すブロック図、第4図はその動作を受付要求決定表の
形で示した図である。 32・・・・・・第1のAND回路、 33・・・・・・第2のAND回路、 34・・・・・・第1のレジスタ、 36・・・・・・第2のレジスタ、 40・・・・・・第1のセレクタ、 43・・・・・・第2のセレクタ、 48・・・・・・プライオリティエンコーダ、50・・
・・・・デコーダ、 53・・・・・・第3のAND回路、 54・・・・・・減算回路、55・・・・・・XOR回
路、58・・・・・第1の比較回路、 63・・・・・第2の比較回路。 出願人        日本電気株式会社代理人   
     弁理士 山内梅雄第2図
FIG. 1 is a block diagram showing an embodiment of the unaccepted request priority circuit according to the present invention, FIG. 2 is a diagram showing its operation in the form of an accepted request determination table, and FIG. 3 is a conventional fixed priority determination circuit. FIG. 4 is a block diagram showing the operation in the form of an acceptance request determination table. 32...First AND circuit, 33...Second AND circuit, 34...First register, 36...Second register, 40...First selector, 43...Second selector, 48...Priority encoder, 50...
... Decoder, 53 ... Third AND circuit, 54 ... Subtraction circuit, 55 ... XOR circuit, 58 ... First comparison circuit , 63...Second comparison circuit. Applicant NEC Corporation Agent
Patent attorney Umeo Yamauchi Figure 2

Claims (1)

【特許請求の範囲】  n個のユニットによるnビットの要求信号の中から優
先順位を決定し、要求を受け付ける、ユニット1個を選
択する優先順位決定回路において、n個のユニット全部
の要求を一通り受け付けるまでの1サイクル内で、前回
までにどのユニットの要求を受け付けたかの情報を保持
するnビット幅の第1のレジスタと、 このnビット幅の第1のレジスタの内容と入力されたn
ビットの要求信号との論理積をとり、今回の要求の中で
、1サイクル内の前回までに、要求を受け付けたことの
あるユニットからの要求をマスクする第1の論理積回路
と、 前回受け付けた要求よりも低位の要求だけを受け付ける
ためのマスク情報を保持するnビット幅の第2のレジス
タと、 このnビット幅の第2のレジスタの内容と前記入力され
たnビットの要求信号との論理積をとり、前回受け付け
た要求よりも低位の要求だけを取り出す第2の論理積回
路と、 この第2の論理積回路と、この第2の論理積回路の結果
が前回受け付けた要求よりも低位の要求が無いことを示
した場合は前記入力された要求信号を選択し、そうでな
い場合は、この第2の論理積回路の出力を選択する第1
のセレクタと、前記第1の論理積回路の出力が、前記入
力された要求信号の中に、1サイクル内で前回までに受
け付けてないユニットからの要求が無いことを示した場
合は前記第1のセレクタの出力を選択し、そうでない場
合は、前記第1の論理積回路の出力を選択する第2のセ
レクタと、 この第2のセレクタのnビットの出力中の複数の要求ビ
ットの中から最高位のものを選択し、出力するプライオ
リティエンコーダの出力を受け、nビットにデコードす
るデコーダと、 このデコーダからのnビットの出力と前記第1のレジス
タの内容との論理積をとり、前回受け付けた要求よりも
低位の要求だけを取り出し、今回受け付けた要求が1サ
イクル内の前回までに受け付けたことのあるユニットか
らの要求の場合、前記第1のレジスタを更新または抑止
するように動作する第3のAND回路と、 この第3のAND回路のnビットの出力と前記第1のレ
ジスタの内容との排他的論理和をとり、前記第1のレジ
スタを更新するように動作する排他的論理和回路と、 この排他的論理和回路のnビットの出力を入力し、この
入力が“0”のときは1サイクルが終了したとして全ビ
ット“1”を出力して次のnビット要求信号に対するマ
スクがないようにし、この入力が“0”でないときは、
そのまま出力して前記第1のレジスタにこれをセットす
る第1の比較回路と、 前記デコーダからのnビット出力から1を減算して前記
第2のレジスタの更新に供する減算回路と、 この減算回路からの出力を入力し、この入力が“0”の
ときは1サイクルが終了したとして全ビット“1”を出
力して次のnビット要求信号に対するマスクがないよう
にし、この入力が“0”でないときはそのまま出力して
前記第2のレジスタにこれをセットする第2の比較回路
とを具備することを特徴とする未受付要求優先回路。
[Claims] In a priority determination circuit that determines the priority among n-bit request signals from n units, accepts requests, and selects one unit, the requests of all n units are A first register with an n-bit width that holds information about which unit's request has been accepted up to the previous time within one cycle until the request is accepted, and a
A first logical AND circuit performs a logical AND with the request signal of the bit, and masks requests from units that have previously received a request within one cycle from among the current request; a second register with an n-bit width that holds mask information for accepting only requests lower than the requested request; a second AND circuit that performs a logical product and extracts only the requests that are lower than the previously accepted request; If it is shown that there is no lower request, the inputted request signal is selected; otherwise, the output of the second AND circuit is selected.
selector and the output of the first AND circuit indicate that there is no request from a unit that has not been previously accepted within one cycle in the input request signal. a second selector that selects the output of the selector and, if not, selects the output of the first AND circuit from among the plurality of requested bits among the n-bit outputs of the second selector; A decoder receives the output of the priority encoder that selects and outputs it, and decodes it into n bits, and the n-bit output from this decoder is ANDed with the contents of the first register, and If the currently accepted request is from a unit that has been previously accepted within one cycle, the first register operates to update or inhibit the first register. 3 AND circuit, and an exclusive OR that operates to perform an exclusive OR of the n-bit output of the third AND circuit and the contents of the first register, and update the first register. The n-bit output of this exclusive OR circuit is input, and when this input is “0”, it is assumed that one cycle has completed, and all bits are “1” and masked for the next n-bit request signal. When this input is not “0”,
a first comparison circuit that outputs the same as it is and sets it in the first register; a subtraction circuit that subtracts 1 from the n-bit output from the decoder to update the second register; When this input is "0", it is assumed that one cycle has completed and all bits are "1", so that there is no mask for the next n-bit request signal, and this input is "0". and a second comparator circuit that outputs it as is and sets it in the second register when the unaccepted request priority circuit is not received.
JP2378988A 1988-02-05 1988-02-05 Priority processing circuit for unaccepted request Pending JPH01200439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2378988A JPH01200439A (en) 1988-02-05 1988-02-05 Priority processing circuit for unaccepted request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2378988A JPH01200439A (en) 1988-02-05 1988-02-05 Priority processing circuit for unaccepted request

Publications (1)

Publication Number Publication Date
JPH01200439A true JPH01200439A (en) 1989-08-11

Family

ID=12120092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2378988A Pending JPH01200439A (en) 1988-02-05 1988-02-05 Priority processing circuit for unaccepted request

Country Status (1)

Country Link
JP (1) JPH01200439A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7051133B2 (en) * 2002-11-25 2006-05-23 Renesas Technology Corp. Arbitration circuit and data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7051133B2 (en) * 2002-11-25 2006-05-23 Renesas Technology Corp. Arbitration circuit and data processing system

Similar Documents

Publication Publication Date Title
US4733346A (en) Data processor with multiple register blocks
US5574921A (en) Method and apparatus for reducing bus noise and power consumption
US4459657A (en) Data processing system having re-entrant function for subroutines
US4609995A (en) Priority controller
US7051135B2 (en) Hierarchical bus arbitration
JPH04211855A (en) Apparatus and method for controlling communication bus in data processing system
EP0142982B1 (en) Microprocessor interrupt system
US4562423A (en) Data compression
JPH01200439A (en) Priority processing circuit for unaccepted request
US6449675B1 (en) Multifield register having a selection field for selecting a source of an information field
JPH0619711B2 (en) Data processing system with priority branch mechanism
KR100515413B1 (en) Bit stream processor
GB2109204A (en) Data compression
US7076641B2 (en) Programmable controller
CN114595070A (en) A processor, multi-thread merging method and electronic device
US20100125720A1 (en) Instruction mode identification apparatus and method
KR100498469B1 (en) Interrupt control system providing for the least delay and method thereof
JP3105554B2 (en) Interrupt controller
EP0487064B1 (en) Address generating circuit and CD-ROM device using the same
US5220670A (en) Microprocessor having ability to carry out logical operation on internal bus
JP3792633B2 (en) Microcontroller and microcontroller device
JP2001166951A (en) Interrupt processing circuit
JP2635863B2 (en) Central processing unit
JPH0512337A (en) Data retrieval system using hash method
JPH07129398A (en) Microprocessor