JPH0443732A - Pattern detection circuit - Google Patents

Pattern detection circuit

Info

Publication number
JPH0443732A
JPH0443732A JP2150972A JP15097290A JPH0443732A JP H0443732 A JPH0443732 A JP H0443732A JP 2150972 A JP2150972 A JP 2150972A JP 15097290 A JP15097290 A JP 15097290A JP H0443732 A JPH0443732 A JP H0443732A
Authority
JP
Japan
Prior art keywords
pattern
circuit
bit
pattern detection
bits
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
JP2150972A
Other languages
Japanese (ja)
Inventor
Hidehiro Yamashita
山下 英博
Toshiyuki Sugitani
俊幸 杉谷
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 JP2150972A priority Critical patent/JPH0443732A/en
Publication of JPH0443732A publication Critical patent/JPH0443732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To reduce the circuit scale comparatively small even when a pattern length is long by providing a means operating a pattern comparator circuit with an output of a pattern detection circuit so as to detect a pattern in total N+M bits. CONSTITUTION:When a head N-bit of a specific pattern is found out in an input data 3, a pattern detection circuit 1 outputs a head pattern detection signal 5 and a pattern comparator circuit 2 applies remaining M-bit pattern comparison of the specific pattern succeedingly by using the signal and outputs a pattern detection signal 6 when data of M-bit are all coincident. Thus, the pattern detection circuit in L(=N+M) bits is formed in this way. That is, the initial N bits of the input signal are used to apply a pattern detection of N sets of storage devices and succeeding M bits are used to make pattern detection by a pattern comparator circuit comprising of M-bit pattern generating circuit and one-bit comparator. Thus, even when the pattern length is long, the pattern is detected with a pattern detection circuit with a comparatively small circuit.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はデータ通信機器などのフレーム同期検出などに
用いられ、入力データ中に特定のパターンが存在すると
き信号を出力する、パターン検出回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a pattern detection circuit that is used for frame synchronization detection in data communication equipment, etc., and outputs a signal when a specific pattern exists in input data.

従来の技術 近年、データ伝送は、情報データの増大とともに高速伝
送線の発達などが進み、高速化、高精度化が同時に進行
している。とくに正確なデータ伝送が行われるために、
信号の特定パターンを確認しながら、伝送の送受信を行
うのが一般である。
BACKGROUND OF THE INVENTION In recent years, data transmission has become faster and more accurate due to the increase in information data and the development of high-speed transmission lines. In particular, in order to ensure accurate data transmission,
Generally, transmissions are sent and received while checking a specific pattern of signals.

第4図はそのパターン検出回路の従来例を示している。FIG. 4 shows a conventional example of the pattern detection circuit.

入力データ3は、パターン長と等しい個数の記憶器より
なるシフトレジスタ7に入力され、入力クロック4によ
り、順次後段へとシフトされる。
Input data 3 is input to a shift register 7 consisting of a number of memory devices equal to the pattern length, and is sequentially shifted to a subsequent stage by an input clock 4.

すべての記憶器の出力は、比較器8に入力され、すべて
の記憶器の出力がある特定のパターン(本例においては
、101011001101100o11o10111
のパターン)に一致したとき、パターン検出信号6が出
力される。
The outputs of all the stores are input to the comparator 8, and the outputs of all stores are given a certain pattern (in this example, 101011001101100o11o10111
pattern), a pattern detection signal 6 is output.

このように、入力データ中にある特定のパターンが存在
するとき、パターン検出信号を出力するパターン検出回
路を、シフトレジスタを用いて構成している。
In this way, a pattern detection circuit that outputs a pattern detection signal when a certain specific pattern exists in input data is configured using a shift register.

発明が解決しようとする課題 しかしながら、上記した従来のパターン検出回路では、
パターン長がLのパターンを検出しようとすると、L段
のシフトレジスタとLビットの比較器が必要となシ、パ
ターン長りが長くなるに比例して回路規模が大きくなる
という問題点を有していた。
Problems to be Solved by the Invention However, in the conventional pattern detection circuit described above,
When trying to detect a pattern with a pattern length of L, an L-stage shift register and an L-bit comparator are required, and there is a problem that the circuit scale increases in proportion to the pattern length. was.

本発明は上記問題に留意し、パターン長が長い場合にお
いても、比較的回路規模の小さいパターン検出回路を提
供することを目的とするものである。
The present invention has been made with the above-mentioned problems in mind, and an object of the present invention is to provide a pattern detection circuit with a relatively small circuit scale even when the pattern length is long.

課題を解決するための手段 上記の目的を達成するため、本発明ではパターンの最初
のNピノ)の検出用にだけ従来例と同じ形式のパターン
検出回路を用い、その後にNビットのパターン発生回路
と1ビツトの比較器よりなるパターン比較回路を縦続に
接続することによシ、パターン長n(二N+M)のパタ
ーン検出回路を構成したものである。
Means for Solving the Problems In order to achieve the above object, the present invention uses a pattern detection circuit of the same type as the conventional example only for detecting the first N pinos of a pattern, and then uses a pattern generation circuit for N bits. A pattern detection circuit with a pattern length n (2N+M) is constructed by cascading a pattern comparison circuit consisting of a 1-bit comparator and a 1-bit comparator.

作  用 上記構成の本発明のパターン検出回路は、入力された特
定パターンの信号の最初部分を、ビット同期などの初期
設定信号との誤認をしない程度のビット数がある従来の
N個の記憶器によるNビットパターン検出を行ない、後
半はNビットのパターン発生回路と1ビツトの比較器よ
りなるパターン比較回路でシリアルなパターン検出を行
っている。とくにパターン長の大きいパターンの検出を
するには回路規模が大きい従来型のパターン検出回路部
分を最小限に抑え、比較的小さい回路規模のパターン比
較回路で残シの部分を置き換えることにより、全体の回
路規模が従来例よシ小さい構成となる。
Operation The pattern detection circuit of the present invention having the above configuration can be used in conventional N memory devices having a sufficient number of bits to prevent the first part of an input specific pattern signal from being mistaken for an initial setting signal such as bit synchronization. In the second half, a pattern comparison circuit consisting of an N-bit pattern generation circuit and a 1-bit comparator performs serial pattern detection. In particular, when detecting a pattern with a large pattern length, the conventional pattern detection circuit, which has a large circuit scale, can be minimized, and the remaining part can be replaced with a pattern comparison circuit, which has a relatively small circuit scale. The circuit scale is smaller than that of the conventional example.

実施例 以下本発明の一実施例について、図面を謬照しながら説
明する。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

第1図に示すようにイア4成要素として1は従来例と同
じ形式のNビットのパターン検出回路、2はパターン発
生回路と1ビツトの比較器からなるNビットのパターン
比較回路であり、縦続に接続されて全体としてL(=N
+M)ビットのパターン検出回路を構成している。
As shown in Fig. 1, the four ear components 1 are an N-bit pattern detection circuit of the same type as the conventional example, and 2 is an N-bit pattern comparison circuit consisting of a pattern generation circuit and a 1-bit comparator, which are connected in cascade. is connected to L(=N
+M) bit pattern detection circuit.

このブロック図で、入力データ3中に特定パターンの先
頭のNビットを見つけるとパターン検出回路1は先頭パ
ターン検出信号5を出力し、この信号により、パターン
比較回路2が続けて特定パターンの残りのNビットのパ
ターン比較を行う。
In this block diagram, when the first N bits of a specific pattern are found in the input data 3, the pattern detection circuit 1 outputs the first pattern detection signal 5. Compare N-bit patterns.

Nビットのデータがすべて一致するとパターン検出信号
6を出力する。
When all N bits of data match, a pattern detection signal 6 is output.

このようにして、L(=N+M)ビットのパターン検出
回路を構成している。
In this way, an L (=N+M) bit pattern detection circuit is configured.

以上のように構成されたパターン検出回路について、さ
らに詳しく第2図を用いてその内容を説明する。
The pattern detection circuit configured as described above will be explained in more detail with reference to FIG. 2.

第2図は第1図の本発明の一実施例の詳細なブロック図
である。この回路は101oというプリアンプルの後に
続く1o1o110011o110oo1101011
1という長さ24の特定パターンを検出する回路となっ
ておシ、実質的に上記従来例の回路と同じ動作をする回
路となっている。すなわち、ビット数の分担としてはL
:24゜N二6.M:18となっている。
FIG. 2 is a detailed block diagram of one embodiment of the invention of FIG. This circuit follows the preamble 101o 1o1o110011o110oo1101011
This circuit detects a specific pattern having a length of 24, ie, 1, and operates substantially in the same manner as the circuit of the conventional example. In other words, the number of bits is shared by L
:24°N26. M: 18.

構成要素としては1は従来例と同じ形式で、長さが6ビ
ノ)のパターン(101011’)の検出回路であシ、
第1図のNビットが6ビツトで具体化されたものである
。2は残p18ビットのパターン比較回路であシ、これ
Ii第1図のNビットが18ビツトでの具体構成である
。14はパターン発生回路、13はパターン比較回路が
動作中かどうかを示す記憶器、9は6ピソトのカウンタ
であシ、初期値=14に設定されている。10はデコー
ド回路、111ri1ビットの比較器である。
As for the components, 1 has the same format as the conventional example, and is a detection circuit with a pattern (101011') with a length of 6 bino.
The N bits in FIG. 1 are implemented as 6 bits. 2 is a pattern comparison circuit with remaining p18 bits, and this is a specific configuration in which N bits in FIG. 1 are 18 bits. 14 is a pattern generation circuit, 13 is a memory indicating whether or not the pattern comparison circuit is in operation, and 9 is a 6-pisoto counter, which is set to an initial value of 14. 10 is a decoding circuit, and 111ri is a 1-bit comparator.

以下第2図および第3図のフローチャートを用いて構成
要素のお互いの関連動作を説明する。最初カウンタ9は
記憶器13のON出力によυ、動作が禁止されている。
The relative operations of the constituent elements will be explained below using the flowcharts of FIGS. 2 and 3. Initially, the counter 9 is prohibited from operating due to the ON output of the memory 13.

第3図a、bの入力データ信号4は入力クロック3によ
シバターン検出回路1に入力される。この回路は検出パ
ターン長が6ビットであることを除いて上記の従来例と
同じ形式になっておシ、データ中に特定パターンの先頭
部分6ビツト101011があると第3図Cのパターン
先頭検出信号6が出力される。
The input data signal 4 shown in FIGS. 3a and 3b is input to the shiba turn detection circuit 1 by the input clock 3. This circuit has the same format as the conventional example described above except that the detection pattern length is 6 bits.If the data contains the first 6 bits 101011 of a specific pattern, the beginning of the pattern shown in Figure 3C is detected. Signal 6 is output.

先頭パターン検出信号6が0レベルになると、記憶器1
3の記憶データが変化し、第3図dのQN出力をルベル
に変え、カウンタ9の動作を許可する。そこで、次の入
力クロック3の立ち下がりからカウンタ9は14,15
,16,17゜・・・・・・・・・、31と第3図eの
ごとくカウントを開始する。そのカウント値はデコード
回路10に入力され、デコードされて対応する第3図1
に示すようにデコード回路10の出力であるパターン信
号12(001101100011010111のパタ
ーン)を出力する。最終出力としてパターンの適合性を
チエツクする検出手段としての1ビツト比較器11は第
3図9のごとく出力されたパターン信号12と入力デー
タ4を比較し、違っていたらルベルを出力し、記憶器1
3の記憶データを変え、ふたたびカウンタ9の動作を禁
止し最初の状態に戻る。すべてのデータが一致しカウン
ト値が32になったら第3図りのパターン検出信号6が
出力される。
When the leading pattern detection signal 6 becomes 0 level, the memory 1
The stored data of 3 changes, changing the QN output of FIG. Therefore, from the falling edge of the next input clock 3, the counter 9 becomes 14, 15.
, 16, 17°..., 31 and start counting as shown in Figure 3e. The count value is input to the decoding circuit 10, decoded and corresponding to FIG.
As shown in the figure, a pattern signal 12 (pattern 001101100011010111) which is the output of the decoding circuit 10 is output. The 1-bit comparator 11, which serves as a detection means for checking the suitability of the pattern as a final output, compares the output pattern signal 12 with the input data 4 as shown in FIG. 1
3 is changed, and the operation of the counter 9 is prohibited again to return to the initial state. When all the data match and the count value reaches 32, the pattern detection signal 6 shown in the third diagram is output.

以上のようにして、6ビツトのパターン検出回路1と1
8ビツトのパターン比較回路2を用いて、24ビツトの
パターン検出回路を構成している。
As described above, 6-bit pattern detection circuits 1 and 1
A 24-bit pattern detection circuit is constructed using an 8-bit pattern comparison circuit 2.

このように、24ビツトパターンの検出を、従来よシ、
簡単な構成で実現できる。なお先頭パターン検出回路1
が担当し検出する先頭パターン長を6ビツトよりもっと
短く割り当てると、もつと回路規模が小さくなシ良いよ
うに思えるが、本実施例の場合、誤動作の危険をさける
ため、これ以上短くできない。つまり、先頭パターンを
10101の6ビツトに割当だ場合、データ伝送のビッ
ト同期など初期設定的な信号の前段に位置しているプリ
アンプル期間を含む1o1o1を先頭パターンとして検
出してしまい、そのために、特定パタンの検出を失敗し
てしまう危険があるOこのように先頭パターン長を何ビ
ットにするかは、検出するパターンに応じて決定する。
In this way, the detection of 24-bit patterns is now easier than before.
This can be achieved with a simple configuration. Note that the leading pattern detection circuit 1
It would seem that it would be better to reduce the circuit size by allocating the length of the leading pattern to be handled and detected to be shorter than 6 bits, but in the case of this embodiment, it cannot be made any shorter to avoid the risk of malfunction. In other words, if the leading pattern is assigned to 6 bits of 10101, 1o1o1, which includes the preamble period located before the initial setting signal such as bit synchronization of data transmission, will be detected as the leading pattern. There is a risk of failing to detect a specific pattern.The number of bits to be used as the length of the leading pattern is determined depending on the pattern to be detected.

発明の効果 以上の説明よシ明らかなように、本発明は入力信号の最
初のNビットはN個の記憶器のあるパターン検出を行い
、つづく、MビットはMビットのパターン発生回路と1
ビツトの比較器によるパターン比較回路でパターン検出
をすることにより従来例の回路ではたとえば記憶器を2
4個必要としていたが、本発明の回路では記憶器は先頭
パターン検出回路1に6個、パターン比較回路2に7個
の合計13個しか必要とせず、回路規模が縮小されてい
る。
Effects of the Invention As is clear from the above explanation, the present invention detects a pattern with N memories for the first N bits of an input signal, and then detects a pattern with an M bit pattern generation circuit for the M bits.
By detecting a pattern using a pattern comparison circuit using a bit comparator, conventional circuits can detect two memory devices, for example.
The circuit of the present invention requires only 13 memories, 6 for the leading pattern detection circuit 1 and 7 for the pattern comparison circuit 2, reducing the circuit scale.

この効果は検出するパターンの長さが長ければ長いほど
顕著になる。従来例の回路では、回路規模がパターンの
長さに比例して大きくなるのに対して、本発明の回路で
はそれほど回路規模は増大しない。
This effect becomes more pronounced as the length of the detected pattern becomes longer. In the conventional circuit, the circuit scale increases in proportion to the length of the pattern, whereas in the circuit of the present invention, the circuit scale does not increase so much.

以上のように本発明は、パターン長が長い場合において
も、比較的回路規模の小さいパターン検出回路を実現で
きるという効果を有するものであシ、実用上有効なるも
のである。
As described above, the present invention has the effect of realizing a pattern detection circuit with a relatively small circuit scale even when the pattern length is long, and is effective in practice.

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

第1図は本発明の一実施例のブロック図、第2図は同実
施例の詳細ブロック図、第3図は同実施例のタイミング
チャート、第4図は従来例のブロック図である。 1 ・・ パターン検出回路、2・・・・・・パターン
比較回路、7・・・・・・シフトレンスタ、8・・・・
比較器、11・・・・・・1ビツト比較器、14・・・
・・・パターン発生回路。 代理人の氏名 If理士 粟 野 重 孝 ほか1名Q
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a detailed block diagram of the embodiment, FIG. 3 is a timing chart of the embodiment, and FIG. 4 is a block diagram of a conventional example. 1... pattern detection circuit, 2... pattern comparison circuit, 7... shift lens star, 8...
Comparator, 11... 1-bit comparator, 14...
...Pattern generation circuit. Name of agent If Shigetaka Awano and 1 other person Q
)

Claims (1)

【特許請求の範囲】 N個の記憶器からなるN段のシフトレジスタと、上記N
個の記憶器の出力があるパターンと一致したときに出力
を発生するNビットの比較器よりなる、Nビットのパタ
ーン検出回路と、 Mビットのパターン発生回路と1ビットの比較器よりな
るMビットのパターン比較回路、 とを具備し、 上記パターン検出回路の出力により、前記パターン比較
回路を動作させることにより、合計でN+Mビットのパ
ターンを検出する検出手段を有するパターン検出回路。
[Claims] An N-stage shift register consisting of N memories;
an N-bit pattern detection circuit consisting of an N-bit comparator that generates an output when the outputs of two memory devices match a certain pattern; and an M-bit pattern detection circuit consisting of an M-bit pattern generation circuit and a 1-bit comparator. A pattern comparison circuit comprising: a detection means for detecting a pattern of N+M bits in total by operating the pattern comparison circuit based on the output of the pattern detection circuit.
JP2150972A 1990-06-08 1990-06-08 Pattern detection circuit Pending JPH0443732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2150972A JPH0443732A (en) 1990-06-08 1990-06-08 Pattern detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2150972A JPH0443732A (en) 1990-06-08 1990-06-08 Pattern detection circuit

Publications (1)

Publication Number Publication Date
JPH0443732A true JPH0443732A (en) 1992-02-13

Family

ID=15508469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2150972A Pending JPH0443732A (en) 1990-06-08 1990-06-08 Pattern detection circuit

Country Status (1)

Country Link
JP (1) JPH0443732A (en)

Similar Documents

Publication Publication Date Title
US6260152B1 (en) Method and apparatus for synchronizing data transfers in a logic circuit having plural clock domains
EP0886207B1 (en) Longest coincidence data detection using associative memory units having interleaved data
JPH07112192B2 (en) Frame identification pattern recognition method and apparatus
US5408476A (en) One bit error correction method having actual data reproduction function
JPH0443732A (en) Pattern detection circuit
US5675271A (en) Extended chip select reset apparatus and method
US6707396B2 (en) Device and method for parallel processing implementation of bit-stuffing/unstuffing and NRZI-encoding/decoding
US8165263B2 (en) Counting circuit and address counter using the same
US4815111A (en) Data receiving system
JPH0431211B2 (en)
US20100067635A1 (en) Measuring and regenerating a variable pulse width
JPH02192228A (en) Parity generation circuit
JPH04132976A (en) Test mode generating circuit
JPH05347651A (en) Pause time setting circuit between data frames
KR100270335B1 (en) Frame synchronization apparatus for rounding synchronization protection information
JP2586375B2 (en) Counter circuit with test function
SU842791A1 (en) Number comparing device
JP3012505B2 (en) Frame synchronization circuit
JP2593017B2 (en) Serial data transfer device
JPH0317257B2 (en)
JP2000092028A (en) Random error generating circuit
JPS63276915A (en) Timing signal generating circuit
JPH0422220A (en) Synchronous output circuit
JPH03108826A (en) Frame synchronization detection circuit
KR19980065271A (en) Asynchronous counter circuit