JPH04280525A - Bit collation circuit - Google Patents

Bit collation circuit

Info

Publication number
JPH04280525A
JPH04280525A JP4313291A JP4313291A JPH04280525A JP H04280525 A JPH04280525 A JP H04280525A JP 4313291 A JP4313291 A JP 4313291A JP 4313291 A JP4313291 A JP 4313291A JP H04280525 A JPH04280525 A JP H04280525A
Authority
JP
Japan
Prior art keywords
circuit
bit
bits
pulse
input 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
JP4313291A
Other languages
Japanese (ja)
Inventor
Masaru Arai
荒井 優
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP4313291A priority Critical patent/JPH04280525A/en
Publication of JPH04280525A publication Critical patent/JPH04280525A/en
Pending legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)

Abstract

PURPOSE:To reduce a synchronism recovery time by shifting bits of an input signal by a bit number in matching with an appearance timing of plural bits detected by an information confirming circuit and comparing the bits. CONSTITUTION:An n-bit information latch circuit 7 latches n-bit information from an input signal and fed to an n-bit information confirmation circuit 9. The circuit 9 finds out the n-bit information in a distuff signal and generates an n-bit information pulse P3 representing a timing position of the information and sends it to a missing clock generating circuit 8. The circuit 8 generates a missing clock by a phase difference between the pulse P3 and n-bit information pulse P2 obtained by delaying an n-bit information pulse P1, and the clock is given to a memory circuit 3 as a read clock, which implements phase matching. A bit comparator circuit 4 compares bits to detect an error, and an error counter 6 outputs a bit error data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はビット照合回路に関し、
特にスタッフ同期方式のディジタル信号処理を行なう回
路のエラー検出を行なうためのビット照合回路に関する
[Industrial Application Field] The present invention relates to a bit matching circuit.
In particular, the present invention relates to a bit matching circuit for detecting errors in a circuit that performs stuff synchronous digital signal processing.

【0002】0002

【従来の技術】従来のこの種のビット照合回路は、入力
信号と出力信号とを1ビットずつ照合して、もし一致な
ければ入力信号を1ビットずらして再度照合するという
動作を繰返す。
2. Description of the Related Art A conventional bit matching circuit of this type repeats the operation of comparing an input signal and an output signal bit by bit, and if they do not match, shifting the input signal by 1 bit and comparing again.

【0003】図3は、このような動作をする従来のビッ
ト照合回路のブロック図である。
FIG. 3 is a block diagram of a conventional bit matching circuit that operates as described above.

【0004】同図において、入力信号はスタッフ同期回
路1により入力クロックと非同期の出力クロックに同期
化され、出力信号となる。このスタッフ同期回路1中で
発生するビットエラーを検出するため、入力信号と出力
信号とのビット照合回路を下記のように行なっている。
In the figure, an input signal is synchronized by a stuff synchronization circuit 1 to an output clock asynchronous to the input clock, and becomes an output signal. In order to detect bit errors occurring in the stuff synchronization circuit 1, a bit comparison circuit for input signals and output signals is implemented as follows.

【0005】まず、スタッフ同期回路1の出力信号は、
入力信号と1ビットごとに比較するために、デスタッフ
回路5にて、入力クロックに同期させる。また入力信号
は、出力信号と比較するために、スタッフ同期回路1お
よびデスタッフ回路5での遅延時間を補償するための遅
延回路2、メモリ回路3を通して、ビット比較回路4に
送られる。ビット比較回路4は、これとデスタッフ回路
5の送出信号とを1ビットごとに比較して、エラーチェ
ックを行なう。エラーカウンタ6は、ビット比較回路4
がエラー検出時に発するパルスをカウントして、ビット
エラーデータを発生する。例えば、10−3以上のビッ
トエラー率が検出されると、同期はずれ状態、すなわち
入力信号と出力信号との位相がずれた状態であると判断
して、同期保護回路11へ同期はずれを示す信号を送り
、1ビット歯抜けクロック作成回路10で歯抜けクロッ
クを作り、メモリ回路3の読み出しクロックとして与え
て、ビット比較回路4への入力信号を1ビット後方にシ
フトさせる。このようにして、同期状態となるまで、入
力信号を1ビットづつずらしながら、ビット比較が行な
われる。
First, the output signal of the stuff synchronization circuit 1 is
In order to compare each bit with the input signal, the destuff circuit 5 synchronizes it with the input clock. Further, the input signal is sent to a bit comparison circuit 4 through a delay circuit 2 for compensating the delay time in the stuffing synchronization circuit 1 and the destuffing circuit 5 and a memory circuit 3 in order to compare it with the output signal. The bit comparison circuit 4 compares this signal with the output signal of the destuffing circuit 5 bit by bit to check for errors. The error counter 6 is connected to the bit comparison circuit 4.
generates bit error data by counting the pulses emitted when an error is detected. For example, if a bit error rate of 10-3 or more is detected, it is determined that the state is out of synchronization, that is, the phase of the input signal and the output signal are shifted, and a signal indicating out of synchronization is sent to the synchronization protection circuit 11. is sent, a 1-bit toothless clock generation circuit 10 generates a toothless clock, which is applied as a read clock to the memory circuit 3, and the input signal to the bit comparison circuit 4 is shifted backward by one bit. In this way, bit comparison is performed while shifting the input signal one bit at a time until a synchronized state is achieved.

【0006】[0006]

【発明が解決しようとする課題】上述した従来のビット
照合回路では、所定のビットエラー率を超えた時、入力
信号と出力信号との位相を合わせるのに1ビットずらし
てそのたびにビットエラー率を監視するので、同期復帰
時間がかかり過ぎるという欠点がある。
[Problems to be Solved by the Invention] In the conventional bit matching circuit described above, when a predetermined bit error rate is exceeded, the bit error rate is changed each time by shifting one bit to match the phase of the input signal and the output signal. The disadvantage is that it takes too much time to return to synchronization.

【0007】[0007]

【課題を解決するための手段】本発明のビット照合回路
は、入力信号とこれをスタッフ同期させた出力信号のデ
スタッフ信号とをビット比較して出力信号中のビットエ
ラーによる同期はずれを検出し、同期はずれ検出時には
同期回復するまで前記入力信号をずらして前記ビット比
較するビット照合回路において、前記入力信号中の複数
(n)ビットずつ周期的に保持する情報保持回路と、前
記デスタッフ信号中の前記複数(n)ビットと一致する
部分を検出する情報確認回路とを備えて、該情報確認回
路で検出した前記複数(n)ビットの出現タイミングに
合わせるビット数だけ前記入力信号をずらして前記ビッ
ト比較することを特徴とする。
[Means for Solving the Problems] The bit matching circuit of the present invention compares the bits of an input signal with a destuffing signal of an output signal obtained by stuff-synchronizing the input signal and detects out-of-synchronization due to a bit error in the output signal. , a bit matching circuit that shifts the input signal and compares the bits until synchronization is recovered when out-of-synchronization is detected; an information holding circuit that periodically holds a plurality (n) bits of the input signal; and an information confirmation circuit that detects a portion that matches the plurality of (n) bits of the information confirmation circuit, and the input signal is shifted by a number of bits matching the appearance timing of the plurality of (n) bits detected by the information confirmation circuit. It is characterized by bit comparison.

【0008】[0008]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0009】図1は本発明の一実施例のブロック図であ
る。入力信号をスタッフ同期回路1にてスタッフ同期さ
せた出力信号は、入力信号と比較するために、デスタッ
フ回路5にて入力クロックに同期したデスタッフ信号に
戻す。また、入力信号は、出力信号と位相を合わせるた
めに、スタッフ同期回路1およびデスタッフ回路5にお
ける遅延量分を補償するための遅延回路2およびメモリ
回路3に通される。更に、入力信号は、nビット情報保
持回路7によりnビットの情報を保持されて、nビット
情報確認回路9へ送られ、そのnビットのタイミング位
置を示すnビット情報パルスが遅延回路2へ送られる。
FIG. 1 is a block diagram of one embodiment of the present invention. The output signal obtained by stuff-synchronizing the input signal with the stuffing synchronization circuit 1 is returned to a destuffing signal synchronized with the input clock in the destuffing circuit 5 for comparison with the input signal. Further, the input signal is passed through a delay circuit 2 and a memory circuit 3 for compensating for the amount of delay in the stuffing synchronization circuit 1 and the destuffing circuit 5 in order to match the phase with the output signal. Further, the input signal is held as n-bit information by the n-bit information holding circuit 7 and sent to the n-bit information confirmation circuit 9, and an n-bit information pulse indicating the timing position of the n-bit is sent to the delay circuit 2. It will be done.

【0010】nビット情報確認回路9は、デスタッフ信
号中のnビット情報を探して、この情報のタイミング位
置を示すnビット情報パルスP3を作って歯抜けクロッ
ク作成回路8へ送る。歯抜けクロック作成回路8では、
nビット情報パルスP3と、nビット情報パルスP1を
遅延回路2で遅延させて得たnビット情報パルスP2と
の位相差分だけ歯抜けのクロックを作成し、メモリ回路
3へ読み出しクロックとして与えることにより、入力信
号と出力信号とのnビット情報の部分の位相を合わせる
The n-bit information confirmation circuit 9 searches for n-bit information in the destuff signal, generates an n-bit information pulse P3 indicating the timing position of this information, and sends it to the blank clock generation circuit 8. In the toothless clock generation circuit 8,
By creating a clock that is sharp by the phase difference between the n-bit information pulse P3 and the n-bit information pulse P2 obtained by delaying the n-bit information pulse P1 with the delay circuit 2, and giving it to the memory circuit 3 as a read clock. , the phases of the n-bit information portions of the input signal and the output signal are matched.

【0011】ビット比較回路4では、入力信号と出力信
号とのビットの比較を行ない、エラー検出している。ま
た、エラーカウンタ6では、ビット比較回路4がエラー
検出時に送出するパルスをカウントし、ビットエラー回
数を示すビットエラーデータを出力している。
The bit comparison circuit 4 compares the bits of the input signal and the output signal to detect errors. Further, the error counter 6 counts the pulses sent by the bit comparator circuit 4 when an error is detected, and outputs bit error data indicating the number of bit errors.

【0012】図2は、本実施例中のnビット情報確認回
路9の構成例を示すブロック図である。デスタッフ回路
5の出力信号がシフトレジスタ回路91で並列nビット
に変換され、nビット情報保持回路7から与えられるn
ビット情報とnビット比較回路92で比較されて、両者
がnビットとも一致した時にパルスが出力される。パル
ス比較回路93では、nビットパルス発生回路94によ
って作成されたmビット同期でnビットの位置を示すn
ビットパルスと、nビット比較回路92から与えられる
パルスとのタイミングが一致している時には、同期状態
を示すパルスを同期保護回路95に送り、パルス抑制回
路96からnビット情報パルスP3を出力させる。これ
とは逆に、nビットパルスとnビット比較回路92との
出力パルスとのタイミングが一致しない時には、同期は
ずれ状態とみなされ、同期保護回路95でも同期はずれ
と判断されて、パルス抑制回路96からのnビット情報
パルスP3の出力を停止させる。同時にnビットパルス
発生回路94にもnビットパルス及びnビット情報パル
スの出力を停止させる。
FIG. 2 is a block diagram showing an example of the configuration of the n-bit information confirmation circuit 9 in this embodiment. The output signal of the destuffing circuit 5 is converted into parallel n bits by the shift register circuit 91, and the n
The bit information is compared with the n-bit comparator circuit 92, and a pulse is output when both match in all n bits. The pulse comparison circuit 93 uses the n bit synchronization generated by the n bit pulse generation circuit 94 to indicate the n bit position.
When the timings of the bit pulse and the pulse given from the n-bit comparison circuit 92 match, a pulse indicating a synchronized state is sent to the synchronization protection circuit 95, and the pulse suppression circuit 96 outputs an n-bit information pulse P3. On the contrary, when the timings of the n-bit pulse and the output pulse of the n-bit comparison circuit 92 do not match, it is assumed that the synchronization is out of synchronization, and the synchronization protection circuit 95 also determines that the synchronization is out of synchronization, and the pulse suppression circuit 96 The output of the n-bit information pulse P3 is stopped. At the same time, the n-bit pulse generation circuit 94 is also made to stop outputting n-bit pulses and n-bit information pulses.

【0013】nビット比較回路92は、同期はずれの時
でも動作し続けて、nビットの一致を検出した時、これ
と同タイミングのnビットパルスnビット情報パルスA
2がnビットパルス発生回路94から出力されると、パ
ルス比較回路93の出力パルスは、同期はずれ状態解除
を示し、これに応じてnビットパルス発生回路94でn
ビットパルス及びnビット情報パルスをnビット比較回
路92の出力パルスに同期した形で発生させる。すなわ
ち、同期はずれ状態解除時のnビット位置に一致させて
、mビット同期でnビットパルスを発生し始める。これ
以降、同期保護回路95で同期はずれ状態が解除される
まで、パルス比較回路93での比較を続行し、同期保護
回路95で同期はずれが解除されると初めて、パルス抑
制回路96での出力抑制が解除され、nビット情報パル
スP3を出力し始めて、同期状態に移行する。
The n-bit comparator circuit 92 continues to operate even when the synchronization is out of order, and when it detects a match of n bits, it generates an n-bit pulse n-bit information pulse A at the same timing.
2 is output from the n-bit pulse generation circuit 94, the output pulse of the pulse comparison circuit 93 indicates that the out-of-synchronization state has been released, and in response, the n-bit pulse generation circuit 94 outputs the
A bit pulse and an n-bit information pulse are generated in synchronization with the output pulse of the n-bit comparison circuit 92. That is, the n-bit pulse starts to be generated in m-bit synchronization, matching the n-bit position when the out-of-synchronization state is released. From now on, the pulse comparison circuit 93 continues to compare until the synchronization protection circuit 95 releases the out-of-synchronization state, and only when the synchronization protection circuit 95 releases the out-of-synchronization state, the pulse suppression circuit 96 suppresses the output. is released, starts outputting n-bit information pulse P3, and transitions to a synchronized state.

【0014】[0014]

【発明の効果】以上説明したように本発明は、同期がは
ずれた時に、入力信号中の複数(n)ビットの情報と一
致する出力信号の部分をとらえて同期を回復させること
により、同期復帰時間を従来よりも短くできるという効
果がある。
Effects of the Invention As explained above, the present invention can restore synchronization by capturing the portion of the output signal that matches the information of multiple (n) bits in the input signal when synchronization is lost. This has the effect of making the time shorter than before.

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

【図1】本発明の実施例のブロック図。FIG. 1 is a block diagram of an embodiment of the invention.

【図2】本発明の実施例のブロック図。FIG. 2 is a block diagram of an embodiment of the invention.

【図3】従来回路のブロック図。FIG. 3 is a block diagram of a conventional circuit.

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

1    スタッフ同期回路 2    遅延回路 3    メモリ回路 4    ビット比較回路 5    デスタッフ回路 6    エラーカウンタ 7    nビット情報保持回路 11,95    同期保護回路 8,10    歯抜けクロック作成回路9    n
ビット情報確認回路 91    シフトレジスタ回路 92    nビット比較回路 93    パルス比較回路 94    nビットパルス発生回路 96    パルス抑制回路
1 stuff synchronization circuit 2 delay circuit 3 memory circuit 4 bit comparison circuit 5 destuff circuit 6 error counter 7 n-bit information holding circuit 11, 95 synchronization protection circuit 8, 10 toothless clock generation circuit 9 n
Bit information confirmation circuit 91 Shift register circuit 92 N-bit comparison circuit 93 Pulse comparison circuit 94 N-bit pulse generation circuit 96 Pulse suppression circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  入力信号とこれをスタッフ同期させた
出力信号のデスタッフ信号とをビット比較して出力信号
中のビットエラーによる同期はずれを検出し、同期はず
れ検出時には同期回復するまで前記入力信号をずらして
前記ビット比較するビット照合回路において、前記入力
信号中の複数(n)ビットずつ周期的に保持する情報保
持回路と、前記デスタッフ信号中の前記複数(n)ビッ
トと一致する部分を検出する情報確認回路とを備えて、
該情報確認回路で検出した前記複数(n)ビットの出現
タイミングに合わせるビット数だけ前記入力信号をずら
して前記ビット比較することを特徴とするビット照合回
路。
1. A bit comparison is made between an input signal and a destuffing signal of an output signal obtained by stuff-synchronizing the input signal to detect out-of-synchronization due to a bit error in the output signal, and when out-of-synchronization is detected, the input signal is synchronized with the input signal until synchronization is recovered. The bit matching circuit that compares the bits by shifting the bits includes an information holding circuit that periodically holds a plurality of (n) bits in the input signal, and a portion that matches the plurality of (n) bits in the destuff signal. Equipped with an information confirmation circuit to detect,
A bit comparison circuit characterized in that the input signal is shifted by the number of bits matching the appearance timing of the plurality of (n) bits detected by the information confirmation circuit and the bits are compared.
JP4313291A 1991-03-08 1991-03-08 Bit collation circuit Pending JPH04280525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4313291A JPH04280525A (en) 1991-03-08 1991-03-08 Bit collation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4313291A JPH04280525A (en) 1991-03-08 1991-03-08 Bit collation circuit

Publications (1)

Publication Number Publication Date
JPH04280525A true JPH04280525A (en) 1992-10-06

Family

ID=12655322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4313291A Pending JPH04280525A (en) 1991-03-08 1991-03-08 Bit collation circuit

Country Status (1)

Country Link
JP (1) JPH04280525A (en)

Similar Documents

Publication Publication Date Title
JP2747077B2 (en) Frame synchronization circuit
US5864250A (en) Non-servo clock and data recovery circuit and method
JPS6226103B2 (en)
EP0500243B1 (en) Distributed bit-by-bit destuffing circuit for byte-stuffed multiframe data
US6014276A (en) Servo mark detection device
US6977973B1 (en) System and method for decoding manchester data
US5946327A (en) Method and apparatus for converting between a multi-bit TDM bus and a single-bit TDM bus using digital logic
JPH04280525A (en) Bit collation circuit
JPH0748725B2 (en) Frame synchronization circuit
US5303242A (en) Destuffing control by modifying detected pointer with differential value
JPH0431211B2 (en)
JP3063291B2 (en) Line monitoring circuit
JP3110387B2 (en) Multi-frame synchronization detector
KR0172459B1 (en) Method and device for reproducing clock signal
JP2611722B2 (en) Error flag output circuit
JPH0119670B2 (en)
JP2655624B2 (en) Frame synchronization detection circuit
JP3144735B2 (en) Synchronous signal generator
JPH073703Y2 (en) Multi-frame synchronization circuit
JP2000260131A (en) Method and circuit for protecting detection of synchronizing signal
JP2679607B2 (en) Pointer processing circuit
JPH05110555A (en) Parallel frame synchronizing circuit
JPH0585982B2 (en)
KR930002893Y1 (en) Corresponding signal detecting circuit
KR0120533B1 (en) Multiplex analog component