JPH01266623A - Coincidence detecting circuit - Google Patents

Coincidence detecting circuit

Info

Publication number
JPH01266623A
JPH01266623A JP9591888A JP9591888A JPH01266623A JP H01266623 A JPH01266623 A JP H01266623A JP 9591888 A JP9591888 A JP 9591888A JP 9591888 A JP9591888 A JP 9591888A JP H01266623 A JPH01266623 A JP H01266623A
Authority
JP
Japan
Prior art keywords
data
cam
areas
match
words
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
JP9591888A
Other languages
Japanese (ja)
Other versions
JPH0795266B2 (en
Inventor
Toshihiro Noma
野間 敏弘
Osamu Matsushima
修 松嶋
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 JP9591888A priority Critical patent/JPH0795266B2/en
Publication of JPH01266623A publication Critical patent/JPH01266623A/en
Publication of JPH0795266B2 publication Critical patent/JPH0795266B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To improve the use efficiency of a CAM array and to make the hardware small by changing the number of words of first and second areas to be compared. CONSTITUTION:When a selection of a control line 17 is instructed from a control line 7, a selecting circuit 13 makes the control line 17 active, and collation use data D1 of three words and illumination use data D2 of one word are written in CAM registers 111-113 and a CAM register 114, respectively. When counter data C1 and C2 are set, the counter data C1 is compared the data of the CAM registers 111-113 at every corresponding word, and when they coincide, a coincidence signal is outputted to a coincidence signal output line 5 through output lines 21-23, respectively. The counter data C2 is compared with the data D2 of the CAM register 114, and when they coincide, a coincidence signal is outputted to a coincidence signal line 6 through an output line 24.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、1ワードあるいは複数ワードからなる第1、
第2の照合用データを保持し、1ワードあるいは複数ワ
ードからなる第1、第2の信号を入力し、それぞれ第1
、第2の照合用データと比較し、一致したときそれぞれ
第1、第2の一致信号を出力する一致検出回路に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention provides a first,
Holds the second verification data, inputs the first and second signals consisting of one word or multiple words, and inputs the first and second signals, respectively.
, and a match detection circuit that compares the data with second verification data and outputs first and second match signals when they match.

〔従来の技術〕[Conventional technology]

第4図はこの種の一致検出回路の従来例を示す構成図、
第5図、第6図は第4図の内容アドレスメモリアレイ5
1.52(以降CAMアレイ51.52と記す)の内部
を示す構成図である。
FIG. 4 is a configuration diagram showing a conventional example of this type of coincidence detection circuit,
5 and 6 show the content address memory array 5 of FIG.
1.52 (hereinafter referred to as CAM array 51.52) is a configuration diagram showing the inside of the CAM array 51.52.

内容アドレスメモリ(以降CAMと記す)はデータの比
較機能を持つメモリで、動作については近代化学社発行
MO3集積回路(P402〜403)などに記述されて
おり、同時に多数の比較動作を行なうような場合にCA
Mアレイ51゜52として使用されている。
Content address memory (hereinafter referred to as CAM) is a memory that has a data comparison function, and its operation is described in MO3 integrated circuit published by Kindai Kagakusha (P402-403). CA in case
It is used as M array 51°52.

CAMアレイ51,52は内部バス53を介してそれぞ
れ入力した照合用データD I + D 2を保持し、
それぞれ入力する入力信号CI * C2と比較し、一
致すると一致信号をそれぞれ出力ライン54.55に出
力する。
The CAM arrays 51 and 52 hold verification data D I + D 2 input via the internal bus 53,
They are compared with the respective input signals CI*C2, and if they match, a matching signal is outputted to the respective output lines 54 and 55.

CAMアレイ51,52はそれぞれバッファ回路60と
、CAMレジスタ61.62.〜,6nとを有する。C
AMレジスタ61,62.〜。
CAM arrays 51, 52 each include a buffer circuit 60 and CAM registers 61, 62 . , 6n. C
AM registers 61, 62 . ~.

6nは1ワードかにビットのデータを保持するためにそ
れぞれCAMセルフ1.72〜7kを有する。CAMア
レイ51,52は照合用データD、、D2をバッファ回
路60を介して入力し、ワード単位でCAMレジスタ6
1,62.〜。
6n each has CAM cells 1.72 to 7k to hold one word or one bit of data. The CAM arrays 51 and 52 input the collation data D, D2 via the buffer circuit 60, and input them into the CAM register 6 in word units.
1,62. ~.

6nに格納する。そして、CAMレジスタ61゜62、
〜,6nに格納したデータをそれぞれ入力信号CI +
 02とワード単位毎に比較し一致すると一致信号を出
力する。
6n. And CAM register 61°62,
~, 6n are input signals CI +
02 in word units, and if they match, a match signal is output.

(発明が解決しようとする課題〕 上述した従来の一致検出回路は、入力信号C,,C,を
それぞれ照合用データD、、D、と比較するCAMアレ
イ51,52が独立固定的に設けられ、かつ、それぞれ
にはり−ドライトバッファが設けられているので、ワー
ド数の少ないデータの比較に際してはCAMアレイ51
,52の使用効率が悪く、またリードライトバッファが
ハードウェアを占有する面積が大きく不経済であるとい
う欠点がある。
(Problems to be Solved by the Invention) The above-described conventional coincidence detection circuit has independent and fixed CAM arrays 51 and 52 that compare the input signals C, , C, with the matching data D, , D, respectively. , and each is provided with a write buffer, so when comparing data with a small number of words, the CAM array 51
, 52 is inefficient, and the read/write buffer occupies a large area of hardware, making it uneconomical.

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

本発明の一致検出回路は、 ワード単位で第1、第2の照合用データを保持できるよ
うに複数の内容アドレスメモリからなる内容アドレスメ
モリレジスタを複数個有する内容アドレスメモリアレイ
と、 第1、第2の照合用データをそれぞれ保持できるように
内容アドレスメモリアレイをワード単位で第1、第2の
領域に設定し、設定した第1、第2の領域に第1、第2
の照合用データを格納させ、第1、第2の領域を分割指
示により独立にさせ、独立にさせた領域がそれぞれ保持
している第1、第2の照合用データと、第1、第2の領
域がそれぞれ入力する第1、第2の入力信号とを第1、
第2の領域に比較させ、一致したときそれぞれ一致信号
を出力させる制御回路とを有する。
The coincidence detection circuit of the present invention includes a content address memory array having a plurality of content address memory registers each including a plurality of content address memories so as to hold first and second collation data in units of words; The content address memory array is set in the first and second areas in units of words so that the data for the second comparison can be held respectively.
The first and second areas are made independent by a division instruction, and the first and second areas respectively held by the independent areas are stored with the first and second matching data. The first and second input signals respectively inputted by the regions are the first and second input signals.
and a control circuit that makes the comparison with the second area and outputs a matching signal when they match.

(作用〕 内容アドレスメモリアレイは実質的に1個のアレイであ
るから第1、第2の照合用データ書込みを1個のり−ド
ライトバッファで行なうことができ、比較すべき第1、
第2の領域のワード数を変更すれば、内容アドレスメモ
リアレイを無駄なく使用できる。
(Operation) Since the content address memory array is substantially one array, writing of the first and second verification data can be performed using one glue-write buffer.
By changing the number of words in the second area, the content address memory array can be used without waste.

(実施例) 次に、本発明の実施例について図面を参照して説明する
(Example) Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一致検出回路の一実施例を示すブロッ
ク図、第2図は第1図の実施例のCAMアレイ1の一具
体例を示す構成図である。
FIG. 1 is a block diagram showing an embodiment of the coincidence detection circuit of the present invention, and FIG. 2 is a configuration diagram showing a specific example of the CAM array 1 of the embodiment of FIG.

CAMアレイ1は制御ライン7からの分割指示によって
第1、第2の領域t、、X2に分割され、分割された第
1、第2の領域1..12にはそれぞれ照合用データD
I、D2が内部バス4を介して書込まれる。カウンタ2
.3にはそれぞれ照合用データDI 、D2と比較され
るカウンタデータC,,C2が設定される。第1、第2
の領域1..12に書込まれたデータD I + D 
2がそれぞれカウンタデータC,,D2と一致すると、
一致信号がそれぞれ一致信号出力ライン5,6に出力さ
れる。
The CAM array 1 is divided into first and second regions t, . .. 12 each contains verification data D.
I, D2 are written via the internal bus 4. counter 2
.. 3 are set with counter data C, C2 to be compared with the verification data DI and D2, respectively. 1st, 2nd
Area 1. .. Data written in 12 DI + D
2 match the counter data C, ,D2, respectively,
The match signals are output to match signal output lines 5 and 6, respectively.

次にCAMアレイ1の具体的について第2図を参照して
説明する。
Next, the details of the CAM array 1 will be explained with reference to FIG.

本具体例においては、3ビツト1ワードで4ワ一ド分の
一致検出ができる。制御ライン7から制御ライン17の
選択が指示されると、選択回路13は制御ライン17を
アクティブにする。制御ライン17がアクティブになる
と、スイッチ素子171.172.173はオフとなり
、CAMレジスタ111,112.113が第1の領域
11となり、CAMレジスタ114が第2の領域1゜と
なる。内部バス4、リードライトバッファ12を介して
CAMレジスタ11..112,11゜に3ワードの照
合用データD、が書込まれ、CAMレジスタ114に1
ワードの照合用データD2が書込まれる。3ワードのカ
ウンタデータC1と1ワードのカウンタデータC2が設
定されると、カウンタデータCIは対応するワード毎に
CAMレジスタ11..112,113のデータと比較
され、一致すると一致信号がそれぞれ出力ライン21.
22.23を介して一致信号出力ライン5に出力される
。カウンタデータC2はCAMレジスタ11.のデータ
D2とされ、一致すると一致信号が出力ライン24を介
して一致信号出力ライン6に出力される。
In this specific example, a match of 4 words can be detected using 1 word of 3 bits. When the selection of the control line 17 is instructed from the control line 7, the selection circuit 13 activates the control line 17. When the control line 17 becomes active, the switch elements 171, 172, 173 are turned off, the CAM registers 111, 112, 113 become the first region 11, and the CAM register 114 becomes the second region 1°. CAM register 11 . via internal bus 4 and read/write buffer 12 . .. Three words of verification data D are written to 112 and 11 degrees, and 1 is written to the CAM register 114.
Word verification data D2 is written. When 3 words of counter data C1 and 1 word of counter data C2 are set, the counter data CI is stored in the CAM register 11 . .. 112 and 113, and if they match, a match signal is sent to the output lines 21 .
22 and 23 to the coincidence signal output line 5. Counter data C2 is the CAM register 11. data D2, and when they match, a match signal is outputted to the match signal output line 6 via the output line 24.

第3図は本発明の第2の実施例を示す構成図である。FIG. 3 is a block diagram showing a second embodiment of the present invention.

本実施例の一致検出回路はチップセレクト信号発生回路
として用いられるものである。
The coincidence detection circuit of this embodiment is used as a chip select signal generation circuit.

CAMアレイ30は制御ライン37からの分割指示によ
って第1、第2の領域30..30.に分割され第1、
第2の領域30..302にはそれぞれ照合用データA
D、、AD2がデータバス34を介して書込まれる。ア
ドレスバス31のアドレスACの上位側AC,および下
位側AC,がそれぞれ上位側バス32、下位側バス33
を介してCAMアレイ30に与えられる。照合用データ
AD、、AD2はそれぞれアドレスACの下位側AC,
,上位側AC2と比較され、一致すると一致信号がそれ
ぞれ一致信号出力ライン35.36に出力される。制御
回路38は一致信号出力ライン35の一致信号と、一致
信号出力う、イン36の一致信号の一部との論理和をと
りI10セレクト信号SELを出力する。一致信号出力
ライン36の一致信号のうち制御回路38に出力された
もの以外はそのままメモリの上位アドレスを指定する汎
用性の高いメモリのチップセレクト信号C3Lとして出
力される。
The CAM array 30 divides the first and second areas 30 . .. 30. The first is divided into
Second area 30. .. 302 each contains verification data A.
D, , AD2 are written via data bus 34. The upper side AC and lower side AC of the address AC of the address bus 31 are the upper side bus 32 and the lower side bus 33, respectively.
is applied to the CAM array 30 via the CAM array 30. The verification data AD, , AD2 are the lower side AC, AD2 of the address AC, respectively.
, and upper side AC2, and if they match, a match signal is output to match signal output lines 35 and 36, respectively. The control circuit 38 logically ORs the match signal on the match signal output line 35 and a portion of the match signal on the match signal output line 36, and outputs an I10 select signal SEL. Of the match signals on the match signal output line 36, those other than those output to the control circuit 38 are output as they are as a highly versatile memory chip select signal C3L that specifies the upper address of the memory.

本実施例では、チップセレクトロジックを簡単に実現で
きるとともに、アドレス信号AC,。
In this embodiment, the chip select logic can be easily realized, and the address signals AC,.

AC2との比較検出信号数を容易に変更することが可能
となるため、メモリセレクトとI10セレクトとの比率
を自由に変えられるので応用システムに応じてメモリが
多いシステムならメモリセレクトを多く、Iloが多け
ればI10セレクトを多くというように対応でき、チッ
プセレクトロジックにおける多種のアプリケーションに
柔軟に対応できる。
Comparison with AC2 It is possible to easily change the number of detection signals, so the ratio of memory select and I10 select can be freely changed, so depending on the application system, if the system has a lot of memory, increase the memory select, and if the Ilo is It can support as many I10 selects as possible, and can flexibly support various applications in chip select logic.

(発明の効果) 以上説明したように本発明は、複数ワード分の内容アド
レスメモリレジスタを有する内容アドレスメモリアレイ
を比較すべき第1、第2の入力信号のワード数に合わせ
内容アドレスメモリアレイを第1、第2の領域に分割し
、第1、第2の領域に設定された第1、第2の照合用デ
ータと第1、第2の入力信号と比較し、一致を検出する
ことにより、第1、第2の入力信号の合計ワード数と内
容アドレスメモリアレイのワード数とを近づけることが
でき内容アドレスメモリアレイの使われない部分が少な
くなる効果があり、内容アドレスメモリアレイは第1、
第2の照合データを設定するのに1個のリードライトバ
ッファで行なえるのでハードウェアを小さくできる効果
もある。
(Effects of the Invention) As explained above, the present invention has a content address memory array having a content address memory register for a plurality of words, and adjusts the content address memory array according to the number of words of the first and second input signals to be compared. By dividing the data into first and second regions, comparing the first and second verification data set in the first and second regions with the first and second input signals, and detecting a match. , the total number of words of the first and second input signals can be brought closer to the number of words of the content address memory array, which has the effect of reducing the unused portion of the content address memory array. ,
Since the second verification data can be set using one read/write buffer, there is an effect that the hardware can be made smaller.

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

第1図は本発明の一致検出回路の第1の実施例を示す構
成図、第2図は第1図のCAMアレイ1の一具体例を示
す構成図、第3図は本発明の第2の実施例を示す構成図
、第4図はこの種の一致検出回路の従来例を示す構成図
、第5図、第6図は第4図の内容アドレスメモリアレイ
51.52(以降CAMアレイ51,52と記す)の内
部を示す構成図である。 1.30−−−−−−−−−−−−−−−− CA M
アレイ、1、 、30.−−−−−−−−−一部1の領
域、12、302−−−−−・・・第2の領域、2 、
3−−−−−−−−−−−−−−−−−カウンタ、4.
34−・・・・・・・・−・・・・・・・・・内部バス
、5.6.:15.:1B −−−−−−−−−一致信
号出力ライン、7 、37−−−−−−−−−−−−−
−−−一制御ライン、111 、112 、113 、
114−・””CAMレジスタ+2・・・・・・・・・
・・・・・・・・・・・・・・・リードライトバッファ
、13−−−−−−−−−−−−−−−−−−一選択回
路、14、+5.18,17.18・−・・・制御ライ
ン、+4. 、142〜,183・・・・・・・・・ス
イッチ素子、21.22,23.24−−−−−−一出
力ライン、31−−−−−−−−−−−−−−−−・−
アドレスバス、32−−−−−−−−−−−一・・・・
−・−上位側バス、33−−−−−−−−−−−−−−
−−−・・−下位側バス、34−−−−−−−−−−−
−−−−−−−−データバス、38・・・・・・・・・
・・・・・・・−・・・・−制御回路。
FIG. 1 is a block diagram showing a first embodiment of the coincidence detection circuit of the present invention, FIG. 2 is a block diagram showing a specific example of the CAM array 1 of FIG. 1, and FIG. FIG. 4 is a configuration diagram showing a conventional example of this type of coincidence detection circuit, and FIGS. , 52). 1.30--------------- CA M
Array, 1, , 30. -----------Part 1 area, 12, 302----Second area, 2,
3------------------Counter, 4.
34-・・・・・・・・・・・・・・・・・・ Internal bus, 5.6. :15. :1B ------------ Match signal output line, 7, 37 ------------
---One control line, 111, 112, 113,
114-・””CAM register +2・・・・・・・・・
. . . Read/Write buffer, 13------------- One selection circuit, 14, +5.18, 17. 18.--Control line, +4. , 142-,183...Switch element, 21.22, 23.24--One output line, 31-- −・−
Address bus, 32----------1...
−・−Upper side bus, 33−−−−−−−−−−−−−−
-----...Lower side bus, 34---------------
−−−−−−−−Data bus, 38・・・・・・・・・
・・・・・・・・・−・・Control circuit.

Claims (1)

【特許請求の範囲】 1、1ワードあるいは複数ワードからなる第1、第2の
照合用データを保持し、1ワードあるいは複数ワードか
らなる第1、第2の入力信号を入力し、それぞれ第1、
第2の照合用データと比較し、一致したときそれぞれ第
1、第2の一致信号を出力する一致検出回路であって、 ワード単位で第1、第2の照合用データを保持できるよ
うに複数の内容アドレスメモリからなる内容アドレスメ
モリレジスタを複数個有する内容アドレスメモリアレイ
と、 第1、第2の照合用データをそれぞれ保持できるように
内容アドレスメモリアレイをワード単位で第1、第2の
領域に設定し、設定した第1、第2の領域に第1、第2
の照合用データを格納させ、第1、第2の領域を分割指
示により独立にさせ、独立にさせた第1、第2の領域が
それぞれ保持している第1、第2の照合用データと、第
1、第2の領域がそれぞれ入力する第1、第2の入力信
号とを第1、第2の領域に比較させ、一致したときそれ
ぞれ一致信号を出力させる制御回路とを有する一致検出
回路。
[Claims] First and second collation data consisting of one word or a plurality of words are held, first and second input signals consisting of one word or a plurality of words are input, and the first ,
A match detection circuit that compares the data with the second matching data and outputs the first and second matching signals when they match, and includes a plurality of match detection circuits that can hold the first and second matching data in word units. a content address memory array having a plurality of content address memory registers each consisting of a content address memory of and set the first and second areas to the set first and second areas.
The first and second areas are made independent by a division instruction, and the first and second areas are stored with the first and second matching data held respectively by the independent first and second areas. , a coincidence detection circuit having a control circuit that causes the first and second areas to compare the first and second input signals respectively inputted to the first and second areas, and outputs a coincidence signal when they match. .
JP9591888A 1988-04-18 1988-04-18 Match detection circuit Expired - Fee Related JPH0795266B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9591888A JPH0795266B2 (en) 1988-04-18 1988-04-18 Match detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9591888A JPH0795266B2 (en) 1988-04-18 1988-04-18 Match detection circuit

Publications (2)

Publication Number Publication Date
JPH01266623A true JPH01266623A (en) 1989-10-24
JPH0795266B2 JPH0795266B2 (en) 1995-10-11

Family

ID=14150657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9591888A Expired - Fee Related JPH0795266B2 (en) 1988-04-18 1988-04-18 Match detection circuit

Country Status (1)

Country Link
JP (1) JPH0795266B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002086717A1 (en) * 2001-04-16 2002-10-31 Xaxon R & D Corporation Computer virus check device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002086717A1 (en) * 2001-04-16 2002-10-31 Xaxon R & D Corporation Computer virus check device and method

Also Published As

Publication number Publication date
JPH0795266B2 (en) 1995-10-11

Similar Documents

Publication Publication Date Title
US5375089A (en) Plural port memory system utilizing a memory having a read port and a write port
US6480931B1 (en) Content addressable storage apparatus and register mapper architecture
US7139182B2 (en) Cutting CAM peak power by clock regioning
US5421019A (en) Parallel data processor
US6279088B1 (en) Memory device with multiple processors having parallel access to the same memory area
US5752260A (en) High-speed, multiple-port, interleaved cache with arbitration of multiple access addresses
US20180247682A1 (en) Methods for reading data from a storage buffer including delaying activation of a column select
US20060143428A1 (en) Semiconductor signal processing device
US8341328B2 (en) Method and system for local memory addressing in single instruction, multiple data computer system
JPH06333394A (en) Dual port computer memory device, method for access, computer memory device and memory structure
US7107392B2 (en) Content addressable memory (CAM) device employing a recirculating shift register for data storage
JPH01266623A (en) Coincidence detecting circuit
US20030200422A1 (en) Parallel processor
JPH05113929A (en) Microcomputer
JPH11143763A (en) Processing circuit device of access conflict
US7092310B2 (en) Memory array with multiple read ports
KR20220127601A (en) Memory system, memory device of performing internal processing operations with interface, operation method of the memory device having the same
JP2788765B2 (en) Semiconductor storage device
JPH01222348A (en) Semiconductor memory device
JPS622317A (en) Multilevel comparison and coincidence detecting circuit
JPH02137194A (en) Contents address attachable memory
KR19980035680A (en) Address converter circuit
JPS62123587A (en) Memory cell card
JPH03218547A (en) Semiconductor storage device
JPH04168544A (en) Semiconductor memory

Legal Events

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