JPH0748309B2 - Symbol string matching memory and its cascade connection method - Google Patents

Symbol string matching memory and its cascade connection method

Info

Publication number
JPH0748309B2
JPH0748309B2 JP62318335A JP31833587A JPH0748309B2 JP H0748309 B2 JPH0748309 B2 JP H0748309B2 JP 62318335 A JP62318335 A JP 62318335A JP 31833587 A JP31833587 A JP 31833587A JP H0748309 B2 JPH0748309 B2 JP H0748309B2
Authority
JP
Japan
Prior art keywords
signal
output
match
cascade connection
output terminal
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 - Lifetime
Application number
JP62318335A
Other languages
Japanese (ja)
Other versions
JPH01159729A (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 JP62318335A priority Critical patent/JPH0748309B2/en
Publication of JPH01159729A publication Critical patent/JPH01159729A/en
Publication of JPH0748309B2 publication Critical patent/JPH0748309B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディジタル情報通信分野に利用される。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is used in the field of digital information communication.

本発明は、ディジタル情報通信に用いられる記号列照合
メモリとそのカスケード接続方式に関し、特に、CPUと
のインタフェースの変更なしに、登録パタン記号列容量
が拡張可能な記号列照合メモリおよびそのカスケード接
続方式に関する。
The present invention relates to a symbol string collation memory used for digital information communication and a cascade connection system thereof, and more particularly, to a symbol string collation memory and a cascade connection system thereof in which a registered pattern symbol string capacity can be expanded without changing an interface with a CPU. Regarding

〔概要〕〔Overview〕

本発明は、記憶手段にあらかじめ所定の記号列を記憶
し、この記憶された記号列と外部から入力される照合記
号列とを比較し、一致が存在することを示す一致信号、
一致が複数個存在することを示す多重一致信号ならびに
一致が存在するアドレスコードを出力する記号列照合メ
モリにおいて、 カスケード接続用入力端子とカスケード接続用出力端子
とを設け、前記カスケード接続用入力端子がアクティブ
かインアクティブに従って、前記カスケード接続用出力
端子、一致信号出力端子および多重一致信号出力端子を
アクティブかインアクティブかに制御できるようにする
ことにより、 カスケード接続を可能としたものである。
The present invention stores a predetermined symbol string in the storage means in advance, compares the stored symbol string with a collation symbol string input from the outside, and a match signal indicating that a match exists,
In a symbol string collation memory that outputs a multiple match signal indicating that there are a plurality of matches and an address code where there is a match, an input terminal for cascade connection and an output terminal for cascade connection are provided, and the input terminal for cascade connection is The cascade connection is made possible by making it possible to control the output terminal for cascade connection, the coincidence signal output terminal, and the multiple coincidence signal output terminal to be active or inactive according to active or inactive.

〔従来の技術〕[Conventional technology]

従来、この種の記号列照合メモリは、第3図に示すよう
に、外部クロック入力端子12から入力される外部クロッ
クによって動作するシフトレジスタ13と、複数個のアド
レスを持ち各アドレスにはシフトレジスタ13と同規模の
記憶手段を有しシフトレジスタ13の内容と全アドレスに
おける前記記憶手段に格納された内容とを並列に比較し
各アドレスごとに一致したか否かを示す比較結果信号26
を出力する連想メモリ14と、比較結果信号26を入力し一
致が存在する場合に一致信号27と、一致が複数個存在す
る場合に多重一致信号28と、比較結果信号26を符号化し
一致した前記記憶手段のアドレスコード29とを出力する
プライオリティエンコーダ(PECD)15と、一致信号27、
多重一致信号28およびアドレスコード29をそれぞれ出力
する一致信号出力端子16、多重一致信号出力端子17およ
びアドレスコード出力端子18とを備えている。
Conventionally, as shown in FIG. 3, a symbol string collation memory of this type has a shift register 13 which operates by an external clock input from an external clock input terminal 12 and a shift register having a plurality of addresses. A comparison result signal 26 having a storage means of the same scale as 13 and comparing the contents of the shift register 13 with the contents stored in the storage means at all addresses in parallel and showing whether or not each address matches.
An associative memory 14 that outputs a match result signal 27 when there is a match by inputting the comparison result signal 26, a multiple match signal 28 when there is a plurality of matches, and a match result obtained by encoding the comparison result signal 26. A priority encoder (PECD) 15 for outputting the address code 29 of the storage means, a coincidence signal 27,
A match signal output terminal 16 for outputting a multiple match signal 28 and an address code 29, a multiple match signal output terminal 17, and an address code output terminal 18 are provided.

そして、プライオリティエンコーダ15は第4図に示す入
力と出力とを有し、第1表に示す真理値表に従った動作
を行う。すなわち2n個(nは自然数)の入力中一つでも
「H」があればシングルマッチ(SM)出力は「H」とな
り、複数のHがあればマルチマッチ(MM)出力が「H」
となり、Q1〜Qn出力からは所定の符号化されたn個の出
力が出力される。すなわち、前記シングルマッチ出力は
一致信号27となり、前記マルチマッチ出力は多重一致信
号28となり、前記Q1〜Qn出力はアドレスコード29とな
る。
The priority encoder 15 has the inputs and outputs shown in FIG. 4, and operates according to the truth table shown in Table 1. That is, if even one of 2 n (n is a natural number) input has "H", the single match (SM) output is "H", and if there are multiple H, the multi-match (MM) output is "H".
Therefore, the predetermined number n of outputs are output from the Q 1 to Q n outputs. That is, the single match output becomes the coincidence signal 27, the multi-match output becomes the multiple coincidence signal 28, and the Q 1 to Q n outputs become the address code 29.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

前述した従来の記号列照合メモリは、カスケード結合す
る端子が存在しなかったので、従来の記号列照合メモリ
を複数個使用する場合は、一致したか否か、一致アドレ
スコード結果を各記号列照合メモリ個別に読み出す必要
があり、記号列照合メモリの使用個数が増えるにつれ、
照合結果を得 るまでの処理時間が増加する欠点があった。また、ある
記号列を入力した際、複数個の記号列照合メモリで一致
が生じた場合、多重一致と判定するために、外部回路あ
るいはソフトウェアの追加が必要である欠点があった。
Since the conventional symbol string collation memory described above does not have terminals for cascade connection, when multiple conventional symbol string collation memories are used, it is determined whether or not they match, and the matching address code result is compared with each symbol string collation. It is necessary to read each memory individually, and as the number of symbol string matching memories used increases,
Get the matching result However, there is a drawback that the processing time until it increases. Further, when a certain symbol string is input, if a plurality of symbol string matching memories are matched, there is a drawback that an external circuit or software needs to be added in order to judge a multiple match.

本発明の目的は、前記の欠点を除去することにより、カ
スケード接続可能な記号列照合メモリとそのカスケード
接続方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a symbol string collation memory capable of cascade connection and a cascade connection method thereof by eliminating the above drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の記号列照合メモリは、外部クロックによって動
作するシフトレジスタと、複数個のアドレスを持ち各ア
ドレスには前記シフトレジスタと同規模の記憶手段を有
し前記シフトレジスタの内容と全アドレスにおける前記
記憶手段に格納された内容とを並列に比較し各アドレス
ごとに一致したか否かを示す比較結果信号を出力する記
憶比較手段と、前記比較結果信号を入力し一致が存在す
る場合に一致信号と、一致が複数個存在する場合に多重
一致信号と、前記比較結果信号を符号化し一致した前記
記憶手段のアドレスコードとを出力するプライオリティ
エンコーダと、前記一致信号、多重一致信号およびアド
レスコードをそれぞれ出力する一致信号出力端子、多重
一致信号出力端子およびアドレスコード出力端子とを備
えた記号列照合メモリにおいて、カスケード接続用入力
端子とカスケード接続用出力端子とを備え、前記カスケ
ード接続用入力端子がアクティブ入力時の場合に、前記
一致信号出力端子は前記一致信号の出力にかかわらずイ
ンアクティブ、前記カスケード接続用出力端子はアクテ
ィブ、前記多重一致信号出力端子は前記一致信号が出力
されているときはアクティブ、出力されていないときは
インアクティブ、前記カスケード接続用入力端子がイン
アクティブ入力時の場合には、前記カスケード接続用出
力端子は前記一致信号が出力されているときはアクティ
ブ、出力されていないときはインアクティブにそれぞれ
制御する制御手段を備えたことを特徴とする。
The symbol string collation memory of the present invention has a shift register operated by an external clock, and a storage means having a plurality of addresses and each address having the same scale as that of the shift register. Storage comparison means for comparing the contents stored in the storage means in parallel and outputting a comparison result signal indicating whether or not there is a match for each address, and a match signal when the comparison result signal is input and there is a match A priority encoder that outputs a multiple coincidence signal when a plurality of coincidences exist, and encodes the comparison result signal and outputs the coincident address code of the storage means, and the coincidence signal, the multiple coincidence signal and the address code, respectively. A symbol string collation device having a match signal output terminal for outputting, a multiple match signal output terminal, and an address code output terminal. In the above, the input terminal for cascade connection and the output terminal for cascade connection are provided, and when the input terminal for cascade connection is an active input, the match signal output terminal is inactive regardless of the output of the match signal, The cascade connection output terminal is active, the multiplex coincidence signal output terminal is active when the coincidence signal is output, inactive when the coincidence signal is not output, and when the cascade connection input terminal is inactive input Is provided with control means for controlling the cascade connection output terminal to be active when the coincidence signal is being output and inactive when the coincidence signal is not being output.

本発明の記号列照合メモリのカスケード接続方式は、前
記本発明の記号列照合メモリを複数個備え、第一の記号
列照合メモリの前記カスケード接続用入力端子および前
記カスケード接続用出力端子はそれぞれ接地電位および
第二の記号列照合メモリの前記カスケード接続用入力端
子に接続され、前記第一および第二の記号列照合メモリ
の前記一致信号出力端子はそれぞれ第二のプライオリテ
ィエンコーダの入力に接続され、前記多重信号出力端子
はそれぞれ所定の論理演算を行う論理回路の入力に接続
され、前記アドレスコード出力端子は前記第二のプライ
オリティエンコーダの出力とともに共通に一つのバスに
接続され、前記論理回路の出力は多重一致出力信号線に
接続され、以下同様に第三、第四、…、の記号列照合メ
モリが接続されたことを特徴とする。
The cascade connection system of the symbol string collation memory of the present invention comprises a plurality of the symbol string collation memories of the present invention, and the cascade connection input terminal and the cascade connection output terminal of the first symbol string collation memory are respectively grounded. The potential and the second symbol string matching memory is connected to the cascade connection input terminal, the first and second symbol string matching memory the match signal output terminals are respectively connected to the input of the second priority encoder, The multiple signal output terminals are respectively connected to inputs of a logic circuit for performing a predetermined logical operation, the address code output terminals are commonly connected to one bus together with the output of the second priority encoder, and the output of the logic circuit is provided. Is connected to the multiple coincidence output signal line, and similarly, the third, fourth, ... Symbol string matching memories are also connected. And wherein the door.

〔作用〕[Action]

制御手段により、カスケード接続用入力端子がアクティ
ブかインアクティブであるかに従って、カスケード接続
用出力端子、一致信号出力端子および多重一致信号出力
端子がアクティブかインアクティブであるかが規定され
る。そこで、カスケード接続を行う場合、一番目の記号
列照合メモリのカスケード接続用入力端子を接地しイン
アクティブとし、そのカスケード接続用出力端子を二番
目の記号列照合メモリのカスケード接続用入力端子を接
続する。この場合、一番目の前記メモリで一致が発生す
ると、二番目の前記メモリのカスケード接続用入力端子
はアクティブとなり、その一致信号出力端子は一致信号
が発生してインアクティブとなり、その多重信号出力端
子はアクティブとなる。
The control means defines whether the cascade connection output terminal, the coincidence signal output terminal and the multiple coincidence signal output terminal are active or inactive according to whether the cascade connection input terminal is active or inactive. Therefore, when performing cascade connection, the cascade connection input terminal of the first symbol string matching memory is grounded and made inactive, and the cascade connection output terminal is connected to the cascade input terminal of the second symbol string matching memory. To do. In this case, when a match occurs in the first memory, the cascade connection input terminal of the second memory becomes active, and the match signal output terminal thereof generates a match signal and becomes inactive. Becomes active.

これにより、一番目と二番目の前記メモリでともに一致
信号が発生したとすると、一番目の前記メモリの一致信
号出力端子はアクティブ、多重一致信号出力端子はイン
アクティブ、二番目の前記メモリの一致信号出力端子は
インアクティブ、多重信号出力端子はアクティブとな
る。
As a result, if a coincidence signal is generated in both the first and second memories, the coincidence signal output terminal of the first memory is active, the multiple coincidence signal output terminal is inactive, the coincidence signal of the second memory is coincident. The signal output terminal becomes inactive, and the multiplexed signal output terminal becomes active.

従って、各一致信号出力端子および各多重一致信号端子
の論理状態、例えば一致信号はプライオリティエンコー
ダ、多重一致信号はオアゲートで総合的に判断すること
により、カスケード接続した場合の一致信号出力、多重
一致信号出力およびそのアドレスコードを得ることがで
きる。
Therefore, the logical state of each coincidence signal output terminal and each multiple coincidence signal terminal, for example, the coincidence signal is comprehensively judged by the priority encoder, and the multiple coincidence signal is comprehensively judged by the OR gate. You can get the output and its address code.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明す
る。第1図は本発明の記号列照合メモリの一実施例の構
成図である。本実施例の記号列照合メモリは、クロック
入力端子12から入力された外部クロックによってデータ
入力端子11から入力される複数nのデータをシフト動作
する有限長のシフトレジスタ13と、複数個のアドレスを
持ち各アドレスにはシフトレジスタ13と同規模の記憶手
段を有しシフトレジスタ13の内容と全アドレスにおける
前記記憶手段に格納された内容とを並列に比較し各アド
レスごとに一致したか否かを示す比較結果信号26を出力
する記憶比較手段としての連想メモリ14と、比較結果信
号26を入力し一致が存在する場合に一致信号27と、一致
が複数個存在する場合に多重一致信号28と、比較結果信
号26を符号化し一致した前記記憶手段のアドレスコード
29とを出力するプライオリティエンコーダ15と、一致信
号27、多重一致信号28およびアドレスコード29をそれぞ
れ出力する一致信号出力端子16、多重一致信号出力端子
17およびアドレスコード出力端子18と、カスケード接続
用入力端子19と、カスケード接続用出力端子25と、カス
ケード接続用入力端子19がアクティブ入力時の場合に、
一致信号出力端子16は一致信号27の出力にかかわらずイ
ンアクティブ、カスケード接続用出力端子25はアクティ
ブ、カスケード接続用入力端子19がインアクティブ入力
時の場合、カスケード接続用出力端子25は一致信号27が
出力されているときはアクティブ、出力されていなけれ
ばインアクティブにそれぞれ制御する制御手段20とを備
えている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an embodiment of a symbol string matching memory of the present invention. The symbol string matching memory according to the present embodiment stores a finite length shift register 13 that shifts a plurality of n data input from the data input terminal 11 by an external clock input from the clock input terminal 12, and a plurality of addresses. Each address has storage means of the same scale as the shift register 13, and the contents of the shift register 13 and the contents stored in the storage means at all addresses are compared in parallel to determine whether or not each address matches. An associative memory 14 as a storage comparison unit that outputs the comparison result signal 26 shown, a match signal 27 when the comparison result signal 26 is input and a match exists, and a multiple match signal 28 when a plurality of matches exist, Address code of the storage means that encodes the comparison result signal 26 and agrees
Priority encoder 15 for outputting 29, and match signal output terminal 16 for outputting match signal 27, multiplex match signal 28 and address code 29, multiplex match signal output terminal
17 and address code output terminal 18, cascade connection input terminal 19, cascade connection output terminal 25, and cascade connection input terminal 19 when active input,
The match signal output terminal 16 is inactive regardless of the output of the match signal 27, the cascade connection output terminal 25 is active, and when the cascade connection input terminal 19 is inactive input, the cascade connection output terminal 25 is the match signal 27. Is output when is output, and inactive when not output.

そして、制御手段20は、一方の入力がカスケード接続用
入力端子19に接続され出力がカスケード接続用出力端子
25に接続された2入力のオアゲート21と、一方の反転入
力がオアゲート21の一方の入力に接続され他方の入力が
一致信号27に接続され出力がオアゲート21の他方の入力
および一致信号出力端子16に接続された2入力のアンド
ゲート22と、一方の入力がアンドゲート22の一方の反転
入力に接続され他方の入力が一致信号27に接続された2
入力のアンドゲート23と、一方の入力がアンドゲート23
の出力に接続され他方の入力が多重一致信号28に接続さ
れ出力が多重信号出力端子17に接続された2入力のオア
ゲート24とを含んでいる。なお本実施例はアクティブ
「H」の場合を示している。
The control means 20 has one input connected to the cascade connection input terminal 19 and the output connected to the cascade connection output terminal.
OR gate 21 of 2 inputs connected to 25, and one inverting input is connected to one input of OR gate 21, the other input is connected to match signal 27, and the output is the other input of OR gate 21 and match signal output terminal 16 A two-input AND gate 22 connected to, and one input connected to one inverting input of the AND gate 22 and the other input connected to the match signal 27.
AND gate 23 for input and AND gate 23 for one input
Of the two inputs and the other input to the multiplex coincidence signal 28 and the output to the multiplex signal output terminal 17. In this embodiment, the case of active "H" is shown.

本発明の特徴は、第1図において、カスケード接続用入
力端子19と、カスケード接続用出力端子25と、制御手段
20とを設け、図示のように接続したことにある。
The feature of the present invention is that in FIG. 1, an input terminal 19 for cascade connection, an output terminal 25 for cascade connection, and a control means are provided.
20 and 20 and are connected as shown.

次に、本実施例の動作について説明する。始めに、制御
手段20の論理動作について説明する。第2表に論理動作
の真理値表を示す。すなわち、制御手段20は次のように
制御動作を行う。
Next, the operation of this embodiment will be described. First, the logical operation of the control means 20 will be described. Table 2 shows a truth table of logical operations. That is, the control means 20 performs the control operation as follows.

カスケード接続用入力端子19がアクティブの場合、 ・一致信号出力端子16は、インアクティブ、 ・多重信号出力端子17は、 一致信号出力時はアクティブ、 一致信号非出力時はインアクティブ、 ・カスケード接続用出力端子25は、アクティブ。When the cascade connection input terminal 19 is active, the match signal output terminal 16 is inactive, and the multiple signal output terminal 17 is Active when a match signal is output, inactive when a match signal is not output, • Cascade connection output terminal 25 is active.

カスケード接続用入力端子19がインアクティブの場
合、 ・一致信号出力端子16は、 一致信号出力時はアクティブ、 一致信号非出力時はインアクティブ、 ・多重一致信号出力端子17は、 多重一致信号出力時はアクティブ、 それ以外はインアクティブ、 ・カスケード接続用出力端子25は、 一致信号出力時はアクティブ、 それ以外はインアクティブ。
When the cascade connection input terminal 19 is inactive, the match signal output terminal 16 is active when the match signal is output, inactive when the match signal is not output, and the multiple match signal output terminal 17 is the multiple match signal output Is active, otherwise is inactive, ・ The output terminal 25 for cascade connection is active when a match signal is output, and inactive otherwise.

外部クロック入力端子12より外部クロックを入力し、そ
れと同期したデータをデータ入力端子11より入力する
と、シフトレジスタ13と、連想メモリ14にあらかじめ登
録された全パターン記号列とを並列に実時間で比較し比
較結果信号26が出力される。そして、一致が発生したア
ドレスに対応し、プライオリティエンコーダ15の入力と
なる1信号線がアクティブとなる。プライオリティエン
コーダ15からの出力は制御手段20により、カスケード接
続用入力端子19がアクティブのときは、連想メモリ14か
らの全一致信号に無関係に、一致信号出力端子16はイン
アクティブとなり、多重一致信号出力端子17は、連想メ
モリ14に一致が発生していないときのみインアクティ
ブ、それ以外はアクティブとなる。また、カスケード接
続用入力端子19がインアクティブのときは、連想メモリ
14で一致が発生した場合は一致信号出力端子16がアクテ
ィブとなり、一致が複数個発生したときのみ多重一致信
号出力端子17がアクティブとなる。カスケード接続用出
力端子25は、カスケード接続用入力端子19がアクティブ
のとき、あるいは一致信号出力端子16がアクティブのと
きアクティブとなる。
When an external clock is input from the external clock input terminal 12 and data synchronized with it is input from the data input terminal 11, the shift register 13 and all pattern symbol strings registered in advance in the associative memory 14 are compared in parallel in real time. Then, the comparison result signal 26 is output. Then, one signal line that is an input of the priority encoder 15 is activated corresponding to the address where the coincidence occurs. The output from the priority encoder 15 is controlled by the control means 20.When the cascade connection input terminal 19 is active, the match signal output terminal 16 becomes inactive regardless of the all match signals from the associative memory 14, and the multiple match signal output. The terminal 17 is inactive only when a match does not occur in the associative memory 14, and is active otherwise. When the cascade connection input terminal 19 is inactive, the associative memory
When a match occurs at 14, the match signal output terminal 16 becomes active, and only when a plurality of matches occur, the multiple match signal output terminal 17 becomes active. The cascade connection output terminal 25 becomes active when the cascade connection input terminal 19 is active or when the match signal output terminal 16 is active.

第2図は本発明の記号列照合メモリのカスケード接続方
式の一実施例を示すブロック構成図で、第1図に示した
本発明のカスケード接続可能な記号列照合メモリを2個
カスケード接続したものである。本実施例は、連想メモ
リ32を含む第一記号列照合メモリ31と、連想メモリ34を
含む第二記号列照合メモリ33と、第一および第二記号列
照合メモリ31および33の入力にそれぞれ接続されたデー
タバス35およびクロック信号線36と、第一記号列照合メ
モリ31のカスケード接続用入力端子19をインアクティブ
に固定するための接地線37と、第一記号列照合メモリ31
のカスケード接続用出力端子25と第二記号列照合メモリ
33のカスケード接続用入力端子19とを結ぶ信号線38と、
第一および第二記号列照合メモリ31および33の一致アド
レスコード出力をマルチ接続したバス39と、入力が第一
および第二記号列照合メモリ31および33の一致信号出力
端子16と信号線41および42で接続されたプライオリティ
エンコーダ40と、一方の入力が第一記号列照合メモリ31
の多重一致信号出力端子17と信号線44で接続され他方の
入力が第二記号列照合メモリ33の多重一致信号出力端子
17と信号線45で接続されたオアゲート43と、オアゲート
43の出力に接続されカスケード接続された第一および第
二記号列照合メモリ31および33の少なくとも一方で多重
一致していることを示す出力信号線46と、一致アドレス
コード出力バス39とプライオリティエンコーダ40の出力
とをあわせ、連想メモリ32および34の二つを通しての一
致アドレスコードを示す出力バス47とを含んでいる。
FIG. 2 is a block diagram showing an embodiment of a cascade connection system of the symbol string collation memories of the present invention, in which two cascade connectable symbol string collation memories of the present invention shown in FIG. 1 are cascade-connected. Is. In the present embodiment, the first symbol string matching memory 31 including the associative memory 32, the second symbol string matching memory 33 including the associative memory 34, and the inputs of the first and second symbol string matching memories 31 and 33 are respectively connected. The data bus 35 and the clock signal line 36, the ground line 37 for fixing the cascade connection input terminal 19 of the first symbol string collation memory 31 inactive, and the first symbol string collation memory 31.
Output terminal 25 for cascade connection and second symbol string collation memory
A signal line 38 connecting the input terminal 19 for cascade connection of 33,
A bus 39 in which matching address code outputs of the first and second symbol string matching memories 31 and 33 are multi-connected, and an input is a matching signal output terminal 16 and a signal line 41 of the first and second symbol string matching memories 31 and 33. Priority encoder 40 connected by 42 and one input is the first symbol string matching memory 31
Multiple coincidence signal output terminal 17 is connected to the signal line 44, and the other input is the second coincidence signal collation memory 33 multiple coincidence signal output terminal.
OR gate 43 connected to 17 by signal line 45, and OR gate
An output signal line 46 indicating a multiple match with at least one of the first and second symbol string matching memories 31 and 33 connected to the output of 43 and cascaded, a match address code output bus 39, and a priority encoder 40. And an output bus 47 indicating the matching address code through two of the associative memories 32 and 34.

本発明の特徴は、第2図において、第一記号列照合メモ
リ31と第二記号列照合メモリ32とを、プライオリティエ
ンコーダ40およびオアゲート43とを用いて、同図に示す
ように接続したことにある。
The feature of the present invention is that in FIG. 2, the first symbol string collation memory 31 and the second symbol string collation memory 32 are connected as shown in the same figure by using the priority encoder 40 and the OR gate 43. is there.

次に本実施例の動作について説明する。連想メモリ32内
のアドレス「00」および「01」にそれぞれパタン記号列
「ABCDEF」、「XYZ」を、連想メモリ34内のアドレス「0
0」および「01」にそれぞれパタン記号列「OPQRSTU」
「XYZ」をあらかじめ登録しておく。クロック信号線36
より外部クロックと、データバス35よりそのクロックに
同期して照合記号列「ABCDEF」を入力すると、連想メモ
リ32において一致が発生し、バス39には一致アドレスコ
ードの「00」、信号線38および41はアクティブ出力、出
力バス47には一致アドレスコード「000」が出力され
る。
Next, the operation of this embodiment will be described. The pattern symbol strings “ABCDEF” and “XYZ” are assigned to the addresses “00” and “01” in the associative memory 32, and the address “0” in the associative memory 34.
Pattern symbols "OPQRSTU" for "0" and "01" respectively
Register "XYZ" in advance. Clock signal line 36
When the collation symbol string "ABCDEF" is input from the external clock and the data bus 35 in synchronization with the clock, a match occurs in the associative memory 32, and the match address code "00", signal line 38 and 41 is an active output, and the match address code "000" is output to the output bus 47.

このとき信号線44、42および45はインアクティブ出力、
記号列照合メモリ33のアドレスコード出力端子18はハイ
インピーダンスである。同様にして、データバス35より
照合記号列「OPQRSTU」を入力すると、連想メモリ34で
一致が発生し、バス39には一致アドレスコード「00」が
出力され、信号線42はアクティブ出力となり、出力バス
47は「100」となる。このとき、信号線38、41、44およ
び45はインアクティブ出力、第一記号列照合メモリ31の
アドレスコード出力端子18はハイインピーダンスとな
る。
At this time, the signal lines 44, 42 and 45 are inactive outputs,
The address code output terminal 18 of the symbol string collation memory 33 has high impedance. Similarly, when the collation symbol string "OPQRSTU" is input from the data bus 35, a match occurs in the associative memory 34, the match address code "00" is output to the bus 39, and the signal line 42 becomes an active output and is output. bus
47 becomes "100". At this time, the signal lines 38, 41, 44 and 45 are inactive output, and the address code output terminal 18 of the first symbol string collation memory 31 has high impedance.

次に同様にして、データバス35より照合記号列「XYZ」
をクロック信号線36からの外部クロックに同期させて入
力すると、連想メモリ32および34の両方で一致が生じ
る。このとき、バス39は一致アドレスコード「01」とな
り、信号線41および38はアクティブ出力となる。カスケ
ード接続用の信号線38がアクティブなため、連想メモリ
34で一致が発生しているにもかかわらず、信号線42はイ
ンアクティブ、記号列照合メモリ33のアドレスコード出
力端子18はハイインピーダンスになる。また信号線44は
インアクティブであるが信号線45はアクティブ出力とな
り、出力信号線46もアクティブとなり、カスケード接続
した第一および第二記号列照合メモリ31および33内で多
重一致が発生したことが分かる。
Next, in the same way, from the data bus 35, collation symbol string "XYZ"
Is input in synchronization with the external clock from the clock signal line 36, a match occurs in both the associative memories 32 and 34. At this time, the bus 39 has the coincident address code “01”, and the signal lines 41 and 38 are active outputs. Associative memory because signal line 38 for cascade connection is active
Despite the coincidence at 34, the signal line 42 becomes inactive, and the address code output terminal 18 of the symbol string matching memory 33 becomes high impedance. Further, although the signal line 44 is inactive, the signal line 45 becomes an active output, and the output signal line 46 also becomes active, and multiple coincidence occurs in the cascade-connected first and second symbol string collation memories 31 and 33. I understand.

なお、前述の接続方式の実施例においては、記号列照合
メモリ2個をカスケード接続した場合を示したけれど
も、3個以上になっても第二記号列照合メモリと同様に
順次カスケード接続することができる。
In the embodiment of the connection system described above, the case where two symbol string collation memories are cascade-connected is shown, but even if the number of symbol string collation memories is three or more, they can be sequentially cascade-connected like the second symbol string collation memory. it can.

また、以上の説明はすべてアクティブ「H」としたけれ
ども、アクティブ「L」の場合も論理を逆にすることに
より同様に適用される。
Further, although all of the above explanations have been made active "H", the same applies to the case of active "L" by reversing the logic.

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

以上説明したように、本発明は、前述の手段を有するこ
とにより、記号列照合メモリ複数個をカスケード接続す
ることが可能となり、その場合CPUからは、連想メモリ
の容量が拡張した1個の大容量の記号列照合メモリと見
え、簡易に登録パタン容量の拡張ができる効果がある。
また複数個のLSI化されたチップにまたがる多重一致の
発生も簡易に検出できる効果がある。
As described above, according to the present invention, it is possible to cascade-connect a plurality of symbol string collation memories by including the above-mentioned means, and in this case, the CPU can provide a single large-capacity associative memory with an expanded capacity. It looks like a capacity symbol string matching memory, and has the effect of easily expanding the registered pattern capacity.
In addition, the occurrence of multiple coincidences across a plurality of LSI chips can be easily detected.

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

第1図は本発明の記号列照合メモリの第一実施例を示す
ブロック構成図。 第2図は本発明の記号列照合メモリのカスケード接続方
式の第二実施例を示すブロック構成図。 第3図は従来例の記号列照合メモリを示すブロック構成
図。 第4図はプライオリティエンコーダの説明図。 11……データ入力端子、12……外部クロック入力端子、
13……シフトレジスタ、14、32、34……連想メモリ、1
5、40……プライオリティエンコーダ(PECD)、16……
一致信号出力端子、17……多重一致信号出力端子、18…
…アドレスコード出力端子、19……カスケード接続用入
力端子、20……制御手段、21、24、43……オアゲート、
22、23……アンドゲート、25……カスケード接続用出力
端子、31、33……記号列照合メモリ、35……データバ
ス、36……クロック信号線、37……接地線、38、41、4
2、44、45……信号線、39……バス、46……出力信号
線、47……出力バス。
FIG. 1 is a block diagram showing the first embodiment of a symbol string matching memory of the present invention. FIG. 2 is a block diagram showing a second embodiment of the cascade connection system of the symbol string matching memory of the present invention. FIG. 3 is a block diagram showing a conventional symbol string matching memory. FIG. 4 is an explanatory diagram of the priority encoder. 11 …… Data input terminal, 12 …… External clock input terminal,
13 …… Shift register, 14, 32, 34 …… Associative memory, 1
5, 40 …… Priority encoder (PECD), 16 ……
Matching signal output terminal, 17 ... Multiplex matching signal output terminal, 18 ...
... Address code output terminal, 19 ... Cascade connection input terminal, 20 ... Control means, 21, 24, 43 ... OR gate,
22、23 …… AND gate, 25 …… Cascade connection output terminal, 31,33 …… Symbol collation memory, 35 …… Data bus, 36 …… Clock signal line, 37 …… Grounding wire, 38,41, Four
2,44,45 …… Signal line, 39 …… Bus, 46 …… Output signal line, 47 …… Output bus.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】外部クロックによって動作するシフトレジ
スタ(13)と、 複数個のアドレスを持ち各アドレスには前記シフトレジ
スタと同規模の記憶手段を有し前記シフトレジスタの内
容と全アドレスにおける前記記憶手段に格納された内容
とを並列に比較し各アドレスごとに一致したか否かを示
す比較結果信号を出力する記憶比較手段(14)と、 前記比較結果信号を入力し一致が存在する場合に一致信
号と、一致が複数個存在する場合に多重一致信号と、前
記比較結果信号を符号化し一致した前記記憶手段のアド
レスコードとを出力するプライオリティエンコーダ(1
5)と、 前記一致信号、多重一致信号およびアドレスコードをそ
れぞれ出力する一致信号出力端子(16)、多重一致信号
出力端子(17)およびアドレスコード出力端子(18)と を備えた記号列照合メモリにおいて、 カスケード接続用入力端子(19)とカスケード接続用出
力端子(25)とを備え、 前記カスケード接続用入力端子がアクティブ入力時の場
合に、前記一致信号出力端子は前記一致信号の出力にか
かわらずインアクティブ、前記カスケード接続用出力端
子はアクティブ、前記多重一致信号出力端子は前記一致
信号が出力されているときはアクティブ、出力されてい
ないときはインアクティブ、 前記カスケード接続用入力端子がインアクティブ入力時
の場合には、前記カスケード接続用出力端子は前記一致
信号が出力されているときはアクティブ、出力されてい
ないときはインアクティブ にそれぞれ制御する制御手段(20)を 備えたことを特徴とする記号列照合メモリ。
1. A shift register (13) which is operated by an external clock, and a storage means having a plurality of addresses, each address having the same scale as the shift register, and the contents of the shift register and the storage at all addresses. Storage comparison means (14) for comparing the contents stored in the means in parallel and outputting a comparison result signal indicating whether or not there is a match for each address; and when there is a match when the comparison result signal is input. A priority encoder (1) that outputs a coincidence signal, a multiple coincidence signal when a plurality of coincidences exist, and the address code of the storage means that encodes the comparison result signal and coincides with each other.
5), and a symbol string matching memory including a match signal output terminal (16) for outputting the match signal, the multiple match signal and the address code, a multiple match signal output terminal (17) and an address code output terminal (18), respectively. In the above, a cascade connection input terminal (19) and a cascade connection output terminal (25) are provided, and when the cascade connection input terminal is an active input, the match signal output terminal is irrespective of the output of the match signal. No inactive, the cascade connection output terminal is active, the multiplex match signal output terminal is active when the match signal is output, inactive when not output, the cascade connection input terminal is inactive In the case of input, the output terminal for cascade connection is an output terminal when the coincidence signal is being output. The symbol string collation memory is equipped with a control means (20) for controlling each active and inactive when not being output.
【請求項2】外部クロックによって動作するシフトレジ
スタと、複数個のアドレスを持ち各アドレスには前記シ
フトレジスタと同規模の記憶手段を有し前記シフトレジ
スタの内容と全アドレスにおける前記記憶手段に格納さ
れた内容とを並列に比較し各アドレスごとに一致したか
否かを示す比較結果信号を出力する記憶比較手段と、前
記比較結果信号を入力し一致が存在する場合に一致信号
と、一致が複数個存在する場合に多重一致信号と、前記
比較結果信号を符号化し一致した前記記憶手段のアドレ
スコードとを出力するプライオリティエンコーダと、前
記一致信号、多重一致信号およびアドレスコードをそれ
ぞれ出力する一致信号出力端子、多重一致信号出力端子
およびアドレスコード出力端子と、カスケード接続用入
力端子と、カスケード接続用出力端子と、前記カスケー
ド接続用入力端子がアクティブ入力時の場合に、前記一
致信号出力端子は前記一致信号の出力にかかわらずイン
アクティブ、前記カスケード接続用出力端子はアクティ
ブ、前記多重一致信号出力端子は前記一致信号が出力さ
れているときはアクティブ、出力されていないときはイ
ンアクティブ、前記カスケード接続用入力端子がインア
クティブの場合、前記カスケード接続用出力端子は前記
一致信号が出力されているときはアクティブ、出力され
ていないときはインアクティブにそれぞれ制御する制御
手段とを備えた記号列照合メモリを複数個備え、 第一の記号列照合メモリ(31)の前記カスケード接続用
入力端子および前記カスケード接続用出力端子はそれぞ
れ接地電位および第二の記号列照合メモリ(33)の前記
カスケード接続用入力端子に接続され、前記第一および
第二の記号列照合メモリの前記一致信号出力端子はそれ
ぞれ第二のプライオリティエンコーダ(40)の入力に接
続され、前記多重信号出力端子はそれぞれ所定の論理演
算を行う論理回路(43)の入力に接続され、前記アドレ
スコード出力端子は前記第二のプライオリティエンコー
ダの出力とともに共通に一つのバス(47)に接続され、
前記論理回路の出力は多重一致出力信号線(46)に接続
され、以下同様に第三、第四、…、の記号列照合メモリ
が接続された ことを特徴とする記号列照合メモリのカスケード接続方
式。
2. A shift register operated by an external clock, and a storage means having a plurality of addresses, each address having the same scale as the shift register, and storing the contents of the shift register and the storage means at all addresses. The stored contents are compared in parallel with each other to output a comparison result signal indicating whether or not there is a match for each address, and a match signal when the comparison result signal is input and a match is found, a match is made. A priority encoder that outputs a multiple coincidence signal when a plurality of them exist, and outputs the address code of the storage means that encodes and compares the comparison result signal, and a coincidence signal that outputs the coincidence signal, the multiple coincidence signal, and the address code, respectively. Output terminal, multiple coincidence signal output terminal and address code output terminal, cascade connection input terminal, When the connection connection output terminal and the cascade connection input terminal are active inputs, the match signal output terminal is inactive regardless of the output of the match signal, the cascade connection output terminal is active, and the multiple match The signal output terminal is active when the match signal is output, inactive when not output, and when the cascade connection input terminal is inactive, the output signal for cascade connection outputs the match signal A plurality of symbol string collation memories each having a control means for controlling each of the symbol string collation memories (31) to be active when it is not being output, and to be inactive when not being output, and the cascade connection input terminal of the first symbol string collation memory (31). And the output terminals for cascade connection are a ground potential and a second symbol string matching memory, respectively. 33) is connected to the cascade connection input terminal, and the coincidence signal output terminals of the first and second symbol string collation memories are connected to the inputs of the second priority encoder (40), respectively, and the multiple signal output is connected. Each terminal is connected to an input of a logic circuit (43) for performing a predetermined logical operation, and the address code output terminal is commonly connected to one bus (47) together with the output of the second priority encoder,
The output of the logic circuit is connected to the multiple coincidence output signal line (46), and the third, fourth, ... Symbol string matching memories are connected in the same manner. Cascade connection of symbol string matching memories. method.
JP62318335A 1987-12-16 1987-12-16 Symbol string matching memory and its cascade connection method Expired - Lifetime JPH0748309B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62318335A JPH0748309B2 (en) 1987-12-16 1987-12-16 Symbol string matching memory and its cascade connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62318335A JPH0748309B2 (en) 1987-12-16 1987-12-16 Symbol string matching memory and its cascade connection method

Publications (2)

Publication Number Publication Date
JPH01159729A JPH01159729A (en) 1989-06-22
JPH0748309B2 true JPH0748309B2 (en) 1995-05-24

Family

ID=18098016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62318335A Expired - Lifetime JPH0748309B2 (en) 1987-12-16 1987-12-16 Symbol string matching memory and its cascade connection method

Country Status (1)

Country Link
JP (1) JPH0748309B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230236B1 (en) * 1997-08-28 2001-05-08 Nortel Networks Corporation Content addressable memory system with cascaded memories and self timed signals
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
JPH01159729A (en) 1989-06-22

Similar Documents

Publication Publication Date Title
EP0380294A1 (en) String matching
JPH0122652B2 (en)
JPH01182992A (en) Semiconductor memory device
JP2549601B2 (en) Register control circuit
US4586162A (en) Bit pattern check circuit
JPH0666050B2 (en) Sort processing method
JPH0748309B2 (en) Symbol string matching memory and its cascade connection method
US20030147488A1 (en) Shift register
US6725369B1 (en) Circuit for allowing data return in dual-data formats
JPS6362083A (en) Projection data generation system
JP2702943B2 (en) Semiconductor storage device
JP2752220B2 (en) String processing unit
JPS63129438A (en) Memory controller
JPH0650478B2 (en) Data compression storage system
JP2666419B2 (en) Information processing device
JPH02212952A (en) Memory access control system
JP3308575B2 (en) Extension memory bank address automatic setting method
JPS6327731B2 (en)
JP3019627B2 (en) Data retrieval device
JPH0218638A (en) Data control system
JP3074897B2 (en) Memory circuit
JPS622317A (en) Multilevel comparison and coincidence detecting circuit
JPH0550078B2 (en)
JPS62235656A (en) Storage device
JPH05128327A (en) Ic card