JPH11225136A - Clock recovery system - Google Patents

Clock recovery system

Info

Publication number
JPH11225136A
JPH11225136A JP10025362A JP2536298A JPH11225136A JP H11225136 A JPH11225136 A JP H11225136A JP 10025362 A JP10025362 A JP 10025362A JP 2536298 A JP2536298 A JP 2536298A JP H11225136 A JPH11225136 A JP H11225136A
Authority
JP
Japan
Prior art keywords
clock
bit width
information
error information
synchronization information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10025362A
Other languages
Japanese (ja)
Inventor
Takeshi Yamamoto
武史 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP10025362A priority Critical patent/JPH11225136A/en
Publication of JPH11225136A publication Critical patent/JPH11225136A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a clock recovery system that relieves the load on CPU and prevents mis arithmetic operations due to updating of a program time reference value PCR and a system time clock STC on the way. SOLUTION: The system consists of a clock generating means 3 that generates a recovered reference clock with a period in response to a control signal, a synchronization information acquisition means 124 that obtains recovery reference synchronization information from the recovered reference clock, an arithmetic means 10 consisting of the hardware that sequentially calculates error information denoting an error of the recovered reference clock with respect to a reference clock based on the reference synchronization information and the recovered reference synchronization information set sequentially with data to be recovered in a packet, and a CPU 16 that sequentially acquires error information via a bus with a bit width smaller than a bit width of the reference synchronization information and a bit width of the recovered reference synchronization information and provides an output of a control signal used to change a period of the recovered reference clock so as to decrease an error indicared by the acquired error information.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、クロック再生装置
に関し、特に、デジタル通信の受信側に使用される復号
再生装置において送信側で意図する基準クロックを再生
するために用いられるものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock reproducing apparatus, and more particularly to a clock reproducing apparatus used for reproducing a reference clock intended on a transmitting side in a decoding / reproducing apparatus used on the receiving side of digital communication.

【0002】[0002]

【従来の技術】テレビジョン放送等における映像データ
(画像データ、音声データ)をデジタル技術を用いて効
率よく伝送するための動画画像データを動画圧縮する方
法の一つとして、高品質のデジタルビデオ/オーディオ
信号を高能率で圧縮する符号化方式であるMPEG(Mo
ving Picuture Expert Group) により提唱されたMPE
G2(国際規格ISO/IEC13818-1) がある。
2. Description of the Related Art As one of the methods for compressing moving image data to efficiently transmit video data (image data and audio data) in television broadcasting using digital technology, high-quality digital video / MPEG (Motion), an encoding method for compressing audio signals with high efficiency
MPE proposed by ving Picuture Expert Group)
G2 (international standard ISO / IEC13818-1).

【0003】このMPEG2符号化方式(以下、MPE
G2という)を用いたデジタル通信においては、送信側
で、伝送すべき複数の番組の映像データを、番組毎に映
像データ中の画像データ,及び音声データを別個に符号
化/圧縮して各個別のストリームとするとともに、この
符号化された個別のストリームをさらに時分割多重して
トランスポートストリームと呼ばれる多重ストリームか
らなるパケットとし、このパケットを通信衛星等の伝送
媒体を介して伝送し、受信側で、この伝送されてくるパ
ケットを受信し、トランスポートストリーム復号再生装
置でこの受信したパケットから番組毎に画像データ,及
び音声データを取り出して復号する。
This MPEG2 encoding method (hereinafter referred to as MPE)
In digital communication using G2), the transmitting side separately encodes / compresses video data of a plurality of programs to be transmitted and encodes / compresses image data and audio data in the video data for each program. And the encoded individual streams are further time-division multiplexed into packets composed of a multiplexed stream called a transport stream, and the packets are transmitted via a transmission medium such as a communication satellite. Then, the transmitted packet is received, and the transport stream decoding / reproducing device extracts and decodes image data and audio data for each program from the received packet.

【0004】そして、このトランスポートストリーム復
号再生装置を含む受信側で、パケットから画像データ,
及び音声データを取り出して復号する際には、送信側で
符号化した際の時刻基準に基づいて、それらを復号する
必要がある。このため、受信側の復号システムの基準ク
ロックを送信側の符号化システムの基準クロックに同期
させる必要があり、このため、MPEG2においては、
受信側の復号システムにおいて時刻基準となるSTC
(システムタイムクロック:以下、再生基準クロックと
いう)の値を送信側で意図した値にセット又は校正する
ための情報(同期情報)としてPCR(プログラム時刻
参照値)をパケット中に含めるようにしている。このP
CRは、送信側の基準クロックの計数値で表わされる。
このため、このPCRを用いて受信側で再生基準クロッ
クを再生するために、制御信号に応じた周波数(周期)
の再生基準クロックを発生するPLL(Phase Locked L
oop)と、該PLLで発生した再生基準クロックを計数
し、PCRが到着した時点におけるその計数値(以下、
STC値という)を得るカウンタと、PCRに対するS
TC値の誤差を求め、該求めた誤差を小さくするような
制御信号を出力してPLLを制御する制御手段とが受信
側に設置される。そして、MPEG2では、上記PL
L,及びカウンタを、トランスポートストリーム復号再
生装置に設置することを義務付けている。
[0004] Then, on the receiving side including the transport stream decoding / reproducing apparatus, image data,
When extracting and decoding audio data, it is necessary to decode them based on the time reference at the time of encoding on the transmission side. For this reason, it is necessary to synchronize the reference clock of the decoding system on the receiving side with the reference clock of the encoding system on the transmitting side.
STC serving as a time reference in the decoding system on the receiving side
A PCR (program time reference value) is included in a packet as information (synchronization information) for setting or calibrating a value of a system time clock (hereinafter referred to as a reproduction reference clock) to a value intended on the transmission side. . This P
CR is represented by a count value of a reference clock on the transmission side.
Therefore, in order to reproduce the reproduction reference clock on the receiving side using the PCR, a frequency (period) corresponding to the control signal is used.
PLL (Phase Locked L) that generates the playback reference clock
oop) and the reproduction reference clock generated in the PLL, and the counted value when the PCR arrives (hereinafter, referred to as
STC value) and S for PCR
Control means for obtaining an error of the TC value and outputting a control signal for reducing the obtained error to control the PLL is provided on the receiving side. In MPEG2, the PL
L and the counter are required to be installed in the transport stream decoding / reproducing apparatus.

【0005】図3は、このような再生基準クロック再生
機能を備えた従来のトランスポートストリーム復号再生
装置における再生基準クロックの周波数を制御するため
の演算手段の構成を示すブロック図である。(SGS-THOMS
ON Microelectronics limited. ST20-TP2) 図において、20は再生基準クロックの周波数を制御す
るための演算手段であり、該演算手段20は、トランス
ポートストリーム復号再生装置のPCR検出手段(図示
せず)から送出されるPCRを記憶するPCRレジスタ
11と、カウンタ(図示せず)から送出される、上記P
CR検出手段で検出したPCRが到着した時点における
STC値を記憶するSTCレジスタ12と、バス15を
介してPCRレジスタ11,及びSTCレジスタ12と
それぞれ接続されたCPU16とを有している。そし
て、CPU16は、バス15を介して、再生基準クロッ
クを発生するPLL(図示せず)と接続されている他、
トランスポートストリーム復号再生装置の他の回路(図
示せず)とも接続されている。
FIG. 3 is a block diagram showing a configuration of a calculation means for controlling the frequency of a reproduction reference clock in a conventional transport stream decoding / reproduction apparatus having such a reproduction reference clock reproduction function. (SGS-THOMS
ON Microelectronics limited. ST20-TP2) In the figure, reference numeral 20 denotes a calculating means for controlling the frequency of the reproduction reference clock, and the calculating means 20 is provided by a PCR detecting means (not shown) of the transport stream decoding / reproducing apparatus. The PCR register 11 for storing the transmitted PCR, and the P register transmitted from a counter (not shown).
It has an STC register 12 for storing an STC value at the time when the PCR detected by the CR detection means arrives, and a CPU 16 connected to the PCR register 11 and the STC register 12 via a bus 15. The CPU 16 is connected via a bus 15 to a PLL (not shown) for generating a reproduction reference clock.
It is also connected to other circuits (not shown) of the transport stream decoding / playback apparatus.

【0006】このように構成された上記演算手段20で
は、CPU16は、ソフトウェアに従い、PCRレジス
タ11,及びSTCレジスタ12からPCR,及びST
C値を読み出し、該読み出したPCR,及びSTC値に
ついて、PCRに対するSTC値の差分を演算し、該演
算結果に基づいて再生基準クロックの周波数を制御する
制御信号をPLLに出力している。また、CPU16
は、この再生基準クロックの周波数制御に必要な演算処
理の他、トランスポートストリーム復号再生装置におけ
る種々の演算/制御を、バス15を通じて行っている。
In the arithmetic means 20 constructed as described above, the CPU 16 reads the PCR and ST from the PCR register 11 and the STC register 12 according to software.
The C value is read, the difference between the read PCR and the STC value is calculated with respect to the PCR, and a control signal for controlling the frequency of the reproduction reference clock is output to the PLL based on the calculation result. Also, the CPU 16
Performs various operations / controls in the transport stream decoding / reproducing apparatus through the bus 15 in addition to the arithmetic processing required for the frequency control of the reproduction reference clock.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記従
来のトランスポートストリーム復号再生装置における演
算手段20では、PCR,及びSTC値は、MPEG2
の規格により42ビットで表されているのに対し、バス
15のビット幅は、通常、8ビット又は16ビットであ
ることから、CPU16が再生基準クロックの周波数制
御に必要な演算処理を行なうのに、これらPCR,及び
STC値をPCRレジスタ11,及びSTCレジスタ1
2から読み出すだけでも複数回(12回又は6回)のリ
ードサイクルを必要とし、さらに減算などの演算も行な
わなければならない。このため、CPU16の負担が大
きいという問題があった。
However, in the arithmetic means 20 in the above-mentioned conventional transport stream decoding / playback apparatus, the PCR and STC values are MPEG2
Since the bit width of the bus 15 is usually 8 bits or 16 bits, while the CPU 16 performs the arithmetic processing necessary for controlling the frequency of the reproduction reference clock, while the bit width of the bus 15 is normally 8 bits or 16 bits. , These PCR and STC values are stored in the PCR register 11 and the STC register 1
Even reading from 2 requires a plurality of (12 or 6) read cycles, and also requires operations such as subtraction. For this reason, there is a problem that the load on the CPU 16 is large.

【0008】また、PCRレジスタ11,及びSTCレ
ジスタ12からのPCR,及びSTC値の読み出しに複
数回のリードサイクルを必要とする結果、CPU16が
PCR,及びSTC値を読み出している最中に、次のP
CRがカウンタに到着した場合に、PCRレジスタ11
のPCR,及びSTCレジスタ12のSTC値が更新さ
れ、実際に演算を行なうべきPCR,及びSTC値とは
異なったPCR,及びSTC値を読み出してしまい、正
しい演算結果が得られないことがあるという問題があっ
た。
Further, as a result of requiring a plurality of read cycles to read the PCR and STC values from the PCR register 11 and the STC register 12, while the CPU 16 is reading the PCR and STC values, P
When the CR arrives at the counter, the PCR register 11
And the STC value of the STC register 12 is updated, and a PCR and an STC value different from the PCR and the STC value to be actually operated are read, and a correct operation result may not be obtained. There was a problem.

【0009】本発明はかかる問題点に鑑みてなされたも
のであり、CPUの負担を軽減することが可能であり、
かつその途中でPCR及びSTC値が更新されることに
より再生基準クロックの周波数制御に必要な演算を誤る
のを防止することが可能なクロック再生装置を提供する
ことを目的としている。
The present invention has been made in view of such a problem, and can reduce a load on a CPU.
It is another object of the present invention to provide a clock reproducing apparatus capable of preventing a mistake in a calculation required for frequency control of a reproduction reference clock due to updating of a PCR and an STC value during the operation.

【0010】[0010]

【課題を解決するための手段】本発明(請求項1)に係
るクロック再生装置は、デジタル通信の受信側に使用さ
れる復号再生装置において、送信側からパケットで順次
送信される再生すべきデータを再生するための時刻基準
となる基準クロックを再生するのに用いられ、制御信号
に応じた周期の再生基準クロックを発生するクロック発
生手段と、該発生した再生基準クロックの周期に対応す
る情報からなるあるビット幅の再生基準同期情報を得る
同期情報取得手段と、上記パケットで再生すべきデータ
とともに送信され上記復号再生装置で順次検出された上
記基準クロックの周期に対応する情報からなるあるビッ
ト幅の基準同期情報、及び上記取得した再生基準同期情
報から上記基準クロックに対する再生基準クロックの誤
差を示す誤差情報を順次演算するハードウエアからなる
演算手段と、該演算した誤差情報を、上記基準同期情報
のビット幅,及び上記再生基準同期情報のビット幅より
小さいビット幅を有するバスを介して上記演算手段から
順次取得し、該取得した誤差情報が示す誤差が小さくな
るよう上記再生基準クロックの周期を変化せしめる制御
信号を上記クロック発生手段に出力するCPUとを備え
たものである。
A clock reproducing apparatus according to the present invention (claim 1) is a decoding / reproducing apparatus used on the receiving side of digital communication, in which data to be reproduced is sequentially transmitted in packets from the transmitting side. Clock generating means for generating a reference clock having a cycle corresponding to a control signal, which is used for reproducing a reference clock serving as a time reference for reproducing the data, and information corresponding to the cycle of the generated reproduction reference clock. A synchronization information obtaining means for obtaining reproduction reference synchronization information having a certain bit width, and a certain bit width comprising information corresponding to the period of the reference clock transmitted together with the data to be reproduced in the packet and sequentially detected by the decoding and reproduction apparatus. Reference synchronization information, and error information indicating an error of the reproduction reference clock with respect to the reference clock from the obtained reproduction reference synchronization information. A calculating means comprising hardware for sequentially calculating, and the calculated error information is sequentially transferred from the calculating means via a bus having a bit width smaller than the bit width of the reference synchronization information and the bit width of the reproduction reference synchronization information. And a CPU for outputting to the clock generation means a control signal for changing the cycle of the reproduction reference clock so as to reduce the error indicated by the obtained error information.

【0011】本発明(請求項2)に係るクロック再生装
置は、上記クロック再生装置(請求項1)において、上
記演算手段は、上記誤差情報として、上記基準同期情報
のビット幅,及び上記再生基準同期情報のビット幅より
小さいビット幅を有するものを演算するものであり、か
つ上記順次演算した誤差情報を順次記憶する記憶手段を
有するものであり、上記CPUは、上記記憶手段に順次
記憶される誤差情報を順次読み出すことにより、上記演
算手段から上記誤差情報を取得するものであるとしたも
のである。
In the clock recovery apparatus according to the present invention (claim 2), in the clock recovery apparatus (claim 1), the arithmetic means includes: as the error information, a bit width of the reference synchronization information; The CPU has a storage means for calculating a bit having a bit width smaller than the bit width of the synchronization information, and has a storage means for sequentially storing the error information calculated sequentially, and the CPU is sequentially stored in the storage means. By sequentially reading the error information, the error information is obtained from the arithmetic means.

【0012】本発明(請求項3)に係るクロック再生装
置は、上記クロック再生装置(請求項2)において、上
記演算手段は、上記誤差情報として、上記バスのビット
幅を超えないビット幅を有するものを演算するものであ
るとしたものである。
[0012] In the clock recovery device according to the present invention (claim 3), in the clock recovery device (claim 2), the arithmetic means has a bit width not exceeding the bit width of the bus as the error information. It is assumed that a thing is calculated.

【0013】本発明(請求項4)に係るクロック再生装
置は、上記クロック再生装置(請求項3)において、上
記演算手段は、上記誤差情報として、その誤差を示す部
分が所定のビット幅では表わせないことを示すオーバフ
ローフラグを有するものを演算するものであるとしたも
のである。
In the clock recovery device according to the present invention (claim 4), in the clock recovery device (claim 3), the arithmetic means includes: as the error information, a part indicating the error is represented by a predetermined bit width. It is assumed that an operation having an overflow flag indicating that there is no operation is performed.

【0014】本発明(請求項5)に係るクロック再生装
置は、上記クロック再生装置(請求項1ないし4のいず
れか)において、該クロック再生装置は、上記復号再生
装置としてのトランスポートストリーム復号再生装置に
おいて用いられるものであり、上記同期情報取得手段
は、上記再生基準同期情報として、STCとしての上記
再生基準クロックから該再生基準クロックの計数値を含
んでなるSTC値を得るものであり、上記演算手段は、
上記パケットから上記トランスポートストリーム復号再
生装置で検出された、上記基準クロックの計数値を含ん
でなる上記基準同期情報としてのPCRと上記STC値
とから上記誤差情報を演算するものであるとしたもので
ある。
According to a fifth aspect of the present invention, there is provided a clock reproducing apparatus according to any one of the first to fourth aspects, wherein the clock reproducing apparatus is a transport stream decoding and reproducing apparatus as the decoding and reproducing apparatus. The synchronization information obtaining means obtains, as the reproduction reference synchronization information, an STC value including a count value of the reproduction reference clock from the reproduction reference clock as an STC; The calculating means is
The error information is calculated from the PCR as the reference synchronization information including the count value of the reference clock detected by the transport stream decoding / reproducing apparatus from the packet and the STC value. It is.

【0015】本発明(請求項6)に係るクロック再生装
置は、上記クロック再生装置(請求項5)において、上
記演算手段は、順次到着する上記PCRを順次更新され
るようにして記憶するPCR記憶手段、及び該PCRが
到着した時点における上記STC値を順次更新されるよ
うにして記憶するSTC値記憶手段を有し、該PCR記
憶手段に記憶されたPCRとSTC値記憶手段に記憶さ
れたSTC値との差分を含んでなる情報を上記誤差情報
として演算するものであるとしたものである。
In the clock recovery apparatus according to the present invention (claim 6), in the clock recovery apparatus (claim 5), the calculating means stores the PCR which arrives sequentially so as to be sequentially updated. Means, and STC value storage means for storing the STC value at the time when the PCR arrives so as to be sequentially updated, wherein the PCR stored in the PCR storage means and the STC value stored in the STC value storage means are provided. Information including a difference from the value is calculated as the error information.

【0016】[0016]

【発明の実施の形態】実施の形態1.図1は本発明の実
施の形態1によるクロック再生装置の構成の概要,及び
該クロック再生装置が用いられるトランスポートストリ
ーム復号再生装置の構成を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 FIG. 1 is a block diagram showing an outline of a configuration of a clock recovery device according to Embodiment 1 of the present invention and a configuration of a transport stream decoding / reproduction device using the clock recovery device.

【0017】図において、1はトランスポートストリー
ム復号再生装置である。トランスポートストリーム復号
再生装置1は、連続するビット列として到来するパケッ
トを受け取る入力端子110と、入力端子110で受け
取ったビット列からパケットの識別情報である同期ビッ
トを検出し、それにより該ビット列をパケット毎に区切
るとともに、該ビット列を、検出した同期ビットととも
にクロック再生装置に送出する同期検出回路111と、
同期検出回路111で区切りを付けられたパケットを一
時的に記憶するバッファ113と、該バッファ113か
らパケットを読出し、該読出したパケットから番組毎に
画像データ,及び音声データを取り出すとともに、クロ
ック再生装置の制御やその他の種々の演算/制御を行う
CPU16と、同期検出回路111から送出されるビッ
ト列及び同期ビットを用いて、受信側の復号システムに
おいて使用する再生基準クロックを再生するクロック再
生装置2と、CPU16で取り出された画像データを一
時的に記憶するバッファ115と、バッファ115に記
憶された画像データをクロック再生装置2で再生された
再生基準クロックを用いてMPEG2方式に従って復号
し、これを映像信号とする映像信号デコーダ117と、
映像信号デコーダ117で復号された映像信号をNTS
Cテレビジョン信号に変換するNTSCエンコーダ11
8と、NTSCエンコーダ118で変換されたNTSC
テレビジョン信号を外部に出力する映像信号出力端子1
19と、CPU16で取り出された音声データを一時的
に記憶するバッファ116と、クロック再生装置2で再
生された再生基準クロックを所定の周波数の再生基準ク
ロックに変換するPLL129と、バッファ116に記
憶された音声データをPLL129で変換された所定周
波数の再生基準クロックを用いて復号し、これを音声信
号とする音声信号デコーダ120と、音声信号デコーダ
120で復号された音声信号をアナログ音声信号に変換
する音声信号DAC(デジタル/アナログ変換回路)1
21と、音声信号DAC121で変換されたアナログ音
声信号を外部に出力する音声信号出力端子122とを有
している。
In FIG. 1, reference numeral 1 denotes a transport stream decoding / playback apparatus. The transport stream decoding / reproducing apparatus 1 detects an input terminal 110 for receiving a packet arriving as a continuous bit sequence, and a synchronization bit as identification information of the packet from the bit sequence received at the input terminal 110, and thereby converts the bit sequence for each packet. And a synchronization detection circuit 111 for transmitting the bit string to the clock recovery device together with the detected synchronization bits.
A buffer 113 for temporarily storing packets delimited by the synchronization detection circuit 111, a packet read from the buffer 113, and image data and audio data for each program extracted from the read packet for each program; And a clock reproducing device 2 that reproduces a reproduction reference clock used in a decoding system on the receiving side by using a bit string and a synchronization bit transmitted from the synchronization detection circuit 111. A buffer 115 for temporarily storing the image data extracted by the CPU 16, and decoding the image data stored in the buffer 115 in accordance with the MPEG2 method using the reproduction reference clock reproduced by the clock reproduction device 2, and A video signal decoder 117 as a signal;
The video signal decoded by the video signal decoder 117
NTSC encoder 11 for converting to C television signal
8 and NTSC converted by the NTSC encoder 118
Video signal output terminal 1 for outputting a television signal to the outside
19, a buffer 116 for temporarily storing audio data extracted by the CPU 16, a PLL 129 for converting a reproduction reference clock reproduced by the clock reproduction device 2 to a reproduction reference clock of a predetermined frequency, and a buffer 116 for storing. The audio data is decoded using the reproduction reference clock of a predetermined frequency converted by the PLL 129, and the audio data is converted into an audio signal by the audio signal decoder 120, and the audio signal decoded by the audio signal decoder 120 is converted into an analog audio signal. Audio signal DAC (digital / analog conversion circuit) 1
21 and an audio signal output terminal 122 for outputting an analog audio signal converted by the audio signal DAC 121 to the outside.

【0018】また、クロック再生装置2は、再生基準ク
ロック制御信号に応じた周波数の再生基準クロックを発
生するクロック発生回路3と、トランスポートストリー
ム復号装置の同期検出回路111から同期ビットととも
に送出されるビット列から該同期ビットを用いてPCR
を検出するPCR検出回路112と、クロック発生回路
3で発生した再生基準クロックを計数し、PCR検出回
路112で検出されたPCRを受け取った時点における
再生基準クロックの計数値であるSTC値を出力するカ
ウンタ124と、PCR検出回路112で検出されたP
CRとカウンタ124から出力されるSTC値とを用い
て、該PCRに対するSTC値の差分を演算し、これを
誤差情報として一時的に記憶する演算回路10と、演算
回路10に記憶された誤差情報を読出し、該誤差情報に
おけるPCRに対するSTC値の差分が小さくなるよう
な再生基準クロック制御信号をクロック発生回路3に出
力するとともに、パケットがPCRを含む場合にPCR
を検出するようPCR検出回路112に指令する、トラ
ンスポートストリーム復号装置の演算/制御装置でもあ
る上記CPU16とを有している。そして、クロック発
生回路3で発生した再生基準クロックは、CPU16に
おける演算/制御に用いるために、該CPU16に入力
されている。
Further, the clock reproducing apparatus 2 is transmitted together with a synchronization bit from a clock generation circuit 3 for generating a reproduction reference clock having a frequency corresponding to the reproduction reference clock control signal, and a synchronization detection circuit 111 of the transport stream decoding apparatus. PCR using the synchronization bit from the bit sequence
And a reproduction reference clock generated by the clock generation circuit 3 and outputs an STC value which is a count value of the reproduction reference clock at the time when the PCR detected by the PCR detection circuit 112 is received. The counter 124 and the P detected by the PCR detection circuit 112
Using the CR and the STC value output from the counter 124, a difference between the STC value for the PCR is calculated, and the difference is temporarily stored as error information, and the error information stored in the calculation circuit 10 is calculated. And outputs to the clock generation circuit 3 a reproduction reference clock control signal that reduces the difference between the STC value and the PCR in the error information.
And the CPU 16 which is also a calculation / control device of the transport stream decoding device, which instructs the PCR detection circuit 112 to detect the error. The reproduction reference clock generated by the clock generation circuit 3 is input to the CPU 16 for use in calculation / control by the CPU 16.

【0019】また、クロック発生回路3はPLLからな
り、該PLLは、CPU16から出力される再生基準ク
ロック制御信号に応じたPWM波を出力するPWM波発
生回路126と、PWM波発生回路126から出力され
るPWM波を平滑して直流電圧を出力するLPF(ロー
パスフィルタ)127と、LPF127から出力される
直流電圧に応じた周波数の再生基準クロックを発生する
VCO(電圧制御発振器)128とを有している。
The clock generating circuit 3 comprises a PLL. The PLL includes a PWM wave generating circuit 126 for outputting a PWM wave corresponding to a reproduction reference clock control signal output from the CPU 16, and an output from the PWM wave generating circuit 126. LPF (low-pass filter) 127 for smoothing the PWM wave and outputting a DC voltage, and a VCO (voltage controlled oscillator) 128 for generating a reproduction reference clock having a frequency corresponding to the DC voltage output from LPF 127. ing.

【0020】図2は、図1のクロック再生装置2の演算
回路10の構成を示すブロック図である。図において、
演算回路10は、クロック再生装置のPCR検出回路か
ら出力されるPCRを記憶するPCRレジスタ11と、
クロック再生装置のカウンタから出力されるSTC値を
記憶するSTCレジスタ12と、PCRレジスタ11,
及びSTCレジスタ12からそれぞれ入力されるPC
R,及びSTC値について、STC値からPCRを減算
してPCRに対するSTC値の差分を算出するハードウ
エアで構成された減算器13と、減算器13で算出され
た差分を誤差情報17として一時的に記憶する減算結果
レジスタ14とを有している。そして、この演算回路1
0の減算結果レジスタ14は、バス15を介してCPU
16と接続されている。また、図1におけるPCR検出
回路112,バッファ113,バッファ115,バッフ
ァ116も、この減算結果レジスタ14と同様に、CP
U16とは上記バス15を介して接続されている。
FIG. 2 is a block diagram showing a configuration of the arithmetic circuit 10 of the clock recovery device 2 of FIG. In the figure,
The arithmetic circuit 10 includes a PCR register 11 that stores a PCR output from the PCR detection circuit of the clock recovery device;
An STC register 12 for storing an STC value output from a counter of the clock recovery device;
And PC input from STC register 12, respectively.
For the R and STC values, a subtractor 13 configured by hardware for calculating a difference between the STC value and the PCR by subtracting the PCR from the STC value, and the difference calculated by the subtractor 13 is temporarily used as error information 17. And a subtraction result register 14 for storing the result. And this arithmetic circuit 1
0 subtraction result register 14 is connected to CPU 15 via bus 15
16 is connected. Also, the PCR detection circuit 112, the buffer 113, the buffer 115, and the buffer 116 in FIG.
U16 is connected via the bus 15.

【0021】そして、PCRレジスタ11,及びSTC
レジスタ12にそれぞれ記憶されるPCR,及びSTC
値が42ビットのビット幅を有しているのに対し、減算
結果レジスタ14に記憶される誤差情報17は、PCR
に対するSTC値の差分の絶対値の下6桁を表す6ビッ
トの差分データと、該PCRに対するSTC値の差分の
符号を表す1ビットの符号フラグと、該PCRに対する
STC値の差分の絶対値が6桁を超えた(オーバフロー
した)か否かを表す1ビットのオーバフローフラグとか
らなり、全体で8ビットのビット幅を有するものとなっ
ている。そして、バス15のビット幅は、本実施の形態
1では8ビットである。従って、CPU16は、誤差情
報17を減算結果レジスタ14からバス15を介して1
回で読み出すことが可能となっている。
The PCR register 11 and the STC
PCR and STC respectively stored in the register 12
While the value has a bit width of 42 bits, the error information 17 stored in the subtraction result register 14
, The 6-bit difference data representing the lower 6 digits of the absolute value of the STC value difference, the 1-bit code flag representing the sign of the STC value difference for the PCR, and the absolute value of the STC value difference for the PCR. It consists of a 1-bit overflow flag indicating whether or not it has exceeded 6 digits (overflow), and has a total bit width of 8 bits. The bit width of the bus 15 is 8 bits in the first embodiment. Therefore, the CPU 16 subtracts the error information 17 from the subtraction result register 14 via the bus 15.
It is possible to read out at once.

【0022】ここで、MPEG2では、PCR(STC
値も同様)のビット幅は、無効ビットも含めて6バイト
(48ビット)と規定されており、そのうちクロックの
計数値である実データは42ビットで表されている。こ
のように42ビット(ベース33+拡張9)としたの
は、送信側および受信側で用いられる基準クロックが2
7MHz であり、この27MHzの基準クロックの計数
値であるPCRで24時間の範囲を表せるようにするた
めである。これに対し、PCRは各番組毎に、例えば、
0.1秒間隔でパケットに挿入される。従って、トラン
スポートストリーム復号再生装置1に相前後して到着す
るPCR間における計数値の差は24時間に相当するP
CRに比べればごく小さなものであり、また、PCR
と、定常状態で動作しているクロック再生装置2のST
C値との差分も、上記24時間に相当するPCRに比べ
ればごく小さなものである。従って、通常は、PCRに
対するSTC値の差分を、6ビットで、オーバフローを
生じないで表すことが十分可能である。
Here, in MPEG2, PCR (STC
The bit width of the same value is defined as 6 bytes (48 bits) including the invalid bit, and the actual data which is the count value of the clock is represented by 42 bits. The reason why 42 bits (base 33 + extension 9) is used is that the reference clock used on the transmission side and the reception side is 2 bits.
7 MHz, which is to allow the PCR which is the count value of the reference clock of 27 MHz to represent a range of 24 hours. In contrast, PCR is performed for each program, for example,
It is inserted into the packet at 0.1 second intervals. Therefore, the difference in the count value between the PCRs that arrive before and after the transport stream decoding / reproducing apparatus 1 is P, which corresponds to 24 hours.
It is very small compared to CR,
And ST of the clock recovery device 2 operating in a steady state.
The difference from the C value is also very small as compared with the PCR corresponding to the above 24 hours. Therefore, normally, it is sufficiently possible to represent the difference of the STC value with respect to the PCR with 6 bits without causing an overflow.

【0023】次に、以上のように構成されたトランスポ
ートストリーム復号装置1,及びクロック再生装置2の
動作を図1,図2を用いて説明する。これらの図におい
て、トランスポートストリーム復号再生装置1にはビッ
ト列の状態で順次パケットが到来し、クロック再生装置
2はクロック発生回路3で再生基準クロックを再生して
いるものとする。
Next, the operation of the transport stream decoding device 1 and the clock reproducing device 2 configured as described above will be described with reference to FIGS. In these figures, it is assumed that packets are sequentially arrived at the transport stream decoding / reproducing apparatus 1 in a bit string state, and the clock reproducing apparatus 2 reproduces a reproduction reference clock by the clock generation circuit 3.

【0024】この状態で、入力端子110が到来するビ
ット列を受け取ると、同期検出回路111は、この受け
取ったビット列から同期ビットを検出し、それにより該
ビット列をパケット毎に区切ってバッファ113に送出
するとともに、該ビット列を、同期ビットとともにクロ
ック再生装置に送出する。上記送出されたパケットをバ
ッファ113は一時的に記憶する。すると、CPU16
が、このバッファ113に記憶されたパケットを読み出
し、該読出したパケットから番組毎に画像データ,及び
音声データを取り出して、これをバッファ115,及び
バッファ116にそれぞれ送出するとともに、パケット
がPCRを含んでいる場合には、PCRを検出するよう
クロック再生装置2のPCR検出回路112に指令す
る。上記送出された画像データ,及び音声データをバッ
ファ115,及びバッファ116はそれぞれ一時的に記
憶する。すると、映像信号デコーダ117が、バッファ
115に記憶された画像データをクロック再生装置2で
再生された再生基準クロックを用いて復号して映像信号
とし、これをNTSCエンコーダ118に送出する。こ
の送出された映像信号を、NTSCエンコーダ118は
NTSCテレビジョン信号に変換し、これを映像信号出
力端子119から外部に出力する。
In this state, when the input terminal 110 receives the incoming bit string, the synchronization detecting circuit 111 detects a synchronization bit from the received bit string, and separates the bit string into packets to send to the buffer 113. At the same time, the bit sequence is transmitted to the clock reproducing device together with the synchronization bit. The buffer 113 temporarily stores the transmitted packet. Then, the CPU 16
Reads the packets stored in the buffer 113, extracts image data and audio data for each program from the read packets, sends them to the buffers 115 and 116, respectively, and the packets include PCR. If so, it instructs the PCR detection circuit 112 of the clock reproduction device 2 to detect the PCR. The buffer 115 and the buffer 116 temporarily store the transmitted image data and audio data, respectively. Then, the video signal decoder 117 decodes the image data stored in the buffer 115 using the reproduction reference clock reproduced by the clock reproduction device 2 to generate a video signal, and sends the video signal to the NTSC encoder 118. The transmitted video signal is converted by the NTSC encoder 118 into an NTSC television signal, which is output from the video signal output terminal 119 to the outside.

【0025】一方、音声信号デコーダ120が、上記バ
ッファ116に記憶された音声データをPLL129で
変換された所定周波数の再生基準クロックを用いて復号
して音声信号とし、これを音声信号DAC121に送出
する。この送出された音声信号を、音声信号DAC12
1は、アナログ音声信号に変換し、これを音声信号出力
端子122から外部に出力する。
On the other hand, the audio signal decoder 120 decodes the audio data stored in the buffer 116 using a reproduction reference clock of a predetermined frequency converted by the PLL 129 to generate an audio signal, and sends the audio signal to the audio signal DAC 121. . The transmitted audio signal is converted to an audio signal DAC12.
1 converts the analog audio signal into an analog audio signal and outputs the analog audio signal from the audio signal output terminal 122 to the outside.

【0026】次に、クロック再生装置2では、上記同期
検出回路111から送出されたパケットをPCR検出回
路112が受け取り、CPU16からPCRを検出する
よう指令を受けたときに限り、該受け取ったパケットか
らPCRを検出し、該検出したPCRをクロック再生装
置のカウンタ124と、演算回路10のPCRレジスタ
11とにそれぞれ送出する。この送出されたPCRを受
け取り、PCRレジスタ11では、該PCRレジスタ1
1に記憶されているPCRの内容が、受け取ったPCR
の内容に更新される。一方、上記送出されたPCRを受
け取り、カウンタ124は、クロック発生回路3のVC
O128から入力される再生基準クロックの該PCRを
受けた時点における計数値をSTC値として演算回路1
0のSTCレジスタ12に送出する。この送出されたS
TC値を受け取り、STCレジスタ12では、該STC
レジスタ12に記憶されているSTC値の内容が、受け
取ったSTC値の内容に更新される。
Next, in the clock reproducing apparatus 2, the PCR detection circuit 112 receives the packet sent from the synchronization detection circuit 111 and only receives a command from the CPU 16 to detect the PCR from the received packet. The PCR is detected, and the detected PCR is sent to the counter 124 of the clock reproducing device and the PCR register 11 of the arithmetic circuit 10, respectively. This transmitted PCR is received, and the PCR register 11
1 is the received PCR.
Is updated to the contents of On the other hand, upon receiving the transmitted PCR, the counter 124 counts the VC of the clock generation circuit 3.
The arithmetic circuit 1 uses the count value at the time when the PCR of the reproduction reference clock input from O128 is received as the STC value.
0 to the STC register 12. This sent S
The TC value is received, and the STC register 12
The contents of the STC value stored in the register 12 are updated to the contents of the received STC value.

【0027】これら更新されたPCRレジスタ11のP
CR及びSTCレジスタ12のSTC値は減算器13に
出力され、減算器13は、該出力されたPCR及びST
C値について、該PCRに対するSTC値の差分を算出
し、該差分を誤差情報17として減算結果レジスタ14
に出力する。この出力された誤差情報17を受け取り、
減算結果レジスタ14では、該減算結果レジスタ14に
記憶されている誤差情報17の内容が、受け取った誤差
情報17の内容に更新される。また更新と同時にCPU
16に対し割り込みが発生する。
The P of the updated PCR register 11
The STC value of the CR and STC register 12 is output to a subtractor 13, which outputs the output PCR and ST.
For the C value, a difference between the STC value and the PCR is calculated, and the difference is used as error information 17 in a subtraction result register 14.
Output to Upon receiving the output error information 17,
In the subtraction result register 14, the content of the error information 17 stored in the subtraction result register 14 is updated to the content of the received error information 17. In addition, CPU
16 is interrupted.

【0028】すると、この更新された誤差情報17を、
CPU16が、減算結果レジスタ14から1回のリード
サイクルで読み出し、該読出した誤差情報17に基づい
て再生基準クロック制御信号をクロック発生回路3に出
力する。この際に、CPU16は、誤差情報17が示す
PCRに対するSTC値の差分が小さくなるような制御
信号、すなわち、誤差情報17の符号フラグが正の場合
にはPWM波のパルス幅が小さくなり、負の場合にはP
WM波のパルス幅が大きくなり、かつそれらPWM波の
パルス幅の変化量が誤差情報17の差分データの値に応
じたものとなるような再生基準クロック制御信号を出力
する。なお、CPU16が減算結果レジスタ14から誤
差情報17を読み出すのと同時に誤差情報17が更新さ
れたとしても同期回路であるため、正しい誤差情報17
を取り出すことができる。
Then, the updated error information 17 is
The CPU 16 reads from the subtraction result register 14 in one read cycle, and outputs a reproduction reference clock control signal to the clock generation circuit 3 based on the read error information 17. At this time, when the control signal that reduces the difference between the STC value and the PCR indicated by the error information 17, that is, when the sign flag of the error information 17 is positive, the pulse width of the PWM wave becomes small, In the case of P
A reproduction reference clock control signal is output such that the pulse width of the WM wave increases and the amount of change in the pulse width of the PWM wave corresponds to the value of the difference data of the error information 17. Even if the CPU 16 reads the error information 17 from the subtraction result register 14 and updates the error information 17 at the same time, the error information 17 is updated.
Can be taken out.

【0029】また、CPU16は、読出した誤差情報1
7のオーバフローフラグが、誤差情報17の差分データ
がオーバフローしたことを示している場合には、例えば
電源投入時や番組切り替え時のように、カウンタ124
の値をその時に受信したPCRで初期化する、あるいは
オーバフローフラグが2回以上続けて発生することがな
ければ無視する等の処理を行う。
The CPU 16 reads the error information 1
7 indicates that the difference data of the error information 17 has overflowed, the counter 124 is used, for example, when the power is turned on or when the program is switched.
Is initialized by the PCR received at that time, or ignored if the overflow flag does not occur more than once continuously.

【0030】上記出力された再生基準クロック制御信号
を受け、クロック発生回路3では、PWM波発生回路1
26が該再生基準クロック制御信号に応じてPWM波の
パルス幅を変化させ、それに応じてLPF127から出
力される直流電圧が変化する。それにより、VCO12
8で発生する再生基準クロックの周期がPCRに対する
STC値の差分が小さくなるように変化し、該再生基準
クロックの周期が送信側で意図した周期(基準クロック
の周期)に一致するように校正される。
Upon receiving the output reproduction reference clock control signal, the clock generation circuit 3 generates a PWM wave
26 changes the pulse width of the PWM wave according to the reproduction reference clock control signal, and the DC voltage output from the LPF 127 changes accordingly. Thereby, VCO12
The cycle of the reproduction reference clock generated in step 8 is changed so that the difference of the STC value with respect to the PCR becomes small, and the cycle of the reproduction reference clock is calibrated so as to match the cycle intended on the transmission side (the cycle of the reference clock). You.

【0031】なお、上記の説明では、誤差情報17のビ
ット幅を8ビットとしているが、誤差情報17のビット
幅は、最大限、バス15のビット幅に等しいものとする
ことができ、例えば、バス15のビット幅が16ビット
であれば、誤差情報17のビット幅を最大16ビットと
することができる。
In the above description, the bit width of the error information 17 is set to 8 bits. However, the bit width of the error information 17 can be equal to the bit width of the bus 15 at the maximum. If the bit width of the bus 15 is 16 bits, the bit width of the error information 17 can be up to 16 bits.

【0032】また、上記の説明では、誤差情報17とし
て、PCRと該PCRがカウンタ124に到着した時点
におけるSTC値との差分を求めているが、例えば、P
CRと該PCRの到着以降に到着したいずれかのPCR
に対応するSTC値との差分を求めるようにしてもよ
い。
In the above description, the difference between the PCR and the STC value at the time when the PCR arrives at the counter 124 is obtained as the error information 17.
CR and any PCR arriving after the arrival of the PCR
May be calculated from the STC value corresponding to.

【0033】以上のように、本実施の形態1において
は、PCRとSTC値との差分を、減算結果レジスタ1
4に、バス15のビット幅に等しい8ビットの誤差情報
17として記憶するようにしているので、その記憶した
誤差情報17をCPU16が1回のリードサイクルで読
み出すことができる。このため、ソフトウェアのみによ
る減算処理であるがためにそれぞれ42ビットのPC
R,及びSTC値を読み出すのに12回のリードサイク
ルを必要とする従来例と比較すると、CPUの負担は少
なくとも1/12に低減される。なお、このCPU負担
の低減効果はバス15のビット幅が8ビットである場合
のものであり、従来例における読み出し回数はPCR及
びSTC値のビット幅に対するバス15のビット幅が相
対的に小さくなる程大きくなるため、それにつれてこの
低減効果も大きなものとなる。
As described above, in the first embodiment, the difference between the PCR and the STC value is calculated using the subtraction result register 1
4, the error information 17 of 8 bits equal to the bit width of the bus 15 is stored, so that the stored error information 17 can be read by the CPU 16 in one read cycle. Therefore, since the subtraction process is performed only by software, a 42-bit PC
Compared with the conventional example that requires 12 read cycles to read the R and STC values, the load on the CPU is reduced to at least 1/12. Note that this CPU load reduction effect is obtained when the bit width of the bus 15 is 8 bits. In the conventional example, the number of read times is such that the bit width of the bus 15 is relatively smaller than the bit width of the PCR and STC values. Therefore, the effect of the reduction becomes large.

【0034】また、本実施の形態1においては、CPU
16が、1回のリードサイクルで、クロック発生回路3
を制御するのに必要な誤差情報17を取り出せるように
しているため、誤差情報17の中に更新される前後のデ
ータが混在することがなくなり、その結果、途中でPC
R及びSTC値が更新されることにより再生基準クロッ
クの周波数制御に必要な演算を誤るのを防止することが
できる。
In the first embodiment, the CPU
16 is one read cycle, and the clock generation circuit 3
The error information 17 necessary for controlling the error information 17 can be taken out, so that the data before and after the update is not mixed in the error information 17, and as a result, the PC
By updating the R and STC values, it is possible to prevent erroneous calculations required for controlling the frequency of the reproduction reference clock.

【0035】また、本実施の形態1においては、誤差情
報17がオーバフローフラグを有するものとしたので、
CPU16がオーバフローを生じた誤差情報17を検知
して適宜処理することが可能となり、誤動作を生じるこ
となく、誤差情報17のビット幅を削減することができ
る。また、誤差情報17内の差分データを読み出すのと
同一のタイミングでオーバフローフラグを読み出すこと
ができるため、即応性のある制御が可能となる。
In the first embodiment, since the error information 17 has an overflow flag,
The CPU 16 can detect the error information 17 in which the overflow has occurred and can appropriately process the error information 17, so that the bit width of the error information 17 can be reduced without causing a malfunction. Further, since the overflow flag can be read at the same timing as when the difference data in the error information 17 is read, responsive control becomes possible.

【0036】なお、上記実施の形態1では、誤差情報1
7として、PCRに対するSTC値の差分を用いている
が、誤差情報17は、送信側の基準クロックに対する受
信側の再生基準クロックの誤差を示す情報であればよ
い。この場合、誤差情報17のビット幅が基準同期情
報,及び再生基準同期情報のビット幅より小さければ、
それにより、CPU16の処理負担をより低減すること
が可能となり、また、バス15のビット幅を超えないも
のであれば、CPU16が誤差情報17を1回のリード
サイクルで読み出すことが可能となる。例えば、PCR
に対するSTC値の大小を誤差情報とすることができ
る。
In the first embodiment, the error information 1
Although the difference of the STC value with respect to the PCR is used as 7, the error information 17 may be any information that indicates an error between the reproduction reference clock on the reception side and the reference clock on the transmission side. In this case, if the bit width of the error information 17 is smaller than the bit widths of the reference synchronization information and the reproduction reference synchronization information,
As a result, the processing load on the CPU 16 can be further reduced, and the CPU 16 can read the error information 17 in one read cycle as long as the error width does not exceed the bit width of the bus 15. For example, PCR
Can be used as error information.

【0037】また、上記実施の形態1では、送信側と受
信側との同期を取るための同期情報として、MPEG2
に従って基準クロック,及び再生基準クロックの計数値
を用いるようにしているが、本発明をMPEG2以外の
方式において適用する場合には、この同期情報は、基準
クロック,及び再生基準クロックの周期に比例して変化
する数値情報であればよく、例えば、MPEG1で規定
しているように、基準クロック,及び再生基準クロック
の周期を用いるようにしてもよい。
In the first embodiment, the synchronization information for synchronizing the transmitting side and the receiving side is defined as MPEG2
, The count values of the reference clock and the reproduction reference clock are used. However, when the present invention is applied to a system other than MPEG2, the synchronization information is proportional to the periods of the reference clock and the reproduction reference clock. Any numerical information may be used as long as the period of the reference clock and the reproduction reference clock is specified as defined in MPEG1.

【0038】また、上記実施の形態1では、MPEG2
符号化方式におけるクロック再生装置に本発明を適用す
る場合を説明したが、本発明は、これに限らず、他の符
号化方式におけるクロック再生装置にも適用することが
できる。例えば、MPEG1符号化方式におけるクロッ
ク再生装置に対しては、上記したように、同期情報とし
て基準クロック,及び再生基準クロックの周期を用いる
ことにより、上記実施の形態1と同様にして本発明を適
用することができる。
In the first embodiment, MPEG2
Although the case where the present invention is applied to the clock reproducing device in the encoding method has been described, the present invention is not limited to this, and can be applied to a clock reproducing device in another encoding method. For example, as described above, the present invention is applied to a clock reproducing apparatus using the MPEG1 encoding method by using the reference clock and the period of the reproduction reference clock as the synchronization information as in the first embodiment. can do.

【0039】[0039]

【発明の効果】以上のように、請求項1の発明によれ
ば、再生基準クロックの周期を制御するCPUが、その
制御に用いる基準クロックに対する再生基準クロックの
誤差情報を、その誤差情報を演算するのに用いる基準同
期情報,及び再生基準同期情報のビット幅より小さいビ
ット幅を有するバスを介して取得するように構成された
クロック再生装置において、誤差情報を演算する手段を
ハードウエアで構成するようにしたので、従来例のよう
にCPUが基準同期情報と再生基準同期情報とを読出し
てソフトウエアにより誤差情報を演算する場合と比較す
ると、CPUは、演算された誤差情報のみを読み出せば
済むため、演算する負担が低減されるだけでなく、再生
基準クロック制御用の情報を読出すための負担が少なく
とも半減される。この際、バスのビット幅に対し基準同
期情報及び再生基準同期情報のビット幅が大きい程、従
来例における読出し回数は多くなるため、この半減され
る負担の絶対量は大きなものとなる。このため、バスの
ビット幅に対し基準同期情報及び再生基準同期情報のビ
ット幅が大きい場合に、大きなCPUの負担の低減効果
が得られるクロック再生装置を提供することができる。
As described above, according to the first aspect of the present invention, the CPU that controls the period of the reproduction reference clock calculates the error information of the reproduction reference clock with respect to the reference clock used for the control, and calculates the error information. In a clock recovery device configured to acquire via a bus having a bit width smaller than the bit width of the reference synchronization information used to perform the synchronization and the reproduction reference synchronization information, means for calculating error information is configured by hardware. Therefore, when compared with the case where the CPU reads the reference synchronization information and the reproduction reference synchronization information and calculates the error information by software as in the conventional example, the CPU can read only the calculated error information. As a result, not only the calculation load is reduced, but also the load for reading out information for controlling the reproduction reference clock is reduced by at least half. At this time, as the bit width of the reference synchronization information and the reproduction reference synchronization information is larger than the bit width of the bus, the number of times of reading in the conventional example is increased, so that the absolute amount of the load reduced by half becomes large. Therefore, when the bit widths of the reference synchronization information and the reproduction reference synchronization information are larger than the bit width of the bus, it is possible to provide a clock reproducing apparatus that can obtain a large CPU load reduction effect.

【0040】また、請求項2の発明によれば、請求項1
の発明において、誤差情報として、基準同期情報及び再
生基準同期情報のビット幅より小さいビット幅のものを
演算するようにしたので、誤差情報を読出すのに要する
回数がより少なくなり、その分、よりCPUの負担を低
減することができる。
According to the invention of claim 2, according to claim 1,
In the invention, the error information is calculated with a bit width smaller than the bit widths of the reference synchronization information and the reproduction reference synchronization information. Therefore, the number of times required to read the error information is reduced, and accordingly, The burden on the CPU can be further reduced.

【0041】また、請求項3の発明によれば、請求項2
の発明において、誤差情報として、バスのビット幅を超
えないビット幅のものを演算するようにしたので、誤差
情報を1回で読出すことが可能となり、さらにCPUの
負担低減を図ることができる。また、誤差情報を1回で
読出すことが可能となる結果、誤差情報の中に更新され
る前後のデータが混在することがなくなり、その結果、
読み出しの途中で基準同期情報及び再生基準同期情報が
更新されることにより再生基準クロックの周波数制御に
必要な演算を誤るのを防止することが可能となる。
According to the invention of claim 3, according to claim 2,
According to the invention, the error information having a bit width not exceeding the bus bit width is calculated, so that the error information can be read out at one time, and the load on the CPU can be further reduced. . Further, as a result of reading the error information at one time, data before and after the update is not mixed in the error information. As a result,
By updating the reference synchronization information and the reproduction reference synchronization information during the reading, it is possible to prevent the calculation necessary for controlling the frequency of the reproduction reference clock from being erroneously performed.

【0042】また、請求項4の発明によれば、請求項3
の発明において、誤差情報として、オーバフローフラグ
を有するものを演算するようにしたので、CPUがオー
バフローを生じた誤差情報を検知して適宜処理すること
が可能となり、誤動作を生じることなく、誤差情報のビ
ット幅を削減することができる。また、誤差情報の中の
差分データを読み出すのと同一のタイミングでオーバフ
ローフラグを読み出すことができるため、即応性のある
制御が可能となる。
According to the invention of claim 4, according to claim 3,
In the invention of the present invention, the information having an overflow flag is calculated as the error information, so that the CPU can detect the error information that caused the overflow and appropriately process the error information. The bit width can be reduced. Further, since the overflow flag can be read at the same timing as when the difference data in the error information is read, responsive control becomes possible.

【0043】また、請求項5の発明によれば、請求項1
ないし4のいずれかの発明において、トランスポートス
トリーム復号再生装置において用いられる場合には、再
生基準同期情報として、STCとしての再生基準クロッ
クからSTC値を取得し、基準同期情報としてのPCR
とSTC値とから誤差情報を演算するようにしたので、
通常、バスのビット幅は16ビット程度までであるのに
対しPCR及びSTC値のビット幅は42ビットである
ため、バスのビット幅に応じてCPUの負担低減を図る
ことができるMPEG2に対応可能なクロック再生装置
を提供することができる。
According to the invention of claim 5, according to claim 1,
In any one of the inventions according to any one of (4) to (4), when used in a transport stream decoding / reproducing apparatus, an STC value is obtained from a reproduction reference clock as STC as reproduction reference synchronization information, and a PCR is used as reference synchronization information.
Error information is calculated from the STC value and the
Normally, the bit width of the bus is up to about 16 bits, whereas the bit width of the PCR and STC values is 42 bits. Therefore, it is possible to support MPEG2 which can reduce the load on the CPU according to the bit width of the bus. It is possible to provide a simple clock reproducing device.

【0044】また、請求項6の発明によれば、請求項5
の発明において、順次到着するPCRを順次更新される
ようにして記憶するPCR記憶手段と、PCRが到着し
た時点におけるSTC値を順次更新されるようにして記
憶するSTC値記憶手段とを設け、PCR記憶手段に記
憶されたPCRとSTC値記憶手段に記憶されたSTC
値との差分を含む情報を誤差情報として演算するように
したので、PCR及びSTC値は42ビットのビット幅
のうち、基準クロックに対する再生基準クロックの誤差
が小さい場合は下位ビットが変化するだけであることか
ら、誤差情報のビット幅を小さなものとすることがで
き、その結果、よりCPUの負担低減を図ることができ
るMPEG2に対応可能なクロック再生装置を提供する
ことができる。
According to the invention of claim 6, according to claim 5,
In the invention of the above, a PCR storage means for storing the sequentially arriving PCRs so as to be sequentially updated and an STC value storage means for storing the STC values at the time when the PCR arrives so as to be sequentially updated are provided. PCR stored in storage means and STC stored in STC value storage means
Since the information including the difference from the value is calculated as error information, the PCR and STC values are only changed in the lower bits when the error of the reproduction reference clock with respect to the reference clock is small in the bit width of 42 bits. Because of this, it is possible to reduce the bit width of the error information, and as a result, it is possible to provide a clock reproducing apparatus that is compatible with MPEG2 and that can further reduce the load on the CPU.

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

【図1】 本発明の実施の形態1によるクロック再生装
置,及び該クロック再生装置が用いられるトランスポー
トストリーム復号再生装置の構成を示すブロック図であ
る。
FIG. 1 is a block diagram illustrating a configuration of a clock reproduction device according to a first embodiment of the present invention and a transport stream decoding / reproduction device using the clock reproduction device.

【図2】 図1のクロック再生装置の演算回路の構成を
示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of an arithmetic circuit of the clock recovery device of FIG. 1;

【図3】 従来のトランスポートストリーム復号再生装
置における再生基準クロックの周波数を制御するための
演算手段の構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a calculating means for controlling a frequency of a reproduction reference clock in a conventional transport stream decoding and reproducing apparatus.

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

1 トランスポートストリーム復号再生装置 2 クロック再生装置 3 クロック発生回路 10 演算回路 11 PCRレジスタ 12 STCレジスタ 13 減算器 14 減算結果レジスタ 15 バス 16 CPU 17 誤差情報 20 演算手段 110 入力端子 111 同期検出回路 112 PCR検出回路 113,115,116 バッファ 117 映像信号デコーダ 118 NTSCエンコーダ 119 映像信号出力端子 120 音声信号デコーダ 121 音声信号DAC 122 音声信号出力端子 124 カウンタ 126 PWM波発生回路 127 LPF 128 VCO 129 PLL DESCRIPTION OF SYMBOLS 1 Transport stream decoding / reproduction apparatus 2 Clock reproduction apparatus 3 Clock generation circuit 10 Operation circuit 11 PCR register 12 STC register 13 Subtractor 14 Subtraction result register 15 Bus 16 CPU 17 Error information 20 Operation means 110 Input terminal 111 Synchronization detection circuit 112 PCR Detection circuit 113, 115, 116 Buffer 117 Video signal decoder 118 NTSC encoder 119 Video signal output terminal 120 Audio signal decoder 121 Audio signal DAC 122 Audio signal output terminal 124 Counter 126 PWM wave generation circuit 127 LPF 128 VCO 129 PLL

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 デジタル通信の受信側に使用される復号
再生装置において、送信側からパケットで順次送信され
る再生すべきデータを再生するための時刻基準となる基
準クロックを再生するのに用いられ、 制御信号に応じた周期の再生基準クロックを発生するク
ロック発生手段と、 該発生した再生基準クロックの周期に対応する情報から
なるあるビット幅の再生基準同期情報を得る同期情報取
得手段と、 上記パケットで再生すべきデータとともに送信され上記
復号再生装置で順次検出された上記基準クロックの周期
に対応する情報からなるあるビット幅の基準同期情報、
及び上記取得した再生基準同期情報から上記基準クロッ
クに対する再生基準クロックの誤差を示す誤差情報を順
次演算するハードウエアからなる演算手段と、 該演算した誤差情報を、上記基準同期情報のビット幅,
及び上記再生基準同期情報のビット幅より小さいビット
幅を有するバスを介して上記演算手段から順次取得し、
該取得した誤差情報が示す誤差が小さくなるよう上記再
生基準クロックの周期を変化せしめる制御信号を上記ク
ロック発生手段に出力するCPUとを備えたことを特徴
とするクロック再生装置。
1. A decoding / reproducing apparatus used on the receiving side of digital communication, which is used for reproducing a reference clock serving as a time reference for reproducing data to be reproduced sequentially transmitted in packets from the transmitting side. A clock generating means for generating a reproduction reference clock having a cycle corresponding to the control signal; a synchronization information obtaining means for obtaining reproduction reference synchronization information having a bit width composed of information corresponding to the cycle of the generated reproduction reference clock; Reference synchronization information of a certain bit width including information corresponding to the cycle of the reference clock, which is transmitted together with data to be reproduced in a packet and sequentially detected by the decoding / reproducing device,
And calculating means comprising hardware for sequentially calculating error information indicating an error of the reproduction reference clock with respect to the reference clock from the obtained reproduction reference synchronization information, and calculating the calculated error information by using the bit width of the reference synchronization information,
And sequentially obtained from the arithmetic means via a bus having a bit width smaller than the bit width of the reproduction reference synchronization information,
A clock reproducing apparatus comprising: a CPU that outputs a control signal for changing a cycle of the reproduction reference clock to the clock generation means so that an error indicated by the obtained error information is reduced.
【請求項2】 請求項1に記載のクロック再生装置にお
いて、 上記演算手段は、上記誤差情報として、上記基準同期情
報のビット幅,及び上記再生基準同期情報のビット幅よ
り小さいビット幅を有するものを演算するものであり、
かつ上記順次演算した誤差情報を順次記憶する記憶手段
を有するものであり、 上記CPUは、上記記憶手段に順次記憶される誤差情報
を順次読み出すことにより、上記演算手段から上記誤差
情報を取得するものであることを特徴とするクロック再
生装置。
2. The clock recovery apparatus according to claim 1, wherein said arithmetic means has a bit width of said reference synchronization information and a bit width smaller than a bit width of said reproduction reference synchronization information as said error information. , And
And a storage unit for sequentially storing the sequentially calculated error information. The CPU acquires the error information from the calculation unit by sequentially reading the error information sequentially stored in the storage unit. A clock recovery device, characterized in that:
【請求項3】 請求項2に記載のクロック再生装置にお
いて、 上記演算手段は、上記誤差情報として、上記バスのビッ
ト幅を超えないビット幅を有するものを演算するもので
あることを特徴とするクロック再生装置。
3. The clock recovery apparatus according to claim 2, wherein said calculating means calculates, as said error information, a signal having a bit width not exceeding a bit width of said bus. Clock regeneration device.
【請求項4】 請求項3に記載のクロック再生装置にお
いて、 上記演算手段は、上記誤差情報として、その誤差を示す
部分が所定のビット幅では表わせないことを示すオーバ
フローフラグを有するものを演算するものであることを
特徴とするクロック再生装置。
4. The clock recovery device according to claim 3, wherein said arithmetic means calculates the error information having an overflow flag indicating that a portion indicating the error cannot be represented by a predetermined bit width. A clock recovery device characterized in that:
【請求項5】 請求項1ないし4のいずれかに記載のク
ロック再生装置において、 該クロック再生装置は、上記復号再生装置としてのトラ
ンスポートストリーム復号再生装置において用いられる
ものであり、 上記同期情報取得手段は、上記再生基準同期情報とし
て、STCとしての上記再生基準クロックから該再生基
準クロックの計数値を含んでなるSTC値を得るもので
あり、 上記演算手段は、上記パケットから上記トランスポート
ストリーム復号再生装置で検出された、上記基準クロッ
クの計数値を含んでなる上記基準同期情報としてのPC
Rと上記STC値とから上記誤差情報を演算するもので
あることを特徴とするクロック再生装置。
5. The clock reproducing device according to claim 1, wherein the clock reproducing device is used in a transport stream decoding / reproducing device as the decoding / reproducing device, and the synchronization information acquiring device includes: Means for obtaining, from the reproduction reference clock as STC, an STC value including a count value of the reproduction reference clock as the reproduction reference synchronization information; and the arithmetic means for decoding the transport stream from the packet. A PC as the reference synchronization information including a count value of the reference clock detected by the playback device;
A clock reproducing apparatus for calculating the error information from R and the STC value.
【請求項6】 請求項5に記載のクロック再生装置にお
いて、 上記演算手段は、順次到着する上記PCRを順次更新さ
れるようにして記憶するPCR記憶手段、及び該PCR
が到着した時点における上記STC値を順次更新される
ようにして記憶するSTC値記憶手段を有し、 該PCR記憶手段に記憶されたPCRとSTC値記憶手
段に記憶されたSTC値との差分を含んでなる情報を上
記誤差情報として演算するものであることを特徴とする
クロック再生装置。
6. The clock recovery apparatus according to claim 5, wherein the arithmetic means stores the sequentially arriving PCRs so as to be sequentially updated, and the PCR storage means.
STC value storage means for storing the STC value at the time of arrival in such a way that the STC value is sequentially updated, and stores a difference between the PCR stored in the PCR storage means and the STC value stored in the STC value storage means. A clock regenerating device for calculating included information as the error information.
JP10025362A 1998-02-06 1998-02-06 Clock recovery system Pending JPH11225136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10025362A JPH11225136A (en) 1998-02-06 1998-02-06 Clock recovery system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10025362A JPH11225136A (en) 1998-02-06 1998-02-06 Clock recovery system

Publications (1)

Publication Number Publication Date
JPH11225136A true JPH11225136A (en) 1999-08-17

Family

ID=12163740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10025362A Pending JPH11225136A (en) 1998-02-06 1998-02-06 Clock recovery system

Country Status (1)

Country Link
JP (1) JPH11225136A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763474B1 (en) 2000-08-03 2004-07-13 International Business Machines Corporation System for synchronizing nodes in a heterogeneous computer system by using multistage frequency synthesizer to dynamically adjust clock frequency of the nodes
CN100378736C (en) * 2005-07-07 2008-04-02 复旦大学 Sequential depth computing method of synchronous sequential circuit
JP2008109440A (en) * 2006-10-26 2008-05-08 Sanyo Electric Co Ltd Clock reproduction circuit
US7876653B2 (en) 2005-06-16 2011-01-25 Hitachi, Ltd. Recording and reproducing apparatus and receiving apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763474B1 (en) 2000-08-03 2004-07-13 International Business Machines Corporation System for synchronizing nodes in a heterogeneous computer system by using multistage frequency synthesizer to dynamically adjust clock frequency of the nodes
US7876653B2 (en) 2005-06-16 2011-01-25 Hitachi, Ltd. Recording and reproducing apparatus and receiving apparatus
CN100378736C (en) * 2005-07-07 2008-04-02 复旦大学 Sequential depth computing method of synchronous sequential circuit
JP2008109440A (en) * 2006-10-26 2008-05-08 Sanyo Electric Co Ltd Clock reproduction circuit
US7836323B2 (en) 2006-10-26 2010-11-16 Sanyo Electric Co., Ltd. Clock regeneration circuit

Similar Documents

Publication Publication Date Title
US6493832B1 (en) Communication apparatus which handles a time stamp
US6377588B1 (en) Method and apparatus for reducing jitter of a program clock reference in a transport stream of MPEG over ATM, and MPEG decoder
US6021168A (en) Clock recovery circuit and method for MPEG-2 system decoder
JP3045715B2 (en) Transmission system, transmitting device, recording / reproducing device, and recording device
JPH1117671A (en) Frame synchronization device and method therefor
JPH11225136A (en) Clock recovery system
JP4092705B2 (en) Stream transmitting apparatus, receiving apparatus, and transmission / reception method
JPH1141256A (en) Method and device for reducing aal5 jitter
JP3736396B2 (en) Stream transmitting apparatus and receiving apparatus
JPH11112452A (en) Information processor, method therefor and transmission medium
JP3018335B2 (en) Method and apparatus for reducing program clock reference jitter of MPEG over ATM and MPEG decoding apparatus
EP0757495B1 (en) Generator of clock signals for the synchronization of a system for processing digital data packets
JP2002374220A (en) Stream transmission reception system, and stream transmitter and receiver
JP2001016210A (en) Communication equipment and method, and medium
JP2000244437A (en) Data multiplexer and data multiplexing method
JP4896661B2 (en) Clock recovery circuit
JP2000307542A (en) Data multiplexing device and data multiplexing method
JP2000187940A (en) Recording/reproducing device and recorder
JP2000068961A (en) Audio/video decoder
JP3744514B2 (en) Data transmission equipment
JP3541342B2 (en) Sampling clock frequency information transmission method
JP2000312147A (en) Pll circuit
JP3601771B2 (en) Digital signal recording apparatus and digital signal recording method
JPH09219857A (en) Reference time information reproducing device
JP2000341684A (en) Device and method for receiving signal and reproducing video signal