JPS63158628A - Detection system for duplication of bit pattern - Google Patents

Detection system for duplication of bit pattern

Info

Publication number
JPS63158628A
JPS63158628A JP61305509A JP30550986A JPS63158628A JP S63158628 A JPS63158628 A JP S63158628A JP 61305509 A JP61305509 A JP 61305509A JP 30550986 A JP30550986 A JP 30550986A JP S63158628 A JPS63158628 A JP S63158628A
Authority
JP
Japan
Prior art keywords
bit pattern
bit
patterns
pattern
data
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
JP61305509A
Other languages
Japanese (ja)
Inventor
Takashi Ueda
隆司 上田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP61305509A priority Critical patent/JPS63158628A/en
Publication of JPS63158628A publication Critical patent/JPS63158628A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reduce storage areas and to attain duplication detection economically and at high speed by detecting a duplicated and same bit pattern from significant bit patterns and data bit patterns with respect to respective bit patterns. CONSTITUTION:For checking a same name among respective bit patterns stored in a bit pattern storage part, a data bit pattern D1 and a significant bit pattern S1 are set in a block 30, and a data bit pattern D2 and a significant bit pattern S2 are set in a block 31. Firstly, the bit patterns S1 and S2 are inputted to an AND circuit 21, and their 'AND' 1110 is outputted. The output of the 'AND' is inputted to AND circuits 23 and 25 in which the 'AND' with the bit patterns D1 and D2 are respectively operated and are inputted to a comparator 27 which checks whether both are equal.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、複数のビットパターンの中から同一のビッ
トパターンを効率的に検出するビットパターン重複検出
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a bit pattern duplication detection method that efficiently detects the same bit pattern from among a plurality of bit patterns.

(従来の技術) ディジタル・ハードウェアの設計またはコンピュータの
ソフトウェアの設計においては、あるデータの値または
データのビットパターンに応じて別の動作を行なわせし
めるということがしばしばある。このためには、例えば
入力されるデータのビットパターンをすべて調べて、所
定のビットパターンと比較し同一のものがあるかどうか
をチェックすることが必要である。ここで、入力される
データのビットパターンの形式としては、単に1つのビ
ットパターンのもの、ある区間が指定されこの区間内の
ビットパターンの集合のもの、2進数のビットパターン
として考えたとき、いくつかの特定の位置のビットのみ
が指定され、他のビットは冗長ビット、すなわちドント
ケア(dontcare)ビットで表されるようにドン
トケアを含むようなものが考えられるが、いずれにして
もこのようなビットパターンからなる集合の中に同一の
ビットパターンが存在するか否かをチェックしたり、ま
たはこのようなビットパターンからなる集合が同一の値
を含まないことをチェックすることが必要となる。
BACKGROUND OF THE INVENTION In digital hardware design or computer software design, it is often the case that different operations are performed depending on the value of certain data or the bit pattern of data. For this purpose, it is necessary, for example, to examine all bit patterns of input data and compare them with a predetermined bit pattern to check whether any of them are the same. Here, the format of the bit pattern of the input data is simply one bit pattern, a set of bit patterns within a specified interval, and a number of bit patterns when considered as a binary bit pattern. It is conceivable that only the bit in a particular position is specified, and the other bits are redundant bits, that is, include don't cares as represented by don't care bits, but in any case, such bits It is necessary to check whether the same bit pattern exists in a set of patterns, or to check that such a set of bit patterns does not contain the same value.

このチェックを行なうために、従来は、入力されるビッ
トパターンの最大長をnとすると、このnビットで可能
なすべてのビットパターン、すなわち21個のビットパ
ターンにそれぞれ対応した2n個のビット記憶領域を用
意しておき、入かされた各ビットパターンに対してその
2進数に対応したビット記憶領域のビット位置に「1」
を記憶して既登録としてマークし、この既登録マークの
重複により同一のビットパターンが存在することをチェ
ックしている。
In order to perform this check, conventionally, if the maximum length of the input bit pattern is n, then 2n bit storage areas each corresponding to all possible bit patterns of n bits, that is, 21 bit patterns, are stored. , and for each bit pattern entered, set "1" to the bit position of the bit storage area corresponding to the binary number.
is stored and marked as registered, and it is checked whether the same bit pattern exists by duplication of this registered mark.

この方法では、しかしながら、nが大きくなると、21
1個のビット記憶領域が非常に大きくなり、この領域を
確保することが困難であるとともに、また多数のドント
ケアを含むビットパターンから、これに含まれる個別の
ビットパターンをすべて生成する時間もかなり長くなる
In this method, however, when n becomes large, 21
The storage area for one bit becomes very large, making it difficult to secure this area, and it also takes a considerable amount of time to generate all the individual bit patterns contained in a bit pattern that includes many don't cares. Become.

また、ドントケアを含まないビットパターンのある区間
の集合の場合には、各区間の下限flnと上限unとを
記憶し、重複を検出すべく与えられた区間の下限および
上限をf(、uとして、すべてのnについてfLn <
uまたはun< flであることをチェックして区間の
重なりがあるかどうかを確認すれば、この条件を満す区
間のものは重複せず、この条件を満さないものは重複し
たものを含んでいることがわかる。
In addition, in the case of a set of intervals with a bit pattern that does not include don't cares, the lower limit fln and upper limit un of each interval are memorized, and the lower limit and upper limit of a given interval are set as f(, u) to detect overlap. , fLn <
If you check whether there are overlapping sections by checking that u or un < fl, sections that satisfy this condition will not overlap, and sections that do not satisfy this condition will not include duplicates. I can see that it is.

この方法をドントケアを含むビットパターンに拡張する
には、ドントケアを含むビットパターンをいくつかの区
間の組に変換して適用する必要があるが、ドントケアの
ビットがn個の場合には、一般に2n個の区間の組にな
るので、この2n個の区間を生成するのに時間がかかる
とともに、これらの区間を記憶する領域を確保すること
も困難である。
In order to extend this method to bit patterns that include don't cares, it is necessary to convert the bit patterns that include don't cares into several sets of intervals and apply it, but if there are n don't care bits, generally 2n Therefore, it takes time to generate these 2n intervals, and it is also difficult to secure an area to store these intervals.

(発明が解決しようとする問題点) 前述したように、前記各方法においては、記憶領域がか
なり大きくなり、時間的にも長くかかるので非経済的で
あるという問題がある。
(Problems to be Solved by the Invention) As described above, each of the above-mentioned methods has the problem of being uneconomical because the storage area becomes considerably large and it takes a long time.

この発明は、上記に鑑みてなされたもので、その目的と
するところは、少ない記憶領域で経済的にかつ簡単な構
成で高速に重複しているビットパターンを検出するビッ
トパターン重複検出方式を提供することにある。
The present invention has been made in view of the above, and its purpose is to provide a bit pattern duplication detection method that can detect duplicate bit patterns at high speed with a small storage area, economical and simple configuration. It's about doing.

[発明の構成] (問題点を解決するための手段) 上記問題点を解決するため、複数の第1のビットパター
ンを含む第1の組の中から第2のビットパターンを含む
第2の組の中のビットパターンと同一のビットパターン
を検出するビットパターン重複検出方式であって、この
発明は、前記各組の中の各ビットパターンを冗長ビット
を含むビットパターンに変換する第1の変換手段と、冗
長ビットをOで置換し、その他のビットを1で置換した
有意ビットパターンに前記各ビットパターンを変換する
第2の変換手段と、冗長ビットのみをOに置換し、その
他のビットはそのままであるデータビットパターンに前
記各ビットパターンを変換する第3の変換手段と、前記
第1の組および第2の組のそれぞれの各ビットパターン
に対する有意ビットパターンおよびデータビットパター
ンから同−のビットパターンを検出する検出手段とを有
することを要旨とする。
[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, a second set including a second bit pattern is selected from a first set including a plurality of first bit patterns. A bit pattern duplication detection method for detecting a bit pattern that is the same as a bit pattern in each set, the present invention includes a first converting means for converting each bit pattern in each set into a bit pattern including redundant bits. and a second converting means for converting each of the bit patterns into a significant bit pattern in which redundant bits are replaced with O's and other bits are replaced with 1's, and only the redundant bits are replaced with O's and the other bits are left unchanged. third converting means for converting each of the bit patterns into a data bit pattern, and converting the significant bit pattern and data bit pattern for each bit pattern of the first set and the second set into the same bit pattern. The gist is to have a detection means for detecting.

(作用) この発明のビットパターン重複検出方式においては、各
ビットパターンを冗長ビットを含むビットパターンに変
換して、この各ビットパターンの冗長ビットをOに置換
しその他のビットを1に置換した有意ビットパターンに
各ビットパターンを変換するとともに、冗長ビットのみ
を0に置換しその他のビットはそのままであるデータビ
ットパターンに各ビットパターンを変換し、前記各ビッ
トパターンに対する有意ビットパターンおよびデータビ
ットパターンから重複する同一のビットパターンを検出
している。
(Operation) In the bit pattern duplication detection method of the present invention, each bit pattern is converted into a bit pattern including redundant bits, and the redundant bits of each bit pattern are replaced with O's and the other bits are replaced with 1's. Convert each bit pattern into a bit pattern, and convert each bit pattern into a data bit pattern in which only redundant bits are replaced with 0 and other bits remain unchanged, and from the significant bit pattern and data bit pattern for each bit pattern. Duplicate and identical bit patterns are detected.

(実施例) 以下、図面を用いてこの発明の詳細な説明する。(Example) Hereinafter, the present invention will be explained in detail using the drawings.

第1図はこの発明の一実施例に係るビットパターン重複
検出方式の回路構成を示すブロック図である。同図に示
すビットパターン重複検出方式は、全体制御部1、ビッ
トパターン人力バッファ2、ビットパターン変換部3、
ビットパターン検出部4、ビットパターン登録部5、入
力番号記憶バッフ76、変換ビットパターン出力バッフ
ァ7、ビットパターン記憶部8から構成されているが、
これらの各部について説明する前に本発明の基本原理に
ついて説明する。
FIG. 1 is a block diagram showing a circuit configuration of a bit pattern duplication detection method according to an embodiment of the present invention. The bit pattern duplication detection method shown in the figure includes an overall control section 1, a bit pattern manual buffer 2, a bit pattern conversion section 3,
It is composed of a bit pattern detection section 4, a bit pattern registration section 5, an input number storage buffer 76, a converted bit pattern output buffer 7, and a bit pattern storage section 8.
Before explaining each of these parts, the basic principle of the present invention will be explained.

本発明のビットパターン重複検出方式の基本的原理は、
前述した従来の方法の中の後者の方法、すなわちドント
ケアを含むビットパターンに拡張する方法とは逆に区間
で指定されるビットパターンをドントケアを含むビット
パターンの列に変換し、このドントケアを含むビットパ
ターンを後述するように有意ビットパターンとデータビ
ットパターンに変換し、この有意ビットパターンおよび
データビットパターンから論理的に重複する同一のビッ
トパターンを検出しようとするものである。
The basic principle of the bit pattern duplication detection method of the present invention is:
The latter method of the conventional methods described above, that is, the method of expanding to a bit pattern that includes don't cares, is the opposite of converting a bit pattern specified by an interval into a string of bit patterns that includes don't cares, and converting the bit pattern that includes this don't care. This method converts a pattern into a significant bit pattern and a data bit pattern as described later, and attempts to detect logically overlapping and identical bit patterns from the significant bit pattern and data bit pattern.

今、与えられた区間を[1,u ]とすると、これは互
いに重なり合わない部分小区間の和の集合として次のよ
うに表すことができる。
Now, assuming that the given interval is [1, u], this can be expressed as a set of sums of subintervals that do not overlap with each other as follows.

であり、fLiの下位niビットはすべてOである。, and the lower ni bits of fLi are all O.

具体的に一例を挙げて説明すると、例えば4ビツトの2
進数の2と10の間の区間[2,101で定義される数
は、 2.3.4,5.6.7.8.9.10の9個あるが、
これらを2進数で考えると、0010.0011.01
00.0101゜oiio、o1’z、1ooo、1o
oi。
To give a specific example, for example, 2 bits of 4 bits.
There are nine numbers defined in the interval [2,101] between base 2 and 10: 2.3.4, 5.6.7.8.9.10,
Considering these in binary numbers, 0010.0011.01
00.0101゜oiio, o1'z, 1ooo, 1o
oi.

の9個のビットパターンとなる。これらのビットパター
ンを前述した一般的表現を用いて部分小区間に分割し、
分割の定義を明確に示すためにドントケアとならない共
通部にアンダーラインを付して示すと、 目り釘10 、 ILLI ] 。
This is a 9-bit pattern. Divide these bit patterns into subintervals using the general expression described above,
In order to clearly show the definition of division, common parts that are not considered don't care are underlined.

[QO0,0101,LLIO,社111゜[1000
,1001]、[10101すなわち [2,3]、  [4,5,6,7]、  [8,9]
[QO0,0101,LLIO, Company 111゜[1000
,1001], [10101 or [2,3], [4,5,6,7], [8,9]
.

[10] のように4つの部分小区間に分割でき、次式に示す和集
合で表される。
[10] It can be divided into four partial subintervals as shown in [10], and is expressed by the union set shown in the following equation.

[2,10]−[2,3]U [4,5,6,7]U[
8,9]U[10] このような部分小区間[ii、ui]は、愛iをd H
・dki O・・・O(Oはn1個)で表し、uiをd
l・・・dki 1・・・1で表すことができるので、
この「0」および「1」で表されるドントケアのビット
を「?」テ表すと、d 1・dki ? =・? (?
はni個)の形の1つのビットパターンとして表現でき
る。
[2,10]-[2,3]U [4,5,6,7]U[
8,9]U[10] Such a subinterval [ii, ui] defines love i as d H
・dki O...O (O is n1), ui is d
Since it can be expressed as l...dki 1...1,
If the don't care bits represented by "0" and "1" are expressed as "?", then d1・dki? =・? (?
can be expressed as one bit pattern of the form ni).

従って、前記和集合の式[2,10]は次式のようにな
る。
Therefore, the union equation [2, 10] becomes as follows.

[2,10]−001?UO1??U100?すなわち
、このようにドントケアを用いて和集合を表すと、例え
ば[2,10]のように9個の数の集合からなっていた
ものは、この和集合の式で表されるように0017.0
1??、100?。
[2,10]-001? UO1? ? U100? That is, if we express the union using don't care in this way, for example, a set of 9 numbers such as [2, 10] becomes 0017. as expressed by the expression of this union. 0
1? ? , 100? .

1010からなる4個で表すことができ、個数を低減で
きるのである。これを−膜化すると、任意のl、uに意
してこのような部分小区間の個数は次式で表されるので
ある。
It can be represented by four pieces consisting of 1010, and the number can be reduced. When this is converted into a -film, the number of such partial subintervals for arbitrary l and u is expressed by the following equation.

1+210(12(u−愛+1) 従って、区間をこのようにドントケアを含む部分小区間
の和として記憶するのに必要な記憶領域は十分小さなも
のでよく、経済的となるのである。
1+210(12(u-love+1)) Therefore, the storage area required to store an interval as a sum of partial subintervals including don't cares can be sufficiently small, making it economical.

また、このようにドントケアを含む部分小区間に変換す
るのに要する時間は変換される部分小区間の個数に比例
するので、当然変換時間も高速化されるのである。
Furthermore, since the time required to convert into partial subintervals including don't cares in this way is proportional to the number of partial subintervals to be converted, the conversion time is naturally increased.

以上のようにドントケアを含むビットパターンの集合に
変換した後、これらのビットパターンの集合の中に所定
のビットパターンと同一のビットパターンが重複して存
在するか否かを検出するには、ドントケアを含む各ビッ
トパターンを内部的に後述するデータビットパターンと
有意ビットパターンとからなる一対のビットパターンに
変換して表すことをまず行なう。
After converting into a set of bit patterns that include don't cares as described above, in order to detect whether or not the same bit pattern as a predetermined bit pattern exists redundantly in the set of bit patterns, it is necessary to First, each bit pattern containing .

すなわち、ドントケアを含む各ビットパターンに対する
データビットパターンDiは、ドントケアのビットをO
に置換し、その他のビットはそのままとすることで作成
され、また有意ビットパターン3iは、ドントケアをO
で置換し、その他のビットを1で置換することで作成さ
れる。−例として、ドントケア「?」を含むビットパタ
ーンrlo??1?Jのデータビットパターンは「10
0010Jとなり、有意ビットパターンは「11001
0Jとなる。
That is, the data bit pattern Di for each bit pattern including don't care bits is
The significant bit pattern 3i is created by replacing the don't care with O and leaving the other bits as is.
It is created by replacing the other bits with 1 and replacing the other bits with 1. - As an example, the bit pattern rlo? containing a don't care "?" ? 1? The data bit pattern of J is “10
0010J, and the significant bit pattern is “11001
It becomes 0J.

このように各ビットパターンをデータビットパターンD
iと有意ビットパターン3iとからなる一対のビットパ
ターンに変換した後、今、重複を検出されるべく外部か
ら入力される一方のビットパターンP1のデータビット
パターンを01、有意ビットパターンを81とし、また
他方のビットパターンP2のデータビットパターンをD
2、有意ビットパターンを82として、両ビットパター
ンS+ 、82をそれぞれ(D+ 、S+ )、(D2
゜32 >として表すと、両ピットパータンP+ 、 
P2が重複して同一である条件は、第1の論理積S+ 
&S2 &DI と第2の論理積81 &S2 &D2
とが等しいことである。すなわち、式で表すと、次式の
ようになる。
In this way, each bit pattern is converted into data bit pattern D
After converting into a pair of bit patterns consisting of i and significant bit pattern 3i, now the data bit pattern of one bit pattern P1 inputted from the outside to be detected for duplication is set to 01, the significant bit pattern to 81, In addition, the data bit pattern of the other bit pattern P2 is set to D.
2. Assuming that the significant bit pattern is 82, both bit patterns S+ and 82 are (D+, S+) and (D2
When expressed as ゜32〉, both pit patterns P+,
The condition that P2 is the same in duplicate is the first logical product S+
&S2 &DI and second logical product 81 &S2 &D2
are the same. That is, expressed as the following equation.

81 &S2 &DI −8+ &S2 &D2・・・
(1)なお、ここで、&は各ビット毎の論理積を表す。
81 &S2 &DI -8+ &S2 &D2...
(1) Here, & represents a logical product for each bit.

すなわち、上式で示すように、第1の論理積と第2の論
理積とが等しいとき、両ビットパターンを同一であるも
のと判定し得るのである。この論理積の関係については
、後述する第2図についての説明から一層明確に理解さ
れるものと考えられる。
That is, as shown in the above equation, when the first AND and the second AND are equal, it is possible to determine that both bit patterns are the same. It is believed that this logical product relationship will be more clearly understood from the explanation of FIG. 2, which will be described later.

以上説明したような基本的原理に従って実施される本発
明の第1図に示すビットパターン重複検出方式において
は、全体制御部1の制御のもとに全体的に各部が制御さ
れ、重複を検出されるべく外部から入力されるビットパ
ターンは一時的にビットパターン人力バッファ2に記憶
される。このビットパターン人力バッフ72に記憶され
た区間で表されるビットパターンは全体制御部1で種類
が判別されて区間で表されるビットパターンであれば、
ビットパターン変換部3によって前述したようにドント
ケアを含むビットパターン列に変換され、変化ビットパ
ターン出力バッファに一時的に記憶され、またそれ以外
の場合にはビットパターン人力バッファ2から直接変換
ビットパターン出力バッファ7に記憶される。いずれの
場合にも、ドントケアを含むビットパターンは前記デー
タビットパターンと有意ビットパターンとからなる一対
のビットパターンで表されて記憶される。なお、ビット
パターン人力バッフ72に入力されたビットパターンを
識別するために入力番号を付加されて入力番号記憶バッ
ファ6に記憶されるが、この場合入力番号記憶バッフ7
6は初期状態で0であり、外部からビットパターンが与
えられる毎に1ずつ加算される。また、ビットパターン
記憶部8には今まで入力されたすべてのビットパターン
が記憶されるが、このビットパターン記憶部8に記憶さ
れるビットパターンは、次表のメモリ構成に示すように
入力番号に対応してそれぞれデータビットバターンおよ
び有意ビットパターンから構成されている。
In the bit pattern duplication detection method shown in FIG. 1 of the present invention, which is implemented according to the basic principle as explained above, each part is controlled as a whole under the control of the overall control section 1, and duplication is detected. The bit pattern input from the outside is temporarily stored in the bit pattern manual buffer 2. The type of the bit pattern represented by an interval stored in the bit pattern manual buffer 72 is determined by the overall control unit 1, and if it is a bit pattern represented by an interval,
As described above, the bit pattern converter 3 converts the string into a bit pattern including don't cares, and temporarily stores it in the changed bit pattern output buffer, and in other cases, outputs the converted bit pattern directly from the bit pattern manual buffer 2. It is stored in buffer 7. In either case, a bit pattern including don't care is represented and stored as a pair of bit patterns consisting of the data bit pattern and the significant bit pattern. In order to identify the bit pattern input to the bit pattern manual buffer 72, an input number is added and stored in the input number storage buffer 6. In this case, the input number storage buffer 7
6 is 0 in the initial state, and is incremented by 1 each time a bit pattern is given from the outside. In addition, all the bit patterns that have been input so far are stored in the bit pattern storage unit 8, and the bit patterns stored in this bit pattern storage unit 8 correspond to input numbers as shown in the memory configuration in the following table. Each correspondingly consists of a data bit pattern and a significant bit pattern.

表 前述したようにドントケアを含むビットパターンに変換
されて変換ビットパターン出力バッファ7に記憶された
各ビットパターンは、ビットパターン記憶部8に記憶さ
れている各ビットパターンとビットパターン検出部4に
おいて順次比較され、すなわち前述した式(1)の論理
演算に従って両者が等しいか否か比較され、両方のビッ
トパターンが等しいことが検出されると、その旨が対応
する入力番号とともに全体制御部1に報知されるのであ
る。全体制御部1は検出の報知を受けると、その旨を外
部に報知し、そうでない場合、すなわち等しくない場合
には、ビットパターン登録部5によって変換ビットパタ
ーン出力バッフ77に記憶されているビットパターンと
入力番号記憶バッファ6に記憶されている対応する入力
番号とをビットパターン記憶部8に登録し、外部に登録
したことを報知するのである。
As described above, each bit pattern converted into a bit pattern including don't care and stored in the converted bit pattern output buffer 7 is sequentially processed in the bit pattern detection unit 4 with each bit pattern stored in the bit pattern storage unit 8. That is, they are compared to see if they are equal according to the logical operation of equation (1) described above, and when it is detected that both bit patterns are equal, this is notified to the overall control unit 1 along with the corresponding input number. It will be done. When the overall control unit 1 receives the notification of detection, it notifies the outside, and if not, that is, if they are not equal, the bit pattern registration unit 5 uses the bit pattern stored in the converted bit pattern output buffer 77. and the corresponding input number stored in the input number storage buffer 6 are registered in the bit pattern storage section 8, and the registration is notified to the outside.

このようにビットパターン検出部4は、両ビットパター
ンを前式(1)の論理演算に従って比較し、両者が同一
ビットパターンであるか否かを識別するのであるが、こ
のビットパターン検出部4の動作を次に第2図を参照し
て説明する。
In this way, the bit pattern detection unit 4 compares both bit patterns according to the logical operation of equation (1) and identifies whether or not they are the same bit pattern. The operation will now be explained with reference to FIG.

第2図に示すビットパターン検出部4は、ビットパター
ン記憶部8からの第1のビットパターンP1と変換ビッ
トパターン出力パッファ7からの第2のビットパターン
P2とを比較し、両ビットパターンが等しいか否かを判
定するために、第1のビットパターンP1のデータビッ
トパターンD1および有意ビットパターンS1と、第2
のビットパターンP2のデータビットパターンD2およ
び有意ビットパターンP2とに対して前式(1)の論理
演算、すなわち 31 &S2 &D+ =S+ &S2 &D2を行な
い、両ビットパターンが等しいか否かを判定するのであ
る。
The bit pattern detection section 4 shown in FIG. 2 compares the first bit pattern P1 from the bit pattern storage section 8 and the second bit pattern P2 from the converted bit pattern output puffer 7, and finds that both bit patterns are equal. In order to determine whether or not the data bit pattern D1 and the significant bit pattern S1 of the first bit pattern P1 and the second
The logical operation of the previous formula (1), that is, 31 &S2 &D+ =S+ &S2 &D2, is performed on the data bit pattern D2 and the significant bit pattern P2 of the bit pattern P2, and it is determined whether the two bit patterns are equal. be.

このため、第2図のビットパターン検出部4は、第1の
有意ビットパターンS+ と第2図の有意ビットパター
ンS2との論理積81 &S2を算出する第1のアンド
回路21と、この第1のアンド回路21の論理積出力S
+ &S2と第1のデータビットパターンD1との第1
の論理積Sl &S2 &D1を算出する第2のアンド
回路23と、第1のアンド回路21の論理積出力81 
&S2と第2のデータビットパターンD2との第2の論
理積S1&S2 &D2を算出する第3のアンド回路2
5と、第2の回路23からの第1の論理積81 &S2
 &D1と第3のアンド回路25からの第2の論理積8
1 &S2 &D2とが等しいか否か比較する比較器2
7とから構成され、比較器27における比較の結果、両
ビットパターンが同一と判定されたときには、比較器2
7から「1」の信号が出力される。なお、第2図におい
ては、30−34で示す矩形ブロックは、単に対象とす
るビットパターンや演算結果をわかり易く示すために図
示しているものであり、特にハード的な回路素子を必要
としないものであって直接接続してもよいものであるが
、場合によっては例えばレジスタ等があると考えてもよ
い。
For this reason, the bit pattern detection unit 4 in FIG. The logical product output S of the AND circuit 21 of
+ &S2 and the first data bit pattern D1
The second AND circuit 23 that calculates the logical product Sl &S2 &D1 and the logical product output 81 of the first AND circuit 21
A third AND circuit 2 that calculates the second logical product S1&S2 &D2 of &S2 and the second data bit pattern D2
5 and the first logical product 81 &S2 from the second circuit 23
&D1 and the second logical product 8 from the third AND circuit 25
Comparator 2 that compares whether 1 &S2 &D2 are equal.
7, and when it is determined that both bit patterns are the same as a result of the comparison in the comparator 27, the comparator 2
7 outputs a signal of "1". In FIG. 2, the rectangular blocks indicated by 30 to 34 are shown simply to clearly show the target bit patterns and calculation results, and do not require any particular hardware circuit elements. Although it may be connected directly, depending on the case, a resistor or the like may be used.

このように構成されたものにおいて、具体的例を挙げて
作用を説明する。
The operation of the device configured as described above will be explained by giving a specific example.

一例として、n=4ビツトのビットパターン[2,4]
、[7,IOJ、011?の間の重複を検出する場合に
ついて説明する。
As an example, a bit pattern of n=4 bits [2,4]
, [7, IOJ, 011? A case will be described in which the overlap between the two is detected.

区間[2,4]は、2(0010)、3(○011 >
、 4 (0100)からなり、これらをドントケア(
?)を用いて表すと、001?、oi。
The interval [2,4] is 2 (0010), 3 (○011 >
, 4 (0100), and these are treated as don't care (
? ), 001? ,oi.

Oからなる和集合で表され、また区HE7,10]は、
7 (0111)、8 (1000)、9 (1001
)、10 (1010)からなり、ドントケアを用いて
表すと、0111.100?、1010からなる和集合
で表される。
It is represented by the union of O, and the ward HE7, 10] is
7 (0111), 8 (1000), 9 (1001
), 10 (1010), expressed using don't care, 0111.100? , 1010.

今、ここでは、既に[2,4]と[7,10]との間の
重複が検査された結果、重複がないことが分り、各ビッ
トパターンの分解または変換されたデータビットパター
ンおよび有意ビットパターンが第2図に示すビットパタ
ーン記憶部8に図示のように記憶されているものとする
。そして、このようにデータビットパターンおよび有意
ビットパターンに分解されてビットパターン記憶部8に
記憶された[2.4]、[7,10コの各ビットパター
ンである第1.2のビットパターンに対して、第3番目
のビットパターン011?どの重複がビットパターン検
出部4で検査されるのである。
Now, here we have already checked for overlap between [2,4] and [7,10] and found that there is no overlap, and the decomposed or transformed data bit pattern and significant bits of each bit pattern. It is assumed that the pattern is stored in the bit pattern storage section 8 shown in FIG. 2 as shown. Then, the 1.2 bit pattern, which is each bit pattern of [2.4], [7, and 10 bits, decomposed into a data bit pattern and a significant bit pattern and stored in the bit pattern storage unit 8 in this way. On the other hand, the third bit pattern 011? Which duplicates are checked in the bit pattern detection section 4.

この状態で第2図に示すブロック30にはビットパター
ン記憶部8からの第1.2のビットパターンが順次設定
され、またブロック31には第3番目のビットパターン
011?が設定され、両ビットパターンがビットパター
ン検出部4で重複検査されるのである。
In this state, the first and second bit patterns from the bit pattern storage section 8 are sequentially set in the block 30 shown in FIG. 2, and the third bit pattern 011? is set in the block 31. is set, and both bit patterns are checked for overlap by the bit pattern detection section 4.

なお、データビットパターンおよび有意ビットパターン
に分解されてビットパターン記憶部8に記憶されている
ビットパターンについて説明すると、まず入力番号(1
)に対応する所には、[2゜4]のビットパターン00
1?に対するデータビットパターン0010と有意ビッ
トパターン1110が記憶され、入力番号(2)に対応
する所には、[2,4]のビットパターン0100に対
するデータビットパターン0100と有意ビットパター
ン1111が記憶され、入力番号(3)に対応する所に
は、[7,10]のビットパターン0111に対するデ
ータビットパターンo111と有意ビットパターン11
11が記憶され、入力番号(4)に対応する所には、[
7,10]のビットパターン100?に対するデータビ
ットパターン1000と有意ビットパターン1110が
記憶され、更に入力番号(5)に対応する所には、[7
,10]のビットパターン1010に対するデータビッ
トパターン1010と有意ビットパターン1111が記
憶されている。
In addition, to explain the bit pattern decomposed into a data bit pattern and a significant bit pattern and stored in the bit pattern storage unit 8, first, the input number (1
), the bit pattern 00 of [2°4]
1? A data bit pattern 0010 and a significant bit pattern 1110 for the input number (2) are stored, and a data bit pattern 0100 and a significant bit pattern 1111 for the bit pattern 0100 of [2,4] are stored in the location corresponding to the input number (2). In the place corresponding to number (3), data bit pattern o111 and significant bit pattern 11 for bit pattern 0111 of [7, 10]
11 is memorized, and in the place corresponding to the input number (4), [
7, 10] bit pattern 100? A data bit pattern 1000 and a significant bit pattern 1110 are stored, and furthermore, [7] is stored at the location corresponding to the input number (5).
, 10], a data bit pattern 1010 and a significant bit pattern 1111 are stored.

そして、このようにビットパターン記憶部8に記憶され
た各ビットパターンが入力番号(1)のものから順次ビ
ットパターン検出部4において第3番目のビットパター
ン011?と比較され、重複が検査される。ビットパタ
ーン記憶部8に記憶されたビットパターンのうち入力番
号(1)。
Then, each bit pattern stored in the bit pattern storage unit 8 in this way is sequentially processed by the bit pattern detection unit 4 from the input number (1) to the third bit pattern 011? is compared to check for duplicates. Input number (1) among the bit patterns stored in the bit pattern storage unit 8.

(2)に対する比較の結果は、両者は同一でないため、
ビットパターン検出部4の比較器27からの出力はrO
Jであるが、次に入力番号(3)となって、ビットパタ
ーン記憶部8に記憶されたビットパターンの中から入力
番号(3)のビットパターン0111と第3番目のビッ
トパターン011?との間の重複、すなわち同一性につ
いて検査する段になると、図示のようにブロック30に
は入力番号(3)のビットパターン0111に対するデ
ータビットパターンD1 (0111)と有意ビットパ
ターン82(1111)が設定され、またブロック31
には第3番目のビットパターンO11?のデータビット
パターンD2(0110)と有意ビットパターン82(
1110)が設定される。そして、まず第1のアンド回
路21にビットパターンS1と82とが入力され、両者
の論理積81 &S2であるrlllc)Jが出力され
る。
The comparison result for (2) is that the two are not the same, so
The output from the comparator 27 of the bit pattern detection section 4 is rO
J, the next input number is (3), and from among the bit patterns stored in the bit pattern storage unit 8, the bit pattern 0111 of the input number (3) and the third bit pattern 011? When it comes to checking for overlap, that is, identity, the data bit pattern D1 (0111) for the bit pattern 0111 of input number (3) and the significant bit pattern 82 (1111) are stored in the block 30 as shown in the figure. set and also block 31
The third bit pattern O11? data bit pattern D2 (0110) and significant bit pattern 82 (
1110) is set. First, the bit patterns S1 and 82 are input to the first AND circuit 21, and the logical product 81 &S2 of the two, rllllc)J, is output.

この論理積出力は第2のアンド回路23および第3のア
ンド回路25に入力され、それぞれビットパターンD1
とD2との論理積が演算される。すなわち、第2のアン
ド回路23からは第1の論理積81 &S2 &Dtで
あるrolloJが出力され、第3のアンド回路25か
らは第2の論理積S+ &S2 &D2であるroll
oJが出力され、これらの各論理積出力は比較器27に
入力され、両者が等しいか否かがチェックされている。
This AND output is input to the second AND circuit 23 and the third AND circuit 25, and the bit pattern D1
The logical product of and D2 is calculated. That is, the second AND circuit 23 outputs rolloJ, which is the first logical product 81 &S2 &Dt, and the third AND circuit 25 outputs rolloJ, which is the second logical product S+ &S2 &D2.
oJ is output, and each of these AND outputs is input to a comparator 27, and it is checked whether the two are equal or not.

この結果、両輪埋積出力は等しいので、比較器27から
「1」の信号が出力され、重複の存在が検出されるので
ある。
As a result, since the filling outputs of both wheels are equal, a signal of "1" is output from the comparator 27, and the existence of overlap is detected.

[発明の効果] 上述したように、この発明によれば、各ビットパターン
を冗長ビットを含むビットパターンに変換して、この各
ビットパターンの冗長ビットをOに置換しその他のビッ
トを1に置換した有意ビットパターンに各ビットパター
ンを変換するとともに、冗長ビットのみを0に置換しそ
の他のビットはそのままであるデータビットパターンに
各ビットパターンを変換し、前記各ビットパターンに対
する有意ビットパターンおよびデータビットパターンか
ら重複する同一のビットパターンを検出しているので、
このように冗長ビットを含んだビットパターンに変換す
ることにより展開される部分小区間の個数をかなり少な
くすることができるため、記憶領域が少なく、経済的か
つ高速に重複する同一のビットパターンを検出すること
ができる。
[Effects of the Invention] As described above, according to the present invention, each bit pattern is converted into a bit pattern including redundant bits, and the redundant bits of each bit pattern are replaced with O's and the other bits are replaced with 1's. At the same time, each bit pattern is converted into a data bit pattern in which only redundant bits are replaced with 0 and other bits remain unchanged, and the significant bit pattern and data bits for each bit pattern are converted into a data bit pattern. Since we are detecting duplicate and identical bit patterns from the pattern,
By converting the bit pattern to a bit pattern that includes redundant bits in this way, the number of subintervals to be expanded can be significantly reduced, so it requires less storage space and can detect duplicate identical bit patterns economically and quickly. can do.

【図面の簡単な説明】 第1図はこの発明の一実施例に係るビットパターン重複
検出方式の回路構成を示すブロック図、第2図は第1図
のビットパターン重複検出方式に使用されるビットパタ
ーン検出部の回路図である。 3・・・ビットパターン変換部 4・・・ビットパターン検出部 8・・・ビットパターン記憶部
[Brief Description of the Drawings] Fig. 1 is a block diagram showing the circuit configuration of a bit pattern duplication detection method according to an embodiment of the present invention, and Fig. 2 shows bits used in the bit pattern duplication detection method of Fig. 1. FIG. 3 is a circuit diagram of a pattern detection section. 3...Bit pattern conversion section 4...Bit pattern detection section 8...Bit pattern storage section

Claims (2)

【特許請求の範囲】[Claims] (1)複数の第1のビットパターンを含む第1の組の中
から第2のビットパターンを含む第2の組の中のビット
パターンと同一のビットパターンを検出するビットパタ
ーン重複検出方式であつて、前記各組の中の各ビットパ
ターンを冗長ビットを含むビットパターンに変換する第
1の変換手段と、冗長ビットを0で置換し、その他のビ
ットを1で置換した有意ビットパターンに前記各ビット
パターンを変換する第2の変換手段と、冗長ビットのみ
を0に置換し、その他のビットはそのままであるデータ
ビットパターンに前記各ビットパターンを変換する第3
の変換手段と、前記第1の組および第2の組のそれぞれ
の各ビットパターンに対する有意ビットパターンおよび
データビットパターンから同一のビットパターンを検出
する検出手段とを有することを特徴とするビットパター
ン重複検出方式。
(1) A bit pattern duplication detection method that detects a bit pattern that is the same as a bit pattern in a second set that includes a second bit pattern from a first set that includes a plurality of first bit patterns; a first converting means for converting each bit pattern in each set into a bit pattern including redundant bits; and a first converting means for converting each bit pattern in each set into a bit pattern including redundant bits; a second converting means for converting a bit pattern; and a third converting means for converting each bit pattern into a data bit pattern in which only redundant bits are replaced with 0 and other bits remain unchanged.
and a detection means for detecting the same bit pattern from the significant bit pattern and data bit pattern for each bit pattern of the first set and the second set, respectively. Detection method.
(2)前記検出手段は、前記第1の組のビットパターン
の有意ビットパターン、前記第2の組のビットパターン
の有意ビットパターンおよび第1の組のビットパターン
のデータビットパターンの第1の論理積と、前記第1の
組のビットパターンの有意ビットパターン、前記第2の
組のビットパターンの有意ビットパターンおよび第2の
組のビットパターンのデータビットパターンの第2の論
理積とが等しいとき、当該両ビットパターンは同一であ
るものと識別する識別手段を有することを特徴とする特
許請求の範囲第1項記載のビットパターン重複検出方式
(2) The detection means detects a first logic of a significant bit pattern of the first set of bit patterns, a significant bit pattern of the second set of bit patterns, and a data bit pattern of the first set of bit patterns. when the product is equal to a second logical product of the significant bit patterns of the first set of bit patterns, the significant bit patterns of the second set of bit patterns, and the data bit patterns of the second set of bit patterns; 2. The bit pattern duplication detection method according to claim 1, further comprising identification means for identifying that both bit patterns are the same.
JP61305509A 1986-12-23 1986-12-23 Detection system for duplication of bit pattern Pending JPS63158628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61305509A JPS63158628A (en) 1986-12-23 1986-12-23 Detection system for duplication of bit pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61305509A JPS63158628A (en) 1986-12-23 1986-12-23 Detection system for duplication of bit pattern

Publications (1)

Publication Number Publication Date
JPS63158628A true JPS63158628A (en) 1988-07-01

Family

ID=17946010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61305509A Pending JPS63158628A (en) 1986-12-23 1986-12-23 Detection system for duplication of bit pattern

Country Status (1)

Country Link
JP (1) JPS63158628A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008167340A (en) * 2006-12-29 2008-07-17 Fujitsu Ltd Entry compression/expansion method and entry compressing/expanding apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008167340A (en) * 2006-12-29 2008-07-17 Fujitsu Ltd Entry compression/expansion method and entry compressing/expanding apparatus
US7933201B2 (en) 2006-12-29 2011-04-26 Fujitsu Limited Entry compression/decompression method and apparatus performing an entry compression and decompression

Similar Documents

Publication Publication Date Title
Agrawal et al. Exclusive test and its applications to fault diagnosis
KR920700496A (en) Vector Quantizer Codebook Processing Circuit
JPS63158628A (en) Detection system for duplication of bit pattern
JP4090988B2 (en) Digital system and error detection method for the digital system
Rushdi Map differentiation of switching functions
US5668525A (en) Comparator circuit using two bit to four bit encoder
Roy Diagnosis and fault equivalence in combinational circuits
JPS59121537A (en) Bit pattern collating circuit
US6134512A (en) System and method for representing physical environment
JP4435915B2 (en) Pattern generation method, pattern generator, memory test equipment
US3227865A (en) Residue checking system
US3371319A (en) Stored program, common control, selecting system
AU697281B2 (en) Data testing
Konijnenburg et al. Automatic test pattern generation for industrial circuits with restrictors
JP4151241B2 (en) Pin register circuit of semiconductor test equipment
JPS60183642A (en) Reed-solomon code error detector
UST928004I4 (en) Sto 8 sto
JPH05282362A (en) Data retrieving circuit
RU9982U1 (en) CONTROL DEVICE
JPH05242185A (en) Fault simulation device
US5140672A (en) Diagram generator having reference table which included reproducing and name assigning units for expanding circuit from lower to higher level
JP2564881B2 (en) Bit string comparison method
JPS592142A (en) Bit train retrieving system
JPH01184670A (en) Digital synchronous signal detecting circuit
JPS5842892B2 (en) error correction device