JPH05110541A - Pattern detecting circuit - Google Patents

Pattern detecting circuit

Info

Publication number
JPH05110541A
JPH05110541A JP3265680A JP26568091A JPH05110541A JP H05110541 A JPH05110541 A JP H05110541A JP 3265680 A JP3265680 A JP 3265680A JP 26568091 A JP26568091 A JP 26568091A JP H05110541 A JPH05110541 A JP H05110541A
Authority
JP
Japan
Prior art keywords
pattern
data
circuit
detecting
output
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.)
Withdrawn
Application number
JP3265680A
Other languages
Japanese (ja)
Inventor
Yuichi Hashimoto
雄一 橋本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3265680A priority Critical patent/JPH05110541A/en
Publication of JPH05110541A publication Critical patent/JPH05110541A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To realize the pattern detecting circuit of a small scale for detecting a pattern in input data at a high speed, with regard to the circuit for detecting a fact that the data inputted by an N bit unit continues the same pattern by a prescribed number of times, in a device for executing a processing by an N bit unit. CONSTITUTION:The circuit is constituted by providing a data converting means 10 for converting serial input data of N bits to N pieces of parallel data, a pattern non-coincidence detecting means 20 for comparing the present pattern P1 outputted from the data converting means 10, and patterns P2-Pn of a first prescribed number of stages, detecting a non-coincidence and outputting it, and a continuous coincidence detecting means 30 for detecting a fact that an output of the pattern non-coincidence detecting means 20 is not outputted continuously by a second prescribed number of stages (m).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はNビット単位で処理を行
う装置において、Nビット単位で入力されるデータが、
同一パターンを所定の回数連続したことを検出する回路
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for processing in units of N bits, in which data input in units of N bits is
The present invention relates to a circuit that detects that the same pattern has been repeated a predetermined number of times.

【0002】例えば、ディジタル同期端局装置内等にお
いて、装置内の処理効率を高めるためにバイト(8ビッ
ト)単位で処理する装置が増加している。そのため、装
置内部において、バイト単位のパターンで意味を持たせ
ることが多くなってきており、そのパターンを正確に検
出することが必要である。
For example, in a digital synchronous terminal device, etc., an increasing number of devices perform processing in units of bytes (8 bits) in order to improve the processing efficiency in the device. Therefore, it is becoming more and more important to give meaning to a byte-unit pattern inside the device, and it is necessary to accurately detect the pattern.

【0003】かかる、パターンを高速で検出できる小規
模の回路が要求されている。
There is a demand for a small-scale circuit capable of detecting a pattern at high speed.

【0004】[0004]

【従来の技術】図5は従来例を説明する図を示す。
(A)は従来例の構成を示し、図中の11は入力データ
の中の指定のバイトに書き込まれているパターンを抽出
するデータ抽出回路であり、20Aは抽出したパターン
の処理を行う処理装置(以下CPUと称する)、30A
は抽出したパターンを書き込むランダムアクセスメモリ
(以下RAMと称する)である。
2. Description of the Related Art FIG. 5 shows a diagram for explaining a conventional example.
(A) shows a configuration of a conventional example, 11 in the figure is a data extraction circuit for extracting a pattern written in a designated byte of input data, and 20A is a processing device for processing the extracted pattern. (Hereinafter referred to as CPU), 30A
Is a random access memory (hereinafter referred to as RAM) for writing the extracted pattern.

【0005】(B)はRAM30Aの内容を説明する図
である。ここでは、パイト単位のパターンに意味を持た
せた例であり、例えば、0、1、0、1、0、1、0、
1が12回繰り返されたときをパターンを検出するもの
であり、12段のデータを書き込む領域を有している。
(B) is a diagram for explaining the contents of the RAM 30A. Here, this is an example in which a pattern in units of pits has meaning, and for example, 0, 1, 0, 1, 0, 1, 0,
The pattern is detected when 1 is repeated 12 times, and has a region for writing data in 12 stages.

【0006】そこで、RAM30Aには、データ抽出回
路11で抽出した8ビットのパターンを書込み、次の8
ビットのパターンが入力されたときは、先に入力したパ
ターンを一段繰下げ、今回入力したパターンを最上段に
書き込む。
Therefore, the 8-bit pattern extracted by the data extraction circuit 11 is written in the RAM 30A, and the next 8 bits are written.
When a bit pattern is input, the previously input pattern is moved down by one step, and the currently input pattern is written in the uppermost step.

【0007】この様にして、RAM30AにはCPU2
0Aの制御により、常に最新の8ビットの12段のデー
タが書き込まれている。CPU20Aは新しいパターン
が書き込まれる毎に、各ビット毎に12段のデータを比
較し、すべてのビットが12段一致したときに、パター
ンを検出したとものとしてそのパターンを出力する。
In this way, the CPU 2 is stored in the RAM 30A.
The latest 8-bit 12-stage data is always written under the control of 0A. Each time a new pattern is written, the CPU 20A compares data of 12 stages for each bit, and when all the bits match 12 stages, the pattern is detected and the pattern is output.

【0008】[0008]

【発明が解決しようとする課題】上述の従来例では、パ
ターンの抽出はハードウエアで行い、パターンの連続性
の検出、パターンの種類の検出はソフトウェアで行って
いる。
In the above-mentioned conventional example, the extraction of patterns is performed by hardware, and the continuity of patterns and the type of patterns are detected by software.

【0009】近年の通信装置はデータ速度が高くなって
おり、しかも、ソフトウェアで制御されるものが多くな
ってきている。したがって、通信装置内のCPU20A
の負荷が増大し、ソフトウェアの処理速度が、装置が必
要とする処理速度に追いつけなくなるという問題が生じ
てきている。
In recent years, communication devices have been increasing in data rate, and more and more are being controlled by software. Therefore, the CPU 20A in the communication device
There is a problem that the processing load of the software increases and the processing speed of software cannot keep up with the processing speed required by the device.

【0010】そこで、装置全体の制御を行うCPU20
Aのソフトウェアの負荷をできるだけ軽減することが必
要となり、パターン検出もハードウエアで行うことが要
求されている。
Therefore, the CPU 20 for controlling the entire apparatus
It is necessary to reduce the load on the software of A as much as possible, and it is required to perform pattern detection by hardware.

【0011】本発明は、入力データ中のパターンを高速
で検出する小規模なパターン検出回路を実現しようとす
る。
The present invention seeks to realize a small-scale pattern detection circuit for detecting a pattern in input data at high speed.

【0012】[0012]

【課題を解決するための手段】図1は本発明の原理を説
明するブロック図である。図中の10はNビットのシリ
アル入力データをN本のパラレルデータに変換するデー
タ変換手段であり、20はデータ変換手段10の出力す
る現在のパターンP1と、第一の所定の段数のパターン
P2〜Pnを比較して、不一致を検出して出力するパタ
ーン不一致検出手段であり、30はパターン不一致検出
手段20の出力が、第2の所定の段数、m段連続して出
力されないことを検出する連続一致検出手段である。
FIG. 1 is a block diagram for explaining the principle of the present invention. In the figure, 10 is a data conversion means for converting N-bit serial input data into N parallel data, and 20 is a current pattern P1 output from the data conversion means 10 and a pattern P2 having a first predetermined number of stages. Is a pattern mismatch detection means for comparing and comparing Pn to Pn and outputting the detected mismatch, and 30 detects that the output of the pattern mismatch detection means 20 is not continuously output for a second predetermined number of stages, m stages. It is a continuous coincidence detecting means.

【0013】また、連続一致検出手段30は第2の所定
の段数mのシフトレジスタ32と、シフトレジスタ32
の各段の出力の否定論理和をとる否定論理和回路320
より構成する。
Further, the continuous coincidence detecting means 30 includes a shift register 32 having a second predetermined number of stages m and a shift register 32.
NOR circuit 320 for taking the NOR of the output of each stage of
It consists of.

【0014】[0014]

【作用】シリアル入力データをN本のパラレルデータに
変換する。このデータをパターン不一致検出手段20に
入力し、第1の所定の段数、n段の不一致を検出し、N
本のデータの中で1本でも不一致があったときは、不一
致検出信号を出力する。
Function: The serial input data is converted into N parallel data. This data is input to the pattern mismatch detection means 20 to detect mismatch of the first predetermined number of stages and n stages, and N
If even one of the data in the book has a mismatch, a mismatch detection signal is output.

【0015】この不一致検出信号は連続一致検出回路3
0に入力され、連続一致検出回路30で第2の所定の段
数m連続して出力されないことを検出して、(n+m−
1)段の同一パターンの連続を高速で検出できる回路を
小さい規模で構成できる。
This mismatch detection signal is a continuous match detection circuit 3
0, the continuous match detection circuit 30 detects that the second predetermined number of stages m is not continuously output, and outputs (n + m−
1) It is possible to configure a circuit on a small scale that can detect the continuation of the same pattern of stages at high speed.

【0016】[0016]

【実施例】図2は本発明の実施例を説明する図である。
本実施例はN=8、n=3、m=10の例で同一パター
ンが12フレーム連続したことを検出するものある。
FIG. 2 is a diagram for explaining an embodiment of the present invention.
The present embodiment is an example in which N = 8, n = 3, and m = 10, and detects that the same pattern continues for 12 frames.

【0017】図中の11は入力データ中の指定のバイト
を抽出するデータ抽出回路であり、12は8ビットのシ
リアルデータを8本のパラレルデータ入力変換する1→
8データ変換回路、21は連続3フレーム内での不一致
を検出したときに「ハイ」レベル(以下「H」と称す
る)を出力する3連続不一致検出回路、31は3連続不
一致検出回路21の出力が10回「ロウ」レベル(以下
「L」と称する)を連続したことを検出したときに
「H」を出力する10連続一致検出回路である。
Reference numeral 11 in the figure is a data extraction circuit for extracting a designated byte in the input data, and 12 is a conversion unit for converting 8-bit serial data into eight parallel data inputs 1 →
8 data conversion circuit, 21 outputs 3 high-level mismatch (hereinafter referred to as “H”) when detecting mismatches in 3 consecutive frames, 31 outputs 3 continuous mismatch detection circuit 21 Is a 10 consecutive coincidence detection circuit that outputs "H" when it is detected that the "low" level (hereinafter referred to as "L") is consecutive 10 times.

【0018】図3は本発明の実施例のタイムチャートを
示す。タイムチャートにより、図2の動作を説明する。
図2の丸付き数字は、図3のタイムチャートと同じ数字
を使用している。
FIG. 3 shows a time chart of the embodiment of the present invention. The operation of FIG. 2 will be described with reference to a time chart.
The circled numbers in FIG. 2 use the same numbers as in the time chart of FIG.

【0019】 データ抽出回路で抽出したバイト単位
のデータである。 ′のaはa1、a2、・・・・a8の8ビットから
なることを示す。b、cについても同様である。
It is data in byte units extracted by the data extraction circuit. It is shown that a of'is composed of 8 bits of a1, a2, ..., A8. The same applies to b and c.

【0020】 シリアルで入力されるa1〜a8の8
ビットのデータを1→8データ変換回路12で8本のパ
ラレルデータに変換した出力を示す。 −1〜3は3連続不一致検出回路21内のデータであ
り、−1は現フレームのデータ、−2は1フレーム
前のデータ、−3は2フレーム前のデータである。
8 of a1 to a8 input in serial
The output obtained by converting the bit data into eight parallel data by the 1 → 8 data conversion circuit 12 is shown. -1 to 3 are data in the three consecutive mismatch detection circuits 21, -1 is data of the current frame, -2 is data of one frame before, and -3 is data of two frames before.

【0021】 −1〜3を比較し1つでも不一致デ
ータがある場合には3連続不一致検出回路21から
「H」を出力する。 −1〜10は10連続一致検出回路31内のデータで
あり、の3連続不一致検出回路21の出力を1フレー
ム毎に10段シフトした出力である。
-1 to 3 are compared, and if there is even one mismatch data, "H" is output from the three consecutive mismatch detection circuits 21. -1 to 10 are data in the 10 consecutive match detection circuit 31, which are outputs obtained by shifting the output of the 3 consecutive mismatch detection circuit 21 by 10 stages for each frame.

【0022】 −1〜10を比較して、1つでも
「H」がある場合には10連続一致検出回路31から
「L」を出力する。 10連続一致検出回路31が10連続一致を検出し
たときに出力するパターンである。10連続一致を検出
できない場合には、最後に10連続一致を検出したパタ
ーンを出力する。
-1 to 10 are compared, and if there is even one "H", the 10 consecutive match detection circuit 31 outputs "L". This pattern is output when the 10 consecutive match detection circuit 31 detects 10 consecutive match. When 10 consecutive matches cannot be detected, the pattern in which the 10 consecutive matches are finally detected is output.

【0023】図4は本発明の実施例の10連続一致検出
回路を説明する図である。301〜310はシフトレジ
スタ32を構成するフリップフロップ回路(以下FF回
路と称する)であり、320は10入力の否定論理和回
路(以下NOR回路と称する)である。
FIG. 4 is a diagram for explaining a ten consecutive match detection circuit according to the embodiment of the present invention. Numerals 301 to 310 are flip-flop circuits (hereinafter referred to as FF circuits) configuring the shift register 32, and 320 is a 10-input NOR circuit (hereinafter referred to as NOR circuit).

【0024】この回路の動作は、3連続不一致検出回路
21の出力をFF回路301〜310で順次シフトし、
それぞれの出力をNOR回路320に入力することよ
り、10連続一致を検出したときに「H」を出力する。
このような構成により小規模でパターン検出回路を構成
できる。
In the operation of this circuit, the outputs of the three consecutive mismatch detection circuits 21 are sequentially shifted by the FF circuits 301 to 310,
By inputting each output to the NOR circuit 320, “H” is output when 10 consecutive matches are detected.
With such a configuration, the pattern detection circuit can be configured on a small scale.

【0025】[0025]

【発明の効果】本発明は、入力データ中の指定の位置の
データを抽出し、パターン検出を行う動作を高速で行う
回路を小規模な構成で実現することができる。
According to the present invention, it is possible to realize, with a small scale, a circuit for extracting data at a designated position in input data and performing pattern detection at high speed.

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

【図1】 本発明の原理を説明するブロック図FIG. 1 is a block diagram illustrating the principle of the present invention.

【図2】 本発明の実施例を説明する図FIG. 2 is a diagram illustrating an embodiment of the present invention.

【図3】 本発明の実施例のタイムチャートFIG. 3 is a time chart of an example of the present invention.

【図4】 本発明の実施例の10連続一致検出回路を説
明する図
FIG. 4 is a diagram for explaining a ten consecutive match detection circuit according to an embodiment of the present invention.

【図5】 従来例を説明する図FIG. 5 is a diagram illustrating a conventional example.

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

10 データ変換手段 11 データ抽出回路 12 1→8データ変換回路 20 パターン不一致検出手段 21 3連続不一致検出回路 20A CPU 30 連続一致検出手段 31 10連続一致検出回路 32 シフトレジスタ 30A RAM 301〜310 FF回路 320 否定論理和回路 10 data conversion means 11 data extraction circuit 12 1 → 8 data conversion circuit 20 pattern mismatch detection means 21 3 continuous mismatch detection circuit 20A CPU 30 continuous match detection means 31 10 continuous match detection circuit 32 shift register 30A RAM 301 to 310 FF circuit 320 NOR circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 Nビット単位で入力されるデータが、同
一パターンを所定の回数連続したことを検出する回路で
あって、 Nビットのシリアル入力データをN本のパラレルデータ
に変換するデータ変換手段(10)と、 前記データ変換手段(10)の出力する現在のパターン
(P1)と、第一の所定の段数のパターン(P2〜P
n)を比較して、不一致を検出して出力するパターン不
一致検出手段(20)と、 前記パターン不一致検出手段(20)の出力が、第2の
所定の段数(m)連続して出力されないことを検出する
連続一致検出手段(30)を備えたことを特徴とするパ
ターン検出回路。
1. A circuit for detecting that the data inputted in N-bit units continue the same pattern a predetermined number of times, and data conversion means for converting N-bit serial input data into N parallel data. (10), the current pattern (P1) output by the data conversion means (10), and the first predetermined number of patterns (P2 to P).
n), the pattern mismatch detection means (20) for detecting and outputting the mismatch, and the output of the pattern mismatch detection means (20) are not continuously output for the second predetermined stage number (m). A pattern detection circuit comprising a continuous coincidence detection means (30) for detecting
【請求項2】 前記連続一致検出手段(30)は第2の
所定の段数(m)のシフトレジスタ(32)と前記シフ
トレジスタ(32)の各段の否定論理和をとる否定論理
和回路(320)より構成したことを特徴とする請求項
1記載のパターン検出回路。
2. The continuous coincidence detection means (30) is a second predetermined number of stages (m) of shift registers (32) and a NOR circuit (N) for taking the NOR of each stage of the shift register (32). 320), the pattern detection circuit according to claim 1.
JP3265680A 1991-10-15 1991-10-15 Pattern detecting circuit Withdrawn JPH05110541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3265680A JPH05110541A (en) 1991-10-15 1991-10-15 Pattern detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3265680A JPH05110541A (en) 1991-10-15 1991-10-15 Pattern detecting circuit

Publications (1)

Publication Number Publication Date
JPH05110541A true JPH05110541A (en) 1993-04-30

Family

ID=17420514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3265680A Withdrawn JPH05110541A (en) 1991-10-15 1991-10-15 Pattern detecting circuit

Country Status (1)

Country Link
JP (1) JPH05110541A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2729519A1 (en) * 1995-01-13 1996-07-19 Nec Corp Coincidence detector for two successive digital words

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2729519A1 (en) * 1995-01-13 1996-07-19 Nec Corp Coincidence detector for two successive digital words
US5684849A (en) * 1995-01-13 1997-11-04 Nec Corporation Digital circuit for detecting coincidence of two successive words of incoming serial data and a method thereof
AU693296B2 (en) * 1995-01-13 1998-06-25 Nec Corporation A digital circuit for detecting coincidence of two successive words of incoming serial data and a method thereof

Similar Documents

Publication Publication Date Title
US5408476A (en) One bit error correction method having actual data reproduction function
JPH05110541A (en) Pattern detecting circuit
US8711018B2 (en) Providing a feedback loop in a low latency serial interconnect architecture
JP2766133B2 (en) Parallel-serial data conversion circuit
JP4945800B2 (en) Demultiplexer circuit
JP2768287B2 (en) Match detection circuit
JPH05191297A (en) Serial/parallel conversion circuit
JP2538095B2 (en) Synchronous protection circuit
JPH0710047B2 (en) Zero error detection circuit
JP2811671B2 (en) Synchronous signal detection device
JPS63245032A (en) High speed frame synchronizing system
JP2001034457A (en) Adding and subtracting circuit
JPH0227828A (en) Destuff circuit
JPH08265168A (en) Serial-parallel conversion circuit
JP3038948B2 (en) Frame synchronization circuit
JP3115756B2 (en) Demultiplexer circuit
JPH0430234A (en) Error detection circuit
JPH1065661A (en) Frame synchronizing protection circuit
JPH06197155A (en) Character string reception detection circuit
JPS59167742A (en) Code converting device of code for information interchange
JPS61275974A (en) Integrating device
JPH05316091A (en) Synchronization detection circuit
JP2003069392A (en) Pattern generating apparatus and communication device
JP2000188591A (en) Received data error detection circuit
JPH0317257B2 (en)

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990107