JPH01159729A - Symbol string collation memory and its cascade connection system - Google Patents

Symbol string collation memory and its cascade connection system

Info

Publication number
JPH01159729A
JPH01159729A JP62318335A JP31833587A JPH01159729A JP H01159729 A JPH01159729 A JP H01159729A JP 62318335 A JP62318335 A JP 62318335A JP 31833587 A JP31833587 A JP 31833587A JP H01159729 A JPH01159729 A JP H01159729A
Authority
JP
Japan
Prior art keywords
output terminal
cascade connection
signal
output
match
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP62318335A
Other languages
Japanese (ja)
Other versions
JPH0748309B2 (en
Inventor
Katsuhiko Nishito
西戸 克彦
Taiichi Murata
泰一 村田
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)

Abstract

PURPOSE:To enable cascade connection by controlling a cascade output terminal and a coincidence signal output terminal so as to be active/inactive according to which an input terminal for the cascade connection is active/inactive. CONSTITUTION:The system is constituted of the input terminal 19 and the output terminal 25 for the cascade connection and a controlling means 20. Data synchronizing with an external clock from the input terminal 12 is inputted from the input terminal 11, and is compared with a pattern string registered in a shift register 13 and an associative memory 14 in real time, and a comparison result signal 26 is outputted. As for an address in which coincidence occurs, the output from an encoder 15 enters the controlling means 20, and when the input terminal 19 is active, the output terminal 16 turns to be inactive independently of an all coincidence signal from the memory 14. A multiple coincidence signal output terminal 17 turns to be inactive only while the coincidence does not occur in the memory 14.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディジタル情報通信分野に利用される。[Detailed description of the invention] [Industrial application field] INDUSTRIAL APPLICABILITY The present invention is utilized in the field of digital information and communications.

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

〔概要〕〔overview〕

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

〔従来の技術〕[Conventional technology]

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

そして、プライオリティエンコーダ15は第4図に示す
入力と出力とを育し、第1表に示す真理値表に従った動
作を行う。すなわち2″個(nは自然数)の入力中−つ
でもr)(Jがあればシングルマツチ(SM)出力はr
 I(Jとなり、複数のHがあればマルチマツチ(MM
)出力が「H」となり、Q+ ”’−Ql、出力からは
所定の符号化されたn個の出力が出力される。すなわち
、前記シングルマツチ出力は一致信号27となり、前記
マルチマツチ出力は多重一致信号28となり、前記Q、
−Q、、出力はアドレスコード29となる。
The priority encoder 15 then develops the inputs and outputs shown in FIG. 4, and performs operations according to the truth table shown in Table 1. In other words, among 2'' inputs (n is a natural number) - at any time r) (if J exists, the single match (SM) output is r
I (J), and if there are multiple H, multi-match (MM
) output becomes "H", Q+"'-Ql, and n predetermined encoded outputs are output from the output. In other words, the single match output becomes a match signal 27, and the multi-match output becomes a multiple match signal. The signal becomes 28, and the Q,
-Q, the output becomes address code 29.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

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

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

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

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

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

〔作用〕[Effect]

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

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

従って、各一致信号出力端子および各多重一致信号端子
の論理状態、例えば一致信号はプライオリティエンコー
ダ、多重一致信号はオアゲートで総合的に判断すること
により、カスケード接続した場合の一致信号出力、多重
一致信号出力およびそのアドレスコードを得ることがで
きる。
Therefore, by comprehensively determining the logical state of each match signal output terminal and each multiple match signal terminal, for example, the match signal is determined by a priority encoder, and the multiple match signal is determined by an OR gate, the match signal output in the case of cascade connection, the multiple match signal 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は一致信号2
7が出力されているときはアクティブ、出力されていな
ければインアクティブにそれぞれ制御する制御手段20
とを備えている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the symbol string matching memory of the present invention. The symbol string matching memory of this embodiment includes a finite-length shift register 13 that shifts a plurality of n data input from a data input terminal 11 in response to an external clock input from a clock input terminal 12, and a finite-length shift register 13 that shifts a plurality of n data input from a data input terminal 11, and a plurality of addresses. Each address has a storage means of the same size 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 they match for each address. an associative memory 14 as a storage comparison means that outputs a comparison result signal 26 shown in FIG. a priority encoder 15 which encodes the comparison result signal 26 and outputs the matched address code 29 of the storage means; a match signal output terminal 16 which outputs a match signal 27, a multiple match signal 28 and an address code 29, respectively; Signal output terminal 17, address code output terminal 18, and cascade connection input terminal 19
When the output terminal 25 for cascade connection and the input terminal 19 for cascade connection are active inputs, the match signal output terminal 16 is inactive regardless of the output of the match signal 27, and the output terminal 25 for cascade connection is active. When the input terminal 19 for cascade connection is an inactive input, the output terminal 25 for cascade connection receives the match signal 2.
The control means 20 is active when 7 is output, and inactive when it is not output.
It is equipped with

そして、制御手段20は、一方の入力がカスケード接続
用入力端子19に接続され出力がカスケード接続用出力
端子25に接続された2入力のオアゲート21と、一方
の反転入力がオアゲート21の一方の入力に接続され他
方の入力が一致信号27に接続され出力がオアゲート2
1の他方の入力および一致信号出力端子16に接続され
た2入力のアンドゲート22と、一方の入力がアンドゲ
ート22の一方の反転入力に接続され他方の入力が一致
信号27に接続された2入力のアンドゲート23と、一
方の入力がアンドゲート23の出力に接続され他方の入
力が多重一致信号28に接続され出力が多重信号出力端
子17に接続された2入力のオアゲート24とを含んで
いる。なお本実施例はアクティブr)(jの場合を示し
ている。
The control means 20 has a two-input OR gate 21 whose one input is connected to the cascade connection input terminal 19 and whose output is connected to the cascade connection output terminal 25, and one inverting input of which is connected to one input of the OR gate 21. The other input is connected to the match signal 27 and the output is the OR gate 2.
AND gate 22 with two inputs connected to the other input of AND gate 1 and the match signal output terminal 16; It includes an input AND gate 23 and a two-input OR gate 24 whose one input is connected to the output of the AND gate 23, the other input is connected to the multiple coincidence signal 28, and the output is connected to the multiple signal output terminal 17. There is. Note that this embodiment shows the case of active r)(j.

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

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

■ カスケード接続用入力端子19がアクティブの場合
、 ・一致信号出力端子16は、インアクティブ、・多重信
号出力端子17は、 一致信号出力時はアクティブ、 一致信号非出力時はインアクティブ、 ・カスケード接続用出力端子25は、アクティブ。
■ When the input terminal 19 for cascade connection is active, - Match signal output terminal 16 is inactive, - Multiple signal output terminal 17 is active when a match signal is output, and inactive when a match signal is not output, - Cascade connection The 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 a match signal is output, and inactive when a match signal is not output. - The multiple match signal output terminal 17 is used to output multiple match signals.・The cascade connection output terminal 25 is active when a match signal is output, and inactive otherwise.

外部クロック入力端子12より外部クロックを入力し、
それと同期したデータをデータ入力端子11より入力す
ると、シフトレジスタ13と、連想メモリ14にあらか
じめ登録された全パターン記号列とを並列に実時間で比
較し比較結果信号26が出力される。そして、一致が発
生したアドレスに対応し、プライオリティエンコーダ1
5の入力となるI信号線がアクティブとなる。プライオ
リティエンコーダ15からの出力は制御手段20により
、カスケード接続用入力端子19がアクティブのときは
、連想メモリ14からの全一致信号に無関係に、一致信
号出力端子16はインアクティブとなり、多重一致信号
出力端子17は、連想メモリ14に一致が発生していな
いときのみインアクティブ、それ以外はアクティブとな
る。また、カスケード接続用入力端子19がインアクテ
ィブのときは、連想メモリ14で一致が発生した場合は
一致信号出力端子16がアクティブとなり、一致が複数
個発生したときのみ多重−致信号出力端子17がアクテ
ィブとなる。カスケード接続用出力端子25は、カスケ
ード接続用入力端子19がアクティブのとき、あるいは
一致信号出力端子16がアクティブのときアクティブと
なる。
Input the external clock from the external clock input terminal 12,
When data synchronized with this 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, and a comparison result signal 26 is output. Then, corresponding to the address where the match occurred, the priority encoder 1 is
The I signal line, which is the input of 5, becomes active. The output from the priority encoder 15 is controlled by the control means 20, so that when the cascade connection input terminal 19 is active, the coincidence signal output terminal 16 becomes inactive regardless of the all coincidence signal from the associative memory 14, and multiple coincidence signals are output. The terminal 17 is inactive only when no match occurs in the associative memory 14, and active otherwise. Furthermore, when the cascade connection input terminal 19 is inactive, the match signal output terminal 16 becomes active when a match occurs in the associative memory 14, and the multiple match signal output terminal 17 becomes active only when a plurality of matches occur. Becomes active. The cascade connection output terminal 25 becomes active when the cascade connection input terminal 19 is active or when the coincidence 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と、一方の入力が第一記号列照合メモリ3
1の多重一致信号出力端子17と信号線44で接続され
他方の入力が第二記号列照合メモリ33の多重一致信号
出力端子17と信号線45で接続されたオアゲート43
と、オアゲート43の出力に接続されカスケード接続さ
れた第一および第二記号列照合メモリ31および33の
少なくとも一方で多重一致していることを示す出力信号
線46と、一致アドレスコード出力バス39とプライオ
リティエンコーダ40の出力とをあわせ、連想メモリ3
2および34の二つを通しての一致アドレスコードを示
す出力バス47とを含んでいる。
FIG. 2 is a block diagram showing an embodiment of the cascade connection method of symbol string matching memories of the present invention, in which two cascade-connectable symbol string matching memories of the present invention shown in FIG. 1 are cascaded. It is. In this embodiment, the first symbol string collation memory 31 including the associative memory 32, the second symbol string collation memory 33 including the associative memory 34, and the inputs of the first and second symbol string collation memories 31 and 33, respectively. A connected data bus 35 and a clock signal line 36,
a grounding wire 37 for fixing the cascade connection input terminal 19 of the first symbol string matching memory 31 inactive;
A signal line 38 connecting the cascade connection output terminal 25 of the first symbol string verification memory 31 and the cascade connection input terminal 19 of the second symbol string verification memory 33 and the A bus 39 in which multiple matching address code outputs are connected, and a matching signal output terminal 16 whose input is the first and second symbol string matching memories 31 and 33
and a priority encoder 40 connected by signal lines 41 and 42, and one input of which is connected to the first symbol string matching memory 3.
an OR gate 43 connected to the multiple coincidence signal output terminal 17 of the second symbol string collation memory 33 by a signal line 44 and whose other input is connected to the multiple coincidence signal output terminal 17 of the second symbol string collation memory 33 by a signal line 45;
, an output signal line 46 connected to the output of the OR gate 43 and indicating that there is a multiple match in at least one of the cascade-connected first and second symbol string collation memories 31 and 33, and a match address code output bus 39. Together with the output of the priority encoder 40, the associative memory 3
2 and 34.

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

次に本実施例の動作について説明する。連想メモリ32
内のアドレス「00」および「01」にそレソレバタン
記号列rABcDEF」、rXYZJを、連想メモリ3
4内のアドレス「00」および「01」にそれぞれバタ
ン記号列「○PQR3TUJrXYZJをあらかじめ登
録しておく。クロック信号線36より外部クロックと、
データバス35よりそのクロックに同期して照合記号列
rABCDEF」を入力すると、連想メモリ32におい
て一致が発生し、バス39には一致アドレスコードの「
00」、信号線38および41はアクティブ出力、出力
バス47には一致アドレスコードr000Jが出力され
る。
Next, the operation of this embodiment will be explained. Associative memory 32
The associative memory 3 stores the symbol strings rABcDEF and rXYZJ at addresses "00" and "01" in the content addressable memory 3.
4, register the bang symbol string ``○PQR3TUJrXYZJ'' in addresses ``00'' and ``01'' in advance.
When the matching symbol string rABCDEF is input from the data bus 35 in synchronization with the clock, a match occurs in the associative memory 32, and the matching address code "rABCDEF" is input to the bus 39.
00'', the signal lines 38 and 41 are active outputs, and the output bus 47 outputs the matching address code r000J.

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

このとき、信号線38.41.44および45はインア
クティブ出力、第一記号列照合メモリ31のアドレスコ
ード出力端子18はハイインピーダンスとなる。
At this time, the signal lines 38, 41, 44 and 45 are inactive outputs, and the address code output terminal 18 of the first symbol string collation memory 31 becomes high impedance.

次に同様にして、データバス35より照合記号列rXY
ZJをクロック信号線36からの外部クロックに同期さ
せて入力すると、連想メモリ32および34の両方で一
致が生じる。このとき、バス39は一致アドレスコード
「01」となり、信号線41および38はアクティブ出
力となる。カスケード接続用の信号線38がアクティブ
なため、連想メモリ34で一致が発生しているにもかか
わらず、信号線42はインアクティブ、記号列照合メモ
リ33のアドレスコード出力端子18はハイインピーダ
ンスになる。
Next, in the same way, from the data bus 35, the verification symbol string rXY
When ZJ is input in synchronization with an external clock from clock signal line 36, a match occurs in both content addressable memories 32 and 34. At this time, the bus 39 becomes the match address code "01" and the signal lines 41 and 38 become active outputs. Since the signal line 38 for cascade connection is active, the signal line 42 is inactive and the address code output terminal 18 of the symbol string matching memory 33 becomes high impedance even though a match has occurred in the associative memory 34. .

また信号線44はインアクティブであるが信号線45は
アクティブ出力となり、出力信号線46もアクティブと
なり、カスケード接続した第一および第二記号列照合メ
モリ31および33内で多重一致が発生したことが分か
る。
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, indicating that multiple matches have occurred in the cascade-connected first and second symbol string matching memories 31 and 33. I understand.

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

また、以上の説明はすべてアクティブr)(Jとしたけ
れども、アクティブr L Jの場合も論理を逆にする
ことにより同様に適用される。
In addition, although the above description has been made using active r) (J, the same applies to the case of active r L J by reversing the logic.

〔発明の効果〕〔Effect of the invention〕

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

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

第1図は本発明の記号列照合メモリの第一実施例を示す
ブロック構成図。 第2図は本発明の記号列照合メモリのカスケード接続方
式の第二実施例を示すブロック構成図。 第3図は従来例の記号列照合メモリを示すブロック構成
図。 第4図はプライオリティエンコーダの説明図。 11・・・データ入力端子、12・・・外部クロック入
力端子、13・・・シフトレジスタ、14.32.34
・・・連想メモリ、15.40・・・プライオリティエ
ンコーダ(PECD)、16・・・一致信号出力端子、
17・・・多重一致信号出力端子、18・・・アドレス
コード出力端子、19・・・カスケード接続用入力端子
、20・・・制御手段、21.24.43・・・オアゲ
ート、22.23・・・アンドゲート、25・・・カス
ケード接続用出力端子、31.33・・・記号列照合メ
モリ、35・・・データバス、36・・・クロック信号
線、37・・・接地線、38.41.42.44.45
・・・信号線、39・・・バス、46・・・出力信号線
、47・・・出力バス。
FIG. 1 is a block diagram showing a 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 symbol string matching memories 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
... Content addressable memory, 15.40 ... Priority encoder (PECD), 16 ... Match signal output terminal,
17... Multiple coincidence 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...Output terminal for cascade connection, 31.33...Symbol string matching memory, 35...Data bus, 36...Clock signal line, 37...Grounding line, 38. 41.42.44.45
...Signal line, 39...Bus, 46...Output signal line, 47...Output bus.

Claims (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120775A (en) * 1997-08-28 1999-04-30 Northern Telecom Ltd Contents address memory system
WO2002086717A1 (en) * 2001-04-16 2002-10-31 Xaxon R & D Corporation Computer virus check device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120775A (en) * 1997-08-28 1999-04-30 Northern Telecom Ltd Contents address memory system
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
JPH0748309B2 (en) 1995-05-24

Similar Documents

Publication Publication Date Title
JPS635839B2 (en)
US5125011A (en) Apparatus for masking data bits
JPS5926059B2 (en) control circuit
JPS60105039A (en) Collation system of character string
US4586162A (en) Bit pattern check circuit
JPH01159729A (en) Symbol string collation memory and its cascade connection system
EP1151383A1 (en) Content addressable memory addressable by redundant form input data
EP0192209A1 (en) Address contention arbitrator for multi-port memories
JPS6045505B2 (en) associative memory device
CA1219372A (en) Flexible computer control unit
JP3019627B2 (en) Data retrieval device
JPS622317A (en) Multilevel comparison and coincidence detecting circuit
JPS63225839A (en) Rom with security function
JPS63172389A (en) Ic memory card
JPH02212952A (en) Memory access control system
JPS6327731B2 (en)
JPS62180585A (en) Chip selecting circuit
JPS5882345A (en) Memory control system
JPS5975498A (en) Memory redundant system
JPS6136854A (en) Memory switching device
JPS62235656A (en) Storage device
JPS60117353A (en) Substitute memory control method of memory
JPH01185712A (en) Information processor
JPS63244280A (en) Color comparing device
JPH09161488A (en) Address converter