JPS622317A - Multilevel comparison and coincidence detecting circuit - Google Patents
Multilevel comparison and coincidence detecting circuitInfo
- Publication number
- JPS622317A JPS622317A JP60139012A JP13901285A JPS622317A JP S622317 A JPS622317 A JP S622317A JP 60139012 A JP60139012 A JP 60139012A JP 13901285 A JP13901285 A JP 13901285A JP S622317 A JPS622317 A JP S622317A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- coincidence
- comparison
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明はデータの比較−数構出に関し、特にビット幅が
広い(ビット長が大)データの比較−数構出に適した多
値比較一致検出回路に関する。[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to data comparison and number composition, and in particular to comparison of data with a wide bit width (large bit length) - multi-value comparison matching suitable for number composition. Regarding a detection circuit.
データを比較するには、従来、比較器で比較し一致を検
出していた。このとき複数個の値を比較するには入力デ
ータと比較を取るためのレジスタ及びこれと対をなす比
較器の複数を用いて行う方式が採られていた。Conventionally, to compare data, a comparator is used to detect a match. At this time, in order to compare a plurality of values, a method has been adopted in which a plurality of registers for comparing input data and a plurality of comparators are paired with the registers.
1つの値の比較を行うために比較値を記憶するレジスタ
と比較器が対をなしている回路で、複数の値を同時に比
較をするには比較する数の上記回路が必要になる。従っ
て従来技術ではビット幅が広く、多値比較による一致検
出をするには回路が非常に多く要るという問題があった
。また回路を簡単にするには1つの比較器で複数個に分
けて比較することになるため時間が多くかかるという問
題があった。In order to compare one value, a register storing a comparison value and a comparator form a pair, and in order to compare a plurality of values at the same time, the number of circuits mentioned above is required. Therefore, the conventional technology has a problem in that the bit width is wide and a large number of circuits are required to detect coincidence by multi-value comparison. Furthermore, in order to simplify the circuit, a single comparator must be used to compare a plurality of components, which takes a lot of time.
本発明は上記従来の問題点を改善すべく、ビット幅が広
い多値データを効率よく比較できる多値比較一致検出回
路を提供することを目的とする。SUMMARY OF THE INVENTION In order to improve the above-mentioned conventional problems, it is an object of the present invention to provide a multi-value comparison coincidence detection circuit that can efficiently compare multi-value data having a wide bit width.
本発明は複数のメモリと、それらメモリの出方データを
各ビットごとに比較して一致を検出する比較回路と、ビ
ット幅の広い複数の比較すべきデータの1つを選択し、
そのデータを前記各メモリの容量に合せて分割しそれら
を各メモリのアドレス入力とするデータセレクタ又はデ
ータバスとを備え各メモリのアドレス(各データにより
メモリ毎に異なる)にそれぞれ同一の一致検出用パター
ンデータを入力しておきデータセレクタにて切換え入力
されたデータが先のデータと同一であればメモリごとの
出力が同一の一致検出用データとなることにより比較回
路が一致を検出するものであり、ビット幅の広いデータ
についてもコンパクトで高機能な一致検出ができるもの
である。The present invention includes a plurality of memories, a comparison circuit that compares the output data of the memories bit by bit to detect a match, and selects one of the plurality of data to be compared having a wide bit width.
It is equipped with a data selector or a data bus that divides the data according to the capacity of each memory and inputs the data as the address input of each memory. If pattern data is input and the input data is switched by the data selector and the input data is the same as the previous data, the comparison circuit detects a match by outputting the same match detection data from each memory. , it is possible to perform compact and highly functional match detection even for data with a wide bit width.
第1図は本発明の一実施例を示す回路図、第2図は第1
図の比較回路例及びその周辺回路動作の説明図である。Fig. 1 is a circuit diagram showing one embodiment of the present invention, and Fig. 2 is a circuit diagram showing an embodiment of the present invention.
FIG. 3 is an explanatory diagram of the comparison circuit example shown in the figure and its peripheral circuit operation;
これらの図においてのはA入力とB入力を切換えて出力
するデータセレクタ、(2は比較値の一つであるA入力
、■は比較値の他の一つである入力データである。に)
は一致検出を仲介するパターンデータ入力、■はセレク
タ■で選択されたデータの呂カライン、■はセレクタ■
の選択信号である。 (7) (8) (9)はそれぞ
れメモリで、出力ライン■を介してアドレスが供給され
、パターンデータ入力(イ)が書込みデータとなる。
(10) (11)(12)はそれぞれ各メモリ■〜■
の読出し出力、(13)は各メモリ■〜■への書込み許
可信号、(14)は比較回路、(15)は一致出力であ
る。第2図に示す(21)(22) (23) (24
)及び(25)はそれぞれAND回路である。In these figures, the data selector switches between A input and B input and outputs the data. (2 is the A input, which is one of the comparison values, and ■ is the input data, which is the other one of the comparison values.)
is the pattern data input that mediates match detection, ■ is the line of data selected by selector ■, ■ is selector ■
This is the selection signal. (7), (8), and (9) are memories, respectively, to which an address is supplied via the output line (2), and the pattern data input (A) becomes the write data.
(10) (11) (12) are each memory ■~■
(13) is a write permission signal for each memory (1) to (2), (14) is a comparison circuit, and (15) is a coincidence output. (21) (22) (23) (24) shown in Figure 2
) and (25) are AND circuits.
次に動作例を説明する。第1図は24ビツトの並列デー
タ■■を4ビツトのパターンデータ(イ)を介して比較
し、一致検出する回路構成である。先づ比較値入力デー
タA■が選択信号0により選択され、その24ビツトの
データは各メモリ■〜■の容量に合せた8ビツトずつに
分割されて出力ライン■を介して各メモリ■〜■)のア
ドレスとして出力される。−数構出用パ°ターンデータ
(イ)の4ビツトは各メモリ■〜0のそれぞれのデータ
INに与えられ書込許可信号(13)により前記分割さ
れたアドレスを用いそれぞれのメモリ■〜0)に書込ま
れる。Next, an example of operation will be explained. FIG. 1 shows a circuit configuration for comparing 24-bit parallel data (1) and (2) via 4-bit pattern data (A) and detecting a match. First, the comparison value input data A■ is selected by the selection signal 0, and the 24-bit data is divided into 8 bits each according to the capacity of each memory ■~■ and sent to each memory ■~■ via the output line ■. ) is output as the address. - The 4 bits of the pattern data (a) for number configuration are given to the data IN of each memory ~0, and the divided addresses are used by the write permission signal (13) to write each memory ~~0. ) is written.
以上の状態で選択信号■によりセレクタのを切換えて入
力データB■を呂カライン■に出力し、その分割された
アドレスにより上記各メモリ■〜■からデータを読出す
。入力データA■が入力データBC3と一致していれば
、各メモリ■〜(9)へのアドレスも一致するから、書
込んだ同じパターンデータを読出すことができる。その
一致は比較回路(14)で確認され一致出力(15)が
出力される。即ち。In the above state, the selector is switched by the selection signal (2) to output the input data B (2) to the outer line (2), and data is read from each of the memories (1) to (2) using the divided addresses. If the input data A2 matches the input data BC3, the addresses to the memories (2) to (9) also match, so that the same written pattern data can be read out. The match is confirmed by the comparator circuit (14) and a match output (15) is output. That is.
比較回路(14)は第2図に示すようにAND回路(2
1)〜(24)がすべて成立し、 さらにそれら出力の
ANDが成立すれば一致出力(15)、例えばII I
IIが出力される。若し入力データA■と入力データ
B■に相違があれば、書込みアドレスと異なるアドレス
が与えられるメモリ■〜0からの読出しデータは異なり
一致出力(15)には110”が出力されるので不一致
であることが分かる。尚比較回路(14)は第2図の例
に限らず、各メモリのデータOUTの差をとる等の種々
の手段によっても検出できる。また、アンド回路(21
)〜(24)の各々の出力をそれぞれ別途に出力させ、
これを検出すると不一致の場合に入力データA■、B■
のどの部分に問題があったかも知ることができる。The comparison circuit (14) is an AND circuit (2) as shown in FIG.
If all of 1) to (24) are true, and the AND of these outputs is also true, a coincidence output (15), for example, II I
II is output. If there is a difference between input data A■ and input data B■, the read data from memory ■~0, which is given an address different from the write address, is different and 110'' is output as the match output (15), so there is a mismatch. It can be seen that the comparison circuit (14) is not limited to the example shown in FIG.
) to (24) are output separately,
When this is detected, if there is a mismatch, the input data A■, B■
You can also find out which part of your throat is having problems.
以上は単なる多値を有する複数データの比較一致検出に
ついて説明したが、本発明は、伝送における特定のキャ
ラクタ検出や演算のサーチ機能の一致検出等にも活用で
きる。Although the above description has simply been about comparing and detecting a match between a plurality of data having multiple values, the present invention can also be utilized for specific character detection in transmission, match detection in a search function of arithmetic operations, and the like.
本発明は以上のようになるものであって、ビット幅の広
いデータについても、コンパクトで高機能な一致検出が
できるようになる効果がある。The present invention is as described above, and has the effect of enabling compact and highly functional match detection even for data with a wide bit width.
第1図は本発明の一実施例を示す回路図、第2図は第1
図の比較回路例とその動作説明図である。 。
1;データセレクタ、 2,3; 2つの比
較データ、4;−数構出用パターンデータ、?、8,9
;メモリ、10.11,12:メモリ出力、
14;比較回路。Fig. 1 is a circuit diagram showing one embodiment of the present invention, and Fig. 2 is a circuit diagram showing an embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of the comparison circuit shown in the figure and its operation. . 1; Data selector, 2, 3; Two comparison data, 4; - Pattern data for number structure, ? ,8,9
;Memory, 10.11,12:Memory output,
14; Comparison circuit.
Claims (1)
セレクタと、このデータセレクタによって選択されたデ
ータを複数に分割し、各データをそれぞれのアドレスと
して供給され、書込みデータとして一致検出用パターン
データが供給される複数個のメモリと、前記各メモリか
ら読出された前記パターンデータの一致を検出する比較
回路とを具備することを特徴とする多値比較一致検出回
路。A data selector into which two bit-width comparison data are input, the data selected by this data selector is divided into multiple pieces, each data is supplied as its own address, and pattern data for match detection is supplied as write data. A multi-value comparison match detection circuit comprising: a plurality of memories; and a comparison circuit that detects a match between the pattern data read from each of the memories.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60139012A JPS622317A (en) | 1985-06-27 | 1985-06-27 | Multilevel comparison and coincidence detecting circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60139012A JPS622317A (en) | 1985-06-27 | 1985-06-27 | Multilevel comparison and coincidence detecting circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS622317A true JPS622317A (en) | 1987-01-08 |
Family
ID=15235417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60139012A Pending JPS622317A (en) | 1985-06-27 | 1985-06-27 | Multilevel comparison and coincidence detecting circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS622317A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003273918A (en) * | 2002-03-12 | 2003-09-26 | Nippon Telegr & Teleph Corp <Ntt> | Method for filtering packet |
JP2004015592A (en) * | 2002-06-10 | 2004-01-15 | Internatl Business Mach Corp <Ibm> | Mac address pointer structure and method for rearranging mac address |
-
1985
- 1985-06-27 JP JP60139012A patent/JPS622317A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003273918A (en) * | 2002-03-12 | 2003-09-26 | Nippon Telegr & Teleph Corp <Ntt> | Method for filtering packet |
JP2004015592A (en) * | 2002-06-10 | 2004-01-15 | Internatl Business Mach Corp <Ibm> | Mac address pointer structure and method for rearranging mac address |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS635839B2 (en) | ||
JPH0271497A (en) | Memory-system, address of which can be assigned by content | |
US7107392B2 (en) | Content addressable memory (CAM) device employing a recirculating shift register for data storage | |
US5201058A (en) | Control system for transferring vector data without waiting for transfer end of the previous vector data | |
JPS622317A (en) | Multilevel comparison and coincidence detecting circuit | |
US6292882B1 (en) | Method and apparatus for filtering valid information for downstream processing | |
JPH0514458B2 (en) | ||
JPH01239627A (en) | Coincidence detection circuit | |
JP2853736B2 (en) | Cluster number conversion circuit | |
JP2622553B2 (en) | Microcomputer | |
JPH0743942B2 (en) | Compound associative memory | |
JPH0748309B2 (en) | Symbol string matching memory and its cascade connection method | |
JPS62229335A (en) | Address comparator | |
JPH0329199A (en) | Semiconductor memory | |
JPS5844417Y2 (en) | Change detector input module | |
JPH05257608A (en) | Data detection device and data transfer device | |
JPS62147552A (en) | Storage device | |
JPS5824813B2 (en) | data processing equipment | |
JPH06282413A (en) | Comparing circuit | |
JPS6175444A (en) | Register file integrated circuit | |
JPH05182471A (en) | Functional memory processor | |
JPH04344957A (en) | Cache device | |
JPS607315B2 (en) | digital correlation detector | |
JPH0269851A (en) | Input/output control system | |
JPH0778722B2 (en) | Register file method |