JP3101030B2 - Priority encoding circuit - Google Patents
Priority encoding circuitInfo
- Publication number
- JP3101030B2 JP3101030B2 JP03311815A JP31181591A JP3101030B2 JP 3101030 B2 JP3101030 B2 JP 3101030B2 JP 03311815 A JP03311815 A JP 03311815A JP 31181591 A JP31181591 A JP 31181591A JP 3101030 B2 JP3101030 B2 JP 3101030B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- block
- priority
- request signals
- priority encoding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000010586 diagram Methods 0.000 description 6
- 238000007796 conventional method Methods 0.000 description 3
- 101100216982 Arabidopsis thaliana ADT6 gene Proteins 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Bus Control (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、情報処理装置におい
て、多レベルの優先権を決定するためのプライオリティ
エンコード回路に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a priority encoding circuit for determining a multi-level priority in an information processing apparatus.
【0002】[0002]
【従来の技術】情報処理装置においては、プロセッサ
や、磁気ディスク、プリンタ、ディスプレイ及びキーボ
ード等の入出力装置等の各装置の動作の優先順位を決定
するための信号であるプライオリティが用いられる。こ
のプライオリティを解読して装置の優先順位を認識する
ための回路がプライオリティエンコード回路である。2. Description of the Related Art In an information processing apparatus, a priority, which is a signal for determining the priority of operation of each device such as a processor and input / output devices such as a magnetic disk, a printer, a display, and a keyboard, is used. A circuit for decoding this priority and recognizing the priority of the device is a priority encoding circuit.
【0003】従来、16あるいは32レベル程度までの
プライオリティエンコード回路は、存在していたが、 1
28あるいは 256レベルのプライオリティエンコード回路
は、存在しなかった。これは、従来、このような多くの
レベルは、システムで特に必要とされていなかったため
である。ところが、ワークステーションやコンピュータ
通信等の発達に伴ない、磁気ディスクやプリンタを複数
のプロセッサで共用したりすることにより、システム全
体に含まれる装置の総数がますます多くなっていく傾向
にあり、従って、優先順位のレベル数も増やさなければ
ならなくなる。このような要求に対応するため、従来技
術の延長上で 256レベルのプライオリティエンコード回
路を構成した場合、図2に示すような回路となる。Conventionally, priority encoding circuits up to about 16 or 32 levels existed.
There were no 28 or 256 level priority encoding circuits. This is because, in the past, many such levels were not specifically required by the system. However, with the development of workstations and computer communications, the number of devices included in the entire system tends to increase due to the use of magnetic disks and printers shared by multiple processors. , The number of priority levels must also be increased. If a priority encoding circuit of 256 levels is configured as an extension of the conventional technology in order to respond to such a demand, a circuit as shown in FIG. 2 is obtained.
【0004】図2及び図3は、従来技術によるプライオ
リティエンコード回路の構成例の説明図である。この図
において、プライオリティの順位は、数字の小さいもの
から大きいものへ高くなるとする。図示の回路は、入力
データを DT1〜DT255 の信号線で与え、入力データ値
“1”(有効)の中で最もプライオリティの高い信号線
の番号をエンコードした値をPDT0〜PDT7の8ビットで出
力するものである。図中の DT2〜DT254の上部にライン
を付したものは、それぞれ DT2〜DT254 の反転(否定)
入力であることを意味する。この回路は、エンコード結
果のコード値のビット情報が“1”になる論理を作成す
ることでプライオリティを決定するように構成してお
り、あるレベルの入力に比べて高いプライオリティの入
力があった場合のマスク条件用の論理積(AND)素子
21〜25とエンドデータが“1”となる入力条件群の
論理和をとる論理和(OR)素子26〜28から成る。FIGS. 2 and 3 are explanatory diagrams of a configuration example of a prior art priority encoding circuit. In this figure, it is assumed that the order of priority increases from a small number to a large number. The circuit shown in the figure provides input data through signal lines DT1 to DT255, and outputs a value obtained by encoding the number of the signal line having the highest priority among the input data values "1" (valid) as 8 bits of PDT0 to PDT7. Is what you do. In the figure, the lines with DT2 to DT254 above the lines are the inverse of DT2 to DT254 (negative).
Means input. This circuit is configured to determine the priority by creating a logic in which the bit information of the code value of the encoding result becomes "1", and when there is an input of a higher priority than an input of a certain level And logical sum (AND) elements 21 to 25 for calculating the logical sum of the input condition group whose end data is "1".
【0005】OR素子26は、エンコード結果の最上位
ビットPDT7が“1”になる条件を生成している。PDT7の
値は、 DT255〜DT128 のいずれか1つでも“1”なら
ば、“1”となる。OR素子27は、エンコード結果の
上位2番目のビットPDT6が“1”になる条件を生成して
いる。PDT6の値は、PDT255〜DT195 のいずれか1つでも
“1”ならば(AND素子21〜22で実現)、“1”
となる。このように、プライオリティの高い信号入力を
マスク条件として、順次最下位コードビットPDT0まで実
現することで、 256レベルから8ビットコードへのプラ
イオリティエンコードを行なう。[0005] The OR element 26 generates a condition that the most significant bit PDT7 of the encoding result becomes "1". The value of PDT7 is "1" if at least one of DT255 to DT128 is "1". The OR element 27 generates a condition that the upper second bit PDT6 of the encoding result becomes “1”. The value of PDT6 is “1” if any one of PDT255 to DT195 is “1” (implemented by AND elements 21 to 22).
Becomes As described above, the priority encoding from the 256 levels to the 8-bit code is performed by sequentially realizing up to the least significant code bit PDT0 using the signal input with the higher priority as a mask condition.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、上述し
た従来の技術には、次のような問題があった。即ち、従
来技術の延長では、被現実的な程多くの入力(256レベ
ルのエンコードならば 128入力)を持った多入力論理ゲ
ートが必要となる。また、その多入力論理ゲートを適当
な入力数の論理ゲートに置き換えた場合、論理ゲートの
段数が多くなってしまう。また、論理ゲートの総数も非
常に大きなものになってしまう等の多くの問題があっ
た。本発明は、以上の点に着目してなされたもので、多
入力ゲートを用いることなく、しかも論理ゲートの総数
も少なくできるような優れたプライオリティエンコード
回路を提供することを目的とするものである。However, the above-mentioned prior art has the following problems. That is, as an extension of the conventional technique, a multi-input logic gate having as many inputs as practically possible (128 inputs for 256-level encoding) is required. Further, when the multi-input logic gate is replaced with a logic gate having an appropriate number of inputs, the number of logic gates increases. In addition, there are many problems such as an extremely large total number of logic gates. SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and has as its object to provide an excellent priority encoding circuit capable of reducing the total number of logic gates without using multiple input gates. .
【0007】[0007]
【課題を解決するための手段】本発明のプライオリティ
エンコード回路は、多数の要求信号を複数のブロックに
分けて入力すると共に、各ブロック内の複数の要求信号
の論理和から成る複数のブロック要求信号を入力し、複
数のブロック要求信号を出力した後、優先度の最も高い
ブロックを示すブロック指示信号を入力すると、該ブロ
ック指示信号で示すブロック内の複数の要求信号を出力
する分割入力手段と、分割入力手段から複数のブロック
要求信号を入力すると、優先度の最も高いブロックを判
定してブロック指示信号を分割入力手段に出力し、該分
割入力手段より指示したブロック内の複数の要求信号を
入力すると、該複数の要求信号中から優先度の最も高い
要求信号を判定するプライオリティエンコード手段とを
含むことを特徴とするものである。SUMMARY OF THE INVENTION A priority encoding circuit according to the present invention divides a plurality of request signals into a plurality of blocks and inputs the plurality of blocks, and also comprises a plurality of block request signals formed by a logical sum of a plurality of request signals in each block. Input, and after outputting a plurality of block request signals, when a block instruction signal indicating the block with the highest priority is input, divided input means for outputting a plurality of request signals in the block indicated by the block instruction signal, When a plurality of block request signals are input from the divided input means, the block having the highest priority is determined, a block instruction signal is output to the divided input means, and a plurality of request signals in the block designated by the divided input means are input. Then, priority encoding means for determining a request signal with the highest priority from among the plurality of request signals is provided. Is shall.
【0008】[0008]
【作用】本発明のプライオリティエンコード回路におい
て、分割入力手段は、多数の装置の動作要求を示す多数
の要求信号をブロック単位で受信すると共に、ブロック
毎のブロック要求信号を出力する。プライオリティエン
コード手段は、複数のブロック要求信号を受信して優先
度の最も高い特定のブロックを選定し、ブロック指示信
号を出力する。分割入力手段は、このブロック指示信号
に基づき対応するブロック内の複数の要求信号を出力す
る。プライオリティエンコード手段は、これら複数の要
求信号を受信すると、優先度の高い要求信号を選定す
る。In the priority encoding circuit of the present invention, the division input means receives a large number of request signals indicating operation requests of a large number of devices in units of blocks and outputs a block request signal for each block. The priority encoding means receives a plurality of block request signals, selects a specific block having the highest priority, and outputs a block instruction signal. The division input means outputs a plurality of request signals in the corresponding block based on the block instruction signal. When receiving the plurality of request signals, the priority encoding means selects a request signal having a high priority.
【0009】[0009]
【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。図1は、本発明のプライオリティエンコー
ドの実施例のブロック図である。この図は、本発明を 2
56レベルのプライオリティについて実施した場合の例を
示す。図示の回路は、分割入力手段4と、プライオリテ
ィエンコード手段5とを含んでいる。分割入力手段4に
は、オア素子1〜3が接続されている。プライオリティ
エンコード手段5は、ブロック間プライオリティエンコ
ードと、ブロック内プライオリティエンコードとを兼用
する。Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the priority encoding according to the present invention. This diagram illustrates the present invention.
Here is an example of the case where the priority is set to 56 levels. The illustrated circuit includes divided input means 4 and priority encoding means 5. OR elements 1 to 3 are connected to the divided input means 4. The priority encoding means 5 serves both as inter-block priority encoding and intra-block priority encoding.
【0010】OR素子1〜3は、16入力のOR素子
で、入力データ DT0〜DT255 を16のブロックに分け、
その各ブロック内のいずれか1つでも“1”になってい
るかを検出するのに用いる。分割入力手段4は、16ビ
ット幅の17種類の入力から1つを選択するセレクタで
ある。このセレクタの条件は、制御部7からの信号と、
保持レジスタ6からの信号により決定される。初期状態
は、制御部7からの信号によりB入力が選択され、オア
素子1〜3の出力データが DO0〜DO15に出力される。そ
の信号は、16レベルから4ビットコードを出力するプ
ライオリティエンコード手段5に入力され、ブロック分
けされた入力データ DT0〜DT255 のいずれのブロックが
上位かを示す4ビットコードを出力する。これにより、
プライオリティエンコード手段5は、分割入力手段4に
より分けられたブロック間相互のブロック間プライオリ
ティを解読し、特定のブロックを選択する。The OR elements 1 to 3 are 16-input OR elements and divide input data DT0 to DT255 into 16 blocks.
It is used to detect whether any one of the blocks is "1". The division input means 4 is a selector for selecting one from 17 types of inputs having a 16-bit width. The condition of the selector is as follows: a signal from the control unit 7;
It is determined by a signal from the holding register 6. In the initial state, the B input is selected by a signal from the control unit 7, and the output data of the OR elements 1 to 3 is output to DO0 to DO15. The signal is input to the priority encoding means 5 which outputs a 4-bit code from the 16th level, and outputs a 4-bit code indicating which block of the input data DT0 to DT255 divided into blocks is higher. This allows
The priority encoding means 5 decodes the inter-block priority between the blocks divided by the division input means 4, and selects a specific block.
【0011】プライオリティエンコード手段5の出力結
果が確定した後、制御部7は保持レジスタ6のサンプル
指示と分割入力手段4のAxx 入力への変更を指示する。
これにより、分割入力手段4は、最上位になっているブ
ロックのデータ16ビットをプライオリティエンコード
手段5に対し出力する。プライオリティエンコード手段
5は、その16ビットのデータ中で最上位のビット位置
をエンコードし、出力する。これにより、プライオリテ
ィエンコード手段5は、特定されたブロック内の入力レ
ベルのプライオリティを解読し、特定の入力レベルを選
択する。最後に、その4ビットコードPDT0〜PDT3と保持
レジスタ6から出力されている4ビットコードPDT4〜PD
T7で最終結果の8ビットコードPDT0〜 PDT7 を得る。After the output result of the priority encoding unit 5 is determined, the control unit 7 instructs the sample of the holding register 6 and the change of the divided input unit 4 to the Axx input.
As a result, the division input unit 4 outputs the 16-bit data of the highest-order block to the priority encoding unit 5. The priority encoding means 5 encodes the most significant bit position in the 16-bit data and outputs it. Thereby, the priority encoding means 5 decodes the priority of the input level in the specified block and selects a specific input level. Finally, the 4-bit codes PDT0 to PDT3 and the 4-bit codes PDT4 to PD output from the holding register 6 are output.
At T7, the final result 8-bit codes PDT0 to PDT7 are obtained.
【0012】[0012]
【発明の効果】以上説明したように、本発明のプライオ
リティエンコード回路によれば、多数の要求信号をブロ
ック分けし、一つのプライオリティエンコード手段によ
りブロック間及びブロック内要求信号のプライオリティ
をエンコードするようにしたので、論理ゲートを多入力
あるいは多段化したものにする必要がなく、この結果、
論理ゲートの総数を飛躍的に少なくすることができる。
また、これにより、論理ゲート数に制限のある集積回路
(LSI)などへも多レベルのプライオリティの導入を
することが可能となる。また、将来の更なる多レベル化
に対しても、ブロック分けの変更やプライオリティエン
コード回路の2重化構成などで論理ゲート数をさほど増
やすことなく、対応することが可能となる。As described above, according to the priority encoding circuit of the present invention, a large number of request signals are divided into blocks, and one priority encoding means is used.
Since the priority of the request signal between blocks and within a block is encoded, it is not necessary to make the logic gate multi-input or multi-stage, and as a result,
The total number of logic gates can be dramatically reduced.
In addition, this makes it possible to introduce a multi-level priority into an integrated circuit (LSI) having a limited number of logic gates. In addition, it is possible to cope with future multi-leveling without increasing the number of logic gates by changing the block division or using a duplex configuration of the priority encoding circuit.
【図1】本発明のプライオリティエンコード回路の実施
例のブロック図である。FIG. 1 is a block diagram of an embodiment of a priority encoding circuit of the present invention.
【図2】従来技術によるプライオリティエンコード回路
の構成例の説明図である。FIG. 2 is an explanatory diagram of a configuration example of a priority encoding circuit according to a conventional technique.
【図3】従来技術によるプライオリティエンコード回路
の構成例の説明図である。FIG. 3 is an explanatory diagram of a configuration example of a priority encoding circuit according to a conventional technique.
1〜3 オア素子 4 分割入力手段 5 プライオリティエンコード手段 6 保持レジスタ 7 制御部 1-3 OR element 4 divided input means 5 priority encoding means 6 holding register 7 control unit
Claims (1)
て入力すると共に、前記各ブロック内の複数の要求信号
の論理和から成る複数のブロック要求信号を入力し、前
記複数のブロック要求信号を出力した後、優先度の最も
高いブロックを示すブロック指示信号を入力すると、該
ブロック指示信号で示すブロック内の前記複数の要求信
号を出力する分割入力手段と、 前記分割入力手段から前記複数のブロック要求信号を入
力すると、優先度の最も高いブロックを判定して前記ブ
ロック指示信号を前記分割入力手段に出力し、該分割入
力手段より前記指示したブロック内の前記複数の要求信
号を入力すると、該複数の要求信号中から優先度の最も
高い要求信号を判定するプライオリティエンコード手段
とを含むことを特徴とするプライオリティエンコード回
路。 A plurality of request signals are divided into a plurality of blocks and input, and a plurality of block request signals formed by a logical sum of a plurality of request signals in each of the blocks are input, and the plurality of block request signals are input. After the output, when a block instruction signal indicating the block with the highest priority is input, the divided input unit that outputs the plurality of request signals in the block indicated by the block instruction signal; and the plurality of blocks from the divided input unit. When the request signal is input, the block having the highest priority is determined, the block instruction signal is output to the divided input means, and when the plurality of request signals in the designated block are input from the divided input means, Priority encoding means for determining a request signal having the highest priority from among a plurality of request signals. Code circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03311815A JP3101030B2 (en) | 1991-10-30 | 1991-10-30 | Priority encoding circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03311815A JP3101030B2 (en) | 1991-10-30 | 1991-10-30 | Priority encoding circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05128056A JPH05128056A (en) | 1993-05-25 |
| JP3101030B2 true JP3101030B2 (en) | 2000-10-23 |
Family
ID=18021747
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP03311815A Expired - Fee Related JP3101030B2 (en) | 1991-10-30 | 1991-10-30 | Priority encoding circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3101030B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5553722A (en) * | 1978-10-17 | 1980-04-19 | Toshiba Corp | Priority control system |
| JPH03179850A (en) * | 1989-12-07 | 1991-08-05 | Nec Corp | Common bus token control system |
| JP2751528B2 (en) * | 1990-02-20 | 1998-05-18 | 富士通株式会社 | Priority circuit |
-
1991
- 1991-10-30 JP JP03311815A patent/JP3101030B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05128056A (en) | 1993-05-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5978890A (en) | External storage control device and data transfer method between external storage control devices | |
| US4609995A (en) | Priority controller | |
| TW200818719A (en) | Low power balance code using data bus inversion | |
| JPH04358245A (en) | Data communication equipment | |
| US5721809A (en) | Maximum value selector | |
| JP3515591B2 (en) | A parallelized magnitude comparator that compares a binary number to a fixed value | |
| US20020087936A1 (en) | Method and apparatus for encoding a bus to minimize simultaneous switching outputs effect | |
| JP7524274B2 (en) | Encoding method, encoding system and display device | |
| US4538238A (en) | Method and apparatus for calculating the residue of a signed binary number | |
| JP3101030B2 (en) | Priority encoding circuit | |
| JPH05145770A (en) | Encoding/decoding device | |
| EP0612008A1 (en) | Multiple level parallel magnitude comparator | |
| US6012077A (en) | Method and apparatus for indicating overflow status of bit-variable data employing pipelining adder | |
| JP3509894B2 (en) | Parallelized size comparator | |
| US5777906A (en) | Left shift overflow detection | |
| CA2270328C (en) | Method and apparatus for efficient selection of a boundary value | |
| US11269631B2 (en) | Extending fused multiply-add instructions | |
| EP1247166B1 (en) | Device and method for performing a leading zero determination on an operand | |
| US6631393B1 (en) | Method and apparatus for speculative addition using a limited carry | |
| JP2002091901A (en) | Priority encoder | |
| JP2636669B2 (en) | Connection information detection circuit and connection information detection method | |
| KR100290545B1 (en) | Register file array having a two-bit to four-bit encoder | |
| JPH02143361A (en) | Processing sequence deciding circuit | |
| US4933894A (en) | Circuit and method for adding binary numbers with a difference of one or less | |
| JPS61275936A (en) | Condition determining device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |