JPH11177591A - Transmission medium connection device and controller, operating cycle generation device and recording medium - Google Patents

Transmission medium connection device and controller, operating cycle generation device and recording medium

Info

Publication number
JPH11177591A
JPH11177591A JP9344871A JP34487197A JPH11177591A JP H11177591 A JPH11177591 A JP H11177591A JP 9344871 A JP9344871 A JP 9344871A JP 34487197 A JP34487197 A JP 34487197A JP H11177591 A JPH11177591 A JP H11177591A
Authority
JP
Japan
Prior art keywords
cycle
transmission medium
control signal
operation cycle
clock
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
JP9344871A
Other languages
Japanese (ja)
Inventor
Hidetoshi Takeda
英俊 武田
Yasuo Hamamoto
康男 濱本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9344871A priority Critical patent/JPH11177591A/en
Publication of JPH11177591A publication Critical patent/JPH11177591A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To secure the synchronization of operating cycles between a transmission medium and a tansmission medium connecting device by comparing both operating cycles with each other and transmitting a control signal to increase or decrease the counter value of an operating cycle generation device according to the error detected between those two operating cycles through the comparison. SOLUTION: A reference selection means 108 selects the cycle that is inputted from a cycle generation means 107 as a reference cycle and outputs this cycle. An error detection means 109 compares the cycle inputted from the means 108 with the cycle received from a 1st transmission medium 105 and outputs the error that is detected between both cycles. A clock control means 110 accumulates the errors detected by the means 109 and then outputs a clock control signal to increase or decrease the value of a counter 121 of a 1st operating cycle generation device 103 when those accumulated errors exceed a prescribed number. A control signal transmission means 111 transmits the clock control signal to the device 103.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数の伝送媒体を
相互に接続する装置と、伝送媒体の動作周期を生成する
装置、および動作周期の基準を選択する装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for interconnecting a plurality of transmission media, an apparatus for generating an operation cycle of the transmission medium, and an apparatus for selecting a reference of the operation cycle.

【0002】[0002]

【従来の技術】現在、ディジタルAV機器やコンピュー
タ周辺機器に使用されているディジタル・インタフェー
スにIEEE1394インタフェースがある。このIE
EE1394インタフェースは次世代のマルチメディア
用の高速シリアル・インタフェースとしてIEEE(ア
イ・トリプルイー)で規格化されたインタフェースであ
る(参考文献 High Performance Serial Bus 1394-199
5:ハイ・パフォーマンス・シリアル・バス 1394-199
5)。
2. Description of the Related Art Currently, there is an IEEE1394 interface as a digital interface used in digital AV equipment and computer peripheral equipment. This IE
The EE1394 interface is an interface standardized by IEEE (I Triple E) as a high-speed serial interface for next-generation multimedia (reference literature: High Performance Serial Bus 1394-199).
5: High performance serial bus 1394-199
Five).

【0003】このIEEE1394インタフェースで
は、パケットを単位とした通信が行われ、目的に応じて
2種類のパケットがある。
In the IEEE 1394 interface, communication is performed in packet units, and there are two types of packets according to the purpose.

【0004】一つはリアルタイム・データの送信に使用
されるアイソクロナス・パケットで、もう一つは非リア
ルタイム・データの送信に使用されるアシンクロナス・
パケットである。
One is an isochronous packet used for transmitting real-time data, and the other is an asynchronous packet used for transmitting non-real-time data.
Packet.

【0005】アイソクロナス・パケットでは、伝送遅延
時間が保証されており、バスの使用状況に関わらず一定
間隔で送信する事ができる。このため、ディジタル・ビ
デオ・データの送信などに使用される。
In an isochronous packet, a transmission delay time is guaranteed, and it can be transmitted at a constant interval regardless of the use condition of a bus. Therefore, it is used for transmitting digital video data.

【0006】一方のアシンクロナス・パケットはリアル
タイム性の保証がないかわりに、エラーなどが発生した
場合にパケットを再送信するための仕組みなどが備わっ
ている。
On the other hand, the asynchronous packet does not guarantee real-time performance, but has a mechanism for retransmitting the packet when an error or the like occurs.

【0007】IEEE1394インタフェースは、接続
された全ての機器(以下ノードと称する)が24.57
6MHzのクロックを持っており、このクロックをカウ
ントして作られる8KHzの周期(以下サイクルと称す
る)に同期して動作する。このサイクルは、サイクルマ
スタと呼ばれるノードによって管理されている。またこ
のサイクルマスタはバス使用権の調停を行うアービタと
しても動作する。
In the IEEE 1394 interface, all connected devices (hereinafter, referred to as nodes) are 24.57.
It has a 6 MHz clock and operates in synchronization with an 8 KHz cycle (hereinafter referred to as a cycle) created by counting this clock. This cycle is managed by a node called a cycle master. The cycle master also operates as an arbiter for arbitrating bus use rights.

【0008】サイクルマスタは、自身が持つ24.57
6MHzのクロックをカウントし、3072クロック毎
にサイクル・スタート・パケットをバスに送信する。こ
のサイクル・スタート・パケットはバス全体において時
報として使用されるもので、サイクルマスタ以外の全て
のノードは、サイクル・スタート・パケットを受信した
時に、自身のカウンタをリセットすることでサイクルマ
スタに同期する。前述のアイソクロナス・パケットはこ
のサイクル毎に1度送信することを保証することによっ
て、リアルタイム性を確保している。
The cycle master itself has 24.57.
It counts 6 MHz clocks and sends a cycle start packet to the bus every 3072 clocks. This cycle start packet is used as a time signal in the entire bus, and all nodes except the cycle master synchronize with the cycle master by resetting their counters when receiving the cycle start packet. . The real-time property is ensured by guaranteeing that the above-mentioned isochronous packet is transmitted once every cycle.

【0009】このアイソクロナス・パケットはサイクル
内で、サイクル・スタート・パケットが送信された直後
に送信が行われる。全てのアイソクロナス・パケットの
送信が終了した後の、サイクル内の残りの時間でアシン
クロナス・パケットの送信が行われる。そして125μ
secが経過した時点で、アシンクロナス・パケットよ
りもサイクル・スタート・パケットが優先して送信され
るため、次のサイクルが開始される。このようなアイソ
クロナス・パケットは、送信に先だって、サイクル内で
パケットの送信に必要な時間を予約してから送信を行
う。これによって、アイソクロナス・パケットはサイク
ル毎に確実に送信することができる。
This isochronous packet is transmitted in the cycle immediately after the transmission of the cycle start packet. After the transmission of all isochronous packets is completed, the transmission of asynchronous packets is performed in the remaining time in the cycle. And 125μ
After the elapse of sec, the cycle start packet is transmitted prior to the asynchronous packet, so that the next cycle is started. Before transmitting such an isochronous packet, a time required for transmitting the packet in a cycle is reserved before transmission. Thus, the isochronous packet can be reliably transmitted every cycle.

【0010】一方、このIEEE1394インタフェー
スはバスとして動作するインタフェースであり、このた
め電気伝搬上の制約から一つのバスに接続できる装置の
数とケーブルの最大長が定められている。一つのバスに
は最大で63台の装置しか接続することができず、ま
た、現在使用することのできるケーブルの最大長は4.
5mに制限されている。
On the other hand, the IEEE 1394 interface is an interface that operates as a bus. Therefore, the number of devices that can be connected to one bus and the maximum length of a cable are determined due to restrictions on electric propagation. A maximum of 63 devices can be connected to one bus, and the maximum length of a cable that can be used at present is 4.
Limited to 5m.

【0011】これに対して、IEEE1394インタフ
ェースではバス同士を接続してパケットを相互に転送す
るバス・ブリッジを使用することが可能である。これに
よって最大で1023のバスを接続することができる。
またこのようなブリッジを使用することで4.5m以上
の距離を伝送することも可能となる。
On the other hand, in the IEEE 1394 interface, it is possible to use a bus bridge for connecting buses and transferring packets mutually. This allows a maximum of 1023 buses to be connected.
The use of such a bridge also enables transmission over a distance of 4.5 m or more.

【0012】このIEEE1394インタフェースで使
用されるのパケットのうち、アイソクロナス・パケット
は、送信する際、チャネル番号によって識別される。送
信装置はパケットに特定のチャネル番号をつけてバスに
送信し、受信装置は受信の必要なチャネル番号のついた
アイソクロナス・パケットのみを受信する。このため、
アイソクロナス・パケットは送り先を指定して送信され
るものではない。また一つのパケットを複数のノードが
受信することも可能である。
[0012] Of the packets used in the IEEE 1394 interface, an isochronous packet is identified by a channel number when transmitting. The transmitting device attaches a specific channel number to the packet and transmits the packet to the bus, and the receiving device receives only the isochronous packet having the channel number required to be received. For this reason,
An isochronous packet is not transmitted by specifying a destination. It is also possible for a plurality of nodes to receive one packet.

【0013】一方のアシンクロナス・パケットは、送り
先の指定をして送信されるものである。IEEE139
4インタフェースでは、バスに接続された全てのノード
が仮想的な48ビットのアドレス空間を持っている。ア
シンクロナス・パケットはこのアドレス空間に対する読
み出しや書き込みとして送信される。
One asynchronous packet is transmitted by designating a destination. IEEE139
In the four interfaces, all nodes connected to the bus have a virtual 48-bit address space. An asynchronous packet is transmitted as a read or a write to this address space.

【0014】図7に書き込みに使用する書き込み要求パ
ケットの形式を示す。書き込み要求パケット701は、
宛先と発信元を示すための情報として宛先702、発信
元703、書き込みを行うアドレスである書き込み先頭
アドレス704、書き込みを行うデータの大きさを示す
書き込みサイズ705、指定したアドレス空間に書き込
むためのデータである書き込みデータ710を含んでい
る。またこの他にも、パケットの種別や優先度などを識
別するための情報として、ラベル706、rt707、
種別708、pri709等を含んでいる。
FIG. 7 shows the format of a write request packet used for writing. The write request packet 701 is
As information for indicating the destination and the source, a destination 702, a source 703, a write start address 704 which is an address for writing, a write size 705 indicating the size of data to be written, data for writing in a specified address space Is included in the write data 710. In addition, labels 706, rt707, and rt707 are used as information for identifying the type and priority of a packet.
Type 708, pri709, etc. are included.

【0015】さらにIEEE1394インタフェースで
は、ノードが持つアドレス空間の一部を使用してノード
の機能の制御などを行う。例えば、アドレス空間内に装
置の状態に対応したレジスタを定義し、このレジスタに
値を書き込むことで装置状態への指示を行い、逆にこの
レジスタを読み出すことで装置の状態を知ることができ
る。このため図7の書き込み要求パケット701の書き
込み先頭アドレス704と書き込みデータ710に適切
な値を設定してパケットを送信することは、装置に対し
ての指示や命令を送信していることに相当する。
Further, in the IEEE 1394 interface, the function of the node is controlled using a part of the address space of the node. For example, a register corresponding to the status of the device is defined in the address space, and an instruction to the status of the device is given by writing a value to this register, and the status of the device can be known by reading this register. Therefore, setting an appropriate value for the write start address 704 and the write data 710 of the write request packet 701 in FIG. 7 and transmitting the packet is equivalent to transmitting an instruction or command to the apparatus. .

【0016】[0016]

【発明が解決しようとする課題】上述のIEEE139
4インタフェースのように、動作の基準となる周期(サ
イクル)を持ち、このサイクルに同期して動作すること
によってリアルタイム・データの伝送を行う伝送媒体同
士を接続してパケットを相互に転送する場合、転送を行
う伝送媒体の間で動作基準であるサイクルが同期する必
要がある。仮にこの同期が成立しない場合には、パケッ
トの欠落などが発生する可能性がある。
SUMMARY OF THE INVENTION The above-mentioned IEEE 139
As in the case of a 4-interface, when a transmission medium having a cycle (cycle) serving as a reference for operation and operating in synchronization with this cycle to transmit real-time data is connected to each other to transfer packets to each other, The cycle, which is the operation reference, needs to be synchronized between the transmission media performing the transfer. If this synchronization is not established, there is a possibility that packets may be lost.

【0017】例えば、IEEE1394の場合、各ノー
ドが持つ動作クロックの周波数は、最大100ppm
(Parts Per Million)の誤差が許されており、すなわ
ち10000クロックに1クロックの割合で誤差が生じ
ることまでが許容されている。
For example, in the case of IEEE1394, the frequency of the operation clock of each node is 100 ppm at the maximum.
(Parts Per Million) is allowed, that is, an error is generated at a rate of one clock per 10,000 clocks.

【0018】このため2つのノードの間で考えた場合、
最大で、0.625秒に1サイクルの誤差が生じること
になる。このように一定期間内のサイクル数の間に差が
生じてしまう場合、一方のバスから受信したパケットを
他方のバスに送信できないことが発生する。また一方の
バスからパケットを受信していないにも関わらず、他方
のバスにパケットを送信しなければならない場合が発生
する。
Therefore, when considering between two nodes,
At most, an error of one cycle occurs every 0.625 seconds. When a difference occurs between the number of cycles in a certain period, a packet received from one bus cannot be transmitted to the other bus. Further, there is a case where a packet must be transmitted to the other bus even though the packet is not received from one bus.

【0019】図6aおよび図6bは、サイクルに同期し
たパケット同期していない2つの伝送媒体の間で転送を
行う場合の例である。なお、図6aおよび図6bにおけ
る受信側、送信側とは、伝送媒体接続装置にとっての受
信側と送信側とを示している。
FIGS. 6A and 6B show an example in which transfer is performed between two transmission media which are not synchronized with each other and which are synchronized with each other in a cycle. The receiving side and the transmitting side in FIGS. 6A and 6B indicate the receiving side and the transmitting side for the transmission medium connection device.

【0020】図6aに示すように、伝送媒体接続装置が
パケットを受信する側の伝送媒体の周期よりも、受信し
たパケットを送信する側の伝送媒体の周期の方が長い場
合、損失パケット601は送信側の伝送媒体に送信する
ことができなくなってしまう。
As shown in FIG. 6A, if the period of the transmission medium transmitting the received packet is longer than the period of the transmission medium receiving the packet, the lost packet 601 becomes It becomes impossible to transmit to the transmission medium on the transmission side.

【0021】一方、図6bに示すように、パケットの受
信側の伝送媒体の周期よりも、送信側の伝送媒体の周期
の方が短い場合、受信されていない生成パケット602
を送信しなければならなくなる。
On the other hand, as shown in FIG. 6B, when the cycle of the transmission medium on the transmitting side is shorter than the cycle of the transmission medium on the receiving side of the packet, the generated packet 602 that has not been received is generated.
Must be sent.

【0022】このような損失パケット601や生成パケ
ット602は、前述のように100ppmの誤差を考え
た場合、0.625秒に一回の割合で発生することにな
る。このため、正常なパケットの転送を行うためには、
受信側と送信側の2つの伝送媒体の間でサイクルの同期
が必要である。
Such a lost packet 601 and a generated packet 602 occur once every 0.625 seconds when an error of 100 ppm is considered as described above. Therefore, in order to perform normal packet transfer,
Cycle synchronization is required between the two transmission media on the receiving and transmitting sides.

【0023】一方、このような同期を成立させるために
は、伝送媒体同士を接続する装置が必ずサイクルマスタ
になることによって容易に対応することが可能である。
伝送媒体を接続する装置が単一のクロックによって生成
したサイクルを全てのバスに供給することで、全てのバ
スのサイクルを同期させることができる。
On the other hand, in order to establish such synchronization, it is possible to easily cope with such a situation that a device for connecting transmission media always serves as a cycle master.
By supplying the cycle generated by a single clock to all the buses by the device connecting the transmission medium, the cycles of all the buses can be synchronized.

【0024】しかし、サイクルマスタは、バスの初期設
定の段階で、予め決められた規則に従って自動的に選択
されるものであり、必ずしも指定したノードがサイクル
マスタに選択される保証がない。したがって、この伝送
媒体を接続する装置がサイクルマスタにならなかった場
合には同期が不可能になってしまうという問題があっ
た。
However, the cycle master is automatically selected in accordance with a predetermined rule at the stage of initializing the bus, and there is no guarantee that the designated node is selected as the cycle master. Therefore, if the device to which the transmission medium is connected does not become the cycle master, there is a problem that synchronization becomes impossible.

【0025】また、サイクルマスタはバスのアービタと
しても動作するため、電気の伝搬にかかる時間から、バ
スの接続構成上の中央に位置することが望ましい。一
方、バスの中央から離れた位置にアービタが存在した場
合、バスの使用効率が低下してしまうという問題があっ
た。
Since the cycle master also operates as an arbiter for the bus, it is desirable that the cycle master be located at the center of the bus connection configuration in view of the time required for the propagation of electricity. On the other hand, when an arbiter exists at a position distant from the center of the bus, there has been a problem that the use efficiency of the bus is reduced.

【0026】さらには、伝送媒体の間の同期をとる場
合、必要な同期は周期のみであるが、それぞれの動作周
期の基本となる動作クロックの周波数を変化させること
も可能である。しかし、動作クロックを変化させるため
には通常の発信回路を使用することができなくなり、装
置の構成が複雑になってしまうという問題があった。
Furthermore, when synchronizing between transmission media, the necessary synchronization is only the period, but it is also possible to change the frequency of the operation clock which is the basis of each operation period. However, there is a problem that a normal transmission circuit cannot be used to change the operation clock, and the configuration of the device becomes complicated.

【0027】[0027]

【課題を解決するための手段】前記課題を解決するた
め、本願第1の発明の伝送媒体接続装置は、動作クロッ
クのクロック数に基づいて決定される動作周期を持ち、
動作周期生成装置が生成する前記動作周期に同期して動
作する伝送媒体を複数接続する伝送媒体接続装置であっ
て、基準周期を発生する周期発生手段と、接続された伝
送媒体の前記動作周期と前記周期発生手段が発生する前
記基準周期を比較して誤差を検出する誤差検出手段と、
前記誤差検出手段が検出した前記誤差を累積し、累積し
た前記誤差の大きさが所定の値を超えた場合に、前記動
作クロックを増加または減少させるためのクロック制御
信号を出力するクロック制御手段と、前記動作周期生成
装置に前記クロック制御信号を送信する制御信号送信手
段とを備えることを特徴とする。
According to a first aspect of the present invention, there is provided a transmission medium connecting apparatus having an operation cycle determined based on the number of operation clocks.
A transmission medium connection device that connects a plurality of transmission media that operate in synchronization with the operation period generated by the operation period generation device, wherein a period generation unit that generates a reference period, and the operation period of the connected transmission medium. Error detection means for detecting an error by comparing the reference cycle generated by the cycle generation means,
A clock control unit that accumulates the error detected by the error detection unit, and outputs a clock control signal for increasing or decreasing the operation clock when the magnitude of the accumulated error exceeds a predetermined value; And a control signal transmitting means for transmitting the clock control signal to the operation cycle generation device.

【0028】本願第2の発明の伝送媒体接続装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体を複数接続する伝送媒体接続装
置であって、接続された伝送媒体の中から基準伝送媒体
を一つ選択し、前記基準伝送媒体の前記動作周期とそれ
以外の伝送媒体の前記動作周期を比較して誤差を検出す
る誤差検出手段と、前記誤差検出手段が検出した前記誤
差を累積し、累積した前記誤差の大きさが所定の値を超
えた場合に、前記動作クロックを増加または減少させる
ためのクロック制御信号を出力するクロック制御手段
と、前記基準伝送媒体以外の伝送媒体の前記動作周期生
成装置に前記クロック制御信号を送信する制御信号送信
手段とを備えることを特徴とする。
A transmission medium connection device according to a second aspect of the present invention has a transmission medium having an operation cycle determined based on the number of operation clocks and operating in synchronization with the operation cycle generated by the operation cycle generation device. A transmission medium connection device that connects a plurality of transmission mediums, selects one reference transmission medium from the connected transmission media, and compares the operation cycle of the reference transmission medium with the operation cycle of the other transmission medium. Error detecting means for detecting an error, and a clock for accumulating the error detected by the error detecting means and increasing or decreasing the operation clock when the magnitude of the accumulated error exceeds a predetermined value. Clock control means for outputting a control signal, and control signal transmission means for transmitting the clock control signal to the operation cycle generation device of a transmission medium other than the reference transmission medium And it features.

【0029】本願第3の発明の伝送媒体接続装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体を複数接続する伝送媒体接続装
置であって、動作の基準となる基準周期を発生する周期
発生手段と、接続された伝送媒体の中から選択された基
準伝送媒体の前記動作周期もしくは前記周期発生手段が
発生する前記基準周期の何れか一つの前記動作周期を選
択し、接続された伝送媒体の前記動作周期と比較して誤
差を検出する誤差検出手段と、前記誤差検出手段が検出
した前記誤差を累積し、累積した前記誤差の大きさが所
定の値を超えた場合に、前記動作クロックを増加または
減少させるためのクロック制御信号を出力するクロック
制御手段と、前記動作周期生成装置に前記クロック制御
信号を送信する制御信号送信手段とを備えることを特徴
とする。
The transmission medium connecting apparatus according to the third invention of the present application has an operation cycle determined based on the number of operation clocks, and operates in synchronization with the operation cycle generated by the operation cycle generation apparatus. A transmission medium connection device for connecting a plurality of transmission mediums, wherein a cycle generation means for generating a reference cycle serving as a reference for operation, and the operation cycle or the cycle generation means of a reference transmission medium selected from among the connected transmission media, Error detecting means for selecting any one of the operating cycles of the generated reference cycle, comparing the operating cycle of the connected transmission medium to detect an error, and accumulating the error detected by the error detecting means. A clock control unit that outputs a clock control signal for increasing or decreasing the operation clock when the magnitude of the accumulated error exceeds a predetermined value; Characterized in that it comprises a control signal transmitting means for transmitting the clock control signal to create period generator.

【0030】本願第4の発明の動作周期生成装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体に接続される動作周期生成装置
であって、前記動作クロックを数えるカウンタと、前記
カウンタの値が所定の値になった時に前記動作周期の基
準となる基準信号を前記伝送媒体に送信する動作周期出
力手段と、前記動作クロックの増加もしくは減少を指示
するクロック制御信号を受信して出力する制御信号受信
手段と、前記制御信号受信手段が受信した前記クロック
制御信号に基づいて、前記カウンタの値を増加または減
少させるカウンタ制御手段とを備えることを特徴とす
る。
An operation cycle generation device according to a fourth aspect of the present invention has an operation cycle determined based on the number of operation clocks, and a transmission medium that operates in synchronization with the operation cycle generated by the operation cycle generation device. An operation cycle generation device connected, comprising: a counter for counting the operation clock; and an operation cycle output for transmitting a reference signal serving as a reference of the operation cycle to the transmission medium when a value of the counter reaches a predetermined value. Means, a control signal receiving means for receiving and outputting a clock control signal for instructing an increase or decrease of the operation clock, and increasing the value of the counter based on the clock control signal received by the control signal receiving means. Or, a counter control means for decreasing the number is provided.

【0031】本願第5の発明の動作周期生成装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体に接続される動作周期生成装置
であって、前記動作クロックを数えるカウンタと、前記
カウンタの値が所定の値になった時に前記動作周期の基
準となる基準信号を前記伝送媒体に送信する動作周期出
力手段と、前記動作クロックを増加または減少させるた
めの制御を行う制御期間と、前記制御期間内に増加また
は減少させるクロック数を含むクロック制御信号を受信
して出力する制御信号受信手段と、前記クロック制御信
号に含まれる前記制御期間を計測し、前記クロック制御
信号に含まれる増加または減少させるクロック数に基づ
いて、前記制御期間内に一定間隔で前記カウンタの値を
1だけ増加または減少させるためのカウンタ制御信号を
出力するカウンタ制御均一化手段と、前記カウンタ制御
信号に基づいて、前記カウンタの値を増加または減少さ
せるカウンタ制御手段とを備えることを特徴とする。
According to a fifth aspect of the present invention, there is provided an operation cycle generating apparatus having an operation cycle determined based on the number of operation clocks, wherein the transmission medium operates in synchronization with the operation cycle generated by the operation cycle generation apparatus. An operation cycle generation device connected, comprising: a counter for counting the operation clock; and an operation cycle output for transmitting a reference signal serving as a reference of the operation cycle to the transmission medium when a value of the counter reaches a predetermined value. Means, a control period for performing control for increasing or decreasing the operation clock, control signal receiving means for receiving and outputting a clock control signal including the number of clocks to be increased or decreased during the control period, and the clock The control period included in the control signal is measured, and the control period is determined based on the number of clocks to be increased or decreased included in the clock control signal. Counter control equalizing means for outputting a counter control signal for increasing or decreasing the value of the counter by one at regular intervals, and counter control for increasing or decreasing the value of the counter based on the counter control signal Means.

【0032】本願第6の発明の伝送媒体接続装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体を複数接続する伝送媒体接続装
置であって、基準周期を発生する周期発生手段と、接続
された伝送媒体の前記動作周期と前記周期発生手段が発
生する前記基準周期を比較して誤差を検出する誤差検出
手段と、前記誤差検出手段が検出した前記誤差を累積
し、累積した前記誤差の大きさが所定の値を超えた場合
に、前記動作周期を延長または短縮させるための周期制
御信号を出力する周期制御手段と、前記動作周期生成装
置に前記周期制御信号を送信する制御信号送信手段とを
備えることを特徴とする。
A transmission medium connecting device according to a sixth aspect of the present invention includes a transmission medium having an operation cycle determined based on the number of operation clocks and operating in synchronization with the operation cycle generated by the operation cycle generation device. A transmission medium connection apparatus for connecting a plurality of transmission media, wherein a cycle generation means for generating a reference cycle, and an error for detecting an error by comparing the operation cycle of the connected transmission medium with the reference cycle generated by the cycle generation means. Detecting means for accumulating the errors detected by the error detecting means, and outputting a cycle control signal for extending or shortening the operation cycle when the magnitude of the accumulated errors exceeds a predetermined value. It is characterized by comprising a cycle control means, and a control signal transmission means for transmitting the cycle control signal to the operation cycle generation device.

【0033】本願第7の発明の伝送媒体接続装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体を複数接続する伝送媒体接続装
置であって、接続された伝送媒体の中から基準伝送媒体
を一つ選択し、前記基準伝送媒体の前記動作周期とそれ
以外の伝送媒体の前記動作周期を比較して誤差を検出す
る誤差検出手段と、前記誤差検出手段が検出した前記誤
差を累積し、累積した前記誤差の大きさが所定の値を超
えた場合に、前記動作周期を延長または短縮させるため
の周期制御信号を出力する周期制御手段と、前記基準伝
送媒体以外の伝送媒体の前記動作周期生成装置に前記周
期制御信号を送信する制御信号送信手段とを備えること
を特徴とする。
A transmission medium connection device according to a seventh aspect of the present invention has a transmission medium having an operation cycle determined based on the number of operation clocks and operating in synchronization with the operation cycle generated by the operation cycle generation device. A transmission medium connection device that connects a plurality of transmission mediums, selects one reference transmission medium from the connected transmission media, and compares the operation cycle of the reference transmission medium with the operation cycle of the other transmission medium. Error detecting means for detecting an error, and a cycle for accumulating the errors detected by the error detecting means and extending or shortening the operation cycle when the magnitude of the accumulated error exceeds a predetermined value. It is characterized by comprising a cycle control means for outputting a control signal, and a control signal transmitting means for transmitting the cycle control signal to the operation cycle generation device of a transmission medium other than the reference transmission medium.

【0034】本願第8の発明の伝送媒体接続装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体を複数接続する伝送媒体接続装
置であって、動作の基準となる基準周期を発生する周期
発生手段と、接続された伝送媒体の中から選択された基
準伝送媒体の動作周期もしくは前記周期発生手段が発生
する前記基準周期の何れか一つの前記動作周期を選択
し、接続された伝送媒体の動作周期と比較して誤差を検
出する誤差検出手段と、前記誤差検出手段が検出した前
記誤差を累積し、累積した前記誤差の大きさが所定の値
を超えた場合に、前記動作周期を延長または短縮させる
ための周期制御信号を出力する周期制御手段と、前記動
作周期生成装置に前記周期制御信号を送信する制御信号
送信手段とを備えることを特徴とする。
The transmission medium connection device according to the eighth aspect of the present invention has a transmission medium having an operation cycle determined based on the number of operation clocks and operating in synchronization with the operation cycle generated by the operation cycle generation device. A transmission medium connection device for connecting a plurality of transmission media, wherein a period generation means for generating a reference period serving as a reference for operation, and an operation period of the reference transmission medium selected from the connected transmission media or the period generation means generates Selecting any one of the operation cycles of the reference cycle to be performed, error detection means for detecting an error by comparing with the operation cycle of the connected transmission medium, and accumulating the error detected by the error detection means, A cycle control unit that outputs a cycle control signal for extending or shortening the operation cycle when the accumulated error exceeds a predetermined value; Characterized in that it comprises a control signal transmitting means for transmitting a periodic control signal.

【0035】本願第9の発明の動作周期生成装置は、動
作クロックのクロック数に基づいて決定される動作周期
を持ち、動作周期生成装置が生成する前記動作周期に同
期して動作する伝送媒体に接続される動作周期生成装置
であって、前記動作クロックを数えるカウンタと、前記
動作周期の延長または短縮を指示する周期制御信号を受
信して出力する制御信号受信手段と、前記制御信号受信
手段から前記周期制御信号が出力されていない間には前
記カウンタの値が所定の値になったとき前記動作周期の
基準となる基準信号を前記伝送媒体に送信し、前記制御
信号受信手段から前記周期制御信号が入力された場合に
は前記カウンタの値が所定の値よりも前記周期制御信号
に含まれるクロックの分だけ後もしくは前に前記基準信
号を前記伝送媒体に送信する動作周期出力手段とを備え
ることを特徴とする。
An operation cycle generation device according to a ninth aspect of the present invention has an operation cycle determined based on the number of operation clocks, and operates on a transmission medium that operates in synchronization with the operation cycle generated by the operation cycle generation device. An operation cycle generation device to be connected, comprising: a counter that counts the operation clock; a control signal reception unit that receives and outputs a cycle control signal that instructs extension or reduction of the operation cycle; and a control signal reception unit. When the value of the counter reaches a predetermined value while the period control signal is not output, a reference signal serving as a reference of the operation period is transmitted to the transmission medium, and the period control signal is received from the control signal receiving unit. When a signal is input, the value of the counter is greater than or equal to a predetermined value by the amount of the clock included in the period control signal, or the reference signal is transmitted to the transmission medium Characterized in that it comprises an operation period output means for transmitting.

【0036】本願第10の発明の動作周期生成装置は、
動作クロックのクロック数に基づいて決定される動作周
期を持ち、動作周期生成装置が生成する前記動作周期に
同期して動作する伝送媒体に接続される動作周期生成装
置であって、前記動作クロックを数えるカウンタと、前
記動作周期の延長または短縮するための制御を行う制御
期間と、前記制御期間内に1クロック分だけ延長または
短縮させる回数を含む周期制御信号を受信して出力する
制御信号受信手段と、前記周期制御信号に含まれる前記
制御期間を計測し、前記周期制御信号に含まれる延長ま
たは短縮させる回数に基づいて、前記制御期間内に一定
間隔で前記動作周期を1クロック分だけ延長または短縮
するための周期生成制御信号を出力する周期制御均一化
手段と、前記周期制御均一化手段から前記周期生成期制
御信号が出力されていない間には前記カウンタの値が所
定の値になったとき前記動作周期の基準となる基準信号
を前記伝送媒体に送信し、前記周期制御均一化手段から
前記周期生成制御信号が入力された場合には、前記周期
生成制御信号に基づいて前記カウンタの値が所定の値よ
りも1クロック分だけ後もしくは前に前記基準信号を前
記伝送媒体に送信する動作周期出力手段とを備えること
を特徴とする。
The operation cycle generating device according to the tenth aspect of the present invention comprises:
An operation cycle generation device that has an operation cycle determined based on the number of operation clocks and is connected to a transmission medium that operates in synchronization with the operation cycle generated by the operation cycle generation device. Control signal receiving means for receiving and outputting a counting counter, a control period for performing control for extending or shortening the operation period, and a period control signal including the number of times for extending or shortening by one clock within the control period Measuring the control period included in the period control signal, and extending or shortening the operation period by one clock at regular intervals within the control period based on the number of times of extension or shortening included in the period control signal. A period control equalizing unit that outputs a period generation control signal for shortening, and the period generation period control signal is output from the period control equalization unit. When the value of the counter reaches a predetermined value during a period when the reference signal serving as a reference of the operation cycle is transmitted to the transmission medium, and the cycle generation control signal is input from the cycle control equalizing means. An operation cycle output unit that transmits the reference signal to the transmission medium after or before the value of the counter by one clock from a predetermined value based on the cycle generation control signal. I do.

【0037】本願第11の発明の伝送媒体接続制御装置
は、動作クロックのクロック数に基づいて決定される動
作周期を持ち、動作周期生成装置が生成する前記動作周
期に同期して動作する伝送媒体を複数接続する伝送媒体
接続装置を制御する伝送媒体接続制御装置であって、前
記伝送媒体の接続構成を解析する解析手段と、前記解析
手段の解析結果に基づいて、複数の前記伝送媒体を同期
して動作させる場合の前記動作周期の基準を決定する基
準決定手段と、前記基準決定手段が決定した前記動作周
期の基準を前記伝送媒体接続装置に通知する基準通知手
段とを備えることを特徴とする。
A transmission medium connection control device according to an eleventh aspect of the present invention has an operation cycle determined based on the number of operation clocks, and operates in synchronization with the operation cycle generated by the operation cycle generation device. A transmission medium connection control device that controls a transmission medium connection device that connects a plurality of transmission media, the analysis unit analyzing the connection configuration of the transmission medium, and synchronizing the plurality of transmission media based on an analysis result of the analysis unit. Reference operating means for determining a reference of the operation cycle in the case where the operation is performed, and reference notifying means for notifying the transmission medium connecting device of the reference of the operation cycle determined by the reference determining means, I do.

【0038】[0038]

【発明の実施の形態】本発明の実施の形態を図面を用い
て説明する。
Embodiments of the present invention will be described with reference to the drawings.

【0039】(第1の実施の形態)図1は、第1の実施
の形態の伝送媒体接続装置と動作周期生成装置、および
伝送媒体接続制御装置の主要な構成と接続状態を示すブ
ロック図である。なお本実施の形態では、伝送媒体とし
てIEEE1394インタフェースを使用するものとす
る。
(First Embodiment) FIG. 1 is a block diagram showing a main configuration and a connection state of a transmission medium connection device, an operation cycle generation device, and a transmission medium connection control device according to a first embodiment. is there. In the present embodiment, an IEEE 1394 interface is used as a transmission medium.

【0040】本実施の形態では、伝送媒体接続装置10
1が第1の伝送媒体105と第2の伝送媒体106とを
接続し、2つの伝送媒体の間でサイクルの同期を実現す
る場合について示す。
In this embodiment, the transmission medium connection device 10
1 shows the case where the first transmission medium 105 connects the first transmission medium 105 and the second transmission medium 106 to realize cycle synchronization between the two transmission media.

【0041】2つの伝送媒体を接続してパケットを相互
に転送し、かつ伝送媒体の間でサイクルの同期を実現す
る伝送媒体接続装置101は、周期発生手段107、基
準選択手段108と、第1の伝送媒体105に接続され
る誤差検出手段109、クロック制御手段110、制御
信号送信手段111、および第2の伝送媒体106に接
続される誤差検出手段112,クロック制御手段11
3、制御信号送信手段114より構成される。
A transmission medium connection device 101 for connecting two transmission media to transfer packets to each other and for realizing cycle synchronization between the transmission media includes a period generating means 107, a reference selecting means 108, Detecting means 109, clock control means 110, control signal transmitting means 111, and error detecting means 112, clock controlling means 11 connected to the second transmission medium 106.
3. It is composed of control signal transmitting means 114.

【0042】なお、第1の伝送媒体105に接続される
各手段と、第2の伝送媒体106に接続される各手段は
同等の機能を有するブロックであり、接続される伝送媒
体の数が増えた場合には、その数だけ前記の各手段を備
えるものである。
Each unit connected to the first transmission medium 105 and each unit connected to the second transmission medium 106 are blocks having equivalent functions, and the number of connected transmission media increases. In such a case, each of the above means is provided by the number thereof.

【0043】一方、伝送媒体の同期関係を決定して伝送
媒体接続装置101を制御する伝送媒体接続制御装置1
02は、基準決定手段115、解析手段116、基準通
知手段117より構成される。
On the other hand, the transmission medium connection control device 1 which determines the synchronization relationship of the transmission media and controls the transmission medium connection device 101
Reference numeral 02 includes a reference determination unit 115, an analysis unit 116, and a reference notification unit 117.

【0044】さらに、第1の伝送媒体105に接続さ
れ、第1の伝送媒体105においてサイクルマスタとし
て機能し、サイクル基準を送信する第1の動作周期生成
装置103は、制御信号受信手段118,動作周期出力
手段119、カウンタ制御手段120、カウンタ121
より構成される。同様に第2の伝送媒体106に接続さ
れる第2の動作周期生成手段104も、制御信号受信手
段122、動作周期出力手段123、カウンタ制御手段
124、カウンタ125より構成される。
Further, the first operation cycle generation device 103 connected to the first transmission medium 105, which functions as a cycle master in the first transmission medium 105, and transmits a cycle reference, includes a control signal receiving means 118, Period output means 119, counter control means 120, counter 121
It is composed of Similarly, the second operation cycle generation means 104 connected to the second transmission medium 106 also includes a control signal reception means 122, an operation cycle output means 123, a counter control means 124, and a counter 125.

【0045】まず、第1の動作周期生成装置103は、
自身の持つクロックを基準にして、このクロックをカウ
ンタ121によって計測する。動作周期出力手段119
は、カウンタ121の値を監視し、3072クロック毎
にサイクルのタイミングを生成し、サイクル・スタート
・パケットとして第1の伝送媒体105に送信している
ものとする。同様に第2の伝送媒体においても、第2の
動作周期生成装置104のカウンタ125の値に基づい
て動作周期出力手段123がサイクル・スタート・パケ
ットを送信している。
First, the first operation cycle generation device 103
This clock is measured by the counter 121 with reference to its own clock. Operating cycle output means 119
Monitors the value of the counter 121, generates a cycle timing every 3072 clocks, and transmits it to the first transmission medium 105 as a cycle start packet. Similarly, also in the second transmission medium, the operation cycle output unit 123 transmits a cycle start packet based on the value of the counter 125 of the second operation cycle generation device 104.

【0046】このように、独立のサイクルを持つ2つの
伝送媒体を伝送媒体接続装置101で相互に接続した場
合、この2つの伝送媒体が接続されたことを検出した伝
送媒体接続制御装置102の解析手段116は、第1の
伝送媒体105,第2の伝送媒体106等、各伝送媒体
に関する情報を収集し、いくつの伝送媒体が接続されて
いるか、また従属接続されている伝送媒体があるか否か
などの伝送媒体同士の接続状況を解析する。この接続の
検出や接続状態の解析は、動作周期の同期に関係の無い
アシンクロナス・パケットを用いて行うことができる。
As described above, when two transmission media having independent cycles are connected to each other by the transmission medium connection device 101, the analysis of the transmission medium connection control device 102 which detects the connection of the two transmission media is performed. The means 116 collects information about each transmission medium, such as the first transmission medium 105 and the second transmission medium 106, and determines how many transmission media are connected and whether there are any cascade-connected transmission media. Analyze the connection status between transmission media, such as. The detection of the connection and the analysis of the connection state can be performed using an asynchronous packet which is not related to the synchronization of the operation cycle.

【0047】基準決定手段115は、解析手段116の
解析結果に基づいて接続された全ての伝送媒体が同一の
サイクル基準に基づいて動作するために必要な、サイク
ルの基準を一つだけ決定する。そして基準通知手段11
7は、基準決定手段115が決定した同期の基準を示す
指示をそれぞれの伝送媒体接続装置に送信する。
The criterion determining means 115 determines only one cycle criterion necessary for all the connected transmission media to operate based on the same cycle criterion based on the analysis result of the analyzing means 116. And the reference notification means 11
7 transmits an instruction indicating the synchronization reference determined by the reference determination means 115 to each transmission medium connection device.

【0048】例えば図2に示すように、第1の伝送媒体
204〜第7の伝送媒体210の7つの伝送媒体が第1
の伝送媒体接続装置201〜第3の伝送媒体接続装置2
03の3つの伝送媒体接続装置によって図2に示す形態
で接続されていた場合、解析手段116(図2には図示
されず)は図2に示される接続状況を解析し、基準決定
手段115はこの中から一つの伝送媒体もしくは一つの
伝送媒体接続装置をサイクルの基準として選択する。
For example, as shown in FIG. 2, seven transmission media of a first transmission medium 204 to a seventh transmission medium 210
Transmission medium connection device 201 to third transmission medium connection device 2
2 are connected in the form shown in FIG. 2 by the three transmission medium connecting devices 03, the analyzing means 116 (not shown in FIG. 2) analyzes the connection status shown in FIG. One transmission medium or one transmission medium connection device is selected from these as a cycle reference.

【0049】例えば、ここで第2の伝送媒体接続装置2
02が基準として選択された場合、基準通知手段117
は、第2の伝送媒体接続装置202に対して、第3の伝
送媒体206、第4の伝送媒体207、第5の伝送媒体
208のサイクル基準として第2の伝送媒体接続装置2
02が持つサイクル周期を使用することを示す通知を行
う(同期実現回数1回目)。
For example, here, the second transmission medium connection device 2
When 02 is selected as the reference, the reference notification means 117
The second transmission medium connection device 2 is used as a cycle reference for the third transmission medium 206, the fourth transmission medium 207, and the fifth transmission medium 208 with respect to the second transmission medium connection device 202.
A notification indicating that the cycle period of 02 is to be used is issued (the first synchronization realization).

【0050】さらに基準通知手段117は、第1の伝送
媒体接続装置201に対して、第1の伝送媒体204と
第2の伝送媒体205のサイクル基準として、第3の伝
送媒体206のサイクル周期を使用することを示す通知
を行う(同期実現回数2回目)。なぜならば、第3の伝
送媒体206の動作周期は、1回目の同期実現により、
サイクル基準となっている第2の伝送媒体接続装置20
2のサイクル周期に同期しているからである。
Further, the reference notifying means 117 sends the cycle period of the third transmission medium 206 to the first transmission medium connecting device 201 as a cycle reference of the first transmission medium 204 and the second transmission medium 205. A notification indicating the use is given (second synchronization realization). This is because the operation cycle of the third transmission medium 206 is
Second transmission medium connection device 20 serving as a cycle reference
This is because they are synchronized with the second cycle period.

【0051】さらに基準通知手段117は、第3の伝送
媒体接続装置203に対して第6の伝送媒体209と第
7の伝送媒体210のサイクル基準として第5の伝送媒
体208のサイクル周期を使用することを示す通知を行
う(同期実現回数2回目)。なぜならば、第5の伝送媒
体208の動作周期は、1回目の同期実現により、サイ
クル基準となっている第2の伝送媒体接続装置202の
サイクル周期に同期しているからである。
Further, the reference notifying means 117 uses the cycle period of the fifth transmission medium 208 as a cycle reference of the sixth transmission medium 209 and the seventh transmission medium 210 for the third transmission medium connection device 203. (The second synchronization realization). This is because the operation cycle of the fifth transmission medium 208 is synchronized with the cycle cycle of the second transmission medium connection device 202 serving as the cycle reference by the first synchronization.

【0052】基準決定手段115は、このようなサイク
ルの基準を決定する際、解析手段116の解析結果に基
づいて、下記のような手順によって、同期を行う従属関
係の数が少なくなるように基準を選択することができ
る。これは例えば、同期を行う伝送媒体の、接続構成上
の中央に位置する基準を選択することによって可能とな
る。従属関係の数が多くなることは、誤差の発生や位相
差を生じる原因になるとともに、同期が成立するまでの
時間も長く必要になることが予想されるため、この数を
少なくすることのできる基準を決定することが望まし
い。
When determining the reference of such a cycle, the reference determining means 115 performs the following procedure based on the analysis result of the analyzing means 116 so as to reduce the number of dependent relations to be synchronized by the following procedure. Can be selected. This is possible, for example, by selecting a reference located at the center of the connection configuration of the transmission medium to be synchronized. An increase in the number of dependencies may cause an error or a phase difference, and it is expected that a longer time is required until synchronization is established. Therefore, the number can be reduced. It is desirable to determine the criteria.

【0053】例えば、上記の例では、図2において第2
の伝送媒体接続装置202を基準としたが、仮に第1の
伝送媒体204のサイクル周期を基準にした場合、第3
の伝送媒体206は第1の伝送媒体204のサイクル周
期に同期し(同期実現回数1回目)、第5の伝送媒体2
08は第3の伝送媒体206のサイクル周期に同期し
(同期実現回数2回目)、さらに第7の伝送媒体210
は第5の伝送媒体208のサイクル周期に同期する(同
期実現回数3回目)ことになる。
For example, in the above example, the second
Although the transmission medium connection device 202 is used as a reference, if the cycle period of the first transmission medium 204 is used as a reference, the third
Transmission medium 206 is synchronized with the cycle period of the first transmission medium 204 (the first synchronization realization), and the fifth transmission medium 2
08 is synchronized with the cycle period of the third transmission medium 206 (second time of synchronization realization), and is further synchronized with the seventh transmission medium 210.
Is synchronized with the cycle period of the fifth transmission medium 208 (the third synchronization realization).

【0054】このため、サイクルを受信して動作周期の
制御を行う信号を送信するという処理を行う回数が、第
2の伝送媒体接続装置202を基準とした場合に2回だ
ったのに比べて、第1の伝送媒体204を基準とした場
合には3回(上記同期実現回数)になる。したがって、
第1の伝送媒体204のサイクル周期を選択するより
も、第2の伝送媒体接続装置202のサイクル基準を選
択する方が望ましい。
For this reason, the number of times that the process of receiving the cycle and transmitting the signal for controlling the operation cycle is performed twice as compared with the case where the second transmission medium connection device 202 is used as a reference. When the first transmission medium 204 is used as a reference, the number of times is three (the number of times of realizing the synchronization). Therefore,
It is more preferable to select the cycle reference of the second transmission medium connection device 202 than to select the cycle period of the first transmission medium 204.

【0055】以上のように、基準決定手段115は解析
手段116から受け取る伝送媒体同士の接続関係の解析
結果を基に、同期を実現するための制御処理を行う回数
が小さくなるようにサイクル周期の基準を選択する。
As described above, based on the analysis result of the connection relationship between the transmission media received from the analyzing means 116, the reference determining means 115 sets the cycle period so that the number of times of performing the control processing for realizing the synchronization becomes small. Select criteria.

【0056】一方、図1において、伝送媒体接続制御装
置102から、サイクル周期の基準を示す通知を受け取
った伝送媒体接続装置101は、この指示に基づいてサ
イクル周期を同期させるための、以下に説明する動作を
行う。
On the other hand, in FIG. 1, the transmission medium connection device 101, which has received the notification indicating the reference of the cycle period from the transmission medium connection control device 102, synchronizes the cycle period based on this instruction. Perform the operation of

【0057】まず伝送媒体接続制御装置102から受け
取る指示が、伝送媒体接続装置101が内部に持つサイ
クル周期を基準とするものであった場合、基準選択手段
108はサイクル周期の基準として周期発生手段107
から入力されるサイクル周期を選択して出力する。周期
発生手段107は、自身が持つ24.576MHzのク
ロックをカウントして、3072クロック毎に8KHz
のサイクル周期を発生させるものである。
First, when the instruction received from the transmission medium connection control apparatus 102 is based on the cycle period of the transmission medium connection apparatus 101, the reference selection means 108 sets the cycle generation means 107 as the cycle cycle reference.
Selects and outputs the cycle period input from. The period generating means 107 counts its own clock of 24.576 MHz and outputs 8 KHz every 3072 clocks.
Is generated.

【0058】次に誤差検出手段109は基準選択手段1
08から入力されるサイクル周期と、第1の伝送媒体1
05から受信したサイクル周期を比較してその誤差を出
力する。クロック制御手段110は、誤差検出手段10
9が検出した誤差を累積し、この誤差が所定の値以上に
なった場合に、第1の動作周期生成装置103のカウン
タ121の値を増加または減少させるためのクロック制
御信号を出力する。このようなクロック制御信号を発生
させるのは、例えば、基準とするサイクル周期と第1の
伝送媒体105から受信したサイクル周期の誤差が、動
作クロックで1クロック以上になった場合である。すな
わち2つの周期の差が、IEEE1394インタフェー
スの動作クロックである24.576MHzでの1クロ
ックに相当する約40.7nsecを越えた場合に、カ
ウンタ121の値を1クロック増加または減少させるた
めのクロック制御信号を出力する。
Next, the error detecting means 109 is the reference selecting means 1
08 and the first transmission medium 1
05 and compares the received cycle periods and outputs the error. The clock control means 110 is connected to the error detection means 10
9 accumulates the detected errors, and outputs a clock control signal for increasing or decreasing the value of the counter 121 of the first operation cycle generation device 103 when this error becomes equal to or more than a predetermined value. Such a clock control signal is generated, for example, when an error between the reference cycle period and the cycle period received from the first transmission medium 105 is one or more operation clocks. That is, when the difference between the two periods exceeds about 40.7 nsec corresponding to one clock at 24.576 MHz, which is the operation clock of the IEEE 1394 interface, clock control for increasing or decreasing the value of the counter 121 by one clock. Output a signal.

【0059】上記したとおりの信号であるので、クロッ
ク制御信号は、第1の動作周期生成装置103が生成し
ているサイクル周期が周期発生手段107が発生する周
期よりも短い場合には、カウンタ121の値を減少させ
るための指示を含むものであり、一方、第1の動作周期
生成装置103が生成しているサイクル周期が周期発生
手段107が発生する周期よりも長い場合には、カウン
タ121の値を増加させる指示を含むものである。
Since the signal is as described above, if the cycle period generated by the first operation period generation device 103 is shorter than the period generated by the period generation unit 107, the clock control signal , On the other hand, if the cycle period generated by the first operation period generation device 103 is longer than the period generated by the period generation unit 107, It includes an instruction to increase the value.

【0060】制御信号送信手段111は、クロック制御
手段110が出力したクロック制御信号を第1の伝送媒
体105を通じて、第1の動作周期生成装置103に送
信する。
The control signal transmission means 111 transmits the clock control signal output from the clock control means 110 to the first operation cycle generation device 103 via the first transmission medium 105.

【0061】このクロック制御信号の送信には図7に示
したアシンクロナス・パケットを使用することができ
る。この場合、動作周期生成装置103のアドレス空間
上にカウンタ121の値を増加または減少させるための
レジスタを定義し、このレジスタへ増加または減少させ
るクロック数を書き込むことによってクロック制御信号
を送信する。カウンタ121を増加または減少させるク
ロック数は書き込みデータ710に含まれて送信され
る。
For transmitting the clock control signal, the asynchronous packet shown in FIG. 7 can be used. In this case, a register for increasing or decreasing the value of the counter 121 is defined in the address space of the operation cycle generation device 103, and a clock control signal is transmitted by writing the number of clocks to be increased or decreased to this register. The number of clocks for increasing or decreasing the counter 121 is included in the write data 710 and transmitted.

【0062】一方、このクロック制御信号を受信する第
1の動作周期生成装置103の制御信号受信手段118
は、第1の伝送媒体105より受信したクロック制御信
号をカウンタ制御手段120に出力する。カウンタ制御
手段120は、入力したクロック制御信号にしたがっ
て、カウンタ121の値を増加または減少させる。これ
によって、カウンタ121の値が増加または減少し、サ
イクルの長さが指定されたクロックの分だけ延長、もし
くは短縮されることとなる。
On the other hand, the control signal receiving means 118 of the first operation cycle generation device 103 which receives this clock control signal
Outputs the clock control signal received from the first transmission medium 105 to the counter control means 120. The counter control unit 120 increases or decreases the value of the counter 121 according to the input clock control signal. As a result, the value of the counter 121 increases or decreases, and the cycle length is extended or shortened by the designated clock.

【0063】以上のようにして、第1の動作周期生成装
置103が生成する第1の伝送媒体のサイクル周期は、
伝送媒体接続装置101の周期発生手段107が発生す
るサイクル周期に同期できることになる。
As described above, the cycle period of the first transmission medium generated by the first operation cycle generation device 103 is
It can be synchronized with the cycle period generated by the period generating means 107 of the transmission medium connection device 101.

【0064】さらに、第2の伝送媒体106について
も、上記と同様に、誤差検出手段112が誤差の検出を
行い、クロック制御手段113がクロック制御信号を出
力し、制御信号送信手段114がこのクロック制御信号
を第2の動作周期生成装置104に送信する。一方、こ
れを第2の動作周期生成装置104の制御信号受信手段
122が受信して、カウンタ制御手段124がカウンタ
125の値を増加または減少させることで、第2の伝送
媒体106のサイクル周期も伝送媒体接続装置101の
周期発生手段107のサイクル周期に同期することにな
る。
Further, for the second transmission medium 106, similarly to the above, the error detection means 112 detects an error, the clock control means 113 outputs a clock control signal, and the control signal transmission means 114 A control signal is transmitted to the second operation cycle generation device 104. On the other hand, this is received by the control signal receiving means 122 of the second operation cycle generation device 104, and the counter control means 124 increases or decreases the value of the counter 125, so that the cycle cycle of the second transmission medium 106 is also reduced. This is synchronized with the cycle period of the cycle generation unit 107 of the transmission medium connection device 101.

【0065】一方、伝送媒体接続制御装置102から受
け取る指示が、伝送媒体接続装置101が内部に持つサ
イクル周期を基準とするものでなく、伝送媒体接続制御
装置102から受け取る指示が、伝送媒体接続装置10
1が内部に持つサイクル周期を基準とするものでなかっ
た場合、すなわち、伝送媒体接続装置101が伝送媒体
接続制御装置102からサイクル周期の基準として第1
の伝送媒体105のサイクル周期を使用することを示す
通知を受け取った場合には、伝送媒体接続装置101の
基準選択手段108は、第1の伝送媒体105から受信
するサイクル周期を選択して出力する。この場合、第1
の伝送媒体105に接続される誤差検出手段109で
は、比較を行う対象と基準が同一のサイクル周期である
ため、誤差は発生せず、クロック制御信号も出力されな
い。
On the other hand, the instruction received from the transmission medium connection control device 102 is not based on the cycle period of the transmission medium connection device 101, but the instruction received from the transmission medium connection control device 102 is 10
1 is not based on the internal cycle period, that is, the transmission medium connection device 101 sends the first
When the notification indicating that the cycle period of the transmission medium 105 is used is received, the reference selecting unit 108 of the transmission medium connection device 101 selects and outputs the cycle period received from the first transmission medium 105. . In this case, the first
In the error detecting means 109 connected to the transmission medium 105, no error occurs and no clock control signal is output because the comparison target and the reference have the same cycle period.

【0066】一方、第2の伝送媒体106に接続される
誤差検出手段は第2の伝送媒体106から受信するサイ
クル周期と、基準選択手段108から入力される第1の
伝送媒体105のサイクル周期を比較して誤差を検出す
る。検出された誤差に基づくカウンタの値の増加、また
は減少については上述の周期発生手段107の発生する
サイクル周期を基準にした場合と同様である。
On the other hand, the error detecting means connected to the second transmission medium 106 determines the cycle period received from the second transmission medium 106 and the cycle period of the first transmission medium 105 inputted from the reference selecting means 108. The error is detected by comparison. The increase or decrease of the value of the counter based on the detected error is the same as the case where the cycle period generated by the period generating means 107 is used as a reference.

【0067】なお、クロック制御信号として、カウンタ
121の値を1だけ増加、もしくは1だけ減少させる指
示のみを使用することで、クロック制御手段110およ
び113、カウンタ制御手段120および124の構成
を簡略化することが可能となる。
By using only an instruction to increase or decrease the value of the counter 121 by 1 as the clock control signal, the configurations of the clock control means 110 and 113 and the counter control means 120 and 124 are simplified. It is possible to do.

【0068】(第2の実施の形態)図3は、第2の実施
の形態の伝送媒体接続装置と動作周期生成装置、および
伝送媒体接続制御装置の主要な構成と接続状態を示すブ
ロック図である。本実施の形態においても、伝送媒体と
してIEEE1394インタフェースを使用するものと
する。また第1の実施の形態と同様に伝送媒体接続装置
301が第1の伝送媒体105と第2の伝送媒体106
を接続し、2つの伝送媒体の間でサイクルの同期を実現
する場合について示す。
(Second Embodiment) FIG. 3 is a block diagram showing a main configuration and a connection state of a transmission medium connection device, an operation cycle generation device, and a transmission medium connection control device according to a second embodiment. is there. Also in this embodiment, an IEEE 1394 interface is used as a transmission medium. Also, as in the first embodiment, the transmission medium connection device 301 includes the first transmission medium 105 and the second transmission medium 106.
Are connected to realize cycle synchronization between two transmission media.

【0069】なお、第1の実施の形態と同一の動作を実
現する各手段は同一の符号を付しており、特に示さない
場合には、本実施の形態においても第1の実施の形態と
同じ動作を実現しているものとする。
The means for realizing the same operations as in the first embodiment are denoted by the same reference numerals, and unless otherwise specified, this embodiment will be the same as the first embodiment. It is assumed that the same operation is realized.

【0070】2つの伝送媒体を接続してパケットを相互
に転送し、かつ伝送媒体の間でサイクルの同期を実現す
る伝送媒体接続装置301は、周期発生手段107、基
準選択手段108と、第1の伝送媒体105に接続され
る誤差検出手段109、クロック制御手段304、制御
信号送信手段111、および第2の伝送媒体106に接
続される誤差検出手段112,クロック制御手段30
5、制御信号送信手段114より構成される。なお、第
1の伝送媒体105に接続される各手段と、第2の伝送
媒体106に接続される各手段は同等の機能を有するブ
ロックであり、接続される伝送媒体の数が増えた場合に
は、その数だけ前記各手段を備えるものである。
A transmission medium connecting device 301 for connecting two transmission media to transfer packets to each other and realizing cycle synchronization between the transmission media includes a period generating means 107, a reference selecting means 108, Detecting means 109, clock control means 304, control signal transmitting means 111, and error detecting means 112, clock controlling means 30 connected to the second transmission medium 106.
5. It is composed of control signal transmitting means 114. Note that each unit connected to the first transmission medium 105 and each unit connected to the second transmission medium 106 are blocks having the same function, and when the number of connected transmission media increases, Is provided with each of the means described above.

【0071】一方、伝送媒体の同期関係を決定して伝送
媒体接続装置301を制御する伝送媒体接続制御102
は、基準決定手段115、解析手段116、基準通知手
段117より構成される。
On the other hand, the transmission medium connection control 102 which determines the synchronization relationship of the transmission medium and controls the transmission medium connection device 301
Is composed of a reference determination unit 115, an analysis unit 116, and a reference notification unit 117.

【0072】さらに、第1の伝送媒体105に接続さ
れ、第1の伝送媒体105においてサイクルマスタとし
て機能し、サイクル基準を送信する第1の動作周期生成
装置302は、制御信号受信手段118、動作周期出力
手段119、カウンタ均一化手段306、カウンタ12
1より構成される。同様に第2の伝送媒体106に接続
される第2の動作周期生成手段303も、制御信号受信
手段122、動作周期出力手段123、カウンタ均一化
手段307、カウンタ125より構成される。
Further, the first operation cycle generation device 302 connected to the first transmission medium 105, which functions as a cycle master in the first transmission medium 105, and transmits a cycle reference, includes a control signal receiving means 118, Period output means 119, counter equalization means 306, counter 12
1 Similarly, the second operation cycle generation means 303 connected to the second transmission medium 106 also includes a control signal reception means 122, an operation cycle output means 123, a counter equalization means 307, and a counter 125.

【0073】まず、第1の動作周期生成装置302のカ
ウンタ121と動作周期出力手段119、および第2の
動作周期生成装置303のカウンタ125と動作周期出
力手段123は、第1の実施の形態と同様の動作を行
い、それぞれ第1の伝送媒体105と第2の伝送媒体1
06にサイクル周期としてサイクル・スタート・パケッ
トを送信する。
First, the counter 121 and the operation cycle output means 119 of the first operation cycle generation device 302 and the counter 125 and the operation cycle output means 123 of the second operation cycle generation device 303 are different from those of the first embodiment. The same operation is performed, and the first transmission medium 105 and the second transmission medium 1
At step 06, a cycle start packet is transmitted as a cycle period.

【0074】また、伝送媒体接続制御装置102も第1
の実施の形態と同様に解析手段116が伝送媒体の接続
状況を解析し、この結果をもとに基準決定手段115が
サイクル周期の基準を決定する。そして基準通知手段1
17が決定された基準にしたがって、それぞれの伝送媒
体接続装置301に基準の通知を行うものである。
The transmission medium connection control device 102 is also the first
In the same manner as in the embodiment, the analyzing means 116 analyzes the connection state of the transmission medium, and based on the result, the reference determining means 115 determines the reference of the cycle period. And the standard notification means 1
17 is for notifying the transmission medium connection device 301 of the reference according to the determined reference.

【0075】一方、伝送媒体接続装置301の基準選択
手段108は、伝送媒体接続制御装置102から受け取
る通知にしたがって、基準となるサイクル周期を選択し
て出力する。このサイクル基準は、第1の実施例と同様
に、伝送媒体接続装置301の周期発生手段107が発
生する動作周期であってもよく、また接続された伝送媒
体の一つ動作周期であっても良い。そしてクロック制御
手段304は、誤差検出手段109が出力する、サイク
ル基準と、第1の伝送媒体105のサイクルの誤差を入
力して、誤差の累積値と累積期間よりサイクル周期の長
さの比を求める。クロック制御手段304はこの求めた
比によって、クロックの制御を行う制御期間と、この制
御期間内に増加または減少させるクロック数を決定し、
この2つの値をクロック制御信号として出力する。
On the other hand, the reference selecting means 108 of the transmission medium connection device 301 selects and outputs a reference cycle period in accordance with the notification received from the transmission medium connection control device 102. This cycle criterion may be the operation cycle generated by the cycle generation means 107 of the transmission medium connection device 301 or one operation cycle of the connected transmission medium, as in the first embodiment. good. Then, the clock control unit 304 inputs the cycle reference and the cycle error of the first transmission medium 105 output from the error detection unit 109, and calculates the ratio of the cycle period length from the accumulated value of the error and the accumulated period. Ask. The clock control means 304 determines a control period for controlling the clock and the number of clocks to be increased or decreased during the control period based on the obtained ratio.
These two values are output as clock control signals.

【0076】例えば、サイクル基準の周期と第1の伝送
媒体105の周期が10ppmの誤差を持っていた場
合、100000クロックに1クロックの割合で誤差が
生じることになる。これは約32.6サイクルに1クロ
ックの誤差に相当する。そこでクロック制御手段304
は、この割合を正数比にして、163サイクルの間に5
クロックだけカウンタ121の値を増加または減少させ
るための指示をクロック制御信号として出力する。この
クロック制御信号は第1の実施の形態と同様に制御信号
送信手段111によって、第1の動作周期生成装置30
2に送信される。
For example, if the cycle based on the cycle and the cycle of the first transmission medium 105 have an error of 10 ppm, an error occurs at a rate of one clock per 100,000 clocks. This corresponds to an error of one clock every 32.6 cycles. Therefore, the clock control means 304
Makes this ratio a positive number ratio, 5 times during 163 cycles.
An instruction to increase or decrease the value of the counter 121 by the clock is output as a clock control signal. This clock control signal is transmitted to the first operation cycle generation device 30 by the control signal transmission means 111 as in the first embodiment.
2 is sent.

【0077】この場合にも第1の実施の形態と同様に、
クロック制御信号はアシンクロナス・パケットに含めて
送信することができる。図8に、クロック制御信号を送
信するパケットの例を示す。クロック制御信号用パケッ
ト801は図7に示すアシンクロナス・パケットの書き
込みデータ710として制御期間802とクロック数8
03を含むものであり、第1の実施の形態と同様に、カ
ウンタ121の値を制御するために定義されたレジスタ
のアドレスに対して送信されるものである。
Also in this case, similarly to the first embodiment,
The clock control signal can be transmitted in the form of an asynchronous packet. FIG. 8 shows an example of a packet for transmitting a clock control signal. The clock control signal packet 801 has a control period 802 and a clock number of 8 as the asynchronous packet write data 710 shown in FIG.
03, which is transmitted to an address of a register defined for controlling the value of the counter 121, as in the first embodiment.

【0078】上記の動作は第2の伝送媒体106につい
ても同様であり、クロック制御手段305は制御期間
と、この期間内に増加または減少させるクロック数をク
ロック制御信号として第2の動作周期生成手段303に
送信する。
The above operation is the same for the second transmission medium 106. The clock control means 305 uses the control period and the number of clocks to be increased or decreased during this period as a clock control signal as the second operation period generation means. 303.

【0079】第1の動作周期生成装置302の制御信号
受信手段118は、受信したクロック制御信号をカウン
タ均一化手段306に出力する。カウンタ均一化手段3
06は、クロック制御信号にに含まれて伝送媒体接続装
置301から受信した制御期間を計測し、この制御期間
内に一定間隔でカウンタ121を1クロック増加または
減少させる。例えば前述の例のように163サイクルの
間に5クロックの増加を示すクロック制御信号を受け取
った場合には、32ないし33サイクルおきに、カウン
タ121を1クロックづつ増加させる。
The control signal receiving means 118 of the first operation cycle generating device 302 outputs the received clock control signal to the counter equalizing means 306. Counter equalizing means 3
06 measures the control period included in the clock control signal and received from the transmission medium connection device 301, and increases or decreases the counter 121 by one clock at regular intervals during this control period. For example, when a clock control signal indicating an increase of 5 clocks is received during 163 cycles as in the above-described example, the counter 121 is incremented by one clock every 32 to 33 cycles.

【0080】このように、伝送媒体接続装置301から
受信するクロック制御信号によってカウンタ121の値
が増加または減少され、この結果、第1の動作周期生成
装置302が生成するサイクルは延長また短縮されるこ
ととなる。これによって、第1の伝送媒体105の動作
周期が伝送媒体接続装置301で選択されたサイクル基
準に同期できることとなる。
As described above, the value of the counter 121 is increased or decreased by the clock control signal received from the transmission medium connection device 301, and as a result, the cycle generated by the first operation cycle generation device 302 is extended or shortened. It will be. Thus, the operation cycle of the first transmission medium 105 can be synchronized with the cycle reference selected by the transmission medium connection device 301.

【0081】以上のように本実施例は、第1の実施例に
対して、クロック制御信号が制御期間と、制御期間内に
増加または減少させるクロック数という2つのパラメー
タが含まれているという点で異なっている。上述のよう
にクロック制御信号に制御期間と、この制御期間内に増
加または減少させるクロック数を含めることで、第1の
実施例に比べて均一なサイクルの生成が可能となる。
As described above, the present embodiment is different from the first embodiment in that the clock control signal includes two parameters: the control period and the number of clocks to be increased or decreased during the control period. Is different. As described above, by including the control period and the number of clocks to be increased or decreased during the control period in the clock control signal, a uniform cycle can be generated as compared with the first embodiment.

【0082】なお、カウンタ均一化手段306は、一度
クロック制御信号を受け取った場合、次のクロック制御
信号を受け取るまでの間、同じ処理を継続することがで
きる。すなわち前述の例の場合、163サイクル毎に5
クロック増加させる。これによって、伝送媒体接続装置
301のクロック制御手段304が適切なクロック制御
信号を生成した場合、一度クロック制御信号を送信する
だけで、それ以降クロック制御信号を送信する必要が無
くなる。
Note that once the counter equalizing means 306 receives the clock control signal, the same processing can be continued until the next clock control signal is received. That is, in the case of the above example, 5 times every 163 cycles.
Increase clock. Thus, when the clock control unit 304 of the transmission medium connection device 301 generates an appropriate clock control signal, it is only necessary to transmit the clock control signal once, and it is not necessary to transmit the clock control signal thereafter.

【0083】以上の動作は、第2の伝送媒体106、第
2の動作周期生成装置303についても同様である。ま
た、サイクル周期の基準を伝送媒体接続装置301の周
期発生手段107とした場合と、第1の伝送媒体105
と第2の伝送媒体106の何れかにした場合ともに上記
の動作を実現することができる。
The above operation is the same for the second transmission medium 106 and the second operation cycle generation device 303. The reference of the cycle period is the case where the cycle generation means 107 of the transmission medium connection device 301 is used.
The above operation can be realized both in the case of using any one of the second transmission medium 106 and the second transmission medium 106.

【0084】(第3の実施の形態)図4は、第3の実施
の形態の伝送媒体接続装置と動作周期生成装置、および
伝送媒体接続制御装置の主要な構成と接続状態を示すブ
ロック図である。本実施の形態においても、伝送媒体と
してIEEE1394インタフェースを使用するものと
する。また第1、および第2の実施の形態と同様に伝送
媒体接続装置401が第1の伝送媒体105と第2の伝
送媒体106を接続し、2つの伝送媒体の間でサイクル
の同期を実現する場合について示す。
(Third Embodiment) FIG. 4 is a block diagram showing a main configuration and a connection state of a transmission medium connection device, an operation cycle generation device, and a transmission medium connection control device according to a third embodiment. is there. Also in this embodiment, an IEEE 1394 interface is used as a transmission medium. Further, similarly to the first and second embodiments, the transmission medium connection device 401 connects the first transmission medium 105 and the second transmission medium 106, and realizes cycle synchronization between the two transmission media. The case is shown.

【0085】なお、第1および第2の実施の形態と同一
の動作を実現する各手段は同一の符号を付しており、特
に示さない場合には、本実施の形態においても第1およ
び第2の実施の形態と同じ動作を実現しているものとす
る。
The means for realizing the same operations as those in the first and second embodiments are denoted by the same reference numerals, and unless otherwise specified, the first and second embodiments are also used in this embodiment. It is assumed that the same operation as that of the second embodiment is realized.

【0086】2つの伝送媒体を接続してパケットを相互
に転送し、かつ伝送媒体の間でサイクルの同期を実現す
る伝送媒体接続装置401は、周期発生手段107、基
準選択手段108と、第1の伝送媒体105に接続され
る誤差検出手段109、周期制御手段404、制御信号
送信手段111、および第2の伝送媒体106に接続さ
れる誤差検出手段112、周期制御手段405、制御信
号送信手段114より構成される。なお、第1の伝送媒
体105に接続される各手段と、第2の伝送媒体106
に接続される各手段は同等の機能を有するブロックであ
り、接続される伝送媒体の数が増えた場合には、その数
だけ前記各手段を備えるものである。
A transmission medium connecting device 401 for connecting two transmission media to transfer packets to each other and realizing cycle synchronization between the transmission media includes a period generating means 107, a reference selecting means 108, and a first selecting means 108. Detecting means 109, cycle controlling means 404, control signal transmitting means 111 connected to the first transmission medium 105, and error detecting means 112, cycle controlling means 405, control signal transmitting means 114 connected to the second transmitting medium 106. It is composed of Note that each unit connected to the first transmission medium 105 and the second transmission medium 106
Is a block having the same function, and when the number of connected transmission media increases, each unit is provided with the number of units.

【0087】一方、伝送媒体の同期関係を決定して伝送
媒体接続装置401を制御する伝送媒体接続制御102
は、基準決定手段115、解析手段116、基準通知手
段117より構成される。
On the other hand, the transmission medium connection control 102 for determining the synchronization relationship of the transmission medium and controlling the transmission medium connection device 401
Is composed of a reference determination unit 115, an analysis unit 116, and a reference notification unit 117.

【0088】さらに、第1の伝送媒体105に接続さ
れ、第1の伝送媒体105においてサイクルマスタとし
て機能し、サイクル基準を送信する第1の動作周期生成
装置402は、制御信号受信手段118、動作周期出力
手段406、カウンタ121より構成される。同様に第
2の伝送媒体106に接続される第2の動作周期生成手
段403も同様に、制御信号受信手段122、動作周期
出力手段407、カウンタ125より構成される。
Further, the first operation cycle generation device 402 connected to the first transmission medium 105, which functions as a cycle master in the first transmission medium 105, and transmits a cycle reference, includes a control signal receiving means 118, It comprises a period output means 406 and a counter 121. Similarly, the second operation cycle generating means 403 connected to the second transmission medium 106 is also constituted by the control signal receiving means 122, the operation cycle output means 407, and the counter 125.

【0089】まず、第1の動作周期生成装置402のカ
ウンタ121と動作周期出力手段406、および第2の
動作周期生成装置403のカウンタ125と動作周期出
力手段407は、第1の実施の形態と同様の動作を行
い、それぞれ第1の伝送媒体105と第2の伝送媒体1
06にサイクル周期としてサイクル・スタート・パケッ
トを送信する。
First, the counter 121 and the operation cycle output means 406 of the first operation cycle generation device 402 and the counter 125 and the operation cycle output means 407 of the second operation cycle generation device 403 are different from those of the first embodiment. The same operation is performed, and the first transmission medium 105 and the second transmission medium 1
At step 06, a cycle start packet is transmitted as a cycle period.

【0090】また、伝送媒体接続制御装置102も第1
の実施の形態と同様に解析手段116が伝送媒体の接続
状況を解析し、この結果をもとに基準決定手段115が
サイクル周期の基準を決定する。そして基準通知手段1
17が決定された基準にしたがって、それぞれの伝送媒
体接続装置に基準の通知を行うものである。
The transmission medium connection control device 102 is also the first
In the same manner as in the embodiment, the analyzing means 116 analyzes the connection state of the transmission medium, and based on the result, the reference determining means 115 determines the reference of the cycle period. And the standard notification means 1
17 is for notifying the transmission medium connection device of the reference in accordance with the determined reference.

【0091】一方、伝送媒体接続装置401の基準選択
手段108は、伝送媒体接続制御装置102から受け取
る通知にしたがって、基準となるサイクル周期を選択し
て出力する。このサイクル基準は、第1、および第2の
実施例と同様に、伝送媒体接続装置401の周期発生手
段107が発生する動作周期であってもよく、また接続
された伝送媒体の一つの動作周期であってもよい。そし
て周期制御手段404は、誤差検出手段109が出力す
る、サイクル基準と、第1の伝送媒体105のサイクル
の誤差を入力して、サイクルを延長または短縮するため
の周期制御信号を出力する。
On the other hand, the reference selecting means 108 of the transmission medium connection device 401 selects and outputs a reference cycle period in accordance with the notification received from the transmission medium connection control device 102. This cycle reference may be the operation cycle generated by the cycle generation means 107 of the transmission medium connection device 401, as in the first and second embodiments, or one operation cycle of the connected transmission medium. It may be. Then, the cycle control unit 404 inputs the cycle reference and the cycle error of the first transmission medium 105 output by the error detection unit 109, and outputs a cycle control signal for extending or shortening the cycle.

【0092】周期制御信号は、例えば周期発生手段10
7のサイクル周期を基準にしている場合、第1の動作周
期生成装置402が生成しているサイクルの周期が周期
発生手段107よりも短い場合には、サイクルの延長を
示す指示を含むものであり、一方、第1の動作周期生成
装置402が生成しているサイクル周期が周期発生手段
107が発生する周期よりも長い場合にはサイクルの短
縮を示す指示を含むものである。
The cycle control signal is transmitted, for example, by the cycle generation means 10.
In the case where the cycle period of the cycle No. 7 is used as a reference, and when the cycle of the cycle generated by the first operation cycle generation device 402 is shorter than the cycle generation means 107, an instruction to extend the cycle is included. On the other hand, when the cycle period generated by the first operation period generation device 402 is longer than the period generated by the period generation means 107, the instruction includes an instruction to shorten the cycle.

【0093】なお、この延長もしくは短縮の指示は、1
サイクルのクロック数の増減によって表すことができ
る。また周期制御信号は第1および第2の実施の形態と
同様にアシンクロナス・パケットによって送信すること
ができる。
Note that this extension or shortening instruction is
It can be represented by increasing or decreasing the number of clocks in a cycle. Further, the cycle control signal can be transmitted by an asynchronous packet as in the first and second embodiments.

【0094】この周期制御信号を受信する第1の動作周
期生成装置402の制御信号受信手段118は、第1の
伝送媒体105より受信した周期制御信号を動作周期出
力手段406に出力する。動作周期出力手段406は、
制御信号受信手段118からなにも入力されない場合に
は、前述のようにカウンタ121の値が3072になる
毎にサイクル・スタート・パケットを伝送媒体105に
送出している。
The control signal receiving means 118 of the first operation cycle generation device 402 which receives the cycle control signal outputs the cycle control signal received from the first transmission medium 105 to the operation cycle output means 406. The operation cycle output means 406
If nothing is input from the control signal receiving means 118, a cycle start packet is sent to the transmission medium 105 every time the value of the counter 121 reaches 3072 as described above.

【0095】一方、制御信号受信手段118より周期制
御信号が入力された場合には、伝送媒体接続装置401
から受信した周期制御信号にしたがって延長もしくは短
縮されたサイクルを生成する。
On the other hand, when the period control signal is input from the control signal receiving means 118, the transmission medium connecting device 401
And generates an extended or shortened cycle according to the cycle control signal received from.

【0096】例えば、この周期制御信号が1クロック分
短縮したサイクルの生成を示している場合、動作周期出
力手段406は、カウンタ121の値が3071になっ
たときにカウンタ121をリセットし、サイクル・スタ
ート・パケットを送信する。逆に周期制御信号が1クロ
ック分延長したサイクルの生成を示している場合には、
カウンタ121の値が3073になるまでクロックの計
測を続け、3073になったときにカウンタ121をリ
セットし、サイクル・スタート・パケットを送信する。
For example, if the cycle control signal indicates the generation of a cycle shortened by one clock, the operation cycle output means 406 resets the counter 121 when the value of the counter 121 reaches 3071, and Send a start packet. Conversely, if the cycle control signal indicates the generation of a cycle extended by one clock,
Clock measurement is continued until the value of the counter 121 reaches 3073. When the value of the counter 121 reaches 3073, the counter 121 is reset and a cycle start packet is transmitted.

【0097】このように、伝送媒体接続装置401から
受信する周期制御信号にしたがって、周期生成手段10
7が発生する動作周期が延長または短縮されることにな
る。これによって第1の伝送媒体105の動作周期が、
伝送媒体接続装置401で選択されたサイクル基準に同
期できることとなる。
As described above, according to the cycle control signal received from the transmission medium connection device 401, the cycle generation means 10
The operation cycle in which 7 occurs is extended or shortened. Thereby, the operation cycle of the first transmission medium 105 becomes
It is possible to synchronize with the cycle reference selected by the transmission medium connection device 401.

【0098】以上の動作は、第2の伝送媒体106、第
2の動作周期生成装置403についても同様である。ま
た、サイクル周期の基準を伝送媒体接続装置401の周
期発生手段107とした場合と、第1の伝送媒体105
と第2の伝送媒体106の何れかにした場合ともに上記
の動作を実現することができる。
The above operation is the same for the second transmission medium 106 and the second operation cycle generation device 403. The reference of the cycle period is the case where the cycle generation means 107 of the transmission medium connection device 401 is used.
The above operation can be realized both in the case of using any one of the second transmission medium 106 and the second transmission medium 106.

【0099】以上のように本実施例は、第1の実施例に
対して、動作周期生成装置のカウンタの値を増減するか
わりに、サイクルを発生させるカウンタの値を変更する
という点において異なっている。上述のように、サイク
ル・スタート・パケットを生成する値を変化させるた
め、カウンタの値を増加または減少するための加算およ
び減算のための手段が不要となり、装置の構成が簡略化
可能である。
As described above, the present embodiment differs from the first embodiment in that the value of the counter for generating a cycle is changed instead of increasing or decreasing the value of the counter of the operation cycle generation device. I have. As described above, since the value for generating the cycle start packet is changed, the means for adding and subtracting to increase or decrease the value of the counter becomes unnecessary, and the configuration of the apparatus can be simplified.

【0100】なお、周期制御信号として、延長または短
縮するクロック数として、1クロックのみを使用するこ
とにより、周期制御手段404および405、動作周期
出力手段406および407の構成を簡略化することが
可能となる。
By using only one clock as the number of clocks to be extended or shortened as the cycle control signal, the configurations of the cycle control means 404 and 405 and the operation cycle output means 406 and 407 can be simplified. Becomes

【0101】(第4の実施の形態)図5は、第4の実施
の形態の伝送媒体接続装置と動作周期生成装置、および
伝送媒体接続制御装置の主要な構成と接続状態を示すブ
ロック図である。本実施の形態においても、伝送媒体と
してIEEE1394インタフェースを使用するものと
する。また第1〜第3の各実施の形態と同様に伝送媒体
接続装置501が第1の伝送媒体105と第2の伝送媒
体106を接続し、2つの伝送媒体の間でサイクルの同
期を実現する場合について示す。
(Fourth Embodiment) FIG. 5 is a block diagram showing a main configuration and a connection state of a transmission medium connection device, an operation cycle generation device, and a transmission medium connection control device according to a fourth embodiment. is there. Also in this embodiment, an IEEE 1394 interface is used as a transmission medium. Further, similarly to the first to third embodiments, the transmission medium connection device 501 connects the first transmission medium 105 and the second transmission medium 106, and realizes cycle synchronization between the two transmission media. The case is shown.

【0102】なお、第1〜第2の各実施の形態と同一の
動作を実現する各手段は同一の符号を付しており、特に
示さない場合には、本実施の形態においても第1〜第3
の各実施の形態と同じ動作を実現しているものとする。
The means for realizing the same operations as those of the first and second embodiments are denoted by the same reference numerals, and unless otherwise specified, the first to second embodiments are also used in this embodiment. Third
It is assumed that the same operation as that of each embodiment is realized.

【0103】2つの伝送媒体を接続してパケットを相互
に転送し、かつ伝送媒体の間でサイクルの同期を実現す
る伝送媒体接続装置501は、周期発生手段107、基
準選択手段108と、第1の伝送媒体105に接続され
る誤差検出手段109、周期制御手段504、制御信号
送信手段111、および第2の伝送媒体106に接続さ
れる誤差検出手段112,周期制御手段505、制御信
号送信手段114より構成される。なお、第1の伝送媒
体105に接続される各手段と、第2の伝送媒体106
に接続される各手段は同等の機能を有するブロックであ
り、接続される伝送媒体の数が増えた場合には、その数
だけ前記各手段を備えるものである。
A transmission medium connecting device 501 for connecting two transmission media to transfer packets to each other and realizing cycle synchronization between the transmission media includes a period generating means 107, a reference selecting means 108, and a first selecting means 108. Detecting means 109, cycle controlling means 504, control signal transmitting means 111 connected to the second transmission medium 106, and error detecting means 112, cycle controlling means 505, control signal transmitting means 114 connected to the second transmitting medium 106. It is composed of Note that each unit connected to the first transmission medium 105 and the second transmission medium 106
Is a block having the same function, and when the number of connected transmission media increases, each unit is provided with the number of units.

【0104】一方、伝送媒体の同期関係を決定して伝送
媒体接続装置501を制御する伝送媒体接続制御102
は、基準決定手段115、解析手段116、基準通知手
段117より構成される。
On the other hand, the transmission medium connection control 102 which determines the synchronization relationship of the transmission medium and controls the transmission medium connection device 501
Is composed of a reference determination unit 115, an analysis unit 116, and a reference notification unit 117.

【0105】さらに、第1の伝送媒体105に接続さ
れ、第1の伝送媒体105においてサイクルマスタとし
て機能し、サイクル基準を送信する第1の動作周期生成
装置502は、制御信号受信手段118、動作周期出力
手段406、周期制御均一化手段506、カウンタ12
1より構成される。同様に第2の伝送媒体106に接続
される第2の動作周期生成手段503も、制御信号受信
手段122、動作周期出力手段407、周期制御均一化
手段507、カウンタ125より構成される。
Further, the first operation cycle generation device 502 connected to the first transmission medium 105, which functions as a cycle master in the first transmission medium 105, and transmits a cycle reference, includes the control signal receiving means 118, Period output means 406, period control equalization means 506, counter 12
1 Similarly, the second operation cycle generation means 503 connected to the second transmission medium 106 also includes the control signal reception means 122, the operation cycle output means 407, the cycle control equalization means 507, and the counter 125.

【0106】まず、第1の動作周期生成装置502のカ
ウンタ121と動作周期出力手段406、および第2の
動作周期生成装置503のカウンタ125と動作周期出
力手段407は、第3の実施の形態と同様の動作を行
い、それぞれ第1の伝送媒体105と第2の伝送媒体1
06にサイクル周期としてサイクル・スタート・パケッ
トを送信する。
First, the counter 121 and the operation cycle output means 406 of the first operation cycle generation device 502 and the counter 125 and the operation cycle output means 407 of the second operation cycle generation device 503 are different from those of the third embodiment. The same operation is performed, and the first transmission medium 105 and the second transmission medium 1
At step 06, a cycle start packet is transmitted as a cycle period.

【0107】また、伝送媒体接続制御装置102も第1
〜第3の各実施の形態と同様に解析手段116が伝送媒
体の接続状況を解析し、この結果をもとに基準決定手段
115がサイクル周期の基準を決定する。そして基準通
知手段117が決定された基準にしたがって、それぞれ
の伝送媒体接続装置に基準の通知を行うものである。
The transmission medium connection control device 102 is also the first
As in the third to third embodiments, the analyzing means 116 analyzes the connection status of the transmission medium, and based on the result, the reference determining means 115 determines the reference of the cycle period. Then, the reference notifying unit 117 notifies each transmission medium connection device of the reference according to the determined reference.

【0108】一方、伝送媒体接続装置501の基準選択
手段108は、伝送媒体接続制御装置102から受け取
る通知にしたがって、基準となるサイクル周期を選択し
て出力する。このサイクル基準は、第1〜3までの実施
例と同様に、伝送媒体接続装置501の周期発生手段1
07が発生する動作周期であってもよく、また接続され
た伝送媒体の一つの動作周期であっても良い。周期制御
手段504は、誤差検出手段109が出力する、サイク
ル基準と、第1の伝送媒体105のサイクルの誤差を入
力して、誤差の累積値と累積期間よりサイクル周期の長
さの比を求める。周期制御手段504はこの求めた比に
よって、周期の制御を行う制御期間と、この制御期間内
に延長または短縮させるサイクルの数を決定し、この2
つの値を周期制御信号として出力する。
On the other hand, the reference selecting means 108 of the transmission medium connection device 501 selects and outputs a reference cycle period in accordance with the notification received from the transmission medium connection control device 102. This cycle criterion is the same as that of the first to third embodiments.
07 may occur, or may be one operation cycle of the connected transmission medium. The cycle control unit 504 inputs the cycle reference and the cycle error of the first transmission medium 105 output from the error detection unit 109, and obtains the ratio of the cycle period length from the accumulated error value and the accumulation period. . The cycle control means 504 determines a control period for controlling the cycle and the number of cycles to be extended or shortened during the control period based on the obtained ratio.
Are output as cycle control signals.

【0109】例えば第2の実施の形態と同様の例におい
て、サイクル基準の周期と第1の伝送媒体105の周期
が10ppmの誤差を持っていた場合、163サイクル
の間に5サイクル(5回)だけ、1クロック延長または
短縮を示す周期制御信号を出力する。
For example, in the same example as in the second embodiment, if the cycle reference cycle and the cycle of the first transmission medium 105 have an error of 10 ppm, 5 cycles (163 times) between 163 cycles. Only, it outputs a cycle control signal indicating extension or shortening of one clock.

【0110】制御信号送信手段111は、この周期制御
信号を第1の動作周期生成装置502に送信する。この
場合も第1〜第3の実施の形態と同様にアシンクロナス
・パケットによって周期制御信号を送信することがで
き、図8に示すパケットにおいて、クロック数の替わり
にサイクル数を含むパケットを使用することができる。
The control signal transmitting means 111 transmits this cycle control signal to the first operation cycle generation device 502. In this case as well, as in the first to third embodiments, the cycle control signal can be transmitted by the asynchronous packet. In the packet shown in FIG. 8, a packet including the cycle number is used instead of the clock number. Can be.

【0111】なお、上記の動作は第2の伝送媒体106
についても同様であり、周期制御手段505は制御期間
と、この期間内に延長または短縮させるサイクルの数を
周期制御信号として第2の動作周期生成手段503に送
信する。
The above operation is performed by the second transmission medium 106
Similarly, the cycle control unit 505 transmits the control period and the number of cycles to be extended or shortened during this period to the second operation cycle generation unit 503 as a cycle control signal.

【0112】第1の動作周期生成装置502の制御信号
受信手段118は、受信した手記制御信号を周期制御均
一化手段506に出力する。周期制御均一化手段506
は、周期制御信号に基づいて、伝送媒体接続装置501
から受信した周期制御信号に含まれている制御期間を計
測し、この制御期間内に一定間隔でサイクルを1クロッ
ク分延長または短縮を指示する信号を動作周期出力手段
406に出力する。例えば前述の例のように163サイ
クルの間に5サイクルの延長を示す周期制御信号を受け
取った場合には、32ないし33サイクルおきに、1ク
ロック分周期を延長させる指示を行う信号を動作周期出
力手段406に出力する。
The control signal receiving means 118 of the first operation cycle generation device 502 outputs the received manual control signal to the cycle control equalization means 506. Period control equalizing means 506
Is a transmission medium connection device 501 based on a cycle control signal.
And outputs a signal to the operation cycle output means 406 to instruct the operation cycle output means 406 to extend or shorten the cycle by one clock at regular intervals during this control period. For example, when a cycle control signal indicating an extension of 5 cycles is received during 163 cycles as in the above-described example, a signal for instructing to extend the cycle by one clock is output every 32 to 33 cycles. Output to means 406.

【0113】このように、伝送媒体接続装置501から
受信する周期制御信号にしたがって、動作周期生成装置
502が発生する動作周期が延長または短縮されること
になり、これによって、第1の伝送媒体105の動作周
期が伝送媒体接続装置501で選択されたサイクル基準
に同期できることとなる。
As described above, according to the cycle control signal received from the transmission medium connection device 501, the operation cycle generated by the operation cycle generation device 502 is extended or shortened. Can be synchronized with the cycle reference selected by the transmission medium connection device 501.

【0114】以上のように本実施例は、第3の実施例に
対して、周期制御信号が制御期間と、制御期間内に1ク
ロック分延長または短縮するサイクル数という2つのパ
ラメータが含まれているという点で異なっている。上述
のように周期制御信号に制御期間と、この制御期間内に
延長または短縮させるサイクル数を含めることで、第3
の実施例に比べて均一なサイクルの生成が可能となる。
As described above, the present embodiment differs from the third embodiment in that the period control signal includes two parameters: the control period, and the number of cycles to be extended or shortened by one clock within the control period. Is different. As described above, by including the control period and the number of cycles to be extended or shortened in the control period in the cycle control signal,
A more uniform cycle can be generated as compared with the embodiment.

【0115】なお、周期制御均一化手段506は、一度
周期制御信号を受け取った場合、次の周期制御信号を受
け取るまでの間、同じ処理を継続することができる。す
なわち前述の例の場合、163サイクル毎に5サイクル
だけ延長を示す信号を動作周期出力手段406に出力す
る。これによって、伝送媒体接続装置501の周期制御
手段504が適切な周期制御信号を生成した場合、一度
周期制御信号を送信するだけで、それ以降手記制御信号
を送信する必要が無くなる。
Note that once the cycle control equalizing means 506 receives the cycle control signal, it can continue the same processing until it receives the next cycle control signal. That is, in the case of the above-described example, a signal indicating extension by 5 cycles every 163 cycles is output to the operation cycle output unit 406. Accordingly, when the cycle control unit 504 of the transmission medium connection device 501 generates an appropriate cycle control signal, it is only necessary to transmit the cycle control signal once, and it is not necessary to subsequently transmit the handwritten control signal.

【0116】以上の動作は、第2の伝送媒体106、第
2の動作周期生成装置503についても同様である。ま
た、サイクル周期の基準を伝送媒体接続装置501の周
期発生手段107とした場合と、第1の伝送媒体105
と第2の伝送媒体106の何れかにした場合ともに上記
の動作を実現することができる。
The above operation is the same for the second transmission medium 106 and the second operation cycle generation device 503. The reference of the cycle period is based on the case where the cycle generation means 107 of the transmission medium connection device 501 is used.
The above operation can be realized both in the case of using any one of the second transmission medium 106 and the second transmission medium 106.

【0117】なお、上記の第1〜第4の各実施の形態の
伝送媒体接続装置の基準選択手段108と誤差検出手段
109は、特に独立した手段である必要はなく、誤差検
出手段109が基準となるサイクル周期を選択できれば
よい。また、誤差検出は、基準のサイクル周期と伝送媒
体より受信するサイクル周期の位相差を検出することに
よっても同等の誤差検出を行うことが可能である。位相
差は、サイクル・スタート・パケットを受信した瞬間の
カウンタの値によって計算することができる。
The reference selecting means 108 and the error detecting means 109 of the transmission medium connecting apparatus according to the first to fourth embodiments do not need to be particularly independent means. It is only necessary to select a cycle period that satisfies. In the error detection, the same error detection can be performed by detecting the phase difference between the reference cycle period and the cycle period received from the transmission medium. The phase difference can be calculated by the value of the counter at the moment when the cycle start packet is received.

【0118】また上記の第1〜第4の各実施の形態で示
したクロック制御信号または周期制御信号は、IEEE
1394インタフェースのアシンクロナス・パケットに
よって送信するばかりではなく、アイソクロナス・パケ
ットによって送信することもできる。クロック制御信号
または周期制御信号をアイソクロナス・パケットを使用
して送信することによって、パケットの伝送の際に生じ
る遅延時間が小さく、また固定となるため、より正確な
クロックや周期の制御を行うことが可能となる。
The clock control signal or the cycle control signal shown in each of the first to fourth embodiments is based on the IEEE standard.
Not only transmission by asynchronous packets of the 1394 interface but also transmission by isochronous packets are possible. By transmitting a clock control signal or a cycle control signal using an isochronous packet, the delay time generated during packet transmission is small and fixed, so that more accurate clock and cycle control can be performed. It becomes possible.

【0119】さらに、上記の第1〜第4の各実施の形態
で示した各手段の動作は、CPUと、上記の各手段の動
作を実現するためのソフトウェアによって実現可能であ
る。このため、上記の各動作を実現させるためのプログ
ラムを記録した磁気記録媒体や光記録媒体などの記録媒
体を作成し、これを利用してCPUを動作させても、上
記の各実施の形態と同様の効果を得ることが可能であ
る。
Further, the operation of each means shown in each of the first to fourth embodiments can be realized by a CPU and software for realizing the operation of each means. For this reason, even if a recording medium such as a magnetic recording medium or an optical recording medium on which a program for realizing each of the above-described operations is recorded is created and the CPU is operated by using the medium, the above-described embodiment can be implemented. A similar effect can be obtained.

【0120】なお、上記の第1〜第4の各実施の形態に
おいては、伝送媒体接続装置、動作周期生成装置、およ
び伝送媒体接続制御装置の各装置は、個々の装置として
説明しているが、これらの装置の2つないし全ての機能
を合わせ持つ装置を使用することも可能である。例え
ば、伝送媒体接続装置が伝送媒体接続制御装置の機能を
合わせ持っていた場合、別途、伝送媒体接続制御装置を
接続する必要はない。
In each of the first to fourth embodiments, the transmission medium connection device, the operation cycle generation device, and the transmission medium connection control device have been described as individual devices. It is also possible to use a device having two or all of the functions of these devices. For example, when the transmission medium connection device has the function of the transmission medium connection control device, it is not necessary to separately connect the transmission medium connection control device.

【0121】また、上記の第1〜第4の各実施の形態に
おいては、2つの伝送媒体を接続し、サイクル同期を実
現する場合について説明しているが、各実施の形態の構
成において誤差検出手段、クロック制御手段または周期
制御手段、制御信号送信手段の各手段を3組以上備える
ことによって、3つ以上の伝送媒体を接続してサイクル
同期を実現することが可能となる。
Further, in each of the above-described first to fourth embodiments, a case has been described in which two transmission media are connected to achieve cycle synchronization. By providing three or more sets of each of the means, the clock control means or the cycle control means, and the control signal transmission means, it becomes possible to connect three or more transmission media to realize cycle synchronization.

【0122】[0122]

【発明の効果】以上のように第1の発明の伝送媒体接続
装置では、伝送媒体接続装置が持つ動作周期と伝送媒体
の動作周期を比較し、検出した誤差に応じて動作周期生
成装置のカウンタの値を増加または減少させるための制
御信号を送信することで、伝送媒体の動作周期を伝送媒
体接続装置の動作周期に同期させることが可能となる。
As described above, in the transmission medium connection device of the first invention, the operation cycle of the transmission medium connection device is compared with the operation cycle of the transmission medium, and the counter of the operation cycle generation device is determined according to the detected error. By transmitting a control signal for increasing or decreasing the value of the transmission medium, the operation cycle of the transmission medium can be synchronized with the operation cycle of the transmission medium connection device.

【0123】第2の発明の伝送媒体接続装置では、接続
された複数の伝送媒体の中の一つの伝送媒体の動作周期
とそれ以外の伝送媒体の動作周期を比較し、検出した誤
差に応じて動作周期生成装置のカウンタの値を増加また
は減少させるための制御信号を送信することで、接続さ
れた全ての伝送媒体の動作周期を同期させることが可能
となる。
In the transmission medium connecting apparatus according to the second invention, the operation cycle of one transmission medium among the plurality of connected transmission mediums is compared with the operation cycle of the other transmission medium, and according to the detected error, By transmitting a control signal for increasing or decreasing the value of the counter of the operation cycle generation device, it becomes possible to synchronize the operation cycles of all the connected transmission media.

【0124】第3の発明の伝送媒体接続装置では、伝送
媒体接続装置が持つ動作周期もしくは接続された複数の
伝送媒体の中の一つの伝送媒体の動作周期と、それ以外
の伝送媒体の動作周期を比較し、検出した誤差に応じて
動作周期生成装置のカウンタの値を増加または減少させ
る制御信号を送信することで、接続された全ての伝送媒
体の動作周期を同期させることが可能となる。
In the transmission medium connection device of the third invention, the operation period of the transmission medium connection device or the operation period of one transmission medium among a plurality of connected transmission media and the operation period of the other transmission medium And transmitting a control signal for increasing or decreasing the value of the counter of the operation cycle generation device according to the detected error, it becomes possible to synchronize the operation cycles of all the connected transmission media.

【0125】第4の発明の動作周期生成装置では、伝送
媒体接続装置から受け取ったカウンタの増加または減少
を示す制御信号によって、動作クロックのカウンタを増
加または減少させることで、動作周期を調整し、動作周
期生成装置が生成する動作周期を伝送媒体接続装置また
は他の伝送媒体の動作周期に同期させることが可能とな
る。
In the operation cycle generation device of the fourth invention, the operation cycle is adjusted by increasing or decreasing the counter of the operation clock by the control signal indicating the increase or decrease of the counter received from the transmission medium connection device. The operation cycle generated by the operation cycle generation device can be synchronized with the operation cycle of the transmission medium connection device or another transmission medium.

【0126】第5の発明の動作周期生成装置では、第4
の発明の動作周期生成装置に加えて、動作クロックの増
加または減少の制御を行う期間と、その期間内に増加ま
たは減少させるクロック数によって制御することによ
り、この期間内で均一な割合で動作周期の調整が可能と
なり、第4の発明の効果に加えて、より安定した動作周
期の発生が可能となる。
In the operation cycle generation device according to the fifth invention, the fourth operation cycle
In addition to the operation cycle generation device of the invention of the invention, by controlling by a period for controlling the increase or decrease of the operation clock and the number of clocks to be increased or decreased during the period, the operation cycle is controlled at a uniform rate within this period. Can be adjusted, and in addition to the effect of the fourth aspect, a more stable operation cycle can be generated.

【0127】第6の発明の伝送媒体接続装置では、伝送
媒体接続装置が持つ動作周期と伝送媒体の動作周期を比
較し、検出した誤差に応じて動作周期生成装置が生成す
る動作周期を延長または短縮する制御信号を送信するこ
とで、伝送媒体の動作周期を伝送媒体接続装置の動作周
期に同期させることが可能となる。
In the transmission medium connection device of the sixth invention, the operation period of the transmission medium connection device is compared with the operation period of the transmission medium, and the operation period generated by the operation period generation device is extended or extended according to the detected error. By transmitting the control signal to be shortened, the operation cycle of the transmission medium can be synchronized with the operation cycle of the transmission medium connection device.

【0128】第7の発明の伝送媒体接続装置では、接続
された複数の伝送媒体の中の一つの伝送媒体の動作周期
とそれ以外の伝送媒体の動作周期を比較し、検出した誤
差に応じて動作周期生成装置が生成する動作周期を延長
または短縮する制御信号を送信することで、接続された
全ての伝送媒体の動作周期を同期させることが可能とな
る。
In the transmission medium connection device of the seventh invention, the operation cycle of one transmission medium among the plurality of connected transmission media is compared with the operation cycle of the other transmission medium, and the operation cycle is determined according to the detected error. By transmitting a control signal for extending or shortening the operation period generated by the operation period generation device, it becomes possible to synchronize the operation periods of all the connected transmission media.

【0129】第8の発明の伝送媒体接続装置では、伝送
媒体接続装置が持つ動作周期もしくは接続された複数の
伝送媒体の中の一つの伝送媒体の動作周期と、それ以外
の伝送媒体の動作周期を比較し、検出した誤差に応じて
動作周期生成装置が生成する動作周期を延長または短縮
する制御信号を送信することで、接続された全ての伝送
媒体の動作周期を同期させることが可能となる。
In the transmission medium connection device of the eighth invention, the operation period of the transmission medium connection device or the operation period of one transmission medium among a plurality of connected transmission media and the operation period of the other transmission medium And transmitting a control signal for extending or shortening the operation cycle generated by the operation cycle generation device according to the detected error, it is possible to synchronize the operation cycles of all connected transmission media. .

【0130】第9の発明の動作周期生成装置では、伝送
媒体接続装置から受け取った動作周期の延長または短縮
を示す制御信号によって、動作クロックを計測して動作
周期を発生させる際の1周期のクロック数を変化させ、
これによって動作周期を調整し、動作周期生成装置が生
成する動作周期を伝送媒体接続装置または他の伝送媒体
の動作周期に同期させることが可能となる。
According to the ninth aspect of the present invention, the operation cycle generating apparatus according to the ninth aspect of the present invention measures the operation clock in response to the control signal indicating the extension or shortening of the operation cycle received from the transmission medium connection device, and generates one cycle of the clock when the operation cycle is generated. Change the number,
This makes it possible to adjust the operation period and synchronize the operation period generated by the operation period generation device with the operation period of the transmission medium connection device or another transmission medium.

【0131】第10の発明の動作周期生成装置では、第
9の発明の動作周期生成装置に加えて、動作周期の延長
または短縮の制御を行う期間と、その期間内に延長また
は短縮の必要な周期の数によって制御することにより、
この期間内で均一な割合で動作周期の調整が可能とな
り、第9の発明の効果に加えて、より安定した動作周期
の発生が可能となる。
According to the operation cycle generation device of the tenth aspect, in addition to the operation cycle generation device of the ninth aspect, a period in which the extension or shortening of the operation cycle is controlled, and the extension or shortening is required within the period. By controlling by the number of periods,
The operation cycle can be adjusted at a uniform rate within this period, and in addition to the effects of the ninth aspect, a more stable operation cycle can be generated.

【0132】第11の発明の伝送媒体接続制御装置で
は、伝送媒体接続装置によって相互に接続された伝送媒
体の接続状態を解析し、動作周期の基準を選択して伝送
媒体接続装置に通知することで、伝送媒体接続装置は精
度や同期が実現するまでに必要時間などの点において、
最適な動作周期の基準を選択して、それぞれの伝送媒体
の動作周期を同期させることが可能となる。
In the transmission medium connection control device according to the eleventh aspect, the connection state of the transmission media mutually connected by the transmission medium connection device is analyzed, and the reference of the operation cycle is selected and notified to the transmission medium connection device. In the transmission medium connection device, in terms of accuracy and time required until synchronization is realized,
It is possible to synchronize the operation cycle of each transmission medium by selecting an optimum operation cycle reference.

【0133】なお、第1〜第3の発明の伝送媒体接続装
置の何れかと、第4または第5の発明の動作周期生成装
置と、第11の発明の伝送媒体接続制御装置を組み合わ
せて使用することにより、伝送媒体接続装置に接続され
る全ての伝送媒体の動作周期を同期させることが可能と
なり、動作周期に同期して送信されるパケット等を相互
に転送することが可能となる。
It should be noted that any one of the transmission medium connection devices of the first to third inventions, the operation cycle generation device of the fourth or fifth invention, and the transmission medium connection control device of the eleventh invention are used in combination. This makes it possible to synchronize the operation cycles of all transmission media connected to the transmission medium connection device, and to transfer packets and the like transmitted in synchronization with the operation cycle.

【0134】同様に、第6〜第8の発明の伝送媒体接続
装置の何れかと、第9または第10の発明の動作周期生
成装置と、第11の発明の伝送媒体接続制御装置を組み
合わせて使用することにより、伝送媒体接続装置に接続
される全ての伝送媒体の動作周期を同期させることが可
能となり、動作周期に同期して送信されるパケット等を
相互に転送することが可能となる。
Similarly, any one of the transmission medium connection devices of the sixth to eighth inventions, the operation cycle generation device of the ninth or tenth invention, and the transmission medium connection control device of the eleventh invention are used in combination. By doing so, it becomes possible to synchronize the operation cycles of all transmission media connected to the transmission medium connection device, and to transfer packets and the like transmitted in synchronization with the operation cycle.

【0135】さらに以上の発明では、動作周期をカウン
タの値を変化させたり、また動作周期を発生させるカウ
ンタの値をクロック単位で調整するため、動作クロック
の周波数自体を変化させる場合に比べて、装置が容易に
構成可能となる。
Furthermore, in the above invention, the operation cycle is changed by the value of the counter, and the value of the counter that generates the operation cycle is adjusted in clock units. The device can be easily configured.

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

【図1】本発明の第1の実施の形態における伝送媒体接
続装置と伝送媒体接続制御装置および動作周期生成装置
の主要な構成を示すブロック図
FIG. 1 is a block diagram showing a main configuration of a transmission medium connection device, a transmission medium connection control device, and an operation cycle generation device according to a first embodiment of the present invention.

【図2】本発明の第1の実施の形態における伝送媒体の
接続状態を示す図
FIG. 2 is a diagram showing a connection state of a transmission medium according to the first embodiment of the present invention.

【図3】本発明の第2の実施の形態における伝送媒体接
続装置と伝送媒体接続制御装置および動作周期生成装置
の主要な構成を示すブロック図
FIG. 3 is a block diagram showing a main configuration of a transmission medium connection device, a transmission medium connection control device, and an operation cycle generation device according to a second embodiment of the present invention.

【図4】本発明の第3の実施の形態における伝送媒体接
続装置と伝送媒体接続制御装置および動作周期生成装置
の主要な構成を示すブロック図
FIG. 4 is a block diagram illustrating a main configuration of a transmission medium connection device, a transmission medium connection control device, and an operation cycle generation device according to a third embodiment of the present invention.

【図5】本発明の第4の実施の形態における伝送媒体接
続装置と伝送媒体接続制御装置および動作周期生成装置
の主要な構成を示すブロック図
FIG. 5 is a block diagram illustrating a main configuration of a transmission medium connection device, a transmission medium connection control device, and an operation cycle generation device according to a fourth embodiment of the present invention.

【図6】(a)パケットの損失が発生する場合の2つの
伝送媒体のサイクルの関係を示す図 (b)パケットの生成が必要となる場合の2つの伝送媒
体のサイクルの関係を示す図
6A is a diagram showing a relationship between cycles of two transmission media when a packet loss occurs. FIG. 6B is a diagram showing a relationship between cycles of two transmission media when a packet needs to be generated.

【図7】アシンクロナス・パケットの一つである書き込
み要求パケットの構成を示す図
FIG. 7 is a diagram showing a configuration of a write request packet which is one of asynchronous packets.

【図8】クロック制御信号を送信の際に使用するパケッ
トの構成を示す図
FIG. 8 is a diagram showing a configuration of a packet used when transmitting a clock control signal.

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

101,201,202,203,301,401,5
01 伝送媒体接続装置 102 伝送媒体接続制御装置 103,104,302,303,402,403,5
02,503 動作周期生成装置 105,106,204,205,206,207,2
08,209,210伝送媒体 107 周期発生手段 108 基準選択手段 109,112 誤差検出手段 110,113,304,305 クロック制御手段 111,114 制御信号送信手段 115 基準決定手段 116 解析手段 117 基準通知手段 118,122 制御信号受信手段 119,123,406,407 動作周期出力手段 120,124 カウンタ制御手段 121,125 カウンタ 306,307 カウンタ均一化手段 404,405,504,505 周期制御手段 506,507 周期制御均一化手段 601 損失パケット 602 生成パケット 701 書き込み要求パケット 702 宛先 703 発信元 704 書き込み先頭アドレス 705 書き込みサイズ 706 ラベル 707 rt 708 種別 709 pri 710 書き込みデータ 801 クロック制御信号用パケット 802 制御期間 803 クロック数
101, 201, 202, 203, 301, 401, 5
01 transmission medium connection device 102 transmission medium connection control device 103,104,302,303,402,403,5
02,503 Operation cycle generation device 105,106,204,205,206,207,2
08, 209, 210 Transmission medium 107 Period generation means 108 Reference selection means 109, 112 Error detection means 110, 113, 304, 305 Clock control means 111, 114 Control signal transmission means 115 Reference determination means 116 Analysis means 117 Reference notification means 118 , 122 control signal receiving means 119, 123, 406, 407 operation cycle output means 120, 124 counter control means 121, 125 counter 306, 307 counter equalization means 404, 405, 504, 505 cycle control means 506, 507 cycle control uniformity 601 Lost packet 602 Generated packet 701 Write request packet 702 Destination 703 Source 704 Write head address 705 Write size 706 Label 707 rt 708 Type 709 pri 710 802 control period 803 the number of clocks for included data 801 clock control signal packet can

Claims (28)

【特許請求の範囲】[Claims] 【請求項1】 動作クロックのクロック数に基づいて決
定される動作周期を持ち、動作周期生成装置が生成する
前記動作周期に同期して動作する伝送媒体を複数接続す
る伝送媒体接続装置であって、 基準周期を発生する周期発生手段と、 接続された伝送媒体の前記動作周期と前記周期発生手段
が発生する前記基準周期を比較して誤差を検出する誤差
検出手段と、 前記誤差検出手段が検出した前記誤差を累積し、累積し
た前記誤差の大きさが所定の値を超えた場合に、前記動
作クロックを増加または減少させるためのクロック制御
信号を出力するクロック制御手段と、 前記動作周期生成装置に前記クロック制御信号を送信す
る制御信号送信手段とを備えることを特徴とする伝送媒
体接続装置。
1. A transmission medium connection device having an operation cycle determined based on the number of operation clocks and connecting a plurality of transmission media operating in synchronization with the operation cycle generated by an operation cycle generation device. A cycle generating means for generating a reference cycle; an error detecting means for detecting an error by comparing the operation cycle of the connected transmission medium with the reference cycle generated by the cycle generating means; A clock control unit that accumulates the error and outputs a clock control signal for increasing or decreasing the operation clock when the magnitude of the accumulated error exceeds a predetermined value; and the operation cycle generation device. And a control signal transmitting means for transmitting the clock control signal.
【請求項2】 動作クロックのクロック数に基づいて決
定される動作周期を持ち、動作周期生成装置が生成する
前記動作周期に同期して動作する伝送媒体を複数接続す
る伝送媒体接続装置であって、 接続された伝送媒体の中から基準伝送媒体を一つ選択
し、前記基準伝送媒体の前記動作周期とそれ以外の伝送
媒体の前記動作周期を比較して誤差を検出する誤差検出
手段と、 前記誤差検出手段が検出した前記誤差を累積し、累積し
た前記誤差の大きさが所定の値を超えた場合に、前記動
作クロックを増加または減少させるためのクロック制御
信号を出力するクロック制御手段と、 前記基準伝送媒体以外の伝送媒体の前記動作周期生成装
置に前記クロック制御信号を送信する制御信号送信手段
とを備えることを特徴とする伝送媒体接続装置。
2. A transmission medium connecting device having an operation cycle determined based on the number of operation clocks and connecting a plurality of transmission media operating in synchronization with the operation cycle generated by an operation cycle generation device. Error detection means for selecting one reference transmission medium from among the connected transmission media, comparing the operation cycle of the reference transmission medium with the operation cycle of the other transmission medium, and detecting an error; A clock control unit that accumulates the error detected by the error detection unit, and outputs a clock control signal for increasing or decreasing the operation clock when the magnitude of the accumulated error exceeds a predetermined value; A transmission signal connection unit for transmitting the clock control signal to the operation cycle generation device of a transmission medium other than the reference transmission medium.
【請求項3】 動作クロックのクロック数に基づいて決
定される動作周期を持ち、動作周期生成装置が生成する
前記動作周期に同期して動作する伝送媒体を複数接続す
る伝送媒体接続装置であって、 動作の基準となる基準周期を発生する周期発生手段と、 接続された伝送媒体の中から選択された基準伝送媒体の
前記動作周期もしくは前記周期発生手段が発生する前記
基準周期の中から何れか一つの前記動作周期を選択し、
接続された伝送媒体の前記動作周期と比較して誤差を検
出する誤差検出手段と、 前記誤差検出手段が検出した前記誤差を累積し、累積し
た前記誤差の大きさが所定の値を超えた場合に、前記動
作クロックを増加または減少させるためのクロック制御
信号を出力するクロック制御手段と、 前記動作周期生成装置に前記クロック制御信号を送信す
る制御信号送信手段とを備えることを特徴とする伝送媒
体接続装置。
3. A transmission medium connection device having an operation cycle determined based on the number of operation clocks and connecting a plurality of transmission media operating in synchronization with the operation cycle generated by an operation cycle generation device. A cycle generating means for generating a reference cycle serving as a reference for operation; and any one of the operation cycle of the reference transmission medium selected from the connected transmission media or the reference cycle generated by the cycle generating means. Selecting one of the operation cycles,
Error detecting means for detecting an error by comparing with the operation cycle of the connected transmission medium; and when the error detected by the error detecting means is accumulated, and the magnitude of the accumulated error exceeds a predetermined value. Transmission medium for outputting a clock control signal for increasing or decreasing the operation clock, and control signal transmission means for transmitting the clock control signal to the operation cycle generation device. Connection device.
【請求項4】 前記誤差検出手段は、選択する前記動作
基準の指示を受け取り、この指示に基づいた選択を行う
ことを特徴とする請求項2または3記載の伝送媒体接続
装置。
4. The transmission medium connection device according to claim 2, wherein said error detecting means receives an instruction of said operation criterion to be selected, and performs selection based on said instruction.
【請求項5】 前記クロック制御信号は、増加または減
少を指示する方法として、クロックを1だけ増加させる
ための指示もしくは1だけ減少させるための指示の何れ
かを使用することを特徴とする請求項1〜3の何れか一
つの請求項記載の伝送媒体接続装置。
5. The clock control signal according to claim 1, wherein the clock control signal uses one of an instruction for increasing the clock by one and an instruction for decreasing the clock by one. The transmission medium connection device according to claim 1.
【請求項6】 前記クロック制御信号は、クロックを増
加または減少させる制御を行う制御期間と、前記制御期
間の間に増加または減少させるクロック数を指定するこ
とを特徴とする請求項1〜3の何れか一つの請求項記載
の伝送媒体接続装置。
6. The clock control signal according to claim 1, wherein the clock control signal designates a control period for performing a control for increasing or decreasing a clock, and the number of clocks for increasing or decreasing during the control period. The transmission medium connection device according to claim 1.
【請求項7】 動作クロックのクロック数に基づいて決
定される動作周期を持ち、動作周期生成装置が生成する
前記動作周期に同期して動作する伝送媒体に接続される
動作周期生成装置であって、 前記動作クロックを数えるカウンタと、 前記カウンタの値が所定の値になった時に前記動作周期
の基準となる基準信号を前記伝送媒体に送信する動作周
期出力手段と、 前記動作クロックの増加もしくは減少を指示するクロッ
ク制御信号を受信して出力する制御信号受信手段と、 前記制御信号受信手段が受信した前記クロック制御信号
に基づいて、前記カウンタの値を増加または減少させる
カウンタ制御手段とを備えることを特徴とする動作周期
生成装置。
7. An operation cycle generation device having an operation cycle determined based on the number of operation clocks and connected to a transmission medium that operates in synchronization with the operation cycle generated by the operation cycle generation device. A counter that counts the operation clock; an operation cycle output unit that transmits a reference signal serving as a reference of the operation cycle to the transmission medium when a value of the counter reaches a predetermined value; and an increase or decrease of the operation clock. Control signal receiving means for receiving and outputting a clock control signal instructing the control signal, and counter control means for increasing or decreasing the value of the counter based on the clock control signal received by the control signal receiving means. An operation cycle generation device characterized by the following.
【請求項8】 動作クロックのクロック数に基づいて決
定される動作周期を持ち、動作周期生成装置が生成する
前記動作周期に同期して動作する伝送媒体に接続される
動作周期生成装置であって、 前記動作クロックを数えるカウンタと、 前記カウンタの値が所定の値になった時に前記動作周期
の基準となる基準信号を前記伝送媒体に送信する動作周
期出力手段と、 前記動作クロックを増加または減少させるための制御を
行う制御期間と、前記制御期間内に増加または減少させ
るクロック数を含むクロック制御信号を受信して出力す
る制御信号受信手段と、 前記クロック制御信号に含まれる前記制御期間を計測
し、前記クロック制御信号に含まれる増加または減少さ
せるクロック数に基づいて、前記制御期間内に一定間隔
で前記カウンタの値を1だけ増加または減少させるため
のカウンタ制御信号を出力するカウンタ制御均一化手段
と、 前記カウンタ制御信号に基づいて、前記カウンタの値を
増加または減少させるカウンタ制御手段とを備えること
を特徴とする動作周期生成装置。
8. An operation cycle generation device having an operation cycle determined based on the number of operation clocks and connected to a transmission medium operating in synchronization with the operation cycle generated by the operation cycle generation device. A counter for counting the operation clock; an operation cycle output means for transmitting a reference signal serving as a reference of the operation cycle to the transmission medium when a value of the counter reaches a predetermined value; and increasing or decreasing the operation clock. A control period for performing control for performing the control, a control signal receiving unit that receives and outputs a clock control signal including a clock number to be increased or decreased during the control period, and measures the control period included in the clock control signal. The counter value is set at regular intervals within the control period based on the number of clocks to be increased or decreased included in the clock control signal. An operation comprising: counter control equalizing means for outputting a counter control signal for increasing or decreasing by one; and counter control means for increasing or decreasing the value of the counter based on the counter control signal. Period generator.
【請求項9】 前記カウンタ制御均一化手段は、新たな
前記クロック制御信号を受信するまで、直前に受信した
前記クロック制御信号に基づいてクロックの増加または
減少を制御することを特徴とする請求項8記載の動作周
期生成装置。
9. The counter control equalizing means controls an increase or decrease of a clock based on the clock control signal received immediately before until a new clock control signal is received. 9. The operation cycle generation device according to 8.
【請求項10】 動作クロックのクロック数に基づいて
決定される動作周期を持ち、動作周期生成装置が生成す
る前記動作周期に同期して動作する伝送媒体を複数接続
する伝送媒体接続装置であって、 基準周期を発生する周期発生手段と、 接続された伝送媒体の前記動作周期と前記周期発生手段
が発生する前記基準周期を比較して誤差を検出する誤差
検出手段と、 前記誤差検出手段が検出した前記誤差を累積し、累積し
た前記誤差の大きさが所定の値を超えた場合に、前記動
作周期を延長または短縮させるための周期制御信号を出
力する周期制御手段と、 前記動作周期生成装置に前記周期制御信号を送信する制
御信号送信手段とを備えることを特徴とする伝送媒体接
続装置。
10. A transmission medium connection device having an operation cycle determined based on the number of operation clocks and connecting a plurality of transmission media operating in synchronization with the operation cycle generated by the operation cycle generation device. A cycle generating means for generating a reference cycle; an error detecting means for detecting an error by comparing the operation cycle of the connected transmission medium with the reference cycle generated by the cycle generating means; Cycle control means for accumulating the error, and outputting a cycle control signal for extending or shortening the operation cycle when the magnitude of the accumulated error exceeds a predetermined value; and the operation cycle generation device. And a control signal transmitting means for transmitting the periodic control signal.
【請求項11】 動作クロックのクロック数に基づいて
決定される動作周期を持ち、動作周期生成装置が生成す
る前記動作周期に同期して動作する伝送媒体を複数接続
する伝送媒体接続装置であって、 接続された伝送媒体の中から基準伝送媒体を一つ選択
し、前記基準伝送媒体の前記動作周期とそれ以外の伝送
媒体の前記動作周期を比較して誤差を検出する誤差検出
手段と、 前記誤差検出手段が検出した前記誤差を累積し、累積し
た前記誤差の大きさが所定の値を超えた場合に、前記動
作周期を延長または短縮させるための周期制御信号を出
力する周期制御手段と、 前記基準伝送媒体以外の伝送媒体の前記動作周期生成装
置に前記周期制御信号を送信する制御信号送信手段とを
備えることを特徴とする伝送媒体接続装置。
11. A transmission medium connection device having an operation cycle determined based on the number of operation clocks and connecting a plurality of transmission media operating in synchronization with the operation cycle generated by the operation cycle generation device. Error detection means for selecting one reference transmission medium from among the connected transmission media, comparing the operation cycle of the reference transmission medium with the operation cycle of the other transmission medium, and detecting an error; Accumulating the error detected by the error detection means, and when the magnitude of the accumulated error exceeds a predetermined value, a cycle control means for outputting a cycle control signal for extending or shortening the operation cycle, A transmission medium connection device, comprising: control signal transmission means for transmitting the period control signal to the operation period generation device of a transmission medium other than the reference transmission medium.
【請求項12】 動作クロックのクロック数に基づいて
決定される動作周期を持ち、動作周期生成装置が生成す
る前記動作周期に同期して動作する伝送媒体を複数接続
する伝送媒体接続装置であって、 動作の基準となる基準周期を発生する周期発生手段と、 接続された伝送媒体の中から選択された基準伝送媒体の
動作周期もしくは前記周期発生手段が発生する前記基準
周期の中から何れか一つの前記動作周期を選択し、接続
された伝送媒体の動作周期と比較して誤差を検出する誤
差検出手段と、 前記誤差検出手段が検出した前記誤差を累積し、累積し
た前記誤差の大きさが所定の値を超えた場合に、前記動
作周期を延長または短縮させるための周期制御信号を出
力する周期制御手段と、 前記動作周期生成装置に前記周期制御信号を送信する制
御信号送信手段とを備えることを特徴とする伝送媒体接
続装置。
12. A transmission medium connection device having an operation cycle determined based on the number of operation clocks and connecting a plurality of transmission media operating in synchronization with the operation cycle generated by the operation cycle generation device. A period generating means for generating a reference period as a reference for operation; and one of an operation period of a reference transmission medium selected from the connected transmission media or the reference period generated by the period generating means. Error detecting means for selecting one of the operating cycles, comparing the operating cycle of the connected transmission medium to detect an error, accumulating the errors detected by the error detecting means, and calculating the magnitude of the accumulated error. A cycle control unit that outputs a cycle control signal for extending or shortening the operation cycle when the value exceeds a predetermined value; and transmitting the cycle control signal to the operation cycle generation device. Transmission medium connecting device, characterized in that it comprises a control signal transmitter.
【請求項13】 前記誤差検出手段は、選択する前記動
作基準の指示を受け取り、この指示に基づいた選択を行
うことを特徴とする請求項11または12記載の伝送媒
体接続装置。
13. The transmission medium connection device according to claim 11, wherein said error detecting means receives an instruction of said operation reference to be selected and performs selection based on said instruction.
【請求項14】 前記周期制御信号は、周期の延長また
は短縮を指示する方法として、周期を1クロック分だけ
延長するための指示もしくは1クロック分だけ短縮する
ための指示の何れかを使用することを特徴とする請求項
10〜12の何れか一つの請求項記載の伝送媒体接続装
置。
14. The cycle control signal may use any one of an instruction to extend the cycle by one clock and an instruction to shorten the cycle by one clock as a method of instructing extension or shortening of the cycle. The transmission medium connection device according to any one of claims 10 to 12, characterized in that:
【請求項15】 前記周期制御制御信号は、周期を延長
または短縮させる制御を行う制御期間と、前記制御期間
の間に前記動作周期を1クロック分だけ延長または短縮
させる回数を指定することを特徴とする請求項10〜1
2の何れか一つの請求項記載の伝送媒体接続装置。
15. The cycle control signal designates a control period for performing control for extending or shortening a cycle, and a number of times for extending or shortening the operation cycle by one clock during the control period. Claims 10-1
The transmission medium connection device according to claim 2.
【請求項16】 動作クロックのクロック数に基づいて
決定される動作周期を持ち、動作周期生成装置が生成す
る前記動作周期に同期して動作する伝送媒体に接続され
る動作周期生成装置であって、 前記動作クロックを数えるカウンタと、 前記動作周期の延長または短縮を指示する周期制御信号
を受信して出力する制御信号受信手段と、 前記制御信号受信手段から前記周期制御信号が出力され
ていない間には前記カウンタの値が所定の値になったと
き前記動作周期の基準となる基準信号を前記伝送媒体に
送信し、前記制御信号受信手段から前記周期制御信号が
入力された場合には前記カウンタの値が所定の値よりも
前記周期制御信号に含まれるクロックの分だけ後もしく
は前に前記基準信号を前記伝送媒体に送信する動作周期
出力手段とを備えることを特徴とする動作周期生成装
置。
16. An operation cycle generation device connected to a transmission medium having an operation cycle determined based on the number of operation clocks and operating in synchronization with the operation cycle generated by the operation cycle generation device. A counter that counts the operation clock; a control signal receiving unit that receives and outputs a cycle control signal for instructing extension or shortening of the operation cycle; and a period in which the cycle control signal is not output from the control signal receiving unit. When the value of the counter reaches a predetermined value, a reference signal serving as a reference of the operation cycle is transmitted to the transmission medium, and when the cycle control signal is input from the control signal receiving means, the counter is used. Operating cycle output means for transmitting the reference signal to the transmission medium after or before the value of the reference control signal by a clock included in the cycle control signal. An operation cycle generation device, comprising:
【請求項17】 動作クロックのクロック数に基づいて
決定される動作周期を持ち、動作周期生成装置が生成す
る前記動作周期に同期して動作する伝送媒体に接続され
る動作周期生成装置であって、 前記動作クロックを数えるカウンタと、 前記動作周期の延長または短縮するための制御を行う制
御期間と、前記制御期間内に1クロック分だけ延長また
は短縮させる回数を含む周期制御信号を受信して出力す
る制御信号受信手段と、 前記周期制御信号に含まれる前記制御期間を計測し、前
記周期制御信号に含まれる延長または短縮させる回数に
基づいて、前記制御期間内に一定間隔で前記動作周期を
1クロック分だけ延長または短縮するための周期生成制
御信号を出力する周期制御均一化手段と、 前記周期制御均一化手段から前記周期生成期制御信号が
出力されていない間には前記カウンタの値が所定の値に
なったとき前記動作周期の基準となる基準信号を前記伝
送媒体に送信し、前記周期制御均一化手段から前記周期
生成制御信号が入力された場合には、前記周期生成制御
信号に基づいて前記カウンタの値が所定の値よりも1ク
ロック分だけ後もしくは前に前記基準信号を前記伝送媒
体に送信する動作周期出力手段とを備えることを特徴と
する動作周期生成装置。
17. An operation cycle generation device having an operation cycle determined based on the number of operation clocks and connected to a transmission medium operating in synchronization with the operation cycle generated by the operation cycle generation apparatus. Receiving and outputting a counter for counting the operation clock, a control period for performing control for extending or shortening the operation period, and a period control signal including the number of times for extending or shortening by one clock within the control period. A control signal receiving unit that measures the control period included in the cycle control signal, and based on the number of times of extension or shortening included in the cycle control signal, sets the operation cycle at a constant interval within the control period by one. Period control equalizing means for outputting a period generation control signal for extending or shortening by a clock, and While the control signal is not being output, when the value of the counter reaches a predetermined value, a reference signal serving as a reference of the operation cycle is transmitted to the transmission medium, and the cycle control equalization means outputs the cycle generation control signal. When a signal is input, an operation period output means for transmitting the reference signal to the transmission medium one or more clocks later or before the value of the counter based on the period generation control signal from a predetermined value, and An operation cycle generation device, comprising:
【請求項18】 前記周期制御均一化手段はは、新たな
前記周期制御信号を受信するまで、直前に受信した前記
周期制御信号に基づいて前記動作周期の延長又は短縮を
制御することを特徴とする請求項17記載の動作周期生
成装置。
18. The cycle control equalizing means controls the extension or shortening of the operation cycle based on the cycle control signal received immediately before until a new cycle control signal is received. The operation cycle generation device according to claim 17, wherein
【請求項19】 動作クロックのクロック数に基づいて
決定される動作周期を持ち、動作周期生成装置が生成す
る前記動作周期に同期して動作する伝送媒体を複数接続
する伝送媒体接続装置を制御する伝送媒体接続制御装置
であって、 前記伝送媒体の接続構成を解析する解析手段と、 前記解析手段の解析結果に基づいて、複数の前記伝送媒
体を同期して動作させる場合の前記動作周期の基準を決
定する基準決定手段と、 前記基準決定手段が決定した前記動作周期の基準を前記
伝送媒体接続装置に通知する基準通知手段とを備えるこ
とを特徴とする伝送媒体接続制御装置。
19. A transmission medium connection device that has an operation cycle determined based on the number of operation clocks and connects a plurality of transmission media operating in synchronization with the operation cycle generated by the operation cycle generation device. A transmission medium connection control device, comprising: an analysis unit configured to analyze a connection configuration of the transmission medium; and a reference of the operation cycle when a plurality of the transmission media are operated in synchronization based on an analysis result of the analysis unit. The transmission medium connection control device, comprising: a reference determination unit that determines the operation cycle; and a reference notification unit that notifies the transmission medium connection device of the reference of the operation cycle determined by the reference determination unit.
【請求項20】 前記伝送媒体は、IEEE1394に
準拠したシリアルバスであることを特徴とする請求項1
〜6、または請求項10〜15の何れか一つの請求項記
載の伝送媒体接続装置。
20. The transmission medium according to claim 1, wherein the transmission medium is a serial bus compliant with IEEE1394.
The transmission medium connection device according to any one of claims 10 to 15.
【請求項21】 前記伝送媒体は、IEEE1394に
準拠したシリアルバスであることを特徴とする請求項7
〜9、または請求項16〜18の何れか一つの請求項記
載の動作周期生成装置。
21. The transmission medium according to claim 7, wherein the transmission medium is a serial bus compliant with IEEE1394.
An operation cycle generation device according to any one of claims 16 to 18.
【請求項22】 前記伝送媒体は、IEEE1395に
準拠したシリアルバスであることを特徴とする請求項1
9記載の伝送媒体接続制御装置。
22. The transmission medium according to claim 1, wherein the transmission medium is a serial bus conforming to IEEE 1395.
10. The transmission medium connection control device according to 9.
【請求項23】 前記伝送媒体は、IEEE1394に
準拠したシリアルバスであり、前記クロック制御信号の
伝送にアイソクロナス・パケットを使用することを特徴
とする1〜6の何れか一つの請求項記載の伝送媒体接続
装置。
23. The transmission according to claim 1, wherein the transmission medium is a serial bus conforming to IEEE 1394, and an isochronous packet is used for transmitting the clock control signal. Medium connection device.
【請求項24】 前記伝送媒体は、IEEE1394に
準拠したシリアルバスであり、前記クロック制御信号の
伝送にアイソクロナス・パケットを使用することを特徴
とする7〜9の何れか一つの請求項記載の動作周期生成
装置。
24. The operation according to claim 7, wherein the transmission medium is a serial bus conforming to IEEE 1394, and an isochronous packet is used for transmitting the clock control signal. Period generator.
【請求項25】 前記伝送媒体は、IEEE1394に
準拠したシリアルバスであり、前記周期制御信号の伝送
にアイソクロナス・パケットを使用することを特徴とす
る10〜15の何れか一つの請求項記載の伝送媒体接続
装置。
25. The transmission according to claim 10, wherein the transmission medium is a serial bus conforming to IEEE 1394, and an isochronous packet is used for transmitting the period control signal. Medium connection device.
【請求項26】 前記伝送媒体は、IEEE1394に
準拠したシリアルバスであり、前記周期制御信号の伝送
にアイソクロナス・パケットを使用することを特徴とす
る16〜18の何れか一つの請求項記載の動作周期生成
装置。
26. The operation according to claim 16, wherein the transmission medium is a serial bus conforming to IEEE 1394, and an isochronous packet is used for transmitting the period control signal. Period generator.
【請求項27】 前記伝送媒体は、IEEE1394に
準拠したシリアルバスであり、前記誤差検出手段はサイ
クル・スタートパケットを受信した時点のサイクル・タ
イム・レジスタの値と前記サイクル・スタート・パケッ
トに含まれた値を比較することによって誤差を算出する
ことを特徴とする請求項1〜6または請求項10〜15
の何れか一つの請求項記載の伝送媒体接続装置。
27. The transmission medium is a serial bus conforming to IEEE 1394, wherein the error detecting means includes a value of a cycle time register at the time of receiving a cycle start packet and a value included in the cycle start packet. The error is calculated by comparing the calculated values.
The transmission medium connection device according to claim 1.
【請求項28】 請求項1〜27の何れか一つの請求項
に記載の手段の一部又は全部の機能をコンピュータもし
くはマイコンに実行させるためのプログラムを記録した
ことを特徴とする記録媒体。
28. A recording medium having recorded thereon a program for causing a computer or a microcomputer to execute a part or all of the functions of the means according to any one of claims 1 to 27.
JP9344871A 1997-12-15 1997-12-15 Transmission medium connection device and controller, operating cycle generation device and recording medium Pending JPH11177591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9344871A JPH11177591A (en) 1997-12-15 1997-12-15 Transmission medium connection device and controller, operating cycle generation device and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9344871A JPH11177591A (en) 1997-12-15 1997-12-15 Transmission medium connection device and controller, operating cycle generation device and recording medium

Publications (1)

Publication Number Publication Date
JPH11177591A true JPH11177591A (en) 1999-07-02

Family

ID=18372644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9344871A Pending JPH11177591A (en) 1997-12-15 1997-12-15 Transmission medium connection device and controller, operating cycle generation device and recording medium

Country Status (1)

Country Link
JP (1) JPH11177591A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001003377A1 (en) * 1999-07-06 2001-01-11 Matsushita Electric Industrial Co., Ltd. Device control method and program recorded medium on which the method is recorded
US6813282B1 (en) 1999-09-24 2004-11-02 Nec Corporation Isochronous packet transfer method, computer readable recording media recorded with control program for executing isochronous packet transfer, and bridge and packet transfer control LSI
JP2007529163A (en) * 2003-07-18 2007-10-18 フリースケール セミコンダクター インコーポレイテッド Network node
JP2009239452A (en) * 2008-03-26 2009-10-15 Nec Electronics Corp Transmission timing change type network device and system
JP2009239450A (en) * 2008-03-26 2009-10-15 Nec Electronics Corp Route change type network device and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001003377A1 (en) * 1999-07-06 2001-01-11 Matsushita Electric Industrial Co., Ltd. Device control method and program recorded medium on which the method is recorded
US7668993B1 (en) 1999-07-06 2010-02-23 Panasonic Corporation System and method for determining the connection state of devices connected to a bus
US6813282B1 (en) 1999-09-24 2004-11-02 Nec Corporation Isochronous packet transfer method, computer readable recording media recorded with control program for executing isochronous packet transfer, and bridge and packet transfer control LSI
JP2007529163A (en) * 2003-07-18 2007-10-18 フリースケール セミコンダクター インコーポレイテッド Network node
US8204035B2 (en) 2003-07-18 2012-06-19 Freescale Semiconductor, Inc. Network node
JP2009239452A (en) * 2008-03-26 2009-10-15 Nec Electronics Corp Transmission timing change type network device and system
JP2009239450A (en) * 2008-03-26 2009-10-15 Nec Electronics Corp Route change type network device and system

Similar Documents

Publication Publication Date Title
US6397277B1 (en) Method and apparatus for transmitting data over data bus at maximum speed
KR101576344B1 (en) Methods and apparatus for transporting data through network tunnels
US7701855B2 (en) Communication device, communication system, communication method, communication program and recording medium storing the communication program
JP5793690B2 (en) Interface device and memory bus system
WO2010132946A1 (en) Universal serial bus with lossless data pipe and precision synchronisation layer
JP2000165414A (en) Method and device for transmitting variable isochronal data
JPH0373636A (en) Data synchronizing transmission system
US6895003B1 (en) Communication system, apparatus, and method in which data transmission is interrupted for a bus reset
US7330921B2 (en) Communication control circuit and communication control method
JP2003174486A (en) Information communication device, information communication method and information communication processing program
KR100511695B1 (en) Serial interface circuit and signal processing method thereof
JPH11177591A (en) Transmission medium connection device and controller, operating cycle generation device and recording medium
US7826492B2 (en) Communication system, cycle master node and communication method
EP1518356B1 (en) System and method to measure transmission delay between 1394 bridges
JP2001326670A (en) Information processing unit and bridge utilizing the same
KR100673802B1 (en) Transmitting method transmitting system and transmitter
JP3832733B2 (en) Polling device and communication device
KR100539018B1 (en) Method and device for processing data packets which have been received or are to be transmitted on a data channel
KR100932925B1 (en) Direct memory access control device and its method for the transmission efficiency of MMO
JP2006040167A (en) Bus arbitration circuit, information processing device, and program and recording medium for the same
JPH10336252A (en) Serial data transfer controller and serial data transfer method
US7684530B2 (en) Circuit arrangement and method for synchronised transmission of audio data streams in a bus system
JP3416498B2 (en) Server device, control method therefor, and recording medium storing server device control program
JP2003263402A (en) Data transfer device and data transfer method
JP2004235747A (en) Data transmission method, data transmission device and data transmission system