[go: up one dir, main page]

JPH0981367A - Pattern detection circuit - Google Patents

Pattern detection circuit

Info

Publication number
JPH0981367A
JPH0981367A JP23675695A JP23675695A JPH0981367A JP H0981367 A JPH0981367 A JP H0981367A JP 23675695 A JP23675695 A JP 23675695A JP 23675695 A JP23675695 A JP 23675695A JP H0981367 A JPH0981367 A JP H0981367A
Authority
JP
Japan
Prior art keywords
pattern
signal
counter
input
digital signal
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
JP23675695A
Other languages
Japanese (ja)
Inventor
Naotaka Yamashita
直孝 山下
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP23675695A priority Critical patent/JPH0981367A/en
Publication of JPH0981367A publication Critical patent/JPH0981367A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

(57)【要約】 【課題】 1と0とが同数ずつ交互に現れる交番パター
ンを検出する回路の回路規模を小さくする。 【解決手段】 第1カウンタ10は、入力デジタル信号
のビットレートに等しい周波数のクロックをカウントす
る。デジタル信号はXOR回路20の一方端子に入力さ
れる。XOR回路20は、入力デジタル信号と第1カウ
ンタ10のQC 出力との排他的論理和を求める。XOR
回路20の出力は第1カウンタ10のリセット端子に入
力される。入力デジタル信号が検出対象の8ビット交番
パターンに一致している間は、第1カウンタ10のQC
出力は入力デジタル信号の反転パターンとなるので、X
OR回路20の出力は1となり、第1カウンタ10はリ
セットされずにカウントを続ける。入力デジタル信号が
8ビットにわたって交番パターンに一致すると、第1カ
ウンタ10に桁上がりが生じる。この第1カウンタ10
の桁上げ信号を交番パターンの検出信号として用いる。
(57) Abstract: A circuit size of a circuit for detecting an alternating pattern in which 1 and 0 alternately appear by the same number is reduced. A first counter 10 counts a clock having a frequency equal to the bit rate of an input digital signal. The digital signal is input to one terminal of the XOR circuit 20. The XOR circuit 20 calculates the exclusive OR of the input digital signal and the QC output of the first counter 10. XOR
The output of the circuit 20 is input to the reset terminal of the first counter 10. While the input digital signal matches the 8-bit alternating pattern to be detected, QC of the first counter 10
The output is an inverted pattern of the input digital signal, so X
The output of the OR circuit 20 becomes 1, and the first counter 10 continues counting without being reset. When the input digital signal matches the alternating pattern over 8 bits, carry occurs in the first counter 10. This first counter 10
The carry signal of is used as the detection signal of the alternating pattern.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル信号から
所定のパターンを検出するパターン検出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern detection circuit for detecting a predetermined pattern from a digital signal.

【0002】[0002]

【従来の技術】交番パターンとは、1と0とがnビット
(nは整数)ずつ交互に現れる信号パターンを指す。例
えば、“1111000011110000…”のパタ
ーンは1と0とが4ビットずつ交互に現れる交番パター
ンである。また、広義には、ある特定のパターンとその
反転パターンとがn回ずつ交互に現れる信号パターンも
交番パターンと呼ぶことがある。この場合、例えば“1
110111000010001…”のパターンは、
“1110”とその反転である“0001”とが2回ず
つ交互に現れる交番パターンである。
2. Description of the Related Art An alternating pattern means a signal pattern in which 1 and 0 alternately appear every n bits (n is an integer). For example, the pattern “1111000011110000 ...” is an alternating pattern in which 1 and 0 alternately appear in 4 bits. In a broad sense, a signal pattern in which a specific pattern and its inverted pattern alternate n times each may be called an alternating pattern. In this case, for example, "1
The pattern "110111000010001 ..."
This is an alternating pattern in which "1110" and its inverse "0001" appear alternately twice.

【0003】デジタル通信装置間の制御情報(例えば警
報信号など)の伝達には、ビットエラーなどによる誤検
出の少なさやクロック抽出の容易さなどの理由から、こ
のような交番パターンを持った信号が用いられることが
多い。
A signal having such an alternating pattern is used for transmitting control information (such as an alarm signal) between digital communication devices because of the small number of erroneous detections due to bit errors and the ease of clock extraction. Often used.

【0004】一般に、デジタル通信装置には、このよう
な交番パターンの制御信号を検出するための制御信号検
出回路が設けられている。
Generally, a digital communication device is provided with a control signal detection circuit for detecting a control signal having such an alternating pattern.

【0005】このような制御信号検出回路の従来例とし
て、デジタル通信装置間の警報信号を検出する警報検出
回路を説明する。図7は、このような警報検出回路の従
来例を示す図である。この回路は、1と0とが4ビット
ずつ交互に現れる8ビットの交番パターン“11110
000”(以下、「交番パターンA」と呼ぶ)を検出
し、この交番パターンAが16回連続入力されたときに
警報を出力するための回路である。
As a conventional example of such a control signal detecting circuit, an alarm detecting circuit for detecting an alarm signal between digital communication devices will be described. FIG. 7 is a diagram showing a conventional example of such an alarm detection circuit. This circuit has an 8-bit alternating pattern "11110" in which 1 and 0 appear alternately in 4 bits.
This circuit detects "000" (hereinafter referred to as "alternating pattern A") and outputs an alarm when the alternating pattern A is continuously input 16 times.

【0006】この従来回路は、パターン検出部100及
び連続一致検出部120から構成されている。
This conventional circuit comprises a pattern detecting section 100 and a continuous coincidence detecting section 120.

【0007】パターン検出部100は、入力されるデジ
タル信号から交番パターンAを検出するための部分であ
り、8ビットのシリアルイン/パラレルアウト型のシフ
トレジスタ102と8入力のAND回路104から構成
されている。シフトレジスタ102に入力された8ビッ
トのデジタル信号は並列的にAND回路104に出力さ
れる。ここで、AND回路104の前半4入力には、シ
フトレジスタ102の前半の各ビットの値がそのまま入
力され、AND回路104の後半4入力には、シフトレ
ジスタ102の後半の各ビットの反転値が入力される。
従って、シフトレジスタ102に入力された8ビットの
信号が交番パターンAに一致している場合には、AND
回路104の出力は1になる。AND回路104の出力
は、連続一致検出部120に入力される。なお、図7に
は図示していないが、このパターン検出部100には、
AND回路104の出力が1になると次の8ビットが入
力されるまでAND回路104の出力を保持する回路が
設けられている。
The pattern detecting section 100 is a section for detecting an alternating pattern A from an input digital signal, and is composed of an 8-bit serial-in / parallel-out type shift register 102 and an 8-input AND circuit 104. ing. The 8-bit digital signal input to the shift register 102 is output in parallel to the AND circuit 104. Here, the value of each bit of the first half of the shift register 102 is directly input to the four inputs of the first half of the AND circuit 104, and the inverted value of each bit of the second half of the shift register 102 is input to the four inputs of the second half of the AND circuit 104. Is entered.
Therefore, when the 8-bit signal input to the shift register 102 matches the alternating pattern A, AND
The output of the circuit 104 becomes 1. The output of the AND circuit 104 is input to the continuous match detection unit 120. Although not shown in FIG. 7, the pattern detection unit 100 includes
A circuit is provided which holds the output of the AND circuit 104 until the next 8 bits are input when the output of the AND circuit 104 becomes 1.

【0008】一方、連続一致検出部120は、8ビット
のシリアルイン/パラレルアウト型のシフトレジスタ1
22、8入力のAND回路124、4入力の負論理AN
D回路126、及びRSフリップフロップ128から構
成されている。
On the other hand, the continuous coincidence detecting section 120 includes an 8-bit serial-in / parallel-out type shift register 1
22, 8-input AND circuit 124, 4-input negative logic AN
It is composed of a D circuit 126 and an RS flip-flop 128.

【0009】シフトレジスタ122は、前記AND回路
104の出力が入力され、入力デジタル信号のビット周
期の8倍の周期のシフトパルスによって駆動される。シ
フトレジスタ122の並列出力は、AND回路124及
び負論理AND回路126にそれぞれ入力される。
The output of the AND circuit 104 is input to the shift register 122, and the shift register 122 is driven by a shift pulse having a cycle eight times the bit cycle of the input digital signal. The parallel outputs of the shift register 122 are input to the AND circuit 124 and the negative logic AND circuit 126, respectively.

【0010】AND回路124は、入力デジタル信号が
交番パターンAに8回連続して一致したことを検出する
ための回路であり、シフトレジスタ122の8出力がす
べて1になったときに論理値1を出力する。一方、負論
理AND回路126は、入力デジタル信号に交番パター
ンと不一致のパターンが4回連続したことを検出するた
めの回路であり、シフトレジスタ122の末尾4出力が
すべて0になったときに論理値1を出力する。そして、
AND回路124及び負論理AND回路126の出力
は、RSフリップフロップ128のS端子及びR端子に
それぞれ入力される。
The AND circuit 124 is a circuit for detecting that the input digital signal coincides with the alternating pattern A eight times in succession, and has a logical value of 1 when all 8 outputs of the shift register 122 become 1. Is output. On the other hand, the negative logic AND circuit 126 is a circuit for detecting that an alternating pattern and a non-matching pattern have continued four times in the input digital signal, and is logical when all the four tail outputs of the shift register 122 become zero. The value 1 is output. And
The outputs of the AND circuit 124 and the negative logic AND circuit 126 are input to the S terminal and the R terminal of the RS flip-flop 128, respectively.

【0011】RSフリップフロップ128は、警報の検
出・解除を行うための回路である。Q出力が0のときは
警報非検出状態であり、Q出力が1になると警報検出状
態となる。このQ出力は、デジタル通信装置の制御部に
伝送され、制御部ではこのQ出力の状態に応じてエラー
メッセージ表示等の所定の処理を行う。
The RS flip-flop 128 is a circuit for detecting and canceling an alarm. When the Q output is 0, the alarm is not detected, and when the Q output is 1, the alarm is detected. The Q output is transmitted to the control unit of the digital communication device, and the control unit performs a predetermined process such as displaying an error message according to the state of the Q output.

【0012】すなわち、AND回路124の出力が1に
なったとき、すなわち交番パターンAが8回連続して入
力されたときに、RSフリップフロップ128のQ出力
は1になる。そして、Q出力がいったん1になると、負
論理AND回路126の出力が1になるまで、すなわち
交番パターンAと不一致のビット列が4回連続して入力
されるまで警報検出状態は維持され、不一致パターンが
4回連続すると警報状態が解除される。
That is, when the output of the AND circuit 124 becomes 1, that is, when the alternating pattern A is continuously input eight times, the Q output of the RS flip-flop 128 becomes 1. Then, once the Q output becomes 1, the alarm detection state is maintained until the output of the negative logic AND circuit 126 becomes 1, that is, until a bit string that does not match the alternating pattern A is input four times in a row, and the alarm detection state is maintained. If is repeated four times, the alarm status is released.

【0013】このように、従来の制御信号検出回路は、
交番パターンの検出及びパターン連続の検出をシフトレ
ジスタを用いて行っていた。
As described above, the conventional control signal detection circuit is
The shift register is used to detect the alternating pattern and the pattern continuity.

【0014】[0014]

【発明が解決しようとする課題】しかしながら、上述し
た交番パターン検出のための従来の回路構成は、シフト
レジスタを用いるため、回路規模が大きくなりやすく、
PLD(Programmable Logic Device )等への収容が困
難であるという問題があった。
However, since the conventional circuit configuration for detecting the alternating pattern described above uses the shift register, the circuit scale tends to be large,
There is a problem in that it is difficult to accommodate in a PLD (Programmable Logic Device) or the like.

【0015】すなわち、シフトレジスタを用いる構成の
場合、mビットの交番パターンを検出するにはm桁のシ
フトレジスタが必要となり、このようなシフトレジスタ
を構成するにはそのm個のフリップフロップが必要とな
る。従って、検出対象の交番パターンのビット数が大き
くなるとフリップフロップの数が大きくなり、回路規模
が著しく増大してしまう。
That is, in the case of a configuration using a shift register, an m-digit shift register is required to detect an m-bit alternating pattern, and m flip-flops are required to configure such a shift register. Becomes Therefore, if the number of bits of the alternating pattern to be detected becomes large, the number of flip-flops becomes large, and the circuit scale remarkably increases.

【0016】本発明は、このような問題を解決するため
になされたものであり、フリップフロップ数が少なく回
路規模が小さいパターン検出回路を提供することを目的
とする。
The present invention has been made to solve such a problem, and an object thereof is to provide a pattern detection circuit having a small number of flip-flops and a small circuit scale.

【0017】[0017]

【課題を解決するための手段】前述の目的を達成するた
めに、本発明に係るパターン検出回路の第1の構成は、
入力されるデジタル信号から、1と0とがnビットずつ
交互に出現する所定の交番パターンを検出するパターン
検出回路であって、入力デジタル信号に対して所定の同
期関係を有するクロックをカウントし、前記所定交番パ
ターンに対応したパターンを有する参照信号を出力する
カウンタと、前記参照信号及び前記入力デジタル信号が
入力され、両者を比較することにより前記入力デジタル
信号が前記所定交番パターンに一致しているか否かを検
出し、前記入力デジタル信号が前記所定交番パターンに
対して不一致となったときに前記カウンタにリセット信
号を供給するリセット信号生成部と、前記カウンタのカ
ウント値が前記入力デジタル信号のビット周期単位で2
nとなったときにパターン検出信号を出力するパターン
検出信号生成部と、を有する。なお、本明細書におい
て、nは1以上の整数を表すものとする。
In order to achieve the above-mentioned object, the first configuration of the pattern detection circuit according to the present invention is
A pattern detection circuit for detecting a predetermined alternating pattern in which 1 and 0 alternately appear every n bits from an input digital signal, counting a clock having a predetermined synchronization relationship with the input digital signal, A counter that outputs a reference signal having a pattern corresponding to the predetermined alternating pattern, the reference signal and the input digital signal are input, and whether the input digital signal matches the predetermined alternating pattern by comparing the two A reset signal generator that detects whether or not the input digital signal does not match the predetermined alternating pattern and supplies a reset signal to the counter; and the count value of the counter is a bit of the input digital signal. 2 per cycle
and a pattern detection signal generation unit that outputs a pattern detection signal when it becomes n. In this specification, n represents an integer of 1 or more.

【0018】第1の構成では、入力されてくるデジタル
信号の各ビットが所定交番パターンに一致しているか否
かを、参照信号と入力デジタル信号とを比較することに
より判別する。参照信号は、所定交番パターンに対応す
るパターンになるように生成する。この参照信号として
は、例えば、所定交番パターンの前半部nビットが検出
されるまで即ちカウンタのカウント値がn(入力デジタ
ル信号のビット周期単位に換算した場合。以下同様)に
なるまでは1(0)で、カウント値がnになったことを
トリガとして値が反転し、カウント値が2nまでは0
(1)となるようなパターンを用いることができる。こ
のような参照信号は、カウンタ内部の各フリップフロッ
プの状態値を利用して生成することができる。リセット
信号生成部は、このような参照信号と入力デジタル信号
とを比較し、入力デジタル信号が所定交番パターンに一
致しているか否かを判別する。参照信号と入力デジタル
信号との比較は、例えば、両者の排他的論理和あるいは
一致(inclusive AND)をとることにより行うことが
できる。
In the first configuration, it is determined by comparing the reference signal and the input digital signal whether each bit of the input digital signal matches the predetermined alternating pattern. The reference signal is generated so as to have a pattern corresponding to the predetermined alternating pattern. As this reference signal, for example, 1 (until the first half n bits of the predetermined alternating pattern are detected, that is, until the count value of the counter becomes n (when converted to the bit period unit of the input digital signal; the same applies below)) In 0), the value is inverted with the count value becoming n as a trigger, and 0 is displayed until the count value reaches 2n.
A pattern such as (1) can be used. Such a reference signal can be generated by using the state value of each flip-flop in the counter. The reset signal generator compares such a reference signal with the input digital signal to determine whether the input digital signal matches the predetermined alternating pattern. The reference signal and the input digital signal can be compared, for example, by taking an exclusive OR or an inclusive AND of the two.

【0019】リセット信号生成部は、入力デジタル信号
と所定交番パターンとが不一致となったときに、カウン
タに対してリセット信号を供給する。カウンタは、リセ
ット信号が入力されるとカウント値が0に戻される。す
なわち、この構成では、入力デジタル信号と所定交番パ
ターンとが一致している間はカウンタはカウントアップ
を続け、両者が不一致となるとカウンタがリセットされ
る。
The reset signal generator supplies a reset signal to the counter when the input digital signal and the predetermined alternating pattern do not match. The count value of the counter is returned to 0 when the reset signal is input. That is, in this configuration, the counter continues to count up while the input digital signal and the predetermined alternating pattern match, and when the two do not match, the counter is reset.

【0020】したがって、カウンタは、入力デジタル信
号が所定交番パターンの前半の値1(0)に一致し始め
たところからクロックのカウントアップを開始し(なぜ
なら、入力デジタル信号が所定交番パターンの前半の値
に一致するまでは、両者は不一致であり、カウンタがリ
セットされるからである)、両者が一致している間はカ
ウントを続ける。そして、カウンタのカウント値が入力
デジタル信号のビット周期単位で2nとなると、入力デ
ジタル信号が2nビットにわたって所定交番パターンに
一致したことになる。これは、2nビットの入力デジタ
ル信号が所定交番パターンに完全にパターン一致したこ
とを意味する。パターン検出信号生成部は、カウンタの
カウント値に基づき入力デジタル信号と所定交番パター
ンとの2nビットにわたる一致を検出したときにパター
ン検出信号を出力する。
Therefore, the counter starts counting up the clock when the input digital signal starts to match the value 1 (0) in the first half of the predetermined alternating pattern (because the input digital signal is in the first half of the predetermined alternating pattern). Until the values match, the two do not match and the counter is reset.) While the two match, counting continues. Then, when the count value of the counter becomes 2n in the bit cycle unit of the input digital signal, it means that the input digital signal matches the predetermined alternating pattern over 2n bits. This means that the 2n-bit input digital signal completely matches the predetermined alternating pattern. The pattern detection signal generator outputs a pattern detection signal when it detects a match of 2n bits between the input digital signal and the predetermined alternating pattern based on the count value of the counter.

【0021】このような構成によれば、従来のシフトレ
ジスタを用いる構成と比較して、同じビット数の交番パ
ターンを検出するのに必要なフリップフロップをはるか
に少なくすることができる。従来構成では、Nビットの
交番パターンを検出するにはN個のフリップフロップが
必要であったが、同じ交番パターンを検出するのに本発
明の第1の構成ではlog2 Nのオーダーの数のフリッ
プフロップ数で済む。したがって、この構成によれば、
パターン検出回路の回路規模を縮小することができ、P
LDへの収容が容易になる。
According to such a configuration, the number of flip-flops required to detect the alternating pattern having the same number of bits can be far reduced as compared with the configuration using the conventional shift register. In the conventional configuration, N flip-flops are required to detect an N-bit alternating pattern. However, in order to detect the same alternating pattern, in the first configuration of the present invention, the number of log 2 N order is required. The number of flip-flops is enough. Therefore, according to this configuration,
The circuit scale of the pattern detection circuit can be reduced, and P
It becomes easy to store in the LD.

【0022】また、本発明の第2の構成は、前記第1の
構成において、前記カウンタのカウント値が前記入力デ
ジタル信号のビット周期単位でnになった時に、前記所
定交番パターンの前半部nビットが検出されたことを示
す前半部検出信号を出力するパターン前半部検出部と、
前記入力デジタル信号及び前半部検出信号が入力され、
前記前半部検出信号が入力された後もなお前記前半部の
論理値を有するデジタル信号が入力されている間は、前
記カウンタに対してカウント停止信号を出力するカウン
ト停止信号生成部と、を有し、前記カウンタは、前記カ
ウント停止信号が入力されている間はカウント値を保持
したままカウント動作を一時停止することを特徴とす
る。
Also, in the second configuration of the present invention, in the first configuration, when the count value of the counter reaches n in the bit cycle unit of the input digital signal, the first half n of the predetermined alternating pattern is obtained. A pattern first half detection unit that outputs a first half detection signal indicating that a bit has been detected,
The input digital signal and the first half detection signal are input,
A count stop signal generation unit that outputs a count stop signal to the counter while the digital signal having the logical value of the first half is still input after the first half detection signal is input. However, the counter temporarily stops the counting operation while holding the count value while the count stop signal is input.

【0023】この第2の構成は、交番パターンの直前の
信号の影響で検出漏れが起こることを防止するための構
成である。
The second structure is a structure for preventing omission of detection due to the influence of the signal immediately before the alternating pattern.

【0024】第2の構成では、所定交番パターンの前半
部の論理値を有する信号がnビットにわたって検出され
たのち、更に同じ論理値を有する信号が続く場合は、カ
ウント値を保持したままカウンタの動作を一時停止し、
後半部の論理値を有する信号が入力されたときにカウン
タの動作を再開する。この構成によれば、入力デジタル
信号において交番パターンの前半の値を有する信号に続
いて交番パターンが入力される場合にも、その交番パタ
ーンを検出することが可能になる。
In the second configuration, when the signal having the logical value of the first half of the predetermined alternating pattern is detected for n bits and then the signal having the same logical value continues, the counter value is held while the count value is held. Pause the operation,
The operation of the counter is restarted when a signal having the logical value of the latter half is input. According to this configuration, even when the alternating pattern is input subsequent to the signal having the first half value of the alternating pattern in the input digital signal, the alternating pattern can be detected.

【0025】また、本発明の第3の構成は、入力された
デジタル信号から、単位パターンとその反転パターンと
が同数ずつ交互に現れる2nビットの所定の交番パター
ンを検出するパターン検出回路であって、入力デジタル
信号に対して所定の同期関係を有するクロックをカウン
トし、1と0とがnビットずつ交互に現れるパターンを
有する参照信号を出力するカウンタと、前記参照信号及
び前記入力デジタル信号が入力され、両信号の排他的論
理和を求めることにより前記入力デジタル信号が前記所
定交番パターンに一致している間は前記入力デジタル信
号を前記単位パターンの繰り返しに変換して出力するパ
ターン変換部と、前記パターン変換部の出力を前記単位
パターンの繰り返しと比較し、両者が不一致となったと
きに前記カウンタにリセット信号を供給するリセット信
号生成部と、前記カウンタのカウント値が前記入力デジ
タル信号のビット周期単位で2nになったときにパター
ン検出信号を出力するパターン検出信号生成部と、を有
する。
A third structure of the present invention is a pattern detection circuit for detecting a predetermined 2n-bit alternating pattern in which the same number of unit patterns and inverted patterns thereof alternately appear from the input digital signal. , A counter that counts clocks having a predetermined synchronization relationship with the input digital signal and outputs a reference signal having a pattern in which 1 and 0 alternately appear every n bits, and the reference signal and the input digital signal are input A pattern conversion unit that converts the input digital signal into repetitions of the unit pattern and outputs the input digital signal while the input digital signal matches the predetermined alternating pattern by obtaining the exclusive OR of the two signals; The output of the pattern conversion unit is compared with the repetition of the unit pattern, and when the two do not match, the counter A reset signal generating unit for supplying a reset signal, and a pattern detection signal generator outputting a pattern detection signal when the count value of the counter becomes 2n in the bit cycle unit of the input digital signal.

【0026】第3の構成は、単位パターンとその反転パ
ターンとが同数ずつ交互に現れる2nビットの所定の交
番パターンを検出するためのものである。ここで対象と
なる交番パターンは、例えば“11011101001
00010”のようなパターンであり、これは、単位パ
ターン“1101”とその反転パターン“0010”と
が2回ずつ現れる16ビット(n=8)の交番パターン
である。
The third structure is for detecting a predetermined alternating pattern of 2n bits in which the same number of unit patterns and their inverted patterns are alternately appeared. The target alternating pattern here is, for example, “110111101001.
This is a pattern such as 00010 ", which is a 16-bit (n = 8) alternating pattern in which the unit pattern" 1101 "and its inverted pattern" 0010 "appear twice each.

【0027】この第3の構成も、第1の構成と同様、入
力デジタル信号が所定交番パターンに一致している間、
入力デジタル信号に同期したクロックをカウンタでカウ
ントし、そのカウント値が入力デジタル信号のビット周
期単位で2nとなったときに所定交番パターンが検出さ
れたと判定するものである。
In the third configuration, as in the first configuration, while the input digital signal matches the predetermined alternating pattern,
The clock synchronized with the input digital signal is counted by the counter, and when the count value becomes 2n in the bit period unit of the input digital signal, it is determined that the predetermined alternating pattern is detected.

【0028】第3の構成では、単位パターンと0(1)
との排他的論理和と、反転パターンと1(0)との排他
的論理和とが、共に単位パターン(あるいは反転パター
ン)になることを利用する。すなわち、上記交番パター
ンの例でいえば、単位パターン“1101”と“000
0”との排他的論理和は“1101”となるが、単位パ
ターンの反転“0010”と“1111”との排他的論
理和も同じ“1101”となる。
In the third configuration, the unit pattern and 0 (1)
It is used that both the exclusive OR of and the exclusive OR of the inversion pattern and 1 (0) become a unit pattern (or inversion pattern). That is, in the example of the alternating pattern, the unit patterns “1101” and “000” are used.
The exclusive OR with "0" is "1101", but the exclusive OR with the inversions "0010" and "1111" of the unit pattern is also "1101".

【0029】したがって、カウンタの内部状態に基づい
て1と0とがnビットずつ交互に現れる参照信号を生成
し、パターン変換部にてこの参照信号と入力デジタル信
号との排他的論理和をとれば、入力デジタル信号が所定
交番パターンに一致している間は、そのパターン変換部
の出力は、単位パターン(あるいはその反転パターン)
の繰り返しになる。そこで、リセット信号生成部では、
パターン変換部の出力信号と単位パターン(あるいは反
転パターン)とを比較し、両者が不一致となったときに
カウンタに対してリセット信号を発する。
Therefore, if a reference signal in which 1 and 0 alternately appear every n bits is generated on the basis of the internal state of the counter, and the pattern conversion section takes an exclusive OR of the reference signal and the input digital signal. , While the input digital signal matches the predetermined alternating pattern, the output of the pattern conversion unit is the unit pattern (or its inverted pattern).
Will be repeated. Therefore, in the reset signal generator,
The output signal of the pattern conversion unit is compared with the unit pattern (or inverted pattern), and when the two do not match, a reset signal is issued to the counter.

【0030】この構成によれば、小さい回路規模で単位
パターンとその反転パターンとが同数ずつ交互に現れる
交番パターンを検出することができる。
With this configuration, it is possible to detect an alternating pattern in which the same number of unit patterns and their inverted patterns alternately appear with a small circuit scale.

【0031】また、本発明の第4の構成は、入力された
デジタル信号から、nビットの第1及び第2のパターン
が交互に現れる所定のパターンを検出するパターン検出
回路であって、前記入力デジタル信号が入力され、前記
入力デジタル信号から第1パターンを検出したときには
論理値1(0)の信号をnビットの間連続して出力し、
前記入力デジタル信号から第2パターンを検出したとき
には論理値0(1)の信号をnビットの間連続して出力
する前処理回路と、入力デジタル信号に対して所定の同
期関係を有するクロックをカウントし、1と0とがnビ
ットずつ交互に現れる出力パターンを出力するカウンタ
と、前記出力パターンに基づいた参照信号及び前記前処
理回路の出力信号が入力され、両者が不一致となったと
きに前記カウンタにリセット信号を供給するリセット信
号生成部と、前記カウンタのカウント値が前記入力デジ
タル信号のビット周期単位で2nとなったときに前記所
定パターンを検出したことを示すパターン検出信号を出
力するパターン検出信号生成部と、を有する。
A fourth structure of the present invention is a pattern detecting circuit for detecting a predetermined pattern in which first and second patterns of n bits alternately appear from an input digital signal. When a digital signal is input and the first pattern is detected from the input digital signal, a signal of logical value 1 (0) is continuously output for n bits,
When a second pattern is detected from the input digital signal, a preprocessing circuit that continuously outputs a signal having a logical value 0 (1) for n bits and a clock having a predetermined synchronization relationship with the input digital signal are counted. However, a counter that outputs an output pattern in which 1 and 0 alternately appear every n bits, a reference signal based on the output pattern, and an output signal of the preprocessing circuit are input, and when the two do not match, A reset signal generator that supplies a reset signal to a counter, and a pattern that outputs a pattern detection signal indicating that the predetermined pattern has been detected when the count value of the counter becomes 2n in a bit cycle unit of the input digital signal. And a detection signal generation unit.

【0032】この構成では、前処理回路により第1パタ
ーン及び第2パターンをそれぞれnビットの1(0)及
び0(1)に変換する。このため、入力デジタル信号が
nビットの第1及び第2のパターンが交互に現れる所定
パターンを有する場合、前処理回路の出力信号は、1と
0とがnビットずつ交互に出現する交番パターンとな
る。そして、この交番パターンを第1の構成と同様の原
理で検出することにより、所定パターンを検出する。
In this configuration, the preprocessing circuit converts the first pattern and the second pattern into n-bit 1 (0) and 0 (1), respectively. Therefore, when the input digital signal has a predetermined pattern in which the first and second patterns of n bits alternately appear, the output signal of the preprocessing circuit is an alternating pattern in which 1 and 0 alternately appear every n bits. Become. Then, a predetermined pattern is detected by detecting this alternating pattern according to the same principle as the first configuration.

【0033】また、本発明の第5の構成は、上記第1〜
第4の構成において、更に、前記パターン検出信号生成
部及びリセット信号生成部の出力に接続され、前記パタ
ーン検出信号をカウントし、前記リセット信号が入力さ
れるとカウント値がクリアされる第2カウンタと、前記
第2カウンタのカウント値が所定の設定値になったとき
に連続一致信号を出力する連続一致信号生成部と、を有
する。
The fifth constitution of the present invention is the first to the above.
In the fourth configuration, a second counter that is further connected to the outputs of the pattern detection signal generation unit and the reset signal generation unit, counts the pattern detection signal, and clears the count value when the reset signal is input. And a continuous coincidence signal generation unit that outputs a continuous coincidence signal when the count value of the second counter reaches a predetermined set value.

【0034】この第5の構成によれば、第2カウンタに
よってパターン検出信号をカウントすることにより、入
力デジタル信号において所定交番パターンが所定回数連
続したことを検出することができる。
According to the fifth configuration, by counting the pattern detection signal by the second counter, it is possible to detect that the predetermined alternating pattern has continued a predetermined number of times in the input digital signal.

【0035】また、本発明の第6の構成は、上記第5の
構成において、更に、前記連続一致信号生成部における
設定値を可変する一致連続数設定値可変手段を設けたこ
とを特徴とする。
Further, a sixth structure of the present invention is characterized in that, in the above-mentioned fifth structure, a coincidence consecutive number set value varying means for varying the set value in the consecutive coincidence signal generating section is further provided. .

【0036】この第6の構成によれば、連続一致信号を
発するための条件となる交番パターン連続回数を変更す
ることが可能になる。
According to the sixth structure, it is possible to change the number of times of alternating pattern continuation, which is a condition for issuing the continuous coincidence signal.

【0037】また、本発明の第7の構成は、上記第5又
は第6の構成において、更に、前記パターン検出信号生
成部に接続され、前記入力デジタル信号に対して所定の
同期関係を有するクロックをカウントし、前記パターン
検出信号が入力されるとカウント値がクリアされる第3
カウンタと、前記第3カウンタのカウント値が前記入力
デジタル信号のビット周期単位で2nとなったときに前
記入力デジタル信号が前記所定交番パターンに不一致で
あったことを示すパターン不一致信号を出力するパター
ン不一致信号生成部と、前記パターン検出信号生成部と
パターン不一致信号生成部とに接続され、前記パターン
不一致信号をカウントし、前記パターン検出信号が入力
されるとカウント値がクリアされる第4カウンタと、前
記第4カウンタのカウント値が所定の設定値になったと
きに連続不一致信号を出力する連続不一致信号生成部
と、前記連続一致信号生成部及び連続不一致信号生成部
とに接続され、前記連続一致信号が入力されると警報検
出信号を出力し、前記連続不一致信号が入力されるまで
警報検出信号を出力し続ける警報検出部と、を有する。
A seventh configuration of the present invention is the clock according to the fifth or sixth configuration, which is further connected to the pattern detection signal generating section and has a predetermined synchronization relationship with the input digital signal. And the count value is cleared when the pattern detection signal is input.
A pattern for outputting a pattern mismatch signal indicating that the input digital signal does not match the predetermined alternating pattern when the count value of the counter and the third counter becomes 2n in the bit cycle unit of the input digital signal. A non-coincidence signal generation unit, a fourth counter connected to the pattern detection signal generation unit and the pattern non-coincidence signal generation unit, for counting the pattern non-coincidence signal, and for clearing the count value when the pattern detection signal is input; Connected to the continuous mismatch signal generation unit that outputs a continuous mismatch signal when the count value of the fourth counter reaches a predetermined set value, and the continuous mismatch signal generation unit and the continuous mismatch signal generation unit, An alarm detection signal is output when a match signal is input, and an alarm detection signal is output until the continuous disagreement signal is input. Having an alarm detector to continue, the.

【0038】この第7の構成では、入力デジタル信号に
おいて所定パターンが所定回数以上連続した場合に警報
検出信号を発し、所定パターンでないビット列が所定回
数以上連続した場合に警報検出信号を解除する。
In the seventh structure, the alarm detection signal is issued when the predetermined pattern continues for a predetermined number of times or more in the input digital signal, and the warning detection signal is released when the bit string which is not the predetermined pattern continues for the predetermined number of times or more.

【0039】第7の構成では、入力デジタル信号が所定
パターンに一致しなかったことを第3カウンタにより検
出する。この第3カウンタは入力デジタル信号に対して
所定の同期関係を有するクロックをカウントし、パター
ン検出信号が入力されるとカウント値がクリアされる。
したがって、第3カウンタがクリアされずにそのカウン
ト値が2nになった場合、それまでに入力された2nビ
ットのデジタル信号が所定パターンに一致しなかったこ
とを意味する。そこで、パターン不一致信号生成部は、
第3カウンタのカウント値が2nになったことを検出し
て、パターン不一致信号を出力する。
In the seventh configuration, the third counter detects that the input digital signal does not match the predetermined pattern. The third counter counts clocks having a predetermined synchronous relationship with the input digital signal, and the count value is cleared when the pattern detection signal is input.
Therefore, when the third counter is not cleared and its count value becomes 2n, it means that the 2n-bit digital signal input so far does not match the predetermined pattern. Therefore, the pattern mismatch signal generation unit
It detects that the count value of the third counter has reached 2n and outputs a pattern mismatch signal.

【0040】第4カウンタは、このパターン不一致信号
をカウントする。そして、連続不一致信号生成部は、第
4カウンタのカウント値が所定の設定値になったときに
連続不一致信号を出力する。そして、警報検出部は、連
続一致信号が入力されると警報検出信号を出力し、連続
不一致信号が入力されるまで警報検出信号を出力し続け
る。
The fourth counter counts this pattern mismatch signal. Then, the continuous disagreement signal generation unit outputs the continuous disagreement signal when the count value of the fourth counter reaches a predetermined set value. The alarm detection unit outputs the alarm detection signal when the continuous coincidence signal is input, and continues to output the alarm detection signal until the continuous disagreement signal is input.

【0041】この構成では、所定パターンが所定回数以
上連続して入力された場合に初めて警報検出信号が発せ
られ、またいったん発せられた警報検出信号は、所定パ
ターンと不一致のパターンが所定回数以上連続して入力
されなければ停止できないので、警報の誤検出を防止す
ることができる。
In this configuration, the alarm detection signal is first issued when the predetermined pattern is continuously input a predetermined number of times or more, and the alarm detection signal once issued has a pattern that does not match the predetermined pattern a predetermined number of times or more. If it is not input, the alarm cannot be stopped, so that false alarm detection can be prevented.

【0042】また、本発明の第8の構成は、上記第7の
構成において、前記連続不一致信号生成部における設定
値を可変する不一致連続数設定値可変手段を設けたこと
を特徴とする。
An eighth structure of the present invention is characterized in that, in the above-mentioned seventh structure, a mismatch continuous number set value changing means for changing the set value in the continuous mismatch signal generating section is provided.

【0043】この第8の構成によれば、連続不一致信号
を発するための条件となる交番パターン不一致連続回数
を変更することが可能になる。
According to the eighth structure, it is possible to change the number of consecutive alternating pattern pattern mismatches, which is a condition for issuing the continuous mismatch signal.

【0044】[0044]

【発明の実施の形態】以下、本発明に係るパターン検出
回路の実施の形態を図面に基づいて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a pattern detection circuit according to the present invention will be described below with reference to the drawings.

【0045】実施形態1.図1は、本発明に係るパター
ン検出回路の第1の実施形態の回路構成を示す説明図で
ある。図1の回路は、1と0とが4ビットずつ交互に出
現する交番パターンA“11110000”が8回連続
して入力されたときに警報検出信号を発し、交番パター
ンAとは異なる8ビットのパターンが4回連続して入力
されたときに警報検出信号を解除するための回路構成を
示している。
Embodiment 1. FIG. 1 is an explanatory diagram showing a circuit configuration of a first embodiment of a pattern detection circuit according to the present invention. The circuit of FIG. 1 issues an alarm detection signal when an alternating pattern A “111100” in which 1 and 0 alternately appear in 4 bits is input eight times in a row, and an 8 bit different from the alternating pattern A is generated. The circuit configuration for canceling the alarm detection signal when the pattern is input four times in succession is shown.

【0046】図に示すように、カウンタ10〜16に
は、それぞれ入力デジタル信号のビットレートに等しい
周波数のクロック(CLK)が入力される。カウンタ1
0〜16は、このクロックをカウントする。カウンタ1
0〜16のカウント動作は、イネーブル端子E及びリセ
ット端子Rの入力によって制御される。すなわち、各カ
ウンタは、E端子の入力が“1”の間クロックをカウン
トし、E端子の入力が0の間はクロックをカウントしな
い。また、R端子の入力が“1”である場合、カウンタ
はクロックの立上がりで初期値にリセットされる。な
お、本構成ではカウンタ10及び14は常にカウント可
能状態であるので、図1ではカウンタ10及び14のE
端子の図示を省略している。
As shown in the figure, each of the counters 10 to 16 is supplied with a clock (CLK) having a frequency equal to the bit rate of the input digital signal. Counter 1
0 to 16 count this clock. Counter 1
The counting operation of 0 to 16 is controlled by the inputs of the enable terminal E and the reset terminal R. That is, each counter counts clocks while the input of the E terminal is "1" and does not count clocks when the input of the E terminal is 0. When the input to the R terminal is "1", the counter is reset to the initial value at the rising edge of the clock. In this configuration, since the counters 10 and 14 are always in a countable state, the counters 10 and 14 have E in FIG.
Illustration of terminals is omitted.

【0047】この回路構成では、XOR回路20と第1
のカウンタ10とにより、入力デジタル信号と検出対象
の交番パターンAとの一致を検出する。まず、この交番
パターン検出のための構成について説明する。
In this circuit configuration, the XOR circuit 20 and the first
The counter 10 detects the coincidence between the input digital signal and the alternating pattern A to be detected. First, a configuration for detecting this alternating pattern will be described.

【0048】この構成におけるパターン検出の原理は、
入力デジタル信号と交番パターンAとを1ビットずつ比
較していき、両者の一致をカウンタでカウントし、両者
が8ビット連続して一致した場合に、それまで入力され
た8ビットのデジタル信号が交番パターンAに一致した
と判定するというものである。
The principle of pattern detection in this configuration is as follows.
The input digital signal and the alternating pattern A are compared bit by bit, the coincidence between them is counted by a counter, and when both coincide with each other for 8 consecutive bits, the 8-bit digital signal input up to that time is alternated. It is determined that the pattern A is matched.

【0049】この回路構成では、第1カウンタ10のデ
コード出力に基づき交番パターンAの反転パターンとな
る参照信号を生成する。この実施形態においては、第1
カウンタ10は3ビットバイナリカウンタであり、この
第1カウンタ10の最上位ビットのデコード出力QC を
参照信号として利用する。そして、XOR回路20にて
参照信号と入力デジタル信号との排他的論理和をとるこ
とにより、入力デジタル信号と交番パターンAとがビッ
トごとに一致しているかを調べる。XOR回路20の出
力は、入力デジタル信号が交番パターンAに一致してい
る間は“1”になり、両者が不一致になると“0”とな
る。したがって、このXOR回路20の出力を反転して
第1カウンタ10のR端子に入力すれば、第1カウンタ
10は入力デジタル信号と交番パターンが一致している
間クロック(CLK)をカウントする構成となる。ここ
で、クロックは入力デジタル信号のビットレートと等し
い周波数を有しているので、この第1カウンタ10のカ
ウント値が8になった場合、それまでに入力された8ビ
ットのデジタル信号列が交番パターンAに一致していた
と判定できる。この場合、第1カウンタ10は3ビット
のカウンタであるため、カウント値が8になったときに
桁上げが生じる。そこで、この桁上げ信号(CO)を交
番パターンAが検出されたことを示す信号(以下、パタ
ーン検出信号と呼ぶ)として用いる。
In this circuit configuration, the reference signal which is the inverted pattern of the alternating pattern A is generated based on the decoded output of the first counter 10. In this embodiment, the first
The counter 10 is a 3-bit binary counter, and the decode output QC of the most significant bit of the first counter 10 is used as a reference signal. Then, the XOR circuit 20 obtains the exclusive OR of the reference signal and the input digital signal to check whether the input digital signal and the alternating pattern A match each other. The output of the XOR circuit 20 becomes "1" while the input digital signal matches the alternating pattern A, and becomes "0" when they do not match. Therefore, if the output of the XOR circuit 20 is inverted and input to the R terminal of the first counter 10, the first counter 10 counts the clock (CLK) while the alternating pattern matches the input digital signal. Become. Here, since the clock has a frequency equal to the bit rate of the input digital signal, when the count value of the first counter 10 becomes 8, the 8-bit digital signal sequence input up to that time is alternated. It can be determined that the pattern A matches. In this case, since the first counter 10 is a 3-bit counter, a carry occurs when the count value reaches 8. Therefore, this carry signal (CO) is used as a signal indicating that the alternating pattern A is detected (hereinafter referred to as a pattern detection signal).

【0050】逆に、入力デジタル信号があるビットにお
いて交番パターンAと不一致になった場合は、その時点
でXOR回路20の出力は“0”となる。すると、第1
カウンタ10のR入力が“1”となって、第1カウンタ
10が初期状態(QA =QB=QC =0)にリセットさ
れる。
On the contrary, when the input digital signal does not match the alternating pattern A at a certain bit, the output of the XOR circuit 20 becomes "0" at that time. Then, the first
The R input of the counter 10 becomes "1", and the first counter 10 is reset to the initial state (QA = QB = QC = 0).

【0051】以上の処理の流れを図2を参照して説明す
る。
The flow of the above processing will be described with reference to FIG.

【0052】図2は、第1カウンタ10及びXOR回路
20による交番パターンAの検出動作の一例を表すタイ
ムチャートである。第1カウンタ10は初期状態がQA
=QB =QC =0と設定されているので、図2に示すよ
うに、参照信号a(=QC )は最初は論理値“0”とな
っている。よって、入力デジタル信号の論理値が“0”
である間はXOR回路20の出力bが“0”となる。し
たがって、第1カウンタ10のR入力は“1”となり、
第1カウンタ10はクロック(CLK)の立上がりごと
に初期状態にリセットされる。時刻t1 になって入力デ
ジタル信号の論理値が“1”になると、XOR回路20
の出力bが“1”となるため、第1カウンタ10のR入
力が0となって第1カウンタ10はクロック(CLK)
のカウントを開始する。
FIG. 2 is a time chart showing an example of the detection operation of the alternating pattern A by the first counter 10 and the XOR circuit 20. The initial state of the first counter 10 is QA
Since = QB = QC = 0, the reference signal a (= QC) initially has the logical value "0", as shown in FIG. Therefore, the logical value of the input digital signal is "0"
The output b of the XOR circuit 20 is "0" during the period. Therefore, the R input of the first counter 10 becomes "1",
The first counter 10 is reset to the initial state each time the clock (CLK) rises. When the logical value of the input digital signal becomes "1" at time t1, the XOR circuit 20
Output b becomes "1", the R input of the first counter 10 becomes 0, and the first counter 10 clocks (CLK).
Start counting.

【0053】図2の例では、入力デジタル信号は、時刻
t1 以降“11110000”と変化する。時刻t1 か
らt2 までは、参照信号aの値が“0”であるのに対し
入力信号の値は“1”なので、XOR回路20の出力b
は“1”となり、第1カウンタ10はカウントアップを
続ける。時刻t2 になると、第1カウンタ10はそれま
でに4クロックをカウントしたため、最上位ビットQC
の値が“1”となり、参照信号aの値が“0”から
“1”に変わる。時刻t2 〜t4 までは、参照信号aの
値が“1”であるのに対し入力信号の値が“0”なの
で、やはりXOR回路20の出力bは“1”のままとな
り、第1カウンタ10はカウントアップを続ける。そし
て、時刻t3 の8つめのクロックの立上がりで、CO出
力(図2の信号c)が“1”となる。このCO出力が、
パターン検出信号として第2カウンタ12に供給され
る。
In the example of FIG. 2, the input digital signal changes to "11110000" after time t1. From time t1 to t2, the value of the reference signal a is "0" while the value of the input signal is "1". Therefore, the output b of the XOR circuit 20
Becomes "1", and the first counter 10 continues to count up. At time t2, since the first counter 10 has counted 4 clocks by then, the most significant bit QC
Becomes "1", and the value of the reference signal a changes from "0" to "1". From time t2 to t4, the value of the reference signal a is "1" while the value of the input signal is "0". Therefore, the output b of the XOR circuit 20 remains "1", and the first counter 10 Keeps counting up. Then, at the rising edge of the eighth clock at time t3, the CO output (signal c in FIG. 2) becomes "1". This CO output is
The pattern detection signal is supplied to the second counter 12.

【0054】そして、時刻t4 では、QC =0に戻って
いるので、参照信号aの値も“0”になっている。一
方、この例では、入力デジタル信号は、時刻t4 以降
“110…”と変化する。したがって、時刻t5 までは
XOR回路20の出力bは“1”のままであり、第1カ
ウンタ10はカウントアップ動作を行う。
At time t4, since QC = 0, the value of the reference signal a also becomes "0". On the other hand, in this example, the input digital signal changes to “110 ...” After time t4. Therefore, the output b of the XOR circuit 20 remains "1" until the time t5, and the first counter 10 performs the count-up operation.

【0055】ところが、時刻t5 になると、入力デジタ
ル信号が“0”になってしまい、交番パターンAとの一
致関係が崩れる。すると、XOR回路20の出力bが
“0”となるため、第1カウンタ10のR入力が“1”
となる。このため、第1カウンタ10は、クロックに同
期して初期状態にリセットされる。
However, at time t5, the input digital signal becomes "0", and the coincidence with the alternating pattern A is broken. Then, since the output b of the XOR circuit 20 becomes "0", the R input of the first counter 10 becomes "1".
Becomes Therefore, the first counter 10 is reset to the initial state in synchronization with the clock.

【0056】このように、図1に示す回路構成によれ
ば、第1カウンタ10とXOR回路20との働きによ
り、入力デジタル信号から交番パターンAを検出するこ
とができる。従来のシフトレジスタを用いたパターン検
出法では、8ビットの交番パターンの検出のためのシフ
トレジスタを構成するのに8つのフリップフロップが必
要であったが、この構成によれば、カウンタに3つのフ
リップフロップが必要なだけであり、フリップフロップ
数が大幅に削減される。より一般にいえば、、2mビッ
トの交番パターンの検出の場合、シフトレジスタで検出
回路を構成すると2m 個のフリップフロップが必要とな
るが、この実施形態の回路構成によれば、m個のフリッ
プフロップで済む。
As described above, according to the circuit configuration shown in FIG. 1, the alternating pattern A can be detected from the input digital signal by the functions of the first counter 10 and the XOR circuit 20. In the conventional pattern detection method using the shift register, eight flip-flops are required to configure the shift register for detecting the 8-bit alternating pattern. According to this configuration, the counter has three flip-flops. Only flip-flops are needed, and the number of flip-flops is greatly reduced. More generally speaking, in the case of detecting a 2 m- bit alternating pattern, if the detection circuit is configured by a shift register, 2 m flip-flops are required. According to the circuit configuration of this embodiment, m number of flip-flops are required. All you need is a flip-flop.

【0057】以上、実施形態1における交番パターン検
出の動作について説明した。次に、交番パターンAの検
出に基づく警報検出の動作について説明する。
The operation of alternating pattern detection in the first embodiment has been described above. Next, an alarm detection operation based on the detection of the alternating pattern A will be described.

【0058】この実施形態では、警報の誤検出を防ぐた
めに、交番パターンAが8回連続して入力されたときに
初めて警報検出信号を発する構成をとっている。このた
め、この実施形態では、第2カウンタ12によって、入
力デジタル信号における交番パターンAの連続回数をカ
ウントする。
In this embodiment, in order to prevent erroneous detection of an alarm, the alarm detection signal is first issued when the alternating pattern A is continuously input eight times. Therefore, in this embodiment, the second counter 12 counts the number of consecutive alternating patterns A in the input digital signal.

【0059】第2カウンタ12は、第1カウンタ10の
CO出力に基づきカウントを行う。第1カウンタ10の
CO出力は、第2カウンタ12のE端子に入力される。
第2カウンタ12は、第1カウンタ10のCO出力が
“1”になっている間のみカウント可能(イネーブル)
状態となり、その間クロック(CLK)のカウントを行
う。前述したように第1カウンタ10のCO出力は交番
パターンAを1パターン検出するごとに1クロック周期
だけ論理値“1”になるので、第2カウンタ12のカウ
ント値は、交番パターンAが1パターン検出されるごと
に1ずつ増加する。この例では、第2カウンタ12は3
ビットのバイナリカウンタである。したがって、第2カ
ウンタ12の初期値を0に設定すれば、第2カウンタ1
2のカウント値が8になったとき、すなわち入力デジタ
ル信号において交番パターンAが8回連続して検出され
たときにCO出力が“1”となる。
The second counter 12 counts based on the CO output of the first counter 10. The CO output of the first counter 10 is input to the E terminal of the second counter 12.
The second counter 12 can count (enable) only while the CO output of the first counter 10 is "1".
In this state, the clock (CLK) is counted during that time. As described above, the CO output of the first counter 10 becomes the logical value "1" for one clock cycle every time one pattern of the alternating pattern A is detected. Therefore, the count value of the second counter 12 is one pattern of the alternating pattern A. It is incremented by 1 each time it is detected. In this example, the second counter 12 is 3
It is a binary counter of bits. Therefore, if the initial value of the second counter 12 is set to 0, the second counter 1
When the count value of 2 becomes 8, that is, when the alternating pattern A is detected eight times in the input digital signal, the CO output becomes "1".

【0060】この第2カウンタ12のCO出力は、警報
検出回路30に入力される。警報検出回路30はRSフ
リップフロップから構成されており、第2カウンタ12
のCO出力はS端子に入力される。したがって、交番パ
ターンAが8回連続すると警報検出回路30のQ出力が
“1”となる。この論理値“1”のQ出力が警報検出信
号となる。このQ出力は、デジタル通信装置の制御部に
伝送され、制御部ではこのQ出力の状態に応じてエラー
メッセージ表示等の所定の処理を行う。
The CO output of the second counter 12 is input to the alarm detection circuit 30. The alarm detection circuit 30 is composed of an RS flip-flop, and has a second counter 12
CO output of is input to the S terminal. Therefore, when the alternating pattern A is repeated eight times, the Q output of the alarm detection circuit 30 becomes "1". The Q output of this logical value "1" serves as an alarm detection signal. The Q output is transmitted to the control unit of the digital communication device, and the control unit performs a predetermined process such as displaying an error message according to the state of the Q output.

【0061】なお、第2カウンタ12の桁上がりの前
に、入力デジタル信号と交番パターンAとの不一致が検
出された場合、第2カウンタ12をリセットする必要が
ある。このため、この実施形態1は、XOR回路20の
出力の反転を第2カウンタ12のリセット端子(R)に
入力する構成となっている。
If a mismatch between the input digital signal and the alternating pattern A is detected before the carry of the second counter 12, it is necessary to reset the second counter 12. Therefore, the first embodiment has a configuration in which the inversion of the output of the XOR circuit 20 is input to the reset terminal (R) of the second counter 12.

【0062】次に、このようにして生成された警報検出
信号を解除するための構成について説明する。この実施
形態では、ビットエラー等により誤って警報が解除され
ることを防ぐために、交番パターンAでないパターンが
4回連続して入力されたときに初めて警報検出信号を解
除する構成をとっている。
Next, a configuration for canceling the alarm detection signal generated in this way will be described. In this embodiment, in order to prevent the alarm from being erroneously released due to a bit error or the like, the alarm detection signal is released only when a pattern other than the alternating pattern A is continuously input four times.

【0063】このため、この実施形態1では、第3カウ
ンタ14によって交番パターンAでないパターン(以
下、非交番パターンと呼ぶ)を検出し、第4カウンタに
よってその非交番パターンの4回連続を検出する。
Therefore, in the first embodiment, the third counter 14 detects a pattern other than the alternating pattern A (hereinafter referred to as a non-alternating pattern), and the fourth counter detects four consecutive non-alternating patterns. .

【0064】第3カウンタ14は、第1カウンタ10同
様、3ビットバイナリカウンタであり、クロック(CL
K)をカウントする。第3カウンタ14のR端子には、
第1カウンタ10のCO出力が入力される。したがっ
て、第3カウンタ14のカウント値が8になった場合、
それまでに入力された8ビットのデジタル信号が交番パ
ターンAに一致しなかったことを意味する。なぜなら、
もし入力された8ビットのデジタル信号が交番パターン
Aに一致していれば、その一致が検出された時点で第1
カウンタ10のCO出力が“1”となるので、これによ
って第3カウンタ14がリセットされるからである。
Like the first counter 10, the third counter 14 is a 3-bit binary counter and has a clock (CL
K) is counted. At the R terminal of the third counter 14,
The CO output of the first counter 10 is input. Therefore, when the count value of the third counter 14 becomes 8,
This means that the 8-bit digital signal input so far did not match the alternating pattern A. Because
If the input 8-bit digital signal matches the alternating pattern A, the first pattern is detected when the match is detected.
This is because the CO output of the counter 10 becomes "1", which resets the third counter 14.

【0065】この第3カウンタ14のCO出力は、第4
カウンタ16のE端子に入力される。第4カウンタ16
は、前述の第2カウンタ12と同様の動作で非交番パタ
ーンの連続回数をカウントする。ここで、第4カウンタ
16は2ビットバイナリカウンタであり、第4カウンタ
16のカウント値が4になったとき、すなわち入力デジ
タル信号において非交番パターンAが4回連続したとき
に、CO出力が“1”となる。
The CO output of the third counter 14 is the fourth
It is input to the E terminal of the counter 16. 4th counter 16
Counts the number of consecutive non-alternating patterns by the same operation as the second counter 12 described above. Here, the fourth counter 16 is a 2-bit binary counter, and when the count value of the fourth counter 16 becomes 4, that is, when the non-alternating pattern A continues four times in the input digital signal, the CO output is " 1 ”.

【0066】この第4カウンタ16のCO出力は、警報
検出回路30のR端子に入力される。したがって、警報
検出信号発信中において、入力デジタル信号に非交番パ
ターンAが4回連続したときには、警報検出回路30の
Q出力が“0”となり、警報検出信号が解除される。
The CO output of the fourth counter 16 is input to the R terminal of the alarm detection circuit 30. Therefore, during transmission of the alarm detection signal, when the non-alternating pattern A continues four times in the input digital signal, the Q output of the alarm detection circuit 30 becomes "0" and the alarm detection signal is released.

【0067】なお、入力デジタル信号が交番パターンA
と一致した場合にこの第4カウンタ16のカウント値を
リセットするために、第1カウンタ10のCO出力が第
4カウンタ16のR端子に入力される。
The input digital signal is an alternating pattern A.
In order to reset the count value of the fourth counter 16 when it coincides with, the CO output of the first counter 10 is input to the R terminal of the fourth counter 16.

【0068】以上、本発明の実施形態1について説明し
た。この実施形態1によれば、従来よりも小さい回路規
模で交番パターンの検出、及び警報検出信号の設定・解
除を行うことが可能になる。
The first embodiment of the present invention has been described above. According to the first embodiment, it becomes possible to detect the alternating pattern and set / cancel the alarm detection signal with a circuit scale smaller than the conventional one.

【0069】なお、以上の例は8ビットの交番パターン
Aを検出する例であったが、本実施形態の回路構成は、
他のビット数の交番パターンの検出にも容易に拡張可能
である。例えば、1と0とが2m-1 ビットずつ交互に現
れる2m ビットの交番パターンの検出するには、第1カ
ウンタ10としてmビットのバイナリカウンタを用い、
そのカウンタの最上位ビットのデコード出力を参照信号
aとしてXOR回路20に入力すればよい。また、“1
11000”などのビット数が2m でない交番パターン
の場合にも、本実施形態の構成は有効である。この場
合、例えば第1カウンタ10の出力に簡単な論理回路を
付加することにより、カウンタ10が交番パターンの半
分までカウントしたときに反転するような参照信号を生
成し、これを入力デジタル信号との比較に用いればよ
い。
Although the above example is an example of detecting the 8-bit alternating pattern A, the circuit configuration of this embodiment is as follows.
It can be easily extended to the detection of alternating patterns with other numbers of bits. For example, in order to detect a 2 m- bit alternating pattern in which 1 and 0 alternately appear every 2 m-1 bits, an m-bit binary counter is used as the first counter 10,
The decoded output of the most significant bit of the counter may be input to the XOR circuit 20 as the reference signal a. Also, "1
The configuration of this embodiment is also effective in the case of an alternating pattern in which the number of bits is not 2 m , such as 11000 ". In this case, for example, by adding a simple logic circuit to the output of the first counter 10, the counter 10 It is only necessary to generate a reference signal that is inverted when counting up to half of the alternating pattern and use this for comparison with the input digital signal.

【0070】また、図1の回路構成は、1から始まる交
番パターンの検出のためのものであったが、簡単な変更
により0から始まる交番パターン(例えば“00001
111”など)を検出することもできる。これは、例え
ばXOR回路20を一致回路(inclusive AND)に変
更することによっても達成できるし、第1カウンタ10
の最上位ビットのデコードQC を反転してXOR回路2
0に入力することによっても達成できる。
Although the circuit configuration of FIG. 1 is for detecting an alternating pattern starting from 1, an alternating pattern starting from 0 (for example, "00001" can be easily changed.
111 ″) can be detected. This can be achieved by changing the XOR circuit 20 to an inclusive AND, for example, and the first counter 10
XOR circuit 2 by inverting the decoding QC of the most significant bit of
It can also be achieved by entering 0.

【0071】また、以上の例では、交番パターンの8回
連続により警報検出信号を設定し、非交番パターンの4
回連続により警報検出信号を解除したが、この警報検出
信号の設定・解除の条件となるパターン連続回数を変更
可能な構成とすることもできる。これには、第2カウン
タ12及び第4カウンタ16の初期状態の設定を変更す
るスイッチを設ければよい。例えば、スイッチによって
第2カウンタ12の初期状態をQA =QB =0、QC =
1に設定すると、交番パターンの4回連続により警報検
出信号を設定することができる。
Further, in the above example, the alarm detection signal is set by repeating the alternating pattern eight times, and the alarm detection signal is set to four times the non-alternating pattern.
Although the alarm detection signal is released by continuous number of times, it is also possible to adopt a configuration in which the number of times of pattern continuation, which is a condition for setting and releasing this alarm detection signal, can be changed. For this purpose, a switch for changing the setting of the initial states of the second counter 12 and the fourth counter 16 may be provided. For example, the switches are used to set the initial state of the second counter 12 to QA = QB = 0 and QC =
When set to 1, the alarm detection signal can be set by four consecutive alternating patterns.

【0072】また、以上の例では、各カウンタが入力デ
ジタル信号のビットレートに等しい周波数を有するクロ
ックをカウントする構成であったが、クロックはこれに
限られるものではなく、入力デジタル信号に対して一定
の同期関係を持っていればよい。この場合、カウンタの
ビット数(段数)などを、入力デジタル信号とクロック
との周波数の比に応じて調整する必要があるのはもちろ
んである。
Further, in the above example, each counter is configured to count the clock having the frequency equal to the bit rate of the input digital signal, but the clock is not limited to this, and the clock is not limited to the input digital signal. It only has to have a certain synchronization relationship. In this case, it is needless to say that the number of bits (number of stages) of the counter needs to be adjusted according to the frequency ratio of the input digital signal and the clock.

【0073】実施形態2.前述の交番パターンA“11
110000”の検出時において、交番パターンAが
“…01”の後に続いて入力された場合を考える。最初
から見ると、入力される信号列は“…01111100
00…”となる。この場合、上記実施形態1では、最初
の“1”が入力されたところからカウントを開始するた
め、5ビット目の“1”が入力されたところでXOR回
路の出力が“0”となって第1カウンタ10がリセット
されてしまう。したがって、入力デジタル信号中に交番
パターンAが含まれているにもかかわらず、その交番パ
ターンAが検出されなくなってしまう。
Embodiment 2. The alternating pattern A "11"
Consider a case where the alternating pattern A is input after "... 01" at the time of detecting 110000 ". From the beginning, the input signal sequence is" ... 01111100 ".
In this case, in the first embodiment, counting starts from the first "1" input, and the output of the XOR circuit outputs "5" when the fifth bit "1" is input. It becomes 0 "and the first counter 10 is reset. Therefore, although the alternating pattern A is included in the input digital signal, the alternating pattern A is not detected.

【0074】この第2の実施形態は、このような交番パ
ターン直前の信号の影響による交番パターンの検出漏れ
を防止するための構成である。
The second embodiment has a structure for preventing the omission of the alternating pattern due to the influence of the signal immediately before the alternating pattern.

【0075】図3は、この実施形態2の回路構成を示す
説明図である。図3において、図1の構成要素と同一の
構成要素には同一の符号を付してその説明を省略する。
FIG. 3 is an explanatory diagram showing the circuit configuration of the second embodiment. 3, the same components as those of FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0076】この構成では、交番パターンAの前半部の
論理値“1”が4ビット入力されたことを検出した後さ
らに論理値“1”の信号が入力された場合には、第1カ
ウンタ10の状態(カウント値)を保持したままカウン
トアップ動作を一時停止させる。そして、交番パターン
Aの後半部の論理値“0”を有する信号が入力されたと
きに、保持された状態からカウントアップ動作を再開す
る。これにより、交番パターンAの直前の信号によって
生じる余分の信号“1”が、いわばスキップされること
になるので、前記実施形態1と同様第1カウンタ10の
CO信号により交番パターンA検出の有無を知ることが
できる。
In this configuration, when it is detected that the logical value "1" of the first half of the alternating pattern A is input by 4 bits and the signal of the logical value "1" is further input, the first counter 10 The count-up operation is temporarily stopped while maintaining the state (count value) of. Then, when the signal having the logical value "0" in the latter half of the alternating pattern A is input, the count-up operation is restarted from the held state. As a result, the extra signal "1" generated by the signal immediately before the alternating pattern A is skipped, so to speak, and therefore the presence or absence of the alternating pattern A detection is detected by the CO signal of the first counter 10 as in the first embodiment. I can know.

【0077】このような動作を実現するために、図3の
構成では、まずAND回路22により交番パターンAの
前半部“1111”を検出する。AND回路22には、
3ビットバイナリカウンタである第1カウンタ10の各
ビットのデコード出力(カウンタ内部の各フリップフロ
ップのQ出力)が入力される。ここで、最下位ビットQ
A と中位ビットQB はAND回路22に反転入力され、
最上位ビットQC はAND回路22にそのまま入力され
る。したがって、このAND回路22の出力は、第1カ
ウンタ10の状態がQC =1かつQB =QA =0の時に
論理値“1”となる。このタイミングは、第1カウンタ
10がクロックを4個のクロックをカウントしたとき、
すなわち交番パターンAの前半部“1111”が検出さ
れたときに対応する。このように、AND回路22の出
力から、交番パターンAの前半部が検出されたか否かが
判別できる。
In order to realize such an operation, in the configuration of FIG. 3, the AND circuit 22 first detects the first half “1111” of the alternating pattern A. In the AND circuit 22,
The decoded output (Q output of each flip-flop inside the counter) of each bit of the first counter 10 which is a 3-bit binary counter is input. Where the least significant bit Q
A and the middle bit QB are inverted and input to the AND circuit 22,
The most significant bit QC is directly input to the AND circuit 22. Therefore, the output of the AND circuit 22 has the logical value "1" when the state of the first counter 10 is QC = 1 and QB = QA = 0. At this timing, when the first counter 10 counts four clocks,
That is, it corresponds to the case where the first half “1111” of the alternating pattern A is detected. In this way, it can be determined from the output of the AND circuit 22 whether or not the first half of the alternating pattern A has been detected.

【0078】AND回路24は、前記AND回路22の
出力と入力デジタル信号との論理和を求める。交番パタ
ーンAの前半部“1111”が検出されAND回路22
の出力が“1”になった後、さらに論理値“1”のデジ
タル信号が入力された場合は、このAND回路24の出
力は“1”となる。そして、AND回路24の出力が
“1”の間は、第1カウンタ10のE入力が“0”にな
るため、この間は第1カウンタ10はクロックをカウン
トしない。
The AND circuit 24 calculates the logical sum of the output of the AND circuit 22 and the input digital signal. The first half “1111” of the alternating pattern A is detected and the AND circuit 22
When the digital signal of the logical value "1" is further input after the output of "1" becomes "1", the output of the AND circuit 24 becomes "1". Then, while the output of the AND circuit 24 is "1", the E input of the first counter 10 is "0", so that the first counter 10 does not count the clock during this period.

【0079】なお、この間は、参照信号a(=QC )は
“1”であり、入力デジタル信号も“1”なので、XO
R回路20の出力は“0”となる。したがって、図1の
構成のようにXOR回路20の出力を第1カウンタ10
のR端子に入力すると、第1カウンタ10がリセットさ
れてしまう。そこで、図3の回路構成では、XOR回路
20の出力とAND回路24の出力の論理和を第1カウ
ンタ10のR端子に入力する構成をとっている。AND
回路26は、XOR回路20の出力とAND回路24の
出力の反転がそれぞれ入力され、それらの論理積を反転
して出力するので、論理的にはOR回路と等価である。
したがって、AND回路26の出力は、XOR回路20
の出力が“0”であっても、AND回路24の出力が
“1”であれば“1”になる。この構成によれば、デジ
タル信号列“1111”が入力されたあとにさらに
“1”が入力された場合には、第1カウンタ10はリセ
ットされない。
During this period, the reference signal a (= QC) is "1" and the input digital signal is "1".
The output of the R circuit 20 becomes "0". Therefore, as in the configuration of FIG.
When input to the R terminal of, the first counter 10 is reset. Therefore, in the circuit configuration of FIG. 3, the logical sum of the output of the XOR circuit 20 and the output of the AND circuit 24 is input to the R terminal of the first counter 10. AND
The circuit 26 is logically equivalent to an OR circuit because the inversion of the output of the XOR circuit 20 and the inversion of the output of the AND circuit 24 are input and the logical product of them is inverted and output.
Therefore, the output of the AND circuit 26 is the output of the XOR circuit 20.
Is "0", the AND circuit 24 outputs "1" if the output is "1". According to this configuration, the first counter 10 is not reset when "1" is further input after the digital signal sequence "1111" is input.

【0080】以上の説明から分かるように、図3の回路
構成によれば、“1111”に続いて更に“1”の信号
が入力された場合には、第1カウンタ10は、リセット
されずに、内部状態を保ったままカウント動作を停止す
る。したがって、その間にクロックが入力されても第1
カウンタ10の内部状態は変化しないので、AND回路
22の出力は次のタイミングでも“1”となる。よっ
て、交番パターンAの前半部が検出された後に続けて
“1”が入力されている間は、第1カウンタ10の状態
は変化しない。
As can be seen from the above description, according to the circuit configuration of FIG. 3, when the "1" signal is further input after "1111", the first counter 10 is not reset. , The counting operation is stopped while keeping the internal state. Therefore, even if the clock is input during that time, the first
Since the internal state of the counter 10 does not change, the output of the AND circuit 22 becomes "1" even at the next timing. Therefore, the state of the first counter 10 does not change while "1" is continuously input after the first half of the alternating pattern A is detected.

【0081】ところが、その後、デジタル信号“0”が
入力されると、AND回路24の出力が“0”となり、
その結果第1カウンタ10のE入力が“1”となるの
で、第1カウンタ10はカウント動作可能となる。この
とき、XOR回路20の出力は1となる(QC =1,入
力=0だから)ので、AND回路26の出力は“1”の
ままとなり、第1カウンタ10は、リセットされずに、
それまで保持されていた内部状態からカウント動作を再
開する。
However, when the digital signal "0" is input thereafter, the output of the AND circuit 24 becomes "0",
As a result, the E input of the first counter 10 becomes "1", and the first counter 10 can count. At this time, the output of the XOR circuit 20 becomes 1 (since QC = 1 and input = 0), so the output of the AND circuit 26 remains "1", and the first counter 10 is not reset,
The counting operation is restarted from the internal state held until then.

【0082】このように、図3の回路構成によれば、第
1カウンタ10は、余分の信号“1”を飛ばしてカウン
トするので、カウント値が8になったときの第1カウン
タのCO出力“1”が、交番パターンAを検出したこと
を示す信号となる。
As described above, according to the circuit configuration of FIG. 3, since the first counter 10 skips the extra signal "1" and counts, the CO output of the first counter when the count value reaches eight. "1" is a signal indicating that the alternating pattern A has been detected.

【0083】以上説明したように、この実施形態2によ
れば、交番パターンの前半の値を有する信号に続いて交
番パターンが入力される場合にも、その交番パターンを
検出することが可能になる。
As described above, according to the second embodiment, even when the alternating pattern is input subsequent to the signal having the first half value of the alternating pattern, the alternating pattern can be detected. .

【0084】なお、図3のその他の構成要素は、図1の
ものと同様である。したがって、図3の回路によれば、
図1の回路と同様、警報検出信号の設定・解除を行うこ
とができる。
The other components of FIG. 3 are the same as those of FIG. Therefore, according to the circuit of FIG.
As with the circuit of FIG. 1, the alarm detection signal can be set / released.

【0085】実施形態3.実施形態1及び2は、“11
110000”のような1と0とが同数ずつ交互に現れ
る交番パターンの検出を対象とするものであった。これ
に対して、本実施形態は、ある単位パターンとその単位
パターンの反転パターンとが交互に現れる交番パターン
の検出を目的とする。
Embodiment 3. In the first and second embodiments, “11
The object of the present embodiment is to detect an alternating pattern in which the same number of 1's and 0's such as 110000 "appear alternately. On the other hand, in the present embodiment, a certain unit pattern and an inverted pattern of the unit pattern are The purpose is to detect alternating patterns that appear alternately.

【0086】図4は、実施形態3の回路構成を示す説明
図である。図4において、図1の構成要素と同一の構成
要素には同一の符号を付してその説明を省略する。
FIG. 4 is an explanatory diagram showing the circuit configuration of the third embodiment. 4, the same components as those of FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0087】図4においては、XOR回路20の出力が
単位パターン検出回路40に入力され、単位パターン検
出回路40の出力の反転が第1カウンタ10のR端子に
入力される。
In FIG. 4, the output of the XOR circuit 20 is input to the unit pattern detection circuit 40, and the inverted output of the unit pattern detection circuit 40 is input to the R terminal of the first counter 10.

【0088】単位パターン検出回路40は、入力された
信号と単位パターンとを各ビットごとに順次比較し、入
力された信号が単位パターンに一致している間“1”を
出力し、入力された信号が単位パターンと不一致になる
と“0”を出力する回路である。
The unit pattern detection circuit 40 sequentially compares the input signal with the unit pattern for each bit, outputs "1" while the input signal matches the unit pattern, and inputs the signal. It is a circuit that outputs "0" when the signal does not match the unit pattern.

【0089】図4の回路構成における交番パターンの検
出の流れを、単位パターン“1101”とその反転パタ
ーン“0010”とが交互に現れる交番パターン“11
010010”(以下、交番パターンBとよぶ)の検出
を例にとって説明する(なお、本実施形態において“1
101”と“0010”のどちらを単位パターンと捉え
ても本質的な違いはない)。
The flow of detection of the alternating pattern in the circuit configuration of FIG. 4 is as follows: the unit pattern "1101" and its inverted pattern "0010" appear alternately.
The detection of “010010” (hereinafter referred to as the alternating pattern B) will be described as an example (note that in the present embodiment, “1
There is no essential difference in regard to either 101 "or" 0010 "as a unit pattern).

【0090】図4の回路に、交番パターンBを有するデ
ジタル信号が順次入力されきた場合、最初は第1カウン
タ10の最上位ビットのデコード出力QC が“0”なの
で、XOR回路20からは順に“1101”が出力され
る。この出力パターンは、単位パターン“1101”に
一致しているので、この間単位パターン検出回路40か
らは論理値“1”が出力される。したがって、第1カウ
ンタ10はこの間カウントアップを続ける。そして、交
番パターンBの前半部が入力され、第1カウンタ10の
カウント値が4になったところでデコード出力QC が
“1”となる。この後、入力デジタル信号は“0010
…”と変化するので、XOR回路20からはやはり順に
“1101”が出力される。したがって、この場合も単
位パターン検出回路40からは“1”が出力され続ける
ので、第1カウンタ10は更にカウントアップを続行す
る。したがって、第1カウンタのCO出力が“1”にな
ったとき、入力デジタル信号が交番パターンBに8ビッ
ト連続して一致したことになり、そのCO出力“1”が
交番パターンBの検出信号となる。
When digital signals having the alternating pattern B are sequentially input to the circuit of FIG. 4, the decode output QC of the most significant bit of the first counter 10 is "0" at first, so that the XOR circuit 20 sequentially outputs "0". 1101 ″ is output. Since this output pattern matches the unit pattern "1101", the unit pattern detection circuit 40 outputs the logical value "1" during this period. Therefore, the first counter 10 continues to count up during this period. Then, when the first half of the alternating pattern B is input and the count value of the first counter 10 reaches 4, the decode output QC becomes "1". After this, the input digital signal is "0010.
.. ”, the XOR circuit 20 also outputs“ 1101 ”in order. Therefore, in this case as well, the unit pattern detection circuit 40 continues to output“ 1 ”, and the first counter 10 further counts. Therefore, when the CO output of the first counter becomes "1", it means that the input digital signal continuously matches the alternating pattern B for 8 bits, and the CO output "1" becomes the alternating pattern. It becomes the detection signal of B.

【0091】なお、カウントアップの途中で入力デジタ
ル信号が交番パターンBと不一致になった場合は、単位
パターン検出回路40の出力が“0”となって、第1カ
ウンタ10が初期状態にリセットされる。
If the input digital signal does not match the alternating pattern B during the counting up, the output of the unit pattern detection circuit 40 becomes "0" and the first counter 10 is reset to the initial state. It

【0092】図4のその他の構成要素は、図1のものと
同様である。したがって、図4の回路構成によれば、図
1の場合と同様、警報検出信号の設定・解除を行うこと
ができる。
The other components of FIG. 4 are the same as those of FIG. Therefore, according to the circuit configuration of FIG. 4, as with the case of FIG. 1, the alarm detection signal can be set / released.

【0093】以上説明したように、実施形態3によれ
ば、単位パターンとその反転パターンとが交互に現れる
交番パターンを検出することができる。
As described above, according to the third embodiment, it is possible to detect the alternating pattern in which the unit pattern and its inverted pattern appear alternately.

【0094】なお、図4の回路構成は、単位パターンと
その反転パターンとが同数ずつ交互に現れる交番パター
ンにも容易に拡張できる。例えば、“11011101
00100010”は単位パターン“1101”と反転
パターン“0010”とが2回ずつ現れる交番パターン
であるが、この交番パターンを検出するには、例えば第
1カウンタ10を4ビットバイナリカウンタに代え、そ
の最上位ビットのデコード出力QD を参照信号としてX
OR回路20に入力する構成とすればよい。この場合、
単位パターン検出回路40としては、入力される信号が
“1101”に一致している間“1”を出力する回路を
そのまま用いることができる。
The circuit configuration of FIG. 4 can be easily expanded to an alternating pattern in which the same number of unit patterns and their inverted patterns alternately appear. For example, "11011101
00100010 is an alternating pattern in which the unit pattern "1101" and the inverted pattern "0010" appear twice each. To detect this alternating pattern, for example, the first counter 10 is replaced with a 4-bit binary counter, and the X as the reference signal using the high-order bit decoded output QD
The configuration may be such that it is input to the OR circuit 20. in this case,
As the unit pattern detection circuit 40, a circuit that outputs “1” while the input signal matches “1101” can be used as it is.

【0095】実施形態4.この実施形態4は、同ビット
数の2つのパターン(以下、第1パターン及び第2パタ
ーンと呼ぶ)が交互に現れるパターンの検出を目的とす
る。
Embodiment 4. The fourth embodiment aims at detecting a pattern in which two patterns having the same number of bits (hereinafter, referred to as a first pattern and a second pattern) appear alternately.

【0096】図5は、実施形態4の回路構成を示す説明
図である。図5において、図1の構成要素と同一の構成
要素には同一の符号を付してその説明を省略する。
FIG. 5 is an explanatory diagram showing the circuit configuration of the fourth embodiment. 5, the same components as those of FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0097】図5の構成は、4ビットの第1パターンと
第2パターンとが交互に繰り返す信号パターンを検出対
象としている。図5において、入力デジタル信号は、ま
ず前処理回路50に入力される。前処理回路50は、入
力デジタル信号のなかから第1パターンを検出したとき
には4ビットの“1”を出力(すなわち、4ビット周期
の間“1”を出力)し、入力デジタル信号のなかから第
2パターンを検出したときには4ビットの“0”を出力
する。したがって、第1パターンと第2パターンとが交
互に入力されてくる間は、前処理回路50からは、“1
111”と“0000”とが交互に出力される。なお、
入力デジタル信号のパターンが第1パターンと第2パタ
ーンの繰り返しから外れた場合は、この前処理回路50
の出力は、“1111”と“0000”の交番パターン
から外れる。この前処理回路50の出力は、XOR回路
20に入力される。
The configuration shown in FIG. 5 targets a signal pattern in which a 4-bit first pattern and a second pattern are alternately repeated. In FIG. 5, the input digital signal is first input to the preprocessing circuit 50. The pre-processing circuit 50 outputs 4-bit "1" (that is, "1" is output during a 4-bit period) when the first pattern is detected from the input digital signal, and the pre-processing circuit 50 outputs the first pattern from the input digital signal. When two patterns are detected, 4-bit "0" is output. Therefore, while the first pattern and the second pattern are alternately input, the preprocessing circuit 50 outputs "1".
111 "and" 0000 "are output alternately.
When the pattern of the input digital signal deviates from the repetition of the first pattern and the second pattern, the preprocessing circuit 50
Output deviates from the alternating pattern of “1111” and “0000”. The output of the preprocessing circuit 50 is input to the XOR circuit 20.

【0098】XOR回路20以降の回路構成について
は、図5は図1と全く同じ構成となっている。したがっ
て、図5の構成では、第1カウンタ10とXOR回路2
0の働きにより“11110000”のパターンを検出
することにより、入力デジタル信号が前記第1及び第2
パターンの繰り返しであるか否かを検出することができ
る。
As for the circuit configuration after the XOR circuit 20, FIG. 5 has exactly the same configuration as FIG. Therefore, in the configuration of FIG. 5, the first counter 10 and the XOR circuit 2
By detecting the pattern of "11110,000" by the action of 0, the input digital signal becomes the first and second digital signals.
It is possible to detect whether or not the pattern is repeated.

【0099】なお、図5における前処理回路50は、簡
単な論理回路で容易に構成可能である。図6に、前処理
回路50の一例を示す。図6に示す前処理回路の例は、
第1パターン“0101”と第2パターン“1001”
とが交互に現れるパターンを検出するために用いる回路
構成を示している。
The preprocessing circuit 50 in FIG. 5 can be easily constructed by a simple logic circuit. FIG. 6 shows an example of the preprocessing circuit 50. An example of the preprocessing circuit shown in FIG.
First pattern "0101" and second pattern "1001"
The circuit configuration used to detect a pattern in which and appear alternately is shown.

【0100】図6において、入力デジタル信号は、シフ
トレジスタ52のデータ入力端子(IN)に入力され
る。シフトレジスタ52は、シリアルイン/パラレルア
ウト型の4ビットシフトレジスタである。シフトレジス
タ52は、クロック(CLK)にしたがってデータをシ
フトしていく。なお、このクロック(CLK)は、図5
の各カウンタ10〜16に供給されているものと同一で
ある。
In FIG. 6, the input digital signal is input to the data input terminal (IN) of the shift register 52. The shift register 52 is a serial-in / parallel-out 4-bit shift register. The shift register 52 shifts data according to a clock (CLK). In addition, this clock (CLK) is
Is the same as that supplied to each of the counters 10 to 16.

【0101】シフトレジスタ52のQA 〜QD 出力は、
それぞれ2つに分岐し、AND回路54及び56に入力
される。AND回路54は、パターン“0101”を検
出するための回路であり、AND回路56は、パターン
“1001”を検出するための回路である。
The QA to QD outputs of the shift register 52 are
Each of the two branches is input to AND circuits 54 and 56. The AND circuit 54 is a circuit for detecting the pattern "0101", and the AND circuit 56 is a circuit for detecting the pattern "1001".

【0102】AND回路54の出力はRSフリップフロ
ップ58のS端子に入力され、AND回路56の出力は
R端子に入力される。そして、このRSフリップフロッ
プ58のQ出力が前処理回路50の出力となる。
The output of the AND circuit 54 is input to the S terminal of the RS flip-flop 58, and the output of the AND circuit 56 is input to the R terminal. The Q output of the RS flip-flop 58 becomes the output of the preprocessing circuit 50.

【0103】以上のような回路構成において、シフトレ
ジスタ52に“01011001…”の順にデジタル信
号が入力された場合を考える。このデジタル信号列が順
に入力されていき、“0101”の最後の“1”が入力
されたときに、AND回路54の出力は“1”となる。
この出力によりRSフリップフロップ58はセットさ
れ、Q出力が“1”となる。そして、次にR端子に
“1”が入力されるまで、RSフリップフロップ58は
Q=1を維持する。なお、図6の構成においては、RS
フリップフロップ58のイネーブル信号を制御すること
により、“0101”又は“1001”を検出した場合
は4ビット後(4クロック後)までRSフリップフロッ
プ58の内部状態が変化しないようにしている。したが
って、“0101”が検出された後4クロックの間はR
Sフリップフロップ58からは“1”が出力される。
Consider a case where digital signals are input to the shift register 52 in the order of "010111001 ..." In the circuit configuration as described above. This digital signal sequence is sequentially input, and when the last "1" of "0101" is input, the output of the AND circuit 54 becomes "1".
This output sets the RS flip-flop 58 and the Q output becomes "1". Then, the RS flip-flop 58 maintains Q = 1 until "1" is input to the R terminal next time. In the configuration of FIG. 6, RS
By controlling the enable signal of the flip-flop 58, when "0101" or "1001" is detected, the internal state of the RS flip-flop 58 does not change until 4 bits later (4 clocks later). Therefore, R is kept for 4 clocks after "0101" is detected.
"1" is output from the S flip-flop 58.

【0104】そして、“0101”の検出の後4クロッ
ク経過したたときには、シフトレジスタ52の出力は
“1001”となり、AND回路56の出力が“1”と
なる。このときRSフリップフロップ58は、イネーブ
ル信号により再び動作可能となっており、AND回路5
6の出力“1”により状態変化してQ出力が“0”とな
る。
When four clocks elapse after the detection of "0101", the output of the shift register 52 becomes "1001" and the output of the AND circuit 56 becomes "1". At this time, the RS flip-flop 58 can be operated again by the enable signal, and the AND circuit 5
The state is changed by the output "1" of 6 and the Q output becomes "0".

【0105】以上の説明から分かるように、入力デジタ
ル信号において“0101”と“1001”のパターン
が交互に繰り返されている間は、前処理回路50の出力
は“1111”と“0000”とが交互に繰り返す交番
パターンになる。したがって、この前処理回路50の出
力を実施形態1と同様の回路構成に入力して交番パター
ン“11110000”を検出することにより、“01
01”と“1001”とが交互に現れるパターンを検出
することができる。
As can be seen from the above description, while the pattern "0101" and "1001" are alternately repeated in the input digital signal, the output of the preprocessing circuit 50 is "1111" and "0000". It is an alternating pattern that repeats alternately. Therefore, by inputting the output of the pre-processing circuit 50 into the same circuit configuration as that of the first embodiment and detecting the alternating pattern "11110000", "01" is obtained.
A pattern in which "01" and "1001" alternately appear can be detected.

【0106】なお、入力デジタル信号が“0101”と
“1001”とが交互に現れるパターンから外れた場合
には、RSフリップフロップ58のQ出力の変化が4ビ
ット周期からずれるので、前処理回路50の出力は交番
パターン“11110000”と一致しなくなる。した
がって、入力デジタル信号が“0101”と“100
1”とが交互に現れるパターンから外れた場合には、図
5の構成において、第1カウンタ10及び第2カウンタ
12がリセットされる。
When the input digital signal deviates from the pattern in which "0101" and "1001" appear alternately, the change in the Q output of the RS flip-flop 58 deviates from the 4-bit period, and therefore the preprocessing circuit 50 Output does not match the alternating pattern "1110000". Therefore, the input digital signals are "0101" and "100".
If the pattern of "1" and the pattern appearing alternately, the first counter 10 and the second counter 12 are reset in the configuration of FIG.

【0107】このように、実施形態4によれば、同ビッ
ト数の2種類のパターンが交互に現れるパターンを検出
することができる。
As described above, according to the fourth embodiment, it is possible to detect a pattern in which two types of patterns having the same number of bits appear alternately.

【0108】なお、図5のその他の構成要素は、図1の
ものと同様である。したがって、図5の回路構成でも、
図1の場合と同様、警報検出信号の設定・解除を行うこ
とができる。
The other components in FIG. 5 are the same as those in FIG. Therefore, even with the circuit configuration of FIG.
As in the case of FIG. 1, it is possible to set / cancel the alarm detection signal.

【0109】[0109]

【発明の効果】以上説明したように、本発明の第1の構
成によれば、従来構成よりも小さい回路規模で1と0と
がnビットずつ交互に現れる交番パターンを検出するこ
とができる。
As described above, according to the first configuration of the present invention, it is possible to detect an alternating pattern in which 1 and 0 alternately appear every n bits with a circuit scale smaller than that of the conventional configuration.

【0110】また、本発明の第2の構成によれば、交番
パターンの前半の値を有する信号に続いて交番パターン
が入力される場合にも、その交番パターンを検出するこ
とが可能になる。
Further, according to the second configuration of the present invention, even when the alternating pattern is input subsequent to the signal having the first half value of the alternating pattern, the alternating pattern can be detected.

【0111】また、本発明の第3の構成によれば、小さ
い回路規模で単位パターンとその反転パターンとが同数
ずつ交互に現れる交番パターンを検出することができ
る。
Further, according to the third structure of the present invention, it is possible to detect an alternating pattern in which the same number of unit patterns and their inverted patterns alternately appear in a small circuit scale.

【0112】また、本発明の第4の構成によれば、小さ
い回路規模でnビットの第1及び第2のパターンが交互
に現れる所定のパターンを検出することができる。
Further, according to the fourth configuration of the present invention, it is possible to detect a predetermined pattern in which the first and second patterns of n bits alternate, with a small circuit scale.

【0113】また、本発明の第5の構成によれば、入力
デジタル信号において所定(交番)パターンが所定設定
値だけ連続したことを検出することができる。
Further, according to the fifth configuration of the present invention, it can be detected that a predetermined (alternating) pattern in the input digital signal is continuous by a predetermined set value.

【0114】また、本発明の第6の構成によれば、連続
一致信号を発するための条件となる交番パターン連続回
数を変更することが可能になる。
Further, according to the sixth configuration of the present invention, it becomes possible to change the number of times of alternating pattern continuation, which is a condition for issuing a continuous coincidence signal.

【0115】また、本発明の第7の構成によれば、所定
パターンが所定回数以上連続して入力された場合に初め
て警報検出信号が発せられ、またいったん発せられた警
報検出信号は、所定パターンと不一致のパターンが所定
回数以上連続して入力されなければ停止できないので、
警報の誤検出を防止することができる。
Further, according to the seventh configuration of the present invention, the alarm detection signal is issued only when the predetermined pattern is continuously input a predetermined number of times or more, and the alarm detection signal once issued is the predetermined pattern. If the pattern that does not match with is not input continuously more than a predetermined number of times, it cannot stop.
False alarm detection can be prevented.

【0116】そして、本発明の第8の構成によれば、警
報解除の条件となる交番パターン不一致連続回数を変更
することが可能になる。
According to the eighth configuration of the present invention, it is possible to change the number of consecutive alternating pattern pattern disagreements which is a condition for alarm release.

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

【図1】 本発明に係るパターン検出回路の実施形態1
の回路構成を示す説明図である。
FIG. 1 is a first embodiment of a pattern detection circuit according to the present invention.
FIG. 3 is an explanatory diagram showing a circuit configuration of FIG.

【図2】 実施形態1の各点における信号のタイムチャ
ートである。
FIG. 2 is a time chart of signals at various points in the first embodiment.

【図3】 本発明に係るパターン検出回路の実施形態2
の回路構成を示す説明図である。
FIG. 3 is a second embodiment of the pattern detection circuit according to the present invention.
FIG. 3 is an explanatory diagram showing a circuit configuration of FIG.

【図4】 本発明に係るパターン検出回路の実施形態3
の回路構成を示す説明図である。
FIG. 4 is a third embodiment of the pattern detection circuit according to the present invention.
FIG. 3 is an explanatory diagram showing a circuit configuration of FIG.

【図5】 本発明に係るパターン検出回路の実施形態4
の回路構成を示す説明図である。
FIG. 5 is a fourth embodiment of the pattern detection circuit according to the present invention.
FIG. 3 is an explanatory diagram showing a circuit configuration of FIG.

【図6】 実施形態4における前処理回路の構成の一例
を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of a configuration of a preprocessing circuit according to a fourth embodiment.

【図7】 従来の警報検出回路の構成を示す説明図であ
る。
FIG. 7 is an explanatory diagram showing a configuration of a conventional alarm detection circuit.

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

10 第1カウンタ、12 第2カウンタ、14 第3
カウンタ、16 第4カウンタ、20 XOR回路、2
2〜26 AND回路、30 警報検出回路、40 単
位パターン検出回路、50 前処理回路。
10 1st counter, 12 2nd counter, 14 3rd
Counter, 16 fourth counter, 20 XOR circuit, 2
2 to 26 AND circuit, 30 alarm detection circuit, 40 unit pattern detection circuit, 50 preprocessing circuit.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 入力されるデジタル信号から、1と0と
がnビットずつ交互に出現する所定の交番パターンを検
出するパターン検出回路であって、 入力デジタル信号に対して所定の同期関係を有するクロ
ックをカウントし、前記所定交番パターンに対応したパ
ターンを有する参照信号を出力するカウンタと、 前記参照信号及び前記入力デジタル信号が入力され、両
者を比較することにより前記入力デジタル信号が前記所
定交番パターンに一致しているか否かを検出し、前記入
力デジタル信号が前記所定交番パターンに対して不一致
となったときに前記カウンタにリセット信号を供給する
リセット信号生成部と、 前記カウンタのカウント値が前記入力デジタル信号のビ
ット周期単位で2nとなったときにパターン検出信号を
出力するパターン検出信号生成部と、 を有するパターン検出回路。
1. A pattern detection circuit for detecting a predetermined alternating pattern in which 1 and 0 alternately appear every n bits from an input digital signal, and having a predetermined synchronization relationship with the input digital signal. A counter that counts clocks and outputs a reference signal having a pattern corresponding to the predetermined alternating pattern, and the reference signal and the input digital signal are input, and the input digital signal is compared with the counter by the predetermined alternating pattern. And a reset signal generator that supplies a reset signal to the counter when the input digital signal does not match the predetermined alternating pattern, and the count value of the counter is Pattern detection that outputs a pattern detection signal when the input digital signal has a bit period of 2n An output signal generation unit, and a pattern detection circuit having:
【請求項2】 請求項1記載のパターン検出回路におい
て、 前記カウンタのカウント値が前記入力デジタル信号のビ
ット周期単位でnになった時に、前記所定交番パターン
の前半部nビットが検出されたことを示す前半部検出信
号を出力するパターン前半部検出部と、 前記入力デジタル信号及び前半部検出信号が入力され、
前記前半部検出信号が入力されたあともなお前記前半部
の論理値を有するデジタル信号が入力されている間は、
前記カウンタに対してカウント停止信号を出力するカウ
ント停止信号生成部と、 を有し、 前記カウンタは、前記カウント停止信号が入力されてい
る間はカウント値を保持したままカウント動作を一時停
止することを特徴とするパターン検出回路。
2. The pattern detection circuit according to claim 1, wherein when the count value of the counter reaches n in a bit cycle unit of the input digital signal, the first half n bits of the predetermined alternating pattern are detected. A pattern front half detection unit that outputs a front half detection signal indicating, and the input digital signal and the front half detection signal are input,
While the digital signal having the logical value of the first half is still input after the first half detection signal is input,
A count stop signal generation unit that outputs a count stop signal to the counter; and the counter temporarily suspends the count operation while holding the count value while the count stop signal is input. A pattern detection circuit characterized by.
【請求項3】 入力されたデジタル信号から、単位パタ
ーンとその反転パターンとが同数ずつ交互に現れる2n
ビットの所定の交番パターンを検出するパターン検出回
路であって、 入力デジタル信号に対して所定の同期関係を有するクロ
ックをカウントし、1と0とがnビットずつ交互に現れ
るパターンを有する参照信号を出力するカウンタと、 前記参照信号及び前記入力デジタル信号が入力され、両
信号の排他的論理和を求めることにより前記入力デジタ
ル信号が前記所定交番パターンに一致している間は前記
入力デジタル信号を前記単位パターンの繰り返しに変換
して出力するパターン変換部と、 前記パターン変換部の出力を前記単位パターンの繰り返
しと比較し、両者が不一致となったときに前記カウンタ
にリセット信号を供給するリセット信号生成部と、 前記カウンタのカウント値が前記入力デジタル信号のビ
ット周期単位で2nになったときにパターン検出信号を
出力するパターン検出信号生成部と、 を有するパターン検出回路。
3. A unit pattern and its inverted pattern alternately appearing in the same number 2n from an input digital signal.
A pattern detection circuit for detecting a predetermined alternating pattern of bits, wherein a clock having a predetermined synchronous relationship with an input digital signal is counted, and a reference signal having a pattern in which 1 and 0 alternately appear every n bits. A counter for outputting, the reference signal and the input digital signal are input, and the input digital signal is input while the input digital signal matches the predetermined alternating pattern by obtaining an exclusive OR of the two signals. A pattern conversion unit that converts and outputs the repeated unit pattern, and compares the output of the pattern conversion unit with the repeated unit pattern, and generates a reset signal that supplies a reset signal to the counter when the two do not match. And a count value of the counter becomes 2n in a bit cycle unit of the input digital signal. And a pattern detection signal generator that outputs a pattern detection signal when the pattern detection signal is generated.
【請求項4】 入力されたデジタル信号から、nビット
の第1及び第2のパターンが交互に現れる所定のパター
ンを検出するパターン検出回路であって、 前記入力デジタル信号が入力され、前記入力デジタル信
号から第1パターンを検出したときには論理値1(0)
の信号をnビットの間連続して出力し、前記入力デジタ
ル信号から第2パターンを検出したときには論理値0
(1)の信号をnビットの間連続して出力する前処理回
路と、 入力デジタル信号に対して所定の同期関係を有するクロ
ックをカウントし、1と0とがnビットずつ交互に現れ
るパターンを有する参照信号を出力するカウンタと、 前記参照信号及び前記前処理回路の出力信号が入力さ
れ、両者が不一致となったときに前記カウンタにリセッ
ト信号を供給するリセット信号生成部と、 前記カウンタのカウント値が前記入力デジタル信号のビ
ット周期単位で2nとなったときに前記所定パターンを
検出したことを示すパターン検出信号を出力するパター
ン検出信号生成部と、 を有するパターン検出回路。
4. A pattern detection circuit for detecting, from an input digital signal, a predetermined pattern in which first and second patterns of n bits alternately appear, wherein the input digital signal is input to the pattern detection circuit. Logical value 1 (0) when the first pattern is detected from the signal
Signal is continuously output for n bits and a logical value of 0 is output when the second pattern is detected from the input digital signal.
A preprocessing circuit that continuously outputs the signal of (1) for n bits and a clock that has a predetermined synchronization relationship with the input digital signal are counted, and a pattern in which 1 and 0 alternately appear every n bits A counter that outputs a reference signal, a reset signal generation unit that supplies a reset signal to the counter when the reference signal and the output signal of the preprocessing circuit are input, and the two do not match, and the count of the counter A pattern detection circuit, which outputs a pattern detection signal indicating that the predetermined pattern has been detected when the value becomes 2n in a bit cycle unit of the input digital signal.
【請求項5】 請求項1〜4のいずれかに記載のパター
ン検出回路において、 前記パターン検出信号生成部及びリセット信号生成部の
出力に接続され、前記パターン検出信号をカウントし、
前記リセット信号が入力されるとカウント値がクリアさ
れる第2カウンタと、 前記第2カウンタのカウント値が所定の設定値になった
ときに連続一致信号を出力する連続一致信号生成部と、 を有するパターン検出回路。
5. The pattern detection circuit according to claim 1, which is connected to outputs of the pattern detection signal generation unit and the reset signal generation unit and counts the pattern detection signal,
A second counter that clears a count value when the reset signal is input; and a continuous match signal generation unit that outputs a continuous match signal when the count value of the second counter reaches a predetermined set value. A pattern detection circuit having.
【請求項6】 請求項5記載のパターン検出回路におい
て、 前記連続一致信号生成部における設定値を可変する一致
連続数設定値可変手段を設けたことを特徴とするパター
ン検出回路。
6. The pattern detection circuit according to claim 5, further comprising a coincidence consecutive number set value varying means for varying a set value in the consecutive coincidence signal generating section.
【請求項7】 請求項5又は6に記載のパターン検出回
路において、 前記パターン検出信号生成部に接続され、前記入力デジ
タル信号に対して所定の同期関係を有するクロックをカ
ウントし、前記パターン検出信号が入力されるとカウン
ト値がクリアされる第3カウンタと、 前記第3カウンタのカウント値が前記入力デジタル信号
のビット周期単位で2nとなったときに前記入力デジタ
ル信号が前記所定交番パターンに不一致であったことを
示すパターン不一致信号を出力するパターン不一致信号
生成部と、 前記パターン検出信号生成部とパターン不一致信号生成
部とに接続され、前記パターン不一致信号をカウント
し、前記パターン検出信号が入力されるとカウント値が
クリアされる第4カウンタと、 前記第4カウンタのカウント値が所定の設定値になった
ときに連続不一致信号を出力する連続不一致信号生成部
と、 前記連続一致信号生成部及び連続不一致信号生成部とに
接続され、前記連続一致信号が入力されると警報検出信
号を出力し、前記連続不一致信号が入力されるまで警報
検出信号を出力し続ける警報検出部と、 を有するパターン検出回路。
7. The pattern detection circuit according to claim 5, wherein the pattern detection signal generator is connected, counts clocks having a predetermined synchronization relationship with the input digital signal, and outputs the pattern detection signal. And a third counter whose count value is cleared when is input, and the input digital signal does not match the predetermined alternating pattern when the count value of the third counter becomes 2n in a bit cycle unit of the input digital signal. The pattern non-matching signal generator that outputs the pattern non-matching signal that indicates that the pattern non-matching signal is connected to the pattern detection signal generator and the pattern non-matching signal generator, and the pattern detection signal is input. And a count value of the fourth counter is cleared. When the set value of the continuous mismatch signal is output, the continuous mismatch signal generation unit is connected to the continuous match signal generation unit and the continuous mismatch signal generation unit, and the alarm detection signal is input when the continuous match signal is input. And a warning detection unit that keeps outputting a warning detection signal until the continuous disagreement signal is input.
【請求項8】 請求項7に記載のパターン検出回路にお
いて、 前記連続不一致信号生成部における設定値を可変する不
一致連続数設定値可変手段を設けたことを特徴とするパ
ターン検出回路。
8. The pattern detection circuit according to claim 7, further comprising: discontinuity consecutive number set value varying means for varying a set value in the consecutive disagreement signal generation unit.
JP23675695A 1995-09-14 1995-09-14 Pattern detection circuit Pending JPH0981367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23675695A JPH0981367A (en) 1995-09-14 1995-09-14 Pattern detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23675695A JPH0981367A (en) 1995-09-14 1995-09-14 Pattern detection circuit

Publications (1)

Publication Number Publication Date
JPH0981367A true JPH0981367A (en) 1997-03-28

Family

ID=17005331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23675695A Pending JPH0981367A (en) 1995-09-14 1995-09-14 Pattern detection circuit

Country Status (1)

Country Link
JP (1) JPH0981367A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011205402A (en) * 2010-03-25 2011-10-13 Kyocera Mita Corp Oscillation abnormality detection circuit
CN102736888A (en) * 2012-07-02 2012-10-17 江汉大学 Data retrieval circuit being synchronous with data stream

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011205402A (en) * 2010-03-25 2011-10-13 Kyocera Mita Corp Oscillation abnormality detection circuit
CN102736888A (en) * 2012-07-02 2012-10-17 江汉大学 Data retrieval circuit being synchronous with data stream

Similar Documents

Publication Publication Date Title
US6393082B1 (en) Signal synchronism detecting circuit
JP2621884B2 (en) Communication method and encoding device
JP2013017166A (en) Receiver
US3247491A (en) Synchronizing pulse generator
JPH0981367A (en) Pattern detection circuit
US5038351A (en) Coded mark inversion block synchronization circuit
US5510786A (en) CMI encoder circuit
JPH0651957A (en) Random numbers generator
JPH0194723A (en) Frequency-dividing device for digital signal
US4044206A (en) Digital decoder for multiple frequency telephone signalling
JP2001168853A (en) Data receiving circuit of asynchronous serial data transfer device
SU1431075A2 (en) Device for decoding binary sequence
JP2814978B2 (en) Frame synchronization circuit
KR100212051B1 (en) Apparatus and method for receiving data
KR930008947B1 (en) Frame detected circuit of digital transmitted apparatus
JPH05244146A (en) Frame synchronization detecting circuit
JPS5842668B2 (en) Pulse Densou Houshiki
JPH0644756B2 (en) Synchronous clock generation circuit
JPS642306B2 (en)
JPS60148230A (en) Recoder of burst correction cyclic code
EP0638213B1 (en) Data signal decoding device
JPH10135838A (en) CMI / NRZ conversion circuit
JP2591850B2 (en) Frame synchronization circuit
JP2617538B2 (en) Frame synchronization circuit
JPH05260038A (en) Block synchronous selection control circuit