[go: up one dir, main page]

JPH05219037A - Independent synchronous type serial data communication device - Google Patents

Independent synchronous type serial data communication device

Info

Publication number
JPH05219037A
JPH05219037A JP4020195A JP2019592A JPH05219037A JP H05219037 A JPH05219037 A JP H05219037A JP 4020195 A JP4020195 A JP 4020195A JP 2019592 A JP2019592 A JP 2019592A JP H05219037 A JPH05219037 A JP H05219037A
Authority
JP
Japan
Prior art keywords
detection
clock
serial data
buffer
phase
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
JP4020195A
Other languages
Japanese (ja)
Inventor
Hiroyuki Yamauchi
浩幸 山内
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP4020195A priority Critical patent/JPH05219037A/en
Publication of JPH05219037A publication Critical patent/JPH05219037A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Use Of Switch Circuits For Exchanges And Methods Of Control Of Multiplex Exchanges (AREA)

Abstract

PURPOSE:To excellently preserve data sent in a network in any case by controlling the length of a preamble to proper length through only one buffer. CONSTITUTION:Serial data are inputted and a mode decision part 29 detects and decide a mode; when it is decided that the communication mode is a basic mode, a clock phase control part 28 increases or decreases the preamble length detected by a preamble length detection part 27 in response to a signal MODE indicating the decided mode according to buffer consumption B detected by a buffer consumption detection part 26. When the mode decision part 29 decides that the communication mode is a hybrid mode, on the other hand, the clock phase control part 28 does not adjust the preamble length detected by the preamble length detection part 27 according to the buffer consumption B detected by the buffer consumption detection part 26.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、通信ネットワーク中
を非同期にて、若しくは同期及び非同期にて伝送される
シリアルデータを、該ネットワークに接続される各局毎
に独立したクロック周波数に基づき独立同期にて通信す
る独立同期型シリアルデータ通信装置に関し、特に上記
シリアルデータに補助データとして付加されるプリアン
ブルの長さをいかなる場合も常に好適に制御して、その
伝送されるデータを良好に保全する装置の具現に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention makes serial data transmitted asynchronously or synchronously and asynchronously in a communication network independent synchronization based on an independent clock frequency for each station connected to the network. The present invention relates to an independent synchronous serial data communication device for communicating by means of a device for maintaining the transmitted data well by controlling the length of a preamble added as auxiliary data to the serial data in any case. Regarding implementation.

【0002】[0002]

【従来の技術】一般に、通信ネットワークに接続される
ほとんどの送受信回路は、入力が現れてから有効な出力
が出るまでに数ビット時間かかるため、通常は、シリア
ルデータを構成する各データの前にプリアンブルと称さ
れるビット列を付加して、定常状態、すなわちこれら送
受信回路が有効な出力をシステムに送れる状態、になる
までの時間補償を行うようにしている。
2. Description of the Related Art Generally, since most transmission / reception circuits connected to a communication network take several bits time from the appearance of an input to the output of a valid output, it is usually preceded by each data constituting the serial data. A bit string called a preamble is added to perform time compensation until a steady state, that is, a state in which these transmitting and receiving circuits can send an effective output to the system.

【0003】また、こうした通信ネットワークにあって
は通常、そのシリアルデータの伝送モードとして、パケ
ットのみの伝送に適用される非同期通信モード(以下こ
れをベーシック・モードという)、及びこのパケット伝
送にかかる非同期通信に加えて、音声や画像等のリアル
タイム伝送、すなわち同期通信をも可能とする通信モー
ド(以下これをハイブリッド・モードという)の2つの
モードを具えている。以下に、これら各モードの概要に
ついて簡単に説明する。
Also, in such a communication network, as the transmission mode of the serial data, an asynchronous communication mode (hereinafter referred to as a basic mode) applied to the transmission of only packets, and an asynchronous mode related to the packet transmission are usually used. In addition to communication, it has two modes: a communication mode (hereinafter referred to as a hybrid mode) that enables real-time transmission of voice and images, that is, synchronous communication. The outline of each of these modes will be briefly described below.

【0004】まず、上記ベーシック・モードの場合、図
21に示されるように、シリアルデータとして通常、フ
レームと呼ばれる長さが6〜9000シンボル(1シン
ボル=5ビット)のデータが、最低16シンボルからな
るプリアンブルPAを持って、当該通信ネットワークに
接続される各局間を送受信される。すなわち、フレーム
を送信したい局は、フレームの送信権を示すトークンを
獲得した後、この最低で16シンボルのプリアンブルを
付加してフレームを送信することとなる。ただし、この
フレームの送信に際し、上記トークンの獲得後、直ちに
フレームの送信が開始されるわけではなく、その間、最
高で3.5μs程度の時間ロスを生じることがある。こ
れはプリアンブルの数にして約86シンボルに相当す
る。また同図21に示されるように、、上記データ(フ
レーム)の先頭位置はスタートコードJKによって指示
される。
First, in the case of the basic mode, as shown in FIG. 21, as a serial data, data having a length of 6 to 9000 symbols (1 symbol = 5 bits), which is usually called a frame, starts from a minimum of 16 symbols. With the preamble PA, the stations are connected to and connected to the communication network. That is, the station that wants to transmit the frame will acquire the token indicating the transmission right of the frame and then transmit the frame with the preamble of at least 16 symbols added. However, in transmitting this frame, the frame transmission is not started immediately after the token is acquired, and a time loss of about 3.5 μs at the maximum may occur during the transmission. This corresponds to about 86 symbols in the number of preambles. As shown in FIG. 21, the start position of the data (frame) is designated by the start code JK.

【0005】なお、特にこのベーシック・モードにおい
ては、上記プリアンブルをアイドルと称することも多
い。そしてこのベーシック・モードの場合、ネットワー
ク中のトークン、及び上記フレームとしてある局から送
信されるデータ(パケット)以外の部分が、このプリア
ンブル(アイドル)によって埋められることとなる。こ
のため、何らかの理由によりネットワーク中からトーク
ンが消失し、また、その時点で同ネットワーク中に送出
されているデータ(パケット)が何ら存在しなかったよ
うな場合には、このプリアンブルが数百万シンボルに達
するようなこともある。
In particular, in the basic mode, the preamble is often called idle. In the case of this basic mode, the token in the network and the part other than the data (packet) transmitted from a certain station as the above frame are filled with this preamble (idle). For this reason, if the token disappears from the network for some reason, and there is no data (packet) being sent to the network at that time, this preamble has several million symbols. Sometimes reaches.

【0006】他方、上記ハイブリッド・モードの場合に
は、図22に示されるように、同シリアルデータとして
通常、サイクルと呼ばれる長さが3120シンボルのデ
ータが、固定長のプリアンブルPAを伴って、サイクル
マスタと称される特定の局から送信されるようになる。
FDDI−II(エフ・ディー・ディー・アイ−ツゥ
ー: Fiber Distributed Data Interface - II)として
定められている通信規格においては、このプリアンブル
PAの長さとして、5シンボルが基準とされることが多
い。そして、このサイクルマスタ以外の各局では、上記
送信されるサイクル中のデータを適宜書き換えつつ、こ
れを多局へのデータとして送信する。
On the other hand, in the case of the hybrid mode, as shown in FIG. 22, as the same serial data, data having a length of 3120 symbols, which is usually called a cycle, is cycled together with a fixed length preamble PA. It will be transmitted from a specific station called the master.
According to the communication standard defined as FDDI-II (Fiber Distributed Data Interface-II), the length of the preamble PA is often set to 5 symbols. Then, each station other than the cycle master appropriately rewrites the data in the cycle to be transmitted and transmits it as data to multiple stations.

【0007】また、このハイブリッド・モードにおいて
も、データ(サイクル)の先頭位置はスタートコードJ
Kによって指示されるが、特にこのハイブリッド・モー
ドの場合には、同図22に示されるように、サイクルヘ
ッダ(CH)と称される該ハイブリッド・モード専用の
識別子が併せ付加される。
Also in this hybrid mode, the start position of the data (cycle) is the start code J.
Although designated by K, in the case of this hybrid mode in particular, as shown in FIG. 22, an identifier unique to the hybrid mode called a cycle header (CH) is also added.

【0008】ところで、このような通信ネットワークに
あっては、上述のように、ネットワークに接続される各
局が独立同期にて動作することから、特に上記ハイブリ
ッド・モードにあるときには、これら各局の周波数の微
妙な違いにより発生する伝送シリアルデータの累積位相
差も無視できないものとなる。この様子を図23及び図
24に示す。
By the way, in such a communication network, since the stations connected to the network operate independently in synchronization as described above, the frequencies of these stations are changed especially when in the hybrid mode. The cumulative phase difference of the transmission serial data caused by a subtle difference cannot be ignored. This state is shown in FIGS. 23 and 24.

【0009】すなわち図23において、第1局1〜第n
局nは、上記通信ネットワークへの接続局であり、ここ
で仮定として、伝送周波数f0 にて伝送されるシリアル
データS0を受入してこれをバッファメモリに一時貯蔵
しつつ、更にこの貯蔵データを次局に転送する第1局1
が、上記伝送周波数f0 よりも僅かに低い内部周波数f
1 にて、上記貯蔵データの読み出し(転送)動作を行う
ものとし、この第1局1から転送されるシリアルデータ
S1(伝送周波数f1 )を受入してこれをバッファメモ
リに一時貯蔵しつつ、更にこの貯蔵データを次局に転送
する第2局2が、上記周波数f1 よりも僅かに高い内部
周波数f2 にて、上記貯蔵データの読み出し(転送)動
作を行うものとし、この第2局2から転送されるシリア
ルデータS2(伝送周波数f2 )を受入してこれをバッ
ファメモリに一時貯蔵しつつ、更にこの貯蔵データを次
局に転送する第3局3が、上記周波数f2 よりも僅かに
高い内部周波数f3 にて、上記貯蔵データの読み出し
(転送)動作を行うものとすると、上記各シリアルデー
タS0〜S3の位相も自ずと、図24(a)〜(d)に
示されるようにばらついたものとなる。そして、こうし
た位相差が累積されていった場合、後段の接続局では、
上記データ一時貯蔵用のバッファメモリにオーバーフロ
ー、もしくはアンダーフローが生じることとなり、その
正常な動作すら保証できない事態に陥る。
That is, in FIG. 23, the first station to the n-th station
The station n is a station connected to the communication network, and it is assumed that the station n receives the serial data S0 transmitted at the transmission frequency f0 and temporarily stores the serial data S0 in the buffer memory. First station 1 to transfer to station
However, the internal frequency f is slightly lower than the transmission frequency f0.
At 1, the read (transfer) operation of the stored data is performed. The serial data S1 (transmission frequency f1) transferred from the first station 1 is received and temporarily stored in the buffer memory. The second station 2 which transfers the stored data to the next station performs the read (transfer) operation of the stored data at the internal frequency f2 slightly higher than the frequency f1. The third station 3, which receives the serial data S2 (transmission frequency f2) to be stored and temporarily stores it in the buffer memory, and further transfers the stored data to the next station, has an internal frequency slightly higher than the frequency f2. If the read (transfer) operation of the stored data is performed at f3, the phases of the serial data S0 to S3 will vary as shown in FIGS. 24 (a) to 24 (d). The things. And, when such phase difference is accumulated, in the connecting station in the latter stage,
Overflow or underflow occurs in the buffer memory for temporary data storage, and even normal operation cannot be guaranteed.

【0010】こうした事情は、上記ベーシック・モード
においても概ね同様であるが、このベーシック・モード
においては特に、上記プリアンブルの長さがどの程度に
なるかを各局において把握することができないため、上
記バッファメモリにオーバーフローを生じる確率も更に
増大する。しかもこのベーシック・モードの場合には、
最大のデータ(フレーム)長が、ハイブリッド・モード
時のデータ(サイクル)長の約3倍近くにもなることが
あるため、上記バッファメモリのバッファ許容量そのも
のを大きく取っておく必要がある。
This situation is almost the same in the basic mode as well. However, in this basic mode, since it is not possible for each station to grasp how long the preamble is, it is not possible to grasp the buffer. The probability of memory overflow is further increased. And in the case of this basic mode,
Since the maximum data (frame) length may be almost three times the data (cycle) length in the hybrid mode, it is necessary to set a large buffer allowance itself of the buffer memory.

【0011】このため従来は、各局毎に、図25に例示
するような装置を設け、該装置を通じて上述したプリア
ンブルの長さを増減することで、ハイブリッド・モード
及びベーシック・モードにおけるこれらの不都合を解消
するようにしている。
For this reason, conventionally, each station is provided with a device as shown in FIG. 25, and the length of the preamble is increased or decreased through the device, thereby eliminating these disadvantages in the hybrid mode and the basic mode. I am trying to resolve it.

【0012】因みにこの図25に示す装置において、内
部クロック源11は、当該局の動作周波数を決定するク
ロック信号を発生する部分であり、エラスティックバッ
ファ12及びスムージングバッファ13はそれぞれ、上
記シリアルデータをFIFO(First-in First-out)形
式にて一時貯蔵する部分であり、クロック抽出部14
は、入力されるシリアルデータからその伝送クロックを
抽出し、該抽出したクロックWC1 に基づいて当該シリ
アルデータを上記エラスティックバッファ12に書き込
む部分であり、バッファ使用量検出部15は、該エラス
ティックバッファ12に書き込まれたデータの量、すな
わち同バッファ12の都度のバッファ使用量を検出する
部分であり、クロック位相制御部16は、エラスティッ
クバッファ12を通じて上述した局間の周波数差による
データの位相ずれを吸収すべく、上記内部クロック源1
1から発生されるクロックの位相を上記バッファ使用量
検出部15の検出出力に基づいて移相(位相を進めるも
しくは遅らせる)制御し、この制御した位相のクロック
RC1 によって上記エラスティックバッファ12に貯蔵
されているデータを読み出す部分であり、プリアンブル
長検出部17は、このエラスティックバッファ12から
読み出されたシリアルデータから、同データに含まれる
プリアンブルPAの長さを検出(例えばプリアンブルP
Aを検出してその長さをカウント)する部分であり、バ
ッファ使用量検出部18は、上記スムージングバッファ
13についてその都度のバッファ使用量を検出する部分
であり、クロック位相制御部19は、スムージングバッ
ファ13を通じて上述したプリアンブルPAの長さを増
減すべく、上記内部クロック源11から発生されるクロ
ックの位相をこれらプリアンブル長検出部17及びバッ
ファ使用量検出部18の各検出出力に基づいて移相制御
し、この制御した位相のクロックWC2 によって上記エ
ラスティックバッファ12から読み出されたシリアルデ
ータをスムージングバッファ13に書き込む部分であ
る。こうしてスムージングバッファ13に書き込まれた
データは、上記内部クロック源11から発生されるクロ
ックRC2 に基づいて読み出され、次局への転送データ
として当該局から出力される。
Incidentally, in the device shown in FIG. 25, the internal clock source 11 is a part for generating a clock signal for determining the operating frequency of the station, and the elastic buffer 12 and the smoothing buffer 13 respectively store the serial data. The clock extracting unit 14 is a unit for temporarily storing in a FIFO (First-in First-out) format.
Is a part for extracting the transmission clock from the input serial data and writing the serial data in the elastic buffer 12 based on the extracted clock WC1. The clock phase control unit 16 detects the amount of data written in the buffer 12, that is, the buffer usage amount of the buffer 12 each time, and the clock phase control unit 16 shifts the data phase due to the frequency difference between the stations through the elastic buffer 12. Internal clock source 1 in order to absorb the
The phase of the clock generated from 1 is phase-shifted (advanced or delayed) based on the detection output of the buffer usage detector 15, and is stored in the elastic buffer 12 by the clock RC1 of the controlled phase. The preamble length detection unit 17 detects the length of the preamble PA included in the data from the serial data read from the elastic buffer 12 (for example, the preamble P).
A is a part for detecting A and counting its length), the buffer usage amount detecting part 18 is a part for detecting the buffer usage amount for each of the smoothing buffers 13, and the clock phase control part 19 is for smoothing. In order to increase or decrease the length of the preamble PA through the buffer 13, the phase of the clock generated from the internal clock source 11 is phase-shifted based on the detection outputs of the preamble length detection unit 17 and the buffer usage amount detection unit 18. This is a part for controlling and writing the serial data read from the elastic buffer 12 to the smoothing buffer 13 by the clock WC2 of the controlled phase. The data thus written in the smoothing buffer 13 is read out based on the clock RC2 generated from the internal clock source 11 and output from the station as transfer data to the next station.

【0013】以下、この図25に示す装置の、特に上記
クロック位相制御部19によるスムージングバッファ1
3の制御方法について、従来採用されている2つの方法
を示し、各々その制御アルゴリズムを列記する。
Hereinafter, the smoothing buffer 1 of the apparatus shown in FIG. 25, particularly by the clock phase controller 19, will be described.
Regarding the control method of No. 3, two conventionally adopted methods are shown, and their control algorithms are listed respectively.

【0014】◆第1の方法(以下「リミットスムーザ」
という) ( 1) ( a)ハイブリッド・モードにおいて、プリアンブルPA
が4シンボルでスムージングバッファ13の使用率が5
0%を超えているなら、また( b)ハイブリッド・モード
において、プリアンブルPAが6シンボルでスムージン
グバッファ13の使用率が0%以上なら、また( c)ベー
シック・モードにおいて、プリアンブルPAが12シン
ボルでスムージングバッファ13の使用率が50%を超
えているなら、また( d)ベーシック・モードにおいて、
プリアンブルPAが14シンボルでスムージングバッフ
ァ13の使用率が0%以上なら、プリアンブルPAを読
み捨てて、スタートコードJKが来るのを待つ。 ( 2)上記( a)〜( d)以外なら、アイドル(プリアンブル
PA)を出力して、スタートコードJKが来るのを待
つ。
◆ First method (hereinafter, "limit smoother")
(1) (a) In hybrid mode, preamble PA
Is 4 symbols and the usage rate of the smoothing buffer 13 is 5
If it exceeds 0%, or (b) in the hybrid mode, the preamble PA is 6 symbols and the smoothing buffer 13 usage rate is 0% or more, or (c) in the basic mode, the preamble PA is 12 symbols. If the usage rate of the smoothing buffer 13 exceeds 50%, in the (d) basic mode,
If the preamble PA is 14 symbols and the usage rate of the smoothing buffer 13 is 0% or more, the preamble PA is read and discarded, and the start code JK is waited for. (2) In cases other than the above (a) to (d), idle (preamble PA) is output and the start code JK is waited for.

【0015】◆第2の方法(以下「ターゲットスムー
ザ」という) ( 1) ( a)ハイブリッド・モードにおいて、プリアンブルPA
が4シンボルでスムージングバッファ13の使用率が5
0%を超えているなら、また( b)ハイブリッド・モード
において、プリアンブルPAが5シンボル以上でスムー
ジングバッファ13の使用率が0%を超えているなら、
また( c)ベーシック・モードにおいて、プリアンブルP
Aが14シンボル以上でスムージングバッファ13の使
用率が0%を超えているなら、プリアンブルPAを読み
捨てて、スタートコードJKが来るのを待つ。 ( 2)上記( a)〜( c)以外なら、アイドル(プリアンブル
PA)を出力して、スタートコードJKが来るのを待
つ。
Second method (hereinafter referred to as "target smoother") (1) (a) In hybrid mode, preamble PA
Is 4 symbols and the usage rate of the smoothing buffer 13 is 5
If the preamble PA is 5 symbols or more and the usage rate of the smoothing buffer 13 exceeds 0% in the hybrid mode (b),
In (c) Basic mode, the preamble P
If A is 14 symbols or more and the usage rate of the smoothing buffer 13 exceeds 0%, the preamble PA is read and discarded, and the start code JK is waited for. (2) In cases other than the above (a) to (c), idle (preamble PA) is output and the start code JK is waited for.

【0016】これらの方法が、プリアンブル長調整方法
として、従来最も有力視されているものである。
These methods have been regarded as the most powerful preamble length adjusting methods in the past.

【0017】また、これらプリアンブル長調整方法に係
わる文献としては、米国国内規格協会(ANSI:Amer
ican National Standards Institute )ワーキングペー
パにある次のものが知られている。
References relating to these preamble length adjustment methods include the American National Standards Institute (ANSI: Amer).
The following are known from the ican National Standards Institute working paper:

【0018】(A) ドラフト・プロポーズド・ANS「F
DDIハイブリッド・リング・コントロール」、198
8年8月12日、32頁−38頁[DRAFT PROPOSED ANS
"FDDIHYBRID RING CONTROL" (Aug.12,1988) P.32-P.3
8] (B) デビッド・ドッズ「ジッター・コントロール・イン
・FDDI−IIシステムズ」、1987年9月30日
[David Dodds "JITTER CONTROL IN FDDI-II SYSTEMS"
(Sept.30,1987)] (C) デビッド・ドッズ「ジッター・コントロール・イン
・FDDI−IIシステムズ・プログレス・レポー
ト」、1987年7月8日[David Dodds "JITTER CONT
ROL IN FDDI-II SYSTEMS Progress Report" (July 8,19
87)] (D) ワーキング・ドラフト・プロポーズド アメリカン
・ナショナル・スタンダード「FDDI フィジカル・
レイヤー・プロトコル(PHY−2)」、1991年3
月5日、19頁−44頁[WORKING DRAFT PROPOSED AME
RICAN NATIONALSTANDARD "FDDI PHYSICAL LAYER PROTOC
OL (PHY-2)" (March 5,1988) P.19-P.44]
(A) Draft, Proposed, ANS "F
DDI Hybrid Ring Control ", 198
August 12, 1996, pp. 32-38 [DRAFT PROPOSED ANS
"FDDIHYBRID RING CONTROL" (Aug.12,1988) P.32-P.3
8] (B) David Dodds "Jitter Control in FDDI-II SYSTEMS", September 30, 1987 [David Dodds "JITTER CONTROL IN FDDI-II SYSTEMS"
(Sept.30,1987)] (C) David Dodds, "Jitter Control in FDDI-II Systems Progress Report," July 8, 1987 [David Dodds "JITTER CONT
ROL IN FDDI-II SYSTEMS Progress Report "(July 8,19
87)] (D) Working Draft Proposed American National Standard “FDDI Physical
Layer Protocol (PHY-2) ", March 1991
May 5th, pages 19-44 [WORKING DRAFT PROPOSED AME
RICAN NATIONALSTANDARD "FDDI PHYSICAL LAYER PROTOC
OL (PHY-2) "(March 5,1988) P.19-P.44]

【0019】[0019]

【発明が解決しようとする課題】ところで、上記従来の
プリアンブル長調整方法は何れも、図25からも明らか
なように、エラスティックバッファ及びスムージングバ
ッファといった少なくとも2つのバッファを用いること
が前提となる。そして、エラスティックバッファを通じ
て局間の周波数差によるデータの位相ずれを先ず吸収
し、この位相ずれの吸収によって極端に短く、または極
端に長く調整されたプリアンブル長を、その後スムージ
ングバッファを通じて補正するようにしている。
By the way, in any of the above-mentioned conventional preamble length adjusting methods, it is premised that at least two buffers such as an elastic buffer and a smoothing buffer are used, as is apparent from FIG. Then, the phase shift of the data due to the frequency difference between the stations is first absorbed through the elastic buffer, and the preamble length adjusted to be extremely short or extremely long by the absorption of this phase shift is then corrected through the smoothing buffer. ing.

【0020】このためこの方法では、特にハイブリッド
・モードにおいてある局に連続して短いプリアンブルの
データ(サイクル)が到来したような場合、スムージン
グバッファは連続してそのプリアンブル長を元に戻すよ
うに働くこととなり、数サイクルでそのバッファ許容量
を使い切ってしまうことが予想される。すなわちこの場
合、当該シリアルデータのその後のサイクルについて
は、何らの補正もできないままにこれを次局に送り出さ
ざるを得なくなる。したがって、伝送されるシリアルデ
ータが多数の局を経由して、同じサイクルに上記の調整
が重複するような場合には、当該サイクルにおけるプリ
アンブル長はどんどん短くなり、ついには0シンボル
(プリアンブル無し)となってしまうこともあり得る。
このことは、それ以後の調整がデータ部分におよび、ひ
いてはデータ破壊をも引き起こしかねないことを意味す
る。
Therefore, in this method, the smoothing buffer continuously restores the preamble length to its original value, especially when a short preamble data (cycle) arrives at a certain station in the hybrid mode. It is expected that the buffer capacity will be used up in a few cycles. That is, in this case, in the subsequent cycle of the serial data, the serial data must be sent to the next station without any correction. Therefore, when the serial data to be transmitted passes through a number of stations and the above adjustments are duplicated in the same cycle, the preamble length in that cycle becomes shorter and shorter and finally becomes 0 symbol (no preamble). It can happen.
This means that subsequent adjustments can reach the data portion and thus even cause data corruption.

【0021】また、ハイブリッド・モードにおけるこう
した不都合を解消すべく、同一データ(サイクル)に対
するプリアンブルPAの長さの増減が、増方向或いは減
方向で同一方向に重複されるとき、当該データに関する
プリアンブルの長さの増減を控えるようなプリアンブル
長調整制御を実現する通信装置を上記各局に対して設け
ることも考えられなくはないが、これでは他方のベーシ
ック・モードにおいての利用が難しくなる。
Further, in order to eliminate such inconvenience in the hybrid mode, when the increase / decrease in the length of the preamble PA for the same data (cycle) is overlapped in the same direction in the increasing or decreasing direction, the preamble relating to the data is changed. It is not unthinkable to provide each station with a communication device that realizes a preamble length adjustment control that refrains from increasing or decreasing the length, but this makes it difficult to use the other basic mode.

【0022】すなわちベーシック・モードにあっては、
そもそもプリアンブルPAの長さといったものは固定さ
れておらず、また上記リミットスムーザやターゲットス
ムーザによるスムージングバッファの制御以外によって
も、プリアンブルPAの長さは大きく変化することか
ら、該プリアンブルPAの長さの増減が前局と自局とで
同一方向に重複されたか否かといったようなことを判断
すること自体が不可能である。
That is, in the basic mode,
In the first place, the length of the preamble PA is not fixed, and the length of the preamble PA changes significantly even if the smoothing buffer is not controlled by the limit smoother or the target smoother. It is impossible to judge whether or not the increase or decrease of the size is duplicated in the same direction between the previous station and the own station.

【0023】例えば、ある局がプリアンブル長を20シ
ンボルとしてデータ(フレーム)を送信し、その次の局
では、該プリアンブルを1シンボルだけ減らして同デー
タをリピートしたとすると、更に次の局、すなわち元の
データ送信局から2つ目の局へは19シンボルのプリア
ンブルが受信されることになるが、この19シンボルの
プリアンブルを受信した局では、元のデータ送信局が実
際に何シンボルのプリアンブルを送信していたのかを知
ることはできない。
For example, if one station transmits data (frame) with a preamble length of 20 symbols and the next station repeats the data by reducing the preamble by one symbol, the next station, that is, A 19-symbol preamble will be received from the original data transmission station to the second station, but at the station that has received this 19-symbol preamble, the original data transmission station actually transmits the number of symbols of the preamble. I can't tell if I was sending.

【0024】したがって、このようなベーシック・モー
ドにおいて、上記のようなプリアンブル長調整制御を行
ったとしても、スムージングバッファがオーバーフロー
してしまう可能性は依然として残る。
Therefore, in such a basic mode, even if the above-mentioned preamble length adjustment control is performed, the smoothing buffer may still overflow.

【0025】何れにしろ、エラスティックバッファ及び
スムージングバッファといった少なくとも2つのバッフ
ァを必要とすること自体、装置的に見て不経済であり、
またその構成並びに上述したバッファ制御を一層複雑な
ものとしていた。
In any case, requiring at least two buffers such as an elastic buffer and a smoothing buffer is uneconomical in terms of equipment,
Further, the configuration and the above-mentioned buffer control are made more complicated.

【0026】この発明は、こうした実情に鑑みてなされ
たものであり、ベーシック・モードであれハイブリッド
・モードであれ、ただ1つのバッファを通じてプリアン
ブルの長さを好適に制御し、ひいてはネットワーク中を
伝送されるデータを、如何なる場合も良好に保全するこ
とのできる独立同期型シリアルデータ通信装置を提供す
ることを目的とする。
The present invention has been made in view of the above circumstances, and preferably controls the length of the preamble through only one buffer, whether in the basic mode or the hybrid mode, and is transmitted through the network. It is an object of the present invention to provide an independent synchronous serial data communication device capable of satisfactorily preserving data in any case.

【0027】[0027]

【課題を解決するための手段】こうした目的を達成する
ため、この発明では、ネットワークへの各接続局に配設
される独立同期型シリアルデータ通信装置として、 ( a)シリアルデータ伝送のための所定周波数のクロック
を発生する内部クロック源。
In order to achieve such an object, according to the present invention, as an independent synchronous serial data communication device arranged at each connection station to a network, (a) a predetermined serial data transmission device is used. An internal clock source that generates a clock of frequency.

【0028】( b)シリアルデータをFIFO形式にて一
時貯蔵するバッファ手段。
(B) Buffer means for temporarily storing serial data in the FIFO format.

【0029】( c)入力されるシリアルデータからその伝
送クロックを抽出するクロック抽出手段。
(C) Clock extraction means for extracting the transmission clock from the input serial data.

【0030】( d)この抽出されたクロックに基づいて当
該シリアルデータを前記バッファ手段に書き込む書き込
み制御手段。
(D) Write control means for writing the serial data in the buffer means based on the extracted clock.

【0031】( e)前記バッファ手段の都度のデータ貯蔵
量を検出する第1の検出手段。
(E) First detecting means for detecting the amount of data stored in the buffer means each time.

【0032】( f)前記入力されるシリアルデータに含ま
れるプリアンブルの長さを検出する第2の検出手段。
(F) Second detecting means for detecting the length of the preamble included in the input serial data.

【0033】( g)前記伝送されるシリアルデータが、非
同期にて伝送される第1の通信モード(すなわちベーシ
ック・モード)であるか、同期及び非同期にて伝送され
る第2の通信モード(すなわちハイブリッド・モード)
であるか、を検出する第3の検出手段。
(G) The transmitted serial data is in the first communication mode transmitted asynchronously (that is, the basic mode), or the second communication mode transmitted in the synchronous and asynchronous manner (that is, the basic mode). Hybrid mode)
The third detection means for detecting whether or not

【0034】( h)この第3の検出手段による検出結果が
第1の通信モードであるとき、前記第1及び第2の検出
手段による検出出力に基づき、第1の検出手段の検出出
力がその検出範囲の最大値を下回り且つ第2の検出手段
の検出出力が基準値を下回るとき、及び第1の検出手段
の検出出力がその検出範囲の中心所定範囲値を下回ると
きには、前記内部クロック源から発生されるクロックの
位相を遅らせ、第1の検出手段の検出出力がその検出範
囲の中心所定範囲値を上回り且つ第2の検出手段の検出
出力が基準値以上であるときには、前記内部クロック源
から発生されるクロックの位相を進ませ、それ以外のと
きには、前記内部クロック源から発生されるクロックの
位相をシリアルデータ伝送のための標準位相に維持する
制御を行う第1のクロック位相制御手段。
(H) When the detection result of the third detection means is the first communication mode, the detection output of the first detection means is based on the detection outputs of the first and second detection means. When the detection output of the second detection means is below the reference value and below the maximum value of the detection range, and when the detection output of the first detection means is below the center predetermined range value of the detection range, the internal clock source is used. When the phase of the generated clock is delayed, the detection output of the first detection means exceeds the center predetermined range value of the detection range, and the detection output of the second detection means is equal to or greater than the reference value, the internal clock source The first clock for advancing the phase of the generated clock, and for controlling the phase of the clock generated from the internal clock source to the standard phase for serial data transmission otherwise. Lock phase control means.

【0035】( i)同第3の検出手段による検出結果が第
2の通信モードである旨示すとき、前記第1及び第2の
検出手段による検出出力に基づき、第1の検出手段の検
出出力がその検出範囲の中心所定範囲値を下回り且つ第
2の検出手段の検出出力が基準値以下であるときには、
前記内部クロック源から発生されるクロックの位相を遅
らせ、第1の検出手段の検出出力がその検出範囲の中心
所定範囲値を上回り且つ第2の検出手段の検出出力が基
準値以上であるときには、前記内部クロック源から発生
されるクロックの位相を進ませ、それ以外のときには、
前記内部クロック源から発生されるクロックの位相をシ
リアルデータ伝送のための標準位相に維持する制御を行
う第2のクロック位相制御手段。
(I) When the detection result of the third detecting means indicates the second communication mode, the detection output of the first detecting means is based on the detection outputs of the first and second detecting means. Is below the center predetermined range value of the detection range and the detection output of the second detecting means is equal to or less than the reference value,
When the phase of the clock generated from the internal clock source is delayed, the detection output of the first detection means exceeds the center predetermined range value of the detection range, and the detection output of the second detection means is greater than or equal to the reference value, Advances the phase of the clock generated from the internal clock source, otherwise,
Second clock phase control means for controlling the phase of the clock generated from the internal clock source to be a standard phase for serial data transmission.

【0036】( j)これら位相制御されたクロックに基づ
いて、前記バッファ手段に貯蔵されているデータを次局
への出力シリアルデータとして読み出す読み出し制御手
段。
(J) Read control means for reading the data stored in the buffer means as output serial data to the next station based on these phase-controlled clocks.

【0037】をそれぞれ具える構成とする。It is configured to include each.

【0038】[0038]

【作用】このような装置では先ず、上記第3の検出手段
( g)によって、各々当該装置に入力されたシリアルデー
タが第1の通信モード、すなわちベーシック・モードに
よるものか、或いは第2の通信モード、すなわちハイブ
リッド・モードによるものかが検出される。この検出に
は例えば、ハイブリッド・モードの識別子であるサイク
ルヘッダCH(図22参照)の有無を利用することがで
きる。
In such a device, first, the third detecting means is used.
By (g), it is detected whether the serial data input to the device is based on the first communication mode, that is, the basic mode or the second communication mode, that is, the hybrid mode. For this detection, for example, the presence or absence of the cycle header CH (see FIG. 22), which is the hybrid mode identifier, can be used.

【0039】その結果、当該シリアルデータがベーシッ
ク・モードによるものである旨検出された場合には、上
記第1のクロック位相制御手段( h)が起動され、この第
1のクロック位相制御手段を通じて上記第1の検出手段
( e)によるバッファ手段( b)の都度のデータ貯蔵量につ
いての検出出力、及び上記第2の検出手段( f)によるプ
リアンブル長についての検出出力に基づく上記のクロッ
ク位相制御が実行される。すなわちこの場合、上記検出
されるバッファ使用量がバッファ手段( b)自身の容量よ
りも小さく且つ上記検出されるプリアンブル長が規定の
長さより短いと判断されるときには、プリアンブル長補
正を優先させてこれを増す方向に、また上記検出される
バッファ使用量がバッファ手段( b)自身の容量の50%
を下回るときには、バッファ使用率のみを問題として、
これもプリアンブル長を増す方向に、また上記検出され
るバッファ使用量がバッファ手段( b)自身の容量の50
%を上回り且つ上記検出されるプリアンブル長が規定の
長さ以上と判断されるときには、バッファ使用率を優先
させて、プリアンブル長についてはこれを減らす方向
に、それぞれクロック位相制御される。それ以外の、標
準位相に維持する制御においては、プリアンブル長の増
減はない。
As a result, when it is detected that the serial data is based on the basic mode, the first clock phase control means (h) is activated, and the first clock phase control means is operated through the first clock phase control means. First detection means
The clock phase control is executed based on the detection output of the buffer means (b) for each data storage amount by (e) and the detection output of the preamble length by the second detection means (f). That is, in this case, when it is determined that the detected buffer usage is smaller than the capacity of the buffer means (b) itself and the detected preamble length is shorter than the specified length, priority is given to preamble length correction. And the amount of buffer usage detected above is 50% of the capacity of the buffer means (b) itself.
Below, only the buffer utilization is a problem,
This is also in the direction of increasing the preamble length, and the detected buffer usage is 50% of the capacity of the buffer means (b) itself.
%, And when the detected preamble length is determined to be equal to or longer than the specified length, the buffer phase is prioritized, and the preamble length is controlled in the clock phase so as to reduce the preamble length. In other controls that maintain the standard phase, the preamble length does not increase or decrease.

【0040】また、上記第3の検出手段( g)による検出
の結果、当該シリアルデータがハイブリッド・モードに
よるものである旨検出された場合には、上記第2のクロ
ック位相制御手段( i)が起動され、この第2のクロック
位相制御手段を通じて上記第1の検出手段( e)によるバ
ッファ手段( b)の都度のデータ貯蔵量についての検出出
力、及び上記第2の検出手段( f)によるプリアンブル長
についての検出出力に基づく上記のクロック位相制御が
実行される。すなわちこの場合、上記検出されるバッフ
ァ使用量がバッファ手段( b)自身の容量の50%付近を
下回り且つ上記検出されるプリアンブル長が規定の長さ
以下と判断されるときには、プリアンブル長を増す方向
に、また上記検出されるバッファ使用量がバッファ手段
( b)自身の容量の50%付近を上回り且つ上記検出され
るプリアンブル長が規定の長さ以上と判断されるときに
は、プリアンブル長を減らす方向に、それぞれクロック
位相制御される。ただし、上記入力されてくるプリアン
ブルの長さが同じ方向で以前に調整済みであると判断さ
れる場合(これは第2のクロック位相制御手段( i)でい
う「それ以外のとき」に含まれる)には、当該データ
(サイクル)についてのプリアンブル長の調整を控え、
次のデータへ、該次のデータも同様に同じ方向で以前に
プリアンブル長調整済みであると判断される場合には、
更に次のデータへ、と該プリアンブル長の調整を繰り越
すようになる。
When it is detected that the serial data is in the hybrid mode as a result of the detection by the third detecting means (g), the second clock phase controlling means (i) is The second clock phase control means is activated, and the detection output of the data storage amount of each buffer means (b) by the first detection means (e) and the preamble by the second detection means (f) are activated by the second clock phase control means. The above clock phase control based on the detected output for length is performed. That is, in this case, when the detected buffer usage amount is less than about 50% of the capacity of the buffer means (b) itself and the detected preamble length is determined to be the specified length or less, the preamble length is increased. In addition, the detected buffer usage is
(b) When it exceeds about 50% of its own capacity and it is determined that the detected preamble length is equal to or longer than the specified length, the clock phase is controlled to decrease the preamble length. However, when it is determined that the length of the input preamble has been previously adjusted in the same direction (this is included in “other times” in the second clock phase control means (i)). ), Refrain from adjusting the preamble length for the data (cycle),
To the next data, if it is determined that the preamble length adjustment has also been performed on the next data in the same direction,
Further, the adjustment of the preamble length is carried over to the next data.

【0041】こうしてこの装置によれば、ベーシック・
モードであれハイブリッド・モードであれ、ただ1つの
バッファを通じて、如何なる場合も良好に伝送データを
保全することができるようになる。
Thus, according to this device, the basic
A single buffer, in either mode or hybrid mode, makes it possible in any case to have good preservation of the transmitted data.

【0042】なお、第1及び第2のクロック位相制御手
段( h)及び( i)による位相制御において、上記クロック
の位相を進める制御は、プリアンブル長の「減縮」に対
応し、逆に、上記クロックの位相を遅らせる(すなわち
足踏み状態とする)制御は、プリアンブル長の「増加」
に対応する。
In the phase control by the first and second clock phase control means (h) and (i), the control for advancing the phase of the clock corresponds to "reduction" of the preamble length, and conversely, the above The control to delay the phase of the clock (that is, put it in the stepping state) is to "increase" the preamble length.
Corresponding to.

【0043】また、上記の構成に加えて、 ( k)前記伝送されるシリアルデータが予め定義された規
定のデータか否かを判断し、その判断結果が否定判断で
あるとき、少なくとも前記書き込み制御手段及び前記読
み出し制御手段を非能動とするデータ判断手段。
In addition to the above configuration, (k) it is determined whether or not the transmitted serial data is predetermined data, and when the result of the determination is negative, at least the write control is performed. Means for deactivating the reading means and the reading control means.

【0044】を更に具えるようにすれば、その時々の受
信データの有無に係わらず、バッファ使用量の最適化を
容易に実現することができるようにもなる。
By further comprising, it becomes possible to easily realize optimization of the buffer usage regardless of the presence or absence of received data at each occasion.

【0045】因みに、上記「予め定義された規定のデー
タ」とは、転送所望とされる同期データや非同期データ
をはじめ、プリアンブル(PA)、スタートコード(J
K)、等々がこれに相当する。
Incidentally, the "predefined data defined in advance" includes synchronous data and asynchronous data desired to be transferred, a preamble (PA), a start code (J).
K), etc. correspond to this.

【0046】また、少なくともベーシック・モードに関
しては、上記( a)の内部クロック源、( b)のバッファ手
段、( c)のクロック抽出手段、( d)の書き込み制御手
段、(e)の第1の検出手段、( f)の第2の検出手段、(
h)のクロック位相制御手段、及び( j)の読み出し制御手
段、のみを要素とする構成によっても、ただ1つのバッ
ファを通じて、その伝送されるシリアルデータの保全を
行う装置を実現することはできる。
Regarding at least the basic mode, the internal clock source of (a), the buffer means of (b), the clock extracting means of (c), the write control means of (d), and the first of (e) are used. Detection means, (f) second detection means, (
Even with the configuration including only the clock phase control means of (h) and the read control means of (j), it is possible to realize an apparatus for maintaining the serial data transmitted through only one buffer.

【0047】[0047]

【実施例】図1に、この発明にかかる独立同期型シリア
ルデータ通信装置の一実施例を示す。
1 shows an embodiment of an independent synchronous serial data communication device according to the present invention.

【0048】この通信装置も、先の図25に示した装置
と同様、通信ネットワークに接続された各局(図23参
照)のそれぞれに配設されている。
Similar to the device shown in FIG. 25, this communication device is also provided in each station (see FIG. 23) connected to the communication network.

【0049】はじめに、この装置の構成、並びに各部の
機能について説明する。
First, the structure of this apparatus and the function of each section will be described.

【0050】この図1に示す装置において、内部クロッ
ク源21は、当該局の動作周波数を決定するクロック信
号を発生する部分である。このクロック周波数が、基本
的には各局とも全て同じ周波数に設定されるものの、実
際には、該クロック源21を構成する部品のばらつき等
によってその精度にばらつきを生じ、各局の間では、僅
かながら周波数差が生じてしまうことは前述した通りで
ある。なおこうした周波数の偏差は、現状では、最大で
も±50ppm 程度までに抑えることができるようになっ
てきている。
In the device shown in FIG. 1, the internal clock source 21 is a portion for generating a clock signal for determining the operating frequency of the station. This clock frequency is basically set to the same frequency for all stations, but in reality, the accuracy varies due to variations in the components that make up the clock source 21, and between stations it is slightly different. The frequency difference is generated as described above. At present, such frequency deviation can be suppressed to a maximum of about ± 50 ppm.

【0051】また、バッファレジスタ22は、従来の装
置(図25)でいえばエラスティックバッファ12に相
当するものの、同装置でいうスムージングバッファ13
としての機能も兼ね備えたものであって、これらバッフ
ァ12及び13同様、当局に入力されるシリアルデータ
をFIFO形式にて一時的に貯蔵する部分である。図2
に、このバッファレジスタ22の一例を示す。
Further, although the buffer register 22 corresponds to the elastic buffer 12 in the conventional device (FIG. 25), the smoothing buffer 13 in the same device is used.
Like the buffers 12 and 13, the serial data input to the authority is temporarily stored in a FIFO format. Figure 2
An example of the buffer register 22 is shown in FIG.

【0052】因みにこの図2において、該バッファレジ
スタ22は、シンボル(5ビット)単位でデータが読み
書きされるA,B及びCの3個のレジスタを有して構成
されている。これらのレジスタは各々、以下に説明する
書き込みクロック分配部24から与えられる書き込みク
ロックWC(WCA,WCB,WCC)の各該当するク
ロックに基づいて入力データの貯蔵を行い、読み出しク
ロック分配部25から与えられる読み出しクロックRC
(RCA,RCB,RCC)の各該当するクロックに基
づいてこれら貯蔵データの出力を行う。
Incidentally, in FIG. 2, the buffer register 22 is configured to have three registers A, B, and C for reading / writing data in units of symbols (5 bits). Each of these registers stores input data based on each corresponding clock of a write clock WC (WCA, WCB, WCC) provided from a write clock distribution unit 24 described below, and provides it from a read clock distribution unit 25. Read clock RC
These stored data are output based on the corresponding clocks (RCA, RCB, RCC).

【0053】またこの装置(図1)において、クロック
抽出部23は、周知のPLL(フェーズ・ロックド・ル
ープ)等によって、当局に入力されるシリアルデータか
らその伝送クロックを抽出再生する部分であり、書き込
みクロック分配部24は、該抽出されるクロックに基づ
いて書き込みクロックWCを生成し、これによって当該
シリアルデータを上記バッファレジスタ22に書き込む
部分である。図3に、図2に示したバッファレジスタ構
成に対応する書き込みクロック分配部24の一例を示
す。
Further, in this apparatus (FIG. 1), the clock extraction section 23 is a section for extracting and reproducing the transmission clock from serial data input to the authority by a well-known PLL (phase locked loop) or the like, The write clock distribution unit 24 is a unit that generates a write clock WC based on the extracted clock and writes the serial data in the buffer register 22. FIG. 3 shows an example of the write clock distribution unit 24 corresponding to the buffer register configuration shown in FIG.

【0054】この図3に示す書き込みクロック分配部2
4によって、上記抽出、再生された伝送クロックは、W
CA->WCB->WCC->WCA…の順で、順次振り分け
られるようになる。なおこの図3において、DFFはD
型フリップフロップを示している。
The write clock distributor 2 shown in FIG.
4, the transmission clock extracted and reproduced is W
It becomes possible to sequentially sort in the order of CA->WCB->WCC-> WCA .... In FIG. 3, DFF is D
Shows a type flip-flop.

【0055】また同装置(図1)において、読み出しク
ロック分配部25は、上記内部クロック源21から発生
されるクロックに基づいて読み出しクロックRCを生成
し、これによって上記バッファレジスタ22に貯蔵され
ているデータを次局への出力シリアルデータとして読み
出す部分である。ただし、この読み出しクロックRCの
生成に際しては、後述するクロック位相制御部28から
の制御信号(S0,S1)が参照され、その制御内容に
応じたかたちで位相が制御されたクロックを該読み出し
クロックRCとして生成する。図4に、これも図2に示
したバッファレジスタ構成に対応する読み出しクロック
分配部25の一例を示す。
In the same device (FIG. 1), the read clock distributor 25 generates the read clock RC based on the clock generated from the internal clock source 21, and the read clock RC is stored in the buffer register 22. This is a part for reading data as output serial data to the next station. However, when generating the read clock RC, a control signal (S0, S1) from a clock phase control unit 28, which will be described later, is referred to, and the clock whose phase is controlled according to the control content is read clock RC. Generate as. FIG. 4 shows an example of the read clock distribution unit 25 corresponding to the buffer register configuration also shown in FIG.

【0056】すなわちこの読み出しクロック分配部25
は、クロック位相制御部28から与えられる上記制御信
号S0,S1の内容に基づき、図5に一覧される態様に
て、読み出しクロックRC(RCA,RCB,RCC)
を分配生成するものであり、例えば、制御信号S0=L
(論理Lowレベル)、S1=H(論理Highレベ
ル)のもとに「通常のシフト」動作が指令されるときに
は、各読み出しクロックを「RCA->RCC、RCB->
RCA、RCC->RCB」といった態様にて出力するも
のとするときに、制御信号S0=H、S1=Hのもとに
「読みとばし」動作が指令された場合には、この読み出
しクロックを「RCA->RCB、RCB->RCC、RC
C->RCA」といった態様にて、逆方向にシフトして出
力し、また制御信号S0=L、S1=Lのもとに「2度
読み」動作が指令される場合には、「RCA->RCA、
RCB->RCB、RCC->RCC」といった態様にて、
この読み出しクロックを足踏み状態とする。図6に、先
の書き込みクロック分配部24の動作、及びそれに基づ
くバッファレジスタ22のバッファリング内容も含め
て、該読み出しクロック分配部25のこうした動作を総
括して示す。
That is, this read clock distributor 25
Are read clocks RC (RCA, RCB, RCC) in the modes listed in FIG. 5 based on the contents of the control signals S0, S1 given from the clock phase controller 28.
Are distributed and generated. For example, the control signal S0 = L
When the "normal shift" operation is instructed based on (logic low level) and S1 = H (logic high level), each read clock is changed to "RCA-> RCC, RCB->".
In the case of outputting in the form of RCA, RCC-> RCB ", when the" read skip "operation is instructed under the control signals S0 = H, S1 = H, this read clock is RCA-> RCB, RCB-> RCC, RC
In the mode such as "C->RCA", the data is output after being shifted in the opposite direction, and when the "double reading" operation is instructed under the control signals S0 = L and S1 = L, "RCA- > RCA,
RCB-> RCB, RCC-> RCC ",
This read clock is set in the stepping state. FIG. 6 generally shows the operation of the write clock distribution unit 24 and the operation of the read clock distribution unit 25 including the buffering contents of the buffer register 22 based on the operation.

【0057】例えばいま、上記書き込みクロック分配部
24を通じて、同図6(a)に示される態様で、バッフ
ァレジスタ22への入力データの書き込みが行われたと
すると、その通常の読み出し動作においては、この読み
出しクロック分配部25による上述した通常のシフト動
作(図5参照)を通じて、図6(b)に示される態様
で、書き込まれた内容がそのままのかたちでバッファレ
ジスタ22から出力されることとなるが、クロック位相
制御部28を通じて、データシンボルの読みとばしが指
令された場合、或いはデータシンボルの2度読みが指令
された場合には、同読み出しクロック分配部25による
それぞれ上述した逆シフト、或いは足踏み動作(図5参
照)を通じて、同図6(c)に示されるように、バッフ
ァリングされたデータシンボルの読みとばし(位相を進
める)、或いは2度読み(位相を遅らせる)が行われ
る。すなわち、書き込みクロック分配部24、バッファ
レジスタ22、及び読み出しクロック分配部25のこれ
ら一連の動作を通じて、データシンボル長を調整するこ
とが可能となる。因みに、この実施例において対象とな
るのは前記プリアンブルPAの長さであり、上記データ
シンボルの読みとばしはプリアンブル長を減らすことに
相当し、また上記データシンボルの2度読みは同プリア
ンブル長を増やすことに相当する。
For example, suppose that the input data is written to the buffer register 22 through the write clock distribution unit 24 in the mode shown in FIG. 6 (a). Through the above-described normal shift operation (see FIG. 5) by the read clock distribution unit 25, the written content is output from the buffer register 22 in the form shown in FIG. 6B as it is. When the reading skip of the data symbol is instructed through the clock phase control section 28 or the double reading of the data symbol is instructed, the above-described reverse shift or stepping operation by the read clock distribution section 25 is performed. As shown in FIG. 6 (c), the buffered data is transmitted through (see FIG. 5). Skip symbol (to advance the phase), or 2 rereading each record (delaying the phase) is performed. That is, the data symbol length can be adjusted through the series of operations of the write clock distribution unit 24, the buffer register 22, and the read clock distribution unit 25. Incidentally, the target of this embodiment is the length of the preamble PA, the skip of reading the data symbols corresponds to the reduction of the preamble length, and the double reading of the data symbols increases the preamble length. Equivalent to that.

【0058】またこの実施例の装置(図1)において、
バッファ使用量検出部26は、上記バッファレジスタ2
2に書き込まれたデータの量、すなわち同バッファレジ
スタ22の都度のバッファ使用量Bを検出する部分であ
る。こうしたバッファ使用量Bの検出は例えば、バッフ
ァレジスタ22に対する上記の書き込みクロックWCと
読み出しクロックRCとの位相差を検出し、入力シリア
ルデータから前記スタートコードJKが検出されたとき
に、それをエンコードすることで実現される。図7に、
このバッファ使用量検出部26の一例を示す。
Further, in the apparatus of this embodiment (FIG. 1),
The buffer usage amount detector 26 uses the buffer register 2
2 is a portion for detecting the amount of data written in 2, that is, the buffer usage amount B of the same buffer register 22 each time. The buffer usage amount B is detected, for example, by detecting the phase difference between the write clock WC and the read clock RC for the buffer register 22 and encoding the start code JK when it is detected from the input serial data. It will be realized. In Figure 7,
An example of the buffer usage amount detector 26 is shown.

【0059】因みにこの図7において、RCA,RC
B,RCCはそれぞれ、上記読み出しクロック分配部2
5から出力されるバッファレジスタ22の読み出しクロ
ックであり、信号JKDTは、以下に説明するプリアン
ブル長検出部27による上記スタートコードJKの検出
信号である。
Incidentally, in FIG. 7, RCA, RC
B and RCC are the read clock distributor 2 respectively.
5 is a read clock of the buffer register 22 output from the signal No. 5, and a signal JKDT is a detection signal of the start code JK by the preamble length detection unit 27 described below.

【0060】また同装置(図1)において、プリアンブ
ル長検出部27は、当局に入力されるシリアルデータか
ら、同データに含まれるプリアンブルPAの長さを検出
する部分である。こうしたプリアンブル長の検出は例え
ば、同シリアルデータにおけるプリアンブルPAの開始
点を先ず検出し、その構成シンボル数(ビット数)をカ
ウンタでカウントしていくことで実現される。図8に、
こうしたプリアンブル長検出部27の一例を示す。
In the same apparatus (FIG. 1), the preamble length detection unit 27 is a part for detecting the length of the preamble PA included in the data from the serial data input to the authority. The detection of the preamble length is realized, for example, by first detecting the start point of the preamble PA in the same serial data and counting the number of constituent symbols (the number of bits) with a counter. In FIG.
An example of such a preamble length detection unit 27 is shown.

【0061】すなわち図8において、信号MODEは、
後述するモード制御部29から与えられる通信モード指
示信号であり、同図に付記されるように、当該通信モー
ドが前記ベーシック・モードである場合には、この信号
MODEの論理レベルは「L(Low)レベル」とな
り、前記ハイブリッド・モードである場合には、同信号
MODEの論理レベルは「H(High)レベル」とな
る。このため、ベーシック・モードにおいては、プリア
ンブル検出回路271によって検出される入力データの
プリアンブル(アイドル)がそのままカウンタ272に
よってカウントされるが、ハイブリッド・モードにおい
ては、入力データ(サイクル)中に含まれるプリアンブ
ル(アイドル)については、そのカウンタ272による
カウントがマスクされるようになる。サイクル長カウン
タ273とは、入力データのスタートコードJKが検出
されて以降、ハイブリッド・モード・データのサイクル
長に相当する3120シンボル(図22参照)のカウン
ト期間、その出力を論理レベルでLレベルに保持する回
路である。また、入力データの上記スタートコードJK
は、それ専用の検出回路であるJK検出回路274を通
じて検出され、その検出信号JKDTがカウンタ272
及びサイクル長カウンタ273に与えられるとともに、
その外部回路である上記バッファ使用量検出部26に与
えられる。なお、スタートコード検出信号JKDTは、
カウンタ272に対してはディスエーブル(非能動)信
号として作用する。
That is, in FIG. 8, the signal MODE is
This is a communication mode instruction signal given from a mode control unit 29 which will be described later, and as shown in the figure, when the communication mode is the basic mode, the logic level of this signal MODE is "L (Low ) Level ”, and in the hybrid mode, the logic level of the signal MODE becomes“ H (High) level ”. Therefore, in the basic mode, the preamble (idle) of the input data detected by the preamble detection circuit 271 is directly counted by the counter 272, but in the hybrid mode, the preamble included in the input data (cycle) is included. For (idle), the count by the counter 272 is masked. The cycle length counter 273 is a logical level of its output during the counting period of 3120 symbols (see FIG. 22) corresponding to the cycle length of the hybrid mode data after the start code JK of the input data is detected. It is a circuit to hold. In addition, the above start code JK of the input data
Is detected by a JK detection circuit 274 which is a dedicated detection circuit, and the detection signal JKDT is detected by the counter 272.
And given to the cycle length counter 273,
It is given to the buffer usage amount detecting unit 26 which is an external circuit thereof. The start code detection signal JKDT is
It acts as a disable (inactive) signal to the counter 272.

【0062】また同装置(図1)において、クロック位
相制御部28は、上記バッファ使用量検出部26及びプ
リアンブル長検出部27による検出出力に基づき、所定
のプリアンブル長調整アルゴリズムに従って、上記内部
クロック源21から発生されるクロックの位相を進ませ
る、或いは遅らせる、また或いは維持する制御を実行す
る部分である。この制御信号S0及びS1が上記読み出
しクロック分配部25に与えられ、読み出しクロック分
配部25を通じて、この制御信号S0,S1の制御内容
に応じた読み出しクロックRCが生成されるようになる
ことは上述した通りである。
Further, in the same apparatus (FIG. 1), the clock phase control unit 28 is responsive to a predetermined preamble length adjustment algorithm on the basis of the detection outputs from the buffer usage amount detection unit 26 and the preamble length detection unit 27 to generate the internal clock source. 21 is a part for executing control for advancing, delaying, or maintaining the phase of the clock generated from 21. As described above, the control signals S0 and S1 are given to the read clock distribution unit 25, and the read clock RC is generated through the read clock distribution unit 25 according to the control content of the control signals S0 and S1. On the street.

【0063】そして、モード判定部29は、上記入力さ
れたシリアルデータがベーシック・モードによるもの
か、或いはハイブリッド・モードによるものかを検出判
定する部分である。こうした通信モードの検出には例え
ば、先に図22に示したハイブリッド・モード専用の識
別子である前記サイクルヘッダCHが当該シリアルデー
タに含まれているか否かを利用することができる。該モ
ード判定部29では、こうして入力データからその通信
モードを検出判定すると、当該通信モードが、これらベ
ーシック・モード及びハイブリッド・モードの何れであ
るかを示す信号MODEを、上記プリアンブル長検出部
27及びクロック位相制御部28のそれぞれに対して出
力する。因みにこの例では、該信号MODEは、先の図
8に付記したように、当該通信モードがベーシック・モ
ードである場合には論理レベルで「Lレベル」となり、
ハイブリッド・モードである場合には同論理レベルで
「Hレベル」になるとする。
The mode determination unit 29 is a unit for detecting and determining whether the input serial data is in the basic mode or the hybrid mode. To detect such a communication mode, for example, it is possible to use whether or not the cycle header CH, which is the identifier for the hybrid mode shown in FIG. 22, is included in the serial data. When the mode determining unit 29 detects and determines the communication mode from the input data in this way, it outputs a signal MODE indicating whether the communication mode is the basic mode or the hybrid mode to the preamble length detecting unit 27 and the preamble length detecting unit 27. It outputs to each of the clock phase control units 28. Incidentally, in this example, the signal MODE becomes “L level” at the logical level when the communication mode is the basic mode, as described in FIG. 8 above.
In the hybrid mode, the logic level is "H level".

【0064】次に、モード判定部29によるこうした通
信モードの検出判定をもとに、上記クロック位相制御部
28において実行されるプリアンブル長調整制御につい
て、図9〜図11を併せ参照しつつ、その制御アルゴリ
ズムを詳述する。
Next, the preamble length adjustment control executed in the clock phase control unit 28 based on the detection determination of the communication mode by the mode determination unit 29 will be described with reference to FIGS. The control algorithm will be described in detail.

【0065】まず、この実施例では、 ( A)バッファレジスタ22は、先の図2に例示した如
く、入力されるシリアルデータを各々1シンボル(5ビ
ット)単位で読み書きするA〜Cの3つのレジスタを具
えて構成される。
First, in this embodiment, the (A) buffer register 22 has three buffers A to C for reading and writing the input serial data in units of 1 symbol (5 bits), as illustrated in FIG. Composed of a register.

【0066】( B)ベーシック・モードにおいては、その
基準のプリアンブルPAの長さ(以下では便宜上、この
長さをも含めてPAと記す)を12シンボルに設定す
る。
(B) In the basic mode, the length of the reference preamble PA (hereinafter referred to as PA including this length for convenience) is set to 12 symbols.

【0067】( C)ハイブリッド・モードにおいては、そ
のプリアンブル長PAの基準値は前述の如く5シンボル
であり、このプリアンブル長PAを 4≦PA≦6 の範囲に調整する。
(C) In the hybrid mode, the reference value of the preamble length PA is 5 symbols as described above, and the preamble length PA is adjusted within the range of 4≤PA≤6.

【0068】ことを前提とする。なおこの場合、バッフ
ァの「0」はバッファ中心であり、その「+」方向を出
力位相遅れと考える。
It is assumed that In this case, "0" of the buffer is the center of the buffer, and its "+" direction is considered as the output phase delay.

【0069】さて、こうした前提において、バッファレ
ジスタ22に入力されるプリアンブルの長さ、すなわち
上記プリアンブル長検出部27によって検出されるプリ
アンブル長をPAi、このプリアンブル長PAiに対し
てこの装置が調整するプリアンブル長、すなわちバッフ
ァレジスタ22から実際に出力されるプリアンブルの長
さをPA、また該バッファレジスタ22の都度のバッフ
ァ使用量、すなわち上記バッファ使用量検出部26によ
って検出されるバッファ使用量をB、そして該バッファ
レジスタ22自体の容量をCとするとき、上記クロック
位相制御部28では、これら得られる各値をもとに、図
9に示される態様をもって上記読み出しクロック分配部
25にて生成される読み出しクロックRCの位相を制御
し、ひいてはプリアンブル長PAを調整する。
Under the above assumption, the length of the preamble input to the buffer register 22, that is, the preamble length detected by the preamble length detecting unit 27 is PAi, and the preamble adjusted by this device with respect to this preamble length PAi. PA is the length, that is, the length of the preamble actually output from the buffer register 22, and B is the buffer usage amount of each buffer register 22, that is, the buffer usage amount detected by the buffer usage amount detection unit 26. When the capacity of the buffer register 22 itself is C, the clock phase controller 28 reads the values generated by the read clock distributor 25 in the manner shown in FIG. 9 based on the obtained values. It controls the phase of the clock RC, and To adjust the tumble length PA.

【0070】すなわちいま、当局に対してシリアルデー
タが入力され、モード判定部29によるモード検出、判
定の結果、その通信モードがベーシック・モードである
旨、判定されたとすると(図9ステップST1)、その
旨示す信号MODE(=論理Lレベル)に従い、クロッ
ク位相制御部28では、以下に列記する態様にて、その
予めプログラムされたクロック位相制御を実行する。
That is, suppose now that the serial data is input to the authority, and it is determined that the communication mode is the basic mode as a result of the mode detection and determination by the mode determination unit 29 (FIG. 9, step ST1). In accordance with the signal MODE (= logical L level) indicating that, the clock phase control unit 28 executes the preprogrammed clock phase control in the modes listed below.

【0071】( 1)先ず、バッファ使用量検出部26によ
って検出されるバッファ使用量Bを見て、これが「B<
0」であれば(図9ステップST10)、プリアンブル
長検出部27によって検出されるプリアンブル長PAi
についてはこれを見ることなく、制御信号S0及びS1
を共に「Lレベル」として、プリアンブル長を1つ増す
制御を行う(図9ステップST11)。すなわち、「P
A=PAi+1」とする。これは上述したデータの2度
読みに相当する(図5参照)。
(1) First, looking at the buffer usage amount B detected by the buffer usage amount detection unit 26, this is "B <
0 ”(step ST10 in FIG. 9), the preamble length PAi detected by the preamble length detection unit 27
For the control signals S0 and S1
Are both set to "L level", and control is performed to increase the preamble length by one (step ST11 in FIG. 9). That is, "P
A = PAi + 1 ”. This corresponds to the double reading of the data described above (see FIG. 5).

【0072】( 2)同バッファ使用量Bが、「B<0」で
はなく「B=0」であれば(図9ステップST12)、
上記プリアンブル長検出部27によって検出されるプリ
アンブル長PAiを参照して、これが「PAi<12」
を満たしていないことを条件に(図9ステップST1
3)、制御信号S0を「Lレベル」に、また制御信号S
1を「Hレベル」にして、プリアンブル長を維持する制
御を行う(図9ステップST14)。すなわち、「PA
=PAi」とする。これは上述した通常のシフト動作に
相当する(図5参照)。
(2) If the buffer usage amount B is "B = 0" instead of "B <0" (step ST12 in FIG. 9),
With reference to the preamble length PAi detected by the preamble length detection unit 27, this is “PAi <12”.
If the condition is not satisfied (step ST1 in FIG. 9).
3), control signal S0 to "L level", and control signal S
1 is set to "H level", and control for maintaining the preamble length is performed (step ST14 in FIG. 9). That is, "PA
= PAi ". This corresponds to the normal shift operation described above (see FIG. 5).

【0073】( 3)また、このバッファ使用量Bが「B=
0」であるときに、上記検出されるプリアンブル長PA
iが「PAi<12」といった条件を満たしていた場合
には、上記( 1)同様、制御信号S0及びS1を共に「L
レベル」として、プリアンブル長を1つ増す制御を行う
(図9ステップST11)。
(3) Also, the buffer usage B is "B =
When it is "0", the detected preamble length PA
If i satisfies the condition "PAi <12", both control signals S0 and S1 are set to "L" as in the above (1).
As the "level", control is performed to increase the preamble length by one (step ST11 in FIG. 9).

【0074】( 4)バッファ使用量Bが「B<0」でも
「B=0」でもなければ、プリアンブル長PAiが「P
Ai≧12」であることを条件に(図9ステップS1
5)、制御信号S0及びS1を共に「Hレベル」とし
て、プリアンブル長を1つ減らす制御を行う(図9ステ
ップST16)。すなわち、「PA=PAi−1」とす
る。これは上述したデータの読みとばしに相当する(図
5参照)。
(4) If the buffer usage B is neither "B <0" nor "B = 0", the preamble length PAi is "P".
On condition that Ai ≧ 12 ”(step S1 in FIG. 9).
5) Then, the control signals S0 and S1 are both set to "H level", and control is performed to reduce the preamble length by one (step ST16 in FIG. 9). That is, "PA = PAi-1". This corresponds to the skip of reading the data described above (see FIG. 5).

【0075】( 5)バッファ使用量Bが「B<0」でも
「B=0」でもないときに、このプリアンブル長PAi
が「PAi≧12」である条件を満たし得なかったとき
には、上記( 2)同様、制御信号S0を「Lレベル」に、
また制御信号S1を「Hレベル」にして、プリアンブル
長を維持する制御を行う(図9ステップST14)。
(5) When the buffer usage B is neither "B <0" nor "B = 0", this preamble length PAi
If the condition that “PAi ≧ 12” cannot be satisfied, the control signal S0 is set to “L level” as in (2) above.
Further, the control signal S1 is set to "H level" to perform control for maintaining the preamble length (step ST14 in FIG. 9).

【0076】クロック位相制御部28によるこうした態
様でのプリアンブル長調整内容を、図10にテーブルと
して一覧する。
The contents of the preamble length adjustment in this manner by the clock phase controller 28 are listed as a table in FIG.

【0077】なお、特にこのベーシック・モードにおい
ては、上記バッファ使用量Bについての「B<0」とい
った条件、或いは「B>0」といった条件は何れも、バ
ッファレジスタ22自身の容量Cを超えない範囲で設定
される。したがって、クロック位相制御部28による該
ベーシック・モードでのプリアンブル長調整アルゴリズ
ムを総括すると、 ( a)PAi<12であって、且つB<C(+C)のとき PA=PAi+1 として調整する。 ( b)B<0のときも PA=PAi+1 として調整する。 ( c)PAi≧12であって、且つB>0のとき PA=PAi−1 として調整する。 ( d)これら( a)〜( c)以外のときには PA=PAi とする。といった態様となる。
In this basic mode, in particular, the condition "B <0" or the condition "B>0" for the buffer usage B does not exceed the capacity C of the buffer register 22 itself. It is set in the range. Therefore, the preamble length adjustment algorithm in the basic mode by the clock phase controller 28 is summarized as follows: (a) When PAi <12 and B <C (+ C), PA = PAi + 1 is adjusted. (b) When B <0, adjust PA = PAi + 1. (c) When PAi ≧ 12 and B> 0, PA = PAi−1 is adjusted. (d) In cases other than these (a) to (c), PA = PAi. It becomes a mode like this.

【0078】他方、当局に対してシリアルデータが入力
され、モード判定部29によるモード検出、判定の結
果、その通信モードがハイブリッド・モードである旨、
判定されたとすると(図9ステップST1)、その旨示
す信号MODE(=論理Hレベル)に従い、クロック位
相制御部28では、以下に列記する態様にて、その予め
プログラムされたクロック位相制御を実行する。
On the other hand, when the serial data is input to the authority and the result of the mode detection and judgment by the mode judgment unit 29 is that the communication mode is the hybrid mode,
If the determination is made (step ST1 in FIG. 9), the clock phase control unit 28 executes the preprogrammed clock phase control in the modes listed below in accordance with the signal MODE (= logical H level) indicating that fact. ..

【0079】( 1)先ず、バッファ使用量検出部26によ
って検出されるバッファ使用量Bを見て、これが「B=
0」であれば(図9ステップST20)、プリアンブル
長検出部27によって検出されるプリアンブル長PAi
についてはこれを見ることなく、制御信号S0を「Lレ
ベル」に、また制御信号S1を「Hレベル」にして、プ
リアンブル長を維持する制御を行う(図9ステップST
21)。すなわち、「PA=PAi」とする。これは通
常のシフト動作に相当する(図5参照)。
(1) First, looking at the buffer usage amount B detected by the buffer usage amount detection unit 26, this is "B =
0 ”(step ST20 in FIG. 9), the preamble length PAi detected by the preamble length detection unit 27 is detected.
In regard to the above, without looking at this, the control signal S0 is set to "L level" and the control signal S1 is set to "H level" to perform control for maintaining the preamble length (step ST in FIG.
21). That is, “PA = PAi”. This corresponds to a normal shift operation (see FIG. 5).

【0080】( 2)同バッファ使用量Bが、「B=0」で
はなく「B<0」であれば(図9ステップST22)、
上記プリアンブル長検出部27によって検出されるプリ
アンブル長PAiを参照して、これが「PAi≧6」を
満たしていないことを条件に(図9ステップST2
3)、制御信号S0及びS1を共に「Lレベル」とし
て、プリアンブル長を1つ増す制御を行う(図9ステッ
プST24)。すなわち、「PA=PAi+1」とす
る。これはデータの2度読みに相当する(図5参照)。
(2) If the buffer usage B is "B <0" instead of "B = 0" (step ST22 in FIG. 9),
With reference to the preamble length PAi detected by the preamble length detection unit 27, the preamble length PAi does not satisfy “PAi ≧ 6” (step ST2 in FIG. 9).
3) Then, the control signals S0 and S1 are both set to "L level" to perform control to increase the preamble length by one (step ST24 in FIG. 9). That is, “PA = PAi + 1”. This corresponds to reading the data twice (see FIG. 5).

【0081】( 3)また、このバッファ使用量Bが「B<
0」であるときに、上記検出されるプリアンブル長PA
iが「PAi≧6」といった条件を満たしていた場合に
は、上記( 1)同様、制御信号S0を「Lレベル」に、ま
た制御信号S1を「Hレベル」にして、プリアンブル長
を維持する制御を行う(図9ステップST21)。
(3) Also, the buffer usage B is "B <
When it is "0", the detected preamble length PA
When i satisfies the condition of “PAi ≧ 6”, the preamble length is maintained by setting the control signal S0 to “L level” and the control signal S1 to “H level” as in the above (1). Control is performed (step ST21 in FIG. 9).

【0082】( 4)バッファ使用量Bが「B=0」でも
「B<0」でもなければ、プリアンブル長PAiが「P
Ai≦4」ではないことを条件に(図9ステップS2
5)、制御信号S0及びS1を共に「Hレベル」とし
て、プリアンブル長を1つ減らす制御を行う(図9ステ
ップST26)。すなわち、「PA=PAi−1」とす
る。これはデータの読みとばしに相当する(図5参
照)。
(4) If the buffer usage B is neither "B = 0" nor "B <0", the preamble length PAi is "P".
On condition that Ai ≦ 4 ”is not satisfied (step S2 in FIG. 9).
5) Then, the control signals S0 and S1 are both set to "H level", and control is performed to reduce the preamble length by one (step ST26 in FIG. 9). That is, "PA = PAi-1". This corresponds to skipping the reading of data (see FIG. 5).

【0083】( 5)バッファ使用量Bが「B=0」でも
「B<0」でもないときに、このプリアンブル長PAi
が「PAi≦4」である条件が満たされた場合には、こ
れも上記( 1)同様、制御信号S0を「Lレベル」に、ま
た制御信号S1を「Hレベル」にして、プリアンブル長
を維持する制御を行う(図9ステップST21)。
(5) When the buffer usage B is neither "B = 0" nor "B <0", this preamble length PAi
When the condition that “PAi ≦ 4” is satisfied, the preamble length is also set by setting the control signal S0 to “L level” and the control signal S1 to “H level” as in (1) above. Control to maintain is performed (step ST21 in FIG. 9).

【0084】図11に、クロック位相制御部28による
こうした態様でのプリアンブル長調整内容をテーブルと
して一覧する。
FIG. 11 is a table showing the contents of the preamble length adjustment by the clock phase controller 28 in this manner.

【0085】そして、クロック位相制御部28による該
ハイブリッド・モードでのプリアンブル長調整アルゴリ
ズムを総括すると、 ( a)−1≦B≦+1のときには PA=PAi とする。 ( b)B<−1のとき、PAi≦5ならば PA=PAi+1 とし、またPAi=6ならば PA=PAi(調整せずに次サイクルに繰り越す) とする。
The preamble length adjustment algorithm in the hybrid mode by the clock phase controller 28 is summarized as follows: (a) PA = PAi when -1≤B≤ + 1. (b) When B <−1, if PAi ≦ 5, PA = PAi + 1, and if PAi = 6, PA = PAi (carry forward to the next cycle without adjustment).

【0086】( c)B>+1のとき、PAi≧5ならば PA=PAi−1 とし、またPAi=4ならば PA=PAi(調整せずに次サイクルに繰り越す) とする。(C) When B> +1, if PAi ≧ 5, PA = PAi−1. If PAi = 4, PA = PAi (carry forward to the next cycle without adjustment).

【0087】といった態様となる。The above-mentioned mode is adopted.

【0088】図12は、こうした実施例の装置が配設さ
れた連続する3つの局を想定して、これら各局における
特に上記ハイブリッド・モードでの動作をもとに調整さ
れるプリアンブル長PAの推移を、その都度のバッファ
量Bに対応させて示したものである。
FIG. 12 shows the transition of the preamble length PA adjusted based on the operation in each of these stations, particularly in the hybrid mode, assuming three consecutive stations in which the apparatus of such an embodiment is arranged. Corresponding to the buffer amount B at each time.

【0089】この図12に示されるように、第1局で上
記のアルゴリズムに基づき調整されたプリアンブル長P
A(図12(a)参照)は、その各サイクル(フレー
ム)毎に、第2局への入力プリアンブル長PAiとして
引き継がれ、この第2局で更に、上記のアルゴリズムに
基づく調整を受けることとなるが、同図12(b)に
「*2」印(図11における「*2」印に対応)を付して示
すように、バッファ量Bが上限閾値を越えて、従来であ
れば、「4シンボル」→「3シンボル」に調整すべきと
ころを、この実施例では、「それ以前、同じく減縮され
る方向に調整されている」旨の認知のもとに、当該デー
タ(サイクル)のプリアンブル長に対する更なる減縮調
整を控えるようになる。そして、バッファ量Bが上限閾
値を越えていて且つ、入力プリアンブル長PAiがそれ
以前、減縮される方向に調整されていない条件が満足さ
れる次のデータ(サイクル)に、このプリアンブル長減
縮調整が繰り越されるようになる。このため、プリアン
ブル長が必要以上に短く(例えば3シンボル以下に)、
或いは長く(例えば7シンボル以上に)調整される可能
性は極めて低くなる。勿論、このプリアンブル長が必要
以上に短く調整されることさえなければ、前述したデー
タ破壊等の起こる気遣いもない。
As shown in FIG. 12, the preamble length P adjusted by the first station based on the above algorithm.
A (see FIG. 12 (a)) is taken over as the input preamble length PAi to the second station for each cycle (frame), and this second station is further subjected to adjustment based on the above algorithm. However, as shown by adding "* 2" mark (corresponding to "* 2" mark in FIG. 11) in FIG. 12 (b), the buffer amount B exceeds the upper limit threshold, and In this embodiment, where the adjustment should be made from “4 symbols” to “3 symbols”, the data (cycle) of the relevant data is recognized based on the knowledge that “before that, adjustment is also made in the same reduction direction”. It becomes possible to refrain from further reduction adjustment for the preamble length. Then, the preamble length reduction adjustment is performed on the next data (cycle) satisfying the condition that the buffer amount B exceeds the upper limit threshold and the input preamble length PAi is not adjusted in the direction to be reduced before that. It will be carried over. Therefore, the preamble length is unnecessarily short (for example, 3 symbols or less),
Alternatively, it is extremely unlikely to be adjusted for a long time (for example, 7 symbols or more). Of course, if the preamble length is not adjusted shorter than necessary, there is no concern that the above-mentioned data destruction will occur.

【0090】なお、この図12において、バッファ量B
の推移を示す線の推移角度θは、各々前段の局との周波
数差(各内部クロック源から発せられるクロックの周波
数差)に対応しており、この角度θが小さいほど、これ
ら局間での周波数差が小さく、同角度θが大きいほど、
これら局間での周波数差が大きい。因みに、該角度θが
負方向となる図12(c)は、第3局の周波数が第2局
の周波数よりも高いことを示している。また、このバッ
ファ量推移を示す線に関して各々に付記するm1、m
2、m3は、各局間の周波数差による1サイクル当たり
のバッファ消費量を示している。
In FIG. 12, the buffer amount B
The transition angle θ of the line showing the transition of corresponds to the frequency difference with the station at the preceding stage (frequency difference of the clock generated from each internal clock source), and the smaller this angle θ, the more The smaller the frequency difference and the larger the angle θ,
The frequency difference between these stations is large. Incidentally, FIG. 12C in which the angle θ is in the negative direction indicates that the frequency of the third station is higher than the frequency of the second station. Also, m1 and m added to each of the lines showing the transition of the buffer amount
2 and m3 indicate the buffer consumption per cycle due to the frequency difference between the stations.

【0091】また、これら各局の上記ベーシック・モー
ドでの動作にあっても、上記のプリアンブル長調整アル
ゴリズムにより、・検出されたプリアンブル長PAiが
規定長(ここでの例では12シンボル)よりも長かった
場合には、バッファレジスタ22の使用率を優先させ
て、この使用率が50%に近づくよう、プリアンブル長
PAを調整する。すなわちこの場合、プリアンブル(ア
イドル)を積極的に捨てる。・同検出されたプリアンブ
ル長PAiが規定長よりも短かった場合には、プリアン
ブル長の補正を優先させつつ、その範囲ででき得る限り
バッファレジスタ22の使用率を50%に近づける。す
なわちこの場合、プリアンブル(アイドル)を捨てる割
合を極力減らす。といった制御が基本的に実行されるこ
ととなるため、バッファレジスタ22のオーバーフロー
やアンダーフローは極めて生じ難い。
Even when these stations operate in the basic mode, the detected preamble length PAi is longer than the specified length (12 symbols in this example) by the preamble length adjustment algorithm. In this case, the usage rate of the buffer register 22 is prioritized, and the preamble length PA is adjusted so that the usage rate approaches 50%. That is, in this case, the preamble (idle) is actively discarded. When the detected preamble length PAi is shorter than the specified length, the usage rate of the buffer register 22 is brought close to 50% as much as possible within the range while giving priority to the correction of the preamble length. That is, in this case, the rate of discarding the preamble (idle) is reduced as much as possible. Since such control is basically executed, overflow or underflow of the buffer register 22 is extremely unlikely to occur.

【0092】このように、この実施例の装置によれば、
ベーシック・モードであれ、またハイブリッド・モード
であれ、これら通信モードで異なるデータ構造に係わら
ず、バッファレジスタ22というただ1つのバッファを
通じて、良好にその授受が行われ、しかもデータ破壊等
に対する耐力が、従来の装置に比べて格段に向上される
ようになる。
Thus, according to the apparatus of this embodiment,
Regardless of the data structure that is different in these communication modes, whether in the basic mode or the hybrid mode, the data can be transmitted / received satisfactorily through only one buffer, that is, the buffer register 22, and the resistance to data destruction, etc. Compared with the conventional device, it is remarkably improved.

【0093】なお、上記の実施例においては、前記の如
く ( A)バッファレジスタ22は、先の図2に例示した如
く、入力されるシリアルデータを各々1シンボル(5ビ
ット)単位で読み書きするA〜Cの3つのレジスタを具
えて構成される。
In the above embodiment, as described above, the (A) buffer register 22 reads / writes input serial data in units of 1 symbol (5 bits), as illustrated in FIG. It is configured by including three registers C to C.

【0094】( B)ベーシック・モードにおいては、その
基準のプリアンブルPAの長さ(以下では便宜上、この
長さをも含めてPAと記す)を12シンボルに設定す
る。
(B) In the basic mode, the length of the reference preamble PA (hereinafter referred to as PA including this length for convenience) is set to 12 symbols.

【0095】( C)ハイブリッド・モードにおいては、そ
のプリアンブル長PAの基準値は前述の如く5シンボル
であり、このプリアンブル長PAを 4≦PA≦6 の範囲に調整する。
(C) In the hybrid mode, the reference value of the preamble length PA is 5 symbols as described above, and the preamble length PA is adjusted within the range of 4≤PA≤6.

【0096】ことを前提としたが、これらプリアンブル
長の基準値として定めるシンボル数、或いはビット数、
該プリアンブル長の調整範囲、使用するバッファのバッ
ファ容量、そして更には、そのプリアンブル長調整実施
のための閾値、等々の設定はこれに限定されるものでは
なく、適用されるネットワーク、或いは適用される局の
実情に応じて任意に定めることができる。
However, the number of symbols or the number of bits defined as the reference value of these preamble lengths,
The setting of the adjustment range of the preamble length, the buffer capacity of the buffer to be used, and the threshold for performing the adjustment of the preamble length, etc. are not limited to this, and are applied to the network or applied. It can be arbitrarily set according to the actual situation of the station.

【0097】また、図1に例示した装置自体も、その実
現手法は任意であり、ハードウェアによるものであれ、
或いはソフトウェアによるものであれ、基本的に各部の
上述した機能が満足されるものでありさえすれば、図2
〜図4、図7、或いは図8に示した例に限られることな
く、いかなるかたちでこれを実現してもよい。
Further, the device itself illustrated in FIG. 1 may have any implementation method, and may be implemented by hardware.
Alternatively, as long as the above-mentioned functions of the respective parts are basically satisfied, even if it is software, as shown in FIG.
-It is not limited to the example shown in FIG. 4, FIG. 7, or FIG. 8, and this may be realized in any way.

【0098】また、図1に示したような装置にあっては
通常、 ・他局からのデータ受信が無い場合や、自局から例えば
テストデータをネットワーク上に送出してそのフィード
バックされるデータを解析するなどするいわゆるループ
バック・モードでのデータ受信が無い場合、クロック抽
出部23によってクロック再生を行うことができず、し
たがってその間、書き込みクロック分配部24を通じ
て、フレームをバッファレジスタ22に書き込むことも
できない。
Further, in the device as shown in FIG. 1, normally, when there is no data received from another station, or when, for example, the test data is sent from the own station to the network and the data fed back is sent. If there is no data reception in the so-called loopback mode such as analysis, clock recovery cannot be performed by the clock extraction unit 23. Therefore, during that time, the frame may be written to the buffer register 22 through the write clock distribution unit 24. Can not.

【0099】・また、クロック再生に鋸歯状波フィルタ
(Saw Filter)が用いられることも多いが、
その場合、データ受信が無いときにはその再生クロック
としてノイズが出力される。これは、書き込みクロック
分配部24を暴走させる要因となる。
A saw-tooth wave filter (Saw Filter) is often used for clock reproduction.
In that case, noise is output as the recovered clock when no data is received. This causes the write clock distribution unit 24 to run out of control.

【0100】・その後データが受信されて、バッファレ
ジスタ22へのフレームの書き込みが正常に行われたと
しても、それまでの間、このバッファレジスタ22のバ
ッファ使用量を適正に制御することが不能となっている
ことから、場合によっては、このフレームを正常に読み
出すことができなくなることもある。すなわち、フレー
ムを読み出している最中にバッファレジスタ22が空に
なってしまうことなどが起こり得る。
After that, even if the data is received and the frame is normally written to the buffer register 22, it is impossible to properly control the buffer usage of the buffer register 22 until then. Therefore, in some cases, it may not be possible to read this frame normally. That is, the buffer register 22 may become empty while reading a frame.

【0101】等々が懸念されるが、そのような場合に
は、該通信装置として、更に図13に示される構成を採
用することで、極めて容易に、こうした不都合を回避す
ることができるようになる。
Although there are concerns about such problems, in such a case, by adopting the structure shown in FIG. 13 as the communication device, it becomes possible to avoid such inconvenience very easily. ..

【0102】すなわちこの図13に示される装置におい
て、データ判断部30は、その都度入力されるデータが
予め定義された規定のデータか否かを判断する部分であ
り、該規定のデータである旨判断されるとき、書き込み
クロック分配部24、読み出しクロック分配部25、及
びクロック位相制御部28に対してイネーブル(能動)
信号CNTENBLをアサートするよう動作する。換言
すれば該データ判断部30は、規定のデータが入力され
ていない期間、これら書き込みクロック分配部24、読
み出しクロック分配部25、及びクロック位相制御部2
8を非能動に制御する。
That is, in the apparatus shown in FIG. 13, the data judging section 30 is a section for judging whether or not the data inputted each time is the prescribed data defined in advance, and the data is the prescribed data. When judged, the write clock distribution unit 24, the read clock distribution unit 25, and the clock phase control unit 28 are enabled (active).
Operates to assert the signal CNTENBL. In other words, the data determination unit 30 is configured such that the write clock distribution unit 24, the read clock distribution unit 25, and the clock phase control unit 2 while the specified data is not input.
Controls 8 inactive.

【0103】なおここで、上記予め定義される規定のデ
ータとしては、例えば先に紹介した「FDDI−II」
として定められている通信規格においては、その伝送さ
れるシリアルデータに含まれる次のようなシンボルが挙
げられる。
Here, as the above-mentioned prescribed data, for example, "FDDI-II" introduced above is used.
In the communication standard defined as, the following symbols included in the transmitted serial data are listed.

【0104】 ◇Jシンボル("11100") :スターティングデリミタ(Kシンボルと共にスタート
コードを形成) ◇Kシンボル("10011") :スターティングデリミタ(Jシンボルと共にスタート
コードを形成) ◇Iシンボル("10111") :アイドル(プリアンブル) ◇Hシンボル("10100") :ホルトシンボル(ネットワーク上の論理的な接続の確
認用シンボル) ◇Rシンボル("11001") :リセットシンボル(データ授受の確認用シンボル) ◇Sシンボル("10001") :セットシンボル(データ授受の確認用シンボル) ◇Tシンボル("11101") :エンディングデリミタ(ストップコードを形成) ◇nシンボル("0xxxx") :データシンボル 因みに、上記Jシンボル〜Tシンボルは、データシンボ
ルであるnシンボルに対して「コントロールシンボル」
と総称されることもある。
◇ J symbol ("11100"): Starting delimiter (forming start code together with K symbol) ◇ K symbol ("10011"): Starting delimiter (forming start code together with J symbol) ◇ I symbol (" 10111 "): Idle (preamble) ◇ H symbol (" 10100 "): Holt symbol (symbol for confirming logical connection on network) ◇ R symbol (" 11001 "): Reset symbol (symbol for confirming data transfer) ) ◇ S symbol ("10001"): Set symbol (symbol for confirmation of data transfer) ◇ T symbol ("11101"): Ending delimiter (forming stop code) ◇ n symbol ("0xxxx"): Data symbol By the way, The J symbol to T symbol are data symbols. "Control symbol" for the n symbol is
Sometimes also collectively referred to.

【0105】そして、このような各シンボルが上記規定
のデータとして予め定義される場合、データ判断部30
では、例えば次のようなアルゴリズムに基づいてその入
力されるデータがこれら規定のデータか否かを判断し、
上記イネーブル信号CNTENBLの状態を決定する。
If each such symbol is defined in advance as the above-mentioned prescribed data, the data judgment unit 30
Then, for example, based on the following algorithm, determine whether the input data is these specified data,
The state of the enable signal CNTENBL is determined.

【0106】 IfDATA=( J#K#I#H#R#S#T#n) Then CNTENBL="1" Else CNTENBL="0" 因みにこれは、入力されたデータがJシンボル、または
Kシンボル、またはIシンボル、またはHシンボル、ま
たはRシンボル、またはSシンボル、またはTシンボ
ル、またはnシンボルであれば、信号CNTENBLを
論理「1(High)レベル」とし、そうでなければ、
同信号CNTENBLを論理「0(Low)レベル」と
することをしめしている。勿論これは、周知の論理回路
を組み合わせたハードウェアとして構成することもでき
る。
IfDATA = (J # K # I # H # R # S # T # n) Then CNTENBL = “1” Else CNTENBL = “0” Incidentally, this is because the input data is J symbol or K symbol, Alternatively, if the I symbol, the H symbol, the R symbol, the S symbol, the T symbol, or the n symbol, the signal CNTENBL is set to a logical “1 (High) level”, and otherwise.
The signal CNTENBL is set to the logic "0 (Low) level". Of course, this can also be configured as hardware by combining well-known logic circuits.

【0107】このような図13に示す構成が採用される
場合の、上記書き込みクロック分配部24、及び読み出
しクロック分配部25の具体例を、先の図3及び図4に
対応させて、それぞれ図14及び図15に示す。
Specific examples of the write clock distribution unit 24 and the read clock distribution unit 25 in the case where the structure shown in FIG. 13 is adopted are shown in FIGS. 3 and 4, respectively. 14 and FIG.

【0108】特に、読み出しクロック分配部25におい
ては、同図15に示されるように、上記信号CNTEN
BLによってその能動/非能動が制御されることに加
え、該信号CNTENBLのアサートに対し、分配クロ
ックRCBから順に出力されるよう、その構成が変更さ
れている。これは、書き込みクロック分配部24が、同
信号CNTENBLのアサートによって分配クロックW
CAから順に出力されることの関係において、バッファ
レジスタ22におけるバッファ使用量を「1」とするた
めの配慮である。
Particularly, in the read clock distribution section 25, as shown in FIG.
In addition to its active / inactive control by BL, its configuration is changed so that in response to assertion of the signal CNTENBL, the distribution clock RCB is sequentially output. This is because the write clock distribution unit 24 outputs the distribution clock W by asserting the signal CNTENBL.
This is a consideration for setting the buffer usage amount in the buffer register 22 to “1” in the relationship of sequentially outputting from CA.

【0109】こうした読み出しクロック分配部25の、
信号CNTENBLに基づく状態遷移を図示すると図1
6のようになる。
In the read clock distribution unit 25,
FIG. 1 illustrates state transitions based on the signal CNTENBL.
It becomes like 6.

【0110】すなわち、信号CNTENBLが論理「L
レベル」にあるリセット状態RSTから、同信号CNT
ENBLのアサートによって第1の読み出し制御状態R
D1となり、次の再生クロックのタイミングで、通常の
通信状態での読み出し制御に対応する第2の読み出し制
御状態RD2となる。すなわち、上記第1の読み出し制
御状態RD1となった時点で、分配クロックRCBを出
力を開始し、その後はRCC->RCA->RCB->RCC
…といった順にて、その各生成される読み出し分配クロ
ックを出力することとなる。なお、これら第1及び第2
の読み出し制御状態RD1及びRD2の何れの状態にお
いても、上記信号CNTENBLが論理「Lレベル」と
なったときには、再びリセット状態RSTとなって、全
ての分配クロック(RCA,RCB,RCC)の出力を
停止する。
That is, the signal CNTENBL changes to logic "L".
From the reset state RST in "level", the same signal CNT
The first read control state R by asserting ENBL
It becomes D1, and at the timing of the next reproduction clock, it becomes the second read control state RD2 corresponding to the read control in the normal communication state. That is, when the first read control state RD1 is reached, the distribution clock RCB is started to be output, and thereafter RCC->RCA->RCB-> RCC.
The generated read distribution clocks are output in this order. Incidentally, these first and second
In any of the read control states RD1 and RD2, when the signal CNTENBL becomes the logic "L level", the reset state RST is again set, and all the distribution clocks (RCA, RCB, RCC) are output. Stop.

【0111】図17は、こうした読み出しクロック分配
部25の動作特性についてテーブルとしてまとめたもの
であり、同図17中のRST、RD1、及びRD2の各
欄は、それぞれ上記リセット状態、第1の読み出し制御
状態、及び第2の読み出し制御状態での、各分配クロッ
ク(RCA,RCB,RCC)の状態に対応する。
FIG. 17 is a table summarizing the operation characteristics of the read clock distribution unit 25. The columns of RST, RD1 and RD2 in FIG. 17 are the reset state and the first read, respectively. This corresponds to the state of each distributed clock (RCA, RCB, RCC) in the control state and the second read control state.

【0112】図18に、これら書き込みクロック分配部
24、及び読み出しクロック分配部25の上記信号CN
TENBLに基づく動作タイミングを、タイミングチャ
ートとして総括しておく。なお、この図18では便宜
上、上述したループバック・モードでのデータ受信を想
定しており、内部クロック源21から発生されるクロッ
クと、クロック抽出部23によって抽出、再生されるク
ロックとは、同一の周波数を有していると仮定してい
る。
FIG. 18 shows the signal CN of the write clock distributor 24 and the read clock distributor 25.
The operation timing based on TENBL is summarized as a timing chart. Note that in FIG. 18, for the sake of convenience, it is assumed that the data is received in the loopback mode described above, and the clock generated from the internal clock source 21 and the clock extracted and reproduced by the clock extraction unit 23 are the same. Are assumed to have frequencies.

【0113】また、図19は、図13に示す構成が採用
される場合の、クロック位相制御部28の状態遷移を示
すものである。
Further, FIG. 19 shows the state transition of the clock phase control unit 28 when the configuration shown in FIG. 13 is adopted.

【0114】すなわちこの図19に示されるように、ク
ロック位相制御部28は、上記信号CNTENBLが論
理「Lレベル」にあるリセット状態RSTから、同信号
CNTENBLのアサートによって通信可能状態(当該
ネットワーク上での論理的な接続状態)HISYMBL
となり、次に前記スタートコード(JKシンボル)が検
出されたタイミングで、通常の通信状態FRAME/C
YCLEに遷移する。そして、この通常の通信状態FR
AME/CYCLEにおいて、上記信号CNTENBL
が論理「Lレベル」となれば直ちにリセット状態RST
に戻り、上記Hシンボル(ホルトシンボル)が受信され
た場合には、再び通信可能状態HISYMBLとなった
上で、スタートコード(JKシンボル)が検出されれば
通信状態FRAME/CYCLEに遷移し、信号CNT
ENBLが論理「Lレベル」となればリセット状態RS
Tに移行する。
That is, as shown in FIG. 19, the clock phase control unit 28 is in a communicable state by asserting the signal CNTENBL from the reset state RST in which the signal CNTENBL is at the logic "L level" (on the network). Logical connection status of) HISYMBL
Then, at the timing when the start code (JK symbol) is detected, the normal communication state FRAME / C
Transition to YCLE. And this normal communication state FR
In AME / CYCLE, the above signal CNTENBL
Is reset to the logic "L level" immediately, the reset state RST
When the H symbol (holt symbol) is received, the communicable state becomes HISYMBL again, and if the start code (JK symbol) is detected, the communication state changes to FRAME / CYCLE, and the signal CNT
If ENBL becomes logic "L level", reset state RS
Move to T.

【0115】しかもこのクロック位相制御部28では、
上記通信可能状態HISYMBLにあるときには、特
に、図20に示されるアルゴリズムに基づき、バッファ
使用量検出部26を通じて検出されるバッファレジスタ
22の都度のバッファ使用量Bのみから、同バッファレ
ジスタ22がオーバーフローやアンダーフローを生じる
ことのないよう、その制御信号S0及びS1の内容を設
定制御するものとする。この図20においても、これら
制御信号の内容「S0,S1=LH」が通常のシフト動
作を意味し、「S0,S1=LL」がバッファ貯蔵内容
の2度読み(足踏み)動作を意味し、そして「S0,S
1=HH」が同バッファ貯蔵内容の読みとばし(逆シフ
ト)動作を意味することは、これまでと同様である。そ
してその後、スタートコード(JKシンボル)の検出に
基づき、通常の通信状態FRAME/CYCLEに移行
した後は、モード判定部29による前記ベーシック・モ
ードかハイブリッド・モードかの判定結果に基づき、先
の図9に示した態様でのプリアンブル長調整制御に移行
する。
Moreover, in the clock phase controller 28,
When the communication-enabled state HISYMBL is set, the buffer register 22 overflows from the buffer usage amount B of the buffer register 22 detected by the buffer usage amount detection unit 26 based on the algorithm shown in FIG. The contents of the control signals S0 and S1 are set and controlled so that underflow does not occur. Also in FIG. 20, the contents of these control signals “S0, S1 = LH” mean a normal shift operation, and “S0, S1 = LL” means a double reading (stepping) operation of the buffer storage content, And "S0, S
The fact that "1 = HH" means a read (reverse shift) operation for reading the stored contents of the same buffer is the same as before. After that, after shifting to the normal communication state FRAME / CYCLE based on the detection of the start code (JK symbol), based on the determination result of the basic mode or the hybrid mode by the mode determination unit 29, The preamble length adjustment control in the mode shown in FIG.

【0116】以上述べた構成によれば、たとえ受信デー
タが到来しない場合であっても、バッファレジスタ22
の状態を常に適正な状態に維持することが可能となる。
しかも、そのための構成としても、基本的には図13に
示されるように、非常に簡素な構成にて実現可能である
(背景は異なるものの、例えば特開平3−66239号
公報、発明の名称「エラスティックストアのスリップ制
御回路」に記載されているような装置と比較しても、そ
の構成、作用上の効果は甚大である)。
According to the configuration described above, even if the received data does not arrive, the buffer register 22
It is possible to always maintain the state of (4) in an appropriate state.
Moreover, as a configuration therefor, it can be basically realized by a very simple configuration as shown in FIG. 13 (although the background is different, for example, Japanese Patent Laid-Open No. 3-66239, the title of the invention is “ Compared with the device described in "Slip control circuit of elastic store", its configuration and operational effect are enormous).

【0117】なお上記の例では、データ判断部30が、
入力されるシリアルデータから直接、その内容を判断す
る構成としたが、他に例えば、このデータ判断部30の
前段にシリアルデータをパラレルデータに変換するシリ
アル/パラレル変換器を設け、該変換されるパラレルデ
ータに基づいて上記アルゴリズムによる判断が実行され
る構成としてもよい。
In the above example, the data judging section 30
The content of the serial data is judged directly from the input serial data. However, for example, a serial / parallel converter for converting the serial data into parallel data is provided in the preceding stage of the data judging section 30 and the data is converted. It may be configured such that the determination by the above algorithm is executed based on the parallel data.

【0118】また、少なくとも書き込みクロック分配部
24、及び読み出しクロック分配部25さえ、このデー
タ判断部30によってその動作状態が制御されるように
することで、バッファレジスタ22のバッファ使用量に
ついての最低限の適正化を図ることはできる。
Further, at least the write clock distribution unit 24 and the read clock distribution unit 25 are controlled by the data judging unit 30 so that their operation states are controlled, so that the minimum buffer usage amount of the buffer register 22 can be reduced. Can be optimized.

【0119】[0119]

【発明の効果】以上説明したように、この発明によれ
ば、ベーシック・モードにおいては、入力されるプリア
ンブルの長さが規定長よりも長い場合に、バッファの使
用率を優先させてこれが50%に近づくようプリアンブ
ルを読み捨て、逆に同プリアンブルの長さが規定長より
も短い場合には、プリアンブル長の補正を優先させつ
つ、その範囲でバッファ使用率が50%に近づくよう、
プリアンブルを増すか、或いはプリアンブルを読み捨て
るにしてもその割合を減らす制御を行い、またハイブリ
ッド・モードにおいては、入力されるプリアンブルの長
さが増す方向、或いは減らす方向に同じ方向で調整済み
であると判断された場合に、当該データ(サイクル)に
ついてのプリアンブル長の調整を控え、次のデータへ、
該次のデータも同様に同じ方向でプリアンブル長が調整
済みであると判断される場合には、更に次のデータへ、
と該プリアンブル長の調整を繰り越して、同一のデータ
に対するプリアンブル長の調整を重複しないようにした
ことから、これら何れの通信モードであれ、ただ1つの
バッファを通じて、そのオーバーフローやアンダーフロ
ーはもとより、データ破壊等の一切生じない、常に安定
したシリアルデータ伝送が実現されるようになる。
As described above, according to the present invention, in the basic mode, when the length of the input preamble is longer than the specified length, the buffer usage rate is prioritized to 50%. If the preamble length is shorter than the specified length, the preamble length is prioritized for correction, and the buffer usage rate approaches 50% within that range.
The preamble is increased or the ratio is reduced even if the preamble is read out. In the hybrid mode, it is adjusted in the same direction to increase or decrease the length of the input preamble. If it is determined that the preamble length for the relevant data (cycle) is not adjusted, the next data,
If it is determined that the preamble length has been adjusted in the same direction for the next data as well, to the next data,
Since the adjustment of the preamble length is carried over so that the adjustment of the preamble length for the same data is not duplicated, in any of these communication modes, the overflow and underflow as well as the data are passed through only one buffer. Stable serial data transmission without any damage will be realized.

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

【図1】この発明にかかる独立同期型シリアルデータ通
信装置について、その一実施例構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing the configuration of an embodiment of an independent synchronous serial data communication device according to the present invention.

【図2】図1に示されるバッファレジスタの具体構成例
を示すブロック図である。
FIG. 2 is a block diagram showing a specific configuration example of a buffer register shown in FIG.

【図3】図1に示される書き込みクロック分配部の具体
構成例を示すブロック図である。
FIG. 3 is a block diagram showing a specific configuration example of a write clock distribution unit shown in FIG.

【図4】図1に示される読み出しクロック分配部の具体
構成例を示すブロック図である。
FIG. 4 is a block diagram showing a specific configuration example of the read clock distribution unit shown in FIG.

【図5】図4に示される読み出しクロック分配部の動作
特性を示すテーブルである。
5 is a table showing operation characteristics of the read clock distribution unit shown in FIG.

【図6】図2〜図4に示されるバッファレジスタ、書き
込みクロック分配部、及び読み出しクロック分配部の動
作例を示すタイミングチャートである。
FIG. 6 is a timing chart showing an operation example of the buffer register, the write clock distribution unit, and the read clock distribution unit shown in FIGS.

【図7】図1に示されるバッファ使用量検出部の具体構
成例を示すブロック図である。
FIG. 7 is a block diagram showing a specific configuration example of a buffer usage amount detection unit shown in FIG. 1.

【図8】図1に示されるプリアンブル長検出部の具体構
成例を示すブロック図である。
8 is a block diagram illustrating a specific configuration example of a preamble length detection unit illustrated in FIG.

【図9】図1に示されるクロック位相制御部によって実
行されるプリアンブル長調整アルゴリズムについてその
調整手順を示すフローチャートである。
9 is a flowchart showing the adjustment procedure of the preamble length adjustment algorithm executed by the clock phase controller shown in FIG.

【図10】通信モードがベーシック・モードであるとき
の同クロック位相制御部によるプリアンブル長調整態様
を一覧する図表である。
FIG. 10 is a chart showing a list of preamble length adjustment modes by the same clock phase control unit when the communication mode is the basic mode.

【図11】通信モードがハイブリッド・モードであると
きの同クロック位相制御部によるプリアンブル長調整態
様を一覧する図表である。
FIG. 11 is a table listing preamble length adjustment modes by the same clock phase control unit when the communication mode is a hybrid mode.

【図12】図1に示した装置がネットワークへの各接続
局に適用された場合の、連続する3局間でのプリアンブ
ル長調整推移を、特にハイブリッド・モードでの通信を
例にとって示したタイムチャートである。
FIG. 12 is a time chart showing a transition of preamble length adjustment among three consecutive stations when the device shown in FIG. 1 is applied to each connecting station to the network, particularly in the case of communication in a hybrid mode as an example. It is a chart.

【図13】この発明にかかる独立同期型シリアルデータ
通信装置について、他の実施例を示すブロック図であ
る。
FIG. 13 is a block diagram showing another embodiment of the independent synchronous serial data communication device according to the present invention.

【図14】図13に示される実施例での書き込みクロッ
ク分配部の具体構成例を示すブロック図である。
FIG. 14 is a block diagram showing a specific configuration example of a write clock distribution unit in the embodiment shown in FIG.

【図15】図13に示される実施例での読み出しクロッ
ク分配部の具体構成例を示すブロック図である。
FIG. 15 is a block diagram showing a specific configuration example of a read clock distribution unit in the embodiment shown in FIG.

【図16】図15に示される読み出しクロック分配部
の、信号CNTENBLに基づく状態遷移例を示す状態
遷移図である。
16 is a state transition diagram showing an example of state transition based on a signal CNTENBL in the read clock distribution unit shown in FIG.

【図17】同図15に示される読み出しクロック分配部
の動作特性を示すテーブルである。
FIG. 17 is a table showing operation characteristics of the read clock distribution unit shown in FIG.

【図18】図14に示される書き込みクロック分配部、
及び図15に示される読み出しクロック分配部の、それ
ぞれ信号CNTENBLに基づく動作例を示すタイミン
グチャートである。
18 is a write clock distribution unit shown in FIG.
16 is a timing chart showing an operation example of the read clock distribution unit shown in FIG. 15 based on a signal CNTENBL.

【図19】図13に示される実施例でのクロック位相制
御部の、信号CNTENBLに基づく状態遷移例を示す
状態遷移図である。
FIG. 19 is a state transition diagram showing an example of state transition based on a signal CNTENBL in the clock phase controller in the embodiment shown in FIG.

【図20】同クロック位相制御部の、特に通信可能状態
におけるバッファ制御アルゴリズムを示すフローチャー
トである。
FIG. 20 is a flowchart showing a buffer control algorithm of the clock phase control unit, particularly in a communicable state.

【図21】ベーシック・モードにおけるシリアルデータ
(フレーム)構造例を示す略図である。
FIG. 21 is a schematic diagram showing an example of the structure of serial data (frame) in the basic mode.

【図22】ハイブリッド・モードにおけるシリアルデー
タ(サイクル)構造例を示す略図である。
FIG. 22 is a schematic diagram showing an example of a serial data (cycle) structure in a hybrid mode.

【図23】各局が独立同期で動作する通信網において各
局の局周波数が完全には一致しない実情を例示するブロ
ック図である。
FIG. 23 is a block diagram illustrating an actual situation where the station frequencies of the stations do not completely match in a communication network in which the stations operate independently.

【図24】上記一致しない局周波数によって各局間の伝
送シリアルデータに位相のずれが生じることを例示する
タイムチャートである。
FIG. 24 is a time chart exemplifying that a phase shift occurs in transmission serial data between stations due to the station frequencies that do not match.

【図25】従来の独立同期型シリアルデータ通信装置に
ついてその一構成例を示すブロック図である。
FIG. 25 is a block diagram showing a configuration example of a conventional independent synchronous serial data communication device.

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

1〜n…通信局、21…内部クロック源、22…バッフ
ァレジスタ、23…クロック抽出部、24…書き込みク
ロック分配部、25…読み出しクロック分配部、26…
バッファ使用量検出部、27…プリアンブル長検出部、
28…クロック位相制御部、29…モード判定部、30
…データ判断部
1 to n ... Communication station, 21 ... Internal clock source, 22 ... Buffer register, 23 ... Clock extraction unit, 24 ... Write clock distribution unit, 25 ... Read clock distribution unit, 26 ...
Buffer usage detector 27, preamble length detector,
28 ... Clock phase control unit, 29 ... Mode determination unit, 30
... Data judgment section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】シリアルデータ伝送のための所定周波数の
クロックを発生する内部クロック源と、 シリアルデータをFIFO形式にて一時貯蔵するバッフ
ァ手段と、 入力されるシリアルデータからその伝送クロックを抽出
するクロック抽出手段と、 この抽出されたクロックに基づいて当該シリアルデータ
を前記バッファ手段に書き込む書き込み制御手段と、 前記バッファ手段の都度のデータ貯蔵量を検出する第1
の検出手段と、 前記入力されるシリアルデータに含まれるプリアンブル
の長さを検出する第2の検出手段と、 前記伝送されるシリアルデータが、非同期にて伝送され
る第1の通信モードであるか、同期及び非同期にて伝送
される第2の通信モードであるか、を検出する第3の検
出手段と、 この第3の検出手段による検出結果が第1の通信モード
であるとき、前記第1及び第2の検出手段による検出出
力に基づき、第1の検出手段の検出出力がその検出範囲
の最大値を下回り且つ第2の検出手段の検出出力が基準
値を下回るとき、及び第1の検出手段の検出出力がその
検出範囲の中心所定範囲値を下回るときには、前記内部
クロック源から発生されるクロックの位相を遅らせ、第
1の検出手段の検出出力がその検出範囲の中心所定範囲
値を上回り且つ第2の検出手段の検出出力が基準値以上
であるときには、前記内部クロック源から発生されるク
ロックの位相を進ませ、それ以外のときには、前記内部
クロック源から発生されるクロックの位相をシリアルデ
ータ伝送のための標準位相に維持する制御を行う第1の
クロック位相制御手段と、 同第3の検出手段による検出結果が第2の通信モードで
ある旨示すとき、前記第1及び第2の検出手段による検
出出力に基づき、第1の検出手段の検出出力がその検出
範囲の中心所定範囲値を下回り且つ第2の検出手段の検
出出力が基準値以下であるときには、前記内部クロック
源から発生されるクロックの位相を遅らせ、第1の検出
手段の検出出力がその検出範囲の中心所定範囲値を上回
り且つ第2の検出手段の検出出力が基準値以上であると
きには、前記内部クロック源から発生されるクロックの
位相を進ませ、それ以外のときには、前記内部クロック
源から発生されるクロックの位相をシリアルデータ伝送
のための標準位相に維持する制御を行う第2のクロック
位相制御手段と、 これら位相制御されたクロックに基づいて、前記バッフ
ァ手段に貯蔵されているデータを次局への出力シリアル
データとして読み出す読み出し制御手段と、 を具える独立同期型シリアルデータ通信装置。
1. An internal clock source for generating a clock of a predetermined frequency for serial data transmission, a buffer means for temporarily storing serial data in a FIFO format, and a clock for extracting the transmission clock from input serial data. Extraction means, write control means for writing the serial data into the buffer means based on the extracted clock, and first data detection amount for each of the buffer means
Detecting means, second detecting means for detecting the length of a preamble included in the input serial data, and whether the transmitted serial data is in a first communication mode in which it is asynchronously transmitted. , A third detection means for detecting whether the second communication mode is transmitted synchronously or asynchronously, and the detection result by the third detection means is the first communication mode, the first detection means And when the detection output of the first detection means is below the maximum value of its detection range and the detection output of the second detection means is below the reference value based on the detection output by the second detection means, and the first detection When the detection output of the means falls below the center predetermined range value of the detection range, the phase of the clock generated from the internal clock source is delayed, and the detection output of the first detection means exceeds the center predetermined range value of the detection range. And the detection output of the second detecting means is equal to or greater than the reference value, the phase of the clock generated from the internal clock source is advanced, and otherwise, the phase of the clock generated from the internal clock source is increased. First clock phase control means for controlling to maintain the standard phase for serial data transmission, and when the detection result by the third detection means indicates the second communication mode, the first and second When the detection output of the first detection means is below the center predetermined range value of the detection range and the detection output of the second detection means is less than or equal to the reference value based on the detection output by the detection means of The phase of the generated clock is delayed, the detection output of the first detection means exceeds the center predetermined range value of the detection range, and the detection output of the second detection means is the reference value or more. In this case, the phase of the clock generated from the internal clock source is advanced, and at other times, control is performed to maintain the phase of the clock generated from the internal clock source at the standard phase for serial data transmission. An independent synchronous serial device comprising: second clock phase control means; and read control means for reading out data stored in the buffer means as output serial data to the next station based on these phase-controlled clocks. Data communication device.
【請求項2】請求項1記載の独立同期型シリアルデータ
通信装置において、 前記伝送されるシリアルデータが予め定義された規定の
データか否かを判断し、その判断結果が否定判断である
とき、少なくとも前記書き込み制御手段及び前記読み出
し制御手段を非能動とするデータ判断手段、 を更に具える独立同期型シリアルデータ通信装置。
2. The independent synchronous serial data communication device according to claim 1, wherein it is determined whether or not the serial data to be transmitted is defined data defined in advance, and when the determination result is a negative determination, An independent synchronous serial data communication device further comprising at least a data judgment means for deactivating the write control means and the read control means.
【請求項3】シリアルデータ伝送のための所定周波数の
クロックを発生する内部クロック源と、 非同期にて伝送されるシリアルデータをFIFO形式に
て一時貯蔵するバッファ手段と、 入力されるシリアルデータからその伝送クロックを抽出
するクロック抽出手段と、 この抽出されたクロックに基づいて当該シリアルデータ
を前記バッファ手段に書き込む書き込み制御手段と、 前記バッファ手段の都度のデータ貯蔵量を検出する第1
の検出手段と、 前記入力されるシリアルデータに含まれるプリアンブル
の長さを検出する第2の検出手段と、 前記第1及び第2の検出手段による検出出力に基づき、
第1の検出手段の検出出力がその検出範囲の最大値を下
回り且つ第2の検出手段の検出出力が基準値を下回ると
き、及び第1の検出手段の検出出力がその検出範囲の中
心所定範囲値を下回るときには、前記内部クロック源か
ら発生されるクロックの位相を遅らせ、第1の検出手段
の検出出力がその検出範囲の中心所定範囲値を上回り且
つ第2の検出手段の検出出力が基準値以上であるときに
は、前記内部クロック源から発生されるクロックの位相
を進ませ、それ以外のときには、前記内部クロック源か
ら発生されるクロックの位相をシリアルデータ伝送のた
めの標準位相に維持する制御を行うクロック位相制御手
段と、 この位相制御されたクロックに基づいて、前記バッファ
手段に貯蔵されているデータを次局への出力シリアルデ
ータとして読み出す読み出し制御手段と、 を具える独立同期型シリアルデータ通信装置。
3. An internal clock source for generating a clock of a predetermined frequency for serial data transmission, buffer means for temporarily storing serial data transmitted asynchronously in a FIFO format, and input serial data A clock extraction unit that extracts a transmission clock, a write control unit that writes the serial data into the buffer unit based on the extracted clock, and a first data detection amount for each of the buffer units.
Detecting means, second detecting means for detecting the length of the preamble included in the input serial data, and detection outputs from the first and second detecting means,
When the detection output of the first detection means is below the maximum value of the detection range and the detection output of the second detection means is below the reference value, and when the detection output of the first detection means is the center of the detection range When it is below the value, the phase of the clock generated from the internal clock source is delayed, the detection output of the first detection means exceeds the center predetermined range value of the detection range, and the detection output of the second detection means is the reference value. When the above is the case, the phase of the clock generated from the internal clock source is advanced, and at other times, control for maintaining the phase of the clock generated from the internal clock source at the standard phase for serial data transmission is performed. Clock phase control means for performing, and based on this phase-controlled clock, the data stored in the buffer means as output serial data to the next station. An independent synchronous serial data communication device comprising: read control means for reading.
JP4020195A 1992-02-05 1992-02-05 Independent synchronous type serial data communication device Pending JPH05219037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4020195A JPH05219037A (en) 1992-02-05 1992-02-05 Independent synchronous type serial data communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4020195A JPH05219037A (en) 1992-02-05 1992-02-05 Independent synchronous type serial data communication device

Publications (1)

Publication Number Publication Date
JPH05219037A true JPH05219037A (en) 1993-08-27

Family

ID=12020392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4020195A Pending JPH05219037A (en) 1992-02-05 1992-02-05 Independent synchronous type serial data communication device

Country Status (1)

Country Link
JP (1) JPH05219037A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006238044A (en) * 2005-02-24 2006-09-07 Yamaha Corp Transmission control unit and sampling frequency converting device
WO2009081472A1 (en) * 2007-12-21 2009-07-02 Fujitsu Limited Clock converter and clock conversion method
JP2012023665A (en) * 2010-07-16 2012-02-02 Fujikura Ltd Communication method, communication system, transmitter, and receiver
WO2014064781A1 (en) * 2012-10-24 2014-05-01 三菱電機株式会社 Digital broadcast receiving apparatus and digital broadcast receiving method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006238044A (en) * 2005-02-24 2006-09-07 Yamaha Corp Transmission control unit and sampling frequency converting device
WO2009081472A1 (en) * 2007-12-21 2009-07-02 Fujitsu Limited Clock converter and clock conversion method
JP4593677B2 (en) * 2007-12-21 2010-12-08 富士通株式会社 Clock transfer device and clock transfer method
JPWO2009081472A1 (en) * 2007-12-21 2011-05-06 富士通株式会社 Clock transfer device and clock transfer method
US8582711B2 (en) 2007-12-21 2013-11-12 Fujitsu Limited Clock change device and clock change method
JP2012023665A (en) * 2010-07-16 2012-02-02 Fujikura Ltd Communication method, communication system, transmitter, and receiver
WO2014064781A1 (en) * 2012-10-24 2014-05-01 三菱電機株式会社 Digital broadcast receiving apparatus and digital broadcast receiving method
JP5800999B2 (en) * 2012-10-24 2015-10-28 三菱電機株式会社 Digital broadcast receiving apparatus and digital broadcast receiving method
US9232116B2 (en) 2012-10-24 2016-01-05 Mitsubishi Electric Corporation Digital broadcast receiving apparatus and digital broadcast receiving method

Similar Documents

Publication Publication Date Title
US5272728A (en) Preamble length adjustment method in communication network and independent synchronization type serial data communication device
US7234007B2 (en) Adjustable elasticity FIFO buffer have a number of storage cells equal to a frequency offset times a number of data units in a data stream
US7688728B2 (en) Method of controlling a data flow, transmitter and data transmission system
US5428649A (en) Elastic buffer with bidirectional phase detector
JP2861515B2 (en) Clock synchronizer and clock synchronizer between transmission and reception in packet network
JPH0646044A (en) Synchronous decoder for self-clock signal
US6219396B1 (en) Jitter resistant clock regenerator
JP2002271389A (en) Packet processing device and packet processing method
JPH05219037A (en) Independent synchronous type serial data communication device
JP3499818B2 (en) Time stamp offset adjusting method and packet transmission device using the same
JP2009049506A (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMPUTER PROGRAM
JPH1093540A (en) Data transmission method
JP2007258932A (en) Packet transmission system
JP3909029B2 (en) Terminal synchronization method and terminal synchronization circuit
JPH08149179A (en) Data communication controller
JPH04211542A (en) Preamble length adjustment method and independent synchronization type serial data communication equipment for communication network
JP2609582B2 (en) Clock synchronization method in transmission system
JPH0669932A (en) Preamble decoding reproduction system for repeater for lan
JP3801043B2 (en) Data receiving apparatus and method
JP2771514B2 (en) Speed conversion circuit and data transmission device using the same
JP3367409B2 (en) Information playback device
JPH09116569A (en) Switching hub
JPH08172452A (en) Packet phase synchronization circuit
JPH10313448A (en) Moving image transmitting device and receiving device
JPS63169150A (en) Data transmission circuit