JPS6318432A - Information retrieval device - Google Patents

Information retrieval device

Info

Publication number
JPS6318432A
JPS6318432A JP16087786A JP16087786A JPS6318432A JP S6318432 A JPS6318432 A JP S6318432A JP 16087786 A JP16087786 A JP 16087786A JP 16087786 A JP16087786 A JP 16087786A JP S6318432 A JPS6318432 A JP S6318432A
Authority
JP
Japan
Prior art keywords
circuit
bit
search
block
output
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
JP16087786A
Other languages
Japanese (ja)
Other versions
JPH0719203B2 (en
Inventor
Takeji Tokumaru
武治 得丸
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP61160877A priority Critical patent/JPH0719203B2/en
Publication of JPS6318432A publication Critical patent/JPS6318432A/en
Publication of JPH0719203B2 publication Critical patent/JPH0719203B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To speed up retrieving process, by performing retrieval in parallel with each bit of information to be retrieved and retrieving the bit position which is bit information of one side nearest to the bit, from which the retrieval is started. CONSTITUTION:If '1' is found in outputs PE0-PE7 of NOR circuits 17a-17h as the results of the 1st block 1, the output of an OR circuit 19 becomes '1' and the signal of the 2nd block 3 and is given to all NOR circuit of the 2nd block 3. Moreover, the output '1' of the circuit 19 is given to all NOR circuits of the 3rd and 4th blocks 5 and 7 through OR circuits 23 and 25. Therefore, all outputs PE8-PE31 of NOR circuits which become the results of the 2nd, 3rd, and 4th blocks 3, 5, and 7, become '0'. In such a way, the retrieved results of the blocks 1, 3, and 5 are respectively transmitted to the blocks 3-7, blocks 3 and 7, and block 7 in parallel with each other. Therefore, if '1' exists in the retrieved results of the block 1, the retrieved results of the block 7 become '0' irrespectively of the retrieved results of the blocks 3 and 5 and, as a result, the retrieval processing speed becomes higher.

Description

【発明の詳細な説明】 〔発明の目的] (産業上の利用分野) この発明は、2値化された検索情報の検索開始ビットに
最も近い一方のビット情報となっているビットの位置を
検索する情報検索装置に関する。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Application Field) This invention searches for the position of a bit that is one bit information that is closest to a search start bit of binarized search information. The present invention relates to an information retrieval device.

(従来の技術) 複数の“0′″、“1″により構成された検索情報にお
いて、検索方向に対して最初に“0°′、あるいは°“
1″となっているビットの位置を検出する方法としては
、検索情報を最下位ビットあるいは最−り位ビット方向
から順次1ビツトずつ検索して、゛0パ、1′°の判別
を行なう所謂シリアル検索方式が用いられている。
(Prior art) In search information composed of a plurality of "0'" and "1", first "0°" or "°" is searched in the search direction.
The method for detecting the position of the bit that is 1'' is to search the search information one bit at a time starting from the least significant bit or the most significant bit, and to determine whether it is 0 or 1'. A serial search method is used.

第6図は複数ビットから構成される検索情報をシリアル
検索方式により最下位ビット方向から検索して、最初に
“1゛°となっているビットの位置を検出し、そのビッ
ト位置をBCDコードで表わず情報検索装置の構成を示
す図である。同図に示す情報検索装置は、D型フリップ
フロップ101で構成され検索情報が格納されるシフト
レジスタ103、R8型フリップフロップ105、AN
D回路107、カウンタ109を有している。
Figure 6 shows that search information consisting of multiple bits is searched from the least significant bit direction using a serial search method, the position of the bit that is “1°” is first detected, and that bit position is converted into a BCD code. 1 is a diagram illustrating the configuration of an information retrieval device.The information retrieval device shown in the figure includes a shift register 103 which is composed of a D-type flip-flop 101 and stores search information, an R8-type flip-flop 105, an AN
It has a D circuit 107 and a counter 109.

シフトレジスタ103は、検索情報のビット数と同数の
D型フリップフロップ101を直列に接続されて構成さ
れている。それぞれのD型フリップフロップ101には
、1ビツトの検索情報が格納されており、それぞれのク
ロック)さ子CKにはアンド回路107の出力が供給さ
れている。シフトレジスタ103は、それぞれのD型フ
リップフロップ101のクロック端子GKにクロックが
与えられる毎に、D型フリップフロップ101に格納さ
れた検索情報を1ビツトずつシフトさせて出力する・乙
のである。
The shift register 103 is configured by connecting D-type flip-flops 101 in series, the same number as the number of bits of search information. Each D-type flip-flop 101 stores 1-bit search information, and the output of an AND circuit 107 is supplied to each clock CK. The shift register 103 shifts the search information stored in the D-type flip-flop 101 one bit at a time and outputs the result each time a clock is applied to the clock terminal GK of each D-type flip-flop 101.

R8型フリップフロップ105は、その人力Rにシフト
レジスタ103の出力が与えられており、入力Sに検索
U11信号が与えられている。R8型フリップフロップ
105は、検索開始信号が“1″になると出力Qは1′
′となり、この状態において人力Rが“1°′になると
、R8型フリップフロップ105はリセットされて、出
力Qは“OIIとなる。
The R8 type flip-flop 105 has its input R supplied with the output of the shift register 103, and its input S supplied with the search U11 signal. The R8 type flip-flop 105 has an output Q of 1' when the search start signal becomes "1".
', and when the human power R reaches "1°" in this state, the R8 type flip-flop 105 is reset and the output Q becomes "OII".

AND回路107は、その一方の入力にR8型フリップ
フロップ105の出力Qが与えられて、他方の入力には
シフトクロック信号SCKが与えられており、出力はそ
れぞれのD型フリップフロップ101のクロック端子G
Kに与えられている。
The AND circuit 107 has one input supplied with the output Q of the R8 type flip-flop 105, the other input supplied with the shift clock signal SCK, and the output from the clock terminal of each D type flip-flop 101. G
It is given to K.

A N D回路107は、R8型フリップフロップ10
5の出力Qが1′°の時にシフトクロック信号SCKを
それぞれのD型フリップフロップ101のクロック端子
CKに供給する。
The A N D circuit 107 is an R8 type flip-flop 10
When the output Q of the D-type flip-flop 101 is 1', the shift clock signal SCK is supplied to the clock terminal CK of each D-type flip-flop 101.

カウンタ109は、そのクロック端子CKにAND回路
107を介してシフトクロック信号SCKが与えられて
おり、このシフトクロック信号SCKの数をカウントア
ツプして、その値をBCDコードで出力するものである
。また、カウンタ109のリセット端子Rには検索開始
信号が与えられており、検索開始信号が1′′になると
、カウンタ109はリセットされてカウント)直をクリ
アする。
The counter 109 has its clock terminal CK supplied with a shift clock signal SCK via an AND circuit 107, counts up the number of shift clock signals SCK, and outputs the value in a BCD code. Further, a search start signal is applied to the reset terminal R of the counter 109, and when the search start signal reaches 1'', the counter 109 is reset and the counter 109 is cleared.

このような構成において、検索開始信号が“1″になる
と、R3型フリップフロップ105はリセットされて、
出力Qは“1パとなりこれがAND回路107の一方の
入力に与えられる。さらに、カウンタ109もリセット
されてカウント値がクリアされ検索が開始される。
In such a configuration, when the search start signal becomes "1", the R3 type flip-flop 105 is reset,
The output Q becomes "1" and is applied to one input of the AND circuit 107.Furthermore, the counter 109 is also reset, the count value is cleared, and the search is started.

このような状態において、シフトクロック信号SCKが
AND回路107を介してシフトレジスタ103を構成
するそれぞれのD型フリップ7Oツブ101のクロック
端子GKに供給される毎に、シフトレジスタ103に格
納された検索情報は、1ビツトずつシフトアウトされて
R8型フリップフロップ105の入力Rに供給される。
In such a state, each time the shift clock signal SCK is supplied to the clock terminal GK of each D-type flip 7O block 101 configuring the shift register 103 via the AND circuit 107, the search data stored in the shift register 103 is The information is shifted out one bit at a time and provided to input R of an R8 type flip-flop 105.

さらに、シフ1−クロック信号SGKは、カウンタ10
9のクロック端子CKに供給されて、シフトクロック信
号SCKの数がカウンタ109によりカウントアツプさ
れる。
Furthermore, the shift 1-clock signal SGK is applied to the counter 10.
A counter 109 counts up the number of shift clock signals SCK.

このように、シフトクロック信号SCKに同期して検索
情報が1ビツトずつシフトされている状態にあって、シ
フトレジスタ103からシフトアウトしてR3型フリッ
プフロップ105の入力Rに供給されたビットが°゛0
″である場合は、R8型フリップフロップ105の出力
Qは“1°′の状態であり、シフトクロック信号SCK
はAND回路107を介してシフトレジスタ103及び
カウンタ109に供給される。
In this way, the search information is being shifted bit by bit in synchronization with the shift clock signal SCK, and the bits shifted out from the shift register 103 and supplied to the input R of the R3 type flip-flop 105 are゛0
'', the output Q of the R8 type flip-flop 105 is in the "1°" state, and the shift clock signal SCK
is supplied to the shift register 103 and counter 109 via an AND circuit 107.

一方、シフトレジスタ103からシフトアウトしてR8
型フリップフロップ105の入力Rに供給されたビット
が1°′である場合には、R3型フリップフロップ10
5の出力Qは“O″となり、これにより、AND回路1
07の出力も0′°となり、シフトクロック信@ S 
CKはシフトレジスタ103及びカウンタ109に供給
されなくなる。
On the other hand, R8 is shifted out from the shift register 103.
If the bit supplied to the input R of type flip-flop 105 is 1°', then R3 type flip-flop 10
The output Q of 5 becomes “O”, and as a result, AND circuit 1
The output of 07 also becomes 0'°, and the shift clock signal @S
CK is no longer supplied to shift register 103 and counter 109.

このため、シフトレジスタ103のシフト動作及びカウ
ンタ109のカウント動作は停止される。
Therefore, the shift operation of the shift register 103 and the counting operation of the counter 109 are stopped.

したがって、カウント動作が停止するまでに、カウンタ
109によりカウントアツプされたシフトクロック信@
scKのカウント値が、検索情報の“1″となっている
ビットの位置を表わすことになる。
Therefore, by the time the counting operation is stopped, the shift clock signal @
The count value of scK represents the position of the bit that is "1" in the search information.

例えば、検索情報が4ビツト長で構成され3ビツト〜0
ビツトが“’oioo”であり、2ビツト目が゛1′°
になっている場合には、シフトレジスタ103は4個の
D型フリップフロップ101で構成され、第7図に示す
如く、3つ目のシフトクロツタ信号SCKにより、検索
情報の2ビツト目のII 1 IIがシフトレジスタ1
03からシフトアウトして、R3型フリップフロップ1
05の出力Qが0″となる。したがって、3つ目のシフ
トクロック信号SCKでシフト動作及びカウント動作が
停止して、カウンタの出力は’ooio”となり、検索
情報の″1nとなっているビットの位置が検出される。
For example, if the search information is 4 bits long, 3 bits to 0
The bit is “'oioo” and the second bit is “1’°
, the shift register 103 is composed of four D-type flip-flops 101, and as shown in FIG. is shift register 1
Shift out from 03, R3 type flip-flop 1
The output Q of 05 becomes 0''. Therefore, the shift operation and counting operation are stopped by the third shift clock signal SCK, and the output of the counter becomes 'ooio', and the bit of the search information that is ``1n'' is The position of is detected.

(発明が解決しようとする問題点) 以上説明したように、シリアル検索方式にあっては、検
索情報をクロック信号により1ビツトずつシフトさせて
、検索情報の最初に例えば11Nとなっているビットを
シフトアウトさせるために要したクロック信号の数をカ
ウントすることにより、“1パとなっているビットの位
置を検出していた。
(Problems to be Solved by the Invention) As explained above, in the serial search method, the search information is shifted one bit at a time by a clock signal, and the bit 11N, for example, is placed at the beginning of the search information. By counting the number of clock signals required to shift out, the position of the bit that is "1 pass" is detected.

このように、検索情報を1ビツトずつシフトさせて検索
を行なうために、検索時間は検索しようとする例えば“
1”となっているビットの位置に依存していた。このた
め、検索時間は例えば最上位ビットにのみ1″がある検
索情報を最下位ビット方向から検索した時に最長となり
、検索情報が多数のビットで構成されている場合に、か
なりの検索時間がかかるという問題があった。
In this way, since the search is performed by shifting the search information one bit at a time, the search time is reduced by the time it takes to search, for example, “
This depends on the position of the bit that is 1". For this reason, the search time is longest when, for example, searching information that has 1" only in the most significant bit is searched from the least significant bit, and if the search information is There was a problem in that it took a considerable amount of time to search when the search was made up of bits.

そこで、この発明は上記に鑑みてなされたものであり、
検索情報のビット数及び検索情報の内容に依存すること
なく検索処理を高速に行なうことがでさる情報検索装置
を提供することを目的とする。
Therefore, this invention was made in view of the above,
An object of the present invention is to provide an information retrieval device that can perform a retrieval process at high speed without depending on the number of bits of retrieval information and the content of the retrieval information.

[発明の構成] (問題点を解決するための手段) 上記目的を達成するために、この発明の情報検索装置は
、複数の2値化されたビット情報で構成された検索情報
のそれぞれのビットを最下位ビット方向あるいは最上位
ビット方向から並行して検索を行ない、検索を開始した
ビットに最も近い一方のビット情報となっているビット
の位置を検出する検索手段と、前記一方のビット情報と
なっているビットの位置を最下位ビット目からの相対位
置としてBCDコードに変換する変換手段とにより構成
される。
[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, the information retrieval device of the present invention searches for each bit of retrieval information composed of a plurality of binary bits of information. a search means for searching in parallel from the least significant bit direction or the most significant bit direction, and detecting the position of the bit that is the one bit information closest to the bit at which the search is started; and converting means for converting the position of the bit corresponding to the BCD code into a BCD code as a relative position from the least significant bit.

(作用) この発明の情報検索装置においては、検索情報のそれぞ
れのビットを最下位ビット方向あるいは最上位ビット方
向から並行して検索を行ない、検索を開始したビットに
最も近い一方のビット情報となっているビットの位置を
検出して、この位置を最下位ビット目からの相対位置と
してBCDコードに変換する。
(Operation) In the information retrieval device of the present invention, each bit of the retrieval information is retrieved in parallel from the least significant bit direction or the most significant bit direction, and one of the bits of information closest to the bit that started the search is retrieved. The position of the bit is detected, and this position is converted into a BCD code as a relative position from the least significant bit.

(実施例) 以下図面を用いてこの発明の一実施例を説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図及び第2図はこの発明の一実施例に係る情報検索
装置を示す構成図であり、この情報検索装置は検索部と
変換部とから構成されており、第1図は検索部の構成を
示す図であり、第2図は変換部の構成を示す図である。
1 and 2 are block diagrams showing an information retrieval device according to an embodiment of the present invention. This information retrieval device is composed of a retrieval section and a conversion section. FIG. 2 is a diagram showing the configuration, and FIG. 2 is a diagram showing the configuration of a converting section.

この実施例における情報検索装置は、1′′、110 
I+で2値化され32ビツトで構成された検索情報を、
最下位ビットあるいは最上位ビット方向から最初に°“
1″となっているビットの位置を検索して、この位置を
BCDコードに変換するものである。
The information retrieval device in this embodiment includes 1'', 110
Search information that is binarized with I+ and consists of 32 bits,
°“ starting from the least significant bit or most significant bit direction.
It searches for the position of the bit that is 1'' and converts this position into a BCD code.

第1図に示す検索部は、上述したように、21直化され
た32ビツトの検索情報を最下位ビットあるいは最上位
ビット方向から最初に“1″となっているビットの位置
を検索して、検索結果において他のビットをすべてO″
とする。例えば、32ビツトの検索情報にあって、Oビ
ット目及び1ビツト目がto11.2ビツト目が“°1
゛′となっている検索情報を最下位ビット方向から検索
した場合には、検索情報の3ビツト目から31ビツト目
の値にかかわらず、検索結果は2ビツト目は1°′とな
り、他のビットはすべて“0″となる。
As mentioned above, the search unit shown in FIG. , all other bits in the search results are O''
shall be. For example, in 32-bit search information, the 0th bit and 1st bit are to11, and the 2nd bit is “°1”.
If the search information that is ``'' is searched from the least significant bit direction, the search result will be 1°' for the 2nd bit, regardless of the value of the 3rd to 31st bits of the search information. All bits become "0".

検索部は4つのブロックに分割されており、第1ブロツ
ク1、第2ブロツク3、第3ブロツク5、第4ブロツク
7から構成されている。各ブロックは最下位ビット方向
からの検索において、第1ブロツク1は32ビツトの検
索情報のうちOビット目〜7ビツト目の検索情報の検索
処理を行ない、第2ブロツク3は8ビット目〜15ピッ
1−目、第3ブロツク5は16ビツト目〜23ビツト目
、第4ブロツク7は24ビツト目〜31ビツト目の検索
情報の検索処理を行なう。また、各ブロックは最上位ビ
ット方向からの検索において、第1ブロツク1は31ビ
ツト目〜24ビツト目、第2ブロツク3は23ビツト目
〜16ビツト目、第3ブロツク5は15ビツト目〜8ビ
ツト目、第4ブロツク7は7ビツト目〜Oビツト目の検
索情報の検索処理を行なう。
The search section is divided into four blocks, consisting of a first block 1, a second block 3, a third block 5, and a fourth block 7. In each block, when searching from the least significant bit direction, the first block 1 performs search processing for search information from the 0th bit to the 7th bit of the 32 bits of search information, and the second block 3 searches for the 8th bit to the 15th bit. The 1-th bit, the third block 5 searches for the 16th bit to the 23rd bit, and the fourth block 7 searches for the 24th bit to the 31st bit. Furthermore, when each block is searched from the most significant bit, the first block 1 searches from the 31st bit to the 24th bit, the second block 3 searches from the 23rd bit to the 16th bit, and the third block 5 searches from the 15th bit to the 8th bit. The fourth block 7, the fourth bit, performs a search process for the search information of the 7th bit to the Oth bit.

第1ブロツク1は、パストランジスタ11a〜11h 
、13a 〜13h 、インバータ回路15a〜15h
SNOR回路17a 〜17h 、 OR回路19とか
ら構成されている。
The first block 1 includes pass transistors 11a to 11h.
, 13a to 13h, inverter circuits 15a to 15h
It is composed of SNOR circuits 17a to 17h and an OR circuit 19.

パストランジスタ11a〜11h及びパストランジスタ
13a〜13hは、検索情報を情報検索装置に与えるパ
スライン21とインバータ回路15a〜15hの入力端
子との間にそれぞれ接続されている。パストランジスタ
118〜11hは、最下位ビット方向からの検索におい
て検索信号りによりパスライン21からOピット目〜7
ビツト目の検索情報をそれぞれにインバータ回路15a
〜15hの入力端子に供給するものである。パストラン
ジスタ13a〜13hは、最上位ビット方向からの検索
において検索信号〜1によりパスライン21から31ビ
ツト目〜24ビツト目の検索情報をそれぞれのインバー
タ回路15a〜15hの入力端子に供給するものである
Pass transistors 11a to 11h and pass transistors 13a to 13h are connected between a pass line 21 that provides search information to the information retrieval device and input terminals of inverter circuits 15a to 15h, respectively. The pass transistors 118 to 11h move from the pass line 21 to the O-th pit to the 7th pit according to the search signal in the search from the least significant bit direction.
Inverter circuit 15a for each bit of search information
~15h input terminal. The pass transistors 13a to 13h supply the search information of the 31st to 24th bits from the pass line 21 to the input terminals of the respective inverter circuits 15a to 15h by the search signal ~1 in the search from the most significant bit direction. be.

これらのパストランジスタ118〜11h、13a〜1
3hは、例えば第3図に示すような回路で構成されてい
る。同図に示すパストランジスタは、お互いのソース端
子及びドレイン端子が接続されたPチャンネルMOSト
ランジスタ(以下rPMO8J 、!:呼ぶ)23とN
チャンネルMOSトランジスタ(以下rNMO8Jと呼
ぶ)25と、インバータ回路27とから構成されている
。パストランジスタ118〜11hにあっては、NMO
825のゲート端子に検索信号りが与えられており、P
MO323のゲート端子にインバータ回路27を介して
検索信号りが与えられている。また、パストランジスタ
13a〜13hにあっては、NMO825のゲート端子
に検索信Q Mが与えられており、PMO323のゲー
ト端子にインバータ回路27を介して検索信号Mが与え
られている。
These pass transistors 118-11h, 13a-1
3h is composed of a circuit as shown in FIG. 3, for example. The pass transistor shown in the figure is a P-channel MOS transistor (hereinafter referred to as rPMO8J) 23 and an N-channel MOS transistor whose source and drain terminals are connected to each other.
It is composed of a channel MOS transistor (hereinafter referred to as rNMO8J) 25 and an inverter circuit 27. In the pass transistors 118 to 11h, NMO
A search signal is given to the gate terminal of 825, and P
A search signal is applied to the gate terminal of the MO 323 via the inverter circuit 27. Further, in the pass transistors 13a to 13h, a search signal QM is applied to the gate terminal of the NMO 825, and a search signal M is applied to the gate terminal of the PMO 323 via the inverter circuit 27.

このような回路構成においては、検索信号りあるいは検
索信号Mがハイレベル状態になると、PMO823及び
NMO825は導通状態となり、パスライン21から検
索情報がそれぞれインバータ回路15a〜15hに与え
られる。したがって、パストランジスタ118〜11h
は、最下位ビット方向からの検索時に検索信号りがハイ
レベル状態となることにより導通状態となり、0ビツト
目〜7ビツト目の検索情報をインバータ回路15a〜1
5hに供給する。また、パストランジスタ13a〜13
hは、最上位ビット方向からの検索時に検索信号Mがハ
イレベル状態となることにより導通状態となり、31ビ
ツト目〜24ビツト目の検索情報をインバータ回路15
a〜15hに供給する。
In such a circuit configuration, when the search signal R or the search signal M becomes a high level state, the PMO 823 and the NMO 825 become conductive, and the search information is provided from the pass line 21 to the inverter circuits 15a to 15h, respectively. Therefore, pass transistors 118 to 11h
becomes conductive when the search signal becomes high level when searching from the least significant bit direction, and the search information of the 0th bit to 7th bit is transferred to the inverter circuits 15a to 15a.
Supply every 5 hours. In addition, pass transistors 13a to 13
h becomes conductive when the search signal M goes high when searching from the most significant bit direction, and the search information of the 31st to 24th bits is transferred to the inverter circuit 15.
Supply from a to 15h.

NOR回路17a〜17hは、それぞれの入力にインバ
ータ回路15a〜15hの出力が各別に供給されている
とともに、NOR回路17a〜17gの出力は、次段以
降のNOR回路17b〜17hの入力に供給されている
。また、NOR回路17a〜17hの入力には、ブロッ
ク毎の検索結果を他のブロックに伝達するブロック信号
が与えられており、第1ブロツクには、ロウレベル状態
のブロック信号が与えられている。
The outputs of the inverter circuits 15a to 15h are separately supplied to the respective inputs of the NOR circuits 17a to 17h, and the outputs of the NOR circuits 17a to 17g are supplied to the inputs of the NOR circuits 17b to 17h in the next and subsequent stages. ing. Further, inputs of the NOR circuits 17a to 17h are supplied with block signals for transmitting search results for each block to other blocks, and the first block is supplied with a block signal in a low level state.

NOR回路17a〜17hは、最下位ビット方向からの
検索においては、検索情報の0ビツト目〜7ビツト目の
検索結果を、それぞれ出力PEO〜PE7に出力し、最
上位ビット方向からの検索においては、検索情報の31
ビツト目〜24ビツト目の検索結果を、それぞれ出力P
E0−PE7に出力する。
The NOR circuits 17a to 17h output the search results of the 0th bit to 7th bit of the search information to outputs PEO to PE7, respectively, when searching from the least significant bit direction, and output the search results from the 0th bit to 7th bit of the search information to outputs PEO to PE7, respectively, when searching from the most significant bit direction. , search information 31
Outputs the search results for bits 1 to 24, respectively.
Output to E0-PE7.

NOR回路17a〜17hは、それぞれの入力に各別に
与えられる検索情報の0″、“1″の判別を行ない、パ
スライン21から0”の検索情報が、インバータ回路を
介してNOR回路に与えられると、NOR回路の出力は
O″となる。
The NOR circuits 17a to 17h determine whether the search information given to each input is 0" or "1", and the search information 0" from the pass line 21 is given to the NOR circuit via the inverter circuit. Then, the output of the NOR circuit becomes O''.

また、“1′′の検索情報が与えられると、この検索情
報が与えられたNOR回路の前段すべてのNOR回路の
出力が°“0″の場合には、“1″の検雷情報が与えら
れたNOR回路の出力は1″となる。ざらに、NOR回
路の出力は次段以降のNOR回路の入力に与えられてい
るために、出力が1′となったNOR回路の次段以降の
すべてのNOR回路の出力は°°0″となる。
Furthermore, when search information of “1'' is given, if the outputs of all NOR circuits in the preceding stages of the NOR circuit to which this search information is given are “0”, lightning detection information of “1” is given. The output of the NOR circuit is 1''. Roughly speaking, since the output of the NOR circuit is given to the input of the NOR circuits from the next stage onward, the outputs of all the NOR circuits from the stage after the NOR circuit whose output is 1' are °°0''. Become.

例えば、最下位ビット方向からの検索において、検索情
報のOビット目〜3ビット目が“0”であり、4ビツト
目が1゛′である場合には、“OIsであるOビット目
〜3ビット目の検索情報は、検索情報のそれぞれのビッ
トに対応したNOR回路17a〜17dにそれぞれ対応
したインバータ回路15a〜15dを介して供給されて
、NOR回路178〜17dのそれぞれの出力PEO〜
PE3は“0パとなる。
For example, in a search from the least significant bit direction, if the 0th bit to 3rd bit of the search information is "0" and the 4th bit is 1'', then "0th bit to 3rd bit which is OIs" The bit-th search information is supplied to NOR circuits 17a to 17d corresponding to each bit of the search information via inverter circuits 15a to 15d, respectively, and outputs PEO to each of NOR circuits 178 to 17d.
PE3 becomes “0pa”.

また、“1”である4ビツト目の検索情報は、インバー
タ回路15eを介してNOR回路17eに供給される。
Furthermore, the fourth bit of search information, which is "1", is supplied to the NOR circuit 17e via the inverter circuit 15e.

このNOROR回路19入力には、このNOR回路17
eの前段すべてのNOR回路15a〜15dの出力が与
えられているため、すなわち、NOR回路17a 〜1
7dの出力PEO〜PE3が与えられているため、NO
R回路17eの出力PE4は“1″となる。
This NOR circuit 17 is connected to the input of this NOR circuit 19.
Since the outputs of all the NOR circuits 15a to 15d in the previous stage of e are given, that is, the NOR circuits 17a to 1
Since the outputs PEO to PE3 of 7d are given, NO
The output PE4 of the R circuit 17e becomes "1".

さらに、NOR回路17eの1″となった出力PE4は
、このNOR回路17eの次段以降、すなわち、NOR
回路17f〜17hの入力に与えられて、5ビツト目〜
7ビツト目の検索情報の値にかかわらず、NOR回路1
7f〜17hの出力PE5〜PE7はすべて“0′°と
なる。
Furthermore, the output PE4 of the NOR circuit 17e, which has become 1'', is used in the subsequent stages of this NOR circuit 17e, that is, the NOR
Given to the inputs of circuits 17f to 17h, the 5th bit to
Regardless of the value of the 7th bit search information, NOR circuit 1
The outputs PE5 to PE7 of 7f to 17h are all "0'°.

OR回路19は、その入力にNOR回路17a〜17h
の出力PEO〜PE7が与えられているとともに、ブロ
ック信号が与えられている。このOR回路19は、第1
ブロツク1の検索結果を第2ブロツク3、第3ブロツク
5、第4ブロツク7に伝iWするものである。すなわら
、第1ブロツク1において、NOR回路17a〜17h
の出力PEO〜PE7のうら、少な(とも1つが1′′
である場合には、第2ブロツク3〜第4ブロツク7の検
索結果をすべて0″にする。
The OR circuit 19 has NOR circuits 17a to 17h at its inputs.
The outputs PEO to PE7 are given, and a block signal is also given. This OR circuit 19
The search result of block 1 is transmitted to the second block 3, third block 5, and fourth block 7. That is, in the first block 1, the NOR circuits 17a to 17h
The outputs of PEO to PE7 are small (each one is 1''
If so, the search results for the second block 3 to fourth block 7 are all set to 0''.

第2ブロツク3、第3ブロツク5、第4ブロツク7は、
第1ブロツク1と同様に構成されており、同一の様能を
有している。なお、第4ブロツクにおいてはOR回路を
有していない。第2ブロツク3は、供給される検索情報
の検索結果を出力PE8〜PE15に与え、第3ブロツ
ク5は、供給される検索情報の検索結果を出力PE16
〜23に与え、第4ブロツク7は、供給される検索情報
の検索結果を出力PE24〜PE31に与える。
The second block 3, the third block 5, and the fourth block 7 are
It is constructed similarly to the first block 1 and has the same features. Note that the fourth block does not have an OR circuit. The second block 3 provides the search results of the supplied search information to the output PEs 8 to PE15, and the third block 5 provides the search results of the supplied search information to the output PE 16.
-23, and the fourth block 7 provides the search results of the supplied search information to outputs PE24-PE31.

第2ブロツク3に供給されるブロック信号は、第1ブロ
ツク1の検索結果を示すOR回路19の出力となり、第
3ブロツク5に供給されるブロック信号は、第1ブロツ
ク1のOR回路19の出力と第2ブロツク3のOR回路
の出力とのOR回路23による論理和出力となり、第4
ブロツク7のブロック信号は、第1ブロツク1、第2ブ
ロツク3、第3ブロツク5のそれぞれのOR回路の出力
のOR回路25による論理和出力となる。
The block signal supplied to the second block 3 becomes the output of the OR circuit 19 indicating the search result of the first block 1, and the block signal supplied to the third block 5 becomes the output of the OR circuit 19 of the first block 1. and the output of the OR circuit of the second block 3 are output by the OR circuit 23, and the fourth
The block signal of the block 7 is the logical sum output of the outputs of the OR circuits of the first block 1, the second block 3, and the third block 5 from the OR circuit 25.

例えば、第1ブロツク1の検索結果において、NOR回
路17a〜17hの出力PEO〜PE7に1°゛がある
と、OR回路19の出力は“1″となり、これは、第2
ブロツク3のブロック信号となり、第2ブロツク3のす
べてのNOR回路に与えられる。また、OR回路19の
“1゛出力は、OR回路23.25を介して第3ブロツ
ク5及び第4ブロツク7に与えられ、第3ブロツク5及
び第4ブロツク7のすべてのNOR回路に与えられる。
For example, in the search result of the first block 1, if the outputs PEO to PE7 of the NOR circuits 17a to 17h have 1°, the output of the OR circuit 19 will be "1", which means that the output of the OR circuit 19 will be "1".
This becomes a block signal for block 3 and is applied to all NOR circuits in second block 3. Further, the "1" output of the OR circuit 19 is given to the third block 5 and the fourth block 7 via the OR circuits 23 and 25, and is given to all the NOR circuits of the third block 5 and the fourth block 7. .

したがって、第2ブロツク3、第3ブロツク5、第4ブ
ロツク7のそれぞれの検索結果となるNOR回路)出力
PE8〜PE31はすべr”o”となる。
Therefore, the NOR circuit outputs PE8 to PE31 which are the search results of the second block 3, third block 5, and fourth block 7 are all r"o".

このように、第1ブロツク1の検索結果は、第2ブロツ
ク3〜第4ブロツク7に、第2ブロツク3の検索結果は
、第3ブロツク5、第4ブロツク7に、第3ブロツク5
の検索結果は第4ブロツク7に並列に伝逐されている。
In this way, the search result of the first block 1 is sent to the second block 3 to the fourth block 7, the search result of the second block 3 is sent to the third block 5, the fourth block 7, and the third block 5.
The search results are transmitted to the fourth block 7 in parallel.

したがって、例えば第1ブロツク1の検索結果に“1″
′がある場合には、第4ブロツク7の検索結果は、第2
10ツク3及び第3ブロツク5の検索結果にかかわらず
II O11となり、検索情報の処理が高速に行なわれ
ることになる。
Therefore, for example, the search result for the first block 1 is "1".
′, the search result of the fourth block 7 is
Regardless of the search results of the 10th block 3 and the 3rd block 5, the result is IIO11, and the searched information is processed at high speed.

ところで、検索情報をシリアル方式により処理した場合
の回路構成の一例を第4図に示ず、同図に示すシリアル
方式は、32ビツトの検索情報の検索処理を行なうもの
であり、検索情報が前段の検索結果とAND回路27に
より論理積をとることにより検索処理が行なわれて、こ
の検索結果がNOR回路29及びインバータ回路31を
介して次段に供給されるようになっている。寸なわら、
最下位ビット方向からの検索にあっては、検索結果が下
位ビット方向から順次上位ビット方向へ伝達される。
By the way, an example of the circuit configuration when the search information is processed by the serial method is not shown in FIG. The search process is performed by logically multiplying the search result and the AND circuit 27, and this search result is supplied to the next stage via the NOR circuit 29 and the inverter circuit 31. Although it is small,
When searching from the least significant bit, the search results are sequentially transmitted from the least significant bit to the most significant bit.

したがって、例えば、32ビツトで構成されOビット目
〜30ビット目が゛0パであり31ビツト目だけが11
1 ITである検索情報を、最下位ビット方向から検索
処理を行なった場合に、31ビツト目の出力PE31が
“1゛°となるためには、30個のNOR回路29及び
31個のインバータ回路31の遅延時間が必要となる。
Therefore, for example, it is composed of 32 bits, the 0th bit to the 30th bit are 0, and only the 31st bit is 11.
1 When searching information that is IT is searched from the least significant bit, 30 NOR circuits 29 and 31 inverter circuits are required for the 31st bit output PE31 to be "1°". 31 delay times are required.

このため、シリアル方式においては高速な検索処理は困
難となる。
For this reason, high-speed search processing is difficult in the serial method.

しかしながら、この実施例においては、検索情報をブロ
ック毎に並列処理することで、検索処理ばかなりgi″
aに行なわれる。
However, in this embodiment, by processing the search information in parallel for each block, the search process can be performed in parallel.
It is done in a.

第1図に示した構成において、例えば、32ビツトの検
索情報の○ビット目のみが“0°′で他のビットがすべ
て1′°の場合の最下位ビット方向からの検索処理は、
NOR回路17aの出力PEOに°°0°゛が出力され
NOR回路171)の出力PE1に“1″が出力された
後、NOR回路17c〜NOR回路17hの出力PE2
〜PE7にパ0°゛が出力されるとともにOR回路19
の出力が°″1′′となり、次いで、第2ブロツク3の
PE8〜PE15に“0″が出力されるとともにOR回
路23゜25の出力が“1°°となり、第3ブロツク5
、第4ブロツク7の出力PE16〜PE31に“0″が
出力される。
In the configuration shown in FIG. 1, for example, when only the ○th bit of the 32-bit search information is "0°" and all other bits are 1'°, the search process from the least significant bit is as follows:
After "°0°" is output to the output PEO of the NOR circuit 17a and "1" is output to the output PE1 of the NOR circuit 171), the outputs PE2 of the NOR circuits 17c to 17h are output.
〜P0°゛ is output to PE7 and OR circuit 19
The output of the gate becomes ``1'', then ``0'' is output to PE8 to PE15 of the second block 3, and the output of the OR circuit 23゜25 becomes ``1'', and the output of the third block 5 becomes ``1''.
, "0" is output to the outputs PE16 to PE31 of the fourth block 7.

このため、検索結果を得るための遅延時間は、NOR回
路17a−+NOR回路171)→NOR回路17c〜
N0RI 7h 、OR回路19→第2ブoyり(7)
NOR回路、OR回路23.OR回路25→第3ブロツ
ク5及び第4ブロツク7のNOR回路の合計5個の論理
回路弁となり、検索処理はかなり高速に行なわれること
になる。
Therefore, the delay time for obtaining the search result is NOR circuit 17a-+NOR circuit 171) → NOR circuit 17c~
N0RI 7h, OR circuit 19 → second blow (7)
NOR circuit, OR circuit 23. There are a total of five logic circuit valves, including the OR circuit 25 and the NOR circuits of the third block 5 and the fourth block 7, and the search process is performed at a considerably high speed.

また、この実施例にあっては、検索情報をブロック毎に
処理しているが、ブロックに分割せずに検索情報の検索
を行なう場合には、前段のNOR回路の出力が次段以舒
のすべてのNOR回路の入力に供給されるようになる。
Further, in this embodiment, the search information is processed block by block, but when searching the search information without dividing it into blocks, the output of the NOR circuit at the previous stage is processed by the output from the NOR circuit at the next stage. It is now supplied to the inputs of all NOR circuits.

このため、最終段のNOR回路の入力には、前段すべて
のNOR回路の出力PE0−PE30が供給されて、最
終段のNOR回路は32人力のNOR回路となる。
Therefore, the outputs PE0 to PE30 of all the previous stage NOR circuits are supplied to the input of the final stage NOR circuit, and the final stage NOR circuit becomes a 32-manpower NOR circuit.

第6図は、多入力NOR回路の一例を示ず構成図である
。このNOR回路は、n個の入力と同数だけ直列に接続
されたPMO833と、n個の並列に接続されたNMO
835とから構成されており、P M OSとNMO8
とを用いたN OR回路にあっては、通常用いられてい
る回路構成である。
FIG. 6 is a block diagram showing an example of a multi-input NOR circuit. This NOR circuit consists of PMO833 connected in series with the same number as n inputs, and NMO833 connected in parallel with n inputs.
835, P M OS and NMO8
This is a commonly used circuit configuration for a NOR circuit using .

このような構成にあって、出力○UTを0″とする場合
に警よ、少なくともNMO835のうちの1つが導通状
態になればよいので、If OII比出力比較的高速に
行なわれる。しかしながら、出力OUTを″1′°とす
る場合には、n個のPMO8をすべて導通状態にしなけ
ればならないので、°゛1″1″出力n比出力比べてか
なり遅れることになる。
In such a configuration, when the output ○UT is set to 0'', it is necessary that at least one of the NMOs 835 becomes conductive, so if OII ratio output is performed relatively quickly.However, the output When OUT is set to ``1'', all n PMOs 8 must be rendered conductive, so that the output is considerably delayed compared to the n ratio output of ``1''.

したがって、多入力構成のNOR回路にあっては、高速
動作を行なうことは困難となる。ゆえに、第1図に示し
た検索部においては、多入力構成を避けるために、検索
情報をブロックに分割して検索することにより、NOR
回路の入力を9人力程度に抑えて、1”出力の遅れを小
さくするように対策した。
Therefore, it is difficult for a NOR circuit with a multi-input configuration to operate at high speed. Therefore, in the search section shown in FIG.
Measures were taken to reduce the circuit input to about 9 human power and reduce the 1" output delay.

第2図は変換部の構成を示す図であり、この変換部は、
OR回路37a 〜37j 、39a 〜39e 、E
XOR(排他的論理和)回路41a〜41e1パストラ
ンジスタ43a〜43eとを有しており、検索結果をB
CDコードに変換するものである。
FIG. 2 is a diagram showing the configuration of the converting section, and this converting section is
OR circuits 37a to 37j, 39a to 39e, E
It has XOR (exclusive OR) circuits 41a to 41e1 and pass transistors 43a to 43e, and the search results are
This is to convert it into a CD code.

32ビツトの検索情報の検索結果において、“1″とな
ってビット位置は、次式によりBCDコードで表わされ
る。
In the search result of 32-bit search information, the bit position that is "1" is represented by a BCD code according to the following equation.

a42’ +a323+a222+a +  2’+a
02゜ ここで、a4.a3.a2.al、aOはそれぞれ16
.8,4.2.1の重みを有している。例えば、検索結
果の3ビツト目が1゛である場合には、a4=110u
、a3=1101Za2=”O”、a1=“1”、a 
o = ” 1 ”となり、検索結果はBCDコードで
、“00011°′と表わされる。
a42' +a323+a222+a + 2'+a
02°Here, a4. a3. a2. al and aO are each 16
.. It has a weight of 8.4.2.1. For example, if the third bit of the search result is 1, a4=110u
, a3=1101Za2="O", a1="1", a
o = "1", and the search result is expressed as "00011°' in BCD code.

OR回路37a〜37jは、その入力に検索部のNOR
回路の出力PEO〜PE31が供給されている。具体的
には、OR回路37aの入力にはPEI、PE9、PE
17、PE25が与えられており、OR回路37bの入
力にはPE2、PE10、PE18、PE26、OR回
路37Cの入力にはPE3、PEI 1、PE19、P
E27、OR回路37dの入力にはPE4、PE12、
PE20.PE28、OR回路37eの入力にはPE5
、PE13、PE21、PE29、OR回路37f)入
力1.:はPE6、PE14、PE22、PE30、O
R回路37aの入力にはPE7、PE15、PE23、
PE31が与えられている。
The OR circuits 37a to 37j have inputs of the NOR of the search section.
The outputs of the circuit PEO to PE31 are supplied. Specifically, the inputs of the OR circuit 37a are PEI, PE9, and PE.
17, PE25 are given to the inputs of the OR circuit 37b, PE2, PE10, PE18, PE26, and the inputs of the OR circuit 37C are PE3, PEI 1, PE19, P
E27, the input of the OR circuit 37d is PE4, PE12,
PE20. PE28 and PE5 are input to the OR circuit 37e.
, PE13, PE21, PE29, OR circuit 37f) Input 1. : PE6, PE14, PE22, PE30, O
The inputs of the R circuit 37a include PE7, PE15, PE23,
PE31 is given.

OR回路37hの入力にはPE8〜PE15、OR回路
37iの入力にはPE16〜PE23、OR回路37j
の入力にはPE24〜PE31が与えられている。
The inputs of the OR circuit 37h are PE8 to PE15, the inputs of the OR circuit 37i are PE16 to PE23, and the OR circuit 37j
PE24 to PE31 are given to the inputs of.

OR回路398〜39eは、その入力にOR回路37a
〜37jの出力が供給されている。具体的には、OR回
路39aの入力には、OR回路37a 、37c 、3
7e 、37(+の出力が与えられており、OR回路3
9bの入力には、OR回路37b 、37c 、37r
 、37fJの出力、OR回路39cの入力には、OR
回路37d 、37e 、37r、37gの出力、オア
回路39dの入力には、オア回路37h、37jの出力
、オア回路39eの入力には、オア回路37i 、37
jの出力が与えられている。
The OR circuits 398 to 39e have an input of the OR circuit 37a.
~37j outputs are supplied. Specifically, the inputs of the OR circuit 39a include OR circuits 37a, 37c, 3
7e, 37(+ output is given, OR circuit 3
The input of 9b includes OR circuits 37b, 37c, 37r.
, 37fJ and the input of the OR circuit 39c.
The outputs of the circuits 37d, 37e, 37r, 37g, the inputs of the OR circuit 39d are the outputs of the OR circuits 37h, 37j, the inputs of the OR circuit 39e are the OR circuits 37i, 37
The output of j is given.

オア回路39a〜39eは、その出力に検索結果のBC
Dコードが出力される。すなわち、オア回路39aの出
力には前述したBCDコードのaoが出力され、オア回
路39bの出力にはal、オア回路39cの出力にはa
2、オア回路39dの出力にはa3、オア回路39eの
出力にはa4が出力される。
The OR circuits 39a to 39e output the BC of the search results.
A D code is output. That is, the aforementioned BCD code ao is output to the output of the OR circuit 39a, al is output to the output of the OR circuit 39b, and a is output to the output of the OR circuit 39c.
2. A3 is output from the OR circuit 39d, and a4 is output from the OR circuit 39e.

E X OR回路41a〜41eは、それぞれの−方の
入力に検索信号Mが与えられている。EXOR回路41
aの他方の入力にはオア回路39aの出力が与えられて
おり、EXOR回路41bの他方の入力にはオア回路3
9bの出力、EXOR回路41Cの他方の入力にはオア
回路39cの出力、EXOR回路41dの他方の入力に
はオア回路39dの出力、EXOR回路41eの他方の
入力にはオア回路39eの出力が与えられている。
The search signal M is applied to each negative input of the EXOR circuits 41a to 41e. EXOR circuit 41
The output of the OR circuit 39a is given to the other input of a, and the output of the OR circuit 39a is given to the other input of the EXOR circuit 41b.
9b, the other input of the EXOR circuit 41C is given the output of the OR circuit 39c, the other input of the EXOR circuit 41d is given the output of the OR circuit 39d, and the other input of the EXOR circuit 41e is given the output of the OR circuit 39e. It is being

ところで、検索情報が最上位ビット方向から検索される
場合には、検索情報の31ビツト目の検索結果はPEO
に出力され、0ビツト目の検索結果はPE31に出力さ
れることになり、検索結果は、検索情報が最下位ビット
方向から検索される場合と逆になる。例えば、最上位ビ
ット方向からの検索にあって、検索情報の31ビツト目
が1″である場合には、PEOは“1″、PE1〜PE
30は0゛′となり、aO〜a4はすべて0′。
By the way, when the search information is searched from the most significant bit direction, the search result for the 31st bit of the search information is PEO.
The search result for the 0th bit is output to the PE 31, and the search result is the opposite of the case where the search information is searched from the least significant bit. For example, in a search from the most significant bit direction, if the 31st bit of the search information is 1'', PEO is “1” and PE1 to PE
30 becomes 0', and aO to a4 are all 0'.

となる。これは、検索情報のOビット目が゛1パである
ことを表わしており、検索結果はOビット目からの相対
位置を表わさないことになる。
becomes. This indicates that the 0th bit of the search information is the 1st bit, and the search result does not represent the relative position from the 0th bit.

そこで、検索情報の最上位ビット方向からの検索にあっ
ては、検索結果がOビット目からの相対位置として表わ
されるように補正を行なう必要がある。
Therefore, when searching from the most significant bit direction of the search information, it is necessary to perform correction so that the search result is expressed as a relative position from the 0th bit.

この補正は、検索情報の最上位ビット方向からの検索時
に、OR回路39a〜39eの出力であるa Q −”
a 4を反転することにより行なわれる。
This correction is performed when the search information is searched from the most significant bit direction.
This is done by reversing a4.

上述したように、検索情報の31ビツト目が1″である
場合には、aO〜a4を反転してaO〜a4をすべて°
゛1″とすれば、検索結果のBCDコードは、” 11
11 ”となる。これは、10進法で31を表わしてお
り、検索結果は0ビツト目からの相対位置どして表わさ
れることになる。
As mentioned above, if the 31st bit of the search information is 1'', aO to a4 are inverted and aO to a4 are all
If it is ``1'', the BCD code of the search result is ``11''.
11''. This represents 31 in decimal notation, and the search result will be expressed as a relative position from the 0th bit.

EXOR回路41a〜41eは、検索情報の最上位ビッ
ト方向からの検索時に、上述したaQ〜a4の反転動作
を行なうものである。最上位ビット方向からの検索時に
は、検索信号Mは1°°となるので、EXOR回路41
a〜41eは、ソノ出力に他方の入力すなわち、a Q
 %a 4の反転信号を出力することになる。また、最
下位ビット方向からの検索時には、検索信号Mは“0”
となるので、EXOR回路41a 〜410(7)出力
ニハ、a□〜a4がそのまま出力される。
The EXOR circuits 41a to 41e perform the above-described inversion operation of aQ to a4 when searching from the most significant bit direction of the search information. When searching from the most significant bit direction, the search signal M is 1°°, so the EXOR circuit 41
a to 41e are the other input to the sono output, that is, a Q
An inverted signal of %a4 will be output. Also, when searching from the least significant bit direction, the search signal M is “0”.
Therefore, the EXOR circuits 41a to 410(7) outputs niha and a□ to a4 are output as they are.

パストランジスタ43a〜43eは、前述した検索部の
パストランジスタ118〜11h、13a〜13hと同
様な構成であり、バス信号により検索結果のBCDコー
ドであるao−84をパスライン45に供給するもので
ある。
The pass transistors 43a to 43e have the same configuration as the pass transistors 118 to 11h and 13a to 13h of the search section described above, and supply ao-84, which is the BCD code of the search result, to the pass line 45 by a bus signal. be.

以上説明したように、この発明の実m例は構成されてお
り、次にこの実施例の作用を説明する。
As explained above, an actual example of the present invention is constructed, and the operation of this example will be explained next.

検索情報が最下位ビット方向から検索される場合には、
検索信号りが゛1ルベルとなることでパストランジスタ
118〜11hが導通状態となり、検索情報のOピット
目〜7ビツト目は、それぞれにパストランジスタ11a
〜11h及びインバータ回路15a〜15hを介してN
OR回路178〜17hに供給される。同様に、検索情
報の8ビツト目〜15ビツト目は第2ブロツク3のNO
R回路に、検索情報の16ビツト目〜23ビツト目は第
3ブロツク5のNOR回路に、検索情報の24ビツト目
〜31ビツト目は第4ブロツク7のNOR回路に供給さ
れる。
If the search information is searched from the least significant bit direction,
When the search signal level reaches 1 level, the pass transistors 118 to 11h become conductive, and the O-th to 7th bits of the search information are connected to the pass transistors 11a, respectively.
~11h and N via the inverter circuits 15a to 15h.
It is supplied to OR circuits 178-17h. Similarly, the 8th to 15th bits of the search information are the NO of the second block 3.
The 16th to 23rd bits of the search information are supplied to the NOR circuit of the third block 5, and the 24th to 31st bits of the search information are supplied to the NOR circuit of the fourth block 7.

また、検索情報が最上位ビット方向から検索される場合
には、検索信号Mが“1″レベルとなることでパストラ
ンジスタ13a〜13hが導通状態となり、検索情報の
31ビツト目〜24ビツト目は、それぞれにパストラン
ジスタ11a〜11h及びインバータ回路158〜15
hを介してNOR回路17a〜17hに供給される。同
様に、検索情報の23ビツト目〜16ビツト目は第2ブ
ロツク3のNOR回路に、検索情報の15ビツト目〜8
ビツト目は第3ブロツクのNOR回路に、検索情報の7
ビツト目〜0ビツト目は第4ブロツクのNOR回路に供
給される。
Furthermore, when the search information is searched from the most significant bit direction, the search signal M goes to the "1" level, so that the pass transistors 13a to 13h become conductive, and the 31st to 24th bits of the search information are , pass transistors 11a to 11h and inverter circuits 158 to 15, respectively.
h to NOR circuits 17a to 17h. Similarly, the 23rd to 16th bits of the search information are sent to the NOR circuit of the second block 3, and the 15th to 8th bits of the search information are sent to the NOR circuit of the second block 3.
The 7th bit of the search information is sent to the NOR circuit of the third block.
The bits from bit 0 to bit 0 are supplied to the NOR circuit of the fourth block.

それぞれのNOR回路では、検索情報の°“O°′、″
1゛°の判定が行なわれて、検索情報が°0″であれば
NOR回路の出力は0″となり、この出力が次段以降の
すべてのNOR回路の入力に供給される。
In each NOR circuit, search information °“O°′,”
A determination of 1° is made and if the search information is 0", the output of the NOR circuit becomes 0", and this output is supplied to the inputs of all NOR circuits from the next stage onwards.

検索情報が1”であり、最下位ビット方向からの検索で
はこの検索情報よりも下位側の検索情報、また、最上位
ビット方向からの検索では1″となっている検索情報よ
りも上位側の検索情報がすべて′O°′の場合には、“
1″である検索情報が与えられたNOR回路の出力は1
″となり、この出力が次段以降のすべてのNOR回路の
入力に供給される。
If the search information is 1'', search from the least significant bit direction will search information lower than this search information, and search from the most significant bit direction will search information higher than the search information which is 1''. If all search information is 'O°', “
The output of the NOR circuit given search information that is 1'' is 1
'', and this output is supplied to the inputs of all NOR circuits from the next stage onwards.

第1ブロツク1の出力PE0−PE7のうち少なくとも
1つが“1″になると、OR回路19の出力は“1″と
なり、第2ブロツク3のブロック信号は°°1″となる
。さらに、OR回路19の°1”出力はOR回路23.
25に供給されて、OR回路23.25の出力はともに
“1°°となり、第3ブロツク5及び第4ブロツク7の
ブロック信号は1′°となる。これにより、第2ブロツ
ク3、第3ブロツク5、第4ブロツク7のNOR回路の
出力PE8〜PE31はすべてO11となる。
When at least one of the outputs PE0 to PE7 of the first block 1 becomes "1", the output of the OR circuit 19 becomes "1", and the block signal of the second block 3 becomes "°1". 19's output is the OR circuit 23.
25, the outputs of the OR circuits 23 and 25 are both "1°", and the block signals of the third block 5 and the fourth block 7 are 1'°. The outputs PE8 to PE31 of the NOR circuits of block 5 and fourth block 7 all become O11.

同様にして、PEO〜PE7がすべて○″であり、第2
ブロツク3の出力PE8〜PE15のうち少なくとも1
つが“1″になると、第2ブロツク3のOR回路の出力
が1”となり、OR回路23.25の出力は1″となる
。これにより、第3ブロツク5及び第4ブロツク7のブ
ロック信号は“1″となり、第3ブロツク5及び第4ブ
ロツク7のNOR回路の出力PE16〜PE31はすべ
て“OIIとなる。また、PE0−PE15がすべて“
Onであり、PE16〜PE23のうち少なくとも1つ
が1′°になると、OR回路25の出力は1″となり、
第4ブロツク7のNOR回路の出力はすべて“0″とな
る。
Similarly, PEO to PE7 are all ○'', and the second
At least one of the outputs PE8 to PE15 of block 3
When the signal becomes "1", the output of the OR circuit of the second block 3 becomes "1", and the output of the OR circuit 23.25 becomes "1". As a result, the block signals of the third block 5 and the fourth block 7 become "1", and the outputs PE16 to PE31 of the NOR circuits of the third block 5 and the fourth block 7 all become "OII". is all “
On, and when at least one of PE16 to PE23 becomes 1'°, the output of the OR circuit 25 becomes 1",
All outputs of the NOR circuit of the fourth block 7 become "0".

このようにして、32ビツトの検索情報が最下位ビット
方向あるいは最上位ビット方向から検索されて、最初に
1″となっている検索情報のビットに対応したNOR回
路の出力が1′′となり、他のNOR回路の出力はすべ
て″0″となり、検索情報の検索結果がPEO〜PE3
1に出力される。
In this way, the 32-bit search information is searched from the least significant bit direction or the most significant bit direction, and the output of the NOR circuit corresponding to the bit of the search information that is initially 1'' becomes 1''. The outputs of all other NOR circuits are "0", and the search results of the search information are PEO to PE3.
1 is output.

検索情報の検索結果がNOR回路の出力PEO〜PE3
1に出力されると、これらの出力は変換部のOR回路3
7a〜37jに供給される。PE9〜PE157jPE
0−PE7のいずれか1つが1″である場合には、OR
回路37a〜37gのいずれかの出力が1゛°となり、
OR回路39a〜39cのいずれか1つあるいは2つ以
上の出力が1”となる。PE8が1″である場合には、
OR回路37hの出力が1”となり、これによりOR回
路39(lの出力が111 Itとなる。
The search result of the search information is the output of the NOR circuit PEO~PE3
1, these outputs are output to the OR circuit 3 of the conversion section.
7a to 37j. PE9~PE157jPE
If any one of 0-PE7 is 1″, OR
The output of any one of the circuits 37a to 37g becomes 1゛°,
The output of one or more of the OR circuits 39a to 39c becomes 1". When PE8 is 1",
The output of the OR circuit 37h becomes 1'', and the output of the OR circuit 39 (l becomes 111 It).

さらに、PE9〜PE15のいずれか1つが1″である
場合には、OR回路37a〜37gのいずれか1つの出
力及びOR回路37hの出力が“1″となりOR回路3
98〜39cのいずれか1つあるいは2つ以上及びOR
回路39dの出力が1”′となる。PE16が゛1″で
ある場合には、OR回路37iの出力が1′°となり、
これによりOR回路39eの出力が°゛1″となる。さ
らに、PE17〜PE23のいずれか1つが“1″であ
る場合には、OR回路37a〜37oのいずれか1つの
出力及びOR回路37iの出力が1′°となり、OR回
路39a〜39cのいずれか1つあるいは2つ以上及び
OR回路39eの出力が1゛となる。PE24が“1°
゛である場合には、OR回路37jの出力が“1゛とな
り、これによりOR回路39d 、39eの出力が1″
となる。さらに、PE25〜P E 3.1の出力が″
゛11パ合には、OR回路378〜37gのいずれか1
つの出力及びOR回路37jの出力が11111となり
、OR回路39a〜39cのいずれか1つあるいは2つ
以上及びOR回路39d 、39eの出力が“1”°と
なる。
Further, when any one of PE9 to PE15 is 1", the output of any one of the OR circuits 37a to 37g and the output of the OR circuit 37h become "1", and the OR circuit 3
Any one or two or more of 98 to 39c and OR
The output of the circuit 39d becomes 1"'. When PE16 is "1", the output of the OR circuit 37i becomes 1'°,
As a result, the output of the OR circuit 39e becomes "1".Furthermore, when any one of PE17 to PE23 is "1", the output of any one of the OR circuits 37a to 37o and the output of the OR circuit 37i The output becomes 1'°, and the output of any one or more of the OR circuits 39a to 39c and the OR circuit 39e becomes 1'.
'', the output of the OR circuit 37j becomes ``1'', and as a result, the outputs of the OR circuits 39d and 39e become 1''.
becomes. Furthermore, the output of PE25 to PE3.1 is
゛For 11 matches, any one of OR circuits 378 to 37g
The output of one or more of the OR circuits 39a to 39c and the output of the OR circuit 39d and 39e becomes "1".

このように、“1″となったPE0−PE31に応じて
OR回路39a〜39eの出力が“1″となり、検索結
果のBCDコードとなるaO〜a4の値がOR回路39
a〜39eから出力される。
In this way, the outputs of the OR circuits 39a to 39e become "1" in accordance with PE0 to PE31 which become "1", and the values of aO to a4 which become the BCD code of the search result are changed to the OR circuit 39a.
It is output from a to 39e.

OR回路398〜39eの出力は、それぞれEXOR回
路41a〜41eに供給され、検索情報の最下位ビット
方向からの検索時には、検索信号Mは°“0°゛となり
、それぞれのOR回路39a〜39eの出力は、各別に
EXOR回路41a〜41e及びパストランジスタ41
8〜41eを介してパスライン45に供給される。また
、検索情報の最上位ビット方向からの検索時には、検索
信号Mは1″となるために、それぞれのOR回路398
〜39eの出力は、各別にEXOR回路41a〜41e
により反転されてパストランジスタ433〜43eを介
してパスライン45に供給される。
The outputs of the OR circuits 398 to 39e are supplied to the EXOR circuits 41a to 41e, respectively, and when searching from the least significant bit direction of the search information, the search signal M becomes 0°, and the outputs of the OR circuits 39a to 39e respectively. The output is provided by EXOR circuits 41a to 41e and pass transistor 41 separately.
It is supplied to the pass line 45 via lines 8 to 41e. Further, when searching from the most significant bit direction of the search information, the search signal M becomes 1'', so each OR circuit 398
The outputs of ~39e are separately sent to EXOR circuits 41a~41e.
is inverted and supplied to the pass line 45 via pass transistors 433 to 43e.

このようにして、“I Jlとなっているビットの位置
は、Oビット目からの相対位置としてBCDコードに変
換され、検索を開始して最初に“1′′となっているビ
ットの位置が検索されてBCDコードで表わされる。
In this way, the bit position that is “I Jl” is converted into a BCD code as a relative position from the Oth bit, and when the search starts, the bit position that is “1'' is It is searched and expressed as a BCD code.

なお、この発明は上述した実施例のみに限ることなく、
適宜の変更を行なうことによりその他の態様で実施し得
るものである。
Note that this invention is not limited to the above-mentioned embodiments,
It can be implemented in other ways by making appropriate changes.

[発明の効果コ 以上説明したように、この発明によれば、検索情報のそ
れぞれのビットを最下位ビット方向あるいは最上位ビッ
ト方向から並行して検索を行ない、検索を開始したビッ
トに最も近い一方のビット情報となっているビットの位
置を検索するようにしたので、検索情報のビット数にか
かわらず、2値化された一方のビット情報の位置を高速
に検出することができる。
[Effects of the Invention] As explained above, according to the present invention, each bit of the search information is searched in parallel from the least significant bit direction or the most significant bit direction, and the bit closest to the bit that started the search is searched in parallel. Since the position of the bit that is the bit information of the search information is searched, the position of one of the binarized bit information can be detected at high speed regardless of the number of bits of the search information.

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

第1図はこの発明の一実施例に係る情報検索装置におけ
る検索部の構成ブロック図、第2図はこの発明の一実施
例に係る情報検索装置における変換部の構成ブロック図
、第3図はパストランジスタの一員体例を示す構成図、
第4図はシリアル検索方式の一例を示す構成図、第5図
は多入力N。 R回路の一例を示す構成図、第6図は情報検索装置の一
従来例を示す構成図、第7図は第6図のタイミングチャ
ートである。 (図の主要な部分を表わす符号の説明)1・・・第1ブ
ロツク 3・・・第2ブロック 5・・・第3ブロツク 7・・・第4ブロツク
FIG. 1 is a block diagram of the configuration of a search unit in an information search device according to an embodiment of the present invention, FIG. 2 is a block diagram of the configuration of a conversion unit in the information search device according to an embodiment of the invention, and FIG. A configuration diagram showing an example of a pass transistor,
FIG. 4 is a block diagram showing an example of a serial search method, and FIG. 5 is a multi-input N system. FIG. 6 is a block diagram showing an example of an R circuit, FIG. 6 is a block diagram showing a conventional example of an information retrieval device, and FIG. 7 is a timing chart of FIG. (Explanation of symbols representing main parts of the diagram) 1...First block 3...Second block 5...Third block 7...Fourth block

Claims (1)

【特許請求の範囲】[Claims] 複数の2値化されたビット情報で構成された検索情報の
それぞれのビットを最下位ビット方向あるいは最上位ビ
ット方向から、並行して検索を行ない、検索を開始した
ビットに最も近い一方のビット情報となつているビット
の位置を検出する検索手段と、前記一方のビット情報と
なっているビットの位置を最下位ビット目からの相対位
置としてBCDコードに変換する変換手段とを有するこ
とを特徴とする情報検索装置。
Each bit of search information composed of multiple pieces of binary bit information is searched in parallel from the least significant bit direction or the most significant bit direction, and one bit information closest to the bit that started the search is searched. and a conversion means that converts the position of the bit that is the one bit information into a BCD code as a relative position from the least significant bit. Information retrieval device.
JP61160877A 1986-07-10 1986-07-10 Information retrieval device Expired - Lifetime JPH0719203B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61160877A JPH0719203B2 (en) 1986-07-10 1986-07-10 Information retrieval device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61160877A JPH0719203B2 (en) 1986-07-10 1986-07-10 Information retrieval device

Publications (2)

Publication Number Publication Date
JPS6318432A true JPS6318432A (en) 1988-01-26
JPH0719203B2 JPH0719203B2 (en) 1995-03-06

Family

ID=15724302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61160877A Expired - Lifetime JPH0719203B2 (en) 1986-07-10 1986-07-10 Information retrieval device

Country Status (1)

Country Link
JP (1) JPH0719203B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5278332A (en) * 1975-12-25 1977-07-01 Agency Of Ind Science & Technol Batch digit shifter
JPS5533213A (en) * 1978-08-31 1980-03-08 Oki Electric Ind Co Ltd Information processing system
JPS6027939A (en) * 1983-07-27 1985-02-13 Nec Corp Floating point subtracting device
JPS60116032A (en) * 1983-11-28 1985-06-22 Nec Corp Normalizing circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5278332A (en) * 1975-12-25 1977-07-01 Agency Of Ind Science & Technol Batch digit shifter
JPS5533213A (en) * 1978-08-31 1980-03-08 Oki Electric Ind Co Ltd Information processing system
JPS6027939A (en) * 1983-07-27 1985-02-13 Nec Corp Floating point subtracting device
JPS60116032A (en) * 1983-11-28 1985-06-22 Nec Corp Normalizing circuit

Also Published As

Publication number Publication date
JPH0719203B2 (en) 1995-03-06

Similar Documents

Publication Publication Date Title
JPH02287619A (en) Comparator circuit
JP3036467B2 (en) Longest match detector
EP0113391A2 (en) Digital multiplier and method for adding partial products in a digital multiplier
JPH08242176A (en) Retrieving device for data compression
JPS6318432A (en) Information retrieval device
US5754458A (en) Trailing bit anticipator
US5889693A (en) CMOS sum select incrementor
JPH04340127A (en) Comparing method and comparator
JP2629737B2 (en) accumulator
US20020169809A1 (en) Bit search device and bit search method
US7349937B2 (en) Fast incrementer using zero detection and increment method thereof
JPH07141148A (en) Pipeline parallel multiplier
JP3285910B2 (en) Bit search circuit
JP2004171491A (en) Addition circuit and semiconductor device equipped with addition circuit
JPS63239526A (en) Priority encoder
JP3312391B2 (en) Circuit for detecting m consecutive matches of n parallel data
GB2157032A (en) Digital parallel odder
JP2907276B2 (en) Arithmetic processing unit
EP1769335A2 (en) Arithmetic circuit with balanced logic levels for low-power operation
SU1228098A1 (en) Device for shifting information
JP2005260285A (en) Data compression apparatus
SU962926A1 (en) Device for taking logarithms
JPH0193821A (en) Adder
KR950006586A (en) Double Carry Chain Adder
JPH0664565B2 (en) Asynchronous multi-valued logical data processing method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term