JPH10143661A - Data processor - Google Patents

Data processor

Info

Publication number
JPH10143661A
JPH10143661A JP8298775A JP29877596A JPH10143661A JP H10143661 A JPH10143661 A JP H10143661A JP 8298775 A JP8298775 A JP 8298775A JP 29877596 A JP29877596 A JP 29877596A JP H10143661 A JPH10143661 A JP H10143661A
Authority
JP
Japan
Prior art keywords
data
pattern
bit
binary
memory
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.)
Pending
Application number
JP8298775A
Other languages
Japanese (ja)
Inventor
Yoshifumi Okamoto
好史 岡本
Shiyunichi Kuroumaru
俊一 九郎丸
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8298775A priority Critical patent/JPH10143661A/en
Publication of JPH10143661A publication Critical patent/JPH10143661A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a data processor capable of accelerating a processing speed for calculating the similarity of binary input data for a binary reference value data pattern. SOLUTION: This data processor for operating pattern matching between an (m) bit binary input data pattern and binary reference data pattern constituted of (m) bits is provided with a data retrieving means 2A which retrieves the bit position of a bit in which the data value of the (m) bit binary input data pattern is one of binaries, data pattern retrieving means 3A which outputs the number of the binary data pattern in which the data value at the same bit position as the output of the data retrieving means 2A is one of the binaries among the binary data patterns to which the first - fifth numbers are assigned based on the output of the data retrieving means 2A, and count means 10 which counts the number of times how many the same number is outputted based on the output of the data pattern retrieving means 3A. The counting of the coincident bits of the data values can be simplified.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタルデータ
処理において、2値基準データパターンに対する2値入
力データの類似度を算出するデータ処理装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing apparatus for calculating the similarity of binary input data to a binary reference data pattern in digital data processing.

【0002】[0002]

【従来の技術】図12に従来のパターンマッチング回路
の構成図を示すものである。図12において、まず、m
ビットの2値入力データパターンが格納されるメモリ
(K行×J列) 1の1行分のデータをシフトレジスタ1
03に入力し、上記メモリ1に対応したmビットの2値
入力データパターンとのマッチング基準となるmビット
の2値基準データパターンが格納されるメモリ(K行×
J列) 102の1行分のデータをシフトレジスタ104
に入力する。各シフトレジスタ103、104にデータ
が入力されるとシフトレジスタ103、104はシフト
動作を開始する。上記シフトレジスタ103の最下位ビ
ット( 以下MSBという) の内容とシフトレジスタ10
4のMSBの内容を入力とするAND回路105は上記
2つのシフトレジスタ103、104のMSBの内容が
ともに”1”であった場合に1を出力し、次段のカウン
タ106のカウント値を歩進する。
2. Description of the Related Art FIG. 12 shows a configuration diagram of a conventional pattern matching circuit. In FIG. 12, first, m
Shift register 1 stores data for one row of memory (K rows × J columns) 1 in which a binary input data pattern of bits is stored
03 is stored in a memory (K rows.times.x) where an m-bit binary reference data pattern serving as a matching reference with the m-bit binary input data pattern corresponding to the memory 1 is stored.
J column) The data for one row of 102 is shifted by the shift register 104
To enter. When data is input to each of the shift registers 103 and 104, the shift registers 103 and 104 start a shift operation. The contents of the least significant bit (hereinafter referred to as MSB) of the shift register 103 and the shift register 10
When the contents of the MSBs of the two shift registers 103 and 104 are both "1", the AND circuit 105 which inputs the contents of the MSB of "4" outputs "1", and counts the value of the counter 106 at the next stage. Proceed.

【0003】シフトレジスタ103、104のMSBの
内容がそれぞれメモリ1、102の最上位ビット(LS
B)のデータになったとき、シフトレジスタ103、1
04には次のデータがそれぞれメモリ1、102から入
力される。メモリ1とメモリ102の対応するすべての
データ間で論理積をとったとき、カウンタ106にはメ
モリ1に格納されているmビットの2値入力データパタ
ーンとメモリ102に格納されているmビットの2値デ
ータパターンとの間で値が1であるパターンマッチング
の結果を計数していることになる。
The contents of the MSBs of the shift registers 103 and 104 are stored in the most significant bits (LS) of the memories 1 and 102, respectively.
When the data of B) is obtained, the shift registers 103, 1
04 receives the following data from the memories 1 and 102, respectively. When the logical product is obtained between all the corresponding data in the memory 1 and the memory 102, the counter 106 stores the m-bit binary input data pattern stored in the memory 1 and the m-bit binary input data pattern stored in the memory 102. This means that the result of pattern matching with a value of 1 between the binary data pattern is counted.

【0004】[0004]

【発明が解決しようとする課題】以上のようにデータサ
イズがmビット(Kビット×Jビット) の2値入力デー
タパターンとデータサイズがmビット(Kビット×Jビ
ット) の2値データパターンとのマッチングスコアを算
出する場合、メモリからの一回のデータ読み出しに対し
J回のシフトレジスタのシフト操作が必要となるのでK
×Jの処理サイクルが必要となる。
As described above, a binary input data pattern having a data size of m bits (K bits.times.J bits) and a binary data pattern having a data size of m bits (K bits.times.J bits) are described. When the matching score of is calculated, one shift operation of the shift register is required for one data read from the memory.
× J processing cycles are required.

【0005】更に、パターンマッチングの2値基準デー
タパターンがL個存在する場合は、さらにL倍の処理サ
イクルが必要となり計算量が多いため演算処理時間が長
くなる等の問題があった。
Further, when there are L binary reference data patterns for pattern matching, there is a problem that an L-times processing cycle is required and the amount of calculation is large, so that the calculation processing time becomes long.

【0006】本発明は上記従来の事情に鑑みて提案され
たものであって、処理速度が効率化したデータ処理装置
を提供することを目的とするものである。
The present invention has been proposed in view of the above-mentioned conventional circumstances, and has as its object to provide a data processing device with an improved processing speed.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明は以下の手段を採用している。すなわち、本
発明は、mビットの2値入力データパターンと各々がm
ビットからなる2値基準データパターンとの間でパター
ンマッチングを行なうデータ処理装置にを前提としてい
る。
In order to achieve the above object, the present invention employs the following means. That is, the present invention provides an m-bit binary input data pattern and m-bit binary input data patterns.
It is assumed that the data processing device performs pattern matching with a binary reference data pattern composed of bits.

【0008】上記データ処理装置において、まず、例え
ば図1に示すように、前記mビットの2値入力データパ
ターンのデータ値が2値の何れか一方の値であるビット
のビット位置を検索するデータ検索手段2Aを備え、こ
れによって、検索対象となる2値データのいずれか一方
のデータ値のビット位置が得られる。
In the above data processing device, first, as shown in FIG. 1, for example, data for retrieving a bit position of a bit in which the data value of the m-bit binary input data pattern is any one of binary values A search unit 2A is provided, whereby the bit position of any one of the binary data to be searched can be obtained.

【0009】ついで、本発明は、前記データ検索手段2
Aの出力に基づいて、第1〜第nの番号が割り当てられ
た上記2値データパターンのうち前記データ検索手段2
Aの出力と同じビット位置のデータ値が上記2値の何れ
か一方の値である2値データパターンの番号を出力する
データパターン検索手段3Aをそなえている。これによ
って、対象となるビット位置が対象となるデータ値であ
るパターンのパターン番号が得られることになる。
Next, the present invention relates to the data search means 2.
A of the binary data patterns assigned the first to n-th numbers based on the output of
A data pattern search means 3A for outputting the number of a binary data pattern in which the data value at the same bit position as the output of A is any one of the above-mentioned binary values is provided. As a result, the pattern number of the pattern in which the target bit position is the target data value is obtained.

【0010】更に、カウント手段10を備えて、上記の
ようにして得られるパターン番号の中、同じ番号の数が
カウントされる。これによって、対象とするデータ値に
おいて類似度が高いデータパターンが得られることにな
る。
Further, a counting means 10 is provided to count the same number among the pattern numbers obtained as described above. As a result, a data pattern having a high similarity in the target data value can be obtained.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施例について、
図面の基づいて説明する。 (実施例1)図1は本発明の第1の実施例のデータ処理
装置の構成図を示すものであり、その構成を作用ととも
に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described.
Description will be given based on the drawings. (Embodiment 1) FIG. 1 shows a configuration diagram of a data processing apparatus according to a first embodiment of the present invention.

【0012】まず、メモリ1(第1のメモリ)にはmビ
ットの2値入力データパターンが格納されている状態
で、データ検索手段2Aは該メモリ1に格納されたmビ
ットの2値入力データパターンのうちデータ値が1であ
るビットが先頭ビットから何ビット目にあるかを検索し
出力する。データパターン検索手段3Aは、1からnの
番号が割り当てられた2値基準データパターンのうち、
データ検索手段2Aから出力された値と同じビット位置
の値が1であるデータパターンのパターン番号k(k:
1からnまでの整数)を出力する。尚、このデータパタ
ーン検索手段3Aの構成については後に詳しく説明す
る。
First, in a state where an m-bit binary input data pattern is stored in the memory 1 (first memory), the data retrieving means 2A reads the m-bit binary input data stored in the memory 1. It searches and outputs the bit number of the bit whose data value is 1 from the first bit in the pattern. The data pattern search means 3A includes, among binary reference data patterns assigned numbers from 1 to n,
The pattern number k (k: k: k) of the data pattern whose value at the same bit position as the value output from the data search means 2A is 1
(An integer from 1 to n). The configuration of the data pattern search means 3A will be described later in detail.

【0013】上記データパターン検索手段3Aの出力は
カウント手段10に入力され、ここで同じパターン番号
kが計数される。すなわち、カウントイネーブルデコー
ダ4は上記データパターン検索手段3Aの出力を受け
て、次段のカウンタ91 から9n のうち、該データパタ
ーン検索手段3Aの出力と同じ番号kのカウンタ9
k (kをサフィックスとして扱う)にイネーブル信号を
出力し、これにより選択されたカウンタ9k が歩進され
る。上記の作業を繰り返すことでカウンタ91 から9n
には、2値入力データパターンと1からnの番号が割り
当てられた2値基準データパターンとの間でデータ値が
“1”であるビットの一致数の総計が格納される。
The output of the data pattern searching means 3A is input to the counting means 10, where the same pattern number k is counted. In other words, the count enable decoder 4 receives the output of the data pattern searching unit 3A, among 9n from the next stage of the counter 9 1, the same number k and the output of the data pattern searching unit 3A counter 9
An enable signal is output to k (k is treated as a suffix), whereby the selected counter 9 k is incremented. By repeating the above operation, counters 9 1 to 9 n
Stores the total number of matches of bits whose data value is "1" between the binary input data pattern and the binary reference data pattern assigned a number from 1 to n.

【0014】図2に2値基準データパターンが、8ビッ
トすなわちm=8で5種類の場合の構成図を示し、ま
た、図3に2値入力データパターンの具体例を、更に、
図4に5種の2値基準データパターンの具体例を示す。
FIG. 2 shows a configuration diagram in the case where there are five types of binary reference data patterns with 8 bits, that is, m = 8. FIG. 3 shows a specific example of a binary input data pattern.
FIG. 4 shows specific examples of five types of binary reference data patterns.

【0015】以下、図2において、図3に示した2値入
力データパターン及び図4に示した2値データパターン
を用いた場合の動作を説明する。データ検索手段2Aは
先頭ビットから数えてデータ値1があるビット番号、す
なわち、0、4、7を出力する。
Hereinafter, the operation when the binary input data pattern shown in FIG. 3 and the binary data pattern shown in FIG. 4 are used in FIG. 2 will be described. The data search means 2A outputs a bit number having a data value 1 counted from the first bit, that is, 0, 4, and 7.

【0016】次にデータパターン検索手段3Aはデータ
検索手段2Aの出力(上記0、4、7)と同じビットが
“1”である2値基準データパターンのパターン番号k
を出力する。すなわち、末尾に示した表1に示すよう
に、0ビット目が1であるデータパターンはk=1,
3,4、4ビット目が1であるデータパターンはk=
3,4、7ビット目が1であるデータパターンはk=
2,4であるので1,3,4,3,4,2,4がデータ
パターン検索手段3Aより順に出力される。
Next, the data pattern search means 3A outputs the pattern number k of the binary reference data pattern in which the same bit as the output (0, 4, 7) of the data search means 2A is "1".
Is output. That is, as shown in Table 1 at the end, the data pattern in which the 0th bit is 1 is k = 1,
The data pattern in which the third, fourth and fourth bits are 1 is k =
The data pattern in which the third, fourth and seventh bits are 1 is k =
Since it is 2,4, 1,3,4,3,4,2,4 are sequentially output from the data pattern search means 3A.

【0017】カウントイネーブルデコーダ4はデータパ
ターン検索手段3Aの出力と同じ番号kのカウンタ9k
にイネーブル信号を出力する。従って、カウンタ91
は1回、カウンタ92 には1回、カウンタ93 には2
回、カウンタ94 には3回、カウンタ95 には0回のイ
ネーブル信号が入力されるので、カウンタの最終値はカ
ウンタ91 が1、カウンタ92 が1、カウンタ93
2、カウンタ94 が3、カウンタ95 が0となる。従っ
て、この方法に従う限り番号3の基準パターンが当該入
力パターンと一致する部分が多いことが理解できる。
The count enable decoder 4 has a counter 9 k of the same number k as the output of the data pattern search means 3A.
Output an enable signal. Therefore, once the counter 9 1, the counter 9 2 once in, the counter 9 3 2
Times, three times in the counter 9 4, since the counter 9 5 0 times the enable signal is input, the final value of the counter the counter 9 1 1, the counter 9 2 1, counter 9 3 2, counter 9 4 3, the counter 9 5 0. Therefore, as long as this method is followed, it can be understood that there are many portions where the reference pattern of No. 3 matches the input pattern.

【0018】このように2値基準データパターンの何ビ
ット目がデータ値1であるかという既知情報を用いるこ
とで計算量を削減できる。 (実施例2)図5は第2の実施形のデータ処理装置の構
成図を示すものである。
As described above, the amount of calculation can be reduced by using the known information indicating which bit of the binary reference data pattern has the data value 1. (Embodiment 2) FIG. 5 shows a configuration diagram of a data processing apparatus according to a second embodiment.

【0019】この実施例では、カウント手段10を以下
の構成にしてる。尚、カウント手段10に到る迄の構成
は図1(図2)と同じであるので説明を簡略する。上記
第1の実施と同様、メモリ1には格納されたmビットの
2値入力データパターンが格納されており、データ検索
手段2Aはメモリ1に格納されたmビットの2値入力デ
ータパターンのうちデータ値が1であるビットが先頭ビ
ットから数えて何ビット目にあるかを検索し出力する。
データパターン検索手段3Aは1からnの番号が割り当
てられた2値基準データパターンのうち、データ検索手
段2Aから出力された値と同じビット位置の値が1であ
るデータパターンのパターン番号kを出力する。
In this embodiment, the counting means 10 has the following configuration. Since the configuration up to the counting means 10 is the same as that of FIG. 1 (FIG. 2), the description will be simplified. As in the first embodiment, the memory 1 stores the stored m-bit binary input data pattern, and the data search means 2A outputs the m-bit binary input data pattern stored in the memory 1. The bit having the data value of 1 is searched and output at the bit number counted from the first bit.
The data pattern search means 3A outputs a pattern number k of a data pattern whose value at the same bit position as the value output from the data search means 2A is 1 among binary reference data patterns to which numbers from 1 to n are assigned. I do.

【0020】カウント手段10を構成するメモリ5(第
2のメモリ)はmビットの2値入力データパターンと1
からnの番号が割り当てられた2値データパターンとの
間でデータ値が1であるビットの一致数を格納するよう
になっており、その初期値は0である。ここで、上記デ
ータパターン検索手段3Aの出力を該メモリ5のアドレ
ス値として入力とすると、そのアドレス値は2値基準デ
ータパターンのパターン番号kと一致することになる。
The memory 5 (second memory) constituting the counting means 10 has an m-bit binary input data pattern and
The number of coincidences of the bit whose data value is 1 is stored between the binary data pattern to which the number from n is assigned and the initial value is 0. Here, if the output of the data pattern search means 3A is input as an address value of the memory 5, the address value matches the pattern number k of the binary reference data pattern.

【0021】このようにデータパターン検索手段3Aの
出力によりメモリ5のアドレスが指定されると、当該ア
ドレスの内容はインクリメント手段110でインクリメ
ントされて、このインクリメントされた値が再度同じア
ドレスに書き込まれる。すなわち、上記メモリ5の特定
のアドレスより読み出された値は第2のレジスタ6に入
力され、インクリメンタ8によって該第2のレジスタ6
の出力がインクリメントされて第1のレジスタ7に入力
され、更に、上記のように指定されているメモリ5のア
ドレスに第1のレジスタ7の内容が書き込まれる。これ
により、2値入力データパターンと特定の2値基準デー
タパターンとの間でデータ値が“1”である場合のビッ
トの一致数が更新されることになる。
When the address of the memory 5 is designated by the output of the data pattern search means 3A, the contents of the address are incremented by the increment means 110, and the incremented value is written again to the same address. That is, the value read from the specific address of the memory 5 is input to the second register 6 and is incremented by the incrementer 8.
Is incremented and input to the first register 7, and the contents of the first register 7 are written to the address of the memory 5 specified as described above. As a result, the number of bit matches when the data value is "1" between the binary input data pattern and the specific binary reference data pattern is updated.

【0022】図6に上記図5の内容を更に詳しく示した
構成図を示す。上記第1の実施例と同様、2値基準デー
タパターンが5種であり、また、2値入力データパター
ンは図3に示すものとし、5種の2値基準データパター
ンは図4に示したものと同じとする。
FIG. 6 is a block diagram showing the contents of FIG. 5 in more detail. As in the first embodiment, there are five types of binary reference data patterns, the binary input data patterns are those shown in FIG. 3, and the five binary reference data patterns are those shown in FIG. And the same as

【0023】データパターン検索手段3Aの出力がk=
1、3、4、3、4、2、4となる点は上記第1の実施
例と同じであるので説明を省略する。上記データパター
ン検索手段3Aの出力を受けてメモリ5にはまず、アド
レス値1が読み出し手段120を介して読み出しアドレ
スとして入力される。ここでメモリ5の初期値は全アド
レスとも0となっているものとし、上記のようにアドレ
ス値1がメモリ5に入力されると該アドレス1の内容0
がインクリメント手段110を構成する第2のレジスタ
6に読み出され、その値がインクリメンタ8でインクリ
メントされ、レジスタ7に入力される。更にこの値は書
き込み手段130を介して上記メモリ5のアドレス1に
書き込まれるようになっている。
The output of the data pattern search means 3A is k =
The points of 1, 3, 4, 3, 4, 2, and 4 are the same as those in the first embodiment, and the description is omitted. Upon receiving the output of the data pattern search means 3A, the memory 5 first receives an address value 1 as a read address via the read means 120. Here, the initial value of the memory 5 is assumed to be 0 for all addresses, and when the address value 1 is input to the memory 5 as described above, the contents 0 of the address 1
Is read out to the second register 6 constituting the incrementing means 110, and the value is incremented by the incrementer 8 and input to the register 7. Further, this value is written to the address 1 of the memory 5 via the writing means 130.

【0024】このような手順でメモリ5にはアドレス値
3、4、3、4、2、4が順次入力され、指定されたア
ドレス値の内容に対してインクリメンタ8で1をインク
リメントして、元のアドレスに格納する。これによっ
て、各アドレスに格納される最終値は、アドレス値1は
1、アドレス値2は1、アドレス値3は2、アドレス値
4は3、アドレス値5は0となり、8ビットの2値入力
データパターンと5つの基準となる8ビットの2値デー
タパターンとの間のデータ値が1であるビットの一致数
を得ることができる。
In this manner, the address values 3, 4, 3, 4, 2, and 4 are sequentially input to the memory 5, and the content of the designated address value is incremented by 1 by the incrementer 8, and Store to original address. As a result, the final value stored in each address is 1 for address value 1, 1 for address value 2, 2 for address value 3, 3 for address value 4, and 0 for address value 5. The number of matching bits whose data value is 1 between the data pattern and the five reference 8-bit binary data patterns can be obtained.

【0025】(実施例3)上記第1の実施例及び第2の
実施例では、2値入力データパターンの中、データ値が
“1”であるビットを対象にしているが、データ値が
“0”であるビットを対象にしても同様の結果を得るこ
とができる。
(Embodiment 3) In the first and second embodiments, the bit whose data value is "1" is targeted in the binary input data pattern, but the data value is "1". A similar result can be obtained for a bit that is "0".

【0026】以下に、前記図1を用いてデータ値が
“0”を対象とする場合を説明する。データ検索手段2
Bはメモリ1に格納されたmビットの2値入力データパ
ターンのうちデータ値が“0”であるビットが先頭ビッ
トから何ビット目にあるかを検索し出力する。データパ
ターン検索手段3Bは1からnの番号が割り当てられた
2値基準データパターンのうち、データ検索手段2Bか
ら出力された値と同じビット位置の値が“0”である。
The case where the data value is "0" will be described below with reference to FIG. Data search means 2
B retrieves and outputs the bit number of the bit whose data value is “0” from the first bit in the m-bit binary input data pattern stored in the memory 1. The data pattern search means 3B has a value "0" at the same bit position as the value output from the data search means 2B among the binary reference data patterns assigned numbers from 1 to n.

【0027】カウント手段10を構成するカウントイネ
ーブルデコーダ4はカウンタ9k (91 から9n )のう
ちデータパターン検索手段3Bの出力と同じ番号kのカ
ウンタ9k にイネーブル信号を出力し、これにより選択
されたカウンタが歩進される。このような手順を繰り返
すことでカウンタ91 から9n には、2値入力データパ
ターンと1からnの番号が割り当てられた2値基準デー
タパターンとの間でデータ値が“0”であるビットの一
致数の総計が格納される。
The count enable decoder 4 constituting the counting means 10 outputs an enable signal to the counter 9 k of the same number k and the output of the data pattern searching unit 3B of (from 9 1 9 n) counter 9 k, thereby The selected counter is incremented. By repeating such a procedure, the counters 9 1 to 9 n have bits whose data value is “0” between the binary input data pattern and the binary reference data pattern assigned the numbers 1 to n. The total number of matches is stored.

【0028】2値データパターンが5種であって、2値
入力データパターンが図3に示すパターンであり、5種
の2値基準データパターンは図4に示すパターンである
場合を例に図2に基づいて更に説明する。
FIG. 2 shows an example in which there are five types of binary data patterns, the binary input data pattern is the pattern shown in FIG. 3, and the five types of binary reference data patterns are the patterns shown in FIG. This will be further described based on

【0029】このとき2値入力データパターンが100
01001であるので、上記データ検索手段2Bの出力
は、データ値が“0”であるビット番号すなわち1、
2、3、5、6となる。
At this time, the binary input data pattern is 100
01001, the output of the data search means 2B outputs the bit number whose data value is “0”, that is, 1;
2, 3, 5, and 6.

【0030】次にデータパターン検索手段3Bはデータ
検索手段2Aの出力と同じビットが“0”である2値デ
ータパターンのパターン番号kを検索して出力する。す
なわち、末尾の表2によると、1ビット目が“0”であ
るデータパターン番号は3,4,5,2ビット目が
“0”であるデータパターン番号は2,3,4,5,3
ビット目が“0”であるデータパターン番号は4,5,
5ビット目が“0”であるデータパターン番号は3,
4,5,6ビット目が“0”であるデータパターン番号
は2,3,4,5であるので、結局データパターン検索
手段2Bより3,4,5,2,3,4,5,4,5,
3,4,5,2,3,4,5が順に出力される。
Next, the data pattern search means 3B searches for and outputs the pattern number k of the binary data pattern in which the same bit as the output of the data search means 2A is "0". That is, according to Table 2 at the end, the data pattern numbers whose first bit is “0” are 3, 4, 5, and 5, and the data pattern numbers whose second bit is “0” are 2, 3, 4, 5, 3
The data pattern number whose bit is “0” is 4, 5,
The data pattern number whose fifth bit is “0” is 3,
Since the data pattern numbers in which the fourth, fifth and sixth bits are "0" are 2, 3, 4, and 5, the data pattern search means 2B eventually outputs 3, 4, 5, 2, 3, 4, 5, 4 , 5
3, 4, 5, 2, 3, 4, and 5 are sequentially output.

【0031】カウントイネーブルデコーダ4はデータパ
ターン検索手段3Bの出力と同じ番号のカウンタにイネ
ーブル信号を出力する。従って、カウンタ91 には0
回、カウンタ92 には2回、カウンタ93 には4回、カ
ウンタ94 には5回、カウンタ95 には5回のイネーブ
ル信号が入力され、各カウンタ9k の最終値はカウンタ
9が0、カウンタ92 が2、カウンタ93 が4、カウン
タ94 が5、カウンタ9 1 が5となる。これによって、
2値データの中“0”を判定基準にした場合はデータパ
ターンの4番目または5番目が入力データとの類似度が
高いことになる。
The count enable decoder 4 has a data path.
The rice in the counter of the same number as the output of the turn search means 3B
Output the cable signal. Therefore, the counter 910
Times, counter 9TwoTwice, counter 9ThreeFour times
Unta 9Four5 times, counter 9FiveHas five enablements
Signal is input to each counter 9kThe final value of is a counter
9 is 0, counter 9TwoIs 2, counter 9ThreeIs 4, Coun
TA9FourIs 5, counter 9 1Becomes 5. by this,
When “0” is used as a criterion in binary data, the data
The fourth or fifth of the turn has similarity with the input data
Will be expensive.

【0032】このように2値基準データパターンの何ビ
ット目がデータ値“0”であるかという既知情報を用い
ることで計算量を削減できる。尚、この例を図5、図6
に示す第2の実施例に適用することももちろん可能であ
る。
As described above, the amount of calculation can be reduced by using the known information indicating which bit of the binary reference data pattern has the data value "0". This example is shown in FIGS.
Of course, it is also possible to apply to the second embodiment shown in FIG.

【0033】(実施例4)さらに上記第1、第2、第3
の実施例において、上記“1”を判定基準の対象とする
場合と“0”を判定基準の対象とする場合を併用した演
算をさせるようにしてもよい。
(Embodiment 4) Further, the first, second, and third embodiments
In the embodiment, the calculation may be performed using both the case where “1” is the target of the determination criterion and the case where “0” is the target of the determination criterion.

【0034】以下、前記図1を用いてデータ値の“1”
と“0”の両方を判定対象にする場合を説明する。デー
タ検索手段2Cはメモリ1に格納されたmビットの2値
入力データパターンの各データ値(“1”または
“0”)が先頭ビットから数えて何ビット目にあるかを
検索し出力する。
Hereinafter, the data value "1" will be described with reference to FIG.
A case will be described where both "0" and "0" are to be determined. The data search means 2C searches and outputs the bit number of each data value ("1" or "0") of the m-bit binary input data pattern stored in the memory 1 counted from the first bit.

【0035】データパターン検索手段3Cの機能は上記
第1から第3の実施例と全く同じであり、1からnの番
号が割り当てられた2値基準データパターンのうち、デ
ータ検索手段2Cから出力された値と同じビット位置の
値が等しいデータパターンのパターン番号kを出力す
る。
The function of the data pattern search means 3C is exactly the same as that of the first to third embodiments, and among the binary reference data patterns assigned numbers 1 to n, the data output from the data search means 2C. The pattern number k of the data pattern having the same bit position value as the calculated value is output.

【0036】カウントイネーブルデコーダ4はカウンタ
k (91 から9n )のうちデータパターン検索手段3
Cの出力と同じ番号のカウンタ9k にイネーブル信号を
出力し、これにより選択されたカウンタ9k が歩進さ
れ、この手順を繰り返すことでカウンタ9k には、2値
入力データパターンと2値基準データパターンとの間で
同じビット位置のデータ値が一致する数の総計が格納さ
れる。図7は本実施例におけるデータ検索手段2Cとデ
ータパターン検索手段3Cの更に詳しいブロック図を示
すものである。メモリ1よりの2値入力データの読み出
しに同期したクロック信号がデータ検索手段2Cを構成
するカウンタ201で計数され、該カウンタ201の出
力はアンドゲート202とアンドゲート203に入力さ
れる。アンドゲート202には更にメモリ1より読み出
された2値入力データが入力され、またアンドゲート2
03にはメモリ1より読み出された2値入力データが反
転されて入力される。これによって、アンドゲート20
2よりはデータ値が“1”である場合のビット位置が、
また、アンドゲート203よりはデータ値が“0”であ
る場合のビット位置が出力されることになる。
The count enable decoder 4 counter 9 k data pattern searching unit 3 of (9 1 from 9 n)
An enable signal is output to the counter 9 k having the same number as that of the output of C, whereby the selected counter 9 k is incremented. By repeating this procedure, the counter 9 k has a binary input data pattern and a binary The total number of data values at the same bit position that match the reference data pattern is stored. FIG. 7 shows a more detailed block diagram of the data search means 2C and the data pattern search means 3C in this embodiment. A clock signal synchronized with the reading of the binary input data from the memory 1 is counted by a counter 201 constituting the data search means 2C, and the output of the counter 201 is input to an AND gate 202 and an AND gate 203. The binary input data read from the memory 1 is further input to the AND gate 202.
03 is input with inverted binary input data read from the memory 1. Thereby, the AND gate 20
The bit position when the data value is "1" is
The bit position when the data value is "0" is output from the AND gate 203.

【0037】データパターン検索手段3Cにはデータ値
“1”に対応するビット位置に基づいてパターン番号を
検索する“1”検索部301とデータ値“0”に対応す
るビット位置に基づいてパターン番号を検索する“0”
検索部302が備えられ、上記アンドゲート202の出
力が上記“1”検索部301にアンドゲート203の出
力が上記“0”検索部302に入力される。これによっ
て各検索部301、302が対応するパターン番号kを
順次出力し、カウント手段10に入力する。このとき、
検索部301、302よりの出力が時間的に重ならない
ように処理されることはもちろんである。
The data pattern search means 3C has a "1" search unit 301 for searching for a pattern number based on the bit position corresponding to the data value "1" and a pattern number based on the bit position corresponding to the data value "0". Search for “0”
A search unit 302 is provided, and the output of the AND gate 202 is input to the “1” search unit 301 and the output of the AND gate 203 is input to the “0” search unit 302. As a result, each of the search units 301 and 302 sequentially outputs the corresponding pattern number k and inputs it to the counting unit 10. At this time,
It goes without saying that the outputs from the search units 301 and 302 are processed so as not to overlap in time.

【0038】ここで上記第1の実施例と同様、2値デー
タパターンが図4に示す5種であって、2値入力データ
パターンが図3に示すパターンであるとする。このとき
データ検索手段2Cは2値入力データパターンが100
01001であるので、データ値が“1”であるビット
位置として0、4、7がアンドゲート202より出力さ
れ、上記“1”検索部301に入力され、またデータ値
が“0”であるビット位置として1、2、3、5、6
が、アンドゲート203より出力され“0”上記検索部
302に入力されることになる。
Here, as in the first embodiment, it is assumed that the binary data patterns are the five types shown in FIG. 4 and the binary input data patterns are the patterns shown in FIG. At this time, the data search means 2C determines that the binary input data pattern is 100
Since the bit position is 01001, 0, 4, and 7 are output from the AND gate 202 as bit positions where the data value is "1", input to the "1" search unit 301, and the bit position whose data value is "0". Positions 1, 2, 3, 5, 6
Is output from the AND gate 203 and "0" is input to the search unit 302.

【0039】これによって、データパターン検索手段3
Cはデータ検索手段2Cの出力と同じビット位置のデー
タ値が“1”または“0”である2値データパターンの
パターン番号kを出力する。
Thus, the data pattern search means 3
C outputs a pattern number k of a binary data pattern whose data value at the same bit position as the output of the data search means 2C is "1" or "0".

【0040】すなわち、上記表1、表2によると、0ビ
ット目が“1”であるデータパターンは1、3、4、1
ビット目が“0”であるデータパターンは3、4、5、
2ビット目が“0”であるデータパターンは2、3、
4、5、3ビット目が“0”であるデータパターンは
4、5、4ビット目が“1”であるデータパターンは
3、4、5ビット目が“0”であるデータパターンは
3、4、5、6ビット目が“0”であるデータパターン
は2、3、4、5、7ビット目が“1”であるデータパ
ターンは2、4であるのでk=1、3、4、3、4、
5、2、3、4、5、4、5、3、4、3、4、5、
2、3、4、5、2、4が順にカウント手段10に入力
されることになる。
That is, according to Tables 1 and 2, the data pattern in which the 0th bit is “1” is 1, 3, 4, 1
The data pattern whose bit is “0” is 3, 4, 5,
Data patterns in which the second bit is “0” are 2, 3,
The data pattern in which the fourth, fifth and third bits are “0” is the data pattern in which the fourth, fifth and fourth bits are “1”, the data pattern in which the fourth, fifth and fifth bits are “0” is three, The data pattern in which the fourth, fifth, and sixth bits are “0” is 2, 3, 4, 5, and the data pattern in which the seventh bit is “1” is 2, 4, so that k = 1, 3, 4,. 3, 4,
5, 2, 3, 4, 5, 4, 5, 3, 4, 3, 4, 5,
2, 3, 4, 5, 2, and 4 are sequentially input to the counting means 10.

【0041】カウント手段10のカウントイネーブルデ
コーダ4はデータパターン検索手段3Cの出力と同じ番
号のカウンタ9k にイネーブル信号を出力する。従っ
て、カウンタ1には1回、カウンタ2には3回、カウン
タ3には6回、カウンタ4には8回、カウンタ5には5
回イネーブル信号が入力されるので、カウンタの最終値
は、カウンタ91 が1、カウンタ92 が3、カウンタ9
3 が6、カウンタ94 が8、カウンタ95 が5となる。
従って、データ値が“0”“1”の両方を演算の対象と
すると、データパターン4が最も類似度の高いパターン
であることが理解できる。
The count enable decoder 4 of the counting means 10 outputs an enable signal to the counter 9 k with the same number as the output of the data pattern searching unit 3C. Therefore, once for counter 1, three times for counter 2, six times for counter 3, eight times for counter 4, and five times for counter 5.
Since times enable signal is input, the final value of the counter, the counter 9 1 1, the counter 9 2 3, counter 9
3 6, the counter 9 4 8, counter 9 5 becomes 5.
Therefore, when both the data values “0” and “1” are to be calculated, it can be understood that the data pattern 4 is the pattern having the highest similarity.

【0042】尚、この実施例を図5、図6に示す第2の
実施例に適用できることももちろん可能である。また図
7においてアンドゲート201のみの出力を用いた場合
には上記実施例1、2に記述したようにデータ値“1”
のみを対象とした装置となり、また、アンドゲート20
2のみの出力を用いた場合には上記実施例3に記述した
ようにデータ値“0”のみを対象とした装置となる。
It is of course possible to apply this embodiment to the second embodiment shown in FIGS. When the output of only the AND gate 201 is used in FIG. 7, the data value "1" is used as described in the first and second embodiments.
Only the target device, and AND gate 20
When only two outputs are used, as described in the third embodiment, the device is designed for only the data value "0".

【0043】(実施例5)図8は、上記図1、図2、あ
るいは図5、図6に使用するデータパターン検索手段3
A、3B、3Cの構成を示すブロック図であり、図9は
該データパターン検索手段3A,3B,3Cに用いるメ
モリ31(第3のメモリ)、メモリ32(第4のメモ
リ)のデータ格納状態を示すものである。
(Embodiment 5) FIG. 8 shows the data pattern search means 3 used in FIGS. 1 and 2 or FIGS. 5 and 6.
FIG. 9 is a block diagram showing the configuration of A, 3B and 3C. FIG. 9 shows the data storage states of a memory 31 (third memory) and a memory 32 (fourth memory) used for the data pattern search means 3A, 3B and 3C. It shows.

【0044】第4のメモリであるメモリ32は図9に示
すように領域化されており、領域
The memory 32, which is the fourth memory, is divided into regions as shown in FIG.

〔0〕には先頭ビット
から数えて0ビット目のデータ値が“1”である2値デ
ータパターンのパターン番号k、領域〔1〕には先頭ビ
ットから数えて1ビット目のデータ値が“1”である2
値データパターンのパターン番号kが格納され、領域
〔m〕には先頭ビットから数えてmビット目のデータ値
が“1”である2値データパターンのパターン番号が格
納され、各領域
In [0], the pattern number k of the binary data pattern in which the data value of the 0th bit counted from the first bit is “1”, and in the area [1], the data value of the first bit counted from the first bit is “ 2 which is 1 "
The pattern number k of the value data pattern is stored, and the pattern number of the binary data pattern whose data value at the m-th bit counted from the first bit is “1” is stored in the area [m].

〔0〕〜〔m〕に対応して、その先頭の
アドレスが0〜Nに対応するようになっている。又、各
領域の末尾アドレスには領域の区切りを示すエンドデー
タDeが格納されており、また、第3のメモリであるメ
モリ31にはアドレス0〜mに対応して図10に示すよ
うにメモリ32の各領域の最初のアドレスが格納されて
いる。データ検索手段2Aが出力するビット位置がメモ
リ31のアドレスとなり、メモリ32の特定の領域の先
頭のアドレスを該メモリ31より読み出し、該特定の領
域の他のアドレスは歩進手段30によりエンドデータD
eの格納されたアドレス迄順次歩進されながら形成され
る。
The leading addresses correspond to 0 to N corresponding to [0] to [m]. End data De indicating the end of each area is stored at the end address of each area, and the memory 31 as a third memory corresponds to addresses 0 to m as shown in FIG. The first address of each of the 32 areas is stored. The bit position output from the data search means 2A becomes the address of the memory 31, the head address of the specific area of the memory 32 is read from the memory 31, and the other address of the specific area is changed to the end data D by the stepping means 30.
It is formed while sequentially stepping up to the address where e is stored.

【0045】上記構成において、2値データパターンが
図4に示す5種であり、また、2値入力データパターン
が図3に示すパターンであるとした場合のメモリ31と
メモリ32の状態を図11に示す。
In the above configuration, when the binary data patterns are the five types shown in FIG. 4 and the binary input data patterns are the patterns shown in FIG. Shown in

【0046】以下、上記図3、図4に示した2値入力デ
ータパターンと2値データパターンを用いて、更に具体
的に説明する。データ検索手段2Aは2値入力データパ
ターンのデータ値“1”が先頭ビットから数えて何ビッ
ト目にあるかを出力するので、上記図3に示す入力デー
タ10001001に対して、0、4、7を順に出力す
る。従って、データパターン検索手段3Aにはまず0が
メモリ31アドレスとして入力される。このメモリ31
にはメモリ32の各領域の先頭アドレスが格納されてい
るので、上記アドレスの入力によりメモリ31の0のア
ドレスより選択回路33に0、すなわち0ビット目の値
が“1”である領域
Hereinafter, a more specific description will be given using the binary input data pattern and the binary data pattern shown in FIGS. Since the data search means 2A outputs the number of the data value "1" of the binary input data pattern counting from the first bit, the data search means 2A outputs 0, 4, 7 to the input data 10001001 shown in FIG. Are output in order. Therefore, 0 is first input to the data pattern search means 3A as the memory 31 address. This memory 31
Since the start address of each area of the memory 32 is stored in the area of the memory 32, the input of the above address causes the selection circuit 33 to input a 0 from the address 0 of the memory 31, that is, an area where the value of the 0th bit is “1”.

〔0〕の先頭アドレスを出力する。The head address of [0] is output.

【0047】上記選択回路33は初期状態としてメモリ
31側を選択しており、上記メモリ31よ出力される0
の値を第1のバッファに入力し、この値0がメモリ32
のアドレス値となる。ここで、図11(図10)に示す
ようにメモリ32の領域
The selection circuit 33 selects the memory 31 side as an initial state, and 0 is output from the memory 31.
Is input to the first buffer, and the value 0 is stored in the memory 32.
Address value. Here, as shown in FIG. 11 (FIG. 10), the area of the memory 32 is

〔0〕には先頭ビットから数え
て0ビット目のデータ値が“1”であるデータパターン
のパターン番号kが書き込まれているので、上記アドレ
ス0の入力に対応してデータパターン1に対応する番号
k=1が出力され、第2のバッファ36に記憶され、こ
の内容が次段のカウンタ手段10への出力となる。
In [0], since the pattern number k of the data pattern whose data value of the 0th bit counted from the first bit is “1” is written, it corresponds to the data pattern 1 in response to the input of the address 0. The number k = 1 is output and stored in the second buffer 36, and the content is output to the counter 10 at the next stage.

【0048】上記メモリ32の領域Area of the memory 32

〔0〕のアドレスは
以下のように歩進手段30で、該領域の最終アドレス迄
インクリメントされる。すなわち、上記第2のバッファ
36の出力に対応して、上記選択回路33はインクリメ
ンタ34側を選択することになる。この状態で、上記第
1のバッファ35の出力(上記メモリ32への入力)は
歩進手段30を構成するインクリメンタ34にも入力さ
れ、ここでインクリメントされて再び選択回路33を介
してメモリ32に入力される。これによって、メモリ3
2に入力されるアドレスは1となり、メモリ32のアド
レス1に格納されているデータパターン3に対応するk
=3を第2のバッファ36より出力する。
The address [0] is incremented by the stepping means 30 to the last address of the area as follows. That is, the selection circuit 33 selects the incrementer 34 side in accordance with the output of the second buffer 36. In this state, the output of the first buffer 35 (input to the memory 32) is also input to an incrementer 34 constituting the stepping means 30, where it is incremented and again passed through the memory 32 via the selection circuit 33. Is input to Thereby, the memory 3
2 becomes 1 and k corresponding to the data pattern 3 stored at address 1 of the memory 32
= 3 is output from the second buffer 36.

【0049】このようにして順次0ビット目が“1”で
あるパターン番号すなわちメモリ32の領域
In this manner, the pattern number in which the 0th bit is “1”, that is, the area of the memory 32

〔0〕に格
納されているパターン番号k=1,3,4を順次出力す
る。次いで、メモリ32の領域
The pattern numbers k = 1, 3, and 4 stored in [0] are sequentially output. Next, the area of the memory 32

〔0〕よりエンドマーク
Deが出力されると、選択回路33が再びメモリ31側
を選択した状態となり、該メモリ31のアドレス1より
の次のデータ、すなわち、アドレス4が入力され、これ
に対応して13、すなわち4ビット目が1であるパター
ン番号kが収納されているメモリ32の領域4の先頭ア
ドレスを出力する。これによって、上記領域4よりパタ
ーン番号k=3、4を順次出力することになる。このよ
うにして、順次処理され0、4、7番目に対応するビッ
トが“1”であるパターン番号kが出力され、図1、図
2あるいは図5、図6に示す次段のカウント手段10に
入力されることになる。
When the end mark De is output from [0], the selection circuit 33 again selects the memory 31 side, and the data next to the address 1 of the memory 31, that is, the address 4, is input. Then, the top address of the area 4 of the memory 32 in which the pattern number k whose 13th bit is 1 is stored is output. As a result, the pattern numbers k = 3 and 4 are sequentially output from the area 4. In this way, the pattern number k is sequentially processed and the pattern number k whose bit corresponding to the 0th, 4th, and 7th bits is "1" is output, and the next stage counting means 10 shown in FIG. 1, FIG. 2 or FIG. Will be entered.

【0050】上記の例は判別対象のデータ値が実施例
1、2に示すデータ値が“1”である場合に限定されて
いるが、実施例3に示す判別対象のデータ値が“0”の
場合に対しても適用できることはもちろんである。この
場合メモリ32の各領域
The above example is limited to the case where the data value to be determined is "1" in the first and second embodiments, but the data value to be determined is "0" in the third embodiment. Of course, it can be applied to the case of. In this case, each area of the memory 32

〔0〕〜〔m〕に各ビット位置
0〜mが“0”であるパターン番号が収納され、またメ
モリ31には上記メモリ32の各領域
[0] to [m] store a pattern number in which each bit position 0 to m is "0".

〔0〕〜〔m〕の
先頭アドレスが0〜mのアドレスに対応して格納される
ことになる。
The leading addresses of [0] to [m] are stored corresponding to the addresses of 0 to m.

【0051】更に実施例4に示す判別対象のデータ値が
“1”と“0”である場合にも適用できる。この場合に
は上記データ値“1”に対応するメモリ31、32と歩
進手段30よりなる検索部(例えば図7の301)とデ
ータ値“0”に対応するメモリ31、32と歩進手段3
0よりなる検索部(例えば図7、302)を備えること
になる。
Further, the present invention can be applied to the case where the data values to be determined shown in the fourth embodiment are "1" and "0". In this case, a search unit (eg, 301 in FIG. 7) including the memories 31 and 32 corresponding to the data value “1” and the stepping means 30 and the memories 31 and 32 corresponding to the data value “0” and the stepping means 3
0 (for example, 302 in FIG. 7).

【0052】更に、上記ではmビットの入力データが8
ビットである場合についてのみ説明したが、mビットが
2次元(i×j)であっても、3次元(i×j×k)で
あっても適用できることはもちろんである。
Further, in the above, the input data of m bits is 8 bits.
Although only the case of bits has been described, it is needless to say that the present invention can be applied to a case where m bits are two-dimensional (i × j) or three-dimensional (i × j × k).

【0053】[0053]

【表1】 [Table 1]

【0054】[0054]

【表2】 [Table 2]

【0055】[0055]

【発明の効果】以上のように本発明は、2値入力データ
パターンと2値データパターンとの間で値が“1”もし
くは“0”であるビットの一致数を算出する2値パター
ンマッチングをおこなう際の演算量を削減することがで
き、データ処理を著しく効率的にすることができる。
As described above, according to the present invention, the binary pattern matching for calculating the number of coincidences of the bit whose value is "1" or "0" between the binary input data pattern and the binary data pattern is performed. The amount of calculation at the time of performing can be reduced, and data processing can be made extremely efficient.

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

【図1】第1の本発明の一実施例の構成図FIG. 1 is a configuration diagram of an embodiment of the first invention.

【図2】第1の本発明の一実施例の更に詳しい構成図FIG. 2 is a more detailed configuration diagram of one embodiment of the first invention.

【図3】2値入力データパターンの一例を示す図FIG. 3 is a diagram showing an example of a binary input data pattern.

【図4】2値基準データパターンの5種の例を示す図FIG. 4 is a diagram showing five examples of binary reference data patterns;

【図5】第2の本発明の一実例の構成図FIG. 5 is a configuration diagram of an example of the second invention.

【図6】第2の本発明の一実施例の更に詳しい構成図FIG. 6 is a more detailed configuration diagram of one embodiment of the second invention.

【図7】第4の本発明の一実施例の部分構成図FIG. 7 is a partial configuration diagram of an embodiment of the fourth invention.

【図8】本発明に使用するデータパターン検索手段の構
成図
FIG. 8 is a configuration diagram of a data pattern search unit used in the present invention.

【図9】図8におけるメモリ32の構成図9 is a configuration diagram of a memory 32 in FIG.

【図10】図8におけるメモリ31の構成図FIG. 10 is a configuration diagram of a memory 31 in FIG. 8;

【図11】図9、図10におけるメモリ31と32のデ
ータ格納状態を示す図
FIG. 11 is a diagram showing a data storage state of memories 31 and 32 in FIGS. 9 and 10;

【図12】従来のデータ処理装置の構成図FIG. 12 is a configuration diagram of a conventional data processing device.

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

1 第1のメモリ 2A、2B、2C データ検索手段 3A、3B、3C データパターン検索手段 4 カウントイネーブルデコーダ 5 第2のメモリ 9k (91 〜9n ) カウント手段 10 カウント手段 31 第3のメモリ 32 第4のメモリ 110 インクリメント手段REFERENCE SIGNS LIST 1 first memory 2A, 2B, 2C data search means 3A, 3B, 3C data pattern search means 4 count enable decoder 5 second memory 9 k (9 1 to 9 n ) count means 10 count means 31 third memory 32 fourth memory 110 increment means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 mビットの2値入力データパターンと各
々がmビットからなる2値基準データパターンとの間で
パターンマッチングを行なうデータ処理装置において、 前記mビットの2値入力データパターンのデータ値が2
値の何れか一方の値であるビットのビット位置を検索す
るデータ検索手段と、 前記データ検索手段の出力に基づいて、第1〜第nの番
号が割り当てられた上記2値データパターンのうち前記
データ検索手段の出力と同じビット位置のデータ値が上
記2値の何れか一方の値である2値データパターンの番
号を出力するデータパターン検索手段と、 前記データパターン検索手段の出力に基づき、同一番号
の出力された回数をカウントするカウント手段とを備え
たことを特徴とするデータ処理装置。
1. A data processing apparatus for performing pattern matching between an m-bit binary input data pattern and a m-bit binary reference data pattern, the data value of the m-bit binary input data pattern Is 2
A data search unit that searches for a bit position of a bit that is one of the values, based on an output of the data search unit, among the binary data patterns to which first to n-th numbers are assigned A data pattern search unit that outputs a binary data pattern number in which a data value at the same bit position as the output of the data search unit is any one of the above-described two values; A data processing device comprising: a counting unit that counts the number of times a number is output.
【請求項2】 上記カウント手段が、上記2値データパ
ターンのそれぞれに対応するカウンタと、上記データパ
ターン検索手段の出力するパターン番号に基づいて対応
するカウンタをイネーブル状態にするカウントイネーブ
ルデコーダとよりなる請求項1に記載のデータ処理装
置。
2. The count means comprises a counter corresponding to each of the binary data patterns, and a count enable decoder for enabling the corresponding counter based on a pattern number output from the data pattern search means. The data processing device according to claim 1.
【請求項3】 上記カウント手段が、上記データパター
ン検索手段の出力するパターン番号をアドレス値とする
第2のメモリと、 上記アドレスが入力されたとき、該アドレスに対応する
内容に1を加えて再び同じアドレスに収納するインクリ
メント手段とよりなる請求項1に記載のデータ処理装
置。
A second memory having an address value of a pattern number output by the data pattern searching means; and adding one to the content corresponding to the address when the address is input. 2. The data processing apparatus according to claim 1, further comprising increment means for storing the data at the same address again.
【請求項4】 上記データパターン検索手段が、 0〜mの各ビットに対応した領域を備え、各領域に対応
するビットのデータ値が2値のいずれか一方の値である
パターン番号を収納した第4のメモリと、 上記データ検索手段の出力するビット位置をアドレスと
するとともに、該各アドレスに上記第4のメモリの各領
域の先頭アドレスを収納した第3のメモリと、 上記第3のメモリより得られる第4のメモリの特定の領
域の最初のアドレスより、順次当該領域の最終アドレス
迄歩進する歩進手段とよりなる請求項1に記載のデータ
処理装置。
4. The data pattern search means includes an area corresponding to each bit of 0 to m, and stores a pattern number in which a data value of a bit corresponding to each area is one of two values. A fourth memory, a third memory in which a bit position output by the data search means is used as an address, and a start address of each area of the fourth memory is stored in each address; 2. The data processing apparatus according to claim 1, further comprising a stepping means for sequentially stepping from a first address of a specific area of the fourth memory to a final address of the area.
【請求項5】 上記データ検索手段が、2値入力データ
パターンのデータ値の両方を検索対象とし、 上記データパターン検索手段が、上記2値の両方のデー
タ値に対応するパターン番号を検索する請求項1〜4に
記載のデータ処理回路。
5. A method according to claim 1, wherein said data search means searches for both data values of the binary input data pattern, and said data pattern search means searches for a pattern number corresponding to both of said binary data values. Item 5. The data processing circuit according to items 1 to 4.
JP8298775A 1996-11-11 1996-11-11 Data processor Pending JPH10143661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8298775A JPH10143661A (en) 1996-11-11 1996-11-11 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8298775A JPH10143661A (en) 1996-11-11 1996-11-11 Data processor

Publications (1)

Publication Number Publication Date
JPH10143661A true JPH10143661A (en) 1998-05-29

Family

ID=17864061

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8298775A Pending JPH10143661A (en) 1996-11-11 1996-11-11 Data processor

Country Status (1)

Country Link
JP (1) JPH10143661A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005093656A1 (en) * 2004-03-24 2005-10-06 Mitsubishi Denki Kabushiki Kaisha System for estimating attitude at specific part, methode for estimating attitude at specific part, and program for estimating attitude at specific part

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005093656A1 (en) * 2004-03-24 2005-10-06 Mitsubishi Denki Kabushiki Kaisha System for estimating attitude at specific part, methode for estimating attitude at specific part, and program for estimating attitude at specific part

Similar Documents

Publication Publication Date Title
US5371864A (en) Apparatus for concurrent multiple instruction decode in variable length instruction set computer
US6526474B1 (en) Content addressable memory (CAM) with accesses to multiple CAM arrays used to generate result for various matching sizes
JPH0519238B2 (en)
JPS6252392B2 (en)
JP3644494B2 (en) Information retrieval device
US5201058A (en) Control system for transferring vector data without waiting for transfer end of the previous vector data
JPH10143661A (en) Data processor
JPH11110339A (en) Dma controller
US4805228A (en) Cellular logic processor
US5919251A (en) Search mechanism for a rotating pointer buffer
US6513053B1 (en) Data processing circuit and method for determining the first and subsequent occurences of a predetermined value in a sequence of data bits
US6988117B2 (en) Bit-reversed indexing in a modified harvard DSP architecture
KR950006603A (en) Memory addressing method to increase the number of memory address locations available within a computer that stores high-precision numbers
US6772271B2 (en) Reduction of bank switching instructions in main memory of data processing apparatus having main memory and plural memory
US5937403A (en) Integer permutation method and integer permutation system
JP2861435B2 (en) Pipeline type arithmetic unit
JPH06215044A (en) Information retrieval processor
JP3010764B2 (en) Bit pattern processing device
JP3710208B2 (en) Image processing method and apparatus
JPS6168636A (en) Data processor
JP2576589B2 (en) Virtual storage access control method
JP3331682B2 (en) Arithmetic unit
Herrmannsfeldt A Highly Parallel Finite State Automaton Processor for Biological Pattern Matching.
JPH01320554A (en) Memory readout circuit
JP2003177912A (en) Method of calculating median of numerical data array using simd operation