JPH0795266B2 - Match detection circuit - Google Patents

Match detection circuit

Info

Publication number
JPH0795266B2
JPH0795266B2 JP9591888A JP9591888A JPH0795266B2 JP H0795266 B2 JPH0795266 B2 JP H0795266B2 JP 9591888 A JP9591888 A JP 9591888A JP 9591888 A JP9591888 A JP 9591888A JP H0795266 B2 JPH0795266 B2 JP H0795266B2
Authority
JP
Japan
Prior art keywords
data
content address
cam
detection circuit
match
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
Application number
JP9591888A
Other languages
Japanese (ja)
Other versions
JPH01266623A (en
Inventor
敏弘 野間
修 松嶋
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

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

Description

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

〔従来の技術〕[Conventional technology]

第4図はこの種の一致検出回路の従来例を示す構成図、
第5図、第6図は第4図の内容アドレスメモリアレイ5
1,52(以降CAMアレイ51,52と記す)の内部を示す構成図
である。
FIG. 4 is a block 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 is a configuration diagram showing the inside of 1,52 (hereinafter referred to as CAM arrays 51,52).

内容アドレスメモリ(以降CAMと記す)はデータの比較
機能を持つメモリで、動作については近代化学社発行MO
S集積回路(P402〜403)などに記述されており、同時に
多数の比較動作を行なうような場合にCAMアレイ51,52と
して使用されている。
The content address memory (hereinafter referred to as CAM) is a memory that has a data comparison function, and its operation is MO issued by Kyundai Kagaku Co.
It is described in S integrated circuits (P402 to 403) and is used as the CAM arrays 51 and 52 when a large number of comparison operations are simultaneously performed.

CAMアレイ51,52は内部バス53を介してそれぞれ入力した
照合用データD1,D2を保持し、それぞれ入力する入力信
号C1,C2と比較し、一致すると一致信号をそれぞれ出力
ライン54,55に出力する。
The CAM arrays 51 and 52 hold the matching data D 1 and D 2 respectively input via the internal bus 53, compare them with the input signals C 1 and C 2 respectively input, and if they match, output a match signal to the output line 54 respectively. , 55.

CAMアレイ51,52はそれぞれバッファ回路60と、CAMレジ
スタ61,62,〜,6nとを有する。CAMレジスタ62,62,〜,6n
は1ワードがkビットのデータを保持するためにそれぞ
れCAMセル71,72〜7kを有する。CAMアレイ51,52は照合用
データD1,D2をバッファ回路60を介して入力し、ワード
単位でCAMレジスタ61,62,〜,6nに格納する。そして、CA
Mレジスタ61,62,〜,6nに格納したデータをそれぞれ入力
信号C1,C2とワード単位毎に比較し一致すると一致信号
を出力する。
Each of the CAM arrays 51 and 52 has a buffer circuit 60 and CAM registers 61, 62, ..., 6n. CAM registers 62,62, ~, 6n
Has CAM cells 71, 72 to 7k for holding k bits of data in one word. The CAM arrays 51 and 52 input the collation data D 1 and D 2 via the buffer circuit 60 and store the data in word units in the CAM registers 61, 62, to 6n. And CA
The data stored in the M registers 61, 62, to 6n are compared with the input signals C 1 and C 2 on a word-by-word basis, and if they match, a match signal is output.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述した従来の一致検出回路は、入力信号C1,C2をそれ
ぞれ照合用データD1,D2と比較するCAMアレイ51,52が独
立固定的に設けられ、かつ、それぞれにはリードライト
バッファが設けられているので、ワード数の少ないデー
タの比較に際してはCAMアレイ51,52の使用効率が悪く、
またリードライトバッファがハードウェアを占有する面
積が大きく不経済であるという欠点がある。
The above-mentioned conventional coincidence detection circuit is provided with CAM arrays 51 and 52 for independently comparing input signals C 1 and C 2 with collation data D 1 and D 2 , respectively, and a read / write buffer is provided for each of them. Is provided, the use efficiency of the CAM arrays 51 and 52 is low when comparing data with a small number of words,
Further, there is a drawback that the read / write buffer occupies a large area of hardware and is uneconomical.

〔課題を解決するための手段〕[Means for Solving the Problems]

本発明の一致検出回路は、 ワード単位で第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 including a plurality of content address memories so as to hold the first and second verification data in word units; The content address memory array is set to the first and second areas in word units so that each of the two verification data can be held, and the first and second areas are set in the set first and second areas.
Collating data of the first collating data is stored, the first and second regions are made independent by the division instruction, and the first and second collating data held by the independently made regions and the first and second collating data, respectively. The first and second input signals respectively input to the regions of
And a control circuit for comparing the second region and outputting a coincidence signal when they coincide with each other.

〔作用〕[Action]

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

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明す
る。
Next, embodiments 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 shown in FIG.

CAMアレイ1は制御ライン7からの分割指示によって第
1、第2の領域11,12に分割され、分割された第1、第
2の領域11,12にはそれぞれ分割前に照合用データD1,D2
が内部バス4を介して書込まれている。カウンタ2,3に
はそれぞれ照合用データD1,D2と比較されるカウンタ出
力C1,C2が設定される。第1、第2の領域11,12に書込ま
れたデータD1,D2がそれぞれカウンタデータC1,D2と一致
すると、一致信号がそれぞれ一致信号出力ライン5,6に
出力される。
The CAM array 1 is divided into first and second areas 1 1 and 1 2 according to a division instruction from the control line 7, and the divided first and second areas 1 1 and 1 2 are collated before division. Data for D 1 , D 2
Is written via the internal bus 4. Counter output C 1 of the counter 2 and 3 are respectively compared with the reference data D 1, D 2, C 2 is set. When the data D 1 and D 2 written in the first and second areas 1 1 and 12 match the counter data C 1 and D 2 , respectively, a match signal is output to the match signal output lines 5 and 6, respectively. It

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

本具体例においては、3ビット1ワードで4ワード分の
一致検出ができる。制御ライン7から制御ライン17の選
択が指示されると、選択回路13は制御ライン17をアクテ
ィブにする。制御ライン17がアクティブになると、スイ
ッチ素子171,172,173はオフとなり、CAMレジスタ111,11
2,113が第1の領域11となり、CAMレジスタ114が第2の
領域12となる。分割前に内部バス4、リードライトバッ
ファ12を介してCAMレジスタ111,112,113に3ワードの照
合用データD1が書込まれ、CAMレジスタ114に1ワードの
照合用データD2が書込まれている。3ワードのカウンタ
データC1と1ワードのカウンタデータC2が設定される
と、カウンタデータC1は対応するワード毎にCAMレジス
タ111,112,113のデータと比較され、一致すると一致信
号がそれぞれ出力ライン21,22,23を介して一致信号出力
ライン5に出力される。カウンタデータC2はCAMレジス
タ114のデータD2とされ、一致すると一致信号が出力ラ
イン24を介して一致信号出力ライン6に出力される。
In this specific example, a match detection of 4 words can be performed with 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 17 1 , 17 2 and 17 3 are turned off, and the CAM registers 11 1 , 11
2, 11 3 is the first region 1 becomes 1, CAM register 11 4 is the second region 1 2. Before division, 3-word collation data D 1 is written to CAM registers 11 1 , 11 2 , and 11 3 via internal bus 4 and read / write buffer 12, and 1- word collation data D is written to CAM register 11 4. 2 is written. When the 3-word counter data C 1 and the 1-word counter data C 2 are set, the counter data C 1 is compared with the data in the CAM registers 11 1 , 11 2 , 11 3 for each corresponding word, and if they match, they match The signal is output to the coincidence signal output line 5 via the output lines 21, 22, and 23, respectively. Counter data C 2 is the data D 2 of the CAM register 11 4, matching the coincidence signal is output 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の領域301,302に分割され第1、第2の領域3
01,302にはそれぞれ照合用データAD1,AD2がデータバス3
4を介して分割前に書込まれている。アドレスバス31の
アドレスACの上位側AC2および下位側AC1がそれぞれ上位
側バス32、下位側バス33を介してCAMアレイ30に与えら
れる。照合用データAD1,AD2はそれぞれアドレスACの下
位側AC1、上位側AC2と比較され、一致すると一致信号が
それぞれ一致信号出力ライン35,36に出力される。制御
回路38は一致信号出力ライン35の一致信号と、一致信号
出力ライン36の一致信号の一部との論理和をとりI/Oセ
レクト信号SELを出力する。一致信号出力ライン36の一
致信号のうち制御回路38に出力されたもの以外はそのま
まメモリの上位アドレスを指定する汎用性の高いメモリ
のチップセレクト信号CSLとして出力される。
The CAM array 30 is divided into first and second areas 30 1 and 30 2 according to a division instruction from the control line 37, and first and second areas 3
The verification data AD 1 and AD 2 are input to the data bus 3 to 0 1 and 30 2 , respectively.
Written before splitting through 4. The upper side AC 2 and the lower side AC 1 of the address AC of the address bus 31 are given to the CAM array 30 via the upper side bus 32 and the lower side bus 33, respectively. The matching data AD 1 and AD 2 are respectively compared with the lower side AC 1 and the upper side AC 2 of the address AC, and if they match, a match signal is output to the match signal output lines 35 and 36, respectively. The control circuit 38 takes the logical sum of the match signal on the match signal output line 35 and a part of the match signal on the match signal output line 36, and outputs the I / O select signal SEL. Of the match signals on the match signal output line 36, signals other than those output to the control circuit 38 are output as they are as the chip select signal CSL of the highly versatile memory that specifies the upper address of the memory.

本実施例では、チップセレクトロジックを簡単に実現で
きるとともに、アドレス信号AC1,AC2との比較検出信号
数を容易に変更することが可能となるため、メモリセレ
クトとI/Oセレクトとの比率を自由に変えられるので応
用システムに応じてメモリが多いシステムならメモリセ
レクトを多く、I/Oが多ければI/Oセレクトを多くという
ように対応でき、チップセレクトロジックにおける多種
のアプリケーションに柔軟に対応できる。
In this embodiment, the chip select logic can be easily realized, and the number of comparison detection signals with the address signals AC 1 and AC 2 can be easily changed, so that the ratio of the memory select and the I / O select can be changed. Can be freely changed, so if the system has a large amount of memory according to the application system, it can handle many memory selects, and if there are many I / Os, it can handle many I / O selects. it can.

〔発明の効果〕〔The invention's effect〕

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

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の一致検出回路の第1の実施例を示す構
成図、第2図は第1図のCAMアレイ1の一具体例を示す
構成図、第3図は本発明の第2の実施例を示す構成図、
第4図はこの種の一致検出回路の従来例を示す構成図、
第5図、第6図は第4図の内容アドレスメモリアレイ5
1,52(以降CAMアレイ51,52と記す)の内部を示す構成図
である。 1,30……CAMアレイ、11,301……第1の領域、12,302
…第2の領域、2,3……カウンタ、4,34……内部バス、
5,6,35,36……一致信号出力ライン、7,37……制御ライ
ン、111、112,113,114……CAMレジスタ、12……リードラ
イトバッファ、13……選択回路、14,15,16,17,18……制
御ライン、141,142〜,183……スイッチ素子、21,22,2
3,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. 3 is a second block diagram of the present invention. A block diagram showing an embodiment of
FIG. 4 is a block 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 is a configuration diagram showing the inside of 1,52 (hereinafter referred to as CAM arrays 51,52). 1,30 ...... CAM array, 1 1, 30 1 ...... first region, 1 2, 30 2 ...
… Second area, 2,3 …… Counter, 4,34 …… Internal bus,
5,6,35,36 …… Matching signal output line, 7,37 …… Control line, 11 1 , 11 2 , 11, 3 , 11 4 …… CAM register, 12 …… Read / write buffer, 13 …… Selection circuit , 14,15,16,17,18 ...... Control line, 14 1 , 14 2 ~, 18 3 ...... Switch element, 21,22,2
3,24 …… Output line, 31 …… Address bus, 32 …… Upper side bus, 33 …… Lower side bus, 34 …… Data bus, 38 ……
Control circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】照合用データを保持する内容アドレスレジ
スタと、任意数の前記内容アドレスレジスタからなる内
容アドレスメモリアレイと、前記内容アドレスメモリア
レイに保持された任意数の照合用データそれぞれと入力
信号とを比較して一致する照合用データがあると対応す
る一致信号を各々出力する一致検出回路において、前記
内容アドレスメモリアレイを構成する前記任意数の内容
アドレスレジスタに任意数の照合用データを書き込む手
段と、前記内容アドレスメモリアレイを構成する前記任
意数の内容アドレスレジスタを第1、第2の領域に分割
する手段と、分割された第1、第2の領域がそれぞれ保
持している任意数の照合用データと、第1、第2の領域
がそれぞれ入力する第1、第2の入力信号とをそれぞれ
比較して一致する照合用データがあると対応する一致信
号を各々出力することを特徴とする一致検出回路。
1. A content address register for holding collation data, a content address memory array comprising an arbitrary number of said content address registers, an arbitrary number of collation data held in said content address memory array, and an input signal. In the coincidence detection circuit which outputs a corresponding coincidence signal when there is matching data for comparison by comparing with, the arbitrary number of verification data are written in the arbitrary number of content address registers forming the content address memory array. Means, means for dividing the arbitrary number of content address registers forming the content address memory array into first and second areas, and arbitrary number held by the divided first and second areas, respectively. And the matching data is compared with the first and second input signals input to the first and second regions, respectively, and they match each other. Coincidence detection circuit, characterized in that each outputs a coincidence signal corresponding to it is if data.
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 JPH01266623A (en) 1989-10-24
JPH0795266B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4334231B2 (en) * 2001-04-16 2009-09-30 ザクソン・アールアンドディ株式会社 Computer virus inspection apparatus and semiconductor integrated circuit

Also Published As

Publication number Publication date
JPH01266623A (en) 1989-10-24

Similar Documents

Publication Publication Date Title
US5375089A (en) Plural port memory system utilizing a memory having a read port and a write port
US4924375A (en) Page interleaved memory access
AU626051B2 (en) High performance memory system
GB1600633A (en) Data processing systems
US5893135A (en) Flash memory array with two interfaces for responding to RAS and CAS signals
JPH0746507B2 (en) Dual port read / write memory
JPH02113492A (en) Random-access-memory circuit having condition writing means
JPH0715665B2 (en) Personal computer
EP0366588A2 (en) Memory organization with arrays having an alternate data port facility
US5949734A (en) Semiconductor memory device
JPS5946079B2 (en) Multi-addressable storage
US7178008B2 (en) Register access scheduling method for multi-bank register file of a super-scalar parallel processor
JPH0795266B2 (en) Match detection circuit
JPH0438014B2 (en)
JP3872922B2 (en) Semiconductor memory device and memory embedded logic LSI
US20060248247A1 (en) Apparatus and method for controlling access to a memory
JPH03165399A (en) Multiplane random access memory device
JPS63124298A (en) Memory device
US6901490B2 (en) Read/modify/write registers
JP2000187983A (en) Memory device
JP3078000B2 (en) Information processing device
JPH05113929A (en) Microcomputer
JP2669195B2 (en) Interrupt control circuit
CN117789785A (en) Memory device and method of operating the same
JPH0675860A (en) Address conversion buffer

Legal Events

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