JP3316882B2 - Pattern match / mismatch detection circuit - Google Patents

Pattern match / mismatch detection circuit

Info

Publication number
JP3316882B2
JP3316882B2 JP25218192A JP25218192A JP3316882B2 JP 3316882 B2 JP3316882 B2 JP 3316882B2 JP 25218192 A JP25218192 A JP 25218192A JP 25218192 A JP25218192 A JP 25218192A JP 3316882 B2 JP3316882 B2 JP 3316882B2
Authority
JP
Japan
Prior art keywords
signal
output
input
comparator
outputs
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.)
Expired - Fee Related
Application number
JP25218192A
Other languages
Japanese (ja)
Other versions
JPH0675879A (en
Inventor
和紀 平林
Original Assignee
安藤電気株式会社
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 安藤電気株式会社 filed Critical 安藤電気株式会社
Priority to JP25218192A priority Critical patent/JP3316882B2/en
Publication of JPH0675879A publication Critical patent/JPH0675879A/en
Application granted granted Critical
Publication of JP3316882B2 publication Critical patent/JP3316882B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Computer And Data Communications (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、データ通信回線にお
いて高速伝送するパターンの一致/不一致検出回路につ
いてのものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern match / mismatch detection circuit for high-speed transmission in a data communication line.

【0002】[0002]

【従来の技術】次に、従来技術によるパターン一致検出
回路の構成を図3により説明する。図3の1はシフトレ
ジスタ、2は比較器、3はフリップフロップ(以下、F
Fという。)である。シフトレジスタ1はシリアルの受
信データ信号11を受信クロック信号12でシフトし、
パラレルに出力する。比較器2はシフトレジスタ1の出
力と期待値を比較し、FF3は比較器2の一致信号13
の波形を整形する。
2. Description of the Related Art Next, the configuration of a conventional pattern matching detection circuit will be described with reference to FIG. In FIG. 3, 1 is a shift register, 2 is a comparator, and 3 is a flip-flop (hereinafter referred to as F
Called F. ). The shift register 1 shifts the serial reception data signal 11 by the reception clock signal 12,
Output in parallel. The comparator 2 compares the output of the shift register 1 with the expected value, and the FF 3 outputs the coincidence signal 13 of the comparator 2.
Shape the waveform.

【0003】図3のシフトレジスタ1は、受信データ信
号11を受信クロック信号12でシフトし、パラレル信
号21〜24を発生する。比較器2はパラレル信号21
〜24を第1の入力とし、期待値31〜34を第2の入
力として、それぞれ対応する信号を比較し、すべての信
号が一致したときに一致信号13を出力する。FF3
は、一致信号13をデータ入力とし、受信クロック信号
12のタイミングで一致信号14を出力する。
The shift register 1 shown in FIG. 3 shifts a received data signal 11 by a received clock signal 12, and generates parallel signals 21 to 24. The comparator 2 is a parallel signal 21
〜24 as a first input, and expected values 31-34 as a second input, corresponding signals are compared, and a match signal 13 is output when all signals match. FF3
Receives the coincidence signal 13 as a data input and outputs the coincidence signal 14 at the timing of the reception clock signal 12.

【0004】次に、図3の動作を図4のタイミングチャ
ートにより説明する。図4アは受信データ信号11の波
形図であり、シリアル信号をシフトレジスタ1に入力す
る。図4イは受信クロック信号12の波形図であり、信
号の立上りで図4アのデータ信号をシフトする。図3で
はシフトレジスタ1に4段のものを使用しているので、
図4イのクロック12の立上りで順次シフトされた受信
データ信号11をシフトレジスタ1は4つのデータ信号
としてパラレルに出力される。
Next, the operation of FIG. 3 will be described with reference to the timing chart of FIG. FIG. 4A is a waveform diagram of the received data signal 11, and a serial signal is input to the shift register 1. FIG. 4A is a waveform diagram of the reception clock signal 12, and the data signal of FIG. 4A is shifted at the rise of the signal. In FIG. 3, since the shift register 1 has four stages,
The shift register 1 outputs the received data signal 11 sequentially shifted at the rise of the clock 12 in FIG. 4A as four data signals in parallel.

【0005】図4ウ〜カは、図4アの受信データ信号1
1をシフトレジスタ1でシフトしてパラレルに出力する
受信データ信号11の波形であり、図4ウ〜カは図4イ
のクロック12の立上りごとにシフトする。図4キ〜コ
は、比較器2にパラレル入力する期待値データであり、
予め設定される。図4キは「1」、図4クは「0」、図
4ケは「0」、図4コは「1」に設定される。
FIGS. 4A to 4C show the reception data signal 1 shown in FIG.
4 is a waveform of the received data signal 11 which is shifted in parallel by the shift register 1 and output in parallel. FIGS. 4A to 4C are shifted at every rising edge of the clock 12 in FIG. 4A to 4C show expected value data input in parallel to the comparator 2;
It is set in advance. 4 is set to “1”, FIG. 4 is set to “0”, FIG. 4 is set to “0”, and FIG. 4 is set to “1”.

【0006】図4サは比較器2の出力の波形であり、図
4キ〜コの期待値を「1、0、0、1」のビット列と
し、図4ウ〜カの受信データ11を縦列の状態と比較
し、一致したとき一致信号13を発生する。図4サで
は、「1、0、0、1」のビット列が2個所で一致する
ので、一致信号13を2回発生する。図4シは図4サの
信号を図4イの信号の立下りのタイミングで出力した波
形である。
FIG. 4 shows the waveform of the output of the comparator 2. The expected value of FIG. 4 is a bit string of "1, 0, 0, 1" and the received data 11 of FIG. And a match signal 13 is generated when they match. In FIG. 4, since the bit strings “1, 0, 0, 1” match at two locations, the match signal 13 is generated twice. FIG. 4 shows a waveform of the signal of FIG. 4 output at the falling timing of the signal of FIG.

【0007】[0007]

【発明が解決しようとする課題】図3の構成では、入力
した受信データ信号11が期待値に対して一致したとき
に一致信号13を出力するが、不一致の状態では信号を
出力しない。この発明は、シフトレジスタ1、比較器
2、第1のFF3で構成されるパターン一致回路に、周
期発生用カウンタ、ゲート回路、第2のFFを追加し、
比較器2から一致信号13が出力されず、周期発生用カ
ウンタから周期信号だけが出力されると、ゲート回路が
不一致信号を出力することにより、シリアル信号の一致
信号13の検出だけでなく、不一致の状態を確実に検出
するパターンの一致/不一致検出回路の提供を目的とす
る。
In the configuration shown in FIG. 3, the coincidence signal 13 is output when the input received data signal 11 matches the expected value, but the signal is not output in the non-coincidence state. According to the present invention, a period generating counter, a gate circuit, and a second FF are added to a pattern matching circuit including a shift register 1, a comparator 2, and a first FF 3.
When the coincidence signal 13 is not output from the comparator 2 and only the period signal is output from the period generation counter, the gate circuit outputs the non-coincidence signal. It is an object of the present invention to provide a pattern match / mismatch detection circuit for reliably detecting the state of the pattern.

【0008】[0008]

【課題を解決するための手段】この目的を達成するた
め、この発明では、受信データ信号11をシリアル入力
とし、受信クロック信号12によりシフトされてパラレ
ル出力を出すシフトレジスタ1と、シフトレジスタ1の
出力を第1の入力とし、期待値を第2の入力とし、第1
の入力と第2の入力を比較し、第1の入力が期待値と一
致すると一致信号13を出力する比較器2と、比較器2
の出力を入力とし、波形整形するFF3と、比較器2の
出力をロード入力とし、受信クロック信号12のタイミ
ングで周期信号15を発生する周期発生用カウンタ4
と、周期発生用カウンタ4の出力を第1の入力とし、比
較器2の出力の反転信号を第2の入力とするゲート回路
5と、ゲート回路5の出力を受信クロック信号12のタ
イミングで波形整形するFF6とを備え、比較器2から
一致信号13が出力されず、周期信号15だけが出力さ
れると、ゲート回路5が不一致信号16を出力する。
In order to achieve this object, according to the present invention, a shift register 1 which receives a received data signal 11 as a serial input and is shifted by a received clock signal 12 to output a parallel output, The output is the first input, the expected value is the second input, the first
And a second input comparing the first input with the expected value, and outputting a match signal 13 when the first input matches the expected value.
Of the comparator 2 as a load input, and a period generating counter 4 for generating a periodic signal 15 at the timing of the received clock signal 12.
A gate circuit 5 having the output of the period generation counter 4 as a first input and an inverted signal of the output of the comparator 2 as a second input; and a waveform of the output of the gate circuit 5 at the timing of the received clock signal 12. When the comparator 2 does not output the coincidence signal 13 and outputs only the periodic signal 15, the gate circuit 5 outputs a non-coincidence signal 16.

【0009】[0009]

【作用】次に、この発明によるパターン一致/不一致検
出回路を図1により説明する。図1の4は周期発生用カ
ウンタ、5はゲート回路、6はFFであり、その他は図
3と同じである。ゲート回路5は周期発生用カウンタ4
からの周期信号15と比較器2の一致信号13を比較
し、FF6はゲート回路5からの不一致信号16の波形
を整形する。すなわち、図1は図3に周期発生用カウン
タ4、ゲート回路5、FF6を追加したものである。
Next, a pattern match / mismatch detection circuit according to the present invention will be described with reference to FIG. 1 is a cycle generation counter, 5 is a gate circuit, 6 is an FF, and the rest is the same as FIG. The gate circuit 5 is a counter 4 for generating a period.
The FF 6 shapes the waveform of the non-coincidence signal 16 from the gate circuit 5 by comparing the periodic signal 15 from the comparator 2 with the coincidence signal 13 from the comparator 2. That is, FIG. 1 is obtained by adding the period generation counter 4, the gate circuit 5, and the FF 6 to FIG.

【0010】図1の周期発生用カウンタ4は、比較器2
の出力の一致信号13をロード入力とし、受信クロック
信号12をタイミング入力とする。周期発生用カウンタ
4は周期信号15を出力し、ゲート回路5の第1の入力
となる。
The period generation counter 4 shown in FIG.
Is the load input, and the reception clock signal 12 is the timing input. The period generation counter 4 outputs a period signal 15 and serves as a first input of the gate circuit 5.

【0011】周期発生用カウンタ4は、周期信号15を
シフトレジスタ1の段数ごとに発生する。図1では、シ
フトレジスタ1を4段で構成しているので、周期発生用
カウンタ4は「0」〜「3」を繰り返す。比較器2から
の一致信号13は反転してゲート回路5の第2の入力と
なる。ゲート回路5の出力は、不一致信号16として受
信クロック信号12のタイミングでFF6に入力され、
波形整形されて出力17として取り出される。
The period generating counter 4 generates a period signal 15 for each stage of the shift register 1. In FIG. 1, since the shift register 1 has four stages, the period generation counter 4 repeats "0" to "3". The coincidence signal 13 from the comparator 2 is inverted and becomes the second input of the gate circuit 5. The output of the gate circuit 5 is input to the FF 6 at the timing of the reception clock signal 12 as a mismatch signal 16,
The waveform is shaped and extracted as an output 17.

【0012】次に、図1の動作を図2のタイミングチャ
ートを参照して説明する。図2ア〜シは図4ア〜シと同
じである。図2スは、周期発生用カウンタ4の出力の周
期信号15である。比較器2からの一致信号13を周期
発生用カウンタ4のLD入力とし、一致信号13により
初期値に戻り、カウンタ値が「3」になったとき、周期
信号15を出力する。一致信号13が出力されなけれ
ば、カウンタ4は「0」〜「3」を繰り返すので、カウ
ンタ値が「3」になったとき、周期信号15を出力す
る。図2セはゲート回路5の出力信号であり、周期発生
用カウンタ4の周期信号15と比較器2の一致信号13
の反転信号を入力とし、一致信号13を出力せず、周期
信号15だけが出力したとき、ゲート回路5は不一致信
号16を出力する。
Next, the operation of FIG. 1 will be described with reference to the timing chart of FIG. 2A to 2C are the same as FIGS. 4A to 4C. FIG. 2 shows a cycle signal 15 output from the cycle generation counter 4. The coincidence signal 13 from the comparator 2 is used as the LD input of the period generation counter 4, and returns to the initial value by the coincidence signal 13. When the counter value becomes “3”, the period signal 15 is output. If the coincidence signal 13 is not output, the counter 4 repeats “0” to “3”, so that when the counter value becomes “3”, the periodic signal 15 is output. FIG. 2 shows an output signal of the gate circuit 5, wherein the period signal 15 of the period generation counter 4 and the coincidence signal 13 of the comparator 2 are shown.
The gate circuit 5 outputs a non-coincidence signal 16 when only the periodic signal 15 is output without outputting the coincidence signal 13 as an input.

【0013】[0013]

【発明の効果】この発明によれば、シフトレジスタ、比
較器、第1のFFで構成されるパターン一致回路に、周
期発生用カウンタ、ゲート回路、第2のFFを追加し、
比較器から一致信号が出力されず、周期信号だけが出力
されると、ゲート回路が不一致信号を出力するので、パ
ターン一致回路では検出できないパターンの不一致や異
常を検出することができる。
According to the present invention, a period generating counter, a gate circuit, and a second FF are added to a pattern matching circuit including a shift register, a comparator, and a first FF.
If the comparator does not output a coincidence signal but outputs only a periodic signal, the gate circuit outputs a non-coincidence signal. Therefore, it is possible to detect pattern non-coincidence or abnormality that cannot be detected by the pattern coincidence circuit.

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

【図1】この発明によるパターンの一致/不一致検出回
路の構成図である。
FIG. 1 is a configuration diagram of a pattern match / mismatch detection circuit according to the present invention.

【図2】図2のタイミングチャートである。FIG. 2 is a timing chart of FIG.

【図3】従来技術によるパターン一致検出回路の構成図
である。
FIG. 3 is a configuration diagram of a pattern matching detection circuit according to the related art.

【図4】図3のタイミングチャートである。FIG. 4 is a timing chart of FIG.

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

1 シフトレジスタ 2 比較器 3 FF(フリップフロップ) 4 カウンタ回路 5 ゲート回路 6 FF(フリップフロップ) DESCRIPTION OF SYMBOLS 1 Shift register 2 Comparator 3 FF (flip-flop) 4 Counter circuit 5 Gate circuit 6 FF (flip-flop)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 受信データ信号(11)をシリアル入力と
し、受信クロック信号(12)によりシフトされてパラレル
出力を出すシフトレジスタ(1) と、 シフトレジスタ(1) の出力を第1の入力とし、期待値を
第2の入力とし、第1の入力と第2の入力を比較し、第
1の入力が期待値と一致すると一致信号(13)を出力する
比較器(2) と、 比較器(2) の出力を入力とし、波形整形する第1のフリ
ップフロップ(3) と、 比較器(2) の出力をロード入力とし、受信クロック信号
(12)のタイミングで周期信号(15)を発生する周期発生用
カウンタ(4) と、 周期発生用カウンタ(4) の出力を第1の入力とし、比較
器(2) の出力の反転信号を第2の入力とするゲート回路
(5) と、 ゲート回路(5) の出力を受信クロック信号(12)のタイミ
ングで波形整形する第2のフリップフロップ(6) とを備
え、 比較器(2) から一致信号(13)が出力されず、周期信号(1
5)だけが出力されると、ゲート回路(5) が不一致信号(1
6)を出力することを特徴とするパターンの一致/不一致
検出回路。
1. A shift register (1) which receives a received data signal (11) as a serial input, shifts by a reception clock signal (12) and outputs a parallel output, and an output of the shift register (1) as a first input. A comparator (2) that compares an expected value with a second input, compares the first input with the second input, and outputs a match signal (13) when the first input matches the expected value; The output of (2) is input, the first flip-flop (3) for waveform shaping and the output of comparator (2) are load inputs, and the received clock signal
A period generation counter (4) that generates a period signal (15) at the timing of (12), and the output of the period generation counter (4) as a first input, and an inverted signal of the output of the comparator (2). Gate circuit as second input
(5) and a second flip-flop (6) for shaping the waveform of the output of the gate circuit (5) at the timing of the received clock signal (12), and the comparator (2) outputs the coincidence signal (13). The periodic signal (1
When only 5) is output, the gate circuit (5) outputs the mismatch signal (1
6. A pattern match / mismatch detection circuit which outputs 6).
JP25218192A 1992-08-27 1992-08-27 Pattern match / mismatch detection circuit Expired - Fee Related JP3316882B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25218192A JP3316882B2 (en) 1992-08-27 1992-08-27 Pattern match / mismatch detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25218192A JP3316882B2 (en) 1992-08-27 1992-08-27 Pattern match / mismatch detection circuit

Publications (2)

Publication Number Publication Date
JPH0675879A JPH0675879A (en) 1994-03-18
JP3316882B2 true JP3316882B2 (en) 2002-08-19

Family

ID=17233621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25218192A Expired - Fee Related JP3316882B2 (en) 1992-08-27 1992-08-27 Pattern match / mismatch detection circuit

Country Status (1)

Country Link
JP (1) JP3316882B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736888B (en) * 2012-07-02 2016-02-17 江汉大学 With the data retrieval circuit of synchronization of data streams

Also Published As

Publication number Publication date
JPH0675879A (en) 1994-03-18

Similar Documents

Publication Publication Date Title
KR100688516B1 (en) Method for serial data communication using a single line and apparatus therefor
JPH0775343B2 (en) Synchronization detection circuit and method
JP3316882B2 (en) Pattern match / mismatch detection circuit
JP3597142B2 (en) Center phase determination circuit and center phase determination method
JPH0865173A (en) Parallel to serial conversion circuit
JP3125651B2 (en) Rate generator
JPH0431211B2 (en)
JP3742092B2 (en) Center phase judgment circuit and its center phase judgment method
JP2731881B2 (en) Mark ratio setting circuit
JPS60235549A (en) C-bit synchronism system of nb1c code signal
JP2546137B2 (en) Parity error monitor circuit
JP2000188591A (en) Received data error detection circuit
JPH11150479A (en) Pulse width signal conversion circuit
JP3514020B2 (en) Rate generator
JPH08307405A (en) Frame synchronism detection device
JP2735760B2 (en) Pattern detection circuit
JPS63227232A (en) Frame synchronizing circuit
JPS63184133A (en) Comparator
JPH0583140A (en) Signal converter
JPH04292017A (en) Serial/parallel conversion circuit
JPH03257650A (en) Latch method for parallel digital signal
JPH10133855A (en) Coincidence detection circuit
JP2000332836A (en) Manchester code receiver
JPH0787380B2 (en) CMi decoding circuit
JPS6022542B2 (en) synchronization circuit

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees