JP2009290739A - Moving average arithmetic processing method in clock deviation change - Google Patents

Moving average arithmetic processing method in clock deviation change Download PDF

Info

Publication number
JP2009290739A
JP2009290739A JP2008143239A JP2008143239A JP2009290739A JP 2009290739 A JP2009290739 A JP 2009290739A JP 2008143239 A JP2008143239 A JP 2008143239A JP 2008143239 A JP2008143239 A JP 2008143239A JP 2009290739 A JP2009290739 A JP 2009290739A
Authority
JP
Japan
Prior art keywords
clock
clock deviation
latest
deviation detection
value
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.)
Granted
Application number
JP2008143239A
Other languages
Japanese (ja)
Other versions
JP4685131B2 (en
Inventor
Yasuyuki Endo
靖行 遠藤
Kazuto Takei
和人 武井
Katsukichi Miura
克吉 三浦
Tadanobu Nikaido
忠信 二階堂
Yoshiaki Kisaka
由明 木坂
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.)
NTT Electronics Corp
Original Assignee
NTT Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTT Electronics Corp filed Critical NTT Electronics Corp
Priority to JP2008143239A priority Critical patent/JP4685131B2/en
Publication of JP2009290739A publication Critical patent/JP2009290739A/en
Application granted granted Critical
Publication of JP4685131B2 publication Critical patent/JP4685131B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To make the response speed of mapping amount adjustment during clock deviation change fast while keeping detection precision of a sequentially changing clock deviation high. <P>SOLUTION: A clock deviation detection unit 13 detects the clock deviation between an input clock and an output clock a plurality of times in a fixed period, and a moving average arithmetic processing function 13a uses detected clock deviation detected values thereof to compare the latest clock deviation detected value with the clock deviation detected value right before the latest one or the total value of a plurality of clock deviation detected values, performs weighting operation using the latest clock deviation detected value according to the comparison result, and replaces the operation value with the latest clock deviation detected value, and further similarly repeats comparison and operation, and divides the latest clock deviation detected value which is obtained finally by the total number of obtained clock deviation detected values to find a moving average value. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、光伝送システム等における高速伝送信号の処理において、例えばクライアントデータをフレーム形式にマッピングする際に、マッピングに必要な入力クロックと出力クロックの偏差の検出精度を高く維持しながら、クロック偏差変化時のマッピング量調整の出力クロックの応答速度を改善することが可能なクロック偏差変化時の移動平均演算処理方法に関する。   In the processing of a high-speed transmission signal in an optical transmission system or the like, for example, when mapping client data to a frame format, the clock deviation is maintained while maintaining high detection accuracy of the deviation between the input clock and the output clock necessary for mapping. The present invention relates to a moving average calculation processing method at the time of clock deviation change, which can improve the response speed of the output clock for adjusting the mapping amount at the time of change.

現在、光伝送システムにおいては、例えば特許文献1に記載されているように、波長分割多重方式が採用されており、ディジタル信号を経済的に目的地へ伝送するために、複数の低速ディジタル信号を時分割多重して1つの高速ディジタル信号(高速伝送信号ともいう)を形成し、この高速伝送信号を光ファイバへ伝送することが行われている。   At present, in an optical transmission system, for example, as described in Patent Document 1, a wavelength division multiplexing system is employed, and a plurality of low-speed digital signals are transmitted in order to economically transmit a digital signal to a destination. Time-division multiplexing is used to form one high-speed digital signal (also referred to as a high-speed transmission signal), and this high-speed transmission signal is transmitted to an optical fiber.

複数の低速ディジタル信号を時分割多重するためには、各低速ディジタル信号の周波数が正確に一致していることが必要であるため、スタッフ同期方式等により各低速ディジタル信号の周波数を同期させている。スタッフ同期方式では、受信側でクライアントデータである低速ディジタル信号をフレーム形式にマッピングする際に、各低速ディジタル信号の周波数の同期を採るために、情報成分の無いスタッフパルスを挿入するスタッフ処理を行う。受信側でフレーム形式の信号をデマッピングしてクライアントデータを復元する際に、スタッフパルスを除去するデスタッフ処理を行う。   In order to time-division multiplex a plurality of low-speed digital signals, it is necessary that the frequencies of the respective low-speed digital signals are exactly the same. Therefore, the frequencies of the respective low-speed digital signals are synchronized by a stuff synchronization method or the like. . In the stuff synchronization method, when mapping a low-speed digital signal, which is client data, to a frame format on the receiving side, a stuff process is performed in which a stuff pulse having no information component is inserted in order to synchronize the frequency of each low-speed digital signal. . When the receiver side restores the client data by demapping the frame format signal on the receiving side, destuffing processing is performed to remove stuffing pulses.

また、送信側にて上記のマッピングを行う場合、一般的に、低速ディジタル信号から抽出したクロック成分をもとに書込クロックを生成し、この書込クロックでディジタル信号をフレーム形式にマッピングするためにバッファメモリに書き込み、この書き込まれたディジタル信号を発振器から発振される読出クロックで読み出すようになっている。
特許3529713号公報
When the above mapping is performed on the transmission side, generally, a write clock is generated based on a clock component extracted from a low-speed digital signal, and the digital signal is mapped to a frame format using this write clock. The digital signal written in the buffer memory is read out by a read clock oscillated from an oscillator.
Japanese Patent No. 3529713

上述したように、低速ディジタル信号をフレーム形式にマッピングする場合、マッピングのために低速ディジタル信号から抽出した書込クロック(入力クロック)と、発振器から出力される読出クロック(出力クロック)とが非同期であるため、それら入力クロックと出力クロックとの偏差(クロック偏差)を検出してマッピング量を調整する必要がある。安定したマッピングを行うためには、クロック偏差の検出精度を高める必要があるが、これは、過去の複数のクロック偏差検出値の移動平均を演算(移動平均演算処理)することで可能である。   As described above, when mapping a low-speed digital signal to the frame format, the write clock (input clock) extracted from the low-speed digital signal for mapping and the read clock (output clock) output from the oscillator are asynchronous. Therefore, it is necessary to adjust the mapping amount by detecting a deviation (clock deviation) between the input clock and the output clock. In order to perform stable mapping, it is necessary to improve the detection accuracy of the clock deviation, but this can be done by calculating a moving average of a plurality of past clock deviation detection values (moving average calculation processing).

しかし、過去(複数回)のクロック偏差の平均回数が多くなるほどに合計の偏差検出期間が増加するため、入力クロックへの出力クロックの応答速度が遅くなるという課題があった。   However, since the total deviation detection period increases as the average number of clock deviations in the past (multiple times) increases, there is a problem that the response speed of the output clock to the input clock becomes slow.

例えば、図1に示すクロック偏差に応じたデータ調整量であるJC処理量と時間の相関図に示すように、入力クロックCK1の位相が変化した場合に、クロック偏差を移動平均演算処理で求め、この結果に応じて出力クロックCK2の位相を、入力クロックCK1の位相に追従するように調整した場合、移動平均演算処理の平均演算数が多いと、出力クロックCK2が入力クロックCK1に追従する時間(応答時間)が遅くなってしまう。   For example, when the phase of the input clock CK1 changes as shown in the correlation diagram between the JC processing amount that is the data adjustment amount corresponding to the clock deviation and the time shown in FIG. 1, the clock deviation is obtained by moving average calculation processing, When the phase of the output clock CK2 is adjusted so as to follow the phase of the input clock CK1 according to this result, the time (when the output clock CK2 follows the input clock CK1 when the average number of operations in the moving average calculation process is large ( Response time) is delayed.

前記課題を解決するために、本発明は、順次変化するクロック偏差の検出精度を高く維持しながら、クロック偏差変化時の入力クロックへの出力クロックの応答速度を速くすることを目的とする。   In order to solve the above-described problems, an object of the present invention is to increase the response speed of the output clock to the input clock when the clock deviation changes, while maintaining high detection accuracy of the clock deviation that changes sequentially.

上記目的を達成するために、発明者らは、バッファメモリにディジタル信号を書き込んで読み出すことによりフレーム形式にマッピング、又はフレーム形式から分離するデマッピングを行う際に用いられるディジタル信号から抽出した書き込み用の入力クロックと、外部から入力された出力クロックとの偏差を一定期間に複数回検出し、この検出により順次得られるクロック偏差検出値の移動平均演算処理を、最新に検出されたクロック偏差検出値である最新クロック偏差検出値と、最新の検出の前に検出された1乃至は複数のクロック偏差検出値の総和である総和値とを比較し、この結果が小さい場合、等しい場合、大きい場合の各々の場合に応じて、最新クロック偏差検出値を用いた重み付けの演算を行い、この演算で得られた値を最新クロック偏差検出値に置き換えた後、上記の比較及び演算を繰り返し、最後に得られる最新クロック偏差検出値を、全てのクロック偏差検出値の検出数で除算して行うこととした。   In order to achieve the above object, the inventors have written data extracted from a digital signal used for mapping to a frame format by writing and reading a digital signal in a buffer memory or performing demapping separated from the frame format. The deviation between the input clock and the output clock input from the outside is detected multiple times in a certain period, and the moving average calculation processing of the clock deviation detection value sequentially obtained by this detection is performed, and the clock deviation detection value detected most recently The latest clock deviation detection value is compared with the total value that is the sum of one or more clock deviation detection values detected before the latest detection, and when this result is small, equal, or large In each case, the weighting calculation using the latest clock deviation detection value is performed, and the value obtained by this calculation is updated to the latest. After replacing the lock deviation detection value, repeating the comparison and calculation described above, the latest clock deviation detection value obtained at the end, it was decided to carry out is divided by the detection number of all clock deviation detection value.

具体的には、周波数が変化するディジタル信号から抽出したクロック成分をもとに入力クロックを生成し、この入力クロックで前記ディジタル信号をフレーム形式にマッピングするためにバッファメモリに書き込み、この書き込まれたディジタル信号を外部から入力された出力クロックで読み出す際に、前記入力クロックと前記出力クロックとの偏差を一定期間に複数回検出し、この検出により順次得られるクロック偏差検出値の移動平均演算処理を行うクロック偏差変化時の移動平均演算処理方法において、前記移動平均演算処理は、前記検出により順次得られるクロック偏差検出値のうち最新に検出されたクロック偏差検出値である最新クロック偏差検出値と、前記最新の検出の前に検出された1乃至は複数のクロック偏差検出値の総和である総和値とを比較し、前記最新クロック偏差検出値が前記総和値より小さい場合、等しい場合、及び大きい場合の各々の場合に応じて、前記最新クロック偏差検出値を用いた重み付けの演算を行い、この演算で得られた値を前記最新クロック偏差検出値に置き換えた後、この置き換え後の最新クロック偏差検出値を用いた前記比較並びに当該比較の結果に応じた前記演算を行うことを繰り返し、前記一定期間に複数回検出された全てのクロック偏差検出値を用いた前記演算後に得られる最新クロック偏差検出値を、前記全てのクロック偏差検出値の検出数で除算することを特徴とするクロック偏差変化時の移動平均演算処理方法である。   Specifically, an input clock is generated based on a clock component extracted from a digital signal whose frequency changes, and the digital signal is written to a buffer memory in order to map the digital signal to a frame format using this input clock. When reading out a digital signal with an externally input output clock, the deviation between the input clock and the output clock is detected a plurality of times in a certain period, and the moving average calculation processing of the clock deviation detection values sequentially obtained by this detection is performed. In the moving average calculation processing method at the time of clock deviation change to be performed, the moving average calculation processing includes the latest clock deviation detection value that is the latest clock deviation detection value among the clock deviation detection values sequentially obtained by the detection; Sum of one or more clock deviation detection values detected before the latest detection A comparison is made with a certain sum value, and when the latest clock deviation detection value is smaller than, equal to, or larger than the sum total value, a weighting operation is performed using the latest clock deviation detection value. Then, after replacing the value obtained in this calculation with the latest clock deviation detection value, repeatedly performing the comparison according to the comparison using the latest clock deviation detection value after the replacement and the result of the comparison, The latest clock deviation detection value obtained after the calculation using all the clock deviation detection values detected a plurality of times in the predetermined period is divided by the number of detections of all the clock deviation detection values. It is a moving average calculation processing method at the time of change.

この方法によれば、ディジタル信号のマッピングを行う際に、複数のクロック偏差検出値を順次用いて移動平均値を順次求めてゆく過程で、従来のように順番に行うのではなく、最新クロック偏差検出値と、この前の1乃至は複数のクロック偏差検出値の総和値とを比較し、この結果に応じて最新クロック偏差検出値を用いた重み付けの演算を行い、この演算値を最新クロック偏差検出値に置き換えた後、同様に比較及び演算を繰り返し、最後に得られる最新クロック偏差検出値を、全てのクロック偏差検出値の検出数で除算して移動平均値を求めるようにした。このため、最終的に求められる平均値(上記最後に得られる最新クロック偏差検出値の平均値)に、より近い移動平均値を、従来方法よりも早い時間過程で求めることができる。この途中の過程で求められる移動平均値は、従来よりも短時間でクロック偏差を零に近づける処理を行うことができる。言い換えれば、一定期間のクロック偏差の変化時の入力クロックへの出力クロックの応答を速くすることができる。   According to this method, when mapping a digital signal, a moving average value is sequentially obtained by sequentially using a plurality of clock deviation detection values. The detected value is compared with the total value of one or more previous clock deviation detected values, and a weighting operation is performed using the latest clock deviation detected value according to the result, and the calculated value is used as the latest clock deviation value. After replacing with the detected value, the comparison and calculation were repeated in the same manner, and the latest clock deviation detected value obtained at the end was divided by the number of detected clock deviation detected values to obtain the moving average value. For this reason, a moving average value closer to the finally obtained average value (the average value of the latest clock deviation detection value obtained at the end) can be obtained in a time process earlier than the conventional method. The moving average value obtained in the middle of this process can be processed to bring the clock deviation closer to zero in a shorter time than in the past. In other words, the response of the output clock to the input clock when the clock deviation changes for a certain period can be accelerated.

更に、具体的には、フレーム形式のディジタル信号から抽出したクロック成分をもとに入力クロックを生成し、この入力クロックで前記フレーム形式のディジタル信号をデマッピングするためにバッファメモリに書き込んだ後、この書き込まれたフレーム形式のディジタル信号を外部から入力された出力クロックで読み出す際に、前記入力クロックと前記出力クロックとの偏差を一定期間に複数回検出し、この検出により順次得られるクロック偏差検出値の移動平均演算処理を行うクロック偏差変化時の移動平均演算処理方法において、前記移動平均演算処理は、前記検出により順次得られるクロック偏差検出値のうち最新に検出されたクロック偏差検出値である最新クロック偏差検出値と、前記最新の検出の前に検出された1乃至は複数のクロック偏差検出値の総和である総和値とを比較し、前記最新クロック偏差検出値が前記総和値より小さい場合、等しい場合、及び大きい場合の各々の場合に応じて、前記最新クロック偏差検出値を用いた重み付けの演算を行い、この演算で得られた値を前記最新クロック偏差検出値に置き換えた後、この置き換え後の最新クロック偏差検出値を用いた前記比較並びに当該比較の結果に応じた前記演算を行うことを繰り返し、前記一定期間に複数回検出された全てのクロック偏差検出値を用いた前記演算後に得られる最新クロック偏差検出値を、前記全てのクロック偏差検出値の検出数で除算することを特徴とするクロック偏差変化時の移動平均演算処理方法である。   More specifically, an input clock is generated based on the clock component extracted from the digital signal in the frame format, and the frame format digital signal is written to the buffer memory for demapping with the input clock, When reading out the written digital signal in frame format with the output clock input from the outside, the deviation between the input clock and the output clock is detected multiple times in a certain period, and the clock deviation detection obtained sequentially by this detection In the moving average calculation processing method at the time of clock deviation change for performing a moving average calculation process of values, the moving average calculation process is a clock deviation detection value detected most recently among clock deviation detection values sequentially obtained by the detection. The latest clock deviation detection value and one or more detected before the latest detection The latest clock deviation detection value is compared with the sum total value that is the sum of the lock deviation detection values, and when the latest clock deviation detection value is smaller than, equal to, or larger than the total value, After performing the weighting calculation used and replacing the value obtained by this calculation with the latest clock deviation detection value, the comparison using the newest clock deviation detection value after the replacement and the result according to the result of the comparison Repeat the calculation, and divide the latest clock deviation detection value obtained after the calculation using all the clock deviation detection values detected a plurality of times in the certain period by the number of detections of all the clock deviation detection values. This is a moving average calculation processing method when the clock deviation changes.

この方法によれば、ディジタル信号のデマッピングを行う際に、複数のクロック偏差検出値を順次用いて移動平均値を順次求めてゆく過程で、従来のように順番に行うのではなく、最新クロック偏差検出値と、この前の1乃至は複数のクロック偏差検出値の総和値とを比較し、この結果に応じて最新クロック偏差検出値を用いた重み付けの演算を行い、この演算値を最新クロック偏差検出値に置き換えた後、同様に比較及び演算を繰り返し、最後に得られる最新クロック偏差検出値を、全てのクロック偏差検出値の検出数で除算して移動平均値を求めるようにした。このため、最終的に求められる平均値(上記最後に得られる最新クロック偏差検出値の平均値)に、より近い移動平均値を、従来方法よりも早い時間過程で求めることができる。この途中の過程で求められる移動平均値は、従来よりも短時間でクロック偏差を零に近づける処理を行うことができる。言い換えれば、一定期間のクロック偏差の変化時の入力クロックへの出力クロックの応答を速くすることができる。   According to this method, when digital signal demapping is performed, a moving average value is sequentially obtained by sequentially using a plurality of clock deviation detection values. The deviation detection value is compared with the sum of the previous one or more clock deviation detection values, and a weighting operation is performed using the latest clock deviation detection value according to the result, and the calculated value is used as the latest clock. After the replacement with the deviation detection value, the comparison and calculation were repeated in the same manner, and the latest clock deviation detection value obtained at the end was divided by the number of detections of all the clock deviation detection values to obtain the moving average value. For this reason, a moving average value closer to the finally obtained average value (the average value of the latest clock deviation detection value obtained at the end) can be obtained in a time process earlier than the conventional method. The moving average value obtained in the middle of this process can be processed to bring the clock deviation closer to zero in a shorter time than in the past. In other words, the response of the output clock to the input clock when the clock deviation changes for a certain period can be accelerated.

本発明のクロック偏差変化時の移動平均演算処理方法は、前述した検出により順次得られるクロック偏差検出値のうち最新に検出されたクロック偏差検出値である最新クロック偏差検出値をT(nは1以上の整数)とし、前記最新の検出の前に検出された1乃至は複数の当該複数を2nとし、前記総和値を(S (n-1) +1+…+S )とした場合に、前記最新クロック偏差検出値Tと前記総和値(S (n-1) +1+…+S )とを比較し、前記最新クロック偏差検出値Tが前記総和値(S (n-1) +1+…+S )より小さい場合は、Tn+1=T×2+1の演算を行い、前記最新クロック偏差検出値Tが前記総和値(S (n-1) +1+…+S )と等しい場合は、Tn+1=T×2の演算を行い、前記最新クロック偏差検出値Tが前記総和値(S (n-1) +1+…+S )より大きい場合は、Tn+1=T×2−1の演算を行い、この演算で得られた値Tn+1を前記最新クロック偏差検出値Tに置き換えた後、この置き換え後の最新クロック偏差検出値Tを用いた前記比較並びに当該比較の結果に応じた前記演算を行うことを繰り返し、前記一定期間に複数回検出された全てのクロック偏差検出値を用いた前記演算後に得られる最新クロック偏差検出値Tn+1を、前記全てのクロック偏差検出値の検出数2で除算することが望ましい。 The moving average calculation processing method at the time of clock deviation change according to the present invention uses the latest clock deviation detection value, which is the latest clock deviation detection value among the clock deviation detection values sequentially obtained by the detection described above, as T n (n is 1 or an integer), 1 or more of the plurality detected before the latest detection is 2n, and the total value is (S 2 (n−1) +1 +... + S 2 n ) The latest clock deviation detection value T n is compared with the total value (S 2 (n−1) +1 +... + S 2 n ), and the latest clock deviation detection value T n is compared with the total value (S 2 ( n-1) +1 +... + S 2 n ) is smaller than T n + 1 = T n × 2 + 1, the latest clock deviation detection value T n is the sum (S 2 (n-1) +1 + ... + S 2 n ), T n + 1 = T When n × 2 is calculated and the latest clock deviation detection value T n is larger than the total value (S 2 (n−1) +1 +... + S 2 n ), T n + 1 = T n × 2-1 performs calculation, according to the value T n + 1 obtained by this calculation to the after replacing the latest clock deviation detection value T n, the comparison and the comparison with the most recent clock deviation detection value T n after the replacement results The above-mentioned calculation is repeated, and the latest clock deviation detection value T n + 1 obtained after the calculation using all the clock deviation detection values detected a plurality of times in the predetermined period is detected as the detection of all the clock deviation detection values. It is desirable to divide by the number 2n .

この方法によれば、複数のクロック偏差検出値を順次用いて移動平均値を順次求めてゆく過程で、従来のように順番に行うのではなく、最新クロック偏差検出値Tと、この前の1乃至は複数のクロック偏差検出値の総和値(S (n-1) +1+…+S )とを比較し、この結果に応じて最新クロック偏差検出値を用いた重み付けの演算を行い、この演算値を最新クロック偏差検出値に置き換えた後、同様に比較及び演算を繰り返し、最後に得られる最新クロック偏差検出値Tn+1を、全てのクロック偏差検出値の検出数2で除算して移動平均値を求めるようにした。このため、最終的に求められる平均値(例えば8/8)に、より近い移動平均値(5/8)は、従来方法では5回目に求められるが、本発明方法では、2回目といった、より早い時間過程で求めることができる。この途中の過程で求められる移動平均値(5/8)は、従来よりも短時間でクロック偏差を零に近づける処理を行うことができる。言い換えれば、一定期間のクロック偏差の変化時の入力クロックへの出力クロックの応答を速くすることができる。 According to this method, in the process of sequentially obtaining a moving average value using a plurality of clock deviation detection values sequentially, the latest clock deviation detection value Tn and the previous clock deviation detection value Tn are not sequentially performed as in the prior art. One or more sum values (S 2 (n−1) +1 +... + S 2 n ) of a plurality of clock deviation detection values are compared, and a weighting operation using the latest clock deviation detection value is performed according to this result. After this calculated value is replaced with the latest clock deviation detection value, the comparison and calculation are repeated in the same manner, and the latest clock deviation detection value T n + 1 obtained at the end is divided by the detected number 2 n of all the clock deviation detection values. The moving average value was calculated. For this reason, the moving average value (5/8) closer to the finally obtained average value (for example, 8/8) is obtained for the fifth time in the conventional method, but more than the second time in the method of the present invention. It can be obtained in the early time process. The moving average value (5/8) obtained in the middle of this process can be processed to bring the clock deviation closer to zero in a shorter time than in the past. In other words, the response of the output clock to the input clock when the clock deviation changes for a certain period can be accelerated.

また、具体的には、請求項1又は3に記載のクロック偏差変化時の移動平均演算処理方法で得られる移動平均値に応じてスタッフビットを挿入するスタッフ制御方法である。   More specifically, the stuff control method inserts stuff bits according to the moving average value obtained by the moving average calculation processing method at the time of clock deviation change according to claim 1 or 3.

この方法によれば、従来方法よりも早い演算過程で求められる移動平均値を用いてスタッフビットが挿入されるので、スタッフ処理の応答速度を早くすることができる。   According to this method, stuff bits are inserted using a moving average value obtained in a faster calculation process than the conventional method, so that the response speed of stuff processing can be increased.

更に、具体的には、請求項2又は3に記載のクロック偏差変化時の移動平均演算処理方法における前記デマッピングを行う際に、前記ディジタル信号からスタッフビットを除去するデスタッフ処理が行われた場合、このデスタッフ処理が起因する前記入力クロックの変動に応じた前記出力クロックとのクロック偏差検出値を用いて前記移動平均演算処理方法により移動平均演算処理を行うデスタッフ制御方法である。   Furthermore, specifically, when performing the demapping in the moving average calculation processing method at the time of clock deviation change according to claim 2 or 3, destuffing processing for removing stuff bits from the digital signal was performed. In this case, the destuffing control method performs moving average calculation processing by the moving average calculation processing method using a clock deviation detection value with respect to the output clock corresponding to the fluctuation of the input clock caused by the destuffing processing.

この方法によれば、デスタッフ処理が実行された際の入力クロック変動による出力クロックとの偏差が検出された場合に、従来方法よりも早い演算過程で移動平均値が求められる。   According to this method, when a deviation from the output clock due to fluctuations in the input clock when the destuffing process is executed is detected, the moving average value is obtained in a calculation process faster than the conventional method.

本発明によれば、順次変化するクロック偏差の検出精度を高く維持しながら、クロック偏差変化時の入力クロックへの出力クロックの応答速度を速くすることができるクロック偏差変化時の移動平均演算処理方法を提供することができる。   According to the present invention, the moving average calculation processing method at the time of clock deviation change that can increase the response speed of the output clock to the input clock at the time of clock deviation change while maintaining high detection accuracy of the clock deviation that changes sequentially. Can be provided.

添付の図面を参照して本発明の実施形態を説明する。以下に説明する実施形態は本発明の実施例であり、本発明は、以下の実施形態に制限されるものではない。なお、本明細書及び図面において符号が同じ構成要素は、相互に同一のものを示すものとする。   Embodiments of the present invention will be described with reference to the accompanying drawings. The embodiments described below are examples of the present invention, and the present invention is not limited to the following embodiments. In the present specification and drawings, the same reference numerals denote the same components.

(実施形態)
図2は、本発明の実施形態によるクロック偏差変化時の移動平均演算処理方法を適用した信号マッピング処理装置の構成を示すブロック図である。
(Embodiment)
FIG. 2 is a block diagram showing a configuration of a signal mapping processing apparatus to which the moving average calculation processing method at the time of clock deviation change according to the embodiment of the present invention is applied.

この図2に示す信号マッピング処理装置10は、バッファメモリ11と、クロック抽出部12と、移動平均演算処理機能13aを有するクロック偏差検出部13とを備えて構成されている。図2では入力ディジタル信号からクロック抽出部12によってクロックを抽出しているが、外部からのクロック入力でもよい。   The signal mapping processing apparatus 10 shown in FIG. 2 includes a buffer memory 11, a clock extraction unit 12, and a clock deviation detection unit 13 having a moving average calculation processing function 13a. Although the clock is extracted from the input digital signal by the clock extraction unit 12 in FIG. 2, it may be an external clock input.

バッファメモリ11は、入力ディジタル信号をフレーム形式のディジタル信号に変換するために、入力クロックCK1で書き込んで記憶し、この記憶されたディジタル信号を出力クロックCK3で読み出して出力ディジタル信号とするための記憶装置である。   The buffer memory 11 writes and stores the input digital signal with the input clock CK1 in order to convert the input digital signal into a frame format digital signal, and stores the stored digital signal with the output clock CK3 as an output digital signal. Device.

クロック抽出部12は、周波数が変化する入力ディジタル信号からクロック成分を抽出し、この抽出されたクロック成分をもとに入力クロックCK1を生成し、この入力クロックCK1をバッファメモリ11及びクロック偏差検出部13へ出力するものである。   The clock extraction unit 12 extracts a clock component from an input digital signal whose frequency changes, generates an input clock CK1 based on the extracted clock component, and uses the input clock CK1 as a buffer memory 11 and a clock deviation detection unit. 13 is output.

クロック偏差検出部13は、図3に示す2段のシフトレジスタ17を備えており、クロック偏差を一定期間に複数回検出し、この検出されたクロック偏差検出値を順次保持しながら移動平均演算処理機能13aへ出力するようになっている。但し、シフトレジスタ17に保持されるクロック偏差検出値のうちS は、一定期間内の最も古い検出値であり、シフトレジスタ17の2段目に保持されている。図3ではSまで具体例として数値で表しているが、シフトレジスタ17の段数及び保持値を表す場合、nは0又は1以上の整数であるとする。 The clock deviation detector 13 includes a 2n- stage shift register 17 shown in FIG. 3, detects a clock deviation a plurality of times in a fixed period, and sequentially holds the detected clock deviation detection values while moving average calculation. The data is output to the processing function 13a. However, S 2 n of the clock deviation detection values held in the shift register 17 is the oldest detection value within a certain period, and is held in the 2 nth stage of the shift register 17. In FIG. 3, numerical values are shown as specific examples up to S 6 .

移動平均演算処理機能13aは、次に説明するように移動平均演算処理を行う。まず、図3のステップF1に示すように、シフトレジスタ17から順次得られるクロック偏差検出値のうち最新に検出されたクロック偏差検出値Sを最新クロック偏差検出値Tとする。次に、最新クロック偏差検出値Tと、最新の検出の前に検出された1乃至は複数2n(nは1以上の整数)のクロック偏差検出値の総和である総和値(S (n-1) +1+…+S )とを比較する。 The moving average calculation processing function 13a performs moving average calculation processing as described below. First, as shown in step F1 in FIG. 3, the clock deviation detection values S 1 detected in the latest of a clock deviation detection value obtained sequentially from the shift register 17 with the latest clock deviation detection value T 1. Next, the sum total value (S 2 (n 2 )) is the sum of the latest clock deviation detection value T 1 and one or more 2n (n is an integer of 1 or more) clock deviation detection values detected before the latest detection. -1) +1 +... + S 2 n ).

ここでは、ステップF2に示すように、最新クロック偏差検出値Tと、この最新の検出の前に検出された1つのクロック偏差検出値Sの総和値(S)とを比較する。この比較結果、最新クロック偏差検出値Tが総和値Sより小さい場合、即ちT<Sの場合は、T=T×2+1の演算を行う。また、最新クロック偏差検出値Tが総和値Sと等しい場合、即ちT=Sの場合は、T=T×2の演算を行う。更に、最新クロック偏差検出値Tが総和値Sより大きい場合、即ちT>Sの場合は、T=T×2−1の演算を行う。 Here, as shown in step F2, the latest clock deviation detection value T 1, and compares the detected one clock deviation detection value S 2 of the sum value prior to the latest detection (S 2). As a result of the comparison, when the latest clock deviation detection value T 1 is smaller than the total value S 2 , that is, when T 1 <S 2 , the calculation of T 2 = T 1 × 2 + 1 is performed. When the latest clock deviation detection value T 1 is equal to the total value S 2, that is, when T 1 = S 2 , the calculation of T 2 = T 1 × 2 is performed. Further, when the latest clock deviation detection value T 1 is larger than the total value S 2 , that is, when T 1 > S 2 , the calculation of T 2 = T 1 × 2-1 is performed.

次に、上記のステップF2の何れかの演算で得られた値Tを最新クロック偏差検出値に置き換える。この後、ステップF3に示すように、最新クロック偏差検出値Tと、この最新の検出の前に検出された2つのクロック偏差検出値S,Sの総和値(S+S)とを比較し、T<(S+S)の場合はT=T×2+1の演算、また、T=(S+S)の場合はT=T×2の演算、更に、T>(S+S)の場合は、T=T×2−1の演算を行う。 Then, replace the value T 2 obtained in any of the operations of the above steps F2 to date clock deviation detection value. Thereafter, as shown in step F3, the latest clock deviation detection value T 2, the two detected total value of the clock deviation detection value S 3, S 4 before this latest detection and (S 3 + S 4) When T 2 <(S 3 + S 4 ), T 3 = T 2 × 2 + 1, and when T 2 = (S 3 + S 4 ), T 3 = T 2 × 2 Further, when T 2 > (S 3 + S 4 ), the calculation of T 3 = T 2 × 2-1 is performed.

同様に、ステップF4に示すように、最新クロック偏差検出値Tと、この最新の検出の前に検出された複数のクロック偏差検出値の総和値(S (n-1) +1+…+S )とを比較し、T<(S (n-1) +1+…+S )の場合はTn+1=T×2+1の演算、また、T=(S (n-1) +1+…+S )の場合はTn+1=T×2の演算、更に、T>(S (n-1) +1+…+S )の場合は、Tn+1=T×2−1の演算を行う。 Similarly, as shown in step F4, the latest clock deviation detection value Tn and the sum of the plurality of clock deviation detection values detected before this latest detection (S 2 (n-1) +1 +... + S 2 n ), and if T n <(S 2 (n−1) +1 +... + S 2 n ), the calculation of T n + 1 = T n × 2 + 1, and T n = (S 2 (n − 1) In the case of +1 +... + S 2 n ), T n + 1 = T n × 2, and in the case of T n > (S 2 (n−1) +1 +... + S 2 n ), T n + 1 = T n × 2-1 calculation is performed.

このように比較、演算を繰り返して、ステップF5に示すように、一定期間に複数回検出された全てのクロック偏差検出値を用いた演算後に得られる最新クロック偏差検出値Tn+1を、全てのクロック偏差検出値の検出数2で除算して、クロック偏差検出値の平均値を求めるようになっている。 Thus, the comparison and calculation are repeated, and as shown in step F5, the latest clock deviation detection value T n + 1 obtained after the calculation using all the clock deviation detection values detected a plurality of times in a certain period is set to all the clocks. The average value of the detected clock deviation values is obtained by dividing the detected number of deviation detection values by 2n .

次に、このような構成の信号マッピング処理装置10の動作を説明する。但し、クロック偏差検出部13は、図4に示すように、8段のシフトレジスタ17Aを備えており、クロック偏差を一定期間に複数回検出し、この検出されたクロック偏差検出値S…Sを順次保持しながら移動平均演算処理機能13aへ出力するようになっているとする。 Next, the operation of the signal mapping processing apparatus 10 having such a configuration will be described. However, as shown in FIG. 4, the clock deviation detection unit 13 includes an eight-stage shift register 17A, detects the clock deviation a plurality of times in a certain period, and detects the detected clock deviation value S 1 ... S. 8 sequentially hold and is adapted to output to the moving average calculation processing function 13a while.

周波数が変化する入力ディジタル信号が、クロック抽出部12から出力される入力クロックCK1によりバッファメモリ11に書き込まれ、この書き込まれたディジタル信号が、外部から入力された出力クロックCK3で読み出されてフレーム形式の出力ディジタル信号となる。   An input digital signal whose frequency is changed is written in the buffer memory 11 by the input clock CK1 output from the clock extraction unit 12, and the written digital signal is read out by the output clock CK3 input from the outside to be framed. Output digital signal in the format.

このマッピング処理の際、入力クロックCK1の周波数と出力クロックCK3の周波数とのクロック偏差を検出して、前記クロック偏差変化時の移動平均演算処理を行うことにより、マッピング量調整の応答速度を従来よりも改善することができる。   In this mapping process, the clock deviation between the frequency of the input clock CK1 and the frequency of the output clock CK3 is detected, and the moving average calculation process at the time of the clock deviation change is performed, so that the response speed of the mapping amount adjustment is higher than the conventional one. Can also be improved.

クロック偏差の変化は、クロック偏差検出部13で一定期間に順次8回検出され、これら8つのクロック偏差検出値S…Sがシフトレジスタ17Aに順次保持されながら移動平均演算処理機能13aへ出力される。ここで、8つのクロック偏差検出値S…Sは、図5に示すように、全ての値が「0」から「1」に変化するものとする。 Changes in the clock deviation are sequentially detected eight times by the clock deviation detector 13 in a certain period, and these eight clock deviation detection values S 1 ... S 8 are sequentially held in the shift register 17A and output to the moving average arithmetic processing function 13a. Is done. Here, it is assumed that all of the eight clock deviation detection values S 1 ... S 8 change from “0” to “1” as shown in FIG.

まず、図5の(a)行から(b)行に示すように、シフトレジスタ17Aの保持値のクロック偏差検出値Sが「0」から「1」に変化したものとする。
移動平均演算処理機能13aによる移動平均演算処理では、まず、図4のステップF11において、シフトレジスタ17Aから順次得られるクロック偏差検出値S…Sのうち最新に検出されたクロック偏差検出値S=「1」が最新クロック偏差検出値T=「1」とされる。
First, as shown in (b) lines from (a) line in FIG. 5, the clock deviation detection values S 1 holding value of the shift register 17A is assumed to have changed from "0" to "1".
In the moving average calculation processing by the moving average calculation processing function 13a, first, in step F11 of FIG. 4, the clock deviation detection value S detected most recently among the clock deviation detection values S 1 ... S 8 sequentially obtained from the shift register 17A. 1 = “1” is the latest clock deviation detection value T 1 = “1”.

次に、ステップF12において、最新クロック偏差検出値T=「1」と、最新の検出の前に検出された1つのクロック偏差検出値Sの総和値(S=「0」)とが比較される。この比較結果は、T>SなのでT=T×2−1の演算が行われ、図5に示すようにT=「1」が得られる。 Next, in step F12, the latest clock deviation detection value T 1 = “1” and the total value (S 2 = “0”) of one clock deviation detection value S 2 detected before the latest detection are obtained. To be compared. Since this comparison result is T 1 > S 2, T 2 = T 1 × 2-1 is calculated, and T 2 = “1” is obtained as shown in FIG.

次に、ステップF13において、上記ステップF12の演算で得られた値T=「1」が最新クロック偏差検出値に置き換えられる。この後、最新クロック偏差検出値T=「1」と、この最新の検出の前に検出された2つのクロック偏差検出値S=「0」及びS=「0」の総和値(S+S=「0」)とが比較される。この比較結果は、T>(S+S)なのでT=T×2−1の演算が行われ、T=「1」が得られる。 Next, in step F13, the value T 2 = “1” obtained by the calculation in step F12 is replaced with the latest clock deviation detection value. Thereafter, the latest clock deviation detection value T 2 = “1” and the sum of the two clock deviation detection values S 3 = “0” and S 4 = “0” detected before this latest detection (S 3 + S 4 = “0”). Since this comparison result is T 2 > (S 3 + S 4 ), the calculation of T 3 = T 2 × 2-1 is performed, and T 3 = “1” is obtained.

次に、ステップF14において、上記ステップF13の演算で得られた値T=「1」が最新クロック偏差検出値に置き換えられ、この後、最新クロック偏差検出値T=「1」と、この最新の検出の前に検出された4つのクロック偏差検出値S=「0」、S=「0」、S=「0」、S=「0」の総和値(S+S+S+S=「0」)とが比較される。この比較結果は、T>(S+S+S+S)なのでT=T×2−1の演算が行われ、T=「1」が得られる。 Next, in Step F14, the value T 3 = “1” obtained by the calculation in Step F13 is replaced with the latest clock deviation detection value, and thereafter, the latest clock deviation detection value T 3 = “1”, Four clock deviation detection values S 5 = “0”, S 6 = “0”, S 7 = “0”, S 8 = “0” detected before the latest detection (S 5 + S 6 + S 7 + S 8 = “0”). Since this comparison result is T 3 > (S 5 + S 6 + S 7 + S 8 ), an operation of T 4 = T 3 × 2-1 is performed, and T 4 = “1” is obtained.

これらステップF11〜F14にて一定期間に複数回検出された全てのクロック偏差検出値S…Sを用いた演算が行われたので、ステップF15において、その演算後に得られた最新クロック偏差検出値T=「1」が、全てのクロック偏差検出値S…Sの検出数2=「8」で除算され、これによって、全てのクロック偏差検出値S…Sの1回目の移動平均値=「1/8」が求められる。 Since the calculation using all the clock deviation detection values S 1 ... S 8 detected a plurality of times in a certain period in steps F11 to F14 is performed, in step F15, the latest clock deviation detection obtained after the calculation is performed. the value T 4 = "1", is divided by all the detection number 2 n = "8" clock deviation detection value S 1 ... S 8, whereby, first of all the clock deviation detection value S 1 ... S 8 Moving average value = “1/8”.

次に、(b)行から(c)行に示すように、シフトレジスタ17Aの保持値のクロック偏差検出値Sが「0」から「1」に変化したものとする。
この場合、15のステップF11において、シフトレジスタ17Aから順次得られるクロック偏差検出値S…Sのうち最新に検出されたクロック偏差検出値S=「1」が最新クロック偏差検出値T=「1」とされる。
Next, assume that a change to "1" (b) as shown in (c) from one line, the clock deviation detection value S 2 of the value held in the shift register 17A from "0".
In this case, in step F11, the latest detected clock deviation value S 1 = “1” among the detected clock deviation values S 1 ... S 8 sequentially obtained from the shift register 17A is the latest detected clock deviation value T 1. = “1”.

次に、ステップF12において、最新クロック偏差検出値T=「1」と、最新の検出の前に検出された1つのクロック偏差検出値Sの総和値(S=「1」)とが比較される。この比較結果は、T=SなのでT=T×2の演算が行われ、T=「2」が得られる。 Next, in step F12, the latest clock deviation detection value T 1 = “1” and the total value (S 2 = “1”) of one clock deviation detection value S 2 detected before the latest detection are obtained. To be compared. The result of this comparison, computation of T 1 = S 2 since T 2 = T 1 × 2 is performed, T 2 = "2" is obtained.

次に、ステップF13において、上記ステップF12の演算で得られた値T=「2」が最新クロック偏差検出値に置き換えられた後、最新クロック偏差検出値T=「2」と、この最新の検出の前に検出された2つのクロック偏差検出値S=「0」及びS=「0」の総和値(S+S=「0」)とが比較される。この比較結果は、T>(S+S)なのでT=T×2−1の演算が行われ、T=「3」が得られる。 Next, in step F13, the value T 2 = “2” obtained in the calculation of step F12 is replaced with the latest clock deviation detection value, and then the latest clock deviation detection value T 2 = “2” The two clock deviation detection values S 3 = “0” and the sum of S 4 = “0” (S 3 + S 4 = “0”) detected before the detection of the above are compared. Since the comparison result is T 2 > (S 3 + S 4 ), the calculation of T 3 = T 2 × 2-1 is performed, and T 3 = “3” is obtained.

次に、ステップF14において、上記ステップF13の演算で得られた値T=「3」が最新クロック偏差検出値に置き換えられた後、最新クロック偏差検出値T=「3」と、この最新の検出の前に検出された4つのクロック偏差検出値S=「0」、S=「0」、S=「0」、S=「0」の総和値(S+S+S+S=「0」)とが比較される。この比較結果は、T>(S+S+S+S)なのでT=T×2−1の演算が行われ、T=「5」が得られる。 Next, in step F14, after the value T 3 = “3” obtained by the calculation in step F13 is replaced with the latest clock deviation detection value, the latest clock deviation detection value T 3 = “3” 4 clock deviation detection values S 5 = “0”, S 6 = “0”, S 7 = “0”, S 8 = “0” detected before the detection of (S 5 + S 6 + S 7 + S 8 = “0”). Since this comparison result is T 3 > (S 5 + S 6 + S 7 + S 8 ), T 4 = T 3 × 2-1 is calculated, and T 4 = “5” is obtained.

これらステップF11〜F14にて一定期間に複数回検出された全てのクロック偏差検出値S…Sを用いた演算が行われたので、ステップF15において、その演算後に得られた最新クロック偏差検出値T=「5」が、全てのクロック偏差検出値S…Sの検出数2=「8」で除算され、これによって、全てのクロック偏差検出値S…Sの2回目の移動平均値=「5/8」が求められる。 Since the calculation using all the clock deviation detection values S 1 ... S 8 detected a plurality of times in a certain period in steps F11 to F14 is performed, in step F15, the latest clock deviation detection obtained after the calculation is performed. the value T 4 = "5" is divided by all the detection number 2 n = "8" clock deviation detection value S 1 ... S 8, thereby, the second all the clock deviation detection value S 1 ... S 8 The moving average value of “5/8” is obtained.

次に、(c)行から(d)行に示すクロック偏差検出値Sが「0」から「1」に変化した場合においても、全てのクロック偏差検出値S…Sの3回目の移動平均値=「5/8」が求められる。 Next, the clock deviation detection value S 3 shown in (d) of the line (c) to the line from "0" in the case of changes to "1" also, the third of every clock deviation detection value S 1 ... S 8 The moving average value = “5/8” is obtained.

次に、(d)行から(e)行に示すようにクロック偏差検出値Sが「0」から「1」に変化した場合、ステップF11において、上記同様に最新に検出されたクロック偏差検出値S=「1」が最新クロック偏差検出値T=「1」とされる。 Next, when the clock deviation detection value S 4 changes from “0” to “1” as shown in the (d) line to the (e) line, the latest detected clock deviation is detected in the same manner as described above in Step F11. The value S 1 = “1” is set to the latest clock deviation detection value T 1 = “1”.

ステップF12において、最新クロック偏差検出値T=「1」と、最新の検出の前に検出された1つのクロック偏差検出値Sの総和値(S=「1」)とが比較され、T=Sの結果に応じたT=T×2の演算が行われ、T=「2」が得られる。 In step F12, the latest clock deviation detection value T 1 = “1” is compared with the total value (S 2 = “1”) of one clock deviation detection value S 2 detected before the latest detection, An operation of T 2 = T 1 × 2 corresponding to the result of T 1 = S 2 is performed, and T 2 = “2” is obtained.

ステップF13において、上記ステップF12の演算で得られた値T=「2」が最新クロック偏差検出値に置き換えられた後、最新クロック偏差検出値T=「2」と、この最新の検出の前に検出された2つのクロック偏差検出値S=「1」及びS=「1」の総和値(S+S=「2」)とが比較される。この比較結果は、T=(S+S)なのでT=T×2の演算が行われ、T=「4」が得られる。 In step F13, after the value T 2 = “2” obtained in the calculation of step F12 is replaced with the latest clock deviation detection value, the latest clock deviation detection value T 2 = “2” is obtained. The two previously detected clock deviation detection values S 3 = “1” and the total value of S 4 = “1” (S 3 + S 4 = “2”) are compared. Since this comparison result is T 2 = (S 3 + S 4 ), an operation of T 3 = T 2 × 2 is performed, and T 3 = “4” is obtained.

ステップF14において、上記ステップF13の演算で得られた値T=「4」が最新クロック偏差検出値に置き換えられた後、最新クロック偏差検出値T=「4」と、この最新の検出の前に検出された4つのクロック偏差検出値S=「0」、S=「0」、S=「0」、S=「0」の総和値(S+S+S+S=「0」)とが比較される。この比較結果は、T>(S+S+S+S)なのでT=T×2−1の演算が行われ、T=「7」が得られる。 In step F14, after the value T 3 = “4” obtained by the calculation in step F13 is replaced with the latest clock deviation detection value, the latest clock deviation detection value T 3 = “4” is obtained. The previously detected four clock deviation detection values S 5 = “0”, S 6 = “0”, S 7 = “0”, and S 8 = “0” (S 5 + S 6 + S 7 + S 8 = “0”). Since this comparison result is T 3 > (S 5 + S 6 + S 7 + S 8 ), T 4 = T 3 × 2-1 is calculated, and T 4 = “7” is obtained.

ステップF15において、最後に得られた最新クロック偏差検出値T=「7」が、全てのクロック偏差検出値S…Sの検出数2=「8」で除算され、これによって、全てのクロック偏差検出値S…Sの4回目の移動平均値=「7/8」が求められる。 In step F15, the latest clock deviation detection value T 4 = “7” obtained at the end is divided by the number of detections 2 n = “8” of all the clock deviation detection values S 1 ... S 8. The fourth moving average value of clock deviation detection values S 1 ... S 8 = “7/8” is obtained.

次に、(e)行から(h)行に示すようにクロック偏差検出値SとSとSが「0」から「1」に変化した場合においても、全てのクロック偏差検出値S…Sの5回目〜7回目の移動平均値=「7/8」が求められる。 Next, even when the clock deviation detection values S 5 , S 6, and S 7 change from “0” to “1” as shown in lines (e) to (h), all the clock deviation detection values S are detected. 1 ... The moving average value of S 8 for the fifth to seventh times = “7/8” is obtained.

最後に、(h)行から(i)行に示すようにクロック偏差検出値Sが「0」から「1」に変化した場合、ステップF11〜F13において、上記同様に最新クロック偏差検出値のT=「1」、T=「2」、T=「4」が得られる。 Finally, if the clock deviation detection value S 8 as shown (h) from the line in the (i) line is changed from "0" to "1", in step F11~F13, in the same manner as described above for the latest clock deviation detection value T 1 = “1”, T 2 = “2” and T 3 = “4” are obtained.

ステップF14において、上記で得られた値T=「4」が最新クロック偏差検出値に置き換えられた後、最新クロック偏差検出値T=「4」と、この最新の検出の前に検出された4つのクロック偏差検出値S=「1」、S=「1」、S=「1」、S=「1」の総和値(S+S+S+S=「4」)とが比較される。この比較結果は、T=(S+S+S+S)なのでT=T×2の演算が行われ、T=「8」が得られる。 In step F14, after the value T 3 = “4” obtained above is replaced with the latest clock deviation detection value, the latest clock deviation detection value T 3 = “4” is detected before this latest detection. Furthermore, the sum of the four clock deviation detection values S 5 = “1”, S 6 = “1”, S 7 = “1”, S 8 = “1” (S 5 + S 6 + S 7 + S 8 = “4”) ) Is compared. Since this comparison result is T 3 = (S 5 + S 6 + S 7 + S 8 ), T 4 = T 3 × 2 is calculated, and T 4 = “8” is obtained.

ステップF15において、最後に得られた最新クロック偏差検出値T=「8」が、全てのクロック偏差検出値S…Sの検出数2=「8」で除算され、これによって、全てのクロック偏差検出値S…Sの8回目の移動平均値=「8/8」が求められる。 In step F15, the latest clock deviation detection value T 4 = “8” obtained at the end is divided by the number of detections 2 n = “8” of all clock deviation detection values S 1 ... S 8. The clock deviation detected value S 1 ... S 8 of the eighth moving average value = “8/8” is obtained.

このように、本実施形態のクロック偏差変化時の移動平均演算処理方法を適用した信号マッピング処理装置10によれば、次のような効果が得られる。   Thus, according to the signal mapping processing apparatus 10 to which the moving average calculation processing method at the time of clock deviation change according to the present embodiment is applied, the following effects can be obtained.

例えば、クロック偏差が一定期間に例えば8回検出され、この検出されたクロック偏差検出値S…Sが全て「0」から「1」に変化した場合、従来の移動平均演算処理方法であれば、演算で順次得られる平均値が「0/8」、「1/8」、「2/8」、「3/8」、「4/8」、「5/8」、「6/8」、「7/8」、「8/8」と変化する。 For example, if the clock deviation is detected, for example, eight times in a certain period, and the detected clock deviation detected values S 1 ... S 8 are all changed from “0” to “1”, the conventional moving average calculation processing method may be used. For example, the average value sequentially obtained by the calculation is “0/8”, “1/8”, “2/8”, “3/8”, “4/8”, “5/8”, “6/8” ”,“ 7/8 ”, and“ 8/8 ”.

しかし、本実施形態の移動平均演算処理機能13aによる移動平均演算処理では、演算で順次得られる平均値が「0/8」、「1/8」、「5/8」、「5/8」、「7/8」、「7/8」、「7/8」、「7/8」、「8/8」と変化する。   However, in the moving average calculation processing by the moving average calculation processing function 13a of the present embodiment, the average values sequentially obtained by calculation are “0/8”, “1/8”, “5/8”, “5/8”. , “7/8”, “7/8”, “7/8”, “7/8”, “8/8”.

この結果から判るように、本実施形態の移動平均演算処理方法では、平均値が「1」になるまでの演算時間は従来方法と変わらないが、従来方法において平均値を「0/8」から「2/8」に変化させるまでの2回目の演算時間で、従来では5回目までの演算時間が掛かる「5/8」に変化させることができる。従って、一定期間のクロック偏差の変化時の応答を速くすることができる。   As can be seen from this result, in the moving average calculation processing method of the present embodiment, the calculation time until the average value becomes “1” is not different from the conventional method, but the average value is changed from “0/8” in the conventional method. The second calculation time until the change to “2/8” can be changed to “5/8”, which conventionally takes the calculation time up to the fifth. Therefore, it is possible to speed up the response when the clock deviation changes for a certain period.

本実施形態のクロック偏差変化時の移動平均演算処理方法によれば、順次変化するクロック偏差の検出精度を高く維持しながら、クロック偏差変化時の入力クロックCK1への出力クロックCK3の応答速度を速くすることができる。このため、入力ディジタル信号を入力クロックCK1でバッファメモリ11にフレーム形式で書き込み、この書き込まれたディジタル信号を出力クロックCK3で読み出すマッピング処理の応答速度を改善することができる。   According to the moving average calculation processing method at the time of clock deviation change according to the present embodiment, the response speed of the output clock CK3 to the input clock CK1 at the time of clock deviation change is increased while maintaining the detection accuracy of the sequentially changing clock deviation high. can do. Therefore, it is possible to improve the response speed of the mapping process in which the input digital signal is written in the buffer memory 11 in the frame format with the input clock CK1, and the written digital signal is read with the output clock CK3.

上記ではマッピング処理への適用について説明したが、デマッピング処理に適用することも可能である。即ち、デマッピングでは、フレーム形式のディジタル信号から抽出したクロック成分をもとに入力クロックを生成し、この入力クロックでフレーム形式のディジタル信号をバッファメモリに書き込んだ後、この書き込まれたフレーム形式のディジタル信号を外部から入力された出力クロックで読み出して元のディジタル信号を復元する。この場合にも、上述と同様にクロック偏差変化時の移動平均演算処理方法を適用することができる。   The application to the mapping process has been described above, but it can also be applied to the demapping process. That is, in demapping, an input clock is generated based on a clock component extracted from a frame format digital signal, and the frame format digital signal is written to the buffer memory with this input clock, and then the written frame format The original digital signal is restored by reading the digital signal with the output clock input from the outside. Also in this case, the moving average calculation processing method at the time of clock deviation change can be applied as described above.

(実施例)
次に、上述した実施形態のクロック偏差変化時の移動平均演算処理方法を、波長分割多重(WDM)方式の光伝送システムに適用した場合の実施例を説明する。
図6は本実施形態のクロック偏差変化時の移動平均演算処理方法を適用した送信側のスタッフ同期多重変換装置のブロック構成図、図7は本実施形態のクロック偏差変化時の移動平均演算処理方法を適用した受信側のスタッフ同期多重分離装置のブロック構成図である。
(Example)
Next, an example will be described in which the moving average calculation processing method at the time of clock deviation change of the above-described embodiment is applied to a wavelength division multiplexing (WDM) optical transmission system.
FIG. 6 is a block diagram of a stuff synchronous multiplex conversion device on the transmission side to which the moving average calculation processing method at the time of clock deviation change according to this embodiment, and FIG. 7 shows the moving average calculation processing method at the time of clock deviation change according to this embodiment. 2 is a block configuration diagram of a reception side stuff synchronous demultiplexing device to which is applied. FIG.

但し、光伝送システムは、図8に示す信号形式及びSDH(同期デジタルハイアラーキ)フレームフォーマットの信号を伝送するものとする。即ち、SDHインタフェースを持つルータ21の内部でPoint−to−Point−Protoco1(以降、「Point−to−Point−Protoco1」を「PPP」と略記する)等を用いて、IP(インターネットプロトコル)−NW(ネットワーク)中のパケット22を、SDH−NWのフレームフォーマットのバーチャルコンテナに対応させてマッピングすることによりクライアントペイロードを構成し、これにPOH(パスオーバーヘッド)を付与して符号22aで示すようにSDHフレーム23に格納する。   However, the optical transmission system transmits signals in the signal format and SDH (synchronous digital hierarchy) frame format shown in FIG. That is, IP (Internet Protocol) -NW using Point-to-Point-Protoco1 (hereinafter, “Point-to-Point-Protoco1” is abbreviated as “PPP”) or the like in the router 21 having the SDH interface. A packet 22 in the (network) is mapped in correspondence with a virtual container having a frame format of SDH-NW, so that a client payload is formed, and POH (path overhead) is added to the packet payload so that SDH is indicated by reference numeral 22a. Store in frame 23.

この格納と共に、SDHフレーム23の先頭位置を示すポインタ23PをSOH(セクションオーバーヘッド)に挿入してフレーム位相を示す。このように構成される複数のSDHフレーム23をWDM部24で波長多重する構成となっている。   Along with this storage, a pointer 23P indicating the head position of the SDH frame 23 is inserted into the SOH (section overhead) to indicate the frame phase. A plurality of SDH frames 23 configured as described above are wavelength-multiplexed by the WDM unit 24.

このような光伝送システムにおいては、ディジタル信号を経済的に目的地へ伝送するために、複数の低速ディジタル信号を時分割多重して1つの高速ディジタル信号(高速伝送信号ともいう)を形成し、この高速伝送信号を光ファイバへ伝送する。複数の低速ディジタル信号を時分割多重するためには、各低速ディジタル信号の周波数が正確に一致していることが必要である。各低速ディジタル信号の周波数を同期させる方式には、スタッフ同期方式と網同期方式とがある。   In such an optical transmission system, in order to transmit a digital signal economically to a destination, a plurality of low-speed digital signals are time-division multiplexed to form one high-speed digital signal (also referred to as a high-speed transmission signal), This high-speed transmission signal is transmitted to the optical fiber. In order to time-division multiplex a plurality of low-speed digital signals, it is necessary that the frequencies of the low-speed digital signals are exactly the same. As a method of synchronizing the frequencies of the respective low-speed digital signals, there are a stuff synchronization method and a network synchronization method.

スタッフ同期方式の原理を説明しておく。図9(a)及び(d)に示すように、まず、波形の周波数f,fを有する各低速ディジタル信号を一時記憶し、(b)及び(c)に示すように、全ての低速ディジタル信号の周波数f,fより若干高い周波数fで読み出す。更に、必要に応じて、その周波数fと各低速ディジタル信号の周波数f,fとの差である各周波数差f−f、f−f等に相当し、且つ情報を持たない余分のパルスであるスタッフパルス26を付加するスタッフ処理によって、各低速ディジタル信号を周波数fに同期させる。 The principle of the staff synchronization method will be described. As shown in FIGS. 9A and 9D, first, each low-speed digital signal having waveform frequencies f i and f j is temporarily stored. As shown in FIGS. 9B and 9C, all low-speed digital signals are stored. Reading is performed at a frequency f 0 slightly higher than the frequencies f i and f j of the digital signal. Further, if necessary, it corresponds to each frequency difference f 0 −f i , f 0 −f j, etc., which is the difference between the frequency f 0 and the frequencies f i and f j of each low-speed digital signal, and information the stuffing process for adding a stuff pulse 26 is extra pulses that do not have to synchronize the low speed digital signals to a frequency f 0.

更に、その同期させた複数の低速ディジタル信号を時分割多重し、1つの高速ディジタル信号として伝送する。この際、スタッフパルス26の付加についての情報を別に伝送することにより、受信側で、デスタッフ処理によってスタッフパルス26を除去して元の低速ディジタル信号を復元する。   Further, the synchronized low-speed digital signals are time-division multiplexed and transmitted as one high-speed digital signal. At this time, by separately transmitting information regarding the addition of the stuff pulse 26, the stuff pulse 26 is removed by destuffing processing on the receiving side to restore the original low-speed digital signal.

次に、図6に示すスタッフ同期多重変換装置によるスタッフ同期処理及び移動平均演算処理について説明する。
スタッフ同期多重変換装置30は、クロック抽出部31と、バッファメモリ32と、タイミング発生部33と、スタッフ制御部34と、多重変換部35と、前述した移動平均演算処理機能13aを有するクロック偏差検出部36とを備えて構成されている。
Next, stuff synchronization processing and moving average calculation processing by the stuff synchronization multiple conversion apparatus shown in FIG. 6 will be described.
The stuff synchronous multiple conversion device 30 includes a clock extraction unit 31, a buffer memory 32, a timing generation unit 33, a stuff control unit 34, a multiple conversion unit 35, and a clock deviation detection having the moving average calculation processing function 13 a described above. And a portion 36.

クロック抽出部31において、低速ディジタル信号からクロック成分を抽出し、バッファメモリ32へデータを書き込むための書込クロックWCKを生成する。低速ディジタル信号のデータは、書込クロックWCKに応じてバッファメモリ32に書き込まれる。外部から入力された出力クロックに応じてバッファメモリ32に書き込まれた低速ディジタル信号が順次読出される。但し、書込クロックWCKは、上記の入力クロックCK1に対応し、読出クロックRCKは出力クロックCK3に対応する。   The clock extraction unit 31 extracts a clock component from the low-speed digital signal and generates a write clock WCK for writing data to the buffer memory 32. The low-speed digital signal data is written into the buffer memory 32 in accordance with the write clock WCK. Low-speed digital signals written in the buffer memory 32 are sequentially read according to the output clock input from the outside. However, the write clock WCK corresponds to the input clock CK1 and the read clock RCK corresponds to the output clock CK3.

多重変換部35では、読み出された低速ディジタル信号とスタッフパルスとが合成されて同期化信号が生成され、更に、複数の同期化信号が時分割多重されて高速ディジタル信号が生成される。
また、クロック偏差検出部36においては、書込クロックWCKと読出クロックCK3との位相差が一定期間に複数回検出され、このクロック偏差検出値が移動平均演算処理機能13aへ出力される。移動平均演算処理機能13aでは、前述と同様の移動平均演算処理が行われることによって、書込クロックWCKと読出クロックCK3との移動平均値が求められ、この移動平均値がスタッフ制御部34へ出力される。
In the multiplex converter 35, the read low-speed digital signal and the stuff pulse are combined to generate a synchronization signal, and a plurality of synchronization signals are time-division multiplexed to generate a high-speed digital signal.
Further, in the clock deviation detection unit 36, the phase difference between the write clock WCK and the read clock CK3 is detected a plurality of times in a certain period, and this clock deviation detection value is output to the moving average calculation processing function 13a. The moving average calculation processing function 13a performs the same moving average calculation processing as described above to obtain the moving average value of the write clock WCK and the read clock CK3, and outputs this moving average value to the stuff control unit 34. Is done.

このスタッフ同期方式では、本実施形態のクロック偏差変化時の移動平均演算処理方法によって、従来方法よりも早い演算過程で求められる移動平均値を用いてスタッフ処理が行われるので、スタッフ処理の応答速度を早くすることができる。   In this stuff synchronization method, the stuff processing is performed using the moving average value obtained in the calculation process faster than the conventional method by the moving average calculation processing method at the time of clock deviation change of this embodiment, so the response speed of the stuff processing Can be made faster.

次に、図7示すスタッフ同期多重分離装置によるデスタッフ処理について説明する。
スタッフ同期多重分離装置40は、多重分離部41と、クロック抽出部42と、バッファメモリ43と、デスタッフ制御部44と、移動平均演算処理機能13aを有する位相比較部46、LPF47及び電圧制御発振部48から成るPLL回路45とを備えて構成されている。
Next, destuffing processing by the stuff synchronous demultiplexing device shown in FIG. 7 will be described.
The stuff synchronous demultiplexing device 40 includes a demultiplexing unit 41, a clock extraction unit 42, a buffer memory 43, a destuff control unit 44, a phase comparison unit 46 having a moving average calculation processing function 13a, an LPF 47, and a voltage controlled oscillation. And a PLL circuit 45 composed of a unit 48.

多重分離部41において、高速ディジタル信号である多重化信号が多重分離されて複数の同期化信号とされる。クロック抽出部42において、同期化信号からクロック成分が抽出され、バッファメモリ43への書込クロックWCKが生成される。伝送フレーム中にスタッフパルスが存在する場合は、デスタッフ制御部44によりスタッフパルス挿入位置で書込クロックWCKが1ビット遅れさせられ、これによって、スタッフパルス挿入位置では書込クロックWCKが出力されなくなるので、バッファメモリ43にスタッフパルスは書き込まれない。つまり、スタッフパルスが除去されるデスタッフ処理が行われる。   In the demultiplexing unit 41, the multiplexed signal, which is a high-speed digital signal, is demultiplexed into a plurality of synchronization signals. In the clock extraction unit 42, a clock component is extracted from the synchronization signal, and a write clock WCK to the buffer memory 43 is generated. When a stuff pulse is present in the transmission frame, the write clock WCK is delayed by one bit at the stuff pulse insertion position by the destuff control unit 44, and as a result, the write clock WCK is not output at the stuff pulse insertion position. Therefore, the stuff pulse is not written in the buffer memory 43. That is, the destuffing process in which the stuff pulse is removed is performed.

このデスタッフ処理により書込クロックWCKにはギャップが生じ、読出クロックRCKと位相差が生じるが、PLL回路45で同期処理が行われ、読出クロックRCKは書込クロックWCKに応答する。即ち、デスタッフ処理でキャップが生じた書込クロックWCKが位相比較部46に入力されると、書込クロックWCKと読出クロックRCKとの位相差が一定期間に複数回検出され、このクロック偏差検出値が移動平均演算処理機能13aへ出力される。移動平均演算処理機能13aでは、前述と同様の移動平均演算処理が行われることによって、書込クロックWCKと読出クロックRCKとの移動平均値が短時間で求められ、この移動平均値である位相差に比例する電圧信号がLPF47を介して電圧制御発振部48へ出力される。   This destuffing process causes a gap in the write clock WCK and a phase difference from the read clock RCK. However, a synchronization process is performed in the PLL circuit 45, and the read clock RCK responds to the write clock WCK. That is, when the write clock WCK capped in the destuffing process is input to the phase comparison unit 46, the phase difference between the write clock WCK and the read clock RCK is detected a plurality of times in a certain period, and this clock deviation detection The value is output to the moving average calculation processing function 13a. In the moving average calculation processing function 13a, a moving average calculation process similar to that described above is performed, whereby a moving average value between the write clock WCK and the read clock RCK is obtained in a short time, and the phase difference that is the moving average value is obtained. Is output to the voltage controlled oscillator 48 via the LPF 47.

この処理によって、元の低速ディジタル信号の周波数と等しい読出クロックRCKが再生され、この読出クロックRCKに従ってデータがバッファメモリ43から書き込まれた順に読み出され、低速ディジタル信号が復元される。このように、スタッフ同期方式によりディジタル信号の時分割多重化伝送を行うことができる。   By this processing, the read clock RCK having the same frequency as that of the original low-speed digital signal is reproduced, and data is read in the order in which the data is written from the buffer memory 43 in accordance with the read clock RCK, thereby restoring the low-speed digital signal. In this way, time division multiplexed transmission of digital signals can be performed by the stuff synchronization method.

次に、上述した網同期方式の原理を説明する。網同期方式とは、ネットワークの中における多重変換装置、交換機、端末装置等にネットワーク内の共通クロックを供給することにより、各装置の処理機能を簡略化し、ネットワークの経済性及び柔軟性の向上を図る方式である。ギガビット/秒領域までの全ての伝送速度における同期化を実現する多重化方式として、SDHが標準化されている。   Next, the principle of the network synchronization method described above will be described. The network synchronization method means that the processing functions of each device are simplified by supplying a common clock in the network to multiple conversion devices, exchanges, terminal devices, etc. in the network, improving the economics and flexibility of the network. It is a scheme to plan. SDH has been standardized as a multiplexing method that realizes synchronization at all transmission speeds up to the gigabit / second range.

図10及び図11はSDHのSTM(同期転送モジュール)フレームを示す図である。STMフレームは、ネットワーク運用保守用に定義されたセクションオーバーヘッド51、ユーザー情報を格納するペイロード52及びペイロード52内のユーザー情報54の先頭位置55を指し示すポインタ53から構成される。   10 and 11 are diagrams showing SDH STM (synchronous transfer module) frames. The STM frame is composed of a section overhead 51 defined for network operation and maintenance, a payload 52 for storing user information, and a pointer 53 that points to the start position 55 of the user information 54 in the payload 52.

SDHは網同期を前提としているが、情報の伝送に当たり、複数の電気通信事業者のネットワークを介することが必要で且つ各電気通信事業者のネットワークの共通クロック周波数が独立している場合にも安定した通信品質を提供するために、ポインタによるスタッフ同期機能が採用されている。   SDH is premised on network synchronization, but is stable even when information is transmitted through multiple telecommunications carriers' networks and the common clock frequency of each telecommunications carrier's network is independent In order to provide such communication quality, a staff synchronization function using a pointer is employed.

ポインタによる正スタッフ処理及び負スタッフ処理について、図12及び図13を参照して説明する。図12及び図13は、図11と同様のSDHのSTMフレームを示す図である。   The positive stuff process and the negative stuff process using the pointer will be described with reference to FIGS. 12 and 13 are diagrams showing SDH STM frames similar to those in FIG.

図12に示すように、多重化される低速ディジタル信号の周波数がSTMフレームのペイロードの周波数より若干低い場合は、ポインタ56のポインタバイトの直後にスタッフバイト57を挿入する正スタッフ処理を行う。   As shown in FIG. 12, when the frequency of the low-speed digital signal to be multiplexed is slightly lower than the frequency of the payload of the STM frame, a normal stuff process is performed in which a stuff byte 57 is inserted immediately after the pointer byte of the pointer 56.

逆に図13に示すように、多重化する低速ディジタル信号の周波数がSTMフレームのペイロードの周波数より若干高い場合は、ポインタ58の最後のバイトにユーザー情報59を格納する負スタッフ処理を行う。また、多重化する低速ディジタル信号の周波数がSTMフレームのペイロードの周波数と一致している場合は、スタッフ処理は行わない。上記のように正負スタッフ処理により周波数同期を行って同期ディジタル伝送を実施することにより、非同期ディジタル信号を安定した通信品質で時分割多重化して伝送を行っている。   On the contrary, as shown in FIG. 13, when the frequency of the low-speed digital signal to be multiplexed is slightly higher than the frequency of the payload of the STM frame, negative stuffing processing for storing user information 59 in the last byte of the pointer 58 is performed. If the frequency of the low-speed digital signal to be multiplexed matches the frequency of the payload of the STM frame, the stuff process is not performed. As described above, frequency synchronization is performed by positive / negative stuff processing and synchronous digital transmission is performed, whereby asynchronous digital signals are time-division multiplexed and transmitted with stable communication quality.

本発明のクロック偏差検出方法は、波長分割多重方式等を採用した光伝送システムにおいて、クライアントデータをフレーム形式にマッピングする際に必要な入力クロックと出力クロックの偏差の検出精度を高く維持しながら、クロック偏差変化時の入力クロックへの出力クロックの応答速度を改善すること等に適用することができる。   The clock deviation detection method of the present invention is an optical transmission system that employs a wavelength division multiplexing method or the like, while maintaining high detection accuracy of the deviation between the input clock and the output clock required when mapping client data to the frame format. This can be applied to improving the response speed of the output clock to the input clock when the clock deviation changes.

JC処理量と時間の相関図である。It is a correlation diagram of JC processing amount and time. 本発明の実施形態によるクロック偏差変化時の移動平均演算処理方法を適用した信号マッピング処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the signal mapping processing apparatus to which the moving average arithmetic processing method at the time of the clock deviation change by embodiment of this invention is applied. クロック偏差検出部の2段のシフトレジスタに保持されるクロック偏差検出値を用いた移動平均演算処理を説明するための図である。It is a figure for demonstrating the moving average calculating process using the clock deviation detection value hold | maintained at the 2n stage shift register of a clock deviation detection part. クロック偏差検出部の8段のシフトレジスタに保持されるクロック偏差検出値を用いた移動平均演算処理を説明するための図である。It is a figure for demonstrating the moving average calculating process using the clock deviation detection value hold | maintained at the 8-stage shift register of a clock deviation detection part. クロック偏差検出部の8段のシフトレジスタに保持されるクロック偏差検出値と、このクロック偏差検出値を用いた移動平均演算処理で求められる移動平均値を表す図である。It is a figure showing the clock deviation detection value hold | maintained at the 8-stage shift register of a clock deviation detection part, and the moving average value calculated | required by the moving average calculation process using this clock deviation detection value. 本実施形態のクロック偏差変化時の移動平均演算処理方法を適用した送信側のスタッフ同期多重変換装置の構成を示すブロック図である。It is a block diagram which shows the structure of the stuff synchronous multiplex conversion apparatus of the transmission side to which the moving average arithmetic processing method at the time of the clock deviation change of this embodiment is applied. 本実施形態のクロック偏差変化時の移動平均演算処理方法を適用した送信側のスタッフ同期多重分離装置の構成を示すブロック図である。It is a block diagram which shows the structure of the stuff synchronous demultiplexing apparatus by the side of the transmission to which the moving average arithmetic processing method at the time of the clock deviation change of this embodiment is applied. 光伝送システムにおける信号形式及びSDHフレームフォーマットを示す図である。It is a figure which shows the signal format and SDH frame format in an optical transmission system. スタッフ同期方式の原理を説明するための波形図である。It is a wave form diagram for demonstrating the principle of a staff synchronization system. SDHのSTMフレームを示す第1の図である。It is a 1st figure which shows the STM frame of SDH. SDHのSTMフレームを示す第2の図である。It is a 2nd figure which shows the STM frame of SDH. SDHのSTMフレームを示す第3の図である。It is a 3rd figure which shows the STM frame of SDH. SDHのSTMフレームを示す第4の図である。It is a 4th figure which shows the STM frame of SDH.

符号の説明Explanation of symbols

10:信号マッピング処理装置
11,32,43:バッファメモリ
12:クロック抽出部
13,36:クロック偏差検出部
46:位相比較部
13a:移動平均演算処理機能
15:LPF
16,48:電圧制御発振部
17,17A:シフトレジスタ
21:ルータ
22:パケット
22a:SDHのクライアントペイロード
23:SDHフレームフォーマット
23P,53,56,58:ポインタ
24:WDM部
26:スタッフパルス
30:スタッフ同期多重変換装置
31,42:クロック抽出部
33:タイミング発生部
34:スタッフ制御部
35:多重変換部
40:スタッフ同期多重分離装置
41:多重分離部
44:デスタッフ制御部
47:低域通過フィルタ
51:セクションオーバーヘッド
52:ペイロード
54,59:ユーザー情報
55:ユーザー情報の先頭位置
57:スタッフバイト
CK1:入力クロック
CK2,CK3:出力クロック
WCK:書込クロック
RCK:読出クロック
10: Signal mapping processor 11, 32, 43: Buffer memory 12: Clock extraction unit 13, 36: Clock deviation detection unit 46: Phase comparison unit 13a: Moving average calculation processing function 15: LPF
16, 48: Voltage controlled oscillators 17, 17A: Shift register 21: Router 22: Packet 22a: SDH client payload 23: SDH frame format 23P, 53, 56, 58: Pointer 24: WDM unit 26: Stuff pulse 30: Staff synchronous demultiplexing devices 31, 42: clock extraction unit 33: timing generation unit 34: staff control unit 35: demultiplexing unit 40: stuff synchronous demultiplexing device 41: demultiplexing unit 44: destuff control unit 47: low-pass Filter 51: Section overhead 52: Payload 54, 59: User information 55: User information head position 57: Stuff byte CK1: Input clock CK2, CK3: Output clock WCK: Write clock RCK: Read clock

Claims (5)

周波数が変化するディジタル信号から抽出したクロック成分をもとに入力クロックを生成し、この入力クロックで前記ディジタル信号をフレーム形式にマッピングするためにバッファメモリに書き込み、この書き込まれたディジタル信号を外部から入力された出力クロックで読み出す際に、前記入力クロックと前記出力クロックとの偏差を一定期間に複数回検出し、この検出により順次得られるクロック偏差検出値の移動平均演算処理を行うクロック偏差変化時の移動平均演算処理方法において、
前記移動平均演算処理は、
前記検出により順次得られるクロック偏差検出値のうち最新に検出されたクロック偏差検出値である最新クロック偏差検出値と、前記最新の検出の前に検出された1乃至は複数のクロック偏差検出値の総和である総和値とを比較し、前記最新クロック偏差検出値が前記総和値より小さい場合、等しい場合、及び大きい場合の各々の場合に応じて、前記最新クロック偏差検出値を用いた重み付けの演算を行い、この演算で得られた値を前記最新クロック偏差検出値に置き換えた後、この置き換え後の最新クロック偏差検出値を用いた前記比較並びに当該比較の結果に応じた前記演算を行うことを繰り返し、前記一定期間に複数回検出された全てのクロック偏差検出値を用いた前記演算後に得られる最新クロック偏差検出値を、前記全てのクロック偏差検出値の検出数で除算することを特徴とするクロック偏差変化時の移動平均演算処理方法。
An input clock is generated based on the clock component extracted from the digital signal whose frequency changes, and the digital signal is written to the buffer memory in order to map the digital signal to the frame format with this input clock. When reading with the input output clock, the deviation between the input clock and the output clock is detected multiple times in a certain period, and the moving average calculation processing of the clock deviation detection value obtained sequentially by this detection is performed. In the moving average calculation processing method of
The moving average calculation process is:
Of the clock deviation detection values sequentially obtained by the detection, the latest clock deviation detection value, which is the latest clock deviation detection value, and one or more clock deviation detection values detected before the latest detection. Comparing the sum total value, which is a sum, and calculating the weight using the latest clock deviation detection value according to each of the cases where the latest clock deviation detection value is smaller than, equal to, or greater than the sum total value After replacing the value obtained by this calculation with the latest clock deviation detection value, performing the comparison according to the comparison using the latest clock deviation detection value after the replacement and the result of the comparison. Repeatedly, the latest clock deviation detection value obtained after the calculation using all the clock deviation detection values detected a plurality of times in the certain period is used as all the clock deviations. Moving average calculation processing method when the clock deviation change, characterized by dividing the number of detected error detection value.
フレーム形式のディジタル信号から抽出したクロック成分をもとに入力クロックを生成し、この入力クロックで前記フレーム形式のディジタル信号をデマッピングするためにバッファメモリに書き込んだ後、この書き込まれたフレーム形式のディジタル信号を外部から入力された出力クロックで読み出す際に、前記入力クロックと前記出力クロックとの偏差を一定期間に複数回検出し、この検出により順次得られるクロック偏差検出値の移動平均演算処理を行うクロック偏差変化時の移動平均演算処理方法において、
前記移動平均演算処理は、
前記検出により順次得られるクロック偏差検出値のうち最新に検出されたクロック偏差検出値である最新クロック偏差検出値と、前記最新の検出の前に検出された1乃至は複数のクロック偏差検出値の総和である総和値とを比較し、前記最新クロック偏差検出値が前記総和値より小さい場合、等しい場合、及び大きい場合の各々の場合に応じて、前記最新クロック偏差検出値を用いた重み付けの演算を行い、この演算で得られた値を前記最新クロック偏差検出値に置き換えた後、この置き換え後の最新クロック偏差検出値を用いた前記比較並びに当該比較の結果に応じた前記演算を行うことを繰り返し、前記一定期間に複数回検出された全てのクロック偏差検出値を用いた前記演算後に得られる最新クロック偏差検出値を、前記全てのクロック偏差検出値の検出数で除算することを特徴とするクロック偏差変化時の移動平均演算処理方法。
An input clock is generated based on the clock component extracted from the frame format digital signal, and the frame format digital signal is written to the buffer memory for demapping with the input clock, and then the written frame format When reading out a digital signal with an externally input output clock, the deviation between the input clock and the output clock is detected a plurality of times in a certain period, and the moving average calculation processing of the clock deviation detection values sequentially obtained by this detection is performed. In the moving average calculation processing method at the time of clock deviation change to be performed,
The moving average calculation process is:
Of the clock deviation detection values sequentially obtained by the detection, the latest clock deviation detection value, which is the latest clock deviation detection value, and one or more clock deviation detection values detected before the latest detection. Comparing the sum total value, which is a sum, and calculating the weight using the latest clock deviation detection value according to each of the cases where the latest clock deviation detection value is smaller than, equal to, or greater than the sum total value After replacing the value obtained by this calculation with the latest clock deviation detection value, performing the comparison according to the comparison using the latest clock deviation detection value after the replacement and the result of the comparison. Repeatedly, the latest clock deviation detection value obtained after the calculation using all the clock deviation detection values detected a plurality of times in the certain period is used as all the clock deviations. Moving average calculation processing method when the clock deviation change, characterized by dividing the number of detected error detection value.
前記検出により順次得られるクロック偏差検出値のうち最新に検出されたクロック偏差検出値である最新クロック偏差検出値をT(nは1以上の整数)とし、前記最新の検出の前に検出された1乃至は複数の当該複数を2nとし、前記総和値を(S (n-1) +1+…+S )とした場合に、前記最新クロック偏差検出値Tと前記総和値(S (n-1) +1+…+S )とを比較し、前記最新クロック偏差検出値Tが前記総和値(S (n-1) +1+…+S )より小さい場合は、Tn+1=T×2+1の演算を行い、前記最新クロック偏差検出値Tが前記総和値(S (n-1) +1+…+S )と等しい場合は、Tn+1=T×2の演算を行い、前記最新クロック偏差検出値Tが前記総和値(S (n-1) +1+…+S )より大きい場合は、Tn+1=T×2−1の演算を行い、この演算で得られた値Tn+1を前記最新クロック偏差検出値Tに置き換えた後、この置き換え後の最新クロック偏差検出値Tを用いた前記比較並びに当該比較の結果に応じた前記演算を行うことを繰り返し、前記一定期間に複数回検出された全てのクロック偏差検出値を用いた前記演算後に得られる最新クロック偏差検出値Tn+1を、前記全てのクロック偏差検出値の検出数2で除算することを特徴とする請求項1又は2に記載のクロック偏差変化時の移動平均演算処理方法。 The latest clock deviation detection value which is the latest clock deviation detection value among the clock deviation detection values sequentially obtained by the detection is defined as T n (n is an integer of 1 or more), and is detected before the latest detection. In addition, when one or more of the plurality is set to 2n and the total value is (S 2 (n−1) +1 +... + S 2 n ), the latest clock deviation detection value T n and the total value (S 2 (n-1) +1 +... + S 2 n ), and the latest clock deviation detection value T n is smaller than the total value (S 2 (n-1) +1 +... + S 2 n ), When the calculation of T n + 1 = T n × 2 + 1 is performed and the latest clock deviation detected value T n is equal to the total value (S 2 (n−1) +1 +... + S 2 n ), T n + 1 = T n × for 2 operations, the latest clock deviation detection value T n previous If the sum value (S 2 (n-1) +1 + ... + S 2 n) greater than, T n + 1 = performs a computation of T n × 2-1, the latest clock deviation values T n + 1 obtained by the calculation after replacing the detected value T n, repeatedly to perform the operation in accordance with the result of the comparison as well as the comparison with the most recent clock deviation detection value T n after the replacement, is detected a plurality of times in the predetermined period The latest clock deviation detection value T n + 1 obtained after the calculation using all clock deviation detection values is divided by the detection number 2 n of all the clock deviation detection values. Moving average calculation processing method when clock deviation changes. 請求項1又は3に記載のクロック偏差変化時の移動平均演算処理方法で得られる移動平均値に応じてスタッフビットを挿入するスタッフ制御方法。   The stuff control method which inserts a stuff bit according to the moving average value obtained by the moving average calculation processing method at the time of clock deviation change according to claim 1 or 3. 請求項2又は3に記載のクロック偏差変化時の移動平均演算処理方法における前記デマッピングを行う際に、前記ディジタル信号からスタッフビットを除去するデスタッフ処理が行われた場合、このデスタッフ処理が起因する前記入力クロックの変動に応じた前記出力クロックとのクロック偏差検出値を用いて前記移動平均演算処理方法により移動平均演算処理を行うデスタッフ制御方法。   When performing the demapping in the moving average calculation processing method at the time of clock deviation change according to claim 2 or 3, when the destuffing process is performed to remove stuff bits from the digital signal, the destuffing process is performed. A destuff control method for performing moving average calculation processing by the moving average calculation processing method using a clock deviation detection value with respect to the output clock corresponding to the fluctuation of the input clock caused by the input clock.
JP2008143239A 2008-05-30 2008-05-30 Moving average calculation processing method when clock deviation changes Active JP4685131B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008143239A JP4685131B2 (en) 2008-05-30 2008-05-30 Moving average calculation processing method when clock deviation changes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008143239A JP4685131B2 (en) 2008-05-30 2008-05-30 Moving average calculation processing method when clock deviation changes

Publications (2)

Publication Number Publication Date
JP2009290739A true JP2009290739A (en) 2009-12-10
JP4685131B2 JP4685131B2 (en) 2011-05-18

Family

ID=41459443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008143239A Active JP4685131B2 (en) 2008-05-30 2008-05-30 Moving average calculation processing method when clock deviation changes

Country Status (1)

Country Link
JP (1) JP4685131B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012511269A (en) * 2008-12-16 2012-05-17 中▲興▼通▲訊▼股▲ふぇん▼有限公司 Method and system for estimating / compensating frequency offset in mobile communication
JP2013062687A (en) * 2011-09-13 2013-04-04 Hitachi Ltd Data multiplex transmission system, multiplex transmission signal receiver, multiplex transmission signal reception module, and multiplex transmission signal transmitter

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112802240B (en) * 2020-12-31 2022-04-15 西南交通大学 Safety unlocking method based on brain waves

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6420745A (en) * 1987-06-01 1989-01-24 Northern Telecom Ltd Synchronizing method of asynchronous data signal
JPH0530068A (en) * 1991-07-24 1993-02-05 Nec Corp Start-stop data multiplexing system
JPH05175930A (en) * 1991-12-20 1993-07-13 Nec Corp Destuff circuit
JPH11298462A (en) * 1998-04-08 1999-10-29 Nec Eng Ltd Transmission line clock recovery circuit
JP2000341235A (en) * 1999-05-28 2000-12-08 Nec Corp Clock regeneration method for low-order group signal in pulse stuffing synchronization system and circuit therefor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6420745A (en) * 1987-06-01 1989-01-24 Northern Telecom Ltd Synchronizing method of asynchronous data signal
JPH0530068A (en) * 1991-07-24 1993-02-05 Nec Corp Start-stop data multiplexing system
JPH05175930A (en) * 1991-12-20 1993-07-13 Nec Corp Destuff circuit
JPH11298462A (en) * 1998-04-08 1999-10-29 Nec Eng Ltd Transmission line clock recovery circuit
JP2000341235A (en) * 1999-05-28 2000-12-08 Nec Corp Clock regeneration method for low-order group signal in pulse stuffing synchronization system and circuit therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012511269A (en) * 2008-12-16 2012-05-17 中▲興▼通▲訊▼股▲ふぇん▼有限公司 Method and system for estimating / compensating frequency offset in mobile communication
JP2013062687A (en) * 2011-09-13 2013-04-04 Hitachi Ltd Data multiplex transmission system, multiplex transmission signal receiver, multiplex transmission signal reception module, and multiplex transmission signal transmitter

Also Published As

Publication number Publication date
JP4685131B2 (en) 2011-05-18

Similar Documents

Publication Publication Date Title
US7656791B1 (en) Systems and methods for hitless equipment protection
US7830924B2 (en) Stuffing and destuffing operations when mapping low-order client signals into high-order transmission frames
US5263057A (en) Method of reducing waiting time jitter
US7830909B2 (en) Transparent sub-wavelength network
CN107408997B (en) Optical transmitter, optical receiver and method for transmission and reception in an optical transport network
US20090213873A1 (en) Method and system for synchronous high speed ethernet gfp mapping over an optical transport network
US7457390B2 (en) Timeshared jitter attenuator in multi-channel mapping applications
JPH0779210A (en) Transmission system
US5471511A (en) Digital phase-locked loop arrangement for use in a desynchronizer
JP4733766B2 (en) Jitter control device
US7940806B1 (en) Synchronous payload envelope mapping without pointer adjustments
US5331630A (en) Renewal method and apparatus for AU-4 and TU-3 pointers of synchronous digital hierarchy
JP4685131B2 (en) Moving average calculation processing method when clock deviation changes
US7068679B1 (en) Asynchronous payload mapping using direct phase transfer
US7630397B2 (en) Efficient scalable implementation of VCAT/LCAS for SDH and PDH signals
JP2009212882A (en) Transmitting device and destuffing jitter reducing method
JPWO2015133169A1 (en) Optical transmission transmitter and optical transmission receiver
US7440533B2 (en) Modulated jitter attenuation filter
US7590154B2 (en) Sampled accumulation system and method for jitter attenuation
JP2004080556A (en) Phase adjusting device, phase adjusting method used therefor, and program thereof
US20080025346A1 (en) Method and device for synchronizing and multiplexing asynchronous signals
US8406360B2 (en) Signal generating method for clock recovery and clock recovery circuit
JP2003101501A (en) Transmission apparatus
JP2009290735A (en) Enable generating circuit for clock regeneration, and clock regenerating circuit
US20070009063A1 (en) Method and device for mapping/demapping a tributary signal into/from a synchronous frame

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110119

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: 20110201

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110209

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140218

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4685131

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250