JPH03216037A - Cell synchronizing circuit - Google Patents

Cell synchronizing circuit

Info

Publication number
JPH03216037A
JPH03216037A JP2011595A JP1159590A JPH03216037A JP H03216037 A JPH03216037 A JP H03216037A JP 2011595 A JP2011595 A JP 2011595A JP 1159590 A JP1159590 A JP 1159590A JP H03216037 A JPH03216037 A JP H03216037A
Authority
JP
Japan
Prior art keywords
circuit
crc
input
bit
crc calculation
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
JP2011595A
Other languages
Japanese (ja)
Inventor
Hideo Tatsuno
秀雄 龍野
Nobuyuki Tokura
戸倉 信之
Yoichi Maeda
洋一 前田
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2011595A priority Critical patent/JPH03216037A/en
Publication of JPH03216037A publication Critical patent/JPH03216037A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To adopt a byte processing form receiver including a cell synchronization circuit by providing a delay means delaying an input data by a code length. CONSTITUTION:A delay means 13 is provided, which retards an input data by a code length (N bits) and after each flip-flop of a CRC arithmetic circuit 22 is reset, while taking a period of the CRC arithmetic circuit 22 as M, an input data is inputted to the CRC arithmetic circuit 22 by a code length (N bits) and an output of the delay means 13 is inputted for each bit while the internal state of the CRC arithmetic circuit 22 is shifted by [M-N] number of times without no input, and a succeeding bit of the input data is inputted while the internal state is shifted by [N-1] number of times without any input repetitively. In this case, the relation between the code length N and the period M of the CRC arithmetic circuit 22 is set optionally within a range that [M-N] is positive or zero. Thus, no restriction exists in cell structure, the header, the CRC bit and the information string in the cell are selected as an integral number of multiple of 8-bit and a byte processing type receiver is adopted including the cell synchronization circuit.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディジタル通信に利用する。特に、情報列にヘ
ッダが付加されたセルを情報単位として伝送する方式に
関する。さらに詳しくは、あるデータ列をC R C 
(cyclic redur1duncy chech
)演算した剰余であるCRCビットをその元のデータ列
に付加したデータ列がCRC演算で割り切れることから
、ヘッダ内にCRCビットを挿入して伝送し、受信側で
、CRC演算により割り切れるデータ列を同期パターン
とみなしてセル同期を確立するセル同期回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is used in digital communications. In particular, the present invention relates to a method of transmitting a cell in which a header is added to an information string as an information unit. For more details, convert a certain data string to C R C
(cyclic redur1duncy chech
) Since the data string obtained by adding the CRC bit, which is the remainder of the operation, to the original data string is divisible by the CRC operation, the CRC bit is inserted in the header and transmitted, and the receiving side creates a data string that is divisible by the CRC operation. The present invention relates to a cell synchronization circuit that establishes cell synchronization by regarding it as a synchronization pattern.

本発明は、CRC符号を検出して同期を確立するセル同
期回路において、CRC演算の周期より短い符号を用い
、CRC演算回路の内部状態が1夕ロックで等価的にC
RC演算の周期を終えるように符号長分だけ遅延したデ
ータと新しいデータとをCRC演算回路に入力すること
により、セル構造の制約を取り除き、符号長に対するC
RCビット数を増加させるものである。
The present invention uses a code shorter than the CRC operation cycle in a cell synchronization circuit that detects a CRC code to establish synchronization, so that the internal state of the CRC operation circuit is locked for one night and equivalently
By inputting data delayed by the code length and new data to the CRC calculation circuit to complete the RC calculation cycle, cell structure constraints are removed and the C
This increases the number of RC bits.

さらに本発明は、同期はずれ状態でビット誤りが生じた
場合でも確実にセル同期を確立できるようにするもので
ある。
Furthermore, the present invention makes it possible to reliably establish cell synchronization even if a bit error occurs in an out-of-synchronization state.

〔従来の技術〕[Conventional technology]

第6図はセル伝送方式で用いられるセル構成の一例を示
す。
FIG. 6 shows an example of a cell configuration used in the cell transmission system.

セル伝送方式は、情報列を一定ビット長のセルに分割し
て伝送する情報伝送方式であり、個々のセルには、その
宛先を示すビット列(以下「宛先情報」という)を含む
ヘッダが付加される。また、宛先情報の誤りを検出して
訂正するため、宛先情報にCRCビットを付加すること
が行われている。
The cell transmission method is an information transmission method in which an information string is divided into cells of a fixed bit length and transmitted, and each cell is attached with a header containing a bit string indicating its destination (hereinafter referred to as "destination information"). Ru. Furthermore, in order to detect and correct errors in destination information, CRC bits are added to destination information.

第6図に示した例では、宛先情報にKビットのCRCビ
ットを付加したNビットが、ヘッダとして情報列に付加
されている。すなわち符号長がNである。CRCビット
は宛先情報のビット列をCRC演算回路で割った余りで
あり、そのビット数K i;! C R C演算回路の
次数に等しい。
In the example shown in FIG. 6, N bits obtained by adding K CRC bits to the destination information are added to the information string as a header. That is, the code length is N. The CRC bit is the remainder when the bit string of the destination information is divided by the CRC calculation circuit, and the number of bits K i;! Equal to the order of the C R C calculation circuit.

CRCビットを使用する本来の目的は誤り検出およびそ
の訂正であり、CRCビットを求める元となったデータ
列にこのCRCビットを付加すると、そのデータ列がC
RC演算で割り切れるという性質を利用している。この
CRC演算で割り切れるという性質は、セル同期の確立
に利用できる。
The original purpose of using CRC bits is error detection and correction, and when this CRC bit is added to the data string from which the CRC bits are obtained, the data string becomes CRC
It takes advantage of the property that it is divisible by RC calculation. This property of being divisible by CRC calculation can be used to establish cell synchronization.

すなわち、CRC演算により割り切れるデータ列を同期
パターンとみなすことにより、セル同期を確立できる。
That is, cell synchronization can be established by regarding a data string that is divisible by CRC calculation as a synchronization pattern.

第7図はCRC演算によりセル同期を確立する従来例セ
ル同期回路のブロック構成図である。この従来例は特願
昭63−101917に示された回路であり、1は受信
データ、2は受信データ1のクロック、3は長さNビッ
トのシフトレジスタ、4aq 4b,4Cは論理積回路
、5a、5bはインバータ付きの論理積回路、6は排他
的論理和回路、7はフリツプフロップ、8はCRC演算
回路、9は論理和回路、10はフレームカウンタ、11
はフレームパルス、12はハンチングパルス、13は遅
延回路、14は同期保護回路、15は微分回路、16は
制御回路、17はリセットパルス、18は論理積回路4
aの制御信号、19はリセットパルス、20は論理和回
路である。
FIG. 7 is a block diagram of a conventional cell synchronization circuit that establishes cell synchronization by CRC calculation. This conventional example is a circuit shown in Japanese Patent Application No. 63-101917, where 1 is received data, 2 is a clock for received data 1, 3 is a shift register with a length of N bits, 4aq 4b, 4C are AND circuits, 5a and 5b are AND circuits with inverters, 6 is an exclusive OR circuit, 7 is a flip-flop, 8 is a CRC calculation circuit, 9 is an OR circuit, 10 is a frame counter, 11
is a frame pulse, 12 is a hunting pulse, 13 is a delay circuit, 14 is a synchronization protection circuit, 15 is a differentiation circuit, 16 is a control circuit, 17 is a reset pulse, 18 is an AND circuit 4
a control signal, 19 a reset pulse, and 20 an OR circuit.

シフトレジスタ3は、入力された受信データ1をクロッ
ク2が入力される毎に1ビットずつシフトさせ、受信デ
ータ1を遅延させる。シフトレジスタ3の長さは符号長
Nに等しい。
The shift register 3 shifts the received data 1 by one bit each time the clock 2 is input, thereby delaying the received data 1. The length of the shift register 3 is equal to the code length N.

CRC演算回路8は、この例では8次の生成多項式x8
+x2+X+lに対応するものである。
In this example, the CRC calculation circuit 8 uses an 8th order generator polynomial x8
This corresponds to +x2+X+l.

すなわち、縦続接続された八個のフリップフロツプ7と
、最終段のフリップフロップ7の出力を第一段、第二段
および第三段の入力にそれぞれ加算する三個の排他的論
理和回路6とを備え、入力データが上記の生成多項式で
割り切れたときに、フリップフロップ7の出力がすべて
「0」となる回路である。このCRC演算回路8は、八
個のフリップフロツプ7の出力を並列に出力する。
That is, eight flip-flops 7 connected in cascade and three exclusive OR circuits 6 that add the output of the final stage flip-flop 7 to the inputs of the first, second, and third stages, respectively, are used. This is a circuit in which all outputs of the flip-flop 7 become "0" when the input data is divisible by the above-mentioned generating polynomial. This CRC calculation circuit 8 outputs the outputs of eight flip-flops 7 in parallel.

論理和回路9は、CRC演算回路8の出力が全ビット「
0」のとき、パターン一致検出結果を出力する。この出
力は論理「0」である。パターン不一致時には、論理「
1」を出力する。
The OR circuit 9 is configured so that the output of the CRC calculation circuit 8 is
0, the pattern matching detection result is output. This output is a logic "0". When the pattern does not match, the logic “
1" is output.

フレームカウンタ10は、入力クロックを計数し、計数
値が1セル周期分になる毎に1クロック幅のフレームパ
ルスl1を出力する。フレームカウンタ10はまた、フ
レームパルス11よりNクロック前の時点で、リセット
パルス19を出力する。
The frame counter 10 counts input clocks and outputs a frame pulse l1 having a width of one clock every time the count value corresponds to one cell period. The frame counter 10 also outputs a reset pulse 19 at a time N clocks before the frame pulse 11.

同期保護回路14には、フレームパルス11の時間位置
で、論理積回路4bの出力する論理和回路9の出力とフ
レームパルス11との論理積が入力される。
The synchronization protection circuit 14 receives the logical product of the frame pulse 11 and the output of the logical sum circuit 9 output from the logical product circuit 4b at the time position of the frame pulse 11.

これにより同期保護回路14は、フレームパルス11の
時間位置で連続してパターン不一致が検出されたときに
セット状態となり、その出力を論理「1」とする。また
、フレームパルス11の時間位置で連続してパターン一
致が検出されたときには、リセット状態となり、その出
力を論理「0」とする。
As a result, the synchronization protection circuit 14 enters a set state when pattern mismatch is continuously detected at the time position of the frame pulse 11, and sets its output to logic "1". Further, when pattern matching is continuously detected at the time position of the frame pulse 11, a reset state is entered, and the output is set to logic "0".

セット状態にあるとき同期保護回路14は後方保護状態
であり、セル同期はずれの状態を示す。これに対してリ
セット状態にあるとき、同期保護回路14は前方保護状
態であり、セル同期確立状態を示す。
When in the set state, the synchronization protection circuit 14 is in a backward protection state, indicating a state where cell synchronization is out. On the other hand, when in the reset state, the synchronization protection circuit 14 is in a forward protection state, indicating a cell synchronization established state.

微分回路15は、その入力が論理「0」から論理「1」
に変化したときに、時間幅の短いトリガーパルスを出力
する。制御回路16はこのトリガーパルスにより起動さ
れ、クロンク同期したリセットパルス17と制御信号1
8とを出力する。リセットパルス17の出力タイミング
は、トリガーパルス入力から遅れてもよい。制御信号1
8は、リセットパルスl7の直後のNクロックの間は論
理「0」であり、それ以後は論理「1」を保つ信号であ
る。
The differentiating circuit 15 has an input that changes from logic "0" to logic "1".
outputs a short trigger pulse when the signal changes to . The control circuit 16 is activated by this trigger pulse and outputs a clock-synchronized reset pulse 17 and a control signal 1.
Outputs 8. The output timing of the reset pulse 17 may be delayed from the trigger pulse input. Control signal 1
8 is a signal that is at logic "0" for N clocks immediately after the reset pulse l7 and remains at logic "1" thereafter.

この同期セル回路がセル同期はずれ状態からセル同期確
立状態に復帰するまでの動作を説明する。
The operation of this synchronous cell circuit from the state out of cell synchronization to the state in which cell synchronization is established will be explained.

まず、同期保護回路14は、セル同期確立状態からセル
同期はずれ状態に移行すると、その出力を論理「1」に
変化させる。・このため論理積回路5bがゲートオフ状
態となり、論理積回路4aのゲートのオン、オフが制御
信号18によってのみ決まる状態になる。また、微分回
路15がトリガーパルスを出力し、制御回路16が起動
される。これにより制御回路16は、リセットパルス1
7および制御信号18を出力する。
First, when the synchronization protection circuit 14 shifts from the cell synchronization established state to the cell synchronization out state, it changes its output to logic "1". - Therefore, the AND circuit 5b is in a gate-off state, and the ON/OFF state of the gate of the AND circuit 4a is determined only by the control signal 18. Further, the differentiating circuit 15 outputs a trigger pulse, and the control circuit 16 is activated. As a result, the control circuit 16 outputs the reset pulse 1.
7 and a control signal 18.

CRC演算回路8がリセットパルス17によりリセット
されると、その直後のNビットの間は、論理積回路4a
が制御信号18によりゲートオフ状態となり、CRC演
算回路8に受信データ1がNビット入力される。これに
よって、CRC演算回路8内の八個のフリップフロップ
7から、受信データ1のうちのリセット後のNビットに
対する演算結果が出力される。ここで、Nの値がCRC
演算回路8の周期Mに等しければ、CRC演算回路8の
内部の遷移状態はリセット直後と同じ状態になる。
When the CRC calculation circuit 8 is reset by the reset pulse 17, the AND circuit 4a is operated for N bits immediately after that.
is turned off by the control signal 18, and N bits of received data 1 are input to the CRC calculation circuit 8. As a result, the eight flip-flops 7 in the CRC calculation circuit 8 output the calculation results for the reset N bits of the received data 1. Here, the value of N is CRC
If it is equal to the period M of the arithmetic circuit 8, the internal transition state of the CRC arithmetic circuit 8 will be the same state as immediately after reset.

この後、制御信号18により、論理積回路4aがゲート
オン状態となる。このためCRC演算回路8には、受信
データ1とこの受信データ1をNビット遅延させたビッ
トとの排他的論理和が入力される。論理積回路4aがゲ
ートオンとなった後の第一ビット目には、CRC演算回
路8のリセット後の第一人カビットと同じビットが、シ
フトレジスタ3の出力からCRC演算回路8に入力され
ることになる。
Thereafter, the control signal 18 turns on the gate of the AND circuit 4a. Therefore, the exclusive OR of the received data 1 and the bits obtained by delaying the received data 1 by N bits is input to the CRC calculation circuit 8. The first bit after the gate of the AND circuit 4a is turned on is the same bit as the first bit after the CRC calculation circuit 8 is reset, and is input to the CRC calculation circuit 8 from the output of the shift register 3. become.

CRC演算回路8は、同じ内部状態位置で同じビットが
偶数回入力されると、内部演算がすべて排他的論理和演
算であるため、互いに打ち消しあい、結果的にそのビッ
トが入力されなかったことと等価になる。したがって、
CRC演算回路8のリセット位置を1ビット後方にシフ
トしたことになる。しかも、受信データ1も同時に入力
されるため、CRC演算回路8のフリップフロツプ7か
ら、リセットパルス17によりリセットされた後の第二
ビットからの入力データに対する演算結果が得られる。
In the CRC calculation circuit 8, when the same bit is input an even number of times at the same internal state position, since all internal operations are exclusive OR operations, they cancel each other out, and as a result, it is determined that the bit was not input. become equivalent. therefore,
This means that the reset position of the CRC calculation circuit 8 is shifted backward by one bit. Furthermore, since the received data 1 is also input at the same time, the flip-flop 7 of the CRC calculation circuit 8 can obtain the calculation result for the input data from the second bit after being reset by the reset pulse 17.

同期保護回路14の出力が論理「1」のときには、論理
積回路4bの出力が論理「1」、すなわちフレームパル
ス11の時間位置でパターン不一致のとき、論理積回路
4Cが論理「1」のハンチングバルス12を出力する。
When the output of the synchronization protection circuit 14 is logic "1", the output of the AND circuit 4b is logic "1", that is, when the pattern does not match at the time position of the frame pulse 11, the AND circuit 4C is hunting logic "1". Output pulse 12.

このハンチングパルス12は、遅延回路13により遅延
し、インバータ付き論理積回路5aにおいて次の入カク
ロックを禁止する。このためフレームカウンタ10は、
フレームパルス11を出力している状態に保持される。
This hunting pulse 12 is delayed by a delay circuit 13, and inhibits the next input clock in the AND circuit 5a with an inverter. For this reason, the frame counter 10 is
The state in which the frame pulse 11 is output is maintained.

しかし、フレームカウンタ10は、論理和回路9におい
てパターン一致が検出されて論理積回路4bの出力が論
理「0」となると、次のクロックから新しいクロックが
入力されるため、計数動作を再開する。
However, when a pattern match is detected in the OR circuit 9 and the output of the AND circuit 4b becomes logic "0", the frame counter 10 restarts the counting operation because a new clock is input from the next clock.

パターン一致検出の時間位置が真のパターン一致検出位
置、すなわち受信データ1のヘッダ内の最終ヒット位置
である場合には、フレームパルス11の時間位置で連続
して論理積回路4bの出力が論理「0」となる。このた
め同期保護回路14がリセットされ、その出力が論理「
0」となり、セル同期確立状態となる。
If the time position of the pattern match detection is the true pattern match detection position, that is, the final hit position in the header of the received data 1, the output of the AND circuit 4b is continuously at the time position of the frame pulse 11. 0". Therefore, the synchronization protection circuit 14 is reset, and its output becomes the logic "
0'', and cell synchronization is established.

同期保護回路14の出力が論理「0」となると、論理積
回路5bはゲートオン状態になるため、リセットパルス
19が有効になり、論理積回路4aがゲートオン状態と
なる。このため、シフトレジスタ3の出力はCRC演算
回路8に入力されなくなる。
When the output of the synchronization protection circuit 14 becomes logic "0", the AND circuit 5b becomes gate-on, so the reset pulse 19 becomes valid, and the AND circuit 4a becomes gate-on. Therefore, the output of the shift register 3 is no longer input to the CRC calculation circuit 8.

したがって、これ以降、CRC演算回路8は、フレーム
パルス11の時間位置では、受信データ1のヘッダ部分
のみに対する演算結果を論理和回路9に送出することに
なる。これによって、伝送路上で単発的にヘッダ部分の
ビットに誤りが生じても、同期保護回路14により同期
が保護され、セル同期回路はセル同期確立状態を維持で
きる。
Therefore, from now on, the CRC calculation circuit 8 sends the calculation result for only the header portion of the received data 1 to the OR circuit 9 at the time position of the frame pulse 11. As a result, even if an error occurs in a bit in the header part on the transmission path, synchronization is protected by the synchronization protection circuit 14, and the cell synchronization circuit can maintain the cell synchronization established state.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、上述した従来のセル同期回路は、CRC演算回
路の周期Mと、符号長となるヘッダの長さNとを一致さ
せる必要がある。一般に生成多項式の周期Mは、その次
数をK次としたとき、〔2K1〕となる。ただし、前述
した生成多項式X8+x2+x+lの場合には、CX+
11の項と別の7次の項とに分解できるので、周期Mが
7次の項により決定され、2’−1=127となる。し
たがってこの場合には、符号長が127ビットでなけれ
ばならない。しかも、周期Mは必ず奇数である。
However, in the conventional cell synchronization circuit described above, it is necessary to match the period M of the CRC calculation circuit with the length N of the header, which is the code length. Generally, the period M of the generator polynomial is [2K1] when its degree is K-th. However, in the case of the generator polynomial X8+x2+x+l mentioned above, CX+
Since it can be decomposed into the 11th-order term and another 7th-order term, the period M is determined by the 7th-order term, and 2'-1=127. Therefore, in this case, the code length must be 127 bits. Furthermore, the period M is always an odd number.

このような制限があるため、上述したセル同期回路を使
用するためには、セル構造に制約が生じる問題が残って
いた。特に、ヘッダおよびセル内の情報列を8ビットの
整数倍に選び、セル同期回路を含めた受信装置をバイト
処理形にしようとする場合には、大きな制約となってし
まう。
Due to such limitations, there remains the problem that restrictions are imposed on the cell structure in order to use the above-described cell synchronization circuit. In particular, this poses a major restriction when selecting the header and the information strings in the cells to be integral multiples of 8 bits and making the receiving device including the cell synchronization circuit a byte processing type.

また、符号長Nを周期Mとを一致させるため、符号長N
に対してCRCビット数Kを大きくとることができず、
ヘッダ内のビット誤り訂正能力およびビット誤り検出能
力を向上させることができない問題が残っていた。
In addition, in order to match the code length N with the period M, the code length N
CRC bit number K cannot be set large for
There remained the problem that the bit error correction ability and bit error detection ability within the header could not be improved.

さらに、同期パターン一致検出判定を行う同期パターン
のビット数(生成多項式の次数に等しい)が符号長Nに
比較して非常に少ないため、正常の同期パターン検出位
置でない点での疑似同期パターン一致検出の確率が高い
という問題が残っていた。
Furthermore, since the number of bits of the synchronization pattern (equal to the degree of the generating polynomial) for which synchronization pattern match detection is determined is very small compared to the code length N, pseudo synchronization pattern match detection is performed at a point that is not a normal synchronization pattern detection position. The problem remained that the probability of

また、上述した従来例では、同期はずれ状態にあるとき
、CRC演算回路またはシフトレジスタにおいて雑音そ
の他によりビット誤りが生じると、CRC演算回路では
入力データに対する正しい演算結果が永久に得られなく
なってしまう。このために、セル同期回路が永久にセル
同期確立状態に移行できなくなることがあった。
Further, in the conventional example described above, if a bit error occurs due to noise or other factors in the CRC calculation circuit or shift register when the synchronization is out of synchronization, the CRC calculation circuit will forever be unable to obtain a correct calculation result for the input data. For this reason, the cell synchronization circuit may become permanently unable to shift to the cell synchronization established state.

本発明は、以上の課題を解決し、セル構造の制約を取り
除き、符号長に対するCRCビット数の増加が可能なセ
ル同期回路を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a cell synchronization circuit that solves the above-mentioned problems, removes restrictions on cell structure, and can increase the number of CRC bits relative to the code length.

さらに本発明は、同期はずれ状態でビット誤りが生じた
場合でも確実にセル同期を確立できるセル同期回路を提
供することを目的とする。
A further object of the present invention is to provide a cell synchronization circuit that can reliably establish cell synchronization even if a bit error occurs in an out-of-synchronization state.

〔課題を解決するための手段〕[Means to solve the problem]

セルのヘッダはその符号長Nが生成多項式の周期Mより
短く設定され、入力データ列をNビット遅延させる遅延
手段を備え、CRC演算回路がリセット後にNビットの
データ列を取り込んでからそのデータ列のクロック毎に
、CRC演算回路の内部状態が新たな入力のないまま〔
M−Nl回シフトした状態で遅延手段の出力がこのCR
C演算回路に入力され、さらにその内部状態が新たな入
力のないまま〔N−1〕回シフトした状態で新たなデー
タがCRC演算回路に入力されたように、遅延手段の出
力および新たなデータをCRC演算回路に入力する手段
とを備えたことを特徴とする。
The cell header has a code length N set to be shorter than the period M of the generator polynomial, and is equipped with a delay means for delaying the input data string by N bits, so that the CRC calculation circuit takes in the N-bit data string after being reset, and then outputs the data string. Every clock, the internal state of the CRC calculation circuit changes without any new input.
After shifting M-Nl times, the output of the delay means is this CR.
The output of the delay means and the new data are input to the CRC calculation circuit, and the new data is input to the CRC calculation circuit with its internal state shifted [N-1] times without any new input. and means for inputting the CRC to the CRC calculation circuit.

CRC演算回路の内部状態がリセットされた初期状態か
らあらかじめ定められた時間が経過してもセル同期状態
に移行しない場合に、再びCRC演算回路の内部状態を
リセットする再リセット手段を備えることが望ましい。
It is preferable to provide resetting means for resetting the internal state of the CRC calculation circuit when the internal state of the CRC calculation circuit does not shift to the cell synchronization state even after a predetermined period of time has elapsed from the initial state in which the internal state was reset. .

〔作 用〕 CRC演算回路の各フリップフロツプをリセットしてか
ら入力データ列を符号長分(Nビット)CRC演算回路
に入力すると、リセット後の1ビット目からNビット目
までのデータに対するCRC演算結果が得られる。この
後、CRC演算回路の内部状態を入力のない状態でCM
−N)ロシフトさせ、これにリセット後の1ビット目の
データを入力し、さらに入力のない状態で[:N−1〕
回ンフトさせると、CRC演算の1周期が終了し、CR
C演算回路からそのデータの寄与が取り除かれる。さら
に、これに続いて新たなデータ、すなわちN+1ビット
目のデータをCRC演算回路に入力すると、2ビット目
からN+1ビット目までのNビットのデータに対するC
RC演算結果が得られる。以下同様にして、1ビットの
入力毎にCRC演算結果が得られる。
[Function] After resetting each flip-flop of the CRC calculation circuit, input the input data string for the code length (N bits) to the CRC calculation circuit, and the CRC calculation result for the data from the 1st bit to the Nth bit after reset is generated. is obtained. After this, the internal state of the CRC calculation circuit is CM
-N), input the 1st bit data after reset to this, and with no further input [:N-1]
When the CRC operation is completed, one cycle of CRC calculation is completed, and the CR
The data contribution is removed from the C arithmetic circuit. Furthermore, when new data, that is, the N+1-th bit data, is input to the CRC calculation circuit, the CRC for N-bit data from the 2nd bit to the N+1-th bit is
An RC calculation result is obtained. Similarly, a CRC calculation result is obtained for each input bit.

しかし、実際にCRC演算回路の内部状態をシフトさせ
ると、入力データ列のクロック毎にM回のシフトが必要
となる。そこで本発明では、遅延手段の出力とCRC演
算回路との接続を選択して、等価的にM回のシフトを行
う。
However, actually shifting the internal state of the CRC calculation circuit requires shifting M times for each clock of the input data string. Therefore, in the present invention, the connection between the output of the delay means and the CRC arithmetic circuit is selected to perform equivalent shifting M times.

この構成により、符号長NとCRC演算回路の周期Mに
ついて、〔M−N〕が正しく正または零である範囲内に
おいて無関係な値に設定できる。
With this configuration, the code length N and the period M of the CRC calculation circuit can be set to unrelated values within the range where [MN] is correctly positive or zero.

したがって、セル構造に制約がなく、ヘッダ、CRCビ
ットおよびセル内の情報列を例えば8ビットの整数倍に
選ぶことができるため、セル同期回路を含めた受信装置
をバイト処理形にすることが可能となる。
Therefore, there are no restrictions on the cell structure, and the header, CRC bits, and information string in the cell can be selected to be an integer multiple of 8 bits, so the receiving device including the cell synchronization circuit can be of a byte processing type. becomes.

また、符号長Nに対してCRCビット数Kを大きくでき
るので、ヘッダ内のビット誤り訂正能力およびビット誤
り検出能力を向上させることができ、同期パターン一致
検出判定を行う同期パターンのビット数が多くなるので
、正常な同期パターン検出位置でない点での疑似同期パ
ターン一致検出確率が低下する。
In addition, since the number of CRC bits K can be increased relative to the code length N, the bit error correction ability and bit error detection ability in the header can be improved, and the number of bits in the synchronization pattern used for synchronization pattern matching detection and determination can be increased. Therefore, the probability of pseudo synchronization pattern matching detection at a point that is not a normal synchronization pattern detection position decreases.

さらに本発明では、CRC演算回路の各フリップフロッ
プをリセットした初期状態からある時間経過してもセル
同期確立状態に移行しない場合には、再度、CRC演算
回路の各フリップフロップをリセットして初期状態に戻
す。これにより、同期はずれ状態のときにCRC演算回
路または遅延手段において雑音その他によりビット誤り
が生じた場合でも、セル同期回路の動作に障害が発生す
ることがない。
Furthermore, in the present invention, if the cell synchronization establishment state is not reached even after a certain period of time has passed from the initial state in which each flip-flop in the CRC calculation circuit is reset, each flip-flop in the CRC calculation circuit is reset again to the initial state. Return to As a result, even if a bit error occurs due to noise or other factors in the CRC calculation circuit or the delay means during an out-of-synchronization state, the operation of the cell synchronization circuit will not be impaired.

〔実施例〕〔Example〕

第1図は本発明第一実施例セル同期回路のブロック構成
図である。
FIG. 1 is a block diagram of a cell synchronization circuit according to a first embodiment of the present invention.

この実施例回路は、ディジタル情報列にCRCビットを
含むヘッダが付加されたセルを入力とし、このセルを構
成するデータ列すなわち受信データ1についてCRCビ
ットを求めるために使用したと同等の生成多項式による
剰余を求めるCRC演算回路として排他的論理和回路6
、6a、6b、6Cおよびフリップフロップ7により構
成されたCRC演算回路22を備え、このCRC演算回
路22の出力から入力データ列が前記生成多項式で割り
切れたことを検出してセル同期を確立する手段として、
論理積回路4a、4b、4C、インバータ付きの論理積
回路5a,論理和回路9、フレームカウンタ10、遅延
回路13、同期保護回路14、微分回路15および制御
回路16を備え、セル同期はずれ状態となったときにC
RC演算回路22をリセットする手段として、インバー
タ付きの論理積回路5b、制御回路16および論理和回
路20を備える。
This example circuit takes as input a cell in which a header including a CRC bit is added to a digital information string, and uses a generating polynomial equivalent to that used to obtain the CRC bit for the data string composing this cell, that is, received data 1. Exclusive OR circuit 6 as a CRC calculation circuit for calculating remainder
, 6a, 6b, 6C and a flip-flop 7, and means for establishing cell synchronization by detecting from the output of the CRC calculation circuit 22 that the input data string is divisible by the generating polynomial. As,
It includes AND circuits 4a, 4b, and 4C, an AND circuit 5a with an inverter, an OR circuit 9, a frame counter 10, a delay circuit 13, a synchronization protection circuit 14, a differentiation circuit 15, and a control circuit 16. C when it becomes
As means for resetting the RC arithmetic circuit 22, an AND circuit 5b with an inverter, a control circuit 16, and an OR circuit 20 are provided.

ここで本実施例の特徴とするところは、セルのヘッダは
その符号長N (=40)が生成多項式の周期M (=
127)より短く設定され、受信データ1をNビット遅
延させる遅延手段としてNビット構成のシフトレジスタ
21を備え、CRC演算回路22がリセット後にNビッ
トのデータ列を取り込んでから受信データ1のクロック
2毎に、CRC演算回路22の内部状態が新たな入力の
ないまま〔M−N]回シフトした状態でシフトレジスタ
21の出力がこのCRC演算回路22に入力され、さら
にその内部状態が新たな入力のないままCN−1E回シ
フトした状態で新たなデータがCRC演算回路22に入
力されたように、シフトレジスタ21の出力および新た
なデータをCRC演算回路22に入力する手段として、
CRC演算回路22に、CRC演算回路の基本構成に付
加して排他的論理和回路6a、6bおよび6Cが設けら
れたことにある。
The feature of this embodiment is that the cell header has a code length N (=40) and a period M (=40) of the generating polynomial.
127) A shift register 21 with an N-bit configuration is provided as a delay means that is set shorter and delays received data 1 by N bits, and the CRC calculation circuit 22 takes in the N-bit data string after being reset, and then outputs the clock 2 of received data 1. Each time, the output of the shift register 21 is input to this CRC calculation circuit 22 in a state where the internal state of the CRC calculation circuit 22 has been shifted [M−N] times without any new input, and the internal state is further shifted when a new input is received. As a means of inputting the output of the shift register 21 and new data to the CRC calculation circuit 22, just as new data is input to the CRC calculation circuit 22 after being shifted CN-1E times without
The CRC calculation circuit 22 is provided with exclusive OR circuits 6a, 6b, and 6C in addition to the basic configuration of the CRC calculation circuit.

本実施例はまた、リセットする手段として、CRC演算
回路22の内部状態がリセットされた初期状態からあら
かじめ定められた時間が経過してもセル同期状態に移行
しない場合に、再びCRC演算回路22の内部状態をリ
セットする再リセット手段として、論理和回路23、論
理積回路24およびカウンタ25を備える。
In this embodiment, as a resetting means, when the internal state of the CRC calculation circuit 22 does not shift to the cell synchronization state even after a predetermined period of time has elapsed from the initial state where the CRC calculation circuit 22 was reset, the CRC calculation circuit 22 is reset. An OR circuit 23, an AND circuit 24, and a counter 25 are provided as resetting means for resetting the internal state.

第2図はシリアル処理形CRC演算回路の動作フローの
原理を示す図である。
FIG. 2 is a diagram showing the principle of the operation flow of the serial processing type CRC arithmetic circuit.

CRC演算回路の全フリップフロップをリセット(ステ
ップa)させた後に、このCRC演算回路に受信データ
を符号長に等しいNビットだけ入力する(ステップb)
。このときCRC演算回路の内部状態はN回シフトする
。ここまでは従来例と同じである。
After all flip-flops of the CRC calculation circuit are reset (step a), the received data is input to the CRC calculation circuit by N bits equal to the code length (step b).
. At this time, the internal state of the CRC calculation circuit is shifted N times. The process up to this point is the same as the conventional example.

この後に、CRC演算回路の内部状態を入力がない状態
で〔M−N〕回シフトさせる(ステップC)。次に、そ
の内部状態で、受信データ1をNビット遅延させたデー
タを1ビット入力する(ステップd)。このとき、CR
C演算回路の内部状態は1回シフトする。さらに、入力
がない状態でその内部状態を〔N− 1 )回シフトさ
せ(ステップe)、その内部状態で新しいデータを1ビ
ット入力する(ステップf)。このとき、CRC演算回
路の内部状態がさらに1回シフトする。
After this, the internal state of the CRC calculation circuit is shifted [M−N] times without input (step C). Next, in this internal state, 1 bit of data obtained by delaying received data 1 by N bits is input (step d). At this time, CR
The internal state of the C arithmetic circuit is shifted once. Furthermore, the internal state is shifted [N-1] times in a state where there is no input (step e), and 1 bit of new data is input in that internal state (step f). At this time, the internal state of the CRC calculation circuit is shifted one more time.

第1図に示したCRC演算回路22は、以上の動作を実
際にデータをシフトさせて実行するのではなく、等価的
に行い、ステップCないしfの処理(ステップg)を1
クロック毎に行う。
The CRC calculation circuit 22 shown in FIG. 1 does not perform the above operations by actually shifting the data, but equivalently performs the processing of steps C to f (step g) in one step.
Perform every clock.

CRC演算回路内のすべてのフリップフロップをリセッ
トした後に、Nビットのデータを入力し、その状態から
CRC演算回路の内部状態を〔MN〕回シフトさせると
、CRC演算回路の周期上でみたその内部状態は、リセ
ット直後の内部状態と同じになる。その内部状態に受信
データ1をNビット遅延させた1ビットのデータを入力
すると、同じ内部状態で同じビットを二度入力したこと
になる。この結果、リセット後に最初にCRC演算回路
に入力されたビットの影響をCRC演算回路の内部状態
から取り除くことができる。
After resetting all the flip-flops in the CRC calculation circuit, if N bits of data are input and the internal state of the CRC calculation circuit is shifted [MN] times from that state, its internal state as seen on the period of the CRC calculation circuit The state will be the same as the internal state immediately after reset. If 1-bit data obtained by delaying received data 1 by N bits is input to the internal state, the same bit will be input twice in the same internal state. As a result, the influence of the first bit input to the CRC calculation circuit after reset can be removed from the internal state of the CRC calculation circuit.

この後に、リセット後にNビットのデータが入力された
ときと同じ内部状態の位置にその内部状態を戻し、その
内部状態に新しいデータを1ビット入力する。これによ
りCRC演算回路の出力には、リセット後の二番目のビ
ットから新たに入力されたビットまでのNビットのデー
タに対する演算結果が得られる。
After this, the internal state is returned to the same internal state position as when N bits of data were input after reset, and 1 bit of new data is input to that internal state. As a result, the CRC calculation circuit outputs the calculation result for N bits of data from the second bit after reset to the newly input bit.

以下同様にして、開始点が1ビットずつずれたNビット
の入力データに対するCRC演算結果が1ビット毎に得
られる。
Similarly, CRC calculation results for N-bit input data whose starting point is shifted by 1 bit are obtained bit by bit.

以上の動作を1クロックで実現するCRC演算回路22
の構成について説明する。本実施例では、CRC演算回
路22の生成多項式が第7図に示した従来例の場合と同
じx8+x” +x+lであり、符号長N(ヘッダの長
さに等しい)が40ビットの場合の例を示す。
CRC calculation circuit 22 that realizes the above operations in one clock
The configuration of is explained below. In this embodiment, the generating polynomial of the CRC calculation circuit 22 is x8+x"+x+l, which is the same as in the conventional example shown in FIG. 7, and the code length N (equal to the header length) is 40 bits. show.

入力がない場合、1回のシフトによるフリップフロップ
7のそれぞれの内部状態の変化は、で表される。
When there is no input, the change in the internal state of each flip-flop 7 due to one shift is expressed by .

入力がない状態で内部状態を〔M−N]=87回シフト
させた遷移状態は、T”を求めることによって得られる
。この場合、リセット後に受信データ1のみを40ビッ
ト入力したときの各フリップフロツプ7の内容をF。1
〜Foaとすると、入力がない状態で87回シフトした
後の各フリップフロップ7の内容Fil〜Flatは、 (以下本頁余白) F11=F02十FO6+FO7+FO8F+2−FO
2+ FO3+ FO6 ) 『 (2) となる。ここで「+」は排他的論理和演算を表す。
The transition state in which the internal state is shifted [M-N] = 87 times without any input can be obtained by finding T. 7 contents F.1
Assuming ~Foa, the contents Fil~Flat of each flip-flop 7 after shifting 87 times with no input are (hereinafter the margin of this page) F11 = F02 + FO6 + FO7 + FO8 F + 2 - FO
2+ FO3+ FO6) ``(2) becomes. Here, "+" represents an exclusive OR operation.

この87回シフトした内部状態に、Nビット遅延したデ
ータD1を入力すると、その直後の各フリップフロップ
7の内容F21〜F28は、Fzt=F+s F28=FIT 」 となる。
When data D1 delayed by N bits is input to the internal state shifted 87 times, the contents F21 to F28 of each flip-flop 7 immediately after that become Fzt=F+s F28=FIT.

さらに、この内部状態を入力がない状態で〔N1)=3
9回シフトさせた後に新しいデータD41を入力したと
き、各フリップフ口.ツプ7の内部状態F31〜F38
は、(2)式および(3)式を用いてリセット後に40
ビットのデータを入力したときの各フリップフロップの
内容で表すと、 となる。
Furthermore, this internal state is set to [N1)=3 when there is no input.
When new data D41 is input after shifting nine times, each flip-flop . Internal status of knob 7 F31 to F38
is 40 after reset using equations (2) and (3).
The contents of each flip-flop when bit data is input are as follows.

(4)式は、リセット後に40ビットのデータを入力し
た後に、次のビットからCRC演算回路の基本形の二段
目、六段目および七段目のフリップフロップに遅延した
データを加え、初段のフリップフロングに新しいデータ
を加えればよいことを示している。このような回路を第
1図にCRC演算回路22として示す。このCRC演算
回路22は、CRC演算回路の基本形に排他的論理和回
路6a、6bおよび6Cを加えた構成となっている。
Equation (4) is calculated by inputting 40 bits of data after reset, adding delayed data from the next bit to the second, sixth and seventh stage flip-flops of the basic CRC calculation circuit, and adding the delayed data to the first stage flip-flops. This shows that new data can be added to the flip-flop. Such a circuit is shown as a CRC calculation circuit 22 in FIG. This CRC calculation circuit 22 has a configuration in which exclusive OR circuits 6a, 6b and 6C are added to the basic form of a CRC calculation circuit.

次に第3図を参照してセル同期回路全体の動作を説明す
る。
Next, the operation of the entire cell synchronization circuit will be explained with reference to FIG.

この動作は、Nビットのデータが入力されてからセル同
期パターンが検出されるまでのCRC演算回路22の内
部動作(ステップg)と、論理和回路23、論理積回路
24およびカウンタ25の動作(ステップh,i)が第
7図に示した従来例と異なる。
This operation includes the internal operation of the CRC calculation circuit 22 (step g) from input of N-bit data until the cell synchronization pattern is detected, and the operation of the OR circuit 23, AND circuit 24, and counter 25 (step g). Steps h and i) are different from the conventional example shown in FIG.

以下では、従来例と同等の動作および既に説明したCR
C演算回路22の内部動作については簡単に説明し、論
理和回路23、論理積回路24およびカウンタ25の動
作について詳しく説明する。
Below, we will explain the operation equivalent to the conventional example and the CR
The internal operation of the C arithmetic circuit 22 will be briefly explained, and the operations of the OR circuit 23, the AND circuit 24, and the counter 25 will be explained in detail.

同期保護回路14は、フレームパルス11のタイミング
で論理和回路9が連続して1回にわたりパターン不一致
(論理「1」)を出力したとき、セル同期はずれを検出
する。この検出結果によりCRC演算回路22内のすべ
てのフリップフロップ7がリセットされる(ステップa
)。続いてCRC演算回路22は、シフトレジスタ21
からの入力が禁止された状態で、受信データ1をNビッ
ト取り込み(ステップb)、1クロツタ毎に、受信デー
タ2とシフトレジスタ21の出力データとを取り込んで
CRC演算を行う。CRC演算回路22の出力が全ビッ
ト「0」となってセル同期パターンが検出されると、同
期保護回路14は、フレームパルス11のタイミングで
J回連続してパターン一致を検出すると、セル同期確立
状態となる。この状態では、シフトレジスタ21の出力
からCRC演算回路22への入力が禁止され、正しい符
号長のデータ列の先頭データがCRC演算回路22に入
力される直前に、毎回、CRC演算回路22内のすべて
のフリップフロップ7がリセットされる。
The synchronization protection circuit 14 detects cell synchronization when the OR circuit 9 continuously outputs pattern mismatch (logic "1") once at the timing of the frame pulse 11. Based on this detection result, all flip-flops 7 in the CRC calculation circuit 22 are reset (step a
). Subsequently, the CRC calculation circuit 22 uses the shift register 21
With the input from the shift register 21 prohibited, N bits of received data 1 are taken in (step b), and received data 2 and the output data of the shift register 21 are taken in for each clock and CRC calculation is performed. When the output of the CRC calculation circuit 22 becomes all "0" and a cell synchronization pattern is detected, the synchronization protection circuit 14 establishes cell synchronization when it detects pattern matching J times in succession at the timing of the frame pulse 11. state. In this state, input from the output of the shift register 21 to the CRC calculation circuit 22 is prohibited, and immediately before the first data of the data string with the correct code length is input to the CRC calculation circuit 22, the All flip-flops 7 are reset.

カウンタ25は、同期はずれ状態になると微分回路15
のトリガパスルによりリセットされ、それ以後はクロッ
ク2を計数する。このカウンタ25の計数周期は、少な
くとも同期保護回路14のJ段の後方保護時間、すなわ
ちセル同期はずれ状態からセル同期確立状態に戻るため
の時間よりも長い周期であり、その周期毎に出力パルス
を発生する。このカウンタ25の出力は、論理積回路2
4および論理和回路23により、同期保護回路14の出
力が論理「1」、すなわち同期はずれ状態のときだけ、
トリガパルスとして制御回路16に入力される。
When the counter 25 is out of synchronization, the differentiating circuit 15
It is reset by the trigger pulse of , and thereafter counts 2 clocks. The counting period of this counter 25 is longer than at least the backward protection time of the J stage of the synchronization protection circuit 14, that is, the time required to return from the cell synchronization state to the cell synchronization established state, and outputs an output pulse every cycle. Occur. The output of this counter 25 is the AND circuit 2
4 and the OR circuit 23, only when the output of the synchronization protection circuit 14 is logic "1", that is, in an out-of-synchronization state,
It is input to the control circuit 16 as a trigger pulse.

このようにして、カウンタ25の機能により、同期はず
れ状態のときにCRC演算回路22またはシフトレジス
タ21で雑音その他によりビット誤りが生じた場合でも
、CRC演算回路22を再度初期状態に設定できる。し
たがって、セル同期回路は必ずセル同期確立状態に復帰
できる。
In this manner, the function of the counter 25 allows the CRC calculation circuit 22 to be set to the initial state again even if a bit error occurs in the CRC calculation circuit 22 or the shift register 21 due to noise or the like during an out-of-synchronization state. Therefore, the cell synchronization circuit can always return to the cell synchronization established state.

第4図は本発明第二実施例セル同期回路のブロック構成
図である。
FIG. 4 is a block diagram of a cell synchronization circuit according to a second embodiment of the present invention.

この実施例では、受信データ26が8ビットの並列デー
タとして入力され、この並列データのクロックがクロッ
ク27として入力される。これに対応して、CRC演算
回路としてパラレル処理形のCRC演算回路31を備え
る。また、遅延手段とじて並列形の40ビットの遅延回
路28を備え、論理積回路4aに代えて論理積回路29
、32を備える。
In this embodiment, the received data 26 is input as 8-bit parallel data, and the clock of this parallel data is input as the clock 27. Correspondingly, a parallel processing type CRC calculation circuit 31 is provided as a CRC calculation circuit. Further, a parallel 40-bit delay circuit 28 is provided as a delay means, and an AND circuit 29 is provided in place of the AND circuit 4a.
, 32.

第5図はパラレル処理形CRC演算回路の動作フローの
原理を示す。
FIG. 5 shows the principle of the operation flow of the parallel processing type CRC arithmetic circuit.

CRC演算回路の全フリップフロップをリセット (ス
テップa)させた後に、このCRC演算回路に8並列の
データをL=8ビットずつN/L回入力する(ステップ
b)。このとき、CRC演算回路には符号長に等しいN
ビットのデータが入力され、その内部状態はN回シフト
する。続いて、入力データのクロック毎に、入力がない
状態でCRC演算回路の内部状態をCM−N〕回シフト
させる(ステップC)。次に、その内部状態に、受信デ
ータ1をN/Lクロック分遅延させたデータをLビット
入力する(ステップd)。このときCRC演算回路の内
部状態はL回シフトする。さらに、入力がない状態でそ
の内部状態を(N−L〕回シフトさせ(ステップe)、
その内部状態で新しい並列データをLビット(1クロツ
タ分)入力する(ステップf)。このとき、CRC演算
回路の内部状態がさらにL回シフトする。本実施例の場
合にも、実際にデータをシフトさせるのではなく、等価
的に行う。したがって、ステップ口ないしfの処理(ス
テップg)は、並列データ1クロック (クロック27
)毎に行われる。
After all the flip-flops of the CRC calculation circuit are reset (step a), 8 parallel data is input to the CRC calculation circuit N/L times by L=8 bits (step b). At this time, the CRC calculation circuit has N equal to the code length.
Bit data is input and its internal state is shifted N times. Subsequently, for each clock of input data, the internal state of the CRC calculation circuit is shifted CM-N times with no input (step C). Next, data obtained by delaying received data 1 by N/L clocks is input into the internal state (step d). At this time, the internal state of the CRC calculation circuit is shifted L times. Furthermore, its internal state is shifted (NL) times in the absence of input (step e),
In this internal state, new parallel data is input by L bits (for one crotter) (step f). At this time, the internal state of the CRC calculation circuit is further shifted L times. In the case of this embodiment as well, data is not actually shifted, but equivalently shifted. Therefore, the processing of step f to step f (step g) consists of one clock of parallel data (clock 27
) is carried out every time.

CRC演算回路内のすべてのフリップフロップをリセッ
トした後に、Nビットのデータを入力し、その状態から
CRC演算回路の内部状態をCM−N〕ロシフトさせる
と、CRC演算回路の周期上でみたその内部状態は、リ
セット直後の内部状態と同じになる。その内部状態に入
力データをN/Lクロック遅延させたLビットの並列デ
ータを入力すると、同じ内部状態で同一のLビットを二
度入力したことになる。この結果、リセット後に最初に
CRC演算回路に入力されたLビットの影響をCRC演
算回路の内部状態から取り除くことができる。
After resetting all the flip-flops in the CRC calculation circuit, input N-bit data and shift the internal state of the CRC calculation circuit by CM-N from that state. The state will be the same as the internal state immediately after reset. If L-bit parallel data obtained by delaying the input data by N/L clocks is input into the internal state, the same L-bit will be input twice in the same internal state. As a result, the influence of the L bit first input to the CRC calculation circuit after reset can be removed from the internal state of the CRC calculation circuit.

この後に、リセット後にNビットのデータが入力された
ときと同じ内部状態の位置にその内部状態を戻し、その
内部状態に新しい並列データをLビット入力する。これ
によりCRC演算回路の出力には、リセット後の二番目
の並列データから新たに入力された並列データまでのN
ビットのデータに対する演算結果が得られる。
Thereafter, the internal state is returned to the same internal state position as when N bits of data were input after reset, and new L bits of parallel data are input to the internal state. As a result, the output of the CRC calculation circuit is N
An operation result for bit data is obtained.

以下同様にして、開始点がLビットずつずれたNビット
の入力データに対するCRC演算結果がクロック毎に得
られる。
Similarly, CRC calculation results for N-bit input data whose starting point is shifted by L bits are obtained for each clock.

以上の動作を実現するためのCRC演算回路31の設計
について説明する。本実施例では、CRC演算回路31
の生成多項式が第7図に示した従来例の場合と同じx’
 +x2+x+lであり、符号長N(ヘツダの長さに等
しい)が40ビットの場合の例を示す。また、セル同期
回路に入力される受信データ26は、8ビット毎のデー
タ位相がそろっているものとする。したがって、CRC
ビットも一つの並列データ内にあるものとする。
The design of the CRC calculation circuit 31 for realizing the above operation will be explained. In this embodiment, the CRC calculation circuit 31
The generating polynomial of x' is the same as in the conventional example shown in FIG.
+x2+x+l, and the code length N (equal to the length of the header) is 40 bits. It is also assumed that the received data 26 input to the cell synchronization circuit has the same data phase for every 8 bits. Therefore, the CRC
It is assumed that bits are also included in one parallel data.

まず、8並列処理形のCRC演算回路の基本形を求める
。並列処理によりCRC演算を行うための回路構成につ
いては、パラレル・スクランブリング・テクニークス・
フォー・ディジタル・マルチプレクサズJ 、AT&T
テクニカル・ジャーナル第65巻、1986年9/10
月 (”Parallel scramb1+ng  
 techniques   for  digita
l  multiplexers  ,AT&T te
chnical journal, sep,/act
,  1986. Vol,65)に示された自己同期
形スクランブラの並列化手法と同様にして求めることが
できる。
First, a basic form of an 8-parallel processing type CRC calculation circuit is found. Regarding the circuit configuration for performing CRC calculation by parallel processing, refer to Parallel Scrambling Techniques.
Four Digital Multiplexers J, AT&T
Technical Journal Volume 65, September 10, 1986
Moon (“Parallel scramble1+ng
techniques for digital
l multiplexers, AT&Tte
chnical journal, sep, /act
, 1986. It can be obtained in the same manner as the parallelization method of a self-synchronous scrambler shown in Vol. 65).

この文献によれば、並列処理数が8の場合の回路構成は
、(5)式で与えられるマトリックスTsから7,II
を求tることによって得られる。T..8を(6)式に
示す。
According to this document, the circuit configuration when the number of parallel processing is 8 is 7,II from the matrix Ts given by equation (5).
It can be obtained by finding t. T. .. 8 is shown in equation (6).

(5)式の四つの部分に分けられたマトリックスのうち
右下の部分は、第7図に示したC R. C演算回路に
おける各フリップフロップの次のクロックにおける状態
を示す。例えばマトリックスT.の9行目は、一番目の
フリップフロップの次の状態が入力データと八番目のフ
リップフロツプの内容との排他的論理和であることを示
している。
The lower right part of the matrix divided into four parts in equation (5) is the C R. The state of each flip-flop in the C arithmetic circuit at the next clock is shown. For example, matrix T. The ninth line of FIG. 2 shows that the next state of the first flip-flop is the exclusive OR of the input data and the contents of the eighth flip-flop.

また、入力データをD1〜D8で表すと、第8列はD1
を、第7列はD2を、第1列はD8をそれぞれ示してい
る。
Also, if input data is represented by D1 to D8, the eighth column is D1
, the seventh column shows D2, and the first column shows D8.

したがって、現在の状態における各フリップフロノプの
内容をそれぞれFl,T ”FB,T とすると、次の
状態における各フリップフロツプの内容Fl.T。
Therefore, if the contents of each flip-flop in the current state are respectively Fl,T''FB,T, then the contents of each flip-flop in the next state are Fl.T.

〜F8,T。1 は、(6)式から、 F1,ア−+=F+,r+Ft,r+Fs,ア+D8F
2.T。,=F’,,エ+F2,T+F7.T+D7(
7) となる。(7)式は、第4図に示したCRC演算回路3
1内の8並列CRC基本演算部30に相当する。
~F8,T. 1, from equation (6), F1, A-+=F+, r+Ft, r+Fs, A+D8F
2. T. ,=F',,E+F2,T+F7. T+D7(
7) It becomes. Equation (7) is expressed by the CRC calculation circuit 3 shown in FIG.
This corresponds to the 8-parallel CRC basic calculation unit 30 in 1.

(7)、(1)および(2)式を用いることにより、第
5図に示したステップgの処理を行う演算式について、
第一実施例の場合と同様にして求めることができる。そ
の演算式は、リセット後に40ビットのデータが入力さ
れたときの各フリップフロツブの内部状態をFOI〜F
’osとし、並列受信データを5クロック分遅延させた
データをD1〜D8とし、新しく入力される並列受信デ
ータをD41〜D48とし、各フリップフロップの次の
内部状態をF II〜F+8とすれば、 FI4 F[+2+ FO3+ FO4+ FO8(8) となる。
By using equations (7), (1), and (2), the calculation formula for performing the process of step g shown in FIG.
It can be determined in the same manner as in the first embodiment. The calculation formula calculates the internal state of each flip-flop from FOI to F when 40 bits of data is input after reset.
'os, the data obtained by delaying the parallel received data by 5 clocks are D1 to D8, the newly input parallel received data is D41 to D48, and the next internal state of each flip-flop is F II to F+8. , FI4 F[+2+ FO3+ FO4+ FO8(8).

(8)式の演算は(7)式の演算にD1 〜D8の演算
を加えたものである。したがって、(8)式を実現する
回路は、第4図に示したCRC演算回路31となる。
The calculation of equation (8) is the addition of the calculations of D1 to D8 to the calculation of equation (7). Therefore, the circuit that realizes equation (8) is the CRC calculation circuit 31 shown in FIG.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明のセル同期回路は、入力デ
ータを符号長分(Nビット)遅延させる遅延手段を設け
、CRC演算回路の周期をMとしたとき、CRC演算回
路の各フリップフロップをリセットした後に、入力デー
タを符号長分(Nビッ})CRC演算回路に入力し、そ
れ以後、1ビット毎に、CRC演算回路の内部状態を入
力がない状態で〔M−NE回シフトさせた状態に遅延手
段の出力を入力させ、さらにその内部状態を入力がない
状態で(N−IE回シフトさせた状態に入力データの次
のビットを入力させることを繰り返す。
As explained above, the cell synchronization circuit of the present invention is provided with a delay means that delays input data by the code length (N bits), and when the period of the CRC calculation circuit is M, each flip-flop of the CRC calculation circuit is After resetting, the input data is input to the CRC calculation circuit for the code length (N bits), and thereafter, for each bit, the internal state of the CRC calculation circuit is shifted [M-NE times] without input. This process is repeated by inputting the output of the delay means to the state, and then inputting the next bit of the input data to the state where there is no input (shifted N-IE times).

この構成により、符号長NとCRC演算回路の周期Mと
の関係が、〔M−N〕が正または零である範囲内におい
て任意に設定できる。
With this configuration, the relationship between the code length N and the period M of the CRC calculation circuit can be arbitrarily set within the range where [M-N] is positive or zero.

したがって、セル構造に制約がなく、ヘッダ、CRCビ
ットおよびセル内の情報列を8ビットの整数倍に選ぶこ
とができ、セル同期回路を含めた受信装置をバイト処理
形にすることが可能となる効果がある。
Therefore, there are no restrictions on the cell structure, and the header, CRC bit, and information string in the cell can be selected as integral multiples of 8 bits, and the receiving device including the cell synchronization circuit can be made into a byte processing type. effective.

また、符号長Nに対してCRCビット数を大きくとるこ
とができるので、ヘッダ内のビット誤り訂正能力右よび
ビット誤り検出能力を向上させることができる効果があ
る。これと同時に、同期パターンーに検出判定を行う同
期パターンのビット数が多くなることにより、正常な同
期パターン検出位置でない点での疑似同期パクーン一致
検出確率が低下する効果がある。
Furthermore, since the number of CRC bits can be increased relative to the code length N, there is an effect that the bit error correction ability and the bit error detection ability in the header can be improved. At the same time, since the number of bits of the synchronization pattern for which detection is determined increases, the probability of detecting a pseudo synchronization pattern coincidence at a point that is not a normal synchronization pattern detection position is reduced.

さらに本発明は、CRC演算回路の各フリップフロップ
をリセットした初期状態からある時間経過してもセル同
期確立状態に移行しない場合には、再度、CRC演算回
路の各フリップフロップをリセットできるので、同期は
ずれ状態になるときにCRC演算回路または遅延手段に
おいて雑音その他によりビット誤りが生じた場合でも、
セル同期回路が正常に動作できる効果がある。
Furthermore, in the present invention, if the cell synchronization establishment state is not reached even after a certain period of time has elapsed from the initial state in which each flip-flop in the CRC calculation circuit was reset, each flip-flop in the CRC calculation circuit can be reset again. Even if a bit error occurs due to noise or other factors in the CRC calculation circuit or delay means when the error occurs,
This has the effect of allowing the cell synchronization circuit to operate normally.

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

第1図は本発明第一実施例セル同期回路のブロック構成
図。 第2図はCRC演算回路の動作フローの原理を示す図。 第3図はセル同期回路全体の動作フローを示す図。 第4図は本発明第二実施例セル同期回路のブロック構成
図。 第5図はCRC演算回路の動作フローの原理を示す図。 第6図はセル構成の一例を示す図。 第7図は従来例セル同期回路のブロック構成図。 3、21−9 7トレジスタ、4a, 4b, 4c,
 24、29、32・・・論理積回路、5a、5b・・
・インバータ付きの論理積回路、6 、5a, 5b、
6C・・・排他的論理和回路、7・・・フリップフロッ
プ、8、22、31−・・CRC演算回路、9、20、
23・・・論理和回路、10・・・フレームカウンタ、
13・・・遅延回路、14・・・同期保護回路、15・
・・微分回路、16・・・制御回路、25・・・カウン
タ、28・・・遅延回路、30・・・8並列CRC基本
演算部。
FIG. 1 is a block diagram of a cell synchronization circuit according to a first embodiment of the present invention. FIG. 2 is a diagram showing the principle of the operation flow of the CRC calculation circuit. FIG. 3 is a diagram showing the overall operation flow of the cell synchronization circuit. FIG. 4 is a block diagram of a cell synchronization circuit according to a second embodiment of the present invention. FIG. 5 is a diagram showing the principle of the operation flow of the CRC calculation circuit. FIG. 6 is a diagram showing an example of a cell configuration. FIG. 7 is a block diagram of a conventional cell synchronization circuit. 3, 21-9 7 register, 4a, 4b, 4c,
24, 29, 32...AND circuit, 5a, 5b...
・AND circuit with inverter, 6, 5a, 5b,
6C... Exclusive OR circuit, 7... Flip-flop, 8, 22, 31-... CRC calculation circuit, 9, 20,
23...OR circuit, 10...frame counter,
13...Delay circuit, 14...Synchronization protection circuit, 15.
... Differentiation circuit, 16 ... Control circuit, 25 ... Counter, 28 ... Delay circuit, 30 ... 8 parallel CRC basic operation section.

Claims (1)

【特許請求の範囲】 1、ディジタル情報列にCRCビットを含むヘッダが付
加されたセルを入力とし、 このセルを構成するデータ列について前記CRCビット
を求めるために使用したと同等の生成多項式による剰余
を求めるCRC演算回路と、このCRC演算回路の出力
から入力データ列が前記生成多項式で割り切れたことを
検出してセル同期を確立する手段と、 セル同期はずれ状態となったときに前記CRC演算回路
をリセットする手段と を備えたセル同期回路において、 前記ヘッダはその符号長Nが前記生成多項式の周期Mよ
り短く設定され、 入力データ列をNビット遅延させる遅延手段と、前記C
RC演算回路がリセット後にNビットのデータ列を取り
込んでからそのデータ列のクロック毎に、前記CRC演
算回路の内部状態が新たな入力のないまま〔M−N〕回
シフトした状態で前記遅延手段の出力がこのCRC演算
回路に入力され、さらにその内部状態が新たな入力のな
いまま〔N−1〕回シフトした状態で新たなデータが前
記CRC演算回路に入力されたように、前記遅延手段の
出力および前記新たなデータを前記CRC演算回路に入
力する手段と を備えたことを特徴とするセル同期回路。 2、リセットする手段は、CRC演算回路の内部状態が
リセットされた初期状態からあらかじめ定められた時間
が経過してもセル同期状態に移行しない場合に、再び前
記CRC演算回路の内部状態をリセットする再リセット
手段を備えた請求項1記載のセル同期回路。
[Scope of Claims] 1. A cell in which a header including a CRC bit is added to a digital information string is input, and a remainder obtained by a generating polynomial equivalent to that used to obtain the CRC bit for the data string constituting this cell. a CRC arithmetic circuit for determining the CRC arithmetic circuit; a means for establishing cell synchronization by detecting from the output of the CRC arithmetic circuit that the input data string is divisible by the generating polynomial; and a means for establishing cell synchronization when the cell synchronization is out of state In the cell synchronization circuit, the header has a code length N set to be shorter than the period M of the generator polynomial, and a delay means for delaying the input data string by N bits;
After the RC arithmetic circuit takes in an N-bit data string after being reset, for each clock of the data string, the delay means shifts the internal state of the CRC arithmetic circuit shifted [MN] times without any new input. The output of the delay means is input to the CRC calculation circuit, and new data is input to the CRC calculation circuit with its internal state shifted [N-1] times without any new input. and means for inputting the new data to the CRC calculation circuit. 2. The resetting means resets the internal state of the CRC arithmetic circuit again if the internal state of the CRC arithmetic circuit does not shift to the cell synchronization state even after a predetermined time has elapsed from the reset initial state. 2. The cell synchronization circuit according to claim 1, further comprising resetting means.
JP2011595A 1990-01-19 1990-01-19 Cell synchronizing circuit Pending JPH03216037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011595A JPH03216037A (en) 1990-01-19 1990-01-19 Cell synchronizing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011595A JPH03216037A (en) 1990-01-19 1990-01-19 Cell synchronizing circuit

Publications (1)

Publication Number Publication Date
JPH03216037A true JPH03216037A (en) 1991-09-24

Family

ID=11782263

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011595A Pending JPH03216037A (en) 1990-01-19 1990-01-19 Cell synchronizing circuit

Country Status (1)

Country Link
JP (1) JPH03216037A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207003A (en) * 1991-08-30 1993-08-13 Nec Corp Frame synchronizing signal detection circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207003A (en) * 1991-08-30 1993-08-13 Nec Corp Frame synchronizing signal detection circuit

Similar Documents

Publication Publication Date Title
US20020032551A1 (en) Systems and methods for implementing hash algorithms
US4312069A (en) Serial encoding-decoding for cyclic block codes
EP0600380B1 (en) Method and device for detection and correction of errors in ATM cell headers
US6128766A (en) High speed cyclic redundancy check algorithm
JP3433426B2 (en) Method and apparatus for decoding Manchester encoded data
JPH0260004B2 (en)
JP3173457B2 (en) Data communication device
US7080348B2 (en) Creating polynomial division logical devices
JPH06110654A (en) Data-coincidence detecting circuit
US5097436A (en) High performance adder using carry predictions
JPH03219725A (en) Error inspection code generator and transmission error detector
US7320101B1 (en) Fast parallel calculation of cyclic redundancy checks
Singh et al. VLSI implementation of parallel CRC using pipelining, unfolding and retiming
JPH03216037A (en) Cell synchronizing circuit
US4993051A (en) Johnson counter circuit with invalid counter position detection and correction mechanism
JPH05227041A (en) One-bit error correcting circuit based upon crc operation
US7760843B2 (en) High frequency divider state correction circuit
JP2618723B2 (en) Test circuit
CN112969998A (en) Optimized meta-stability-inclusive ordering by parallel prefix computation
JP2592681B2 (en) Cell synchronization circuit
JP2822928B2 (en) CRC code calculation method and circuit
JP2592685B2 (en) Cell synchronization circuit
JPH03135240A (en) Cell synchronous circuit
JP4428819B2 (en) Multi-input data sorting circuit
SU1756879A1 (en) Device for determination of linearity of boolean functions