JPH07250079A - Packet data comparator circuit - Google Patents

Packet data comparator circuit

Info

Publication number
JPH07250079A
JPH07250079A JP6041516A JP4151694A JPH07250079A JP H07250079 A JPH07250079 A JP H07250079A JP 6041516 A JP6041516 A JP 6041516A JP 4151694 A JP4151694 A JP 4151694A JP H07250079 A JPH07250079 A JP H07250079A
Authority
JP
Japan
Prior art keywords
packet
circuit
packet data
output
data
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.)
Withdrawn
Application number
JP6041516A
Other languages
Japanese (ja)
Inventor
Nobuyuki Hiroki
伸行 広木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP6041516A priority Critical patent/JPH07250079A/en
Publication of JPH07250079A publication Critical patent/JPH07250079A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PURPOSE:To reduce the circuit scale of a packet data comparator circuit for comparing the successively and serially inputted packet data of two systems. CONSTITUTION:In a latch circuit 11, the data for one packet of the packet data of a first system are fetched and outputted as serial data. The packet data of a second system are compared with the output serial data of the latch circuit 11 one by one packet by a comparator 12. The phase difference of the packet data by the first and second systems is detected by the compared result of each packet and the detected phase difference is adjusted. Thus, since the serial data are processed as they are and phases are compared, the circuit scale is made small.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はパケットデータ比較回路
に関し、特にパケット通信伝送路を二重化した場合にお
いて現用系パケットデータと予備系パケットデータとを
比較する回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a packet data comparison circuit, and more particularly to a circuit for comparing active packet data and standby packet data when a packet communication transmission line is duplicated.

【0002】[0002]

【従来の技術】一般に、ATM(Asynchrono
us Transfer Mode)等のパケット通信
伝送路を二重化した場合、0系及び1系の2つの系のパ
ケットデータの位相を常に一致させておく必要がある。
これは、0系及び1系の一方を現用、他方を予備とし、
現用系に障害が起きた場合は予備系に切替える必要があ
り、その切替時に両系の位相を一致させておく必要があ
るからである。
2. Description of the Related Art Generally, ATM (Asyncrono)
When a packet communication transmission line such as a U.S. Transfer Mode) is duplicated, it is necessary to always match the phases of the packet data of the two systems of 0 system and 1 system.
This uses one of the 0 system and the 1 system as the current system and the other as the spare system.
This is because when a failure occurs in the active system, it is necessary to switch to the standby system, and it is necessary to match the phases of both systems when switching.

【0003】従来、この種のパケットデータ比較回路で
は、0系及び1系の2つの系のパケットデータをシリア
ル―パラレル変換した後、両者を比較していた。その従
来の比較回路について図6を参照して説明する。
Conventionally, in this type of packet data comparison circuit, the packet data of two systems of 0 system and 1 system are serial-parallel converted and then the two are compared. The conventional comparison circuit will be described with reference to FIG.

【0004】図6において、従来のパケットデータ比較
回路は、nビットのシリアルのパケットデータをnビッ
トのパラレルデータに変換するためのn段シフトレジス
タ21及び22と、2つの系のうち進んでいる側の系の
パラレルデータをラッチするためのn個のD型FF23
と、このラッチされているデータと遅れている側のデー
タとをビット毎に比較するためのn個の比較器24と、
各ビット毎の比較結果の論理和をとるn入力オア回路2
5とを含んで構成されている。なお、比較器24はn個
のD型FF23に対応して設けられたn個の排他的論理
和回路により構成され、各排他的論理和回路の一入力に
は対応するD型FF23の出力が入力され他入力にはn
段シフトレジスタ22の出力が入力されている。
In FIG. 6, the conventional packet data comparison circuit is advanced among two systems, and n-stage shift registers 21 and 22 for converting n-bit serial packet data into n-bit parallel data. N D-type flip-flops 23 for latching parallel data of the side system
And n comparators 24 for comparing the latched data and the delayed data on a bit-by-bit basis,
N-input OR circuit 2 that takes the logical sum of the comparison results for each bit
5 is included. The comparator 24 is composed of n exclusive OR circuits provided corresponding to the n D-type FFs 23, and the output of the corresponding D-type FF 23 is input to one input of each exclusive-OR circuit. Input and n for other input
The output of the stage shift register 22 is input.

【0005】かかる構成において、進んでいる系及び遅
れている系のnビットシリアルパケットデータは、夫々
n段シフトレジスタ21、22によりパケット単位のパ
ラレルデータに変換される。そして、ラッチクロックに
よりラッチされた進んでいる系の任意のパケットデータ
と、遅れている系のパケットデータとが順次ビット毎に
比較される。各ビットの比較結果はn入力オア回路25
により論理和がとられ、パケット単位での比較結果とし
て出力される。
In such a configuration, the n-bit serial packet data of the advancing system and the lagging system are converted into parallel data in packet units by the n-stage shift registers 21 and 22, respectively. Then, the arbitrary packet data of the advanced system latched by the latch clock and the packet data of the delayed system are sequentially compared bit by bit. The comparison result of each bit is the n-input OR circuit 25.
Is ORed and output as a comparison result in packet units.

【0006】以上の構成により、比較するパケット同士
の内容が同一でなければ、少なくとも1ビット分の比較
結果が不一致を示す。これに対し、パケット同士の内容
が同一であれば、全ての比較結果が一致であることを示
す。したがって、パケット同士に位相差があれば、比較
開始時点の比較結果は不一致を示すが、その時点から比
較結果が一致を示すまでの間にオア回路25から出力さ
れるパルス数を数えれば、パケット同士の位相差を検出
することができる。具体的には、オア回路25の出力を
カウンタ回路等で計数すれば良い。そして、この検出し
た位相差に応じて進んでいる系に空きパケットを挿入す
れば、両系の位相差をなくすことができるのである。
With the above configuration, if the contents of the packets to be compared are not the same, the comparison result for at least one bit indicates a mismatch. On the other hand, if the contents of the packets are the same, it indicates that all the comparison results match. Therefore, if there is a phase difference between the packets, the comparison result at the start of comparison indicates a mismatch, but if the number of pulses output from the OR circuit 25 is counted from that time until the comparison result indicates a match, the packet will be The phase difference between them can be detected. Specifically, the output of the OR circuit 25 may be counted by a counter circuit or the like. Then, if an empty packet is inserted into the system that advances according to the detected phase difference, the phase difference between both systems can be eliminated.

【0007】ここで、2つの系のうちの進んでいる系を
特定することはできない。そこで、いずれか一方を進ん
でいる系とみなして比較を開始し、ある一定の時間経過
しても比較結果が一致を示さない場合は他方を進んでい
る系とみなして比較をやり直すという手法が考えられ
る。なお、2つの系の切替は、2つの系を相互に入替え
て出力できるセレクタを比較回路(図6)の前段に設け
ておき、これを切替制御すれば良い。ある一定の時間に
ついては、ソフトウェアによるタイマで一定時間を計測
したり、位相差の最大値(例えば、600セル分)を越
えることを検出する等によりセレクタを切替制御するこ
とにより行う。
Here, it is not possible to identify the advanced system of the two systems. Therefore, a method is considered in which one of the systems is regarded as an advancing system and the comparison is started, and if the comparison result shows no agreement after a certain period of time, the other is regarded as an advancing system and the comparison is performed again. Conceivable. To switch between the two systems, a selector capable of exchanging the two systems with each other for output can be provided in the preceding stage of the comparison circuit (FIG. 6) and the switching can be controlled. For a certain fixed time, it is controlled by switching the selector by measuring a fixed time with a timer by software or detecting that the maximum value of the phase difference (for example, 600 cells) is exceeded.

【0008】これら位相差の検出等は、主として装置の
立上げ時に行われるが、装置運用中に同期外れが生じた
場合にも行われる。
The detection of the phase difference and the like are mainly performed when the apparatus is started up, but are also performed when out of synchronization occurs during the operation of the apparatus.

【0009】[0009]

【発明が解決しようとする課題】上述した従来のパケッ
トデータ比較回路は、パケットデータをパケット単位で
パラレルデータに変換した後にビット同士の比較を行う
ため、nビットのシフトレジスタが2回路、n個のD型
FF、n個の比較器及びn入力オア回路が必要となり、
回路規模が大きくなるという欠点があった。
The above-mentioned conventional packet data comparison circuit converts the packet data into parallel data packet by packet and then compares the bits with each other. D-type FF, n comparators and n-input OR circuit are required.
There is a drawback that the circuit scale becomes large.

【0010】ここで、ビット同士を比較する公知技術と
して特開昭63―279632号公報があるが、ビット
同士の一致を検出するにすぎず、2つの系の位相差を検
出することはできない。
Here, there is Japanese Patent Laid-Open No. 63-279632 as a known technique for comparing bits, but only the coincidence between the bits is detected and the phase difference between the two systems cannot be detected.

【0011】本発明は上述した従来技術の欠点を解決す
るためになされたものであり、その目的は回路規模を小
さくすることのできるパケットデータ比較回路を提供す
ることである。
The present invention has been made to solve the above-mentioned drawbacks of the prior art, and an object thereof is to provide a packet data comparison circuit capable of reducing the circuit scale.

【0012】[0012]

【課題を解決するための手段】本発明によるパケットデ
ータ比較回路は、順次シリアル入力される第1の系及び
第2の系のパケットデータ同士を比較するパケットデー
タ比較回路であって、前記第1の系のパケットデータの
1パケット分のデータをシリアルデータとして取込んで
出力するラッチ回路と、前記第2の系のパケットデータ
を、前記ラッチ回路の出力シリアルデータと1パケット
ずつ比較する比較手段とを含み、この1パケット毎の比
較結果により前記第1及び第2の系によるパケットデー
タ同士の位相差を検出するようにしたことを特徴とす
る。
A packet data comparison circuit according to the present invention is a packet data comparison circuit for comparing packet data of a first system and a second system, which are serially input sequentially, with each other. A latch circuit for taking in and outputting one packet of data of the packet data of the above system as serial data, and a comparing means for comparing the packet data of the second system with the output serial data of the latch circuit one packet at a time. And the phase difference between the packet data in the first and second systems is detected based on the comparison result for each packet.

【0013】[0013]

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

【0014】図1は本発明によるパケットデータ比較回
路の一実施例の構成を示すブロック図である。図におい
て、本発明の一実施例によるパケットデータ比較回路
は、進んでいる系のシリアルデータの1パケット分をシ
リアルデータのまま保持するラッチ回路11と、このラ
ッチ出力と遅れている系のシリアルデータと1パケット
ずつ比較する比較器12と、この比較結果を所定ビット
遅延させてもとの比較結果との論理和をとることにより
比較結果を圧縮する圧縮回路13と、この圧縮回路の出
力パルス数を判定する判定回路14とを含んで構成され
ている。
FIG. 1 is a block diagram showing the configuration of an embodiment of a packet data comparison circuit according to the present invention. In the figure, a packet data comparison circuit according to an embodiment of the present invention includes a latch circuit 11 for holding one packet of serial data of the advancing system as serial data, and a serial data of a system delayed from this latch output. And a comparator 12 that compares each packet one by one, a compression circuit 13 that compresses the comparison result by ORing the comparison result with the comparison result delayed by a predetermined bit, and the number of output pulses of this compression circuit. And a determination circuit 14 for determining.

【0015】ラッチ回路11は、セレクト信号によって
選択された進んでいる系のnビットパケットデータ10
0を出力する2―1セレクタ15と、このセレクタの出
力110を入力としnビットパケットデータの1パケッ
ト分をラッチするn段シフトレジスタ16とから構成さ
れている。なお、シフトレジスタ16が1パケット分の
データを保持した後は、セレクト信号111によりセレ
クタ15が切替えられセレクタ15からは常に1パケッ
ト分のデータがシリアルで出力されることになる。
The latch circuit 11 is used to select the n-bit packet data 10 of the advanced system selected by the select signal.
It is composed of a 2-1 selector 15 that outputs 0 and an n-stage shift register 16 that receives the output 110 of this selector as an input and latches one packet of n-bit packet data. After the shift register 16 holds the data for one packet, the selector 15 is switched by the select signal 111, and the data for one packet is always output serially from the selector 15.

【0016】比較器12は、ラッチ回路11内のセレク
タ15の出力110、すなわち1パケット分のデータと
遅れている系のシリアルデータ200とをビット単位で
比較するものであり、周知の排他的論理和回路により構
成されている。
The comparator 12 compares the output 110 of the selector 15 in the latch circuit 11, that is, one packet of data with the delayed serial data 200 in bit units, and is a well-known exclusive logic. It is composed of a sum circuit.

【0017】圧縮回路13は、比較器12の出力120
を3ビット遅延させる3ビットディレイ回路17と、こ
の遅延出力170と比較器12の出力120との論理和
をとるオア回路18と、この論理和出力と圧縮タイミン
グパルスとの論理積をとるアンド回路19とを含んで構
成されている。ここで、比較結果が一致を示す場合は比
較器12の出力120はオール“L”であり、オア回路
18の出力180もオール「0」である。これに対し、
比較結果が不一致を示す場合は比較器12の出力120
はオール“L”ではなく、いずれか1ビットが“H”で
ある。これにより、オア回路18の出力180もオール
“L”ではない。よって、オア回路18の出力180が
オール“L”か否かによって比較器12による比較結果
が一致か否かを判定できるのである。
The compression circuit 13 outputs the output 120 of the comparator 12.
A 3-bit delay circuit 17 for delaying 3 bits, an OR circuit 18 for taking a logical sum of the delayed output 170 and the output 120 of the comparator 12, and an AND circuit for taking a logical product of the logical sum output and the compression timing pulse. And 19 are included. Here, when the comparison result indicates coincidence, the output 120 of the comparator 12 is all "L" and the output 180 of the OR circuit 18 is all "0". In contrast,
If the comparison result shows a mismatch, the output 120 of the comparator 12
Is not all "L", and any one bit is "H". As a result, the output 180 of the OR circuit 18 is not all "L". Therefore, it can be determined whether or not the comparison result by the comparator 12 is the same, depending on whether or not the output 180 of the OR circuit 18 is all "L".

【0018】判定回路14は、圧縮回路13の出力13
0によりセットされパケット毎リセットパルスの入力1
41によりリセットされるS―R型FF20と、この出
力143と判定タイミングパルス142との論理積をと
るアンド回路26とを含んで構成されている。この判定
回路14の出力140が本パケットデータ比較回路の最
終的な出力となり、この出力パルス数が図示せぬカウン
タ回路等で計数されることになる。そして、この検出し
た位相差に応じた数の空きパケットを進んでいる系に対
して挿入すれば、両系の位相差をなくすことができるの
である。
The judgment circuit 14 outputs the output 13 of the compression circuit 13.
Input of reset pulse for each packet set by 0 1
The S-R FF 20 is reset by 41, and the AND circuit 26 that takes the logical product of the output 143 and the determination timing pulse 142. The output 140 of the determination circuit 14 becomes the final output of the packet data comparison circuit, and the number of output pulses is counted by a counter circuit (not shown) or the like. Then, by inserting the number of empty packets corresponding to the detected phase difference into the advancing system, the phase difference between both systems can be eliminated.

【0019】次に、図1の回路の動作について図面を参
照して説明する。
Next, the operation of the circuit shown in FIG. 1 will be described with reference to the drawings.

【0020】図2は図1の回路の各部の動作を示すタイ
ムチャートであり、図1と同等部分は同一符号により示
されている。
FIG. 2 is a time chart showing the operation of each part of the circuit of FIG. 1, and the same parts as in FIG. 1 are designated by the same reference numerals.

【0021】この例では進んでいる系のラッチされるn
ビットのパケットデータをパケットAとし、進んでいる
系と遅れている系の位相差を2パケットとする。
In this example, the latched n of the advanced system
The packet data of bits is packet A, and the phase difference between the advanced system and the delayed system is 2 packets.

【0022】通常、ラッチ回路11はセレクト信号11
1によって、進んでいる系からパケットを取込む時だけ
2―1セレクタ15の入力bを選択し、それ以外のとき
は入力aを選択する。したがって、セレクト信号111
の入力に応答してラッチ回路11は入力bを選択し、進
んでいる系のデータを1パケット分だけ取込む。一旦ラ
ッチ回路11にパケットAが取込まれるとパケットAは
n段シフトレジスタ16によりnビットシフトされ(Q
1〜Qn)、その出力160は2―1セレクタ15を介
して再びn段シフトレジスタ16に入力される。この帰
還動作により、ラッチ回路11の出力110(2―1セ
レクタ15の出力)は、常にパケットA(abc…fg
h)を示すことになる。
Normally, the latch circuit 11 outputs the select signal 11
By 1, the input b of the 2-1 selector 15 is selected only when the packet is taken in from the advancing system, and the input a is selected otherwise. Therefore, the select signal 111
In response to the input of, the latch circuit 11 selects the input b and fetches the data of the advancing system for one packet. Once the packet A is taken into the latch circuit 11, the packet A is shifted by n bits by the n-stage shift register 16 (Q
1 to Qn), and its output 160 is input again to the n-stage shift register 16 via the 2-1 selector 15. By this feedback operation, the output 110 of the latch circuit 11 (the output of the 2-1 selector 15) is always in the packet A (abc ... fg).
h).

【0023】比較器12ではラッチ回路11の出力11
0と遅れている系のデータ200とのビット毎の排他的
論理和がとられ、順次パケット同士が比較される。すな
わち、図中のパケットAが、遅れている系のデータ20
0のパケットY、Z…と1ビットずつ比較されるのであ
る。
In the comparator 12, the output 11 of the latch circuit 11
The bitwise exclusive OR of 0 and the delayed data 200 is taken, and the packets are sequentially compared. That is, the packet A in the figure is the data 20 of the delayed system.
0 packets Y, Z ... Are compared bit by bit.

【0024】比較器12における比較結果である出力1
20は、圧縮回路13内のディレイ17で3ビット遅延
され、その遅延出力170との論理和が取られる。そし
て、この論理和出力と圧縮タイミングパルス131との
論理積の結果が出力130として判定回路14に入力さ
れ、S―R型FF20にセットされる。
Output 1 which is the comparison result in the comparator 12.
20 is delayed by 3 bits by the delay 17 in the compression circuit 13 and is logically ORed with the delayed output 170. Then, the result of the logical product of the logical sum output and the compression timing pulse 131 is input to the determination circuit 14 as an output 130 and set in the SR type FF 20.

【0025】このとき、ラッチ回路11にラッチされて
いるパケットAと遅れている系のパケットYとは一致し
ないので、出力130は少なくともその1ビットが不一
致となる。よって、判定タイミングパルス142の入力
により最終的な比較結果である出力140が“H”とな
り、不一致を示す。その直後、パケット毎リセットパル
ス141の入力によりS―R型FF20はリセットされ
る。
At this time, since the packet A latched in the latch circuit 11 and the delayed packet Y do not match, at least one bit of the output 130 does not match. Therefore, the output of the final comparison result 140 becomes "H" due to the input of the determination timing pulse 142, indicating a mismatch. Immediately after that, the SR FF 20 is reset by the input of the reset pulse 141 for each packet.

【0026】パケットAとパケットZを比較した場合も
両者は一致しないので、出力130は少なくともその1
ビットが不一致となる。よって、出力140が“H”と
なり、不一致を示す。
When the packet A and the packet Z are compared with each other, the two do not match, so the output 130 is at least one of them.
Bits do not match. Therefore, the output 140 becomes "H", indicating a mismatch.

【0027】一方、ラッチされているパケットAと遅れ
ている系のパケットAとが比較されると、両者は一致す
るので出力130は全てのビットが一致となる。よっ
て、判定タイミングパルス142の入力により最終的な
比較結果である出力140が“L”となり、一致を示
す。その直後、パケット毎リセットパルス141の入力
によりS―R型FF20はリセットされる。
On the other hand, when the latched packet A and the delayed packet A are compared, they match each other, so that all the bits of the output 130 match. Therefore, the output of the final comparison result 140 becomes “L” by the input of the determination timing pulse 142, which indicates a match. Immediately after that, the SR FF 20 is reset by the input of the reset pulse 141 for each packet.

【0028】ここで、圧縮回路13の出力130に着目
すると、この出力130は1パケット分の比較結果同士
の間に3クロック分の“L”の区間がある。これはパケ
ット毎リセットパルス141によるリセットタイミング
を確保し、パケット同士の境界を明確にするために設け
られているのである。この3クロック分の“L”の区間
を設けるためには、図示されているような圧縮タイミン
グパルス131を生成し、1パケット分の比較結果(n
ビット)を(n−3)ビットに圧縮する必要があるが、
その生成方法については後述する。
Here, paying attention to the output 130 of the compression circuit 13, the output 130 has an "L" section for 3 clocks between the comparison results for 1 packet. This is provided to secure the reset timing by the reset pulse 141 for each packet and to clarify the boundary between the packets. In order to provide the “L” section for 3 clocks, the compression timing pulse 131 as shown in the figure is generated, and the comparison result (n
Bit) must be compressed to (n-3) bits,
The generation method will be described later.

【0029】以上により、パケット比較結果である出力
140は、2パルス分“H”となり、よって進んでいる
系と遅れている系の位相差である「2パケット」が検出
できたことになる。この2パケット分の空きパケットを
進んでいる系に挿入すれば、系間の位相差をなくすこと
ができるのである。
As described above, the output 140 which is the packet comparison result becomes "H" for two pulses, so that "2 packets" which is the phase difference between the leading system and the delayed system can be detected. By inserting these two empty packets into the advancing system, the phase difference between the systems can be eliminated.

【0030】ここで、図2におけるセレクト信号11
1、圧縮タイミングパルス131、パケット毎リセット
パルス141、判定タイミングパルス142の生成方法
について説明する。
Here, the select signal 11 in FIG.
1, a method of generating the compression timing pulse 131, the packet reset pulse 141, and the determination timing pulse 142 will be described.

【0031】まず、図3(a)は図2中のセレクト信号
111を生成するための回路の一例を示す回路図であ
り、同図(b)はその動作を示すタイムチャートであ
る。
First, FIG. 3A is a circuit diagram showing an example of a circuit for generating the select signal 111 in FIG. 2, and FIG. 3B is a time chart showing its operation.

【0032】この回路は3つのD型FF31〜33によ
り構成されている。
This circuit is composed of three D-type FFs 31 to 33.

【0033】かかる構成において、位相比較を開始する
ためのスタート(START)信号300を、1パケッ
トの長さに等しい周期を有するセルパルスCPの変化タ
イミングでD型FF31に保持する。そして、その出力
信号310を、各ビット毎のクロックパルスの入力に応
答してD型FF32に保持する。さらに、その出力信号
320を、セルパルスCPの変化タイミングでD型FF
33に保持する。この出力信号330でD型FF31を
リセットすることにより、1パケットの長さに等しいパ
ルス幅を有するセレクト信号111が得られる。
In such a structure, the start (START) signal 300 for starting the phase comparison is held in the D-type FF 31 at the change timing of the cell pulse CP having a cycle equal to the length of one packet. Then, the output signal 310 is held in the D-type FF 32 in response to the input of the clock pulse for each bit. Furthermore, the output signal 320 is output to the D-type FF at the change timing of the cell pulse CP.
Hold at 33. By resetting the D-type FF 31 with this output signal 330, the select signal 111 having a pulse width equal to the length of one packet can be obtained.

【0034】次に、図4は図2中の判定タイミングパル
ス142、パケット毎リセットパルス141及び圧縮タ
イミングパルス131を生成するための回路の一例を示
す回路図であり、図5はその動作を示すタイムチャート
である。なお、図4において、図3(a)と同等部分は
同一符号により示されている。
Next, FIG. 4 is a circuit diagram showing an example of a circuit for generating the determination timing pulse 142, the packet reset pulse 141 and the compression timing pulse 131 in FIG. 2, and FIG. 5 shows the operation thereof. It is a time chart. In FIG. 4, the same parts as those in FIG. 3A are indicated by the same reference numerals.

【0035】この回路はD型FF41及び43、アンド
回路42、インバータ40、オア回路47の他、3段に
接続されたD型FF44〜46により構成されている。
This circuit is composed of D-type FFs 41 and 43, an AND circuit 42, an inverter 40, an OR circuit 47, and D-type FFs 44 to 46 connected in three stages.

【0036】かかる構成において、セルパルスCPをク
ロックパルスの入力に応答してD型FF41に保持す
る。その出力信号410とセルパルスCPとの論理積を
とることにより、判定タイミングパルス142が得られ
る。
In such a structure, the cell pulse CP is held in the D-type FF 41 in response to the input of the clock pulse. The determination timing pulse 142 is obtained by taking the logical product of the output signal 410 and the cell pulse CP.

【0037】また、この判定タイミングパルス142を
クロックパルスCKの変化タイミングでD型FF43に
保持する。その出力がパケット毎リセットパルス141
となる。
Further, the determination timing pulse 142 is held in the D-type FF 43 at the change timing of the clock pulse CK. The output is a reset pulse 141 for each packet
Becomes

【0038】さらに、インバータ40によるセルパルス
CPの反転信号400を、クロックパルスCKの変化タ
イミングで順次D型FF44、45、46に保持する。
すると、信号440、450、460のように変化し信
号460と信号400との論理和をとることにより、圧
縮タイミングパルス131が得られる。この圧縮タイミ
ングパルス131は“H”の区間同士の間に3クロック
分の“L”の区間があるが、これはパケット毎リセット
パルス141によるリセットタイミングを確保するため
である。
Further, the inverted signal 400 of the cell pulse CP from the inverter 40 is held in the D-type FFs 44, 45 and 46 in sequence at the change timing of the clock pulse CK.
Then, the compression timing pulse 131 is obtained by changing as signals 440, 450, and 460 and taking the logical sum of the signal 460 and the signal 400. The compression timing pulse 131 has an “L” section for 3 clocks between “H” sections, which is to secure the reset timing by the per-packet reset pulse 141.

【0039】つまり、パケット同士の境界を明確にする
ために1パケット分の比較結果(nビット)を(n−
3)ビットに圧縮し、比較結果の1パケット分毎にFF
20をリセットしているのである。
That is, the comparison result (n bits) for one packet is (n-
3) Compress to bits and FF for each packet of comparison result
20 is being reset.

【0040】なお、3クロック分ではなく、より多くの
“L”の区間を設けても良いことは明らかである。この
場合は、そのクロック数に応じたディレイ回路を設けれ
ば良い。3クロック分より少ない区間であっても、リセ
ットタイミングを確保でき、かつパケット同士の境界が
明確になれば問題はない。
Obviously, more "L" sections may be provided instead of three clocks. In this case, a delay circuit according to the number of clocks may be provided. Even if the interval is less than 3 clocks, there is no problem if the reset timing can be secured and the boundary between the packets becomes clear.

【0041】以上のように、本実施例ではシリアルデー
タのままで処理して位相比較するため従来回路(図6)
に比べ、nビットシフトレジスタ、n入力オア回路、
(n−1)個の排他的論理和回路及びn個相当のD型F
Fを削減することができ、回路規模を小さくすることが
できる。
As described above, in this embodiment, since the serial data is processed as it is and the phase is compared, the conventional circuit (FIG. 6) is used.
N bit shift register, n input OR circuit,
(N-1) exclusive OR circuits and n D-type Fs
F can be reduced and the circuit scale can be reduced.

【0042】なお、2つの系のうちの進んでいる系を特
定することはできないので、従来と同様に、いずれか一
方を進んでいる系とみなして比較を開始し、ある一定の
時間経過しても比較結果が一致を示さない場合は他方を
進んでいる系とみなして比較をやり直す。この2つの系
の切替は、2つの系を相互に入替えて出力できるセレク
タを比較回路(図1)の前段に設けておき、これを切替
制御すれば良い。ある一定の時間については、ソフトウ
ェアによるタイマで一定時間を計測したり、位相差の最
大値(例えば、600セル分)を越えることを検出する
等によりセレクタを切替制御することにより行う。これ
ら位相差の検出等は、主として装置の立上げ時に行われ
るが、装置運用中に同期外れが生じた場合にも行われ
る。
Since it is not possible to identify the advanced system of the two systems, one of the two systems is regarded as the advanced system and the comparison is started in the same manner as in the conventional system, and a certain period of time elapses. However, if the comparison results do not show a match, the other is regarded as a system in progress and the comparison is repeated. To switch between these two systems, a selector capable of switching between the two systems and outputting them is provided in the preceding stage of the comparison circuit (FIG. 1), and this switching control may be performed. For a certain fixed time, it is controlled by switching the selector by measuring a fixed time with a timer by software or detecting that the maximum value of the phase difference (for example, 600 cells) is exceeded. The detection of the phase difference and the like are mainly performed when the apparatus is started up, but are also performed when out of synchronization occurs during operation of the apparatus.

【0043】[0043]

【発明の効果】以上説明したように本発明は、シリアル
データ同士で処理して比較しているため、回路規模を小
さくすることができるという効果がある。また、比較結
果を圧縮しているため、パケット同士の境界が明確にな
り、位相差を確実に検出できるという効果もある。
As described above, according to the present invention, since serial data are processed and compared with each other, the circuit scale can be reduced. Further, since the comparison result is compressed, the boundaries between the packets are clarified, and the phase difference can be reliably detected.

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

【図1】本発明の実施例によるパケットデータ比較回路
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a packet data comparison circuit according to an embodiment of the present invention.

【図2】図1のパケットデータ比較回路の動作を示すタ
イムチャートである。
FIG. 2 is a time chart showing the operation of the packet data comparison circuit of FIG.

【図3】(a)は図2中のセレクト信号を生成するため
の回路の一例を示す回路図、(b)はその動作を示すタ
イムチャートである。
3A is a circuit diagram showing an example of a circuit for generating the select signal in FIG. 2, and FIG. 3B is a time chart showing its operation.

【図4】図2中の判定タイミングパルス、パケット毎リ
セットパルス及び圧縮タイミングパルスを生成するため
の回路の一例を示す回路図である。
4 is a circuit diagram showing an example of a circuit for generating a determination timing pulse, a reset pulse for each packet, and a compression timing pulse in FIG.

【図5】図4の回路の動作を示すタイムチャートであ
る。
5 is a time chart showing the operation of the circuit of FIG.

【図6】従来のパケットデータ比較回路の構成を示すブ
ロック図である。
FIG. 6 is a block diagram showing a configuration of a conventional packet data comparison circuit.

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

12 比較器 15 n段シフトレジスタ 16 2―1セレクタ 17 ディレイ回路 18 オア回路 19 アンド回路 20 SR型FF 12 comparator 15 n-stage shift register 16 2-1 selector 17 delay circuit 18 OR circuit 19 AND circuit 20 SR type FF

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 順次シリアル入力される第1の系及び第
2の系のパケットデータ同士を比較するパケットデータ
比較回路であって、前記第1の系のパケットデータの1
パケット分のデータをシリアルデータとして取込んで出
力するラッチ回路と、前記第2の系のパケットデータ
を、前記ラッチ回路の出力シリアルデータと1パケット
ずつ比較する比較手段とを含み、この1パケット毎の比
較結果により前記第1及び第2の系によるパケットデー
タ同士の位相差を検出するようにしたことを特徴とする
パケットデータ比較回路。
1. A packet data comparison circuit for comparing packet data of a first system and a packet data of a second system, which are serially input in sequence, wherein the packet data of the first system is 1
A latch circuit for fetching and outputting packet data as serial data and a comparing means for comparing the packet data of the second system with the output serial data of the latch circuit for each packet are provided. The packet data comparison circuit is characterized in that the phase difference between the packet data by the first and second systems is detected based on the result of the comparison.
【請求項2】 前記比較手段による1パケット毎の比較
結果を所定ビット遅延せしめる遅延手段と、この遅延出
力と前記比較結果とを論理和する論理和手段とを更に含
み、この論理和手段の出力パルス数に応じて前記第1及
び第2の系によるパケットデータ同士の位相差を調整す
るようにしたことを特徴とする請求項1記載のパケット
データ比較回路。
2. The output of the logical sum means further includes delay means for delaying the comparison result of each packet by the comparing means by a predetermined bit, and logical sum means for logically summing the delayed output and the comparison result. 2. The packet data comparison circuit according to claim 1, wherein the phase difference between the packet data by the first and second systems is adjusted according to the number of pulses.
【請求項3】 前記論理和手段の出力パルス数を、所定
の判定信号の入力に応答して判定する判定手段を更に含
むことを特徴とする請求項2記載のパケットデータ比較
回路。
3. The packet data comparison circuit according to claim 2, further comprising a judging means for judging the number of output pulses of said logical sum means in response to the input of a predetermined judging signal.
JP6041516A 1994-03-11 1994-03-11 Packet data comparator circuit Withdrawn JPH07250079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6041516A JPH07250079A (en) 1994-03-11 1994-03-11 Packet data comparator circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6041516A JPH07250079A (en) 1994-03-11 1994-03-11 Packet data comparator circuit

Publications (1)

Publication Number Publication Date
JPH07250079A true JPH07250079A (en) 1995-09-26

Family

ID=12610547

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6041516A Withdrawn JPH07250079A (en) 1994-03-11 1994-03-11 Packet data comparator circuit

Country Status (1)

Country Link
JP (1) JPH07250079A (en)

Similar Documents

Publication Publication Date Title
US6526106B1 (en) Synchronous circuit controller for controlling data transmission between asynchrous circuit
JP4317336B2 (en) Data restoration device and restoration circuit, data restoration method, and program storage device for realizing the method
US5455840A (en) Method of compensating a phase of a system clock in an information processing system, apparatus employing the same and system clock generator
JPH04320109A (en) Circuit for discriminating transition phase of data edge
US7069481B2 (en) Data recovery circuit for minimizing power consumption by non-integer times oversampling
US4686676A (en) Apparatus and method for determining true data in a digital data stream from distorted data
JPH07250079A (en) Packet data comparator circuit
US8284881B2 (en) Data interface and method of seeking synchronization
US6088400A (en) Receiving device for synchronous serial transmission data
JPH0685775A (en) Detection circuit of synchronizing signal for reception of digital signal
JP3443630B2 (en) Bit protection circuit
JP3115756B2 (en) Demultiplexer circuit
JP2809202B2 (en) Clock switching circuit and clock transfer device using the same
JP2959303B2 (en) Arithmetic circuit
JP3228408B2 (en) Synchronization circuit and synchronization method
JP3279243B2 (en) Digital comparator
JP3385998B2 (en) ATM cell synchronization circuit
KR0172459B1 (en) Clock playback method and device
JPS62281534A (en) Circuit for detecting correlation between frame synchronizing patterns circuit
JP3516652B2 (en) Synchronization method and circuit of multi-bit signal
JP2000347950A (en) Serial interface
JPH0851417A (en) Bit phase synchronization circuit
JPH0378819B2 (en)
JPH0797743B2 (en) Majority logic circuit
JPH09186680A (en) Data latch circuit

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010605