JP2976418B2 - Pattern matching processing device - Google Patents
Pattern matching processing deviceInfo
- Publication number
- JP2976418B2 JP2976418B2 JP4308175A JP30817592A JP2976418B2 JP 2976418 B2 JP2976418 B2 JP 2976418B2 JP 4308175 A JP4308175 A JP 4308175A JP 30817592 A JP30817592 A JP 30817592A JP 2976418 B2 JP2976418 B2 JP 2976418B2
- Authority
- JP
- Japan
- Prior art keywords
- pattern matching
- ram
- memory cell
- cell array
- port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 230000006870 function Effects 0.000 claims description 4
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 101100325756 Arabidopsis thaliana BAM5 gene Proteins 0.000 description 1
- 101150046378 RAM1 gene Proteins 0.000 description 1
- 101100476489 Rattus norvegicus Slc20a2 gene Proteins 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Image Input (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明はパターンマッチング処理
装置に関し、特にパターンマッチング演算機能を有する
V−RAM(ビデオRAM)装置を用いたパターンマッ
チング処理システムに関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern matching process.
The device has a pattern matching calculation function
The present invention relates to a pattern matching processing system using a V-RAM (video RAM) device .
【0002】[0002]
【従来の技術】二つのデータのターンマッチング処理を
行う場合、1回のパターンマッチング可能なデー処理量
は高々32ビット程度であり、この処理をパーソナルコ
ンピータ等のCPUによるソフトウェアにより行うにし
ても、またハードウェア的に行うにしても、やはり処理
ビット数は32ビット程度の単位で行われる。2. Description of the Related Art When performing turn matching processing of two data, the amount of data processing that can be performed in one pattern matching is at most about 32 bits. Even if this processing is performed by software by a CPU such as a personal computer, Even if it is performed by hardware, the number of processing bits is also performed in units of about 32 bits.
【0003】[0003]
【発明が解決しようとする課題】この様に、従来のパタ
ーンマッチング処理システムでは、一度に処理できるビ
ット量が高々32ビット程度であるために、多量のデー
タのパターンマッチング処理を行うには、極めて多くの
時間を必要とするという欠点がある。また処理ビット数
を増大すると、回路規模がそれに比例して増大し、ハー
ドウェア的に得策とはならず非実用的であるという欠点
がある。As described above, in the conventional pattern matching processing system, since the amount of bits that can be processed at a time is at most about 32 bits, it is extremely difficult to perform pattern matching processing on a large amount of data. It has the disadvantage of requiring a lot of time. Further, when the number of processing bits is increased, the circuit scale is increased in proportion to the number of bits, which is not practical in hardware and has a disadvantage that it is impractical.
【0004】[0004]
【0005】本発明の目的は、多量のデータの演算を高
速に内部で処理できるV−RAM装置を使用してパター
ンマッチング処理を一度に多量にかつ高速に行い得るパ
ターンマッチング処理装置を提供することである。SUMMARY OF THE INVENTION An object of the present invention is to provide a pattern matching processing apparatus which can perform a large amount of pattern matching processing at once at a high speed by using a V-RAM device which can internally process a large amount of data at high speed. It is.
【0006】[0006]
【0007】本発明によるパターンマッチング処理装置
は、メモリセルアレイと、前記メモリセルアレイのデー
タの入出力を行うためのレジスタからなる複数個のポー
ト部と、前記ポート部をポート選択指令に応じて択一的
に選択するセレクタと、パターンマッチング演算機能を
有する演算回路と、前記メモリセルアレイ,前記ポート
部,前記演算回路の相互間のデータの授受を外部入出力
選択指令に応じて制御するトランスファゲートとを有
し、前記メモリセルアレイからの第1及び第2の読出し
データを夫々別々のポート部に格納し、このポート部に
格納された第1及び第2の読出しデータを前記演算回路
へ入力してパターンマッチング演算を行い、このパター
ンマッチング演算結果データを前記ポート部1つを介し
て外部へ導出するように構成したV−RAM装置と、前
記パターンマッチング結果データのマッチング状態を計
数するカウンタ手段と、前記V−RAM装置の演算動作
を制御しつつ前記カウンタ手段によるマッチング状態を
前記V−RAM装置のメモリセルアレイの所定アドレス
へ格納するよう制御する制御手段と、を含むことを特徴
とする。A pattern matching processing device according to the present invention provides a memory cell array, a plurality of ports including registers for inputting and outputting data from and to the memory cell array, and selecting one of the ports in response to a port selection command. And a transfer gate that controls data transfer between the memory cell array, the port section, and the arithmetic circuit in accordance with an external input / output selection command. And stores first and second read data from the memory cell array in separate port portions, respectively, and inputs the first and second read data stored in the port portions to the arithmetic circuit, A matching operation is performed, and the pattern matching operation result data is derived to the outside through one port unit. A V-RAM device, counter means for counting the matching state of the pattern matching result data, and a memory of the V-RAM apparatus for controlling the arithmetic operation of the V-RAM apparatus to store the matching state by the counter means. And control means for controlling to store the data at a predetermined address of the cell array.
【0008】[0008]
【実施例】以下、本発明の実施例を図面を用いて説明す
る。Embodiments of the present invention will be described below with reference to the drawings.
【0009】図1は本発明の実施例によるV−RAM装
置のブロック図である。メモリセルアレイ1はV−RA
M装置の基本メモリであり、本例では、4096×40
96ビットのRAMを用いるものとする。このRAM1
のアドレス指定はローデコーダ2及びカラムデコーダ3
により行われるようになっている。FIG. 1 is a block diagram of a V-RAM device according to an embodiment of the present invention. The memory cell array 1 has a V-RA
This is the basic memory of the M device. In this example, it is 4096 × 40
It is assumed that a 96-bit RAM is used. This RAM1
Is specified by the row decoder 2 and the column decoder 3
Is to be performed.
【0010】このV−RAM装置には、RAM1の他に
演算回路4が設けられており、4096ビットの並列演
算が高速に行われ得るものである。この演算回路4の演
算機能は図2に示すものがあり、図2において、S1,
S2は演算すべき各入力ビットの組を示し、外部の4ビ
ット(0〜3)の演算セレクト信号に応じて16項目
(No.0〜No.15)のデスティネーション論理出
力を高速に生成する。その他に、ビットシフト機能を有
しており、シフト量及びシフト方向が指定可能である。This V-RAM device is provided with an arithmetic circuit 4 in addition to the RAM 1, so that a 4096-bit parallel operation can be performed at high speed. The arithmetic function of the arithmetic circuit 4 is as shown in FIG. 2, and in FIG.
S2 indicates a set of each input bit to be operated, and generates a destination logic output of 16 items (No. 0 to No. 15) at high speed in accordance with an external 4-bit (0 to 3) operation select signal. . In addition, a bit shift function is provided, and a shift amount and a shift direction can be specified.
【0011】更に、RAM1のための入出力ポート6A
〜6Dの4個のポート部が設けられており、これ等ポー
ト部6A〜6Dは4096ビットの幅を有するシリアル
レジスタ構成となっている。Further, an input / output port 6A for the RAM 1
6D are provided, and these ports 6A to 6D have a serial register configuration having a width of 4096 bits.
【0012】これ等RAM1,演算回路4,ポート部6
A〜6Dの間にはトランスファゲート5が設けられてお
り、このトランスファゲート5によりRAM1,演算回
路4,ポート部6A〜6Dの間の入出力関係が選択制御
される。RAM 1, arithmetic circuit 4, port 6
A transfer gate 5 is provided between A to 6D, and the transfer gate 5 selectively controls an input / output relationship between the RAM 1, the arithmetic circuit 4, and the port units 6A to 6D.
【0013】4個のポート部6A〜6Dの一つを選択す
るために、外部からポートセレクト信号が供給されてお
り、このポートセレクト信号に応じてトランスファゲー
ト5との接続関係が択一的に決定され、またこれ等ポー
ト部6A〜6Dのいずれの出力を演算回路4への入力と
するかが、ポートセレクト信号に応じて動作するセレク
タ7にて決定される。In order to select one of the four port sections 6A to 6D, a port select signal is supplied from the outside, and the connection with the transfer gate 5 is alternatively selected according to the port select signal. The selector 7 that operates according to the port select signal determines which output of the port sections 6A to 6D is to be input to the arithmetic circuit 4.
【0014】かかる構成のV−RAM装置を用いたパタ
ーンマッチング処理システムの例を図3のブロック図を
参照しつつ説明する。V−RAM10が図1に示したV
−RAM装置であり、CPU11はパターンマッチング
処理全体の制御を行うものであり、このCPU11の制
御下において、パターンマッチングコントローラ13が
実際にV−RAM10の動作をコントロールする。An example of a pattern matching processing system using such a V-RAM device will be described with reference to the block diagram of FIG. The V-RAM 10 stores the V shown in FIG.
A RAM device, and the CPU 11 controls the entire pattern matching process. Under the control of the CPU 11, the pattern matching controller 13 actually controls the operation of the V-RAM 10.
【0015】直並列変換回路12はクロックに応答して
V−RAM10のポート6(図1のポート部6A〜6D
の1つ)の出力を直並列変換して、カウンタ14へ供給
する。このカウンタ14は入力データのビット“1”の
合計をカウントするものであり、このカウント結果がパ
ターンマッチングの整合の度合いを示すものとなり、デ
ータバス15を介してこのカウント結果(マッチング結
果)がV−RAM10内の所定領域へ格納される。尚、
16はアドレスバスである。The serial / parallel conversion circuit 12 responds to the clock by using the port 6 of the V-RAM 10 (ports 6A to 6D shown in FIG. 1).
) Is serial-to-parallel converted and supplied to the counter 14. The counter 14 counts the total number of bits “1” of the input data. The count result indicates the degree of matching of the pattern matching. The count result (matching result) via the data bus 15 is V. -Stored in a predetermined area in the RAM 10. still,
Reference numeral 16 denotes an address bus.
【0016】図4はV−RAM10内のメモリマップの
例を示しており、パターンマッチングすべき入力デー
タ,辞書データ(#1〜#n)及びマッチング結果(#
1〜#n)が夫々格納され、若しくは格納可能となって
いる。FIG. 4 shows an example of a memory map in the V-RAM 10. Input data to be subjected to pattern matching, dictionary data (# 1 to #n), and a matching result (#
1 to #n) are respectively stored or can be stored.
【0017】パターンマッチング処理としては、先ず入
力データが読出されてV−RAM10内のポートの1つ
であるポート部6Aへ転送され保持される。次に、パタ
ーンマッチングコントローラ13に対して、V−RAM
10内の辞書デー#1〜#nのマッチングを行うよう指
令が出されると、マッチングコントローラ13はV−R
AM10内の辞書データ#1をポートの1つであるポー
ト部6Bへ転送する。In the pattern matching process, first, input data is read out, transferred to a port section 6A which is one of ports in the V-RAM 10, and held. Next, for the pattern matching controller 13, the V-RAM
When a command is issued to perform matching of dictionary data # 1 to #n in the matching controller 13, the matching controller 13
The dictionary data # 1 in the AM 10 is transferred to the port 6B, which is one of the ports.
【0018】演算回路4はポート部6Aと6Bとのデー
タを入力S1,S2としてパターンマッチング演算を行
う。このパターンマッチング演算の種類はパターンマッ
チングコントローラ13の指示により決定される。この
とき、演算回路4は4096ビットの演算を一度に実施
することができ、高速処理される。The arithmetic circuit 4 performs a pattern matching operation using the data of the ports 6A and 6B as inputs S1 and S2. The type of the pattern matching calculation is determined by an instruction from the pattern matching controller 13. At this time, the arithmetic circuit 4 can execute the operation of 4096 bits at a time, and the processing is performed at high speed.
【0019】パターンマッチング後は、そのマッチング
結果データがポート部6Aを介して直並列変換部12へ
入力され、クロックに同期しつつ直列データとしてカウ
ンタ14へ供給されることになる。このカウンタ14は
パターンマッチングの度合を計数するものであり、ビッ
ト“1”の数をカウントし、その結果がV−RAM10
内のマッチング結果#1へ格納される。After the pattern matching, the matching result data is input to the serial / parallel conversion unit 12 via the port unit 6A, and is supplied to the counter 14 as serial data in synchronization with the clock. The counter 14 counts the degree of pattern matching, counts the number of bits “1”, and outputs the result to the V-RAM 10.
Is stored in the matching result # 1.
【0020】以上の動作が順次辞書データ#2〜#nに
ついても行われ、全ての処理が終了した時点で、V−R
AM10内に格納されたマッチング結果#1〜#nをソ
ートすれば、辞書#1〜#nのパターンマッチング処理
が全て終了することになる。The above operation is sequentially performed on the dictionary data # 2 to #n, and when all the processes are completed, the V-R
If the matching results # 1 to #n stored in the AM 10 are sorted, all the pattern matching processes of the dictionaries # 1 to #n are completed.
【0021】尚、上記実施例では、一度にマッチング処
理可能なビット数を4096としているが、これに限定
されるものではない。またポート部の数も2個以上複数
あれば良い。In the above embodiment, the number of bits that can be matched at one time is 4096, but the number is not limited to this. The number of ports may be two or more.
【0022】[0022]
【発明の効果】叙上の如く、本発明によれば、V−RA
M内部に多ビットの演算回路,転送回路(トランスファ
ゲート)及びこの演算結果等を一時格納するための複数
のポート部を設けているので、V−RAM内部において
一度に多ビットの演算を高速に実行できるという効果が
ある。As described above, according to the present invention, V-RA
Since a multi-bit operation circuit, a transfer circuit (transfer gate) and a plurality of ports for temporarily storing the operation results and the like are provided inside M, multi-bit operations can be performed at once in the V-RAM at high speed. The effect is that it can be executed.
【0023】特に、パターンマッチング処理の様に多量
のデータを高速処理する必要があるときに、特に有効と
なり、一つのICに組込まれたV−RAM内部でのみ、
多量のデータが授受されて、IC間の転送が不要とな
り、高速性が著しく向上すると共に、回路規模も縮小す
るという効果がある。This is particularly effective when a large amount of data needs to be processed at high speed as in the case of a pattern matching process, and is effective only in the V-RAM incorporated in one IC.
Since a large amount of data is exchanged, there is no need to transfer data between ICs. This has the effect of significantly improving the speed and reducing the circuit scale.
【図1】本発明の実施例のV−RAM装置のブロック図
である。FIG. 1 is a block diagram of a V-RAM device according to an embodiment of the present invention.
【図2】図1の演算回路の演算の種類を示す図である。FIG. 2 is a diagram showing types of operations of the operation circuit of FIG. 1;
【図3】本発明の実施例のパターンマッチング処理シス
テムを示すブロック図である。FIG. 3 is a block diagram illustrating a pattern matching processing system according to an embodiment of the present invention.
【図4】V−RAM内のメモリマップの例を示す図であ
る。FIG. 4 is a diagram showing an example of a memory map in a V-RAM.
1 メモリセルアレイ(RAM) 2 ローデコーダ 3 カラムデコーダ 4 演算回路 5 トランスファゲート 6A〜6D ポート部 7 セレクタ 10 V−RAM 11 CPU 12 直並列変換回路 13 パターンマッチングコントローラ 14 カウンタ Reference Signs List 1 memory cell array (RAM) 2 row decoder 3 column decoder 4 operation circuit 5 transfer gate 6A to 6D port unit 7 selector 10 V-RAM 11 CPU 12 serial-parallel conversion circuit 13 pattern matching controller 14 counter
Claims (1)
レイのデータの入出力を行うためのレジスタからなる複
数個のポート部と、前記ポート部をポート選択指令に応
じて択一的に選択するセレクタと、パターンマッチング
演算機能を有する演算回路と、前記メモリセルアレイ,
前記ポート部,前記演算回路の相互間のデータの授受を
外部入出力選択指令に応じて制御するトランスファゲー
トとを有し、前記メモリセルアレイからの第1及び第2
の読出しデータを夫々別々のポート部に格納し、このポ
ート部に格納された第1及び第2の読出しデータを前記
演算回路へ入力してパターンマッチング演算を行い、こ
のパターンマッチング演算結果データを前記ポート部の
1つを介して外部へ導出するように構成したV−RAM
装置と、 前記パターンマッチング結果データのマッチング状態を
計数するカウンタ手段と、 前記V−RAM装置の演算動作を制御しつつ前記カウン
タ手段によるマッチング状態を前記V−RAM装置のメ
モリセルアレイの所定アドレスへ格納するよう制御する
制御手段と、 を含むことを特徴とするパターンマッチング処理装置。 1. A memory cell array, comprising : a memory cell array;
Array consisting of registers for inputting and outputting
Several port sections and the port sections respond to a port selection command.
Selector that selects one by one and pattern matching
An arithmetic circuit having an arithmetic function, the memory cell array,
Transfer of data between the port unit and the arithmetic circuit;
Transfer game controlled according to external input / output selection command
And the first and second signals from the memory cell array.
The read data is stored in separate port sections, and
The first and second read data stored in the
Input to the arithmetic circuit to perform the pattern matching operation.
The pattern matching calculation result data of
V-RAM configured to be led out through one
Device and the matching state of the pattern matching result data
Counter means for counting, and counting while controlling arithmetic operation of the V-RAM device.
The matching status of the V-RAM device is
Control to store at a predetermined address in the memory cell array
A pattern matching processing device comprising: a control unit .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4308175A JP2976418B2 (en) | 1992-10-22 | 1992-10-22 | Pattern matching processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4308175A JP2976418B2 (en) | 1992-10-22 | 1992-10-22 | Pattern matching processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH06131448A JPH06131448A (en) | 1994-05-13 |
JP2976418B2 true JP2976418B2 (en) | 1999-11-10 |
Family
ID=17977813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4308175A Expired - Fee Related JP2976418B2 (en) | 1992-10-22 | 1992-10-22 | Pattern matching processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2976418B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7008989B2 (en) | 2000-11-14 | 2006-03-07 | Coltec Industrial Products, Inc. | Abrasion-resistant polytetrafluoroethylene tape |
-
1992
- 1992-10-22 JP JP4308175A patent/JP2976418B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH06131448A (en) | 1994-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR0125623B1 (en) | Data processor and data processing method | |
US4490786A (en) | Vector processing unit | |
JPH05274864A (en) | Semiconductor storage device used exclusively for image | |
JP2976418B2 (en) | Pattern matching processing device | |
US5603046A (en) | Method for complex data movement in a multi-processor data processing system | |
EP0122739A2 (en) | List vector control apparatus | |
JP2002269067A (en) | Matrix arithmetic unit | |
JP2514473B2 (en) | Parallel processor | |
JP2538388B2 (en) | Pattern conversion device | |
JP2512994B2 (en) | Vector register | |
JP3039043B2 (en) | Parallel processor | |
JP3050321B2 (en) | Multi-port memory | |
JP2852050B2 (en) | Image processing device | |
JP2553630B2 (en) | Data processing device | |
JPS59148943A (en) | Memory circuit | |
JPH08212168A (en) | Array processor | |
JPH03196257A (en) | Vector processor | |
JPH064689A (en) | Parallel dsp processor of linear array type | |
JPS63269393A (en) | Semiconductor storage cell with multiple port | |
JPH02204861A (en) | Vector data processor | |
JPH1083381A (en) | Signal processor | |
JPH06103069A (en) | Parallel arithmetic unit | |
JPH06208454A (en) | Bit operation circuit | |
JPH05165875A (en) | Vector arithmetic processor | |
JPH06103780A (en) | Logical sum arithmetic circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080910 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080910 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090910 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090910 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100910 Year of fee payment: 11 |
|
LAPS | Cancellation because of no payment of annual fees |