JP2592681B2 - Cell synchronization circuit - Google Patents

Cell synchronization circuit

Info

Publication number
JP2592681B2
JP2592681B2 JP1236416A JP23641689A JP2592681B2 JP 2592681 B2 JP2592681 B2 JP 2592681B2 JP 1236416 A JP1236416 A JP 1236416A JP 23641689 A JP23641689 A JP 23641689A JP 2592681 B2 JP2592681 B2 JP 2592681B2
Authority
JP
Japan
Prior art keywords
crc
circuit
exclusive
input
bit
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
JP1236416A
Other languages
Japanese (ja)
Other versions
JPH0398346A (en
Inventor
秀雄 龍野
信之 戸倉
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 JP1236416A priority Critical patent/JP2592681B2/en
Publication of JPH0398346A publication Critical patent/JPH0398346A/en
Application granted granted Critical
Publication of JP2592681B2 publication Critical patent/JP2592681B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

本発明は、CRC演算をパイプライン処理することによ
り、セル同期回路の高速動作を可能とし、しかも集積化
を容易にするものである。
The present invention enables high-speed operation of a cell synchronization circuit by pipeline processing of a CRC operation, and also facilitates integration.

〔従来の技術〕[Conventional technology]

受信信号の誤り検出および誤り訂正を行うため、情報
信号にCRCビットを付加して伝送する方式が知られてい
る。
2. Description of the Related Art In order to perform error detection and error correction of a received signal, a method is known in which a CRC bit is added to an information signal for transmission.

CRCビットは、情報信号を生成多項式で除算したとき
の剰余として与えられる。mビットのCRCビットを得る
には、m次の生成多項式を用いる。このCRCビットが付
加されたデータ列は、同じ生成多項式またはその多項式
を因数分解した多項式、例えばm次の生成多項式が1次
とm−1次の二つの生成多項式に分離できる場合のm−
1次の生成多項式によるCRC演算(除算)により、全ビ
ットが「0」(割り切れる)性質がある。
The CRC bit is given as a remainder when the information signal is divided by the generator polynomial. In order to obtain m CRC bits, an m-th generation polynomial is used. The data string to which the CRC bit is added is the same generator polynomial or a polynomial obtained by factoring the polynomial, for example, m−m when the m-th generator polynomial can be separated into two generator polynomials of the first and m−1 orders.
All bits have a property of “0” (divisible) by a CRC operation (division) using a first-order generator polynomial.

第3図にCRCビットの使用例を示す。この例は、情報
列にヘッダを付加したセルを伝送単位とする場合に、ヘ
ッダとして、宛先を示す信号とその信号から得られたCR
Cビットとを用いたものである。
FIG. 3 shows an example of using the CRC bit. In this example, when a cell in which a header is added to an information sequence is used as a transmission unit, a signal indicating a destination and a CR obtained from the signal are used as the header.
This uses C bits.

セルを伝送する場合に、ヘッダとしてCRCビットが付
加されたデータ列を用いると、これをセル同期に利用す
ることができる。すなわち、ヘッダ長をnビットとする
とき、伝送路上でのビット誤りの発生がなければ、CRC
ビットを含む符号長nビットのデータ列をCRC演算回路
で割った余りが全ビット「0」となるので、このパター
ンをセル同期パターンとみなしてセル同期をとる。
When a cell is transmitted, if a data string to which a CRC bit is added is used as a header, this can be used for cell synchronization. In other words, when the header length is n bits, if there is no bit error on the transmission path, the CRC
Since the remainder obtained by dividing the data sequence having a code length of n bits including bits by the CRC operation circuit becomes all bits "0", this pattern is regarded as a cell synchronization pattern and cell synchronization is achieved.

第4図はCRC演算回路の一例を示すブロック構成図で
ある。ここでは、生成多項式が、 x8+x2+x+1 のときの一般的な例を示す。この回路は、入力データを
順次シフトする縦列接続されたフリップフロップ30−1
〜30−8と、フリップフロップ30−1、30−2および30
−3のそれぞれの入力に挿入された排他的論理和回路31
−1〜31−3とにより構成され、フリップフロップ30−
1〜30−8は入力データのクロックで動作する。
FIG. 4 is a block diagram showing an example of a CRC operation circuit. Here, generator polynomial shows a general example of a case of x 8 + x 2 + x + 1. This circuit comprises cascaded flip-flops 30-1 for sequentially shifting input data.
30-8, and flip-flops 30-1, 30-2 and 30
Exclusive OR circuit 31 inserted at each input of -3
-1 to 31-3, and the flip-flop 30-
1 to 30-8 operate with the clock of the input data.

ここで、符号長nを40ビットとする。最初にフリップ
フロップ30−1〜30−8の内容をすべて「0」としてお
くと、40ビット長の符号の入力が完了したとき、フリッ
プフロップ30−1〜30−8に並んだデータがCRC演算の
余りとなる。この余りが全ビット「0」となるものをセ
ル同期パターンとして用いる。
Here, the code length n is assumed to be 40 bits. First, if the contents of the flip-flops 30-1 to 30-8 are all set to "0", the data arranged in the flip-flops 30-1 to 30-8 are subjected to the CRC operation when the input of the 40-bit code is completed. Will be the remainder. The remainder in which all bits are "0" is used as a cell synchronization pattern.

この方式では、通常、セル同期復帰時間を短くするた
めに、1ビット即時シフト方式のセル同期回路が必要と
なる。すなわち、符号長nビットに対するCRC演算を入
力データ列のクロックで1クロック以内に実行すること
が必要である。このためには、上記の演算において、各
フリップフロップ30−1〜30−8に最終的に残ったデー
タが、40ビット長の符号の各ビットに対するCRC演算の
累積値であることを利用する。すなわち、40ビット長の
符号の各ビットをD1〜D40で表すと、フリップフロップ3
0−1〜30−8に最終的に残るデータZ1〜Z8は、 となる。ただし、「+」は排他的論理和を表す 第5図は(1)式を利用した従来例セル同期回路のブ
ロック構成図を示す。
In this system, a 1-bit immediate-shift cell synchronization circuit is usually required to shorten the cell synchronization recovery time. That is, it is necessary to execute the CRC operation for the code length n bits within one clock of the clock of the input data string. For this purpose, the fact that the data finally left in each of the flip-flops 30-1 to 30-8 in the above operation is the accumulated value of the CRC operation for each bit of the 40-bit length code is used. That is, if each bit of the 40-bit length code is represented by D 1 to D 40 , the flip-flop 3
Data Z 1 to Z 8 finally remaining in 0-1 to 30-8 are Becomes Here, “+” indicates an exclusive OR. FIG. 5 is a block diagram of a conventional cell synchronization circuit using the equation (1).

このセル同期回路は、40ビット長のシフトレジスタ
1、排他的論理和回路網2、ラッチ回路3、論理和回路
4、論理積回路5、6、フレーム同期保護回路7、フレ
ークカウンタ8およびインバータ入力付の論理積回路9
を備える。シフトレジスタ1には入力データ100とこの
入力データ100から抽出されたクロック200とが入力され
る。また、同じクロック200が、ラッチ回路3と論理積
回路9とに供給される。
The cell synchronization circuit includes a 40-bit shift register 1, an exclusive OR circuit 2, a latch circuit 3, an OR circuit 4, AND circuits 5, 6, a frame synchronization protection circuit 7, a flake counter 8, and an inverter input. AND circuit 9 with
Is provided. Input data 100 and a clock 200 extracted from the input data 100 are input to the shift register 1. The same clock 200 is supplied to the latch circuit 3 and the AND circuit 9.

シフトレジスタ1は、クロック200によりデータをシ
フトさせる。
The shift register 1 shifts data by the clock 200.

排他的論理和回路網2は、(1)式の演算を行い、デ
ータZ1〜Z8を出力する。(1)式のD1〜D40はシフトレ
ジスタ1内の各フリップフロップF1〜F40の出力に対応
している。
Exclusive OR circuit network 2, performs an operation of (1), and outputs the data Z 1 to Z 8. In the equation (1), D 1 to D 40 correspond to the outputs of the flip-flops F 1 to F 40 in the shift register 1.

フレーム同期保護回路7、は、例えばリセット計数形
式の回路により構成される。リセット計数形式の回路で
は、連続して「1」が入力されると内部状態がセット状
態となり、その出力がフレーム同期はずれ状態を示す
「1」となる。また、連続して「0」が入力されると、
内部状態がリセット状態となり、その出力がフレーム同
期状態を示す「0」となる。
The frame synchronization protection circuit 7 is constituted by, for example, a reset counting type circuit. In the reset counting type circuit, when "1" is continuously input, the internal state becomes the set state, and the output thereof becomes "1" which indicates the out-of-frame state. When “0” is continuously input,
The internal state is reset, and its output becomes "0" indicating the frame synchronization state.

ここで、フレーム同期保護回路7の出力が「1」であ
るとして、このセル同期回路の同期復帰動作を説明す
る。
Here, assuming that the output of the frame synchronization protection circuit 7 is "1", the synchronization recovery operation of this cell synchronization circuit will be described.

まず、シフトレジスタ1がクロックにより入力データ
をシフトさせ、新しい40個のデータを出力する。この出
力を排他的論理和回路網2でCRC演算し、得られたデー
タZ1〜Z8をラッチ回路3に出力する。ラッチ回路3は、
次のクロックでデータZ1〜Z8を取り込む。これと同時
に、シフトレジスタ1がデータをシフトさせ、排他的論
理和回路網2は新しい40ビットに対してCRC演算を行
う。
First, the shift register 1 shifts input data by a clock and outputs new 40 data. This output is subjected to a CRC operation in the exclusive OR circuit network 2 and the obtained data Z 1 to Z 8 are output to the latch circuit 3. The latch circuit 3
The data Z 1 to Z 8 are taken in at the next clock. At the same time, the shift register 1 shifts the data, and the exclusive OR circuit 2 performs a CRC operation on the new 40 bits.

排他的論理和回路網2の入力データ、すなわちシフト
レジスタ1の内容がCRCビットを含む正しい40ビット長
の符号である場合(ヘッダが入力された場合)、または
それと同一系列のデータ列である場合は、データZ1〜Z8
がすべて「0」となる。しかし、それ以外のほとんどの
時間には、データZ1〜Z8の少なくとも一つが「1」とな
り、論理和回路4の出力が「1」となる。
When the input data of the exclusive OR network 2, that is, the content of the shift register 1 is a correct 40-bit length code including a CRC bit (when a header is input), or a data sequence of the same series Is the data Z 1 to Z 8
Are all "0". However, at most other times, at least one of the data Z 1 to Z 8 is “1”, and the output of the OR circuit 4 is “1”.

フレームカウンタ8にフレームパルスが現れていない
ときには、論理積回路5の出力が「0」となるので、論
理積回路6の出力が「0」となり、論理積回路9の出力
にクロックが得られ、フレームカウンタ8が計数動作を
続ける。フレームカウンタ8の出力にフレームパルスが
現れると、論理積回路5の出力が「1」となるので、論
理積回路6、9によってフレームカウンタ8は、次の入
力クロックから論理和回路4の出力が「0」になるまで
計数動作を停止し、フレームパルスを出力している状態
を維持する。
When no frame pulse appears in the frame counter 8, the output of the AND circuit 5 becomes "0", so that the output of the AND circuit 6 becomes "0", and a clock is obtained at the output of the AND circuit 9. The frame counter 8 continues the counting operation. When a frame pulse appears at the output of the frame counter 8, the output of the AND circuit 5 becomes "1". Therefore, the output of the OR circuit 4 is output from the next input clock by the AND circuits 6 and 9 by the AND circuits 6 and 9. The counting operation is stopped until “0” is reached, and the state of outputting the frame pulse is maintained.

シフトレジスタ1の内容がCRCビットを含む正しい40
ビット長の符号になると、次のクロックで論理和回路4
の出力が「0」となり、その時点でセル同期が復帰し、
その次のクロックによりフレームカウンタ8が計数動作
を開始する。以後、フレームパルス位置で論理和回路4
の出力が「0」となるので、フレーム同期保護回路7に
は連続して「0」が入力され、フレーム同期保護回路7
がリセット状態に以降して同期状態となる。
If the contents of shift register 1 are
When the code has a bit length, the logical sum circuit 4
Becomes “0”, at which point cell synchronization is restored,
The frame counter 8 starts counting operation by the next clock. Thereafter, the OR circuit 4 is used at the frame pulse position.
Is "0", "0" is continuously input to the frame synchronization protection circuit 7, and the frame synchronization protection circuit 7
Becomes synchronous after the reset state.

この回路ではラッチ回路3を用いているが、排他的論
理和回路網2の出力を直接に論理和回路4に入力するこ
ともできる。
In this circuit, the latch circuit 3 is used, but the output of the exclusive OR circuit 2 can be directly input to the OR circuit 4.

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

第5図に示した従来のセル同期回路が正常に動作する
ためには、シフトレジスタ1にクロックが入力されてか
らデータを出力するまでの遅延と、排他的論理和回路網
2による遅延との和が、1クロック未満でなければなら
ない。また、ラッチ回路3を用いない場合には、上記の
遅延の和にさらに論理和回路4、論理積回路5、6によ
る遅延を加えた値が、1クロック未満でなければならな
い。
In order for the conventional cell synchronization circuit shown in FIG. 5 to operate normally, the delay between the input of the clock to the shift register 1 and the output of the data and the delay by the exclusive OR circuit 2 are considered. The sum must be less than one clock. When the latch circuit 3 is not used, the value obtained by adding the delay by the OR circuit 4 and the AND circuits 5 and 6 to the sum of the delays described above must be less than one clock.

しかし、排他的論理和回路網がCRC演算を一度に行う
ためには、信号を多段接続された排他的論理和回路に通
過させる必要がある。第5図に示した例では、信号が最
大で5段の排他的論理和回路を通過する。排他的論理和
回路1段あたりの遅延時間は、シフトレジスタおよびラ
ッチ回路の構成要素であるフリップフロップの遅延時間
と同等以上である。したがって、このセル同期回路は高
速動作に適していない。
However, in order for the exclusive OR circuit to perform the CRC operation at a time, it is necessary to pass the signal through the exclusive OR circuit connected in multiple stages. In the example shown in FIG. 5, the signal passes through an exclusive OR circuit having a maximum of five stages. The delay time per one stage of the exclusive OR circuit is equal to or longer than the delay time of the flip-flop which is a component of the shift register and the latch circuit. Therefore, this cell synchronization circuit is not suitable for high-speed operation.

ただし、排他的論理和回路網の中間にラッチ回路を設
けることにより、第5図に示したセル同期回路を高速化
することも可能である。しかし、そのためにはハード量
が増加する。第5図に示した例では、シフトレジスタ
1、排他的論理和回路網2およびラッチ回路3を合わせ
たハード規模は、同一演算回路を用いるとして、排他的
論理和回路89個、フリップフロップ48個である。高速化
のため排他的論理和回路網2の4段目と5段目の排他的
論理和回路の間にラッチ回路を設けるには、フリップフ
ロップが11個必要となる。さらに高速化するために3段
目と4段目の排他的論理和回路の間にラッチ回路を設け
るには、フリップフロップがさらに9個必要となる。
However, it is possible to increase the speed of the cell synchronization circuit shown in FIG. 5 by providing a latch circuit in the middle of the exclusive OR circuit network. However, the amount of hardware increases for that purpose. In the example shown in FIG. 5, the hardware scale of the shift register 1, the exclusive OR circuit network 2 and the latch circuit 3 is assumed to be the same arithmetic circuit, and 89 exclusive OR circuits and 48 flip-flops are used. It is. In order to provide a latch circuit between the fourth and fifth exclusive OR circuits of the exclusive OR network 2 for speeding up, 11 flip-flops are required. In order to provide a latch circuit between the third and fourth exclusive OR circuits to further increase the speed, nine more flip-flops are required.

また、このような排他的論理和回路網は、接続構成が
複雑となるため、集積化する場合に配線設計が困難にな
る欠点がある。
Further, such an exclusive OR circuit has a drawback that the wiring design becomes difficult when integrated since the connection configuration becomes complicated.

本発明は、以上の課題を解決し、高速動作が可能でし
かも集積化が容易なセル同期回路を提供することを目的
とする。
An object of the present invention is to solve the above problems and to provide a cell synchronous circuit which can operate at high speed and is easily integrated.

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

本発明のセル同期回路は、CRC演算手段に、演算対象
のnビットのデータ列がその入力順に分割されて部分デ
ータ列と入力されたその部分データ列についてそれぞれ
生成多項式による剰余を求める同一構成の複数のCRC部
分演算手段と、この複数のCRC部分演算手段のうち2段
目以降の各CRC部分演算手段について、前段で得られた
剰余とその段で得られた剰余とから、その段までに入力
された複数の部分データ列についての生成多項式による
剰余を求める手段とを含むことを特徴とする。
In the cell synchronization circuit of the present invention, the CRC operation means has the same configuration in which an n-bit data sequence to be operated is divided in the input order, and a partial data sequence and a remainder by a generator polynomial for each of the input partial data sequences are obtained. For a plurality of CRC partial calculation means, and for each of the second and subsequent CRC partial calculation means of the plurality of CRC partial calculation means, the remainder obtained in the previous stage and the remainder obtained in that stage are calculated by Means for calculating the remainder of the plurality of input partial data strings by the generator polynomial.

すなわち、並列処理するCRC部分演算手段をラッチ回
路を介して縦続接続し、CRC演算をパイプライン処理す
る。
That is, CRC partial operation means for performing parallel processing are cascaded via a latch circuit, and the CRC operation is pipelined.

本発明のセル同期回路は、mビットのCRCビットを含
む符号長nビットのヘッダが情報列に付加されたセルを
単位として伝送し、受信側でCRCビットによりヘッダ内
の信号の誤り検出および誤り訂正を行う伝送方式におい
て、CRCビットを利用してセル同期を確立するために利
用する。
The cell synchronization circuit of the present invention transmits a cell in which a header having a code length of n bits including an m-bit CRC bit is added to an information sequence as a unit, and detects and detects an error of a signal in the header by the CRC bit on the receiving side. In the transmission method for performing the correction, it is used to establish cell synchronization using the CRC bit.

CRC部分演算手段はそれぞれ、送信側でCRCビットを求
めるために使用したm次の生成多項式、またはこのm次
の生成多項式が1次とm−1次の生成多項式に分離でき
る場合にはm−1次の生成多項式を用いてCRC演算を行
う。以下では、CRC部分演算手段が用いる生成多項式の
次数を「m′」で表す。
The CRC partial calculation means respectively uses the m-th order generator polynomial used for obtaining the CRC bits on the transmitting side, or m-th order when this m-order generator polynomial can be separated into the first-order and m-1 order generator polynomials. A CRC operation is performed using a first-order generator polynomial. Hereinafter, the degree of the generator polynomial used by the CRC partial calculation means is represented by “m ′”.

ここで、CRC部分演算手段がそれぞれ処理するビット
数を並列処理数lで表し、この値が各CRC部分演算手段
で同一であるとする。ただし、1≦l<nである。さら
に、nをlで割った商を〔n/l〕、剰余をRとする。
Here, the number of bits processed by each of the CRC partial calculation means is represented by a parallel processing number l, and this value is assumed to be the same for each CRC partial calculation means. However, 1 ≦ l <n. Further, the quotient obtained by dividing n by 1 is [n / l], and the remainder is R.

受信セルのデータ列は、nがlで割り切れる場合には
〔n/l〕(l−1)+1、nがlで割り切れない場合に
は〔n/l〕(l−1)+Rの長さのシフトレジスタに入
力される。このシフトレジスタは上記データ列のクロッ
クで動作する。
The data string of the received cell has a length of [n / l] (l-1) +1 when n is divisible by l, and a length of [n / l] (l-1) + R when n is not divisible by l. Is input to the shift register. This shift register operates with the clock of the data string.

このシフトレジスタの先頭から1〜l段目の各出力に
ついてCRC部分演算し、そのm′ビットの出力をそれぞ
れ1段目のm′個のフリップフロップに上記クロックで
入力する。この1段目のm′個のフリップフロップの各
出力と、上記シフトレジスタの先頭からl〜2l−1段目
の各出力とにより再びCRC並列部分演算し、そのm′個
の出力をそれぞれ2段目のm′個のフリップフロップに
上記クロックで入力する。
A CRC partial operation is performed on each output of the first to first stages from the top of the shift register, and the output of m 'bits is input to the m' flip-flops of the first stage using the clock. A CRC parallel partial operation is again performed on each output of the m ′ flip-flops of the first stage and each output of the 1st to 2l−1th stages from the top of the shift register, and the m ′ outputs are each processed by 2 The clock is input to the m ′ flip-flops in the stage.

同様に、上記シフトレジスタの先頭から〔n/l〕(l
−1)−l+2〜〔n/l〕(l−1)+1段目の各出力
と、〔n/l〕−1段目のm′個のフリップフロップとの
各出力とによりCRC並列部分演算し、そのm′個の出力
をそれぞれ〔n/l〕段目のm′個のフリップフロップに
上記クロックで入力する。
Similarly, from the top of the shift register, [n / l] (l
-1) -1 + 2 to [n / l] (l-1) +1 output of each stage and (n / l) -1 each output of m 'flip-flops in the CRC parallel partial operation Then, the m 'outputs are input to the m' flip-flops in the [n / l] stage with the above clock.

nがlで割り切れない場合にはさらに、シフトレジス
タの先頭から〔n/l〕(l−1)−1〜〔n/l〕(l−
1)+R段目の各出力と、〔n/l〕段目のm′個のフリ
ップフロップの各出力とによりCRC並列部分演算し、そ
のm′個の出力をそれぞれ〔n/l〕+1段目のm′個の
フリップフロップに上記クロックで入力する。
If n is not divisible by l, then [n / l] (1-1) -1 to [n / l] (l-l)
1) A CRC parallel partial operation is performed on each output of the + R stage and each output of the m ′ flip-flops in the [n / l] stage, and the m ′ outputs are respectively [n / l] +1 stages The clock is input to the m'th flip-flops of the eye with the clock.

このようにして得られた最終段のm′個のフリップフ
ロップの出力について論理和をとり、この論理和と、上
記クロックで動作するフレームカウンタの出力(フレー
ムパルス)との論理積をフレーム同期保護回路に入力す
る。この論理積とフレーム同期保護回路の出力との論理
積が「1」の場合には、上記フレームカウンタの計数動
作を1クロックの間停止させる。
The logical sum of the outputs of the m ′ flip-flops of the final stage obtained in this way is obtained, and the logical product of this logical sum and the output (frame pulse) of the frame counter operated by the clock is protected by frame synchronization. Input to the circuit. When the logical product of this logical product and the output of the frame synchronization protection circuit is "1", the counting operation of the frame counter is stopped for one clock.

〔作 用〕(Operation)

セル同期回路が動作するためには、並列処理を行う個
々のCRC部分演算手段の遅延が1クロック以内であれば
よい。また、並列処理数lを小さくすればCRC部分演算
手段の規模が小さくなり、遅延時間も短くなる。したが
って、セル同期回路の動作を高速化できる。さらに、並
列処理数を適当に選択することによって、所要の動作速
度のセル同期回路を実現できる。
In order for the cell synchronization circuit to operate, the delay of each of the CRC partial calculation means for performing the parallel processing may be within one clock. Also, if the number of parallel processes 1 is reduced, the scale of the CRC partial calculation means is reduced, and the delay time is also reduced. Therefore, the operation of the cell synchronization circuit can be speeded up. Further, by appropriately selecting the number of parallel processes, a cell synchronous circuit having a required operation speed can be realized.

また、並列処理数が同一であれば、CRC部分演算手段
はすべて同一構成となる。このため、集積化における設
計が容易となる。
If the number of parallel processes is the same, all the CRC partial calculation means have the same configuration. For this reason, design in integration becomes easy.

〔実施例〕〔Example〕

第1図は本発明第一実施例セル同期回路のブロック構
成図である。この例は、符号長nが40ビット、CRC演算
手段の生成多項式がx8+x2+x+1、CRC部分演算手段
の並列処理数が20の場合を示す。
FIG. 1 is a block diagram of a cell synchronization circuit according to a first embodiment of the present invention. This example shows a case where the code length n is 40 bits, the generator polynomial of the CRC operation means is x 8 + x 2 + x + 1, and the number of parallel processes of the CRC partial operation means is 20.

このセル同期回路は、ディジタル情報列にCRCビット
を含むヘッダが付加された受信セルを入力とし、この受
信セルのデータ列について上記CRCビットを求めるため
に使用したと同等の生成多項式による剰余を求めるCRC
演算手段として排他的論理和回路網11、13、14およびラ
ッチ回路12を備え、このCRC演算手段の出力から上記デ
ータ列が上記生成多項式で割り切れたことを検出してセ
ル同期を確立する手段として、ラッチ回路3、論理和回
路4、論理積回路5、6、フレーム同期保護回路7、フ
レームカウンタ8およびインバータ入力付の論理積回路
9を備える。
The cell synchronization circuit receives a received cell in which a header including a CRC bit is added to a digital information sequence, and obtains a remainder of a data sequence of the received cell by a generator polynomial equivalent to that used for obtaining the CRC bit. CRC
Exclusive OR circuits 11, 13, and 14 and a latch circuit 12 are provided as operation means, and means for establishing cell synchronization by detecting that the data string is divisible by the generator polynomial from the output of the CRC operation means. , A latch circuit 3, an OR circuit 4, AND circuits 5, 6, a frame synchronization protection circuit 7, a frame counter 8, and an AND circuit 9 with an inverter input.

シフトレジスタ1には受信セルのデータ列が入力デー
タ100として供給され、さらに、この入力データ100から
抽出されたクロック200が入力される。また、同じクロ
ック200が、ラッチ回路3と論理積回路9とに供給され
る。
The shift register 1 is supplied with a data string of the received cells as input data 100, and further receives a clock 200 extracted from the input data 100. The same clock 200 is supplied to the latch circuit 3 and the AND circuit 9.

ここで本実施例の特徴とするところは、CRC演算手段
が、入力データ100をその入力順に複数に分割しそれぞ
れについて並列に上記生成多項式による剰余を求める複
数のCRC部分演算手段として排他的論理和回路網11、13
を備え、この複数のCRC部分演算手段の出力を上記入力
順にしたがって処理し上記データ列全体についての上記
生成多項式による剰余を求める手段として、ラッチ回路
12および排他的論理和回路網14を備えたことにある。
Here, the feature of the present embodiment is that the CRC operation means divides the input data 100 into a plurality of parts in the input order, and performs exclusive OR operation as a plurality of CRC partial operation means for obtaining the remainder of the generator polynomial in parallel for each of them. Network 11, 13
A latch circuit as means for processing the outputs of the plurality of CRC partial operation means in accordance with the input order and obtaining the remainder of the entire data string by the generator polynomial.
12 and an exclusive OR network 14.

並列処理によりCRC演算を行うための回路構成につい
ては、パラレル・スクランブリング・テクニークス・フ
ォー・ディジタル・マルチプレクサズ」、AT&Tテクニ
カル・ジャーナル第65巻、1986年9/10月(“Parallel s
crambling techniquse for digital multiplexers",AT
&T technical journal,sep./oct.1986,Vol.65)に示さ
れた自己同期形スクランブラの並列化手法と同様にして
求めることができる。
For a circuit configuration for performing CRC calculation by parallel processing, see Parallel Scrambling Techniques for Digital Multiplexers, AT & T Technical Journal, Vol. 65, September / October 1986 (“Parallel s
crambling techniquse for digital multiplexers ", AT
& T technical journal, sep./oct. 1986, Vol. 65) can be obtained in the same manner as the parallelization method of the self-synchronous scrambler.

この文献によれば、並列処理数が20の場合の回路構成
は、(2)式で与えられるマトリックスTSからTS 20を求
めることによって得られる。TS 20を(3)式に示す。
According to this document, the circuit configuration in the case of a parallel processing number 20 is obtained by determining the T S 20 from the matrix T S given by equation (2). T S 20 is shown in equation (3).

(2)式の四つの部分に分けられたマトリックスのう
ち右下の部分は、第4図に示したCRC演算回路における
フリップフロップ30−1〜30−8のそれぞれ次の状態を
示す。例えばマトリックスTSの21行目は、フリップフロ
ップ30−1の次の状態が、入力データとフリップフロッ
プ30−8の内容との排他的論理和であることを示してい
る。同様に、マトリックスTSの22行目は、フリップフロ
ップ30−2の次の状態がフリップフロップ30−1の内容
とフリップフロップ30−8の内容と排他的論理和、23行
目は、フリップフロップ30−3の次の状態がフリップフ
ロップ30−2の内容とフリップフロップ30−8の内容と
排他的論理和、24行目以降は、フリップフロップ30−4
〜30−8の次の状態がフリップフロップ30−3〜30−7
の内容がシフトしたものとなることを示している。
The lower right part of the matrix divided into four parts of equation (2) indicates the next state of each of the flip-flops 30-1 to 30-8 in the CRC operation circuit shown in FIG. For example, the 21st row of the matrix T S indicates that the next state of the flip-flop 30-1 is the exclusive OR of the input data and the content of the flip-flop 30-8. Similarly, in the 22nd row of the matrix T S , the next state of the flip-flop 30-2 is the exclusive OR of the content of the flip-flop 30-1 and the content of the flip-flop 30-8, and the 23rd row is the flip-flop. The next state of 30-3 is the exclusive OR of the contents of the flip-flop 30-2 and the contents of the flip-flop 30-8.
The next state of ~ 30-8 is the flip-flop 30-3 ~ 30-7
Is shifted.

また、入力データをD1〜D20で表わすと、第20列はD1
を、第19列はD2を、第1列はD20をそれぞれ示してい
る。
Also, when representing the input data D 1 to D 20, the first 20 columns D 1
A nineteenth column of D 2, the first column shows each D 20.

したがって、現在の状態におけるフリップフロップ30
−1〜30−8の内容をそれぞれF1〜F8とすると、次の20
ビットのデータが入力された後のフリップフロップ30−
1〜30−8の状態は、(2)式を20回乗算した(3)式
により与えれる。すなわちフリップフロップ30−1〜30
−8の内容Z1〜Z8は、(3)式から、 となる。ここで、「+」は排他的論理和を表す。
Therefore, the flip-flop 30 in the current state
Assuming that the contents of −1 to 30−8 are F 1 to F 8 respectively, the following 20
Flip-flop 30- after bit data is input
The states of 1 to 30-8 are given by Expression (3) obtained by multiplying Expression (2) 20 times. That is, flip-flops 30-1 to 30-30
The contents Z 1 to Z 8 of −8 are obtained from the equation (3). Becomes Here, “+” indicates exclusive OR.

第1図に示したセル同期回路の排他的論理和回路11
は、(4)式において、F1=F2=F3=F4=F5=F6=F7
F8=0とし、D1〜D20をシフトレジスタ1の先頭から20
番目までのフリップフロップF1〜F20の出力に対応させ
たものである。また、排他的論理和回路網13は、その入
力データがシフトレジスタ1上で19ビットシフト(入力
データとしては20ビット)しているだけでその回路構成
は排他的論理和回路網1と同一である。そして、排他的
論理和回路網14は、最初の20ビットのデータについてCR
C演算を行った結果、すなわち排他的論理和回路11の出
力をF1〜F8とし、次の20ビットのデータに対するCRC演
算の結果、すなわち排他的論理和回路13の出力との演算
行う。排他的論理和回路網14による演算を例えば(4)
式のZ1を例に説明すると、排他的論理和回路11の出力の
1、3、5、7、8ビット目(第1図におけるラッチ回
路12の上からのビットに相当)について排他的論理和を
とり、さらに、排他的論理和回路網13からの1ビット目
(D4+D5+D6+D12+D20)との排他的論理和をとる。
Exclusive OR circuit 11 of the cell synchronization circuit shown in FIG.
In the equation (4), F 1 = F 2 = F 3 = F 4 = F 5 = F 6 = F 7 =
F 8 = 0, and D 1 to D 20 are 20
This corresponds to the outputs of the flip-flops F1 to F20 up to the first. The exclusive OR circuit 13 has the same circuit configuration as that of the exclusive OR circuit 1 except that its input data is shifted by 19 bits on the shift register 1 (input data is 20 bits). is there. Then, the exclusive OR circuit 14 performs the CR operation on the first 20 bits of data.
Result of the C operation, i.e. the output of the exclusive OR circuit 11 and F 1 to F 8, the result of CRC calculation for the next 20 bits of data, namely performed operation on an output of the exclusive OR circuit 13. The operation by the exclusive-OR network 14 is, for example, (4)
To explain the Z 1 of the formula as an example, exclusive for 1,3,5,7,8 bit of the output of the exclusive OR circuit 11 (corresponding to a bit from the top of the latch circuit 12 in FIG. 1) The exclusive OR is obtained, and the exclusive OR with the first bit (D 4 + D 5 + D 6 + D 12 + D 20 ) from the exclusive OR circuit 13 is obtained.

符号長が40ビットなので、CRC演算については、連続
した40ビットの入力データについて行う必要がある。本
実施例では、排他的論理和回路網11、13でそれぞれ20ビ
ットずつの演算を行い、その結果を排他的論理和回路網
14で処理する。
Since the code length is 40 bits, the CRC operation needs to be performed on continuous 40-bit input data. In the present embodiment, each of the exclusive OR circuits 11 and 13 performs a 20-bit operation, and the result is referred to as the exclusive OR circuit.
Process at 14.

すなわち、排他的論理和回路網11は、シフトレジスタ
1の先頭のフリップフロップF1から20番目のフリップフ
ロップF20のそれぞれの出力に対してCRC部分演算を行
い、その結果をラッチ回路12に入力する。このとき、フ
リップフロップF21〜F39のデータがフリップフロップF2
0〜F38に1ビットずつシフトし、フリップフロップF39
には新しいデータが入力される。排他的論理和回路網13
は、新しいデータが入力された時点で、フリップフロッ
プF20〜F39のデータについて、CRC部分演算を行う。排
他的論理和回路網11と13との入力データ位置の距離は、
20ビットではなく19ビットである。
That is, the exclusive OR circuit 11 performs a CRC partial operation on each output of the first flip-flop F1 to the twentieth flip-flop F20 of the shift register 1 and inputs the result to the latch circuit 12. At this time, the data of the flip-flops F21 to F39 are
0 to F38, shifted one bit at a time, flip-flop F39
Is input with new data. Exclusive OR network 13
Performs a CRC partial operation on the data of the flip-flops F20 to F39 when new data is input. The distance between the input data positions of the exclusive OR networks 11 and 13 is
19 bits instead of 20 bits.

排他的論理和回路網11、13は、クロック毎に新しい入
力データに対してCRC部分演算を行う。ただし、データ
側を基準にすれば、排他的論理和回路網11の動作は排他
的論理和回路網13の動作に対して1クロック先行してい
る。排他的論理和回路網11の出力をラッチ回路12に蓄え
ることにより、双方のタイミングが一致する。排他的論
理和回路網14は、ラッチ回路12の出力と、排他的論理和
回路網13の出力とから、データ列全体に対するCRC演算
の剰余を求め、その結果をラッチ回路3に出力する。こ
れによりラッチ回路3には、クロック毎にCRC演算の剰
余が得られる。
The exclusive OR circuits 11 and 13 perform a CRC partial operation on new input data at each clock. However, based on the data side, the operation of the exclusive OR network 11 is one clock ahead of the operation of the exclusive OR circuit 13. By storing the output of the exclusive OR network 11 in the latch circuit 12, both timings coincide. The exclusive OR network 14 obtains the remainder of the CRC operation on the entire data string from the output of the latch circuit 12 and the output of the exclusive OR network 13, and outputs the result to the latch circuit 3. Thus, the remainder of the CRC operation is obtained in the latch circuit 3 for each clock.

ラッチ回路3、論理和回路4、論理積回路5、6、フ
レーム同期保護回路7、フレームカウンタ8および論理
積回路9の動作は第5図に示した従来例と同じである。
The operations of the latch circuit 3, the OR circuit 4, the AND circuits 5, 6, the frame synchronization protection circuit 7, the frame counter 8, and the AND circuit 9 are the same as those of the conventional example shown in FIG.

この実施例において、ラッチ回路3を省略することも
できるが、その場合には信号の遅延時間が増加する。
In this embodiment, the latch circuit 3 can be omitted, but in that case, the signal delay time increases.

この実施例における排他的論理和回路網11、13および
14の最大遅延時間は排他的論理和回路の段数で4段分で
ある。しかも、シフトレジスタ1、ラッチ回路3、12、
排他的論理和回路網11、13および14の全てのハード量
は、排他的論理和回路88個、フリップフロップ55個であ
り、第5図に示した従来例において、高速化のために排
他的論理和回路網の4段目と5段目の排他的論理和回路
の間にラッチ回路を設けた場合に比較してもハード量が
少ない。
The exclusive OR networks 11, 13 and
The maximum delay time of 14 is the number of stages of the exclusive OR circuit, which is four stages. Moreover, the shift register 1, the latch circuits 3, 12,
All the hardware amounts of the exclusive OR circuits 11, 13 and 14 are 88 exclusive OR circuits and 55 flip-flops. In the conventional example shown in FIG. The amount of hardware is smaller than when a latch circuit is provided between the fourth and fifth exclusive OR circuits in the OR circuit network.

また、本実施例のセル同期回路は、排他的論理和回路
網11、13が同一構成となり、LSI設計が容易である。さ
らに、一つの排他的論理和回路網の規模が小さいため、
配線の交差が少なくなり、配線層間の接続が減るので、
LSIの配線設計が容易となる。
Further, in the cell synchronization circuit of the present embodiment, the exclusive OR circuits 11, 13 have the same configuration, and the LSI design is easy. Furthermore, since the size of one exclusive OR network is small,
Since the intersection of wiring is reduced and the connection between wiring layers is reduced,
LSI wiring design becomes easy.

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

この実施例は、符号長nが40ビット、CRC演算手段の
生成多項式がx8+x2+x+1、CRC部分演算手段の並列
処理数が8の場合を示す。この実施例は、符号長nが40
ビット、CRC演算の生成多項式がx8+x2+x+1、CRC演
算の並列処理数が8の場合を示す。この場合、生成多項
式の次数と並列処理数とが等しいため、分割されたデー
タに対するCRC演算の剰余はそのデータそのものとな
る。したがって、この実施例では第一実施例における排
他的論理和回路網11、13に相当する回路は不要である。
その代わり、排他的論理和回路網14に相当する回路が、
同一構成で多段に接続される。すなわち、排他的論理和
回路網22、24、26および28が、それぞれラッチ回路23、
25および27を介して縦続接続される。排他的論理和回路
網22の入力には、ラッチ回路21が設けられる。
This embodiment shows a case where the code length n is 40 bits, the generator polynomial of the CRC operation means is x 8 + x 2 + x + 1, and the number of parallel processes of the CRC partial operation means is 8. In this embodiment, the code length n is 40
The case where the generator polynomial of bits and CRC calculation is x 8 + x 2 + x + 1 and the number of parallel processes of CRC calculation is 8 is shown. In this case, since the degree of the generator polynomial is equal to the number of parallel processes, the remainder of the CRC operation on the divided data is the data itself. Therefore, in this embodiment, circuits corresponding to the exclusive OR circuits 11 and 13 in the first embodiment are unnecessary.
Instead, a circuit corresponding to the exclusive OR network 14 is
They are connected in multiple stages with the same configuration. That is, the exclusive OR networks 22, 24, 26, and 28 are respectively connected to the latch circuits 23,
Cascaded via 25 and 27. A latch circuit 21 is provided at an input of the exclusive OR network 22.

この実施例の回路構成は、第一実施例と同様に、マト
リックスTSからTS 8を求めることによって得られる。た
だし、TSは8並列用のマトリクッスとする。TS 8の演算
は、各段において、現在の状態(前段の出力)F1〜F8
対し次の式で表される出力Z1〜Z8を求めればよい。すな
わち、 Z1=F1+F7+F8+D8 Z2=F1+F2+F7+D7 Z3=F1+F2+F3+F7+D6 Z4=F2+F3+F4+F8+D5 Z5=F3+F4+F5+D4 Z6=F4+F5+F6+D3 Z7=F5+F6+F7+D2 Z8=F6+F7+F8+D1 ……(5) となる。ただし、D1〜D8はシフトレジスタ1から直列入
力されるデータである。この式によれば、排他的論理和
の段数で最大3段であり、高速動作が可能である。ま
た、必要な排他的論理和回路の数は合計84であり、回路
規模も比較的小さい。
The circuit configuration of this embodiment, similarly to the first embodiment is obtained by determining the T S 8 from the matrix T S. Here, T S is a matrix for eight parallels. Calculation of T S 8, at each stage, for the current state (the output of the previous stage) F 1 to F 8 may be obtained an output Z 1 to Z 8, which is represented by the following formula. That, Z 1 = F 1 + F 7 + F 8 + D 8 Z 2 = F 1 + F 2 + F 7 + D 7 Z 3 = F 1 + F 2 + F 3 + F 7 + D 6 Z 4 = F 2 + F 3 + F 4 + F 8 + D 5 Z 5 = F 3 + F 4 + F 5 + D 4 Z 6 = F 4 + F 5 + F 6 + D 3 Z 7 = F 5 + F 6 + F 7 + D 2 Z 8 = F 6 + F 7 + F 8 + D 1 ...... (5) Become. Here, D 1 to D 8 are data serially input from the shift register 1. According to this equation, the maximum number of exclusive OR stages is three, and high-speed operation is possible. The number of required exclusive OR circuits is 84 in total, and the circuit scale is relatively small.

この実施例の動作についてさらに詳しく説明する。こ
こで、時刻t1におけるラッチ回路3、27、25、23、21の
出力信号をそれぞれS1,t1、S2,t1、S3,t1、S4,t1
5,t1とし、1クロック前の時刻t0におけるラッチ回路
3、27、25、23、21の出力信号をそれぞれS1,t0、S
2,t0、S3,t0、S4,t0、S5,t0とし、排他的論理和回路
網28、26、24、22のうちシフトレジスタ1の出力との直
接演算を除く演算処理の関数TS 8をf()とすると、次
の式が成立する。
The operation of this embodiment will be described in more detail. Here, S 1 output signal of the latch circuit 3,27,25,23,21 at time t1, respectively, t1, S 2, t1, S 3, t1, S 4, t1,
S5 , t1, and the output signals of the latch circuits 3, 27, 25, 23, 21 at the time t0 one clock before are S1 , t0 , S1 , respectively.
2, t0, S 3, t0 , S 4, t0, S 5, and t0, the function of the arithmetic processing, except for direct operation between the shift register 1 outputs of the exclusive OR circuitry 28,26,24,22 Assuming that T S 8 is f (), the following equation is established.

1,t1=f(S2,t0)+f(D29〜D36) S2,t1=f(S3,t0)+f(D22〜D29) S3,t1=f(S4,t0)+f(D15〜D22) S4,t1=f(S5,t0)+f(D8〜D15) S5,t1=f(D1〜D8) ……(6) ただし、f(D29〜D36)は時刻t1においてシフトレジ
スタ1のF29からF36の出力データであり、この処理は、
入力順序が変わるだけで排他的論理和を含まない。ま
た、+は排他的論理和を示すものとする。なお、シフト
レジスタ1の出力との直接演算の位置は、図では排他的
論理和回路網の中間位置で行っているが、排他的論理和
は演算順序を入れ替えても結果に変わりがないので、前
段までのCRC演算の剰余に関する処理と、シフトレジス
タ1の出力に対する処理とを分けて表現することができ
る。
S1 , t1 = f (S2 , t0 ) + f (D29 to D36) S2 , t1 = f (S3 , t0 ) + f (D22 to D29) S3 , t1 = f (S4 , t0 ) + f ( D5 to D22) S4 , t1 = f (S5 , t0 ) + f (D8 to D15) S5 , t1 = f (D1 to D8) (6) where f (D29 to D36) is at time t1. This is the output data from F29 to F36 of the shift register 1.
Exclusive OR is not included, only the input order is changed. Further, + indicates an exclusive OR. Although the position of the direct operation with the output of the shift register 1 is performed at the intermediate position of the exclusive OR circuit in the figure, the result of the exclusive OR does not change even if the operation order is changed. The processing related to the remainder of the CRC operation up to the previous stage and the processing for the output of the shift register 1 can be expressed separately.

同様にして、時刻t2、t3、t4、t5では以下の各式が成
立する。
Similarly, at times t2, t3, t4, and t5, the following equations hold.

1,t2=f(S2,t1)+f(D30〜D37) S2,t2=f(S3,t1)+f(D23〜D30) S3,t2=f(S4,t1)+f(D16〜D23) S4,t2=f(S5,t1)+f(D9〜D16) S5,t2=f(D2〜D9) ……(7) S1,t3=f(S2,t2)+f(D31〜D38) S2,t3=f(S3,t2)+f(D24〜D31) S3,t3=f(S4,t2)+f(D17〜D24) S4,t3=f(S5,t2)+f(D10〜D17) S5,t3=f(D3〜D10) ……(8) S1,t4=f(S2,t3)+f(D32〜D39) S2,t4=f(S3,t3)+f(D25〜D32) S3,t4=f(S4,t3)+f(D18〜D25) S4,t4=f(S5,t3)+f(D11〜D18) S5,t4=f(D4〜D11) ……(9) S1,t5=f(S2,t4)+f(D33〜D40) S2,t5=f(S3,t4)+f(D26〜D33) S3,t5=f(S4,t4)+f(D19〜D26) S4,t5=f(S5,t4)+f(D12〜D19) S5,t5=f(D5〜D12) ……(10) したがって、S1,t5を式(7)、(8)、(9)、
(10)を用いて書き下すことにより、次の式が得られ
る。
S1 , t2 = f (S2 , t1 ) + f (D30-D37) S2 , t2 = f (S3 , t1 ) + f (D23-D30) S3 , t2 = f (S4 , t1 ) + f ( S4 , t2 = f (S5 , t1 ) + f (D9 to D16) S5 , t2 = f (D2 to D9) (7) S1 , t3 = f (S2 , t2 ) + F (D31-D38) S2 , t3 = f (S3 , t2 ) + f (D24-D31) S3 , t3 = f (S4 , t2 ) + f (D17-D24) S4 , t3 = f (S 5, t2 ) + f (D10 to D17) S5 , t3 = f (D3 to D10) ... (8) S1 , t4 = f (S2 , t3 ) + f (D32 to D39) S2 , t4 = f (S 3, t3) + f (D25~D32) S 3, t4 = f (S 4, t3) + f (D18~D25) S 4, t4 = f (S 5, t3) + f (D11~D18) S 5 , t4 = f (D4 to D11) (9) S1 , t5 = f (S2 , t4 ) + f (D33 to D40) S2 , t5 = f (S3 , t4 ) + f (D26 to D33) S 3, t5 = f (S 4, t4) + f (D19~D26) S 4, t5 = f (S 5, t4) + f (D12~D19) S 5, t5 = f (D5~D12) ... (10) Thus, the S 1, t5 formula (7), (8), (9),
By writing down using (10), the following equation is obtained.

1,t5=f(S2,t4)+f(D33〜D40) =f2(S3,t3)+f2(D25〜D32)+f(D33〜D40) =f3(S4,t2)+f3(D17〜D24) +f2(D25〜D32)+f(D33〜D40) =f4(S5,t1)+f4(D9〜D16)+f3(D17〜D24) +f2(D25〜D32)+f(D33〜D40) =f5(D1〜D8))+f4(D9〜D16)+f3(D17〜D24) +f2(D25〜D32)+f(D33〜D40) ……(11) この式は、パイプライン状に並べられた排他的論理和
回路網網22、24、26、28により、ラッチ回路3の出力に
40ビットのデータに対する剰余が得られていることを示
している。なお、式(11)のf5()、f4()、f3()、
f2()は、それぞれ、TS 40、TS 32、TS 24、TS 16を示す。
S 1, t5 = f (S 2, t4) + f (D33~D40) = f 2 (S 3, t3) + f 2 (D25~D32) + f (D33~D40) = f 3 (S 4, t2) + f 3 (D17~D24) + f 2 ( D25~D32) + f (D33~D40) = f 4 (S 5, t1) + f 4 (D9~D16) + f 3 (D17~D24) + f 2 (D25~D32) + f (D33~D40) = f 5 (D1~D8 )) + f 4 (D9~D16) + f 3 (D17~D24) + f 2 (D25~D32) + f (D33~D40) ...... (11) this equation, The exclusive OR networks 22, 24, 26, and 28 arranged in a pipeline form output the latch circuit 3.
This indicates that the remainder for the 40-bit data has been obtained. Note that f 5 (), f 4 (), f 3 (),
f 2 (), respectively, showing a T S 40, T S 32, T S 24, T S 16.

本実施例に必要なハード量は第一実施例に比較して増
加するが、CRC部分演算の最大遅延量は、排他的論理和
回路3段分となる。したがって、高速動作に適してい
る。また、排他的論理和回路網22、24、26および28は同
一回路構成の繰り返しとなっているため、LSI設計が容
易になる。
Although the amount of hardware required in the present embodiment is increased as compared with the first embodiment, the maximum delay amount of the CRC partial operation is equivalent to three exclusive OR circuits. Therefore, it is suitable for high-speed operation. Further, since the exclusive OR circuits 22, 24, 26, and 28 have the same circuit configuration, the LSI design is facilitated.

なお、符号長が40ビット、CRC演算の生成多項式がx8
+x2+x+1の同一条件では、CRC部分演算の並列処理
数が10の場合の構成でも、CRC部分演算における最大遅
延は排他的論理和回路3段分となる。この場合のハード
量は、排他的論理和回路83個、フリップフロップ69個で
ある。従来例において同一動作速度を与える条件となる
のは、排他論理回路網の3段目と4段目の排他的論理和
回路の間にラッチ回路を設けた場合であるが、その場合
に比較してハード量が少ない。
Note that the code length is 40 bits, the generator polynomial of the CRC calculation is x 8
Under the same condition of + x 2 + x + 1, even in the configuration where the number of parallel processes of the CRC partial operation is 10, the maximum delay in the CRC partial operation is equivalent to three stages of the exclusive OR circuit. The hardware amount in this case is 83 exclusive OR circuits and 69 flip-flops. In the conventional example, the condition for providing the same operation speed is when a latch circuit is provided between the third and fourth exclusive OR circuits in the exclusive logic circuit network. And the amount of hardware is small.

以上の説明では、符号長nが40、生成多項式がx8+x2
+x+1、符号長nが並列処理数lで割り切れる場合に
ついて説明したが、符号長が他の値、他の生成多項式、
nがlで割り切れない場合でも本発明を実施できる。
In the above description, the code length n is 40, and the generator polynomial is x 8 + x 2
+ X + 1, and the code length n has been described as being divisible by the number of parallel processes l. However, the code length is other value, another generator polynomial,
The present invention can be implemented even when n is not divisible by 1.

また、以上の実施例では、m=8次の生成多項式によ
る除算の剰余であるmビットのCRCビットを含む符号長
n=40ビットのデータ列に対して、セル同期回路ではm
次の生成多項式を用いてCRC演算を行った例を示した。
しかし、送信側のm次の生成多項式が1次とm−1次と
に分離できる場合には、セル同期回路はm−1次の生成
多項式に基づいてCRC演算を行っても、本発明を同様に
実施できる。例えば生成多項式x8+x2+x+1は、(x
+1)(x7+x6+x5+x4+x2+1)と分解できるので、
セル同期回路では、生成多項式x7+x6+x5+x4+x2+1
を用いてCRC演算を行ってもよい。
Further, in the above embodiment, the cell synchronization circuit uses m = 40 bits of a data string including m bits of CRC bits, which is the remainder of division by a generator polynomial of m = 8 degrees.
An example of performing a CRC operation using the following generator polynomial is shown.
However, if the m-th generation polynomial on the transmitting side can be separated into the first-order and m-1-th order polynomials, even if the cell synchronization circuit performs a CRC operation based on the m-1th-order generation polynomial, the present invention can be implemented. It can be implemented similarly. For example, the generator polynomial x 8 + x 2 + x + 1 is (x
+1) (x 7 + x 6 + x 5 + x 4 + x 2 +1)
The cell synchronization circuit, the generator polynomial x 7 + x 6 + x 5 + x 4 + x 2 +1
May be used to perform the CRC calculation.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明のセル同期回路は、並列
処理によりCRC部分演算を行う排他的論理和回路網をラ
ッチ回路を介して縦続接続し、CRC演算をパイプライン
形式で実現する。したがって、並列処理数を適当に選択
することにより、1ビット即時シフト形でありながら、
所望の動作速度のセル同期回路を実現でき、設計の自由
度が増大する効果がある。
As described above, in the cell synchronization circuit of the present invention, an exclusive OR circuit for performing a CRC partial operation by parallel processing is cascaded via a latch circuit, and the CRC operation is realized in a pipeline format. Therefore, by appropriately selecting the number of parallel processes, it is possible to use the 1-bit immediate shift type,
A cell synchronous circuit having a desired operation speed can be realized, and the degree of freedom in design can be increased.

また、LSI化する場合には、それぞれCRC部分演算を行
う複数の排他的論理和網が同一構成となるため、LSIの
設計が容易となる効果がある。
Further, in the case of using an LSI, since a plurality of exclusive OR networks each performing a CRC partial operation have the same configuration, there is an effect that LSI design becomes easy.

さらに、CRC部分演算を行う個々の回路のハード規模
が小さくなるため、配線間の交差が少なくなり、LSIの
配線設計が容易となる効果がある。
Further, since the hardware scale of each circuit for performing the CRC partial operation is reduced, the intersection between the wirings is reduced, and there is an effect that the wiring design of the LSI becomes easy.

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

第1図は本発明第一実施例セル同期回路のブロック構成
図。 第2図は本発明第二実施例セル同期回路のブロック構成
図。 第3図はヘッダ内にCRCビットが付加されたセルの構成
を示す図。 第4図はCRC演算回路の一例を示すブロック構成図。 第5図は従来例セル同期回路のブロック構成図。 1……シフトレジスタ、2、11、13、14、22、24、26、
28……排他的論理和回路網、3、12、21、23、25、27…
…ラッチ回路、4……論理和回路、5、6、9……論理
積回路、7……フレーム同期保護回路、8……フレーム
カウンタ、30−1〜30−1、F1〜F40……フリップフロ
ップ、31−1〜31−3……排他的論理和回路。
FIG. 1 is a block diagram of a cell synchronization circuit according to a first embodiment of the present invention. FIG. 2 is a block diagram of a cell synchronization circuit according to a second embodiment of the present invention. FIG. 3 is a diagram showing a configuration of a cell in which a CRC bit is added to a header. FIG. 4 is a block diagram showing an example of a CRC calculation circuit. FIG. 5 is a block diagram of a conventional cell synchronization circuit. 1, shift register, 2, 11, 13, 14, 22, 24, 26,
28 ... exclusive OR network, 3, 12, 21, 23, 25, 27 ...
... Latch circuit, 4 ... OR circuit, 5, 6, 9 ... AND circuit, 7 ... Frame synchronization protection circuit, 8 ... Frame counter, 30-1 to 30-1, F1 to F40 ... Flip-flop , 31-1 to 31-3 ... exclusive OR circuit.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04Q 3/00 101 9466−5K H04L 11/20 D ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification code Agency reference number FI Technical display location H04Q 3/00 101 9466-5K H04L 11/20 D

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ディジタル情報列にCRCビットを含むnビ
ットのヘッダが付加された受信セルが直列データ列とし
て入力され、 この直列データ列の各ビットが入力されるごとにそれま
でに入力されたnビットのデータ列について上記CRCビ
ットを求めるために使用したと同等の生成多項式による
剰余を求めるCRC演算手段と、 このCRC演算手段の出力から上記生成多項式で割り切れ
るnビットのデータ列があったことを検出してセル同期
を確立する手段と を備えたセル同期回路において、 上記CRC演算手段は、 演算対象のnビットのデータ列がその入力順に分割され
た部分データ列として入力されその部分データ列につい
てそれぞれ上記生成多項式による剰余を求める同一構成
の複数のCRC部分演算手段と、 この複数のCRC部分演算手段のうち2段目以降の各CRC部
分演算手段について、前段で得られた剰余とその段で得
られた剰余とから、その段までに入力された複数の部分
データ列についての上記生成多項式による剰余を求める
手段と とを含む ことを特徴とするセル同期回路。
1. A receiving cell in which an n-bit header including a CRC bit is added to a digital information stream is input as a serial data stream, and each time a bit of this serial data stream is input, it is input by that time. CRC operation means for obtaining the remainder by a generator polynomial equivalent to that used to obtain the CRC bits for the n-bit data string, and an n-bit data string divisible by the generator polynomial from the output of this CRC operation means And a means for establishing cell synchronization by detecting the data sequence. The CRC calculating means comprises: a partial data sequence in which an n-bit data sequence to be operated is input as a partial data sequence divided in the input order; A plurality of CRC partial calculation means of the same configuration for obtaining the remainder by the generator polynomial, respectively, and the second and subsequent stages of the plurality of CRC partial calculation means Means for obtaining, from the remainder obtained at the previous stage and the remainder obtained at that stage, the remainder of the plurality of partial data strings input up to that stage by the generator polynomial for each CRC partial operation means. A cell synchronization circuit characterized by the above-mentioned.
JP1236416A 1989-09-11 1989-09-11 Cell synchronization circuit Expired - Fee Related JP2592681B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1236416A JP2592681B2 (en) 1989-09-11 1989-09-11 Cell synchronization circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1236416A JP2592681B2 (en) 1989-09-11 1989-09-11 Cell synchronization circuit

Publications (2)

Publication Number Publication Date
JPH0398346A JPH0398346A (en) 1991-04-23
JP2592681B2 true JP2592681B2 (en) 1997-03-19

Family

ID=17000432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1236416A Expired - Fee Related JP2592681B2 (en) 1989-09-11 1989-09-11 Cell synchronization circuit

Country Status (1)

Country Link
JP (1) JP2592681B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69217931T2 (en) * 1992-07-14 1997-09-25 Alcatel Bell Nv Error detection and correction device
WO2001056227A1 (en) * 2000-01-27 2001-08-02 Fujitsu Limited Synchronous detection circuit, synchronous control device including synchronous detection circuit, and synchronous detection method
EP1499024B1 (en) 2002-04-22 2010-06-30 Fujitsu Limited Error-detection encoder and decoder
DE102005029467A1 (en) * 2005-06-24 2007-01-04 Suspa Holding Gmbh Length adjustable gas spring

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5118404A (en) * 1974-08-07 1976-02-14 Tokyo Electric Power Co

Also Published As

Publication number Publication date
JPH0398346A (en) 1991-04-23

Similar Documents

Publication Publication Date Title
JP3244506B2 (en) Small multiplier
JP2509563B2 (en) Image size conversion circuit
EP1983434B1 (en) Parity generating circuit, arrangement circuit for parity generating circuit, information processing apparatus, and encoder
US5122982A (en) Carry generation method and apparatus
EP0416869B1 (en) Digital adder/accumulator
JPS5864844A (en) Synchronism detecting system
GB2373883A (en) Logic circuit for performing binary addition or subtraction
JP2592681B2 (en) Cell synchronization circuit
JP2000004169A (en) Crc operating method and crc arithmetic circuit
EP0723342A2 (en) Error correction apparatus
Piestrak Design of multi-residue generators using shared logic
JPH09222991A (en) Adding method and adder
JP2766133B2 (en) Parallel-serial data conversion circuit
JP2592685B2 (en) Cell synchronization circuit
JPH0370416B2 (en)
SU1667059A2 (en) Device for multiplying two numbers
JP2618723B2 (en) Test circuit
JP2822928B2 (en) CRC code calculation method and circuit
JP4057876B2 (en) Control method of Galois field multiplier
JP2592584B2 (en) Addition device
JP3286793B2 (en) Circuit and method for determining carry-out
JPH03135240A (en) Cell synchronous circuit
JPH0934687A (en) Arithmetic circuit and method therefor
JP2674507B2 (en) Bit error number calculation circuit
JP2566929B2 (en) Encoding / decoding circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees