JP6818845B1 - Time synchronization system, time synchronization circuit, and time synchronization method - Google Patents

Time synchronization system, time synchronization circuit, and time synchronization method Download PDF

Info

Publication number
JP6818845B1
JP6818845B1 JP2019196014A JP2019196014A JP6818845B1 JP 6818845 B1 JP6818845 B1 JP 6818845B1 JP 2019196014 A JP2019196014 A JP 2019196014A JP 2019196014 A JP2019196014 A JP 2019196014A JP 6818845 B1 JP6818845 B1 JP 6818845B1
Authority
JP
Japan
Prior art keywords
unit
time
counter
count value
reference 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.)
Active
Application number
JP2019196014A
Other languages
Japanese (ja)
Other versions
JP2021071297A (en
Inventor
橋本 直也
直也 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Solutions Inc.
Original Assignee
Seiko Solutions Inc.
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 Seiko Solutions Inc. filed Critical Seiko Solutions Inc.
Priority to JP2019196014A priority Critical patent/JP6818845B1/en
Application granted granted Critical
Publication of JP6818845B1 publication Critical patent/JP6818845B1/en
Publication of JP2021071297A publication Critical patent/JP2021071297A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

【課題】複数の回路間の時刻同期を、高い精度で、かつ、ローコストで実現することができることができる時刻同期システムを提供する。【解決手段】PRTCU部111が、基準クロックを生成し、PRTC部100から取得した時刻を、カウンタ部112に格納し、カウンタ部112が、基準クロックに従ってカウントアップをし、cPRTC−IF113により、基準クロックと、カウンタ部112に格納された時刻を表すシリアルデータとを出力する。cPRTCU部122が、基準クロックと、シリアルデータが表す前記時刻との入力を受け付け、カウンタ部123の上書きを行い、カウンタ部123が、基準クロックに従ってカウントアップをする。【選択図】図1PROBLEM TO BE SOLVED: To provide a time synchronization system capable of realizing time synchronization between a plurality of circuits with high accuracy and at low cost. SOLUTION: A PRTCU unit 111 generates a reference clock, stores the time acquired from the PRTC unit 100 in a counter unit 112, the counter unit 112 counts up according to the reference clock, and the cPRTC-IF113 refers to the time. The clock and serial data representing the time stored in the counter unit 112 are output. The cPRTCU unit 122 receives the input of the reference clock and the time represented by the serial data, overwrites the counter unit 123, and the counter unit 123 counts up according to the reference clock. [Selection diagram] Fig. 1

Description

本発明は、時刻同期システム、時刻同期回路、及び時刻同期方法に関する。 The present invention relates to a time synchronization system, a time synchronization circuit, and a time synchronization method.

従来より、高精度の時刻を得る方法としてGNSS(Global Navigation Satellite System)やPTP(Precision Time Protocol)を用いて、PRTC(Primary Reference Time Clock:一次時刻源)に等しい時刻を得る手段が知られている。 Conventionally, as a method of obtaining a highly accurate time, a means of obtaining a time equal to PRTC (Primary Reference Time Lock: primary time source) using GNSS (Global Navigation Satellite System) or PTP (Precision Time Protocol) has been known. There is.

ITU−T G.8272/Y.1367(11/2018) Timing characteristics of primary reference time clocksITU-T G. 8272 / Y. 1367 (11/2018) Timing charactitics of primary reference time clocks IEEE1588−2008 IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control SystemsIEEE1588-2008 IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems

ところで、GNSS受信機やGNSS受信ユニットから装置内で利用したい時刻を得るためにはCPUやPLL(Phase Locked Loop)などコストの高い部品が必要となる、また昨今Ethernetを介して高精度時刻同期を行うPTPを用いて時刻同期を行う機器(以後、PTPスレーブとする)では、GNSSの受信が不可能な環境においても高精度な時刻を得ることが可能になった。 By the way, in order to obtain the time desired to be used in the device from the GNSS receiver or GNSS receiving unit, high-cost parts such as a CPU and a PLL (Phase Locked Loop) are required, and recently, high-precision time synchronization is performed via Satellite. With a device that synchronizes time using PTP (hereinafter referred to as PTP slave), it has become possible to obtain highly accurate time even in an environment where GNSS reception is not possible.

しかしながら、GNSS受信機は高価な上、GNSSの受信のために天空が見えている環境にいる必要があるなど制限が多い。またPTPスレーブでは、高精度な時刻を得るために高性能なPLL及び水晶が必要である。また、PTPスレーブで最も重要なのは、間欠的に受信するPTPパケットから正確な時間を生成する技術であり、ノウハウが伴うため、開発期間や専門家が必要となっている。 However, the GNSS receiver is expensive, and there are many restrictions such as the need to be in an environment where the sky can be seen in order to receive the GNSS. Further, the PTP slave requires a high-performance PLL and crystal in order to obtain a highly accurate time. Further, the most important thing in the PTP slave is a technology for generating an accurate time from the PTP packet received intermittently, and since it involves know-how, a development period and an expert are required.

これらの手段を用いれば正確な時刻を得ることは可能であるが、装置内に複数の高精度時刻が必要なLSI(Large−Scale Integration)や基板が存在する場合に、当該手段を複数設置することは、基板面積や装置コストの面から採用することはできない。 Although it is possible to obtain an accurate time by using these means, if there are a plurality of LSIs (Large-Scale Integration) or substrates that require a plurality of high-precision times in the apparatus, a plurality of such means are installed. This cannot be adopted in terms of substrate area and equipment cost.

本発明は、上記事情を鑑みて成されたものであり、複数の回路間の時刻同期を、高い精度で、かつ、ローコストで実現することができる時刻同期システム、時刻同期回路、及び時刻同期方法を提供することを目的とする。 The present invention has been made in view of the above circumstances, and is a time synchronization system, a time synchronization circuit, and a time synchronization method capable of realizing time synchronization between a plurality of circuits with high accuracy and at low cost. The purpose is to provide.

上記目的を達成するために、本発明に係る時刻同期システムは、基準クロックを生成するためのクロック生成部、時刻を表す複数ビットのカウント値を格納すると共に、前記基準クロックに従ってカウントアップをする第1カウンタ部、一次時刻源ユニットから取得した時刻を、前記第1カウンタ部に格納する制御部、及び前記基準クロックと、前記第1カウンタ部に格納された時刻を表すシリアルデータとを出力する出力部を含む第1時刻同期回路と、前記基準クロックと、前記シリアルデータが表す前記時刻との入力を受け付ける入力部、自装置の時刻を表す複数ビットのカウント値を格納すると共に、前記基準クロックに従ってカウントアップをする第2カウンタ部、及び入力された前記シリアルデータが表す時刻に基づいて、前記第2カウンタ部の前記複数ビットのカウント値の上書きを行う上書部を含む少なくとも1つの第2時刻同期回路と、を含んで構成されている。 In order to achieve the above object, the time synchronization system according to the present invention stores a clock generation unit for generating a reference clock, a count value of a plurality of bits representing the time, and counts up according to the reference clock. Output that outputs the 1 counter unit, the control unit that stores the time acquired from the primary time source unit in the first counter unit, the reference clock, and serial data representing the time stored in the first counter unit. The first time synchronization circuit including the unit, the input unit that accepts the input of the reference clock and the time represented by the serial data, and the counter value of a plurality of bits representing the time of the own device are stored, and according to the reference clock. At least one second time including a second counter unit for counting up and an overwriting unit for overwriting the count values of the plurality of bits of the second counter unit based on the input time represented by the serial data. It is configured to include a synchronization circuit.

この発明によれば、一次時刻源ユニットから取得した時刻を、第1カウンタ部に格納し、第1カウンタ部に格納された時刻を表すシリアルデータを、第2時刻同期回路に出力して、入力されたシリアルデータが表す時刻に基づいて、第2カウンタ部のカウント値の上書きを行う。これにより、複数の回路間の時刻同期を、高い精度で、かつ、ローコストで実現することができる。 According to the present invention, the time acquired from the primary time source unit is stored in the first counter unit, and the serial data representing the time stored in the first counter unit is output to the second time synchronization circuit and input. The count value of the second counter unit is overwritten based on the time represented by the serial data. As a result, time synchronization between a plurality of circuits can be realized with high accuracy and low cost.

ここで、一次時刻源ユニットとは、高精度の時刻を出力するユニットであり、基準クロックとは、カウンタのカウントアップ動作の周期を定めるクロックであり、シリアルデータとは、シリアルインタフェースで伝送可能なデータである。 Here, the primary time source unit is a unit that outputs a highly accurate time, the reference clock is a clock that determines the cycle of counter count-up operation, and serial data can be transmitted by a serial interface. It is data.

また、前記第1カウンタ部は、前記基準クロックに従ってカウントアップする、複数bitで構成され、かつ、ナノ秒単位のカウント値を格納するナノ秒カウンタ、及び複数bitで構成され、かつ、秒単位のカウント値を格納する秒カウンタを有し、前記ナノ秒カウンタは、前記制御部からの指示が入力されるまで、カウントアップを継続し、前記ナノ秒カウンタの桁あふれを検知すると、前記ナノ秒カウンタのカウント値を、桁あふれ量に置き換え、前記秒カウンタのカウント値をインクリメントし、前記出力部は、前記秒カウンタのカウント値と、前記ナノ秒カウンタのカウント値とで構成されるカウンタ時刻情報をラッチするタイミングを規定するためのラッチ条件を設定するラッチ条件セット部と、前記カウンタ時刻情報を監視し、前記ラッチ条件を満たす時刻に到達したときに、ラッチパルスを生成するラッチパルス生成部と、前記ラッチパルスを受信した場合に前記カウンタ時刻情報をラッチすることにより得られた複数ビットの時刻情報を格納する一時記憶領域と、前記一時記憶領域に格納された前記複数ビットの時刻情報を複数のシリアルデータに変換するパラレルシリアル変換部であって、前記シリアルデータが有効であることを前記第2時刻同期回路に通知するENABLE信号を生成すると共に、前記基準クロックに従ってカウントアップするカウンタを含み、前記カウンタのカウント値をもとに現時点で送付すべき前記シリアルデータを選択して、選択された前記シリアルデータを前記第2時刻同期回路に出力するパラレルシリアル変換部と、を含むことができる。 Further, the first counter unit is composed of a plurality of bits and stores a count value in nanoseconds, which counts up according to the reference clock, and a nanosecond counter which is composed of a plurality of bits and is in seconds. It has a second counter that stores a count value, and the nanosecond counter continues counting up until an instruction from the control unit is input, and when it detects an overflow of digits of the nanosecond counter, the nanosecond counter The count value of is replaced with the digit overflow amount, the count value of the second counter is incremented, and the output unit outputs counter time information composed of the count value of the second counter and the count value of the nanosecond counter. A latch condition set unit that sets a latch condition for defining a latch timing, a latch pulse generation unit that monitors the counter time information and generates a latch pulse when the time that satisfies the latch condition is reached, A temporary storage area for storing a plurality of bits of time information obtained by latching the counter time information when the latch pulse is received, and a plurality of the plurality of bits of time information stored in the temporary storage area. A parallel serial converter that converts serial data, including a counter that generates an ENABLE signal that notifies the second time synchronization circuit that the serial data is valid, and counts up according to the reference clock. A parallel serial conversion unit that selects the serial data to be sent at the present time based on the count value of the counter and outputs the selected serial data to the second time synchronization circuit can be included.

また、前記入力部は、前記出力部からの基準クロックと、前記パラレルシリアル変換部からの前記ENABLE信号を監視するENABLE検出部と、前記ENABLE信号がhighである間、前記ENABLE検出部が前記基準クロックの立ち上がりエッジを検出する毎に、前記パラレルシリアル変換部から入力された前記シリアルデータを格納するシフトレジスタ部とを含み、前記ENABLE検出部は、前記ENABLE信号がLowとなっていることを前記基準クロックの立ち上がりエッジの検出時に確認した場合、前記第2カウンタ部に、前記シフトレジスタ部に格納されたデータを上書きすることを通知する上書きパルスを送出することができる。 Further, the input unit includes a reference clock from the output unit, an ENABLE detection unit that monitors the ENABLE signal from the parallel serial conversion unit, and the ENABLE detection unit while the ENABLE signal is high. Each time the rising edge of the clock is detected, the ENABLE detection unit includes a shift register unit that stores the serial data input from the parallel serial conversion unit, and the ENABLE detection unit indicates that the ENABLE signal is Low. When confirmed at the time of detecting the rising edge of the reference clock, it is possible to send an overwrite pulse notifying the second counter unit that the data stored in the shift register unit will be overwritten.

また、前記入力部は、前記出力部からの基準クロックと、前記パラレルシリアル変換部からの前記ENABLE信号を監視するENABLE検出部と、前記ENABLE信号がhighである間、前記ENABLE検出部が前記基準クロックの立ち下がりエッジを検出する毎に、前記パラレルシリアル変換部から入力された前記シリアルデータを格納するシフトレジスタ部とを含み、前記ENABLE検出部は、前記ENABLE信号がLowとなっていることを前記基準クロックの立ち下がりエッジの検出時に確認した場合、前記第2カウンタ部に、前記シフトレジスタ部に格納されたデータを上書きすることを通知する上書きパルスを送出することができる。 Further, the input unit includes a reference clock from the output unit, an ENABLE detection unit that monitors the ENABLE signal from the parallel serial conversion unit, and the ENABLE detection unit while the ENABLE signal is high. Each time the falling edge of the clock is detected, the ENABLE detection unit includes a shift register unit that stores the serial data input from the parallel serial conversion unit, and the ENABLE detection unit indicates that the ENABLE signal is Low. When confirmed at the time of detecting the falling edge of the reference clock, it is possible to send an overwrite pulse notifying the second counter unit that the data stored in the shift register unit is to be overwritten.

また、前記第2カウンタ部は、前記基準クロックに従ってカウントアップする、複数bitで構成され、かつ、ナノ秒単位のカウント値を格納するナノ秒カウンタ、及び複数bitで構成され、かつ、秒単位のカウント値を格納する秒カウンタを有し、前記ナノ秒カウンタは、前記上書きパルスが入力されるまで、カウントアップを継続し、前記ナノ秒カウンタの桁あふれを検知すると、前記ナノ秒カウンタのカウント値を、桁あふれ量に置き換え、前記秒カウンタのカウント値をインクリメントし、前記上書部は、前記上書きパルスが入力されたときに、前記秒カウンタ及び前記ナノ秒カウンタの各々の現在のカウント値を、前記シフトレジスタ部に格納された値に対して所定値を加算した値に上書きし、前記所定値は、前記一次時刻源ユニットから時刻を取得してから、前記時刻の情報を、前記第2カウンタ部に格納するまでの伝搬遅延時間に応じた予め定められた値である。 Further, the second counter unit is composed of a plurality of bits and stores a count value in nanoseconds, which counts up according to the reference clock, and a nanosecond counter which is composed of a plurality of bits and is in seconds. It has a second counter that stores a count value, and the nanosecond counter continues counting up until the overwrite pulse is input, and when it detects an overflow of digits of the nanosecond counter, the count value of the nanosecond counter Is replaced with the digit overflow amount, the count value of the second counter is incremented, and the overwriting unit sets the current count values of the second counter and the nanosecond counter when the overwrite pulse is input. , The value obtained by adding a predetermined value to the value stored in the shift counter unit is overwritten, and the predetermined value obtains the time from the primary time source unit and then obtains the time information from the second. It is a predetermined value according to the propagation delay time until it is stored in the counter unit.

また、前記一次時刻源ユニットは、GNSS(Global Navigation Satellite System)放送の電波を受信し、前記受信した電波から、時刻情報を得て、前記時刻情報を演算処理することにより位相情報を得て、前記位相情報を演算処理することにより周波数情報を得ることができる。 Further, the primary time source unit receives radio waves of GNSS (Global Navigation Satellite System) broadcasting, obtains time information from the received radio waves, and obtains phase information by arithmetically processing the time information. Frequency information can be obtained by arithmetically processing the phase information.

また、前記一次時刻源ユニットは、グランドマスタークロックであり、前記制御部は、PTPを用いて、前記グランドマスタークロックの時刻を取得することができる。 Further, the primary time source unit is a grand master clock, and the control unit can acquire the time of the grand master clock by using PTP.

また、前記一次時刻源ユニットは、グランドマスタークロックからEthernetを介して、前記グランドマスタークロックと同一の時刻情報を得て、前記時刻情報を演算処理することにより位相情報を得て、前記位相情報を演算処理することにより周波数情報を得るPTPスレーブである。 Further, the primary time source unit obtains the same time information as the ground master clock from the ground master clock via the frequency, obtains phase information by arithmetically processing the time information, and obtains the phase information. It is a PTP slave that obtains frequency information by arithmetic processing.

本発明に係る時刻同期回路は、基準クロックを生成するためのクロック生成部と、時刻を表す複数ビットのカウント値を格納すると共に、前記基準クロックに従ってカウントアップをする第1カウンタ部と、一次時刻源ユニットから取得した時刻を、前記第1カウンタ部に格納する制御部、及び前記基準クロックと、前記第1カウンタ部に格納された時刻を表すシリアルデータとを出力する出力部とを含んで構成されている。 The time synchronization circuit according to the present invention includes a clock generation unit for generating a reference clock, a first counter unit that stores a count value of a plurality of bits representing the time, and counts up according to the reference clock, and a primary time. A control unit that stores the time acquired from the source unit in the first counter unit, and an output unit that outputs the reference clock and serial data representing the time stored in the first counter unit are included. Has been done.

この発明によれば、一次時刻源ユニットから取得した時刻を、第1カウンタ部に格納し、第1カウンタ部に格納された時刻を表すシリアルデータを出力する。これにより、複数の回路間の時刻同期を、高い精度で、かつ、ローコストで実現することができる。 According to the present invention, the time acquired from the primary time source unit is stored in the first counter unit, and serial data representing the time stored in the first counter unit is output. As a result, time synchronization between a plurality of circuits can be realized with high accuracy and low cost.

本発明に係る時刻同期方法は、第1時刻同期回路及び少なくとも1つの第2時刻同期回路を含む時刻同期システムにおける時刻同期方法であって、前記第1時刻同期回路のクロック生成部が、基準クロックを生成し、前記第1時刻同期回路の制御部が、一次時刻源ユニットから取得した時刻を、第1カウンタ部に格納し、前記第1時刻同期回路の第1カウンタ部が、前記基準クロックに従ってカウントアップをし、前記第1時刻同期回路の出力部が、前記基準クロックと、前記第1カウンタ部に格納された時刻を表すシリアルデータとを出力し、前記第2時刻同期回路の入力部が、前記基準クロックと、前記シリアルデータが表す前記時刻との入力を受け付け、前記第2時刻同期回路の上書部が、入力された時刻に基づいて、第2カウンタ部の上書きを行い、前記第2カウンタ部が、前記基準クロックに従ってカウントアップをする。 The time synchronization method according to the present invention is a time synchronization method in a time synchronization system including a first time synchronization circuit and at least one second time synchronization circuit, and the clock generation unit of the first time synchronization circuit is a reference clock. Is generated, the control unit of the first time synchronization circuit stores the time acquired from the primary time source unit in the first counter unit, and the first counter unit of the first time synchronization circuit follows the reference clock. After counting up, the output unit of the first time synchronization circuit outputs the reference clock and the serial data representing the time stored in the first counter unit, and the input unit of the second time synchronization circuit outputs the serial data. , The reference clock and the time represented by the serial data are received, and the overwriting part of the second time synchronization circuit overwrites the second counter part based on the input time, and the first 2 The counter unit counts up according to the reference clock.

この発明によれば、一次時刻源ユニットから取得した時刻を、第1カウンタ部に格納し、第1カウンタ部に格納された時刻を表すシリアルデータを、第2時刻同期回路に出力して、入力されたシリアルデータが表す時刻に基づいて、第2カウンタ部のカウント値の上書きを行う。これにより、複数の回路間の時刻同期を、高い精度で、かつ、ローコストで実現することができる。 According to the present invention, the time acquired from the primary time source unit is stored in the first counter unit, and the serial data representing the time stored in the first counter unit is output to the second time synchronization circuit and input. The count value of the second counter unit is overwritten based on the time represented by the serial data. As a result, time synchronization between a plurality of circuits can be realized with high accuracy and low cost.

本発明によれば、複数の回路間の時刻同期を、高い精度で、かつ、ローコストで実現することができる。 According to the present invention, time synchronization between a plurality of circuits can be realized with high accuracy and at low cost.

本発明の第1の実施の形態に係る時刻同期システムの一例を示す図である。It is a figure which shows an example of the time synchronization system which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係るPRTC部の構成を示すブロック図である。It is a block diagram which shows the structure of the PRTC part which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係るPRTCU部の構成を示すブロック図である。It is a block diagram which shows the structure of the PRTCU part which concerns on 1st Embodiment of this invention. 参考例に係る高精度時刻同期部内蔵LSIの構成を示すブロック図である。It is a block diagram which shows the structure of the high-precision time synchronization part built-in LSI which concerns on a reference example. 本発明の第1の実施の形態に係る時刻源LSIの構成を示すブロック図である。It is a block diagram which shows the structure of the time source LSI which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係る高精度時刻内包LSIの構成を示すブロック図である。It is a block diagram which shows the structure of the high precision time inclusion LSI which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係るcPRTC−IFで送出されるデータを示すタイミングチャートである。It is a timing chart which shows the data transmitted by cPRTC-IF which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係る秒カウンタ及びナノ秒カウンタのデータ構成を示すイメージ図である。It is an image diagram which shows the data structure of the second counter and the nanosecond counter which concerns on 1st Embodiment of this invention. 本発明の第2の実施の形態に係る時刻同期システムの一例を示す図である。It is a figure which shows an example of the time synchronization system which concerns on 2nd Embodiment of this invention. 本発明の変形例に係る時刻同期システムの一例を示す図である。It is a figure which shows an example of the time synchronization system which concerns on the modification of this invention.

以下、図面を参照して本発明の実施の形態を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

<本発明の実施の形態の概要>
まず、本発明の実施の形態の概要を説明する。
<Outline of Embodiment of the present invention>
First, an outline of an embodiment of the present invention will be described.

本発明の実施の形態では、高精度の時刻を得る方法として、PRTC(Primary Reference Time Clock)と呼称する一次時刻源ユニットを用いる。PRTCでは、GNSS(Global Navigation Satellite System)放送の電波を受信し、受信した電波から、時刻情報、位相情報、及び周波数情報を取得する。ここで、位相情報としては一般的に1秒に1回のパルス信号が利用される。周波数としては一般的に10MHzが利用される。このPRTCは、ナノ秒オーダの高精度時刻を必要とする携帯基地局や、放送機器、電力システム、PTPを司るグランドマスタークロックなどに用いられる。 In the embodiment of the present invention, a primary time source unit called PRTC (Primary Reference Time Lock) is used as a method for obtaining a highly accurate time. The PRTC receives radio waves of GNSS (Global Navigation Satellite System) broadcasting, and acquires time information, phase information, and frequency information from the received radio waves. Here, as the phase information, a pulse signal once per second is generally used. Generally, 10 MHz is used as the frequency. This PRTC is used for mobile base stations that require highly accurate time on the order of nanoseconds, broadcasting equipment, electric power systems, grand master clocks that control PTP, and the like.

PRTCを内包する装置は、PRTCの時刻情報を元に、様々な動作を決定するために時刻を64bitのカウンタに展開する構成にすることが多い。 The device including the PRTC is often configured to expand the time to a 64-bit counter in order to determine various operations based on the time information of the PRTC.

この場合、PRTCから得られる情報を処理するCPU(Central Processing Unit)、粒度の高い時刻カウンタを生成するためのPLLブロック、1PPS(Pulse Per Second)のエッジとナノ秒の0点を調整するためのロジックなど、コストが高い処理ブロックが必要となる。 In this case, a CPU (Central Processing Unit) that processes information obtained from PRTC, a PLL block for generating a fine-grained time counter, an edge of 1PPS (Pulse Per Second), and a zero point of nanoseconds are adjusted. High-cost processing blocks such as logic are required.

1つのLSI内部で高精度時刻を用いてすべての処理が完結するシステムにおいては、PRTCU部から得られる64bitの時刻情報をBUS形式で各時刻制御ブロックに分配することで完結する。しかし、LSIが複数個に分割された場合、もしくは、複数の基板に分割され、それらが等しく高精度な時計を欲している場合に、64bitの時刻情報を伝送するための配線が必要となり、LSIのpin数増加によるコストアップ、また基板間コネクタの増加による実装面積の増大などが課題となる。 In a system in which all processing is completed using high-precision time inside one LSI, the time information of 64 bits obtained from the PRTCU unit is distributed to each time control block in the BUS format. However, when the LSI is divided into a plurality of boards, or when the LSI is divided into a plurality of boards and they desire an equally high-precision clock, wiring for transmitting 64-bit time information is required, and the LSI There are problems such as an increase in cost due to an increase in the number of pins and an increase in the mounting area due to an increase in inter-board connectors.

そこで、本発明の実施の形態では、時刻情報の伝送をシリアルインタフェース化することにより、時刻源LSIとコヒーレントな高精度時刻内包LSIを、ローコストで実現し、かつ、時刻源LSIと同一の精度と確度を保ちつつ、時刻同期を実現する。ここで、コヒーレントとは、時計の周波数及び時刻が一致していることを指す。 Therefore, in the embodiment of the present invention, the time information transmission is made into a serial interface to realize a high-precision time-encapsulating LSI coherent with the time source LSI at low cost and with the same accuracy as the time source LSI. Achieve time synchronization while maintaining accuracy. Here, coherent means that the frequencies and times of the clocks match.

<本発明の第1の実施の形態のシステム構成>
本発明の第1の実施の形態に係る時刻同期システムの構成について説明する。図1に示すように、本発明の第1の実施の形態に係る時刻同期システム1は、PRTC部100と、時刻源LSI110と、複数の高精度時刻内包LSI121、131、141とを備えている。なお、時刻源LSI110が、第1時刻同期回路の一例であり、複数の高精度時刻内包LSI121、131、141が、第2時刻同期回路の一例である。
<System configuration of the first embodiment of the present invention>
The configuration of the time synchronization system according to the first embodiment of the present invention will be described. As shown in FIG. 1, the time synchronization system 1 according to the first embodiment of the present invention includes a PRTC unit 100, a time source LSI 110, and a plurality of high-precision time inclusion LSIs 121, 131, 141. .. The time source LSI 110 is an example of the first time synchronization circuit, and the plurality of high-precision time inclusion LSIs 121, 131, 141 are examples of the second time synchronization circuit.

PRTC部100は、一次時刻源ユニットの一例であり、上記非特許文献1の規格書に記載のPRTCと同様である。PRTC部100は、UART(Universal Asynchronous Receiver Transmitter)信号101、1PPS信号102、及びクロック信号103を、時刻源LSI110に出力する。 The PRTC unit 100 is an example of a primary time source unit, and is the same as the PRTC described in the standard document of Non-Patent Document 1. The PRTC unit 100 outputs a UART (Universal Asynchronous Receiver Transmitter) signal 101, a 1PPS signal 102, and a clock signal 103 to the time source LSI 110.

UART信号101は、PRTC部100から出力されるリファレンス時刻に関する情報である。GNSSチップが受信したNMEA(National Marine Electronics Association)センテンス内の時刻情報をUART信号で伝達する方式が一般的である。ここでNMEAにはGNSS衛星の受信状況データなども含まれており、今現在受信している衛星の数や、位置の情報、時刻情報が正しいか否かといった情報が重畳される。そのためUART信号から秒の情報を取り出すためには一定のプロトコルが必要であり、そのプロトコルはPRTC部100を製造したメーカ及び機種ごとに異なる。 The UART signal 101 is information regarding the reference time output from the PRTC unit 100. A general method is to transmit the time information in the NMEA (National Marine Electricals Association) sentence received by the GNSS chip by a UART signal. Here, NMEA also includes reception status data of GNSS satellites, and information such as the number of satellites currently being received, position information, and whether or not the time information is correct is superimposed. Therefore, a certain protocol is required to extract the second information from the UART signal, and the protocol differs depending on the manufacturer and model of the PRTC unit 100.

次に、1PPS信号102は、位相を示す信号であり、1秒に1回のパルス信号を出力する。本信号を用いることで秒以下の時計の位相合わせを実施する。 Next, the 1PPS signal 102 is a signal indicating the phase, and outputs a pulse signal once per second. By using this signal, the phase of the clock in seconds or less is adjusted.

クロック信号103は周波数を示す基準クロックであり10MHzを用いるのが一般的である。 The clock signal 103 is a reference clock indicating a frequency, and 10 MHz is generally used.

時刻源LSI110内のCPU312(図3参照)を用い、UART信号101の内部から秒信号を抽出し、PRTCU部111の時計の秒を管理する。PRTCU部111では、カウンタ部112に格納される多ビットのカウント値で高精度時刻を表している。 Using the CPU 312 (see FIG. 3) in the time source LSI 110, a second signal is extracted from the inside of the UART signal 101, and the seconds of the clock of the PRTCU unit 111 are managed. In the PRTCU unit 111, a high-precision time is represented by a multi-bit count value stored in the counter unit 112.

カウンタ部112は、クロック信号103が示す基準クロックに従ってカウントアップする。カウンタ部112では、所望の桁数を用意することとなるが、以後の説明では1nsを最小粒度とする64bitのカウント値を格納する場合を例に説明をする。 The counter unit 112 counts up according to the reference clock indicated by the clock signal 103. The counter unit 112 prepares a desired number of digits, but in the following description, a case of storing a 64-bit count value having a minimum particle size of 1 ns will be described as an example.

カウンタ部112は、1PPS信号102が到達した際に、そのカウント値をラッチする機構を有する。ラッチしたカウント値が1PPSつまり0秒との差分となるため、CPU312の命令によりカウント値に対して差分を加減算することで0点合わせが完了する。 The counter unit 112 has a mechanism for latching the count value when the 1PPS signal 102 arrives. Since the latched count value is 1 PPS, that is, the difference from 0 seconds, 0 point adjustment is completed by adding or subtracting the difference to the count value by the instruction of the CPU 312.

0点合わせが位相同期の動作の基本となるが、その後、カウンタ部112の秒カウンタがUART信号101から受信した秒と同一であることをCPU312は確認し、差分があれば秒カウンタのカウント値の加減算を実施する。 Zero point alignment is the basis of the phase synchronization operation, but after that, the CPU 312 confirms that the second counter of the counter unit 112 is the same as the second received from the UART signal 101, and if there is a difference, the count value of the second counter. Is added or subtracted.

以上の動作にて、時刻源LSI110に内包したPRTCU部111は一次時刻源であるPRTC部100に完全に一致した時刻を得る。 By the above operation, the PRTCU unit 111 included in the time source LSI 110 obtains a time that completely matches the PRTC unit 100, which is the primary time source.

次に、同様にナノ秒オーダの時刻を利用したい複数の高精度時刻内包LSI121、131、141が存在したとする。 Next, it is assumed that there are a plurality of high-precision time-included LSIs 121, 131, and 141 that also want to use the time on the order of nanoseconds.

PRTCU部111を内蔵した時刻源LSI110を多数設置することは、処理コスト、LSIのロジックコストの面から避けることが好ましい。そこで、本実施の形態では、時刻源LSI110から、cPRTC−IF113を介して、PRTCU部111のカウンタ部112の時刻情報をシリアル通信で複数の高精度時刻内包LSI121、131、141に伝達する。 It is preferable to avoid installing a large number of time source LSIs 110 having a built-in PRTCU unit 111 in terms of processing cost and LSI logic cost. Therefore, in the present embodiment, the time information of the counter unit 112 of the PRTCU unit 111 is transmitted from the time source LSI 110 to the plurality of high-precision time inclusion LSIs 121, 131, 141 by serial communication via the cPRTC-IF113.

cPRTC−IF113は、後述するように、周波数(CLK)を伝送するクロック信号線、時刻(DATA)を伝送するDATA信号線、及びDATA有効識別子(ENABLE)を伝送するENABLE信号線の3要素のみで構成され、最小物理本数は3本のシリアルIFである。詳細については図7を用いてタイミング等を解説する。 As will be described later, the cPRTC-IF113 consists of only three elements: a clock signal line that transmits frequency (CLK), a DATA signal line that transmits time (DATA), and an ENABLE signal line that transmits a DATA valid identifier (ENABLE). It is configured and the minimum number of physical lines is three serial IFs. For details, the timing and the like will be described with reference to FIG.

cPRTC−IF113で接続された高精度時刻内包LSI121〜141に内包された、cPRTCU部122、132、142はコヒーレントPRTCUと呼称し、多ビットのカウント値を格納するカウンタ部123、133、143を有し、PRTCU部111のカウンタ部112と完全に一致した時刻を指し示す多ビットのカウント値を保持する。 The cPRTCU units 122, 132, and 142 included in the high-precision time-included LSIs 121 to 141 connected by the cPRTC-IF113 are called coherent PRTCUs, and have counter units 123, 133, and 143 that store multi-bit count values. Then, a multi-bit count value indicating a time that completely matches the counter unit 112 of the PRTCU unit 111 is held.

時刻源LSI110と高精度時刻内包LSI121〜141とが同一基板内に設けられているのであれば、cPRTC−IF113として、BUS型接続が可能であり、高精度時刻を用い何らかの動作基準としたい高精度時刻内包LSI121〜141に対して少数の本数の信号線を用いて接続することができる。また少数の信号線であるということは、各LSIのpin数の削減につながり、基板面積の削減、LSIのコスト削減などの効果も得られる。 If the time source LSI 110 and the high-precision time-encapsulating LSIs 121 to 141 are provided on the same substrate, BUS-type connection is possible as cPRTC-IF113, and high-precision time is used to be used as some operating standard. It is possible to connect to the time-included LSIs 121 to 141 by using a small number of signal lines. Further, the fact that the number of signal lines is small leads to a reduction in the number of pins of each LSI, and also has the effects of reducing the substrate area and the cost of the LSI.

図2は、PRTC部100の構造を示す図であり、非特許文献1のFigure II.1に記載のものと同様の構成を示している。 FIG. 2 is a diagram showing the structure of the PRTC unit 100, and is shown in Figure II. Of Non-Patent Document 1. It shows the same configuration as that described in 1.

PRTC部100は、例えばGNSSエンジンであるタイムリカバリー部202と、周波数インタフェース部203と、ローカル周波数クロック部204と、ローカルタイムスケール部205と、タイムインタフェース部206、位相インタフェース部207と、周波数インタフェース部208とを備えている。 The PRTC unit 100 includes, for example, a GNSS engine time recovery unit 202, a frequency interface unit 203, a local frequency clock unit 204, a local time scale unit 205, a time interface unit 206, a phase interface unit 207, and a frequency interface unit. It has a 208 and.

PRTC部100は、リファレンス時刻201として、例えば、GNSS(全地球測位システム)信号を用いる。一般にGNSS信号からは、天空が見える場所であれば±100ナノ秒未満の確度で時刻情報が得られ、複数の衛星システムを用いることで±40ナノ秒未満の確度が得られる。 The PRTC unit 100 uses, for example, a GNSS (Global Positioning System) signal as the reference time 201. Generally, from the GNSS signal, time information can be obtained with an accuracy of less than ± 100 nanoseconds if the sky can be seen, and an accuracy of less than ± 40 nanoseconds can be obtained by using a plurality of satellite systems.

このGNSS信号は、ナノ秒オーダの高精度時刻を必要とする携帯基地局や、放送機器、電力システム、プレシジョンタイムプロトコルを司るグランドマスタークロックなどに用いられる。 This GNSS signal is used for mobile base stations that require high-precision time on the order of nanoseconds, broadcasting equipment, power systems, grand master clocks that control precision time protocols, and the like.

ただし、PRTC部100の出力は、時刻リファレンス情報を表すUART信号101、位相信号である1PPS信号102、周波数信号であるクロック信号103の3要素である。この3要素から時刻情報を得るためには、3要素を所望の粒度を持ったカウンタに展開する必要がある。 However, the output of the PRTC unit 100 is three elements: a UART signal 101 representing time reference information, a 1PPS signal 102 as a phase signal, and a clock signal 103 as a frequency signal. In order to obtain time information from these three elements, it is necessary to expand the three elements into a counter having a desired particle size.

図3に示すように、PRTCU部111は、UART受信部311、CPU312、カウンタ部112、位相調整器314、PLL部315を備えている。カウンタ部112は、秒カウンタ313及びナノ秒カウンタ317を備えている。なお、PLL部315が、クロック生成部の一例であり、カウンタ部112が、第1カウンタ部の一例である。 As shown in FIG. 3, the PRTCU unit 111 includes a UART receiving unit 311, a CPU 312, a counter unit 112, a phase adjuster 314, and a PLL unit 315. The counter unit 112 includes a second counter 313 and a nanosecond counter 317. The PLL unit 315 is an example of a clock generation unit, and the counter unit 112 is an example of a first counter unit.

PRTCU部111は、UART信号101から、PRTCU部111内のCPU312を用い、秒信号を抽出し、秒カウンタ313を管理する。ここでCPU312は、PRTCU部111に属しているが、必ずしもPRTCU部111内に物理的に存在している必要はない。 The PRTCU unit 111 extracts a second signal from the UART signal 101 using the CPU 312 in the PRTCU unit 111, and manages the second counter 313. Here, the CPU 312 belongs to the PRTCU unit 111, but does not necessarily have to physically exist in the PRTCU unit 111.

論理的な接続されていればよく、例えばPC(パーソナルコンピュータ)のように、UART信号を入力とし、CPUを内在している機構を持った機器に、PRTCU部111を内包したLSIもしくはカードもしくはモジュールを搭載するようにしてもよい。 It suffices if they are logically connected. For example, an LSI or card or module containing a PRTCU unit 111 in a device having a mechanism that receives a UART signal as an input and has a CPU, such as a PC (personal computer). May be installed.

秒カウンタ313は、32bitのカウント値を格納する、秒オーダのカウンタである。便宜的に本実施の形態では、時刻としてTAI(International Atomic Time:国際原子時)を取り扱うものとする。TAIはepochが1970年1月1日0時0分0秒から、原子時計で観測する1秒でカウントアップする時刻系である。したがって、うるう秒の概念が無く一般的にPCや壁掛け時計、腕時計等で用いられるUTC(Coordinated Universal Time:協定世界時)とは異なる時刻を指し示す。TAIを用いる理由はGNSSがTAIと同等の時刻系であるGPS時刻を利用していること、またPTPで扱う時刻がTAIであることから余計な計算無しに利用できるためである。また、TAIを用いる理由としてうるう秒の存在があげられる。うるう秒は地球の回転速度の微小な変化により数年に一度1秒を挿入もしくは抜去し地球の回転速度と時刻の位相を合わせる。この1秒の挿入は高精度時刻を扱う装置にとっては致命的な動作を及ぼす。例えば携帯基地局は、高精度時刻を周波数の基準として用いているが、うるう秒の挿入によりその前後で周波数を変化させなければ内部のカウンタと時刻が一致しなくなる。結果としてうるう秒の存在により周波数が増減することになり、電波法で決められている周波数範囲の逸脱や、TD−LTE(Time Division duplex Long Term Evolution)を始めとする絶対時刻同期が必要な通信方式において通信不可という結果をもたらすこととなる。 The second counter 313 is a counter on the order of seconds that stores a 32-bit count value. For convenience, in this embodiment, TAI (International Atomic Time) is treated as the time. TAI is a time system in which epoch counts up from 00:00 on January 1, 1970 in 1 second observed by an atomic clock. Therefore, there is no concept of leap seconds, and it points to a time different from UTC (Coordinated Universal Time), which is generally used in PCs, wall clocks, wristwatches, and the like. The reason for using TAI is that GNSS uses GPS time, which is the same time system as TAI, and because the time handled by PTP is TAI, it can be used without extra calculation. Another reason for using TAI is the existence of leap seconds. The leap second inserts or removes one second once every few years due to a slight change in the rotation speed of the earth to match the phase of the rotation speed of the earth with the time. This 1-second insertion has a fatal effect on a device that handles high-precision time. For example, a mobile base station uses a high-precision time as a frequency reference, but the time does not match the internal counter unless the frequency is changed before and after the leap second is inserted. As a result, the frequency increases or decreases due to the presence of leap seconds, and communication that requires absolute time synchronization such as deviation of the frequency range specified by the Radio Law and TD-LTE (Time Division duplex Long Term Evolution). This will result in the inability to communicate in the scheme.

PLL部315は、PRTC部100から受信したクロック信号103が表す基準周波数10MHzをより高速な周波数にするために利用するフェーズロックループ回路である。ここで、PRTC部100が一般的に出力するクロック信号(基準周波数:10MHz)の周期が100nsであるため、ナノ秒カウンタ317の最小粒度が100nsとなってしまう。そこで、より高精度な時刻を利用するために、PLL部315は、基準周波数を逓倍する。本実施の形態においては、PLL部315は、便宜的に、基準周波数の12.5倍である125MHzを出力し、ナノ秒カウンタ317をカウントアップする基準クロックの周波数として利用する。また、125MHzは、PRTCU部111にコヒーレントである。つまり周波数の差が12.5倍であるが、長時間その関係性は維持される特徴を持つ。また、125MHzは、PRTCU部111の秒カウンタ313及びナノ秒カウンタ317を外部から参照する際の基準クロックとして使用され、125MHzの立ち上がりエッジで、秒カウンタ313のカウント値及びナノ秒カウンタ317のカウント値を外部回路がラッチすることで、現在時刻をナノ秒の最小粒度(本願の例では8nsの精度)で取得することが可能である。 The PLL unit 315 is a phase lock loop circuit used to make the reference frequency 10 MHz represented by the clock signal 103 received from the PRTC unit 100 a higher frequency. Here, since the period of the clock signal (reference frequency: 10 MHz) generally output by the PRTC unit 100 is 100 ns, the minimum particle size of the nanosecond counter 317 is 100 ns. Therefore, in order to utilize a more accurate time, the PLL unit 315 multiplies the reference frequency. In the present embodiment, for convenience, the PLL unit 315 outputs 125 MHz, which is 12.5 times the reference frequency, and uses it as the frequency of the reference clock for counting up the nanosecond counter 317. Further, 125 MHz is coherent to the PRTCU unit 111. That is, the frequency difference is 12.5 times, but the relationship is maintained for a long time. Further, 125 MHz is used as a reference clock when the second counter 313 and the nano second counter 317 of the PRTCU unit 111 are referred to from the outside, and at the rising edge of 125 MHz, the count value of the second counter 313 and the count value of the nano second counter 317 are used. The current time can be obtained with the minimum particle size of nanoseconds (accuracy of 8 ns in the example of the present application) by latching the current time.

秒カウンタ313は、例えば32bitのカウント値を格納し、ナノ秒カウンタ317は、例えば30bitのカウント値を格納する。ナノ秒カウンタ317は、PLL部315によって発生させた125MHzでカウントアップを行い、CPU312からの指示がなければカウントアップを継続する。秒カウンタ313は、ナノ秒カウンタ317の桁あふれ、すなわち、次クロックにて999,999,999ns以上となることを検知すると、秒カウンタ313のカウント値をインクリメントする機構を有する。また、ナノ秒カウンタ317は、ナノ秒カウンタ317のカウント値を、その桁あふれ量に置き換える機構を有する。なお、ナノ秒カウンタ317は、単純増加型のカウンタであり、1ns=0x1であり、999,999,999ns=0x3B9AC9FFという値を取る。したがって最小粒度は1nsであり、また最大桁数は30bitになる。 The second counter 313 stores, for example, a 32-bit count value, and the nanosecond counter 317 stores, for example, a 30-bit count value. The nanosecond counter 317 counts up at 125 MHz generated by the PLL unit 315, and continues the count up unless instructed by the CPU 312. The second counter 313 has a mechanism for incrementing the count value of the second counter 313 when it detects that the nanosecond counter 317 has overflowed, that is, 999,999,999 ns or more in the next clock. Further, the nanosecond counter 317 has a mechanism for replacing the count value of the nanosecond counter 317 with the digit overflow amount. The nanosecond counter 317 is a simple increase type counter, 1ns = 0x1, and takes a value of 999,999,999ns = 0x3B9AC9FF. Therefore, the minimum particle size is 1 ns, and the maximum number of digits is 30 bits.

また、位相調整器314は、1PPS信号102が到達した際に、ナノ秒カウンタ317のカウント値をラッチする機構を有する。1PPS信号102は、秒の切り替わり点、つまり、0ナノ秒を示す位相情報であり、1PPS信号102がhighとなったことを検知した際に、ワンショットでナノ秒カウンタ317のカウント値を内部のレジスタ(30bit)にラッチする。その後、CPU312は、ラッチしたカウント値が1PPS信号102、つまり0ナノ秒との差分となるため、CPU312の命令によりその差分を位相調整器314に伝達し、位相調整器314はナノ秒カウンタ317に対し、現在のカウント値に対する上記差分の加減算処理を行う。その後、位相調整器314は、1PPS信号102が到達する毎に、ナノ秒カウンタ317のカウント値をラッチするが、周波数のコヒーレント性が保たれているため、必ず0ナノ秒をラッチすることとなる。仮に0ナノ秒以外をラッチした場合には、位相調整器314は自己では特段の処理を行わない。CPU312が位相調整器314のナノ秒ラッチ値を定期的に監視し、0ナノ秒以外であった場合にはUART信号101から時刻変動要因が伝えられるため、その要因を元に時刻の再設定を行いつつ、例えば、一定時間のGNSS信号の途絶により時刻情報/周波数情報が適切でないと判断した場合にはその旨ユーザに通知するなどのアクションを実行する。なお、ユーザやOPS(オペレーションシステム)が、一次時刻源の状態によっていかなるアクションを実行するかは限定されるものではない。 Further, the phase adjuster 314 has a mechanism for latching the count value of the nanosecond counter 317 when the 1PPS signal 102 arrives. The 1PPS signal 102 is phase information indicating a second switching point, that is, 0 nanoseconds, and when it is detected that the 1PPS signal 102 is high, the count value of the nanosecond counter 317 is internally set in one shot. Latch to the register (30 bits). After that, since the latched count value of the CPU 312 becomes a difference from the 1PPS signal 102, that is, 0 nanoseconds, the difference is transmitted to the phase adjuster 314 by the instruction of the CPU 312, and the phase adjuster 314 sends the nanosecond counter 317 to the nanosecond counter 317. On the other hand, the addition / subtraction processing of the above difference with respect to the current count value is performed. After that, the phase adjuster 314 latches the count value of the nanosecond counter 317 every time the 1PPS signal 102 arrives, but since the frequency coherence is maintained, it always latches 0 nanoseconds. .. If a latch other than 0 nanoseconds is latched, the phase adjuster 314 does not perform any special processing by itself. The CPU 312 periodically monitors the nanosecond latch value of the phase adjuster 314, and if it is other than 0 nanoseconds, the time fluctuation factor is transmitted from the UART signal 101, so the time is reset based on that factor. While performing the action, for example, when it is determined that the time information / frequency information is not appropriate due to the interruption of the GNSS signal for a certain period of time, an action such as notifying the user to that effect is executed. It should be noted that the action that the user or the OPS (operation system) executes depending on the state of the primary time source is not limited.

上記のように、位相調整器314とナノ秒カウンタ317によって、ナノ秒カウンタ317の位相合わせが実施される。 As described above, the phase adjuster 314 and the nanosecond counter 317 perform phase matching of the nanosecond counter 317.

その後、UART信号101を介して受信した時刻情報と秒カウンタ313の差分をCPU312にて確認し、差分があれば、秒カウンタ313のカウント値の調整を実施する。秒カウンタ313のカウント値の調整を行う際には、例えば、0.5秒以内に2回、秒カウンタ313のカウント値を読み出し、差分が無いことを確認した後に、UART信号101から受信した時刻情報と同一であれば、秒カウンタ313のカウント値は正確であると判断する。 After that, the difference between the time information received via the UART signal 101 and the second counter 313 is confirmed by the CPU 312, and if there is a difference, the count value of the second counter 313 is adjusted. When adjusting the count value of the second counter 313, for example, the time received from the UART signal 101 after reading the count value of the second counter 313 twice within 0.5 seconds and confirming that there is no difference. If it is the same as the information, it is determined that the count value of the second counter 313 is accurate.

バス320は、秒カウンタ313のカウント値32bitとナノ秒カウンタ317のカウント値30bitを、高精度時刻に同期して動作する時刻源LSI110内部のモジュールに伝送するためのBUSである。バス320は、単純に秒カウンタ313及びナノ秒カウンタ317を合わせたカウント値62bitを伝送するための配線である。 The bus 320 is a BUS for transmitting the count value 32 bits of the second counter 313 and the count value 30 bits of the nanosecond counter 317 to the module inside the time source LSI 110 that operates in synchronization with the high-precision time. The bus 320 is simply a wiring for transmitting a count value of 62 bits, which is a combination of the second counter 313 and the nanosecond counter 317.

クロック信号321は、バス320の基準クロックを表す信号であり、クロック信号321の立ち上がりエッジでバス320の時刻を参照することが可能となる。また、クロック信号321の基準クロックは、PRTC部100にコヒーレントなクロックであるため、一次時刻源ユニットにコヒーレントな周波数を得ることができる。 The clock signal 321 is a signal representing the reference clock of the bus 320, and the time of the bus 320 can be referred to at the rising edge of the clock signal 321. Further, since the reference clock of the clock signal 321 is a clock coherent to the PRTC unit 100, a coherent frequency can be obtained from the primary time source unit.

ここで、参考例として、図4を用いて、PRTC部100、及びPRTCU部111を内包する高精度時刻同期部内蔵LSI410の利用方法を示す。ここで注意が必要なのは、図4で示している形態は、PRTCU部111と、その高精度時刻情報を必要とするモジュールとが、1個のLSI内部に格納可能な場合に一般的に考えられる実装形態であり、複数のLSIや複数のブレードを経由して高精度時刻情報を伝達する形態ではない。LSI内部においては62bitのバス320を配線することは物理コストが低く、一つの高精度時計を多数のLSI内部動作基準生成部430にバス接続することにより、時刻データをカウント値のように扱うことが可能である。このことは、ハードウェア記述の上でも最小の作業コストにて実装可能なメリットとなる。 Here, as a reference example, FIG. 4 shows a method of using the LSI 410 with a built-in high-precision time synchronization unit that includes the PRTC unit 100 and the PRTCU unit 111. It should be noted here that the form shown in FIG. 4 is generally considered when the PRTCU unit 111 and the module that requires high-precision time information can be stored in one LSI. It is a mounting form, and is not a form in which high-precision time information is transmitted via a plurality of LSIs or a plurality of blades. Wiring a 62-bit bus 320 inside the LSI has a low physical cost, and by connecting one high-precision clock to a large number of LSI internal operation reference generators 430 by bus, the time data is treated like a count value. Is possible. This is an advantage that can be implemented at the minimum work cost even in terms of hardware description.

PRTC部100及びPRTCU部111に関しては前述しているため説明は省略する。 Since the PRTC unit 100 and the PRTCU unit 111 have been described above, the description thereof will be omitted.

複数の被タイミング受信部431は、例えば映像同期信号を必要とする装置や、モバイル基地局のRF(Radio Frequency)回路、もしくはPMU(パワーメジャーメントユニット)など、複数の異なる周波数や時刻を必要とするモジュールが散在している場合に、各モジュールが必要とする出力信号へのフォーマット変更や、電圧値の変更等を行う。 The plurality of timed receivers 431 require a plurality of different frequencies and times, such as a device that requires a video synchronization signal, an RF (Radio Frequency) circuit of a mobile base station, or a PMU (power measurement unit). When the modules to be used are scattered, the format of the output signal required by each module is changed, the voltage value is changed, and the like.

ここで、被タイミング受信部431の動作契機を与えるのが、LSI内部動作基準生成部430であり、LSI内部動作基準生成部430は、PRTCU部111がカウントしている秒カウンタ313及びナノ秒カウンタ317を合わせたカウント値62bitを監視する。また、カウントアップの基準クロックを表すクロック信号321をLSI内部動作基準生成部430に入力することで、LSI内部動作基準生成部430は、被タイミング受信部431に適切なタイミングパルスを生成する。 Here, it is the LSI internal operation reference generation unit 430 that gives the operation trigger of the timed reception unit 431, and the LSI internal operation reference generation unit 430 is the second counter 313 and the nanosecond counter counted by the PRTCU unit 111. The total count value of 62 bits including 317 is monitored. Further, by inputting the clock signal 321 representing the count-up reference clock to the LSI internal operation reference generation unit 430, the LSI internal operation reference generation unit 430 generates an appropriate timing pulse in the timed reception unit 431.

また、本実施の形態では、時刻源LSI110は、更に、図5に示すcPRTCU−TX部520を備えている。図面サイズの関係で図6と分離されているが、図5の右端にPCB(Printed Circuit Board)基板上に形成されたプリントパターン、もしくは、PCB基板間を接続するコネクタを経由して、図6と1対多の接続関係となっている。なお、cPRTCU−TX部520は、出力部の一例である。 Further, in the present embodiment, the time source LSI 110 further includes a cPRTCU-TX unit 520 shown in FIG. Although it is separated from FIG. 6 due to the drawing size, FIG. 6 is via a printed pattern formed on a PCB (Printed Circuit Board) substrate at the right end of FIG. 5 or a connector for connecting the PCB substrates. There is a one-to-many connection relationship with. The cPRTCU-TX unit 520 is an example of an output unit.

図1で述べたように、cPRTC−IF113は、PCB基板内ではバス接続することが最良の構成である。 As described in FIG. 1, the cPRTC-IF113 has the best configuration of being bus-connected in the PCB substrate.

図5ではPRTCU部111を簡略化して記載しており、図3にて示したPRTCU部111と同一の回路にて構成され、PRTC部100に接続されているものとする。 In FIG. 5, the PRTCU unit 111 is described in a simplified manner, and it is assumed that the PRTCU unit 111 is configured by the same circuit as the PRTCU unit 111 shown in FIG. 3 and is connected to the PRTC unit 100.

秒カウンタ313及びナノ秒カウンタ317は、図3にて説明した構成によりカウントアップを行い、高精度な基準時計となっている。 The second counter 313 and the nanosecond counter 317 count up according to the configuration described with reference to FIG. 3, and serve as a highly accurate reference clock.

cPRTCU−TX部520は、一時記憶領域521、ラッチパルス生成部522、ラッチ条件セット部523、アンド回路524、及びパラレルシリアル変換ブロック525を備えている。パラレルシリアル変換ブロック525は、レジスタ526、527、及びカウンタ528を備えている。 The cPRTCU-TX unit 520 includes a temporary storage area 521, a latch pulse generation unit 522, a latch condition setting unit 523, an AND circuit 524, and a parallel serial conversion block 525. The parallel serial conversion block 525 includes registers 526, 527, and a counter 528.

cPRTCU−TX部520は、秒カウンタ313及びナノ秒カウンタ317の各々のカウント値を、ラッチパルスに従ってラッチする。ラッチは、PLL部315にて生成した125MHzの立ち上がりエッジにて行うが、ラッチするタイミングを司るのが、ラッチ条件セット部523である。ラッチ条件セット部523には、CPU312からの指示により、cPRTC−IF113にどの程度の間隔で時刻情報を送出するかを表すラッチ条件がセットされる。 The cPRTCU-TX unit 520 latches the count values of the second counter 313 and the nanosecond counter 317 according to the latch pulse. The latch is performed at the rising edge of 125 MHz generated by the PLL unit 315, and the latch condition setting unit 523 controls the latch timing. In the latch condition setting unit 523, a latch condition indicating how often time information is transmitted to the cPRTC-IF113 is set according to an instruction from the CPU 312.

ここで、時刻情報がほぼ一律に増加する場合においては、電力消費量の軽減や外部へのノイズ低減に考慮し、毎秒1回程度の間隔でも十分に高精度な時刻情報の伝達となる。 Here, when the time information increases almost uniformly, the time information can be transmitted with sufficiently high accuracy even at intervals of about once per second in consideration of reduction of power consumption and noise to the outside.

ラッチ条件セット部523には、ラッチ間隔を表すラッチ条件が格納され、ラッチパルス生成部522において、前回のラッチ時刻と、現在時刻との差分を監視し、所望のラッチ条件に達した場合、つまり、cPRTC−IF113に時刻を送信する時刻間隔となった場合に、ラッチパルスを生成する。生成したラッチパルスと、PLL部315にて生成した基準クロックとが入力されたアンド回路524の出力が、一時記憶領域521に入力され、一時記憶領域521が、秒カウンタ313及びナノ秒カウンタ317の各々のカウント値をラッチする。 The latch condition setting unit 523 stores a latch condition indicating the latch interval, and the latch pulse generation unit 522 monitors the difference between the previous latch time and the current time, and when the desired latch condition is reached, that is, , When the time interval for transmitting the time to cPRTC-IF113 is reached, a latch pulse is generated. The output of the AND circuit 524 to which the generated latch pulse and the reference clock generated by the PLL unit 315 are input is input to the temporary storage area 521, and the temporary storage area 521 is the second counter 313 and the nanosecond counter 317. Latch each count value.

一時記憶領域521は、クロックで入力データを保存する単純な構造のレジスタであり、クロックとラッチパルスとを入力としたアンド回路524の出力により、所望のタイミング間隔で現在時刻のラッチが可能である。 The temporary storage area 521 is a register having a simple structure for storing input data by a clock, and the current time can be latched at a desired timing interval by the output of an AND circuit 524 having a clock and a latch pulse as inputs. ..

ラッチパルスの次のクロックで、一時記憶領域521からパラレルシリアル変換ブロック525に、高精度時刻データは移動する。そして、ラッチパルスの次の次のクロックで、パラレルシリアル変換ブロック525から、高精度時刻データの送出が開始される。データの送出方法については図7にて詳細を記述するが、秒カウンタ313のMSB(most significant bit:最上位ビット)側から送出を開始し、最終的にナノ秒カウンタ317のLSB(least significant bit:最下位ビット)部が送出される。これは、図6にて説明するcPRTC−RX部620においてシフトレジスタ622にて簡易にデータの再構成ができるためである。また、カウンタ528はラッチパルスの次の次のクロックを1とし、16まで、PLL部315で生成した125MHzにてカウントアップを行う。また、16の次は0となりカウント動作を停止する。 At the next clock of the latch pulse, the high-precision time data moves from the temporary storage area 521 to the parallel serial conversion block 525. Then, at the clock next to the latch pulse, transmission of high-precision time data is started from the parallel serial conversion block 525. The data transmission method will be described in detail with reference to FIG. 7. However, transmission is started from the MSB (most significant bit) side of the second counter 313, and finally the LSB (least significant bit) of the nanosecond counter 317 is started. : The least significant bit) part is sent. This is because the data can be easily reconstructed by the shift register 622 in the cPRTC-RX unit 620 described with reference to FIG. Further, the counter 528 sets the clock next to the latch pulse to 1, and counts up to 16 at 125 MHz generated by the PLL unit 315. Further, after 16, the number becomes 0 and the counting operation is stopped.

cPRTC−IF113は、4bitのDATA[3:0]を送出するためのDATA信号線531と、ENABLEビットを送出するためのENABLE信号線532と、クロック信号線533とから構成され、対向するLSIもしくは基板に対して時刻情報を送出する信号線である。パラレルシリアル変換ブロック525は、カウンタ528のカウント値を監視する。カウンタ528は、カウント値が1〜16の期間、highであるENABLE信号を出力し、時刻情報が有効であることを示す。また、パラレルシリアル変換ブロック525は、レジスタ526に格納された秒情報及びレジスタ527に格納されたナノ秒情報を、複数のシリアルデータに変換し、カウンタ528のカウント値をもとに現時点で送付すべきシリアルデータを選択して、DATA信号線531に送信する。詳細な順序については図7にて説明することとする。 The cPRTC-IF113 is composed of a DATA signal line 531 for transmitting 4-bit DATA [3: 0], an ENABLE signal line 532 for transmitting an ENABLE bit, and a clock signal line 533, and is an LSI or an opposite LSI. This is a signal line that sends time information to the board. The parallel serial conversion block 525 monitors the count value of the counter 528. The counter 528 outputs a high ENABLE signal for a period of 1 to 16 count values, indicating that the time information is valid. Further, the parallel serial conversion block 525 converts the second information stored in the register 526 and the nanosecond information stored in the register 527 into a plurality of serial data, and sends the second information at the present time based on the count value of the counter 528. The serial data to be selected is selected and transmitted to the DATA signal line 531. The detailed order will be described with reference to FIG.

図6に示すように、高精度時刻内包LSI121、131、141は、cPRTCU−RX部620と、cPRTCU部122、132、142とを備えている。なお、cPRTCU−RX部620が、入力部の一例である。 As shown in FIG. 6, the high-precision time inclusion LSIs 121, 131, and 141 include a cPRTCU-RX unit 620 and cPRTCU units 122, 132, and 142. The cPRTCU-RX unit 620 is an example of an input unit.

高精度時刻内包LSI121、131、141は、cPRTC−IF113を構成する、DATA信号線531と、ENABLE信号線532と、クロック信号線533とにより、図5にて説明したcPRTCU−TX部520を内包する時刻源LSI110と接続されている。 The high-precision time-included LSIs 121, 131, and 141 include the cPRTCU-TX unit 520 described with reference to FIG. 5 by the DATA signal line 531, the ENABLE signal line 532, and the clock signal line 533 that constitute the cPRTC-IF113. It is connected to the time source LSI 110.

cPRTCU−RX部620は、シフトレジスタブロック621内にcPRTC−IF113が接続され、シフトレジスタブロック621は、シフトレジスタ622と、cPRTC−IF113のENABLE信号を検出するENABLE検出部623とを含んで構成される。 The cPRTCU-RX unit 620 includes a cPRTC-IF113 connected to the shift register block 621, and the shift register block 621 includes a shift register 622 and an ENABLE detection unit 623 for detecting the ENABLE signal of the cPRTC-IF113. To.

ENABLE検出部623は、ENABLE信号線532及びクロック信号線533を監視し、クロック信号線533のクロックの立ち上がりエッジにて、ENABLEビットがhighである場合、DATA信号線531が表す4bitのDATA[3:0]をシフトレジスタ622に格納し、左方向に4bitシフトを行う。以上の動作を、ENABLEビットがhighである間、クロック信号線533のクロックの立ち上がりエッジ毎に、繰り返し実施する。 The ENABLE detection unit 623 monitors the ENABLE signal line 532 and the clock signal line 533, and when the ENABLE bit is high at the rising edge of the clock of the clock signal line 533, the 4-bit DATA [3 represented by the DATA signal line 531] : 0] is stored in the shift register 622, and a 4-bit shift is performed to the left. The above operation is repeatedly performed for each rising edge of the clock of the clock signal line 533 while the ENABLE bit is high.

また同時にENABLE検出部623は、ENABLE信号線532及びクロック信号線533を監視し、クロック信号線533のクロックの立ち上がりエッジにて、ENABLEビットがLowである場合、cPRTCU部122、132、142に対し上書きパルス634を発行する。 At the same time, the ENABLE detection unit 623 monitors the ENABLE signal line 532 and the clock signal line 533, and when the ENABLE bit is Low at the rising edge of the clock of the clock signal line 533, the cPRTCU units 122, 132, and 142 are subjected to. The overwrite pulse 634 is issued.

cPRTCU部122、132、142は、カウンタ部123、133、143と、adder部631とを備えている。カウンタ部123、133、143は、秒カウンタ632及びナノ秒カウンタ633を備えている。なお、カウンタ部123、133、143は、第2カウンタ部の一例であり、adder部631は、上書部の一例である。 The cPRTCU units 122, 132, and 142 include counter units 123, 133, and 143, and adder units 631. The counter units 123, 133, and 143 include a second counter 632 and a nanosecond counter 633. The counter units 123, 133, and 143 are examples of the second counter unit, and the adder unit 631 is an example of the overwriting unit.

adder部631は、上書きパルス634に応じて、秒カウンタ632及びナノ秒カウンタ633に対して、cPRTCU−TX部520による処理遅延分及びcPRTCU−RX部620による処理遅延分を表す固定値を時刻情報に加算した結果を上書きする。 The adder unit 631 sets a fixed value indicating the processing delay amount by the cPRTCU-TX unit 520 and the processing delay amount by the cPRTCU-RX unit 620 to the second counter 632 and the nanosecond counter 633 according to the overwrite pulse 634. Overwrites the result added to.

本実施の形態では、cPRTCU−TX部520による処理及びcPRTCU−RX部620による処理において、図5のcPRTCU−TX部520による現在時刻のラッチに1クロックを使用し、パラレルシリアル変換ブロック525への転送に1クロックを使用し、シリアル化された時刻データの伝送に16クロックを使用し、cPRTCU部122、132、142への時刻上書きで1クロックを使用するため、合計19クロックを要する。従って、adder部631は、固定値として、152ナノ秒(=125MHzの逆数である8ns×19クロック)を加算する。なお、1クロックとは、クロック信号の立ち上がりから次の立ち上がりまでのことをいう。 In the present embodiment, in the processing by the cPRTCU-TX unit 520 and the processing by the cPRTCU-RX unit 620, one clock is used for the latch of the current time by the cPRTCU-TX unit 520 in FIG. 5, and the parallel serial conversion block 525 is input. Since 1 clock is used for transfer, 16 clocks are used for transmission of serialized time data, and 1 clock is used for time overwriting to cPRTCU units 122, 132, 142, a total of 19 clocks are required. Therefore, the adder unit 631 adds 152 nanoseconds (= 8 ns × 19 clock, which is the reciprocal of 125 MHz) as a fixed value. Note that one clock means from the rise of the clock signal to the next rise.

本実施の形態では4bitのシリアル伝送にしているが、2bitにした場合において伝送クロックは2倍になる。 In the present embodiment, 4-bit serial transmission is used, but when 2-bit is used, the transmission clock is doubled.

ここで、cPRTCU部122、132、142に内包している秒カウンタ632及びナノ秒カウンタ633は、PRTC部100由来の基準クロックにてカウントアップを継続し、上書きパルス634が到達した際にのみ時刻情報の更新を行う単純な機構である。 Here, the second counter 632 and the nanosecond counter 633 included in the cPRTCU units 122, 132, and 142 continue counting up with the reference clock derived from the PRTC unit 100, and the time is set only when the overwrite pulse 634 arrives. It is a simple mechanism for updating information.

上記動作にてcPRTCU部122、132、142は、PRTCU部111の時計と完全にコヒーレントとなる。ただし、コヒーレントとは、周波数及び時刻がナノ秒の桁で合致していることを指す。 In the above operation, the cPRTCU units 122, 132, and 142 become completely coherent with the clock of the PRTCU unit 111. However, coherent means that the frequency and time match in the order of nanoseconds.

<本発明の第1の実施の形態の作用>
まず、PRTC部100は、GNSS放送の電波を受信し、受信した電波から、時刻情報、位相情報、及び周波数情報を取得し、UART信号101、1PPS信号102、及びクロック信号103を、時刻源LSI110に出力する。
<Operation of the first embodiment of the present invention>
First, the PRTC unit 100 receives the radio wave of the GNSS broadcast, acquires the time information, the phase information, and the frequency information from the received radio wave, and outputs the UART signal 101, the 1PPS signal 102, and the clock signal 103 to the time source LSI 110. Output to.

時刻源LSI110では、PLL部315が、PLL部315は、基準周波数を逓倍し、例えば、125MHzの基準クロックを出力する。 In the time source LSI 110, the PLL unit 315 multiplies the reference frequency by the PLL unit 315, and outputs, for example, a 125 MHz reference clock.

CPU312は、UART信号101から秒信号を抽出し、秒カウンタ313のカウント値を管理する。また、位相調整器314は、1PPS信号102が到達した際に、ナノ秒カウンタ317のカウント値をラッチし、ナノ秒カウンタ317のカウント値を管理する。 The CPU 312 extracts a second signal from the UART signal 101 and manages the count value of the second counter 313. Further, the phase adjuster 314 latches the count value of the nanosecond counter 317 when the 1PPS signal 102 arrives, and manages the count value of the nanosecond counter 317.

ナノ秒カウンタ317は、PLL部315によって発生させた125MHzでカウントアップを行い、CPU312からの指示がなければカウントアップを継続する。秒カウンタ313は、ナノ秒カウンタ317の桁あふれを検知すると、秒カウンタ313のカウント値をインクリメントする。また、ナノ秒カウンタ317のカウント値が、その桁あふれ量に置き換えられる。 The nanosecond counter 317 counts up at 125 MHz generated by the PLL unit 315, and continues the count up unless instructed by the CPU 312. When the second counter 313 detects an overflow of digits of the nanosecond counter 317, the second counter 313 increments the count value of the second counter 313. Further, the count value of the nanosecond counter 317 is replaced with the digit overflow amount.

そして、cPRTCU−TX部520は、秒カウンタ313及びナノ秒カウンタ317の各々のカウント値を、ラッチパルスに従ってラッチし、一時記憶領域521に格納する。 Then, the cPRTCU-TX unit 520 latches the count values of the second counter 313 and the nanosecond counter 317 according to the latch pulse, and stores them in the temporary storage area 521.

一時記憶領域521からパラレルシリアル変換ブロック525に、高精度時刻データが移動し、パラレルシリアル変換ブロック525から、高精度時刻データの送出が開始される。 The high-precision time data is moved from the temporary storage area 521 to the parallel serial conversion block 525, and the transmission of the high-precision time data is started from the parallel serial conversion block 525.

パラレルシリアル変換ブロック525は、レジスタ526に格納された秒情報及びレジスタ527に格納されたナノ秒情報を、複数のシリアルデータに変換し、カウンタ528のカウント値をもとに現時点で送付すべきシリアルデータを選択して、DATA信号線531に送信する。 The parallel serial conversion block 525 converts the second information stored in the register 526 and the nanosecond information stored in the register 527 into a plurality of serial data, and the serial to be sent at the present time based on the count value of the counter 528. The data is selected and transmitted to the DATA signal line 531.

ここで、具体的なデータの送出方法を、図7に示すcPRTC−IF113のタイミングチャートを用いて説明する。まず、それぞれの信号について意味合いを説明する。クロック信号線533は、一次時刻源であるPRTC部100由来のクロックであり、本実施の形態では125MHzとしている。ENABLE信号線532は、DATA 信号線531が表すDATA[3:0]のデータが有効であることを示すデータ線であり、high時にDATA[3:0]をcPRTCU−RX部620が取り込むべきタイミングであることを示す。DATA信号線531は、秒カウンタ313の32bitのカウント値及びナノ秒カウンタ317の30bitのカウント値を伝送する。 Here, a specific data transmission method will be described using the timing chart of cPRTC-IF113 shown in FIG. 7. First, the meaning of each signal will be described. The clock signal line 533 is a clock derived from the PRTC unit 100, which is the primary time source, and is set to 125 MHz in the present embodiment. The ENABLE signal line 532 is a data line indicating that the DATA [3: 0] data represented by the DATA signal line 531 is valid, and the timing at which the cPRTCU-RX unit 620 should capture the DATA [3: 0] at high time. Indicates that. The DATA signal line 531 transmits a 32-bit count value of the second counter 313 and a 30-bit count value of the nanosecond counter 317.

伝送順序は、図8に示すように、秒カウンタ313の最上位ビットであるs[31:28]831を、先頭データ721とし、秒カウンタ313の最下位ビットであるs[03:00]832を、データ722として伝送する。その後、ナノ秒カウンタ317の最上位ビットであるn[29:28]841をデータ723として伝送する、なお、ナノ秒カウンタ317のカウント値は30bitであるため、データ723では、は便宜的に2ビットに0をfillし送信する。その後、ナノ秒カウンタ317の最下位ビットn[03:00]842をデータ724として伝送する。なお、ENABLE信号線532は、一回の時刻伝送中は連続的にhighとする。これは、連続して伝送することが最速であり、シリアル化による時刻のコヒーレント時間を最小化することが可能となることが自明であるためである。 As shown in FIG. 8, in the transmission order, the most significant bit s [31:28] 831 of the second counter 313 is set as the first data 721, and the least significant bit of the second counter 313 is s [03:00] 832. Is transmitted as data 722. After that, n [29:28] 841, which is the most significant bit of the nanosecond counter 317, is transmitted as data 723. Since the count value of the nanosecond counter 317 is 30 bits, in the data 723, is 2 for convenience. Fill 0 to the bit and send. After that, the least significant bit n [03:00] 842 of the nanosecond counter 317 is transmitted as data 724. The ENABLE signal line 532 is continuously set to high during one time transmission. This is because it is obvious that continuous transmission is the fastest, and it is possible to minimize the coherent time of the time due to serialization.

そして、cPRTCU−RX部620のENABLE検出部623は、ENABLE信号線532及びクロック信号線533を監視し、クロック信号線533のクロックの立ち上がりエッジにて、ENABLEビットがhighである場合、DATA信号線531が表す4bitのDATA[3:0]をシフトレジスタ622に格納し、左方向に4bitシフトを行う。以上の動作を、ENABLEビットがhighである間、クロック信号線533のクロックの立ち上がりエッジ毎に、繰り返し実施する。 Then, the ENABLE detection unit 623 of the cPRTCU-RX unit 620 monitors the ENABLE signal line 532 and the clock signal line 533, and when the ENABLE bit is high at the rising edge of the clock of the clock signal line 533, the DATA signal line. The 4-bit DATA [3: 0] represented by 531 is stored in the shift register 622, and a 4-bit shift is performed to the left. The above operation is repeatedly performed for each rising edge of the clock of the clock signal line 533 while the ENABLE bit is high.

また同時にENABLE検出部623は、ENABLE信号線532及びクロック信号線533を監視し、クロック信号線533のクロックの立ち上がりエッジにて、ENABLEビットがLowである場合、cPRTCU部122、132、142に対し上書きパルス634を発行する。 At the same time, the ENABLE detection unit 623 monitors the ENABLE signal line 532 and the clock signal line 533, and when the ENABLE bit is Low at the rising edge of the clock of the clock signal line 533, the cPRTCU units 122, 132, and 142 are subjected to. The overwrite pulse 634 is issued.

cPRTCU部122、132、142のadder部631は、上書きパルス634に応じて、秒カウンタ632及びナノ秒カウンタ633に対して、cPRTCU−TX部520による処理遅延分及びcPRTCU−RX部620による処理遅延分を表す固定値を時刻情報に加算した結果を上書きする。 The adder unit 631 of the cPRTCU units 122, 132, and 142 responds to the overwrite pulse 634 with respect to the second counter 632 and the nanosecond counter 633 by the processing delay by the cPRTCU-TX unit 520 and the processing delay by the cPRTCU-RX unit 620. Overwrites the result of adding a fixed value representing the minute to the time information.

また、ナノ秒カウンタ633は、クロック信号線533のクロックに従ってカウントアップを行い、adder部631による上書きがなければカウントアップを継続する。秒カウンタ632は、ナノ秒カウンタ633の桁あふれを検知すると、秒カウンタ632のカウント値をインクリメントする。また、ナノ秒カウンタ633のカウント値が、その桁あふれ量に置き換えられる。 Further, the nanosecond counter 633 counts up according to the clock of the clock signal line 533, and continues the count up if there is no overwriting by the adder unit 631. When the second counter 632 detects an overflow of digits of the nanosecond counter 633, the second counter 632 increments the count value of the second counter 632. Further, the count value of the nanosecond counter 633 is replaced with the digit overflow amount.

そして、バス640により、秒カウンタ622のカウント値32bitとナノ秒カウンタ633のカウント値30bitが、高精度時刻に同期して動作するモジュールに伝送される。また、クロック信号線641により、バス640の基準クロックを表す信号が出力され、クロック信号の立ち上がりエッジでバス640の時刻を参照することが可能となる。 Then, the bus 640 transmits the count value 32 bits of the second counter 622 and the count value 30 bits of the nanosecond counter 633 to the module that operates in synchronization with the high-precision time. Further, the clock signal line 641 outputs a signal representing the reference clock of the bus 640, and the time of the bus 640 can be referred to at the rising edge of the clock signal.

以上説明したように、第1の実施の形態に係る時刻同期システムによれば、時刻源LSIが、一次時刻源ユニットであるPRTC部から取得した時刻を、カウンタ部に格納し、カウンタ部に格納された時刻を表すシリアルデータを、高精度時刻内包LSIに出力する。高精度時刻内包LSIは、入力されたシリアルデータが表す時刻に基づいて、カウンタ部のカウント値の上書きを行う。これにより、複数の集積回路間の時刻同期を、高い精度で、かつ、ローコストで実現することができる。また、複数の集積回路を含んで構成される基板内において時刻同期を高い精度で維持することが可能な時刻同期インタフェースを提供することができる。 As described above, according to the time synchronization system according to the first embodiment, the time source LSI stores the time acquired from the PRTC unit, which is the primary time source unit, in the counter unit and stores it in the counter unit. The serial data representing the time is output to the high-precision time-included LSI. The high-precision time-inclusive LSI overwrites the count value of the counter unit based on the time represented by the input serial data. As a result, time synchronization between a plurality of integrated circuits can be realized with high accuracy and low cost. Further, it is possible to provide a time synchronization interface capable of maintaining time synchronization with high accuracy in a substrate composed of a plurality of integrated circuits.

また、高精度時刻であっても、GNSSの状態によっては時刻のSTEPが発生する。STEPとは、基準クロックで一意に決定する時刻とは異なる時刻へのジャンプを意味し、すなわち位相が変動する。この場合、クロック信号と1PPS信号をもとに正確な時刻へ調整するためには最低1秒が必要となるが、常に時刻情報を伝達する本実施の形態の方法では、(CLK周波数×DATAbit数)/1 にてSTEPが完了するため、高精度時刻の完全性を保つことができる。 Further, even if the time is highly accurate, STEP of the time may occur depending on the state of GNSS. STEP means a jump to a time different from the time uniquely determined by the reference clock, that is, the phase fluctuates. In this case, at least 1 second is required to adjust the time to an accurate time based on the clock signal and 1PPS signal, but in the method of the present embodiment in which time information is always transmitted, (CLK frequency × DATAbit number) ) / 1, STEP is completed, so high-precision time perfection can be maintained.

また、STEP動作とは異なり、GNSSやPTPスレーブをPRTCとした場合においてはSLEW動作にて時刻操作が実施される。ここでSLEW動作とは基準クロックの速度を増減速する行為であり、ppm以下のレートすなわち一秒間に1マイクロ秒以下のレートでSLEW動作を実施する。この場合、cPRTCU−IFは、PRTCに直結したクロック信号によってのみ動作することが可能であり、連続した時刻においてはクロック信号のみを伝達することで、消費電力及び電磁波の発生を抑止することが可能である。 Further, unlike the STEP operation, when the GNSS or PTP slave is set to PRTC, the time operation is performed by the SLEW operation. Here, the SLEW operation is an act of accelerating or decelerating the speed of the reference clock, and the SLEW operation is performed at a rate of ppm or less, that is, a rate of 1 microsecond or less per second. In this case, the cPRTCU-IF can operate only by the clock signal directly connected to the PRTC, and by transmitting only the clock signal at continuous times, it is possible to suppress power consumption and generation of electromagnetic waves. Is.

<本発明の第2の実施の形態のシステム構成>
本発明の第2の実施の形態に係る時刻同期システムの構成について説明する。なお、第1の実施の形態と同様の構成となる部分については、同一符号を付して説明を省略する。
<System configuration of the second embodiment of the present invention>
The configuration of the time synchronization system according to the second embodiment of the present invention will be described. The parts having the same configuration as that of the first embodiment are designated by the same reference numerals and the description thereof will be omitted.

第1の実施の形態では、1つの基板内に時刻源LSI110と、複数の高精度時刻内包LSI121、131、141とが実装されている場合を例に説明したが、第2の実施の形態では、基板間で時刻同期を行う点が、第1の実施の形態と異なっている。 In the first embodiment, the case where the time source LSI 110 and the plurality of high-precision time inclusion LSIs 121, 131, and 141 are mounted on one substrate has been described as an example, but in the second embodiment, the case has been described. , The point that the time is synchronized between the substrates is different from the first embodiment.

図9に示すように、本発明の第2の実施の形態に係る時刻同期システム9は、PRTC部100と、時刻源基板910と、複数の高精度時刻内包基板921、931、941とを備えている。なお、時刻源基板910が、第1時刻同期回路の一例であり、複数の高精度時刻内包基板921、931、941が、第2時刻同期回路の一例である。 As shown in FIG. 9, the time synchronization system 9 according to the second embodiment of the present invention includes a PRTC unit 100, a time source substrate 910, and a plurality of high-precision time inclusion substrates 921, 931, 941. ing. The time source board 910 is an example of the first time synchronization circuit, and the plurality of high-precision time inclusion boards 921, 931, 941 are examples of the second time synchronization circuit.

時刻源基板910は、PRTCU部111を備えている。 The time source board 910 includes a PRTCU unit 111.

時刻源基板910から、cPRTC−IF913、914、915を介して、PRTCU部111のカウンタ部112の時刻情報をシリアル通信で複数の高精度時刻内包基板921、931、941に伝達する。 The time information of the counter unit 112 of the PRTCU unit 111 is transmitted from the time source substrate 910 to the plurality of high-precision time inclusion substrates 921, 931, 941 by serial communication via the cPRTC-IF913, 914, 915.

cPRTC−IF913、914、915は、上記第1の実施の形態におけるcPRTC−IF113と同様に、周波数(CLK)を伝送するクロック信号線、時刻(DATA)を伝送するDATA信号線、及びDATA有効識別子(ENABLE)を伝送するENABLE信号線の3要素のみで構成されている。 The cPRTC-IF913, 914, and 915 are the clock signal line for transmitting the frequency (CLK), the DATA signal line for transmitting the time (DATA), and the DATA valid identifier, similarly to the cPRTC-IF113 in the first embodiment. It is composed of only three elements of the ENABLE signal line that transmits (ENABLE).

cPRTC−IF913、914、915ではそれぞれ、同一の信号が伝送されているが、基板内のようにBUS型接続を行わず、時刻源基板910内のバッファにて分岐している。BUS型接続の場合、周波数制限や線長制限など設計制約が多くなりcPRTCU−IFの特徴である簡潔なインタフェースで高精度時刻を伝達するという概念に反してしまうためである。 Although the same signal is transmitted in each of the cPRTC-IF913, 914, and 915, the BUS type connection is not performed as in the board, and the signals are branched by the buffer in the time source board 910. This is because in the case of a BUS type connection, design restrictions such as frequency limitation and line length limitation increase, which violates the concept of transmitting high-precision time with a simple interface, which is a feature of cPRTCU-IF.

高精度時刻内包基板921、931、941に内包された、cPRTCU部122、132、142は、第1の実施の形態と同様の構成及び作用となるため、ここでは説明を省略する。 The cPRTCU portions 122, 132, and 142 included in the high-precision time-encapsulated substrates 921, 931, and 941 have the same configuration and operation as those of the first embodiment, and thus the description thereof will be omitted here.

また、上記のように基板間を接続する際には、各基板が活線挿抜されることも考慮し、1対他の接続が最良の構成である。ただしPCIバスに代表されるような活線挿抜を考慮する必要性がない基板の場合には、第1の実施の形態と同様の接続構成とすることで、cPRTCU−IFの総本数を削減することが可能である。 Further, when connecting the substrates as described above, the best configuration is one-to-other connection in consideration of hot-swap of each substrate. However, in the case of a substrate such as the PCI bus that does not need to consider hot-swap insertion / removal, the total number of cPRTCU-IFs can be reduced by adopting the same connection configuration as in the first embodiment. It is possible.

以上説明したように、第2の実施の形態に係る時刻同期システムによれば、時刻源基板が、一次時刻源ユニットであるPRTC部から取得した時刻を、カウンタ部に格納し、カウンタ部に格納された時刻を表すシリアルデータを、高精度時刻内包基板に出力する。高精度時刻内包基板は、入力されたシリアルデータが表す時刻に基づいて、カウンタ部のカウント値の上書きを行う。これにより、複数の基板間の時刻同期を、高い精度で、かつ、ローコストで実現することができる。 As described above, according to the time synchronization system according to the second embodiment, the time source board stores the time acquired from the PRTC unit, which is the primary time source unit, in the counter unit and stores it in the counter unit. The serial data representing the time is output to the high-precision time inclusion board. The high-precision time-inclusion board overwrites the count value of the counter unit based on the time represented by the input serial data. As a result, time synchronization between a plurality of substrates can be realized with high accuracy and low cost.

なお、本発明は、上述した実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲内で様々な変形や応用が可能である。 The present invention is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the gist of the present invention.

例えば、上述した実施の形態では、GNSS放送の電波を受信し、時刻情報、位相情報、及び周波数情報を取得するPRTC部を、一次時刻源ユニットとする場合を例に説明したが、これに限定されるものではない。例えば、一次時刻源ユニットが、グランドマスタークロックであり、PTPを用いて、グランドマスタークロックの時刻を取得するようにしてもよい。
図10に示すように、本発明の変形例に係る時刻同期システム10は、グランドマスター1000と、PTPスレーブ基板1010と、複数の高精度時刻内包基板921、931、941とを備えている。なお、PTPスレーブ基板1010が、第1時刻同期回路の一例である。PTPスレーブ基板1010は、Ethernet1001を介して、グランドマスター1000から、PTPを用いて、グランドマスター1000のクロックの時刻を取得する。PTPスレーブ基板1010は、PRTCU部111を備えている。PTPスレーブ基板1010から、cPRTC−IF913、914、915を介して、PRTCU部111のカウンタ部112の時刻情報をシリアル通信で複数の高精度時刻内包基板921、931、941に伝達する。
For example, in the above-described embodiment, the case where the PRTC unit that receives the radio wave of the GNSS broadcast and acquires the time information, the phase information, and the frequency information is used as the primary time source unit has been described as an example, but the present invention is limited to this. It is not something that is done. For example, the primary time source unit is a grand master clock, and PTP may be used to acquire the time of the grand master clock.
As shown in FIG. 10, the time synchronization system 10 according to the modified example of the present invention includes a grand master 1000, a PTP slave substrate 1010, and a plurality of high-precision time-encapsulating substrates 921, 931, 941. The PTP slave board 1010 is an example of the first time synchronization circuit. The PTP slave board 1010 acquires the clock time of the grand master 1000 from the grand master 1000 via the Ethernet 1001 using the PTP. The PTP slave board 1010 includes a PRTCU unit 111. The time information of the counter section 112 of the PRTCU section 111 is transmitted from the PTP slave board 1010 to the plurality of high-precision time-encapsulating boards 921, 931, 941 by serial communication via the cPRTC-IF913, 914, 915.

この場合、PTPスレーブのように比較的時刻情報が一律に増加せず、何度かのステップ動作(ナノの桁が125MHz単位であれば8ns単純増加であるが、そのルールに従っていない時刻遷移をSTEP動作という)によって、収束/発散を繰り返すことがある。そこで、最低でもPTPスレーブアルゴリズムの時刻補正間隔以上のラッチ間隔が必要である。なぜならば、ステップ動作した時刻が正確である可能性が高いためにSLAVEロジックがあえて時刻を飛ばしたことは明白であり、cPRTCU−IFによる時刻伝送は、基準時計であるPRTCU部と速やかに同期する必要があるからである。 In this case, unlike the PTP slave, the time information does not increase uniformly, and several step operations (8 ns simple increase if the nano digit is in 125 MHz units, but the time transition that does not follow the rule is STEP. Depending on the action), convergence / divergence may be repeated. Therefore, at least a latch interval equal to or greater than the time correction interval of the PTP slave algorithm is required. This is because it is clear that the SLAVE logic intentionally skipped the time because the time of the step operation is likely to be accurate, and the time transmission by cPRTCU-IF is rapidly synchronized with the PRTCU section which is the reference clock. Because it is necessary.

また、グランドマスタークロックからEthernetを介して、グランドマスタークロックと同一の時刻情報を得て、時刻情報を演算処理することにより位相情報を得て、位相情報を演算処理することにより周波数情報を得るPTPスレーブを、一次時刻源ユニットとしてもよい。 Further, PTP which obtains the same time information as the grand master clock from the grand master clock via Ethernet, obtains phase information by arithmetically processing the time information, and obtains frequency information by arithmetically processing the phase information. The slave may be the primary time source unit.

また、上記の実施の形態では、便宜的にクロック周波数125MHz、すなわち時刻最小粒度8nsとした場合を例に説明したが、125MHz以外の周波数であってもよい。また、時刻伝達方式として4bitのパラレルデータを用いた場合を例に説明したが、これに限定されるものではなく、4bit以外のデータであってもよい。例えば、1bitのデータにし64サイクルでデータ伝送するようにしてもよい。 Further, in the above embodiment, for convenience, the case where the clock frequency is 125 MHz, that is, the time minimum particle size is 8 ns has been described as an example, but a frequency other than 125 MHz may be used. Further, the case where 4-bit parallel data is used as the time transmission method has been described as an example, but the present invention is not limited to this, and data other than 4-bit data may be used. For example, 1 bit of data may be used for data transmission in 64 cycles.

また、上記の説明にて、「立ち上がり」と「立ち下がり」とを反転させるように構成してもよい。 Further, in the above description, the “rising” and the “falling” may be reversed.

1、9 時刻同期システム
100 PRTC部(一次時刻源ユニット)
101 UART信号
102 1PPS信号
103 クロック信号
110 時刻源LSI(第1時刻同期回路)
111 PRTCU部
112 カウンタ部(第1カウンタ部)
121 高精度時刻内包LSI(第2時刻同期回路)
122 cPRTCU部
123 カウンタ部(第2カウンタ部)
311 受信部
312 CPU
313 秒カウンタ
314 位相調整器
315 PLL部(クロック生成部)
317 ナノ秒カウンタ
520 cPRTCU−TX部(出力部)
521 一時記憶領域
522 ラッチパルス生成部
523 ラッチ条件セット部
525 パラレルシリアル変換ブロック
531 DATA信号線
531 信号線
532 ENABLE信号線
533 クロック信号線
620 cPRTCU−RX部(入力部)
621 シフトレジスタブロック
622 シフトレジスタ
623 検出部
631 adder部(上書部)
632 秒カウンタ
633 ナノ秒カウンタ
640 バス
641 クロック信号線
722 データ
910 時刻源基板
921 高精度時刻内包基板
1, 9 Time synchronization system 100 PRTC unit (primary time source unit)
101 UART signal 102 1PPS signal 103 Clock signal 110 Time source LSI (first time synchronization circuit)
111 PRTCU unit 112 Counter unit (1st counter unit)
121 High-precision time-included LSI (second time synchronization circuit)
122 cPRTCU unit 123 Counter unit (second counter unit)
311 Receiver 312 CPU
313 seconds counter 314 phase adjuster 315 PLL section (clock generation section)
317 Nanosecond counter 520 cPRTCU-TX section (output section)
521 Temporary storage area 522 Latch pulse generation unit 523 Latch condition setting unit 525 Parallel serial conversion block 531 DATA signal line 531 Signal line 532 ENABLE signal line 533 Clock signal line 620 cPRTCU-RX unit (input unit)
621 Shift register block 622 Shift register 623 Detection unit 631 adder unit (overwriting unit)
632 second counter 633 nanosecond counter 640 bus 641 clock signal line 722 data 910 time source board 921 high precision time inclusion board

Claims (10)

基準クロックを生成するためのクロック生成部、
時刻を表す複数ビットのカウント値を格納すると共に、前記基準クロックに従ってカウントアップをする第1カウンタ部、
一次時刻源ユニットから取得した時刻を表す複数ビットのカウント値を、前記第1カウンタ部に格納する制御部、及び
前記基準クロックと、前記第1カウンタ部に格納された前記カウント値を表すシリアルデータとを出力する出力部
を含む第1時刻同期回路と、
前記基準クロックと、前記シリアルデータとの入力を受け付ける入力部、
自装置の時刻を表す複数ビットのカウント値を格納すると共に、前記基準クロックに従ってカウントアップをする第2カウンタ部、及び
入力された前記シリアルデータが表す前記カウント値に基づいて、前記第2カウンタ部の前記複数ビットのカウント値の上書きを行う上書部
を含む少なくとも1つの第2時刻同期回路と、
を含む時刻同期システム。
Clock generator for generating the reference clock,
A first counter unit that stores a count value of a plurality of bits representing the time and counts up according to the reference clock.
A control unit that stores a plurality of bits of count values that represent the time acquired from the primary time source unit in the first counter unit, the reference clock, and serial data that represents the count values stored in the first counter unit. The first time synchronization circuit including the output unit that outputs and
An input unit for receiving said reference clock, the input of the serial data,
A second counter unit that stores a count value of a plurality of bits representing the time of the own device and counts up according to the reference clock, and the second counter unit based on the count value represented by the input serial data. At least one second time synchronization circuit including an overwriting part that overwrites the count value of the plurality of bits of the above.
Time synchronization system including.
前記第1カウンタ部は、
前記基準クロックに従ってカウントアップする、複数bitで構成され、かつ、ナノ秒単位のカウント値を格納するナノ秒カウンタ、及び複数bitで構成され、かつ、秒単位のカウント値を格納する秒カウンタを有し、
前記ナノ秒カウンタは、前記制御部からの指示が入力されるまで、カウントアップを継続し、
前記ナノ秒カウンタの桁あふれを検知すると、前記ナノ秒カウンタのカウント値を、桁あふれ量に置き換え、前記秒カウンタのカウント値をインクリメントし、
前記出力部は、
前記秒カウンタのカウント値と、前記ナノ秒カウンタのカウント値とで構成されるカウンタ時刻情報をラッチするタイミングを規定するためのラッチ条件を設定するラッチ条件セット部と、
前記カウンタ時刻情報を監視し、前記ラッチ条件を満たす時刻に到達したときに、ラッチパルスを生成するラッチパルス生成部と、
前記ラッチパルスを受信した場合に前記カウンタ時刻情報をラッチすることにより得られた前記カウンタ時刻情報を格納する一時記憶領域と、
前記一時記憶領域に格納された前記カウンタ時刻情報を複数のシリアルデータに変換するパラレルシリアル変換部であって、前記シリアルデータが有効であることを前記第2時刻同期回路に通知するENABLE信号を生成すると共に、前記基準クロックに従ってカウントアップするカウンタを含み、前記カウンタのカウント値をもとに現時点で送付すべき前記シリアルデータを選択して、選択された前記シリアルデータを前記第2時刻同期回路に出力するパラレルシリアル変換部と、
を含む請求項1記載の時刻同期システム。
The first counter unit
It has a nanosecond counter composed of a plurality of bits and storing a count value in nanosecond units, which counts up according to the reference clock, and a second counter composed of a plurality of bits and storing a count value in seconds. And
The nanosecond counter continues to count up until an instruction from the control unit is input.
When the digit overflow of the nanosecond counter is detected, the count value of the nanosecond counter is replaced with the digit overflow amount, and the count value of the second counter is incremented.
The output unit
A latch condition set unit for setting a latch condition for defining a timing for latching counter time information composed of a count value of the second counter and a count value of the nanosecond counter.
A latch pulse generator that monitors the counter time information and generates a latch pulse when a time satisfying the latch condition is reached.
A temporary storage area for storing the counter time information obtained by latching the counter time information when the latch pulse is received, and
A parallel serial conversion unit that converts the counter time information stored in the temporary storage area into a plurality of serial data, and generates an ENABLE signal that notifies the second time synchronization circuit that the serial data is valid. At the same time, the serial data to be sent at the present time is selected based on the count value of the counter including the counter that counts up according to the reference clock, and the selected serial data is sent to the second time synchronization circuit. Parallel serial conversion unit to output and
The time synchronization system according to claim 1.
前記入力部は、
前記出力部からの基準クロックと、前記パラレルシリアル変換部からの前記ENABLE信号を監視するENABLE検出部と、
前記ENABLE信号がhighである間、前記ENABLE検出部が前記基準クロックの立ち上がりエッジを検出する毎に、前記パラレルシリアル変換部から入力された前記シリアルデータを格納するシフトレジスタ部とを含み、
前記ENABLE検出部は、前記ENABLE信号がLowとなっていることを前記基準クロックの立ち上がりエッジの検出時に確認した場合、前記第2カウンタ部に、前記シフトレジスタ部に格納されたデータを上書きすることを通知する上書きパルスを送出する
請求項2記載の時刻同期システム。
The input unit is
A reference clock from the output unit, an ENABLE detection unit that monitors the ENABLE signal from the parallel serial conversion unit, and an ENABLE detection unit.
While the ENABLE signal is high, each time the ENABLE detection unit detects a rising edge of the reference clock, the ENABLE signal includes a shift register unit for storing the serial data input from the parallel serial conversion unit.
When the ENABLE detection unit confirms that the ENABLE signal is Low at the time of detecting the rising edge of the reference clock, the second counter unit overwrites the data stored in the shift register unit. 2. The time synchronization system according to claim 2, which sends an overwrite pulse to notify the user.
前記入力部は、
前記出力部からの基準クロックと、前記パラレルシリアル変換部からの前記ENABLE信号を監視するENABLE検出部と、
前記ENABLE信号がhighである間、前記ENABLE検出部が前記基準クロックの立ち下がりエッジを検出する毎に、前記パラレルシリアル変換部から入力された前記シリアルデータを格納するシフトレジスタ部とを含み、
前記ENABLE検出部は、前記ENABLE信号がLowとなっていることを前記基準クロックの立ち下がりエッジの検出時に確認した場合、前記第2カウンタ部に、前記シフトレジスタ部に格納されたデータを上書きすることを通知する上書きパルスを送出する
請求項2記載の時刻同期システム。
The input unit is
A reference clock from the output unit, an ENABLE detection unit that monitors the ENABLE signal from the parallel serial conversion unit, and an ENABLE detection unit.
While the ENABLE signal is high, each time the ENABLE detection unit detects a falling edge of the reference clock, the ENABLE signal includes a shift register unit for storing the serial data input from the parallel serial conversion unit.
When the ENABLE detection unit confirms that the ENABLE signal is Low at the time of detecting the falling edge of the reference clock, the second counter unit overwrites the data stored in the shift register unit. The time synchronization system according to claim 2, which sends an overwrite pulse to notify the fact.
前記第2カウンタ部は、
前記基準クロックに従ってカウントアップする、複数bitで構成され、かつ、ナノ秒単位のカウント値を格納するナノ秒カウンタ、及び複数bitで構成され、かつ、秒単位のカウント値を格納する秒カウンタを有し、
前記ナノ秒カウンタは、前記上書きパルスが入力されるまで、カウントアップを継続し、
前記ナノ秒カウンタの桁あふれを検知すると、前記ナノ秒カウンタのカウント値を、桁あふれ量に置き換え、前記秒カウンタのカウント値をインクリメントし、
前記上書部は、前記上書きパルスが入力されたときに、前記秒カウンタ及び前記ナノ秒カウンタの各々の現在のカウント値を、前記シフトレジスタ部に格納された値に対して所定値を加算した値に上書きし、
前記所定値は、前記一次時刻源ユニットから時刻を取得してから、前記時刻の情報を、前記第2カウンタ部に格納するまでの伝搬遅延時間に応じた予め定められた値である
請求項3又は4記載の時刻同期システム。
The second counter unit
It has a nanosecond counter composed of a plurality of bits and storing a count value in nanosecond units, which counts up according to the reference clock, and a second counter composed of a plurality of bits and storing a count value in seconds. And
The nanosecond counter continues to count up until the overwrite pulse is input.
When the digit overflow of the nanosecond counter is detected, the count value of the nanosecond counter is replaced with the digit overflow amount, and the count value of the second counter is incremented.
When the overwrite pulse is input, the overwriting unit adds a predetermined value to the current count value of each of the second counter and the nanosecond counter with respect to the value stored in the shift register unit. Overwrite the value and
The predetermined value is a predetermined value according to the propagation delay time from the acquisition of the time from the primary time source unit to the storage of the time information in the second counter unit. Or the time synchronization system according to 4.
前記一次時刻源ユニットは、GNSS(Global Navigation Satellite System)放送の電波を受信し、前記受信した電波から、時刻情報を得て、前記時刻情報を演算処理することにより位相情報を得て、前記位相情報を演算処理することにより周波数情報を得る請求項1〜請求項5の何れか1項記載の時刻同期システム。 The primary time source unit receives radio waves of GNSS (Global Navigation Satellite System) broadcasting, obtains time information from the received radio waves, obtains phase information by arithmetically processing the time information, and obtains the phase information. The time synchronization system according to any one of claims 1 to 5, wherein frequency information is obtained by arithmetically processing the information. 前記一次時刻源ユニットは、グランドマスタークロックであり、
前記制御部は、PTP(Precision Time Protocol)を用いて、前記グランドマスタークロックの時刻を取得する請求項1〜請求項5の何れか1項記載の時刻同期システム。
The primary time source unit is a grand master clock.
The time synchronization system according to any one of claims 1 to 5, wherein the control unit uses PTP (Precision Time Protocol) to acquire the time of the grand master clock.
前記一次時刻源ユニットは、グランドマスタークロックからEthernetを介して、前記グランドマスタークロックと同一の時刻情報を得て、前記時刻情報を演算処理することにより位相情報を得て、前記位相情報を演算処理することにより周波数情報を得るPTP(Precision Time Protocol)スレーブである請求項1〜請求項5の何れか1項記載の時刻同期システム。 The primary time source unit obtains the same time information as the ground master clock from the ground master clock via the frequency, obtains phase information by arithmetically processing the time information, and arithmetically processes the phase information. The time synchronization system according to any one of claims 1 to 5, which is a PTP (Precision Time Protocol) slave that obtains frequency information by the operation. 基準クロックを生成するためのクロック生成部と、
時刻を表す複数ビットのカウント値を格納すると共に、前記基準クロックに従ってカウントアップをする第1カウンタ部と、
一次時刻源ユニットから取得した時刻を表す複数ビットのカウント値を、前記第1カウンタ部に格納する制御部と、
前記基準クロックと、前記第1カウンタ部に格納された前記カウント値を表すシリアルデータとを出力する出力部と
を含む時刻同期回路。
A clock generator for generating a reference clock and
A first counter unit that stores a count value of a plurality of bits representing the time and counts up according to the reference clock.
A control unit that stores a multi-bit count value representing the time acquired from the primary time source unit in the first counter unit, and a control unit .
A time synchronization circuit including the reference clock and an output unit that outputs serial data representing the count value stored in the first counter unit.
第1時刻同期回路及び少なくとも1つの第2時刻同期回路を含む時刻同期システムにおける時刻同期方法であって、
前記第1時刻同期回路のクロック生成部が、基準クロックを生成し、
前記第1時刻同期回路の制御部が、一次時刻源ユニットから取得した時刻を表す複数ビットのカウント値を、第1カウンタ部に格納し、
前記第1時刻同期回路の第1カウンタ部が、前記基準クロックに従ってカウントアップをし、
前記第1時刻同期回路の出力部が、前記基準クロックと、前記第1カウンタ部に格納された前記カウント値を表すシリアルデータとを出力し、
前記第2時刻同期回路の入力部が、前記基準クロックと、前記シリアルデータとの入力を受け付け、
前記第2時刻同期回路の上書部が、入力された前記シリアルデータが表す前記カウント値に基づいて、第2カウンタ部の上書きを行い、
前記第2カウンタ部が、前記基準クロックに従ってカウントアップをする
時刻同期方法。
A time synchronization method in a time synchronization system including a first time synchronization circuit and at least one second time synchronization circuit.
The clock generation unit of the first time synchronization circuit generates a reference clock,
The control unit of the first time synchronization circuit stores a plurality of bits of count values representing the time acquired from the primary time source unit in the first counter unit.
The first counter section of the first time synchronization circuit counts up according to the reference clock.
The output unit of the first time synchronization circuit outputs the reference clock and serial data representing the count value stored in the first counter unit.
Input of the second time synchronization circuit receives said reference clock, the input of the serial data,
The overwriting section of the second time synchronization circuit overwrites the second counter section based on the count value represented by the input serial data .
A time synchronization method in which the second counter unit counts up according to the reference clock.
JP2019196014A 2019-10-29 2019-10-29 Time synchronization system, time synchronization circuit, and time synchronization method Active JP6818845B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019196014A JP6818845B1 (en) 2019-10-29 2019-10-29 Time synchronization system, time synchronization circuit, and time synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019196014A JP6818845B1 (en) 2019-10-29 2019-10-29 Time synchronization system, time synchronization circuit, and time synchronization method

Publications (2)

Publication Number Publication Date
JP6818845B1 true JP6818845B1 (en) 2021-01-20
JP2021071297A JP2021071297A (en) 2021-05-06

Family

ID=74164726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019196014A Active JP6818845B1 (en) 2019-10-29 2019-10-29 Time synchronization system, time synchronization circuit, and time synchronization method

Country Status (1)

Country Link
JP (1) JP6818845B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023093670A1 (en) * 2021-11-26 2023-06-01 合肥本源量子计算科技有限责任公司 Clock synchronization device and method, quantum measurement and control system, and quantum computer

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102614429B1 (en) * 2023-06-21 2023-12-14 김호중 System-on-Module for Edge Devices with Reconfigurable System Framework and Server-Time Synchronization

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001221874A (en) * 2000-02-14 2001-08-17 Toshiba Corp Time synchronization system
JP2006292448A (en) * 2005-04-07 2006-10-26 Hioki Ee Corp Measuring system
US9276689B2 (en) * 2012-09-25 2016-03-01 Rad Data Communications Ltd. Pluggable packet master clock
CN106817184B (en) * 2017-01-19 2018-10-23 重庆重邮汇测通信技术有限公司 The method for synchronizing time and device of local clock and GPS clock in network measure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023093670A1 (en) * 2021-11-26 2023-06-01 合肥本源量子计算科技有限责任公司 Clock synchronization device and method, quantum measurement and control system, and quantum computer

Also Published As

Publication number Publication date
JP2021071297A (en) 2021-05-06

Similar Documents

Publication Publication Date Title
CN108604217B (en) Method and apparatus for low latency low uncertainty timer synchronization mechanism across multiple devices
US10110367B2 (en) High precision timer in CPU cluster
JP6818845B1 (en) Time synchronization system, time synchronization circuit, and time synchronization method
US9001951B1 (en) Techniques for transferring time information between clock domains
CA2755750A1 (en) Synchronisation and timing method and apparatus
CN110543437A (en) delay synchronization across clock domains
EP2778942B1 (en) Synchronizing data transfer from a core to a physical interface
US8190942B2 (en) Method and system for distributing a global timebase within a system-on-chip having multiple clock domains
US6118314A (en) Circuit assembly and method of synchronizing plural circuits
CN108738127B (en) Radio remote unit, baseband processing unit, distributed base station and synchronization method thereof
Luong et al. A stitch in time and frequency synchronization saves bandwidth
CN109714125B (en) Method and system for synchronizing wireless time between satellite cabins and satellite
TW531952B (en) Numerically controlled oscillator in particular for a radiofrequency signal receiver
RU172628U1 (en) TIME SYNCHRONIZATION SERVER
CN116299259A (en) Coherent multichannel receiving and transmitting system and method based on RFSoC
JP2012099921A (en) Circuit and method for data transfer with clock domain crossing
WO2022021091A1 (en) Clock tree architecture, and clock signal transmission method and device
Deev et al. Subnanosecond synchronization method based on the synchronous Ethernet network
US20240120928A1 (en) Synchronizing system for time synchronization required for data transceiver control
US20240214177A1 (en) Multi-device system and method for phase alignment of devices in the multi-device system
US12040812B2 (en) Method for synchronising analogue data at the output of a plurality of digital/analogue converters
US11575405B1 (en) Method for correcting 1 pulse per second signal and timing receiver
US20220302922A1 (en) Method for synchronising analogue data at the output of a plurality of digital/analogue converters
CN102323741A (en) Pulse per second (PPS) signal generating device for vehicle-mounted equipment
CN107104749A (en) Clock synchronizing method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200923

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201116

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20201208

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201228

R150 Certificate of patent or registration of utility model

Ref document number: 6818845

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250