JP2001023379A - Associative storing circuit - Google Patents

Associative storing circuit

Info

Publication number
JP2001023379A
JP2001023379A JP2000179520A JP2000179520A JP2001023379A JP 2001023379 A JP2001023379 A JP 2001023379A JP 2000179520 A JP2000179520 A JP 2000179520A JP 2000179520 A JP2000179520 A JP 2000179520A JP 2001023379 A JP2001023379 A JP 2001023379A
Authority
JP
Japan
Prior art keywords
entry
line
data
comparison
compared
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.)
Abandoned
Application number
JP2000179520A
Other languages
Japanese (ja)
Inventor
Akihiko Kubo
昭彦 久保
Tachiki Ichihashi
立機 市橋
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2000179520A priority Critical patent/JP2001023379A/en
Publication of JP2001023379A publication Critical patent/JP2001023379A/en
Abandoned legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores
    • G11C15/04Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores using semiconductor elements

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to compare data of variable length by providing plural entry having flip-flop storing compared result of entry of which an address is lower by one and a circuit in which product of an output of a flip- flop and compared result of a comparator becomes the compared result of entry. SOLUTION: Plural entry are provided with entry result circuits 14. A flip-flop 23 latches compared result of an entry match line 17 at timing at which a word line WL is made to L from H, and stores compared result of entry of which an address in comparing operation performed in the latest is lower by one. A combination circuit 19 outputs H to an entry match line 74 when comparison result in entry of which the address is lower by one and the present comparison result 72 match with each other in the latest comparison operation, a sequence signal terminal is at L, and the present comparison operation is continuous comparison of the entry.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は記憶回路に関し、特に
データを入力し同一或いは複数の語が存在するか否かの
結果等を出力する連想記憶回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage circuit, and more particularly to an associative storage circuit for inputting data and outputting a result as to whether the same or plural words exist or not.

【0002】[0002]

【従来の技術】図15は「Advanced Micr
o Devices CMOS Memory Pro
ducts 1991 Data Book/Hand
book」,p5−4に示された従来の連想記憶回路の
構成図である。図において、49は連想記憶回路、50
は比較データが格納される比較レジスタ、52は連想記
憶回路49の複数のエントリ、53は外部から連想記憶
回路49へのコマンドを格納するコマンドレジスタ、5
4は連想記憶回路49の状態を格納しているステータス
レジスタ、55は連想記憶回路49に格納されているデ
ータをリードするためのCAMレジスタである。
2. Description of the Related Art FIG.
o Devices CMOS Memory Pro
ducts 1991 Data Book / Hand
FIG. 4 is a configuration diagram of a conventional associative memory circuit shown in “book”, p5-4. In the figure, 49 is an associative memory circuit, 50
Is a comparison register for storing comparison data; 52 is a plurality of entries of the associative memory circuit 49; 53 is a command register for storing a command from the outside to the associative memory circuit 49;
Reference numeral 4 denotes a status register that stores the state of the associative memory circuit 49, and reference numeral 55 denotes a CAM register that reads data stored in the associative memory circuit 49.

【0003】68は連想記憶回路49へのアクセスが行
なわれていることを指示する外部からのチップイネーブ
ル信号を入力するチップイネーブル信号端子、66はチ
ップイネーブル信号が有効なときに連想記憶回路49へ
のアクセスがライト動作であることを指示するライトイ
ネーブル信号を入力するライトイネーブル信号端子、6
7はチップイネーブル信号が有効なときに、連想記憶回
路49へのアクセスが該連想記憶回路内部のレジスタの
リード動作であることを指示するアウトプットイネーブ
ル信号を入力するアウトプットイネーブル信号端子、6
5はチップイネーブル信号が有効なときに、そのアクセ
スがコマンドであるかデータであるかを指示するデータ
/コマンドセレクト信号を入力するデータ/コマンドセ
レクト信号端子、62は外部への出力信号端子、64は
データバス信号端子である。
Reference numeral 68 denotes a chip enable signal terminal for inputting an external chip enable signal indicating that access to the associative memory circuit 49 is being performed, and 66 denotes an associative memory circuit 49 when the chip enable signal is valid. A write enable signal terminal for inputting a write enable signal instructing that the access is a write operation;
Reference numeral 7 denotes an output enable signal terminal for inputting an output enable signal indicating that access to the associative memory circuit 49 is a read operation of a register in the associative memory circuit when the chip enable signal is valid;
Reference numeral 5 denotes a data / command select signal terminal for inputting a data / command select signal indicating whether the access is a command or data when the chip enable signal is valid; 62, an external output signal terminal; Is a data bus signal terminal.

【0004】69はチップイネーブル信号端子68と、
ライトイネーブル信号端子66と、アウトプットイネー
ブル信号端子67と、データ/コマンドセレクト信号端
子65とに入力される信号により外部との入出力を制御
するI/O制御回路である。56は連想記憶回路49内
の全てのエントリ52からの比較結果を元にステータス
レジスタ54の内容を更新し、出力信号端子62にマッ
チ信号を生成出力するCAM結果回路である。
[0004] 69 is a chip enable signal terminal 68,
This is an I / O control circuit that controls input and output to and from the outside by signals input to a write enable signal terminal 66, an output enable signal terminal 67, and a data / command select signal terminal 65. Reference numeral 56 denotes a CAM result circuit that updates the contents of the status register 54 based on the comparison results from all the entries 52 in the associative memory circuit 49, and generates and outputs a match signal to an output signal terminal 62.

【0005】上記のエントリ52は比較されるデータが
格納される被比較レジスタ57と、被比較レジスタ57
のデータと比較レジスタ50のデータの比較を行なう比
較器58と、比較器58の比較結果を通知する比較器マ
ッチライン72と、当該エントリの状態を示す情報であ
り被比較レジスタ57にデータが格納されていないこと
を示すエンプティビット61と、比較器58の比較結果
とエンプティビット61の情報を元に当該エントリの比
較結果を生成するエントリ結果回路59とを有してい
る。
The above-mentioned entry 52 includes a compared register 57 storing data to be compared and a compared register 57.
A comparator 58 for comparing the data of the comparator 50 with the data of the comparison register 50, a comparator match line 72 for notifying the comparison result of the comparator 58, and information indicating the state of the entry, and the data stored in the compared register 57. And an entry result circuit 59 for generating a comparison result of the entry based on the comparison result of the comparator 58 and the information of the empty bit 61.

【0006】74はエントリ52の比較結果をCAM結
果回路56に通知するエントリマッチラインであり、7
1は連想記憶回路49内部の各レジスタとデータバス信
号端子64間を接続するデータバスであり、73は比較
レジスタ50と各エントリ52内の被比較レジスタ57
及び比較器58を接続する比較バスである。
Reference numeral 74 denotes an entry match line for notifying the CAM result circuit 56 of the comparison result of the entry 52;
Numeral 1 denotes a data bus connecting between each register in the associative memory circuit 49 and the data bus signal terminal 64, and 73 denotes a comparison register 50 and a compared register 57 in each entry 52.
And a comparison bus for connecting the comparator 58.

【0007】エントリ52は連想記憶回路49内に複数
存在し、アドレスが#0から昇順に付けられている。図
示例では、被比較レジスタ57、比較レジスタ50及び
CAMレジスタ55のサイズは48ビット、比較器58
の比較データサイズは48ビット、コマンドレジスタ5
3及びステータスレジスタ54のサイズは16ビット、
連想記憶回路49内部のエントリ数は256個である。
これらの値は相対的又は独立的に変更することが可能で
ある。
A plurality of entries 52 exist in the associative memory circuit 49, and the addresses are assigned in ascending order from # 0. In the illustrated example, the size of the compared register 57, the comparison register 50 and the CAM register 55 is 48 bits,
The comparison data size is 48 bits and the command register 5
3 and the size of the status register 54 are 16 bits,
The number of entries in the associative memory circuit 49 is 256.
These values can be changed relatively or independently.

【0008】図16は、例えば特開平3−113897
号公報に記憶されたCAMセルの構成図である。図16
の1つのCAMセルは、図15における被比較レジスタ
57及び比較器58の各1ビットの回路構成を示したも
のである。従って、被比較レジスタ57のサイズは48
ビットである場合には48個のCAMセルが1つのエン
トリ52内に存在する。
FIG. 16 shows, for example, Japanese Patent Application Laid-Open No. HEI 3-13897.
FIG. 1 is a configuration diagram of a CAM cell stored in Japanese Unexamined Patent Publication (Kokai) No. H10-26095. FIG.
One CAM cell shows a 1-bit circuit configuration of the compared register 57 and the comparator 58 in FIG. Therefore, the size of the compared register 57 is 48
If it is a bit, there are 48 CAM cells in one entry 52.

【0009】図16において、CCはCAMセル、WL
はエントリ52が選択されたことを示すワード線、BL
は被比較レジスタ57及び比較器58の各ビット毎に存
在する真値ビット線、_BLは真値ビット線BLの補値
である補値ビット線、RLはメモリセルMC内のデータ
を比較回路COMに伝えるための真値被比較データ線、
_RLは真値被比較データ線RLの補値である補値被比
較データ線である。
In FIG. 16, CC is a CAM cell, WL
Is a word line indicating that the entry 52 is selected, BL
Is a true bit line existing for each bit of the compared register 57 and the comparator 58, _BL is a complement bit line which is a complement of the true bit line BL, and RL is a comparator circuit COM for comparing data in the memory cell MC. True-value compared data line to communicate to
_RL is a complement value compared data line that is a complement value of the true value comparison data line RL.

【0010】TW1とTW2はトランスファトランジス
タ、Tr1,Tr2,Tr3,Tr4はトランジスタ、
Tpはプリチャージトランジスタ、ΦはTpを制御する
制御信号、MCは被比較データの1ビットを格納するメ
モリセル、MLはCAMセルCCの比較結果を示すマッ
チライン、Dはマッチラインの信号をドライブするドラ
イバ、COMはメモリセルMC内の被比較データとビッ
ト線BL,_BLの比較データの一致/不一致を判定す
る比較回路、SCはメモリセルMC及びトランジスタフ
ァトランジスタTW1,TW2から構成される記憶セル
である。
TW1 and TW2 are transfer transistors, Tr1, Tr2, Tr3 and Tr4 are transistors,
Tp is a precharge transistor, Φ is a control signal for controlling Tp, MC is a memory cell storing one bit of data to be compared, ML is a match line indicating the comparison result of the CAM cell CC, and D is a signal of the match line. COM is a comparison circuit that determines whether the data to be compared in the memory cell MC matches the comparison data of the bit lines BL and _BL, and SC is a storage cell composed of the memory cell MC and the transistors TW1 and TW2. It is.

【0011】上記マッチラインMLに出力されるドライ
バDの出力が、図15の比較器マッチライン72に相当
する。図中のトランジスタはNチャネル型トランジスタ
である。
The output of the driver D output to the match line ML corresponds to the comparator match line 72 in FIG. The transistors in the figure are N-channel transistors.

【0012】図17は前記刊行物p5−8に示されたエ
ントリ結果回路59の構成図である。図17において、
75は組合わせ回路、84はエンプティビット61の出
力線である。
FIG. 17 is a block diagram of the entry result circuit 59 shown in the publication p5-8. In FIG.
75 is a combination circuit, and 84 is an output line of the empty bit 61.

【0013】エンプティビット61の値が“1”のと
き、エントリ52内の被比較レジスタ57にデータが格
納されておらず空き状態であり、その出力線84からの
出力は、“High”(以下、“H”と略す)となる。
エンプティビット61の値が“0”のとき、被比較レジ
スタ57にデータが格納されている状態であり、その出
力線84からの出力は“Low”(以下、“L”と略
す)となる。
When the value of the empty bit 61 is "1", no data is stored in the to-be-compared register 57 in the entry 52, and the output from the output line 84 is "High" (hereinafter referred to as "High"). , “H”).
When the value of the empty bit 61 is “0”, data is stored in the compared register 57, and the output from the output line 84 is “Low” (hereinafter abbreviated as “L”).

【0014】組合わせ回路75はエンプティビット61
の出力線84からの出力が“L”かつ比較器マッチライ
ン72の値が“H”のときのみ、エントリマッチライン
74の値が“H”となる回路である。エンプティビット
61の値は被比較レジスタ57にデータを格納するとき
に“0”に設定される。また、コマンドレジスタ53の
設定によって“0”又は“1”に設定される。
The combination circuit 75 has an empty bit 61
Is a circuit in which the value of the entry match line 74 becomes "H" only when the output from the output line 84 is "L" and the value of the comparator match line 72 is "H". The value of the empty bit 61 is set to “0” when data is stored in the compared register 57. Also, it is set to “0” or “1” by the setting of the command register 53.

【0015】図18は、図15のCAM結果回路56の
構成図である。図において、78はドライバ、81はプ
リチャージトランジスタ82のゲートを制御する制御信
号、79はマッチライン、77は256本の入力信号を
8本の信号にエンコードし出力するプライオリティエン
コーダライン、76はエントリ52に対応して存在する
マッチ回路であり、トランジスタ80で構成されてい
る。図中のトランジスタはチャネル型トランジスタであ
る。
FIG. 18 is a configuration diagram of the CAM result circuit 56 of FIG. In the figure, 78 is a driver, 81 is a control signal for controlling the gate of the precharge transistor 82, 79 is a match line, 77 is a priority encoder line for encoding and outputting 256 input signals into 8 signals, 76 is an entry A match circuit corresponding to 52 is formed by a transistor 80. The transistors in the figure are channel transistors.

【0016】プライオリティエンコーダライン77は2
56本の入力信号に優先度を設けており、エントリ52
のアドレスが小さい方が優先度が高い。従って複数のエ
ントリマッチライン74が“H”になる場合には、優先
度が高いエントリ52のアドレスをステータスレジスタ
54に書き込む。
The priority encoder line 77 is 2
Priority is set for 56 input signals, and entry 52
The smaller the address, the higher the priority. Therefore, when the plurality of entry match lines 74 become “H”, the address of the entry 52 having the higher priority is written into the status register 54.

【0017】次に動作について説明する。Next, the operation will be described.

【0018】まず、CAMセルCC内のメモリセルMC
にデータを書き込む場合の動作を説明する。真値ビット
線BLに“H”の電位を与え、補値ビット線_BLに
“L”の電位を与え、ワード線WLに“H”の電位を与
えた後、ワード線WLの電位を“L”にする。それによ
り、点aは“H”の電位に保持され、点bは“L”の電
位に保持される。この状態をメモリセルMCに“1”の
データが書き込まれた状態と称する。この状態ではトラ
ンジスタTr1はオフし、トランジスタTr2はオンし
ている。
First, the memory cell MC in the CAM cell CC
The operation when data is written to the memory will be described. After a potential of “H” is applied to the true value bit line BL, a potential of “L” is applied to the complementary bit line _BL, and a potential of “H” is applied to the word line WL, the potential of the word line WL is set to “L”. " As a result, the point a is held at the “H” potential and the point b is held at the “L” potential. This state is referred to as a state in which “1” data is written in the memory cell MC. In this state, the transistor Tr1 is off and the transistor Tr2 is on.

【0019】一方、真値ビット線BLに“L”の電位を
与え、補値ビット線_BLに“H”の電位を与え、ワー
ド線WLに“H”の電位を与えた後、ワード線WLの電
位を“L”にする。それにより、点aは“L”の電位に
保持され、点bは“H”の電位に保持される。この状態
をメモリセルMCに“O”のデータが書き込まれた状態
と称する。この状態ではトランジスタTr1はオンし、
トランジスタTr2はオフしている。
On the other hand, an "L" potential is applied to the true bit line BL, an "H" potential is applied to the complementary bit line _BL, and an "H" potential is applied to the word line WL. Is set to “L”. As a result, the point a is held at the “L” potential and the point b is held at the “H” potential. This state is referred to as a state in which “O” data is written in the memory cell MC. In this state, the transistor Tr1 turns on,
The transistor Tr2 is off.

【0020】次に各CAMセルCCに記憶されるデータ
を比較する場合の動作を説明する。なお、以下の説明で
は、比較されるCAMセルCCのメモリセルMCに
“1”のデータが記憶保持されているものとする。ま
ず、図16に示すプリチャージトランジスタTpのゲー
トに所定時間だけ“H”の制御信号Φが与えられると、
このプリチャージトランジスタTpがオンとなり、マッ
チラインMLがプリチャージされる。次に、ビット線B
L、_BLに比較したいデータが入力される。
Next, an operation for comparing data stored in each CAM cell CC will be described. In the following description, it is assumed that data “1” is stored and held in the memory cell MC of the CAM cell CC to be compared. First, when a control signal Φ of “H” is applied to the gate of the precharge transistor Tp shown in FIG. 16 for a predetermined time,
The precharge transistor Tp is turned on, and the match line ML is precharged. Next, bit line B
Data to be compared with L and _BL is input.

【0021】今、この比較データとして“0”が与えら
れたとする。すなわち、真値ビット線BLに“L”の電
位が与えられ、補値ビット線_BLに“H”の電位が与
えられたとすると、トランジスタTr3はオフし、トラ
ンジスタTr4はオンする。従って、トランジスタTr
2、Tr4を介してマッチラインMLのプリチャージ電
荷が基準電位源としての接地ラインに引き抜かれる。
Assume that "0" is given as the comparison data. That is, assuming that a "L" potential is applied to the true bit line BL and an "H" potential is applied to the complementary bit line _BL, the transistor Tr3 is turned off and the transistor Tr4 is turned on. Therefore, the transistor Tr
2. The precharge of the match line ML is extracted to the ground line as a reference potential source via Tr4.

【0022】一方、比較データとして“1”が与えられ
たとする。すなわち、真値ビット線BLに“H”の電位
が与えられ、補値ビット線_BLに“L”の電位が与え
られたとすると、トランジスタTr3はオンし、トラン
ジスタTr4はオフする。そのため、他のCAMセルC
CのメモリセルMCの被比較データも比較データと一致
したとすると、マッチラインMLの電位は保持される。
On the other hand, assume that "1" is given as comparison data. That is, assuming that a "H" potential is applied to the true bit line BL and an "L" potential is applied to the complementary bit line _BL, the transistor Tr3 is turned on and the transistor Tr4 is turned off. Therefore, other CAM cells C
Assuming that the compared data of the C memory cell MC also matches the comparison data, the potential of the match line ML is held.

【0023】上記のように、メモリセルMCの被比較デ
ータとビット線BL、_BLを介して与えられる比較デ
ータが一致しない場合には、マッチラインMLの電位は
接地電位となり、逆に、それらが一致した場合にはマッ
チラインMLの電位がプリチャージ電位に保たれる。そ
して、マッチラインMLの電位がドライバDに入力さ
れ、比較器マッチライン72に比較結果として出力され
る。この動作は、比較されるべきCAMセルCCにおけ
るメモリセルMCに“0”のデータが記憶されている場
合も同様である。
As described above, when the data to be compared of the memory cell MC and the comparison data given via the bit lines BL and _BL do not match, the potential of the match line ML becomes the ground potential, and conversely, they become If they match, the potential of the match line ML is maintained at the precharge potential. Then, the potential of the match line ML is input to the driver D, and is output to the comparator match line 72 as a comparison result. This operation is the same when the data “0” is stored in the memory cell MC of the CAM cell CC to be compared.

【0024】次に図17で示されるエントリ結果回路5
9の動作について説明する。エントリ結果回路59で
は、比較器マッチライン72及びエンプティビット61
の2つの値を判定し、エントリマッチライン74への出
力を生成する。上記したように被比較データと比較デー
タが一致した場合には比較器マッチライン72は“H”
となり、不一致の場合には“L”となる。エンプティビ
ット61が“1”に設定されている場合にはエントリ5
2が空き状態であることを示し“H”が出力され、
“O”に設定されている場合にはエントリ52内の被比
較レジスタ57に被比較データが設定されている状態を
示し“L”が出力される。組合わせ回路75は、その入
力条件が比較器マッチライン72が“H”かつエンプテ
ィビット61の出力84が“L”のときのみ、エントリ
マッチライン74へ“H”を出力する。それ以外の条件
では“L”を出力する。
Next, the entry result circuit 5 shown in FIG.
9 will be described. In the entry result circuit 59, the comparator match line 72 and the empty bit 61
Are determined, and an output to the entry match line 74 is generated. As described above, when the compared data and the comparison data match, the comparator match line 72 is set to “H”.
And "L" when they do not match. If the empty bit 61 is set to “1”, the entry 5
"H" is output to indicate that 2 is empty,
When set to “O”, this indicates that the compared data is set in the compared register 57 in the entry 52, and “L” is output. The combination circuit 75 outputs “H” to the entry match line 74 only when the input condition is that the comparator match line 72 is “H” and the output 84 of the empty bit 61 is “L”. Under other conditions, “L” is output.

【0025】次に図18で示されるCAM結果回路56
の動作について説明する。プリチャージトランジスタ8
2のゲートに所定時間だけ“H”の制御信号81が与え
られる。これにより、このプリチャージトランジスタ8
2がオンとなり、マッチラインMLがプリチャージされ
る。マッチ回路76には各エントリ52での比較結果が
エントリマッチライン74を通じて入力され、その値が
トランジスタ80のオン、オフを制御する。
Next, the CAM result circuit 56 shown in FIG.
The operation of will be described. Precharge transistor 8
The control signal 81 of “H” is applied to the gate 2 for a predetermined time. Thereby, the precharge transistor 8
2 is turned on, and the match line ML is precharged. The result of comparison at each entry 52 is input to the match circuit 76 through an entry match line 74, and the value controls on / off of the transistor 80.

【0026】エントリマッチライン74が“H”となっ
た場合にはトランジスタ80はオンとなり、マッチライ
ン79のプリチャージ電荷が基準電位源としての接地ラ
インに引き抜かれる。エントリマッチライン74が
“L”となった場合にはトランジスタ80はオフとな
り、他のマッチ回路76でもエントリマッチライン74
が“L”であるとすると、マッチライン79の電位は保
持される。マッチライン79の電位はドライバ78に入
力され、マッチ信号62に比較結果として出力される。
エントリ52での比較結果が一致の場合にはマッチ信号
62の電位は“L”となり、不一致の場合には“H”と
なる。
When the entry match line 74 becomes "H", the transistor 80 is turned on, and the precharge of the match line 79 is drawn to the ground line as a reference potential source. When the entry match line 74 becomes “L”, the transistor 80 is turned off, and the entry match line 74 is
Is "L", the potential of the match line 79 is held. The potential of the match line 79 is input to the driver 78 and output to the match signal 62 as a comparison result.
When the comparison result at the entry 52 matches, the potential of the match signal 62 becomes “L”, and when it does not match, it becomes “H”.

【0027】エントリマッチライン74の出力はプライ
オリティエンコーダ56にも入力される。それぞれのエ
ントリマッチライン74には0から255の優先度が付
けられており、0が最も優先度が高い。従ってアドレス
の小さいエントリ52に対応したエントリマッチライン
74ほど優先度が高くなっている。プライオリティエン
コーダ56では電位が“H”のエントリマッチライン7
4の内最も優先度が高いものを選択し、それに対応した
エントリ52のアドレスを8ビットのデータにコード化
して出力する。その8ビットのデータはステータスレジ
スタ54で記憶され、外部から読み取ることが可能であ
る。
The output of the entry match line 74 is also input to the priority encoder 56. Each entry match line 74 has a priority from 0 to 255, with 0 being the highest priority. Accordingly, the priority is higher for the entry match line 74 corresponding to the entry 52 having the smaller address. In the priority encoder 56, the entry match line 7 whose potential is "H"
4, the highest priority is selected, and the address of the entry 52 corresponding to the highest priority is coded into 8-bit data and output. The 8-bit data is stored in the status register 54 and can be read from the outside.

【0028】なお、この発明に関連する先行技術として
例えば特開昭63−31091号公報、特開昭63−2
44496号公報、特開平3−113897号公報、特
開平4−21997号公報、特開平4−271094号
公報などに開示されたものがある。
As prior art related to the present invention, for example, JP-A-63-31091 and JP-A-63-2103
Japanese Patent Application Laid-Open Nos. 44496, 3-113897, 4-21997 and 4-271094 disclose such methods.

【0029】[0029]

【発明が解決しようとする課題】従来の連想記憶回路は
以上のように構成されているので、比較データ及び被比
較データの長さは固定であり、その長さより長いデータ
の比較はできなかった。
Since the conventional associative memory circuit is constructed as described above, the lengths of the comparison data and the data to be compared are fixed, and data longer than the lengths cannot be compared. .

【0030】この発明は上記のような問題点を解消する
ことを課題になされたもので、本発明は可変長のデータ
の比較を行うことが可能な連想記憶回路を得ることを目
的とする。
An object of the present invention is to solve the above-mentioned problems, and an object of the present invention is to provide an associative memory circuit capable of comparing variable-length data.

【0031】[0031]

【課題を解決するための手段】請求項1の発明に係る連
想記憶回路は外部からのシーケンス信号を入力する端
子、アドレスが1つ若いエントリの比較結果を記憶する
フリップフロップを有する複数のエントリ、入力したシ
ーケンス信号が有効なときにフリップフロップの出力と
比較器の比較結果の積をエントリの比較結果とする回路
を備えたものである。
According to the first aspect of the present invention, there is provided an associative memory circuit, comprising: a terminal for inputting a sequence signal from the outside; a plurality of entries having a flip-flop for storing a comparison result of an entry having a youngest address; A circuit is provided which uses the product of the output of the flip-flop and the comparison result of the comparator when the input sequence signal is valid as the comparison result of the entry.

【0032】[0032]

【作用】請求項1の発明における連想記憶回路は、最も
最後に行なわれた比較動作でのアドレスが1つ若いエン
トリの比較結果を記憶することにより、その情報をエン
トリ比較結果回路で行なわれる結果判定の条件とするこ
とが可能となった。
The associative memory circuit according to the first aspect of the present invention stores the comparison result of the entry having the next smallest address in the last comparison operation, and stores the information in the entry comparison result circuit. This can be used as a condition for determination.

【0033】[0033]

【実施例】実施例1「大きさ比較」 以下、この発明の実施例を図について説明する。図1は
この発明の一実施例を示す連想記憶回路1の構成図であ
り、図1において、5は連想記憶回路1に設けた複数の
エントリ、6はそれぞれのエントリ5に設けたデータの
大きさを比較する比較器であり、他の構成は前記図15
に示す従来の連想記憶回路と同様であるから、同一部分
には同一符号を付して重複説明を省略する。
Embodiment 1 "Comparison of size" An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram of an associative memory circuit 1 showing an embodiment of the present invention. In FIG. 1, reference numeral 5 denotes a plurality of entries provided in the associative memory circuit 1, and reference numeral 6 denotes a size of data provided in each entry 5. FIG. 15 is a comparator for comparing
Is the same as that of the conventional associative memory circuit shown in FIG.

【0034】図2は図1に示した比較器6の構成図であ
る。図2において、CON11〜CON33はメモリセ
ルMC内の被比較データとビット線BL,_BLの比較
データの一致/不一致を判定する比較回路、RLはメモ
リセルMC内のデータを比較回路CONに伝えるための
真値被比較データ線、_RLは真値被比較データ線RL
の補値である補値被比較データ線、ML1〜ML3はマ
ッチライン、SC1〜SC3は記憶セル、BL1〜BL
3は真値ビット線、_BL1〜_BL3は補値ビット線
である。
FIG. 2 is a configuration diagram of the comparator 6 shown in FIG. In FIG. 2, CON11 to CON33 are comparison circuits for determining whether data to be compared in the memory cell MC matches comparison data of the bit lines BL and _BL, and RL is for transmitting data in the memory cell MC to the comparison circuit CON. _RL is the true value compared data line RL
ML1 to ML3 are match lines, SC1 to SC3 are storage cells, and BL1 to BL
3 is a true value bit line, and _BL1 to _BL3 are complementary value bit lines.

【0035】図3は連想記憶回路1において、被比較レ
ジスタ57内の被比較データが比較レジスタ50内の比
較データに比べて値が小さいことを検出する比較器6の
構成図である。図3において、Trkはトランジスタ、
MLはマッチライン、Caは組み合わせ回路、LMLは
組み合わせ回路Caの出力であるリトルライン、RML
は不一致ライン、DIは信号反転の機能を持つインバー
タである。
FIG. 3 is a configuration diagram of the comparator 6 in the associative memory circuit 1, which detects that the value of the compared data in the compared register 57 is smaller than the value of the compared data in the comparison register 50. In FIG. 3, Trk is a transistor,
ML is a match line, Ca is a combinational circuit, LML is a little line which is the output of the combinational circuit Ca, RML
Is a mismatch line, and DI is an inverter having a signal inversion function.

【0036】図4は連想記憶回路1において、被比較レ
ジスタ57内の被比較データが比較レジスタ50内の比
較データ以下であることを検出する比較器の構成図であ
り、前記図3と同一部分には同一符号を付して重複説明
を省略する。
FIG. 4 is a block diagram of a comparator in the associative memory circuit 1 for detecting that the data to be compared in the register to be compared 57 is smaller than the comparison data in the comparison register 50. Are denoted by the same reference numerals, and duplicate description is omitted.

【0037】図5は図3及び図4で使われている組み合
わせ回路Caの入出力信号の関係を表している。入力の
マッチラインMLが“H”かつ真値ビット線BLが
“H”かつ真値被比較データ線RLが“L”のときのみ
リトルラインLMLが“H”となり、それ以外の入力条
件ではリトルラインLMLが“L”となる。図中“×”
は“L”又は“H”であることを示す。
FIG. 5 shows the relationship between the input and output signals of the combinational circuit Ca used in FIGS. 3 and 4. The little line LML becomes "H" only when the input match line ML is "H", the true value bit line BL is "H", and the true value compared data line RL is "L". The line LML becomes "L". “×” in the figure
Indicates “L” or “H”.

【0038】図6は連想記憶回路1において、被比較レ
ジスタ57内の被比較データが比較レジスタ50内の比
較データに比べて値が大きいことを検出する比較器6の
構成図である。図6において、Cbは組み合わせ回路、
BMLは組み合わせ回路Cbの出力であるビッグライン
である。
FIG. 6 is a configuration diagram of the comparator 6 in the associative memory circuit 1 for detecting that the value of the compared data in the compared register 57 is larger than the value of the comparison data in the comparison register 50. In FIG. 6, Cb is a combinational circuit,
BML is a big line which is an output of the combinational circuit Cb.

【0039】図7は連想記憶回路1において、被比較レ
ジスタ57内の被比較データが比較レジスタ50内の比
較データ以上であることを検出する比較器の構成図であ
り、前記図6と同一部分には同一符号を付して重複説明
を省略する。
FIG. 7 is a block diagram of a comparator in the associative memory circuit 1 for detecting that the data to be compared in the register to be compared 57 is greater than or equal to the comparison data in the comparison register 50. Are denoted by the same reference numerals, and duplicate description is omitted.

【0040】図8は図6及び図7で使われている組み合
わせ回路Cbの入出力信号の関係を表している。入力の
マッチラインMLが“H”かつ真値ビット線BLが
“L”かつ真値被比較データ線RLが“H”のときのみ
ビッグラインBMLが“H”となり、それ以外の入力条
件ではビッグラインBMLが“L”となる。
FIG. 8 shows the relationship between the input and output signals of the combinational circuit Cb used in FIGS. 6 and 7. The big line BML becomes "H" only when the input match line ML is "H", the true value bit line BL is "L", and the true value compared data line RL is "H". The line BML becomes “L”.

【0041】次に動作について説明する。図1に示すデ
ータの大きさ比較の実施例1の動作を図2、図3、図
4、図6及び図7を用いて、小さいことの比較、以下で
あることの比較、大きいことの比較、以上であることの
比較とに分けて説明する。
Next, the operation will be described. The operation of the first embodiment of the data size comparison shown in FIG. 1 will be described with reference to FIG. 2, FIG. 3, FIG. 4, FIG. 6, and FIG. And the comparison of the above.

【0042】比較の対象となるデータは比較レジスタ5
0又は被比較レジスタ57に格納されている。それらの
レジスタ50,57の中ではデータはビット列で表現さ
れている。データは正の整数であり、ビット列の中でデ
ータの大きさを決める上で最も意味のあるビットをMS
B、最も意味のないビットをLSBとする。ビット列の
中でよりMSBに近いビットを上位ビット、よりLSB
に近いビットを下位ビットとする。
The data to be compared is a comparison register 5
0 or stored in the compared register 57. In these registers 50 and 57, data is represented by bit strings. The data is a positive integer, and the most significant bit in determining the size of the data in the bit string is MS
B, let the least significant bit be LSB. Bits closer to the MSB in the bit string are upper bits, and LSBs are
Are the lower bits.

【0043】図2では記憶セルSC3に被比較データの
MSBの値が格納されており、記憶セルSC1にLSB
の値が格納されているものとする。従来の技術で示した
通りマッチラインML1には、比較データと被比較デー
タの全てのビットの比較結果が信号として出力される。
比較回路CON13,CON12及びCON11におい
て比較が行われ、マッチラインML1に各ビットでの比
較結果が出力される。マッチラインML1のレベルが
“H”のときは比較データと被比較データが一致してい
ることを示し、“L”のときには不一致であることを示
す。
In FIG. 2, the MSB value of the data to be compared is stored in storage cell SC3, and LSB is stored in storage cell SC1.
Is stored. As shown in the related art, a comparison result of all bits of the comparison data and the data to be compared is output as a signal to the match line ML1.
Comparison is performed in the comparison circuits CON13, CON12, and CON11, and the comparison result of each bit is output to the match line ML1. When the level of the match line ML1 is "H", it indicates that the comparison data and the data to be compared match, and when it is "L", it indicates that they do not match.

【0044】同様にマッチラインML2には、比較回路
CON23及びCON22によって最下位ビットを除く
上位2ビットの比較結果が出力される。同様にマッチラ
インML3には、比較回路CON33によって下位2ビ
ットを除く最上位ビットの比較結果が出力される。図2
では3ビットの構成を示したがビット数が変化した場合
も同様な動作が行われる。
Similarly, the comparison circuits CON23 and CON22 output a comparison result of the upper two bits excluding the least significant bit to the match line ML2. Similarly, the comparison circuit CON33 outputs the comparison result of the most significant bit excluding the lower two bits to the match line ML3. FIG.
Has shown the configuration of three bits, but the same operation is performed when the number of bits changes.

【0045】図3は被比較レジスタ57内の被比較デー
タが比較レジスタ50内の比較データに比べて小さいこ
とを検出する比較器6の構成図である。図中、最も右側
にある記憶セルSC内に被比較データのLSBの値が保
持されており、左側の記憶セルSC程上位ビットであ
る。組み合わせ回路Caは記憶セルSCに対応して存在
し、1ビット毎に1個存在する。各組み合わせ回路Ca
への入力であるマッチラインMLには、図2で説明した
通り該組み合わせ回路Caより上位ビットでの比較結果
が出力されている。
FIG. 3 is a block diagram of the comparator 6 for detecting that the compared data in the compared register 57 is smaller than the comparison data in the comparison register 50. In the drawing, the value of the LSB of the data to be compared is held in the rightmost storage cell SC, and the leftmost storage cell SC has higher bits. The combination circuit Ca exists corresponding to the storage cell SC, and one combination circuit exists for each bit. Each combination circuit Ca
As described with reference to FIG. 2, the comparison result of the higher order bit is output from the combinational circuit Ca to the match line ML which is the input to.

【0046】図5で表されているように組み合わせ回路
Caでは、入力のマッチラインMLが“H”かつ真値ビ
ット線BLが“H”かつ真値被比較データ線RLが
“L”のときのみリトルラインLMLが“H”となる。
言い替えれば比較データと被比較データにおいて上位ビ
ットが全て一致し、かつ該組み合わせ回路Caに対応し
たビットだけを比較したときに比較データが大きい場合
にのみリトルラインLMLが“H”となる。それ以外の
条件ではリトルラインLMLは“L”となる。
As shown in FIG. 5, in the combinational circuit Ca, when the input match line ML is "H", the true value bit line BL is "H", and the true value comparison data line RL is "L". Only the little line LML becomes “H”.
In other words, the little line LML is set to "H" only when the upper bits of the comparison data and the data to be compared match and all the bits corresponding to the combinational circuit Ca are larger than the comparison data. Under other conditions, the little line LML becomes "L".

【0047】図3に示すプリチャージトランジスタTp
のゲートに所定の時間だけ“H”の制御信号Φが与えら
れると、このプリチャージトランジスタTpがオンとな
り、不一致ラインRMLがプリチャージされる。トラン
ジスタTrkのゲートとなるリトルラインLMLが
“H”になると、トランジスタTrkはオンする。その
ときトランジスタTrkを介して不一致線RMLのプリ
チャージ電荷が基準電位源としての接地ラインに引き抜
かれ“L”レベルとなる。
The precharge transistor Tp shown in FIG.
Is supplied with a control signal .phi. Of "H" for a predetermined time, the precharge transistor Tp is turned on, and the mismatch line RML is precharged. When the little line LML serving as the gate of the transistor Trk becomes “H”, the transistor Trk turns on. At that time, the precharge of the mismatch line RML is pulled out to the ground line as the reference potential source via the transistor Trk, and becomes the “L” level.

【0048】一方、全てのリトルラインLMLが“L”
のときには対応した全てのトランジスタTrkはオフす
る。このため不一致線RMLの電位は“H”に保持され
る。不一致線RMLの信号はインバータDIによって反
転し比較器マッチライン72に出力される。以上の条件
により、被比較レジスタ57内の被比較データが比較レ
ジスタ50内の比較データに比べて値が小さい場合、比
較器マッチライン72に“H”が出力され、それ以外の
ときに“L”が出力される。
On the other hand, all the little lines LML are "L".
At this time, all the corresponding transistors Trk are turned off. Therefore, the potential of the mismatch line RML is maintained at “H”. The signal on the mismatch line RML is inverted by the inverter DI and output to the comparator match line 72. Under the above conditions, if the value of the compared data in the compared register 57 is smaller than the value of the comparison data in the comparison register 50, “H” is output to the comparator match line 72, and otherwise “L”. Is output.

【0049】図4は被比較レジスタ57内の被比較デー
タが比較レジスタ50内の比較データ以下であることを
検出する比較器6の構成図であり、図3の構成に図16
にある全てのビットでの一致を検出する回路を付加した
ものである。この回路での比較結果はマッチラインML
に出力され、比較データと被比較データが一致したとき
マッチラインMLが“H”になり、不一致のとき“L”
となる。このマッチラインMLはトランジスタTrkの
ゲートと接続しており、マッチラインMLが“H”にな
るとトランジスタTrkはオンする。そのときトランジ
スタTrkを介して不一致線RMLのプリチャージ電荷
が基準電位源としての接地ラインに引き抜かれ“L”レ
ベルとなる。以上の条件により、被比較レジスタ57内
の被比較データが比較レジスタ50内の比較データ以下
の場合に比較器マッチライン72に“H”が出力され、
それ以外のときに“L”が出力される。
FIG. 4 is a block diagram of the comparator 6 for detecting that the compared data in the compared register 57 is equal to or smaller than the comparison data in the comparison register 50.
Is added with a circuit for detecting the coincidence of all the bits. The comparison result in this circuit is the match line ML
And the match line ML is set to “H” when the comparison data and the compared data match, and is set to “L” when they do not match.
Becomes This match line ML is connected to the gate of the transistor Trk, and when the match line ML becomes “H”, the transistor Trk turns on. At that time, the precharge of the mismatch line RML is pulled out to the ground line as the reference potential source via the transistor Trk, and becomes the “L” level. Under the above conditions, when the compared data in the compared register 57 is equal to or smaller than the comparison data in the comparison register 50, “H” is output to the comparator match line 72,
At other times, “L” is output.

【0050】図6は被比較レジスタ57内の被比較デー
タが比較レジスタ50内の比較データに比べて値が大き
いことを検出する比較器6の構成図である。組み合わせ
回路Cbは記憶セルSCに対応して存在し、1ビット毎
に1個存在する。各組み合わせ回路Cbへの入力である
マッチラインMLには、図2で説明した通り、上記組み
合わせ回路Cbより上位ビットでの比較結果が出力され
ている。
FIG. 6 is a block diagram of the comparator 6 for detecting that the compared data in the compared register 57 has a larger value than the comparison data in the comparison register 50. The combination circuit Cb exists corresponding to the storage cell SC, and one combination circuit exists for each bit. As described with reference to FIG. 2, the comparison result of the higher-order bits from the combination circuit Cb is output to the match line ML that is an input to each combination circuit Cb.

【0051】図8で表されているように組み合わせ回路
Cbでは、入力のマッチラインMLが“H”かつ真値ビ
ット線BLが“L”かつ真値被比較データ線RLが
“H”のときのみビッグラインBMLが“H”となる。
言い替えば比較データと被比較データにおいて上位ビッ
トが全て一致し、かつ上記組み合わせ回路Cbに対応し
たビットだけを比較したときに被比較データが大きい場
合にのみ、ビッグラインBMLが“H”となる。それ以
外の条件ではビッグラインBMLは“L”となる。
As shown in FIG. 8, in the combination circuit Cb, when the input match line ML is "H", the true value bit line BL is "L", and the true value comparison data line RL is "H". Only the big line BML becomes “H”.
In other words, the big line BML becomes “H” only when the upper bits of the comparison data and the data to be compared coincide with each other and the data to be compared is large when only the bits corresponding to the combinational circuit Cb are compared. Under other conditions, the big line BML becomes “L”.

【0052】図6に示すプリチャージトランジスタTp
のゲートに所定の時間だけ“H”の制御信号Φが与えら
れる。これにより、このプリチャージトランジスタTp
がオンとなり、不一致ラインRMLがプリチャージされ
る。トランジスタTrkのゲートとなるビッグラインB
MLが“H”になると、トランジスタTrkはオンす
る。そのときトランジスタTrkを介して不一致線RM
Lのプリチャージ電荷が基準電位源としての接地ライン
に引き抜かれ“L”レベルとなる。
The precharge transistor Tp shown in FIG.
Is supplied with a control signal .phi. Of "H" for a predetermined time. Thereby, the precharge transistor Tp
Is turned on, and the unmatched line RML is precharged. Big line B to be the gate of transistor Trk
When ML becomes “H”, the transistor Trk turns on. At that time, the mismatch line RM is connected via the transistor Trk.
The precharge of L is drawn to the ground line as the reference potential source, and becomes "L" level.

【0053】一方、全てのビッグラインBMLが“L”
のときには対応した全てのトランジスタTrkはオフす
る。このため不一致線RMLの電位は“H”に保持され
る。不一致線RMLの信号はインバータDIによって反
転し比較器マッチライン72に出力される。以上の条件
により、被比較レジスタ57内の被比較データが比較レ
ジスタ50内の比較データに比べて値が大きい場合に比
較器マッチライン72に“H”が出力され、それ以外の
ときに“L”が出力される。
On the other hand, all the big lines BML are "L".
At this time, all the corresponding transistors Trk are turned off. Therefore, the potential of the mismatch line RML is maintained at “H”. The signal on the mismatch line RML is inverted by the inverter DI and output to the comparator match line 72. Under the above conditions, “H” is output to the comparator match line 72 when the value of the compared data in the compared register 57 is larger than the value of the comparison data in the comparison register 50, and otherwise “L”. Is output.

【0054】図7は被比較レジスタ57内の被比較デー
タが比較レジスタ50内の比較データ以上であることを
検出する比較器6の構成図であり、図6の構成に図16
にある全てのビットでの一致を検出する回路を付加した
ものである。この回路での比較結果はマッチラインML
に出力され、比較データと被比較データが一致したとき
マッチラインMLが“H”になり、不一致のとき“L”
となる。
FIG. 7 is a block diagram of the comparator 6 for detecting that the compared data in the compared register 57 is equal to or larger than the comparison data in the comparison register 50.
Is added with a circuit for detecting the coincidence of all the bits. The comparison result in this circuit is the match line ML
And the match line ML is set to “H” when the comparison data and the compared data match, and is set to “L” when they do not match.
Becomes

【0055】このマッチラインMLはトランジスタTr
kのゲートと接続しており、マッチラインMLが“H”
になるとトランジスタTrkはオンする。そのときトラ
ンジスタTrkを介して不一致線RMLのプリチャージ
電荷が基準電位源としての接地ラインに引き抜かれ
“L”レベルとなる。以上の条件により、被比較レジス
タ57内の被比較データが比較レジスタ50内の比較デ
ータ以上の場合に比較器マッチライン72に“H”が出
力され、それ以外のときに“L”が出力される。
This match line ML is a transistor Tr
k and the match line ML is “H”
, The transistor Trk turns on. At that time, the precharge of the mismatch line RML is pulled out to the ground line as the reference potential source via the transistor Trk, and becomes the “L” level. Under the above conditions, "H" is output to the comparator match line 72 when the compared data in the compared register 57 is equal to or larger than the comparison data in the comparison register 50, and "L" is output otherwise. You.

【0056】以上のように、図1の比較器6は比較デー
タと被比較データとの大きさの比較を行い、その結果を
比較器マッチライン72に出力する。上記以外の動作は
図15で示される従来の連想記憶回路49の動作と同様
である。
As described above, the comparator 6 in FIG. 1 compares the size of the comparison data with the data to be compared, and outputs the result to the comparator match line 72. Operations other than the above are the same as those of the conventional associative memory circuit 49 shown in FIG.

【0057】実施例2「タイマ」 図9はこの発明の実施例2を示す連想記憶回路2の構成
図である。図9において、7は連想記憶回路2に設けた
複数のエントリ、8はそれぞれのエントリ7に設けたエ
ンプティビット、10はタイマの間隔を値として保持す
る初期値レジスタ、47は外部からのクロック信号を入
力する入力手段としてのクロック信号端子、23は外部
からクロック信号端子47を介してクロック入力するド
ライバ、11はドライバ23の出力であるクロック信号
ライン、9は比較器58の結果をCAM結果回路56に
伝える機能の他に、初期値レジスタ10、比較器マッチ
ライン72、クロック信号ライン11からの入力を元に
エンプティビット8からの値を制御するエントリ結果回
路である。
Embodiment 2 "Timer" FIG. 9 is a configuration diagram of an associative memory circuit 2 showing Embodiment 2 of the present invention. In FIG. 9, reference numeral 7 denotes a plurality of entries provided in the associative memory circuit 2, 8 denotes an empty bit provided in each entry 7, 10 denotes an initial value register for holding a timer interval as a value, and 47 denotes an external clock signal. Is a clock signal terminal as input means for inputting a clock signal; 23 is a driver for clock input from the outside via a clock signal terminal 47; 11 is a clock signal line which is an output of the driver 23; An entry result circuit that controls the value from the empty bit 8 based on the inputs from the initial value register 10, the comparator match line 72, and the clock signal line 11 in addition to the function of transmitting the signal to the 56.

【0058】図10は連想記憶回路2のタイマ機能を実
現するための回路の構成図である。図10において、1
2はクロック信号の遷移により計数するタイマ機能を有
するカウントダウンカウンタ、_TCはカウントダウン
カウンタ12のカウンタ値が“0”になったことを出力
するカウントアップ出力、CEPはカウントダウンカウ
ンタ12に初期値を入力するタイミングである入力イネ
ーブル、CPはクロックを入力するクロック信号ライン
11からのクロック入力、Pは初期値レジスタ10から
初期値データを入力するパラレル入力、CQはカウンタ
値、13は従来のエンプティビット61を実現している
フリップフロップにプリセット機能を追加したフリップ
フロップ、_SDはフリップフロップ13のプリセット
入力、Qはフリップフロップ13の出力、25はカウン
トダウンカウンタ12に初期値レジスタ10の値をカウ
ンタ値として設定するときに所定の時間だけ“H”とな
る設定する手段としての制御信号ラインである。
FIG. 10 is a block diagram of a circuit for realizing the timer function of the associative memory circuit 2. In FIG. 10, 1
Reference numeral 2 denotes a countdown counter having a timer function for counting by transition of a clock signal, _TC denotes a count-up output that outputs that the count value of the countdown counter 12 has become “0”, and CEP denotes an initial value input to the countdown counter 12. The input enable which is a timing, CP is a clock input from the clock signal line 11 for inputting a clock, P is a parallel input for inputting initial value data from the initial value register 10, CQ is a counter value, and 13 is a conventional empty bit 61. A flip-flop in which a preset function is added to the realized flip-flop, _SD is a preset input of the flip-flop 13, Q is an output of the flip-flop 13, and 25 is the countdown counter 12 which sets the value of the initial value register 10 as a counter value. A control signal line as a means for setting the "H" only a predetermined time Rutoki.

【0059】図11は図10のカウントダウンカウンタ
12の入出力信号の関係を表している。入力イネーブル
CEPの入力信号が“H”でかつクロック入力CPの入
力信号が“L”から“H”に立ち上がったとき、パラレ
ル入力Pへの入力信号がカウンタ内に保持される。入力
イネーブルCEPの入力信号が“L”でかつクロック入
力CPの信号が“L”から“H”に立ち上がったとき、
カウンタ値が“1”だけ減され、減された値が“0”の
場合にはカウントアップ出力_TCが“L”レベルとな
る。
FIG. 11 shows the relationship between the input and output signals of the countdown counter 12 of FIG. When the input signal of the input enable CEP is “H” and the input signal of the clock input CP rises from “L” to “H”, the input signal to the parallel input P is held in the counter. When the input signal of the input enable CEP is “L” and the signal of the clock input CP rises from “L” to “H”,
The counter value is reduced by “1”, and when the reduced value is “0”, the count-up output_TC becomes “L” level.

【0060】次に図9の実施例2の動作を図10および
図11について説明する。図10の初期値レジスタ10
には外部からタイマの初期値が設定される。その初期値
をカウントダウンカウンタ12のカウンタ値CQとして
設定する場合、カウントダウンカウンタ12の入力イネ
ーブルCEPに接続している制御信号ライン25を
“H”に保持する。
Next, the operation of the second embodiment shown in FIG. 9 will be described with reference to FIGS. Initial value register 10 of FIG.
Is set to the initial value of the timer from outside. When setting the initial value as the counter value CQ of the countdown counter 12, the control signal line 25 connected to the input enable CEP of the countdown counter 12 is held at "H".

【0061】この制御信号ライン25の制御信号による
制御は、連想記憶回路2の内容を外部から制御するコマ
ントレジスタ53の設定によって行われる。またカウン
トダウンカウンタ12のクロック入力CPに接続してい
るクロック信号ライン11を“L”から“H”に立ち上
がる。
The control by the control signal on the control signal line 25 is performed by setting a command register 53 for externally controlling the contents of the associative memory circuit 2. Further, the clock signal line 11 connected to the clock input CP of the countdown counter 12 rises from “L” to “H”.

【0062】図11に示すように入力イネーブルCEP
を“H”にした状態でクロック入力CPを“L”から
“H”に立ち上がることによって初期値レジスタ10の
内容がパラレル入力Pを介してカウントダウンカウンタ
12に格納される。その後制御信号ライン25は“L”
に戻される。入力イネーブルCEPと接続している制御
信号ライン25が“L”の状態で、クロック入力CPと
接続しているクロック信号ライン11が“L”から
“H”に立ち上がったとき、カウンタ値CQが“1”だ
け減され、減された値が“0”の場合にはカウントアッ
プ出力_TCの出力が“L”レベルとなる。カウントア
ップ出力_TCはフリップフロップ13のプリセット入
力_SDと接続している。プリセット入力_SDが
“L”レベルになるとフリップフロップ13の出力Qは
強制的に“H”レベルとなり、エンプティビット8の値
は空き状態を示す“1”となる。
As shown in FIG. 11, input enable CEP
When the clock input CP rises from “L” to “H” while “H” is set to “H”, the contents of the initial value register 10 are stored in the countdown counter 12 via the parallel input P. After that, the control signal line 25 becomes “L”.
Is returned to. When the clock signal line 11 connected to the clock input CP rises from “L” to “H” while the control signal line 25 connected to the input enable CEP is “L”, the counter value CQ becomes “L”. The count value is reduced by “1”, and when the reduced value is “0”, the output of the count-up output_TC becomes “L” level. The count-up output_TC is connected to the preset input_SD of the flip-flop 13. When the preset input_SD goes to "L" level, the output Q of the flip-flop 13 is forced to go to "H" level, and the value of the empty bit 8 becomes "1" indicating an empty state.

【0063】以上のように図9のエントリ結果回路9
は、初期値レジスタ10を介して外部から与えられるカ
ウンタの初期値及びクロック信号を入力としてタイマ機
能を実現し、タイムアウトによってエンプティビット8
の値を制御する。上記以外の動作は図15で示される従
来の連続記憶回路49の動作と同様である。
As described above, the entry result circuit 9 shown in FIG.
Implements a timer function by inputting an initial value of a counter and a clock signal provided from the outside through an initial value register 10, and realizes an empty bit 8
Control the value of. The operation other than the above is the same as the operation of the conventional continuous storage circuit 49 shown in FIG.

【0064】実施例3「比較データ可変長」 図12はこの発明の実施例3を示す連想記憶回路3の構
成図である。図12において、16は連想記憶回路3に
設けた複数のエントリ、14はそれぞれのエントリ16
に設けたエントリ結果回路、17はエントリマッチライ
ン74が分岐しアドレスの1つ大きいエントリ16にエ
ントリ結果回路14の情報を伝えるエントリマッチライ
ン、15は外部からのシーケンス信号を入力する入力手
段としてのシーケンス信号端子、22はシーケンス信号
を反転するインバータ、18はインバータ22の出力で
あるシーケンス反転信号ラインである。
Embodiment 3 "Comparative Data Variable Length" FIG. 12 is a configuration diagram of an associative memory circuit 3 showing Embodiment 3 of the present invention. In FIG. 12, 16 is a plurality of entries provided in the associative memory circuit 3, and 14 is each entry 16
, An entry match line 17 for branching the entry match line 74 and transmitting information of the entry result circuit 14 to the entry 16 having the next higher address, and 15 as an input means for inputting an external sequence signal. A sequence signal terminal, 22 is an inverter for inverting the sequence signal, and 18 is a sequence inversion signal line which is an output of the inverter 22.

【0065】図13は複数のエントリ16に格納された
被比較データとの比較結果を判定するエントリ結果回路
14の構成図である。図13において、24はワード線
WLの信号を反転させるインバータ、21はそのインバ
ータ出力ライン、23はエントリマッチライン17から
の比較結果を記憶するフリップフロップ、19はシーケ
ンス反転信号ライン18、比較器マッチライン72及び
フリップフロップ23の出力ライン20からの信号の比
較結果をエントリマッチライン74に出力する組み合わ
せ回路である。
FIG. 13 is a block diagram of the entry result circuit 14 for judging the result of comparison with the data to be compared stored in the plurality of entries 16. In FIG. 13, reference numeral 24 denotes an inverter for inverting the signal on the word line WL, reference numeral 21 denotes an inverter output line thereof, reference numeral 23 denotes a flip-flop for storing a comparison result from the entry match line 17, reference numeral 19 denotes a sequence inversion signal line 18, and a comparator match. This is a combinational circuit that outputs a comparison result of a signal from the line 72 and a signal from the output line 20 of the flip-flop 23 to an entry match line 74.

【0066】図14は図13の組み合わせ回路19の入
出力信号の関係を表している。エンプティビットの出力
ライン84が“H”場合には、エントリマッチライン7
4に“L”が出力される。エンプティビットの出力ライ
ン84が“L”でかつシーケンス反転信号ライン18が
“L”の場合には、比較器マッチライン72の信号がエ
ントリマッチライン74に出力される。エンプティビッ
トの出力ライン84が“L”でかつシーケンス反転信号
ライン18が“H”の場合には、比較器マッチライン2
7とフリップフロップ出力ライン20が共に“H”のと
きのみエントリマッチライン74に“H”が出力され、
それ以外では“L”が出力される。
FIG. 14 shows the relationship between the input and output signals of the combinational circuit 19 of FIG. When the empty bit output line 84 is “H”, the entry match line 7
4 outputs “L”. When the empty bit output line 84 is “L” and the sequence inversion signal line 18 is “L”, the signal of the comparator match line 72 is output to the entry match line 74. When the empty bit output line 84 is “L” and the sequence inversion signal line 18 is “H”, the comparator match line 2
7 and the flip-flop output line 20 are both at "H", "H" is output to the entry match line 74,
Otherwise, "L" is output.

【0067】以下、図12の実施例2について比較デー
タ可変長の動作を説明する。まず、外部からの動作につ
いて説明する。1つの被比較レジスタ57のビット長以
上の被比較データを連想記憶回路3に記憶させる場合に
は、アドレスが昇順に連続する複数のエントリ16に格
納する。格納の手順は図15で示される従来例と同様で
ある。
Hereinafter, the operation of the variable length comparison data in the second embodiment shown in FIG. 12 will be described. First, an external operation will be described. When storing the compared data having the bit length of one compared register 57 or more in the associative memory circuit 3, the data is stored in a plurality of entries 16 whose addresses are consecutive in ascending order. The storing procedure is the same as in the conventional example shown in FIG.

【0068】本実施例では被比較データの全てのビット
について比較データと比較するために、複数回に分けて
比較動作を行う必要がある。最初の比較の動作は図15
で示される従来例と同様であるが2回目以降の比較動作
ではシーケンス信号端子15を使用する動作が付加され
る。チップイネーブル信号が有効であり、かつシーケン
ス信号端子15に入力されるシーケンス信号が“L”の
とき、連想記憶回路3へのアクセスが複数のエントリ1
6に格納されている被比較データに対しての2回目以降
の比較動作であることを示す。それ以外の比較動作のと
きにはシーケンス信号は“H”である。
In this embodiment, in order to compare all the bits of the data to be compared with the comparison data, the comparison operation needs to be performed a plurality of times. The first comparison operation is shown in FIG.
The operation using the sequence signal terminal 15 is added in the second and subsequent comparison operations. When the chip enable signal is valid and the sequence signal input to the sequence signal terminal 15 is “L”, the access to the content addressable memory
6 indicates the second and subsequent comparison operations on the compared data stored in No. 6. In other comparison operations, the sequence signal is "H".

【0069】次に連想記憶回路3の内部での動作を図1
3について説明する。比較動作が行われるときワード線
WLは“H”に保持され、比較動作が終了するときに
“L”となる。インバータ24によってこのワード線W
Lの信号を反転する。その反転信号をインバータ出力ラ
イン21を介してフリップフロップ23のクロック入力
CPとして使用する。
Next, the operation inside the associative memory circuit 3 will be described with reference to FIG.
3 will be described. When the comparison operation is performed, the word line WL is kept at “H”, and when the comparison operation is completed, it becomes “L”. The word line W
The L signal is inverted. The inverted signal is used as the clock input CP of the flip-flop 23 via the inverter output line 21.

【0070】従って、ワード線WLが“H”から“L”
になるタイミングでフリップフロップ23はデータを記
憶する。比較動作が行われるときエントリマッチライン
74には比較結果が出力される。一致している場合には
“H”、不一致の場合には“L”が出力される。フリッ
プフロップ23はエントリマッチライン17に出力され
る前記比較結果をワード線WLが“H”から“L”にな
るタイミングでラッチする。以上のような動作により、
図13のエントリ結果回路14にあるフリップフロップ
23は、最も最近に行われた比較動作でのアドレスが1
つ小さいエントリの比較結果を記憶する。シーケンス信
号端子15に入力されるシーケンス信号はインバータ2
2によって反転しシーケンス反転信号ライン18に出力
される。
Therefore, the word line WL changes from "H" to "L".
The flip-flop 23 stores data at the timing. When the comparison operation is performed, the comparison result is output to the entry match line 74. "H" is output if they match, and "L" is output if they do not match. The flip-flop 23 latches the comparison result output to the entry match line 17 at a timing when the word line WL changes from “H” to “L”. With the above operation,
The flip-flop 23 in the entry result circuit 14 of FIG.
The comparison result of the next smaller entry is stored. The sequence signal input to the sequence signal terminal 15 is
2 and output to the sequence inversion signal line 18.

【0071】以上のような動作により、図13の組み合
わせ回路19では、最も最近に行われた比較動作におい
て、アドレスが1つ小さいエントリ16での比較結果が
一致であり、かつ現在の比較器58の比較結果が一致で
あり、かつシーケンス信号端子15が“L”であり、現
在の比較動作が連続するエントリの比較であるとき、エ
ントリマッチライン74に“H”を出力する。また、シ
ーケンス信号端子15が“H”である場合には図15で
示される従来の連想記憶回路49の動作と同様である。
With the above operation, in the combination circuit 19 shown in FIG. 13, in the comparison operation performed most recently, the comparison result in the entry 16 having the next smaller address is identical, and the current comparator 58 Is high, the sequence signal terminal 15 is "L", and the current comparison operation is a comparison of successive entries, "H" is output to the entry match line 74. When the sequence signal terminal 15 is at "H", the operation is the same as that of the conventional associative memory circuit 49 shown in FIG.

【0072】[0072]

【発明の効果】以上説明したように請求項1の発明によ
れば、最も最後に行われた比較動作でのアドレスが1つ
小さいエントリの比較結果を現在の判定条件とすること
ができるようにし、アドレスが昇順に連続する複数のエ
ントリに被比較データを格納して複数回比較データとの
比較を行うようにしたので、可変長のデータの比較を行
うことが可能であるという効果がある。
As described above, according to the first aspect of the present invention, the comparison result of the entry whose address is smaller by one in the last comparison operation can be used as the current judgment condition. Since the data to be compared is stored in a plurality of entries whose addresses are consecutive in ascending order and the comparison with the comparison data is performed a plurality of times, there is an effect that the comparison of the variable length data can be performed.

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

【図1】この発明の実施例1を示す連想記憶回路の構成
図である。
FIG. 1 is a configuration diagram of an associative memory circuit showing a first embodiment of the present invention;

【図2】図1の連想記憶回路における比較器の構成図で
ある。
FIG. 2 is a configuration diagram of a comparator in the associative memory circuit of FIG. 1;

【図3】被比較データが比較データより小さいことを検
出する比較器の構成図である。
FIG. 3 is a configuration diagram of a comparator that detects that data to be compared is smaller than comparison data.

【図4】被比較データが比較データ以下であることを検
出する比較器の構成図である。
FIG. 4 is a configuration diagram of a comparator that detects that data to be compared is equal to or smaller than comparison data.

【図5】図3、図4の比較器における組み合わせ回路の
入出力の関係を表した図である。
FIG. 5 is a diagram showing an input / output relationship of a combinational circuit in the comparators of FIGS. 3 and 4;

【図6】被比較データが比較データより大きいことを検
出する比較器の構成図である。
FIG. 6 is a configuration diagram of a comparator that detects that data to be compared is larger than comparison data.

【図7】被比較データが比較データ以上であることを検
出する比較器の構成図である。
FIG. 7 is a configuration diagram of a comparator that detects that data to be compared is greater than or equal to comparison data.

【図8】図6、図7の比較器における組み合わせ回路の
入出力の関係を表した図である。
FIG. 8 is a diagram showing an input / output relationship of a combinational circuit in the comparators of FIGS. 6 and 7;

【図9】この発明の実施例2を示す連想記憶回路の構成
図である。
FIG. 9 is a configuration diagram of an associative memory circuit according to a second embodiment of the present invention.

【図10】図9の実施例2の主要回路を示す構成図であ
る。
FIG. 10 is a configuration diagram illustrating a main circuit of a second embodiment in FIG. 9;

【図11】図10のカウントダウンカウンタの入出力の
関係を表した図である。
11 is a diagram showing an input / output relationship of the countdown counter of FIG.

【図12】この発明の実施例3を示す連想記憶回路構成
図である。
FIG. 12 is a configuration diagram of an associative memory circuit showing a third embodiment of the present invention.

【図13】図12の実施例3の主要回路を示す構成図で
ある。
FIG. 13 is a configuration diagram illustrating a main circuit according to a third embodiment in FIG. 12;

【図14】図13の回路における組み合わせ回路の入出
力の関係を表した図である。
FIG. 14 is a diagram showing an input / output relationship of a combinational circuit in the circuit of FIG.

【図15】従来の連想記憶回路の構成図である。FIG. 15 is a configuration diagram of a conventional associative memory circuit.

【図16】従来の連想記憶回路の被比較レジスタと比較
器の動作を説明した図である。
FIG. 16 is a diagram illustrating the operation of a compared register and a comparator of a conventional associative memory circuit.

【図17】従来の連想記憶回路のエンプティビットとエ
ントリ結果回路の構成図である。
FIG. 17 is a configuration diagram of an empty bit and entry result circuit of a conventional associative memory circuit.

【図18】従来の連想記憶回路のCAM結果回路の構成
図である。
FIG. 18 is a configuration diagram of a CAM result circuit of a conventional associative memory circuit.

【符号の説明】[Explanation of symbols]

1 連想記憶回路 2 連想記憶回路 3 連想記憶回路 5 エントリ 6 比較器 7 エントリ 8 エンプティビット 9 エントリ結果回路 10 初期値レジスタ 12 カウントダウンカウンタ 14 エントリ結果回路 15 シーケンス信号端子 16 エントリ 23 フリップフロップ 47 クロック信号端子 50 比較レジスタ 57 被比較レジスタ 58 比較器 59 エントリ結果回路 61 エンプティビット Reference Signs List 1 associative memory circuit 2 associative memory circuit 3 associative memory circuit 5 entry 6 comparator 7 entry 8 empty bit 9 entry result circuit 10 initial value register 12 countdown counter 14 entry result circuit 15 sequence signal terminal 16 entry 23 flip-flop 47 clock signal terminal 50 comparison register 57 register to be compared 58 comparator 59 entry result circuit 61 empty bit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 比較するデータを保持する比較レジスタ
と、比較されるデータを保持する被比較レジスタと、こ
の被比較レジスタにデータが格納されていないことを示
すエンプティビットを含む複数のエントリと、外部から
のシーケンス信号を入力する入力手段を有し、前記各エ
ントリに、アドレスが1つ若いエントリの比較結果を記
憶するフリップフロップと、前記シーケンス信号が有効
なとき前記フリップフロップの値を比較結果判定の条件
とし、該フリップフロップがセットされていて、かつ前
記比較器の出力が一致を示しているときに前記エントリ
の比較結果を「一致」とする回路と、を備えたことを特
徴とする連想記憶回路。
1. A comparison register for holding data to be compared, a compared register for holding data to be compared, a plurality of entries including an empty bit indicating that no data is stored in the compared register, An input means for inputting a sequence signal from the outside, wherein each entry has a flip-flop for storing a comparison result of an entry having a smaller address by one, and a comparison result for comparing the value of the flip-flop when the sequence signal is valid A circuit that sets the comparison result of the entry to “match” when the flip-flop is set and the output of the comparator indicates a match, as a condition for the determination. Associative memory circuit.
JP2000179520A 2000-01-01 2000-06-15 Associative storing circuit Abandoned JP2001023379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000179520A JP2001023379A (en) 2000-01-01 2000-06-15 Associative storing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000179520A JP2001023379A (en) 2000-01-01 2000-06-15 Associative storing circuit

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP11707493A Division JP3187203B2 (en) 1993-05-19 1993-05-19 Associative memory circuit

Publications (1)

Publication Number Publication Date
JP2001023379A true JP2001023379A (en) 2001-01-26

Family

ID=18680781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000179520A Abandoned JP2001023379A (en) 2000-01-01 2000-06-15 Associative storing circuit

Country Status (1)

Country Link
JP (1) JP2001023379A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003030178A1 (en) * 2001-09-28 2003-04-10 Mosaid Technologies Incorporated Circuit and method for performing variable width searches in a content addressable memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003030178A1 (en) * 2001-09-28 2003-04-10 Mosaid Technologies Incorporated Circuit and method for performing variable width searches in a content addressable memory

Similar Documents

Publication Publication Date Title
US6381673B1 (en) Method and apparatus for performing a read next highest priority match instruction in a content addressable memory device
JP3095064B2 (en) Associative memory
US6246601B1 (en) Method and apparatus for using an inter-row configurable content addressable memory
US6243281B1 (en) Method and apparatus for accessing a segment of CAM cells in an intra-row configurable CAM system
US6678786B2 (en) Timing execution of compare instructions in a synchronous content addressable memory
JP3808753B2 (en) Associative memory device
US7243290B2 (en) Data encoding for fast CAM and TCAM access times
JPH11126486A (en) Method for assigning priority order of coincidence signal and coincidence address signal in encoder of content addressable memory
US6252789B1 (en) Inter-row configurability of content addressable memory
JPH11273365A (en) Content addressable memory(cam)
US6389524B1 (en) Decoding device with associative memory permitting variable-length keyword comparisons
US20020114194A1 (en) Multilevel storage nonvolatile semiconductor memory device enabling high-speed data reading and high-speed data writing
JP3437045B2 (en) Associative memory
US6868475B2 (en) Content addressable memory having data width extension capability
JP2779114B2 (en) Associative memory
JP2001023379A (en) Associative storing circuit
JP3187203B2 (en) Associative memory circuit
US6795892B1 (en) Method and apparatus for determining a match address in an intra-row configurable cam device
US6125057A (en) Segmented source memory array
JP2741810B2 (en) Content addressable memory
JP2004192695A (en) Associative memory device
KR20030039989A (en) Association memory and memory cell thereof
JPH06215583A (en) Associative memory
JP3597899B2 (en) Associative memory
JPH11134256A (en) Address conversion circuit

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Effective date: 20040224

Free format text: JAPANESE INTERMEDIATE CODE: A131

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20040402