JP2968730B2 - Skew correction circuit - Google Patents

Skew correction circuit

Info

Publication number
JP2968730B2
JP2968730B2 JP8200707A JP20070796A JP2968730B2 JP 2968730 B2 JP2968730 B2 JP 2968730B2 JP 8200707 A JP8200707 A JP 8200707A JP 20070796 A JP20070796 A JP 20070796A JP 2968730 B2 JP2968730 B2 JP 2968730B2
Authority
JP
Japan
Prior art keywords
value
data
difference
signal
skew correction
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.)
Expired - Fee Related
Application number
JP8200707A
Other languages
Japanese (ja)
Other versions
JPH1051743A (en
Inventor
加奈子 伊達
廣文 櫻井
剛良 稲川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
NEC Corp
Original Assignee
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Nippon Electric 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 NIPPON DENKI AISHII MAIKON SHISUTEMU KK, Nippon Electric Co Ltd filed Critical NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Priority to JP8200707A priority Critical patent/JP2968730B2/en
Publication of JPH1051743A publication Critical patent/JPH1051743A/en
Application granted granted Critical
Publication of JP2968730B2 publication Critical patent/JP2968730B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はスキュー補正回路に
関し、特に量子化量子化データを他のサンプリング周波
数データに変換するためのスキュー補正値を求めるスキ
ュー補正回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a skew correction circuit, and more particularly to a skew correction circuit for obtaining a skew correction value for converting quantized and quantized data into another sampling frequency data.

【0002】[0002]

【従来の技術】量子化データの処理において、PLLを
使用しアナログ量子化データをサンプリングして正確な
デジタル量子化データを発生する場合、さらに、サンプ
リングしたデジタルデータを所望のサンプリング周波数
のデータ(以下量子化データ)値に変換するとき、水平
同期信号と変換対象のサンプリングクロックとの間の位
相(時間)ずれやこの位相ずれによる期待値との差すな
わちスキューを補正するためのスキュー補正回路を必要
とする。
2. Description of the Related Art In the processing of quantized data, when analog quantized data is sampled using a PLL to generate accurate digital quantized data, the sampled digital data is further converted to data having a desired sampling frequency (hereinafter referred to as data). When converting to a (quantized data) value, a skew correction circuit for correcting a phase (time) shift between the horizontal synchronization signal and the sampling clock to be converted and a difference from an expected value due to the phase shift, that is, a skew is required. And

【0003】量子化データのデータ値は期待データ値と
一致するとは限らず、サンプリングタイミングも一致し
ない。そのためのスキュー補正によって、データ値を増
やす補間や、データ値を減らす間引きを施すことが必要
になる。
The data value of the quantized data does not always match the expected data value, and the sampling timing does not match. It is necessary to perform interpolation for increasing the data value and thinning-out for reducing the data value by skew correction for that purpose.

【0004】データの間引きおよびデータの補間の各々
の例を示す図4(A),(B)を参照してスキュー補正
の方法について説明すると、この図には実サンプリング
データAと期待データBとの関係を、横軸に時間、縦軸
にデータ値としてそれぞれ表している。
The skew correction method will be described with reference to FIGS. 4A and 4B showing examples of data thinning and data interpolation. FIG. 4 shows actual sampling data A and expected data B. Are expressed as time on the horizontal axis and as data values on the vertical axis.

【0005】スキュー補正値をkとすると、ある時間T
nでの期待データMnと実サンプリングデータは次のよ
うな関係にある。時間TnでのサンプリングデータをS
n、1サンプリング後のデータSn+1、1サンプリン
グ後のデータをSn−1とすると、間引きの場合は次式
が成り立つ。
When the skew correction value is k, a certain time T
The expected data Mn at n and the actual sampling data have the following relationship. Sampling data at time Tn
Assuming that n is the data after one sampling, Sn + 1, and the data after one sampling is Sn-1, the following equation is satisfied in the case of thinning.

【0006】 Mn=Sn+k・(Sn+1−Sn)・・・・・・・・・・・(1) 同様に補間の場合は次式が成り立つ。Mn = Sn + k · (Sn + 1−Sn) (1) Similarly, in the case of interpolation, the following equation holds.

【0007】 Mn=Sn−k・(Sn−Sn−1)・・・・・・・・・・・(2) 水平同期信号の周期すなわち水平同期周期を1Hとする
と、スキュー補正値kは次のようにして求める。図4よ
り、k=b/aであることから、1Hの時間をTh、1
Hのサンプリング数をHcnt、期待値をHrefとす
ると、間引きの場合のスキュー補正値kは、次式が成り
立つ。 k=(Mn−Sn)/(Sn+1−Sn)・・・・・・・・・・・・・(3) =b/a =[{(Th/Href)・n}−{(Th/Hcnt)・n}]/(Th/ Hcnt) =(Hcnt−Href/Href)・n・・・・・・・・・・・・(4) 同様に補間の場合は次式が成り立つ。 k=(Mn−Sn)/(Sn−Sn−1)・・・・・・・・・・・・・(5) =b/a =[{(Th/Hcnt)・n}−{(Th/Href)・n}]/(Th/ Hcnt) =(Href−Hcnt/Href)・n・・・・・・・・・・・・(6) このときk>0なので、(Hcnt−Href)>0で
あれば間引き、(Hcnt−Href)<0であれば補
間になる。
Mn = Sn−k · (Sn−Sn−1) (2) Assuming that the period of the horizontal synchronization signal, that is, the horizontal synchronization period is 1H, the skew correction value k is Ask as follows. From FIG. 4, since k = b / a, the time of 1H is set to Th, 1
Assuming that the number of samples of H is Hcnt and the expected value is Href, the skew correction value k in the case of thinning is represented by the following equation. k = (Mn−Sn) / (Sn + 1−Sn) (3) = b / a = [{(Th / Href) · n} − {(Th / Hcnt ) · N}] / (Th / Hcnt) = (Hcnt−Href / Href) · n (4) Similarly, in the case of interpolation, the following equation holds. k = (Mn−Sn) / (Sn−Sn−1) (5) = b / a = [{(Th / Hcnt) · n} − {(Th / Href) · n}] / (Th / Hcnt) = (Href−Hcnt / Href) · n (6) Since k> 0 at this time, (Hcnt−Href) If> 0, thinning is performed, and if (Hcnt−Href) <0, interpolation is performed.

【0008】式(4),(6)より、スキュー補正値k
は1Hの実際のサンプリング数Hcntをカウンターで
求め、期待値Hrefとの差を期待値Hrefで割り、
積分することで求められることになる。
From equations (4) and (6), the skew correction value k
Calculates the actual sampling number Hcnt of 1H by a counter, divides the difference from the expected value Href by the expected value Href,
It will be determined by integration.

【0009】上記スキュー処理を行う従来のスキュー補
正回路をブロックで示す図5を参照すると、この従来の
スキュー補正回路は、入力した量子化データの量子化デ
ータVDをスキュー補正値kにより補正するスキュー補
正部1と、量子化データVDから水平同期信号Hを抽出
する同期分離回路2と、水平同期信号Hの供給に応答し
てこの信号Hに同期させPLLクロックCPを出力する
デジタル方式のPLL部3と、PLLクロックCPの供
給を受けスキュー補正値kを算出するスキュー測定部5
とを備える。
FIG. 5 is a block diagram showing a conventional skew correction circuit for performing the skew processing. Referring to FIG. 5, the conventional skew correction circuit corrects the quantized data VD of the input quantized data using a skew correction value k. A correction unit 1, a synchronization separation circuit 2 for extracting a horizontal synchronization signal H from the quantized data VD, and a digital PLL unit which synchronizes with the signal H and outputs a PLL clock CP in response to the supply of the horizontal synchronization signal H 3 and a skew measuring unit 5 that receives a supply of a PLL clock CP and calculates a skew correction value k.
And

【0010】次に、図5を参照して、従来のスキュー補
正回路の動作について説明すると、任意の周波数でサン
プリングされた量子化データVDは、同期分離回路2と
スキュー補正部1に供給される。同期分離回路2は、水
平同期信号Hを抽出しPLL回路3に供給する。PLL
回路3のVCO32は水平同期信号Hの位相に応答して
ロックする。スキュー測定部5はVCO32の1周期分
すなわち1Hの周期のクロックCPの数を数えることで
スキュー補正値kを算出する。スキュー補正部1は、ス
キュー測定部5から供給されるスキュー補正値kによっ
て量子化データVDにスキュー補正を施し、補正された
量子化データ信号DCを発生する。
Next, the operation of the conventional skew correction circuit will be described with reference to FIG. 5. Quantized data VD sampled at an arbitrary frequency is supplied to the sync separation circuit 2 and the skew correction unit 1. . The synchronization separation circuit 2 extracts the horizontal synchronization signal H and supplies it to the PLL circuit 3. PLL
The VCO 32 of the circuit 3 locks in response to the phase of the horizontal synchronization signal H. The skew measurement unit 5 calculates the skew correction value k by counting the number of clocks CP in one cycle of the VCO 32, that is, in the cycle of 1H. The skew correction unit 1 performs skew correction on the quantized data VD using the skew correction value k supplied from the skew measurement unit 5, and generates a corrected quantized data signal DC.

【0011】PLL部3は、位相検出回路31と、VC
O32と、PLLフイルタ33とを備える。
The PLL section 3 includes a phase detection circuit 31 and a VC
O32 and a PLL filter 33 are provided.

【0012】次に、式(1),(2)を実現するスキュ
ー補正部1をブロックで示す図6を参照すると、このス
キュー補正部1は、量子化データVDを図示省略した遅
延回路で遅延して生成した遅延データVDDをクロック
CP毎に供給を受け1クロック分遅延させデータF1を
出力するフリップフロップ(FF)11と、データF1
の供給を受けデータF2を出力するFF12と、遅延デ
ータTDDとデータF1と減算し減算信号A1を生成す
る加算器13と、データF1,F2を減算し減算データ
A2を生成する加算器14と、補間間引き信号の制御に
応答して減算データA1,A2のいずれか一方を選択し
選択減算データASを出力するスイッチ15と、スキュ
ー補正値kと選択減算データASと乗算し乗算データM
kを出力する乗算器16と、乗算データMkと信号F1
と加算しスキュー補正した量子化データDCを出力する
加算器17とを備える。
Next, referring to FIG. 6, which shows a block diagram of the skew correction unit 1 for realizing the equations (1) and (2), the skew correction unit 1 delays the quantized data VD by a delay circuit (not shown). The flip-flop (FF) 11 which receives the delayed data VDD generated by the clock CP and delays it by one clock to output the data F1, and the data F1
FF12 receiving the supply of the data F2 and outputting the data F2, an adder 13 for subtracting the delayed data TDD and the data F1 to generate a subtraction signal A1, an adder 14 for subtracting the data F1 and F2 and generating the subtraction data A2, A switch 15 for selecting either one of the subtraction data A1 and A2 and outputting the selection subtraction data AS in response to the control of the interpolation thinning signal, and multiplying the skew correction value k by the selection subtraction data AS and multiplying data M
k, a multiplier 16 for outputting the multiplication data Mk and a signal F1.
And an adder 17 that outputs the quantized data DC that has been subjected to the skew correction by adding.

【0013】次に、図6を参照してスキュー補正部1の
動作について説明すると、まず、補間処理に必要な時間
を確保するため、上述したように、入力量子化データV
Dを遅らせて遅延データVDDを生成する必要があるた
め、実際には図6の回路の前に遅延回路を設ける。クロ
ックCP毎に遅延データVDDはFF11に供給され、
この遅延データVDDの供給に応答してFF11は出力
データF1をFF12に供給する。データF1が時刻T
nでのデータとすると、加算器13は時刻Tnでのデー
タF1と1クロック後のデータVDDとの差を演算し、
加算器14はTnでのデータF1と1クロック前のデー
タF2との差を演算している。
Next, the operation of the skew correction unit 1 will be described with reference to FIG. 6. First, in order to secure the time required for the interpolation processing, as described above, the input quantized data V
Since it is necessary to generate the delay data VDD by delaying D, a delay circuit is actually provided before the circuit of FIG. The delay data VDD is supplied to the FF 11 for each clock CP,
The FF 11 supplies the output data F1 to the FF 12 in response to the supply of the delay data VDD. Data F1 is at time T
n, the adder 13 calculates the difference between the data F1 at time Tn and the data VDD after one clock,
The adder 14 calculates the difference between the data F1 at Tn and the data F2 one clock before.

【0014】スイッチ15はデータの間引きと補間とを
切替えるためのもので、補間間引き信号IPで制御さ
れ、間引きの場合は加算器14の出力データA1が、補
間の場合は加算器13の出力データA2がそれぞれ乗算
器16に入力される。加算器17は乗算器16の出力デ
ータMkとデータF1との供給を受け、式(1),
(2)の演算を実現している。
The switch 15 switches between data thinning and interpolation, and is controlled by an interpolation thinning signal IP. The output data A1 of the adder 14 is used for thinning, and the output data A1 of the adder 13 is used for interpolation. A2 is input to the multiplier 16 respectively. The adder 17 receives the output data Mk of the multiplier 16 and the data F1 and receives the expression (1),
The calculation of (2) is realized.

【0015】次に、スキュー測定部5をブロックで示す
図7を参照すると、このスキュー測定部5は、PLL部
3から供給を受けるクロックCPを計数し計数データH
cntを出力するカウンタ51と、計数データHcnt
と周波数の基準データHrefとの供給を受けスキュー
補正値kを算出する演算回路52とを備える。
Next, referring to FIG. 7, which shows the skew measuring section 5 as a block, the skew measuring section 5 counts clocks CP supplied from the PLL section 3 and counts data H.
counter 51 that outputs cnt, and count data Hcnt
And a calculation circuit 52 that receives the supply of the frequency reference data Href and calculates a skew correction value k.

【0016】演算回路52は、計数データHcntと基
準データHrefとの供給を受け式(Hcnt−Hre
f)/Hrefを算出する演算器521と、積分器52
2とを備える。
The arithmetic circuit 52 receives the supply of the count data Hcnt and the reference data Href, and calculates the expression (Hcnt-Hre
f) A computing unit 521 for calculating / Href and an integrator 52
2 is provided.

【0017】カウンタ51は量子化データVDの1H間
のサンプリングデータの計数データHcntを数える。
演算器521は式(Hcnt−Href)/Hrefを
算出し、積分器522はこの演算結果を積分して補正値
kを求める。
The counter 51 counts the count data Hcnt of the sampling data during 1H of the quantized data VD.
The calculator 521 calculates the formula (Hcnt−Href) / Href, and the integrator 522 integrates the calculation result to obtain a correction value k.

【0018】[0018]

【発明が解決しようとする課題】従来のスキュー補正回
路では、1H間の実データのサンプリング数をカウント
し、実データ値と期待データ値との関係からスキュー補
正値kを求めていたが、1H間の実データサンプリング
数はサンプリングクロック周波数で決まるため、サンプ
リングクロックが非同期である場合はサンプリングクロ
ックのパルス幅以上の精度が得られないという欠点があ
った。
In the conventional skew correction circuit, the number of samplings of actual data during 1H is counted, and the skew correction value k is obtained from the relationship between the actual data value and the expected data value. Since the actual data sampling number during the period is determined by the sampling clock frequency, there is a disadvantage that when the sampling clock is asynchronous, an accuracy higher than the pulse width of the sampling clock cannot be obtained.

【0019】また、上記精度を向上しようとすると複数
H分の実データ値と期待データ値との平均を求める必要
がありこのためのカウンタや大容量のROMなどのハー
ドウエアを必要とするので回路規模が増大するという欠
点があった。
In order to improve the accuracy, it is necessary to calculate an average of a plurality of H actual data values and expected data values. This requires hardware such as a counter and a large-capacity ROM. There was a disadvantage that the scale was increased.

【0020】本発明の目的はスキュー補正回路におい
て、サンプリングクロックパルス幅以上の精度をより小
さい回路規模で得ることにある。
An object of the present invention is to provide a skew correction circuit with a smaller circuit scale than the sampling clock pulse width.

【0021】[0021]

【課題を解決するための手段】上記の課題を解決するた
めに本発明は、ディジタル水平PLL回路のVCOのイ
ンクリメント値を用いて、スキュー補正値kを求める回
路を備えていることを特徴とする。
According to the present invention, there is provided a circuit for obtaining a skew correction value k using an increment value of a VCO of a digital horizontal PLL circuit. .

【0022】[0022]

【課題を解決するための手段】本発明のスキュー補正回
路は、ビデオ信号をデジタル化した量子化ビデオデータ
から水平同期信号を取り出す同期分離手段と、前記水平
同期信号の供給に応答してVCOのインクリメント値を
可変することによりこの水平同期信号に同期させるデジ
タルPLL手段と、クロック信号の供給毎に前記インク
リメント値と予め定めたインクリメント期待値とを比較
して前記量子化ビデオデータの量子化時のサンプリング
クロックと前記水平同期信号との位相差に起因したこの
量子化ビデオデータの期待値との差であるスキューを測
定しスキュー補正値を算出するスキュー測定手段と、前
記スキュー補正値を用いて前記量子化ビデオデータのス
キュー補正を行うスキュー補正手段とを備えて構成され
ている。
A skew correction circuit according to the present invention comprises: a sync separation means for extracting a horizontal synchronization signal from quantized video data obtained by digitizing a video signal; and a VCO of a VCO in response to the supply of the horizontal synchronization signal. A digital PLL means for synchronizing with the horizontal synchronizing signal by changing an increment value, and comparing the increment value with a predetermined expected expected value every time a clock signal is supplied, and A skew measuring unit for measuring a skew which is a difference between an expected value of the quantized video data due to a phase difference between the sampling clock and the horizontal synchronization signal and calculating a skew correction value; and Skew correction means for skew correction of the quantized video data.

【0023】[0023]

【発明の実施の形態】次に、本発明の第1の実施の形態
を図5と共通の構成要素には共通の参照文字/数字を付
して同様にブロックで示す図1を参照すると、この図に
示す本実施の形態のスキュー補正回路は、従来と共通の
スキュー補正部1と、同期分離回路2と、PLL部3と
に加えて、スキュー測定部5の代りにPLL部3のイン
クリメント値Hincの供給を受けこのインクリメント
値Hincからスキュー補正値kを算出するスキュー測
定部4を備える。
FIG. 1 is a block diagram showing a first embodiment of the present invention, in which constituent elements common to those in FIG. The skew correction circuit according to the present embodiment shown in this figure includes a skew correction unit 1, a synchronization separation circuit 2, and a PLL unit 3 which are common to those of the related art, and an increment of the PLL unit 3 instead of the skew measurement unit 5. The skew measurement unit 4 receives the supply of the value Hinc and calculates a skew correction value k from the increment value Hinc.

【0024】スキュー測定ブロック4の構成をブロック
で示す図2を参照すると、1クロック毎にインクリメン
ト値Hincと期待値Hwantの差分D1を算出する
加算器41と、1クロック毎に差分D1とデータF3と
を加算(すなわち積分)し差分D2を出力する加算器4
2と、インクリメント値Hincと差分D2との差分D
3を算出するとともにD3がプラスのときキャリーCO
を出力する加算器43と、データS1の供給に応答して
データF3を出力するFF44と、データCOの供給に
応答して差分D2,D3を切替えるスイッチ45と、1
H毎にVCOオフセット値OFとデータS1と切替えデ
ータS2を出力するスイッチ46と、差分D2をインク
リメント値Hincで除算しスキュー補正値kを出力す
る除算器47と備える。
Referring to FIG. 2, which shows a block diagram of the skew measurement block 4, an adder 41 for calculating a difference D1 between an increment value Hinc and an expected value Hwant every clock, a difference D1 and a data F3 every clock. Adder 4 that adds (ie, integrates) and outputs difference D2
2, the difference D between the increment value Hinc and the difference D2
3 and carry CO when D3 is positive.
, An FF 44 that outputs data F3 in response to the supply of data S1, a switch 45 that switches between the differences D2 and D3 in response to the supply of data CO,
A switch 46 for outputting a VCO offset value OF, data S1, and switching data S2 for each H, and a divider 47 for dividing the difference D2 by an increment value Hinc and outputting a skew correction value k.

【0025】次に、図1を参照して本実施の形態の動作
について説明すると、まず、量子化データVDは、従来
と同様に、スキュー補正部1と同期分離回路2に供給さ
れ、任意の周波数でサンプリングされた量子化データV
Dは、同期分離回路2とスキュー補正部1に供給され
る。同期分離回路2は、水平同期信号Hを抽出しPLL
回路3に供給する。PLL回路3の位相検出回路31は
供給された水平同期信号H,VCO32の出力であるク
ロックCP相互間の位相差を検出し位相誤差信号PDを
出力する。PLLフイルタ33は位相誤差信号PDの供
給に応答してVCO制御信号CVを出力する。VCO3
2は、VCO制御信号CVの制御に応答して発振(クロ
ックCP)周波数を可変し位相誤差信号PDの誤差値が
零となるようにすることにより水平同期信号Hと同期化
(ロック)する。このときのVCO制御信号CVによる
クロックCP周波数の増(減)分がすなわちインクリメ
ント値Hincである。
Next, the operation of this embodiment will be described with reference to FIG. 1. First, the quantized data VD is supplied to the skew correction unit 1 and the synchronization separation circuit 2 as in the conventional case, and Quantized data V sampled at frequency
D is supplied to the sync separation circuit 2 and the skew correction unit 1. The synchronization separation circuit 2 extracts the horizontal synchronization signal H,
Supply to circuit 3. The phase detection circuit 31 of the PLL circuit 3 detects a phase difference between the supplied horizontal synchronization signal H and the clock CP output from the VCO 32, and outputs a phase error signal PD. The PLL filter 33 outputs the VCO control signal CV in response to the supply of the phase error signal PD. VCO3
2 synchronizes (locks) with the horizontal synchronization signal H by changing the oscillation (clock CP) frequency in response to the control of the VCO control signal CV so that the error value of the phase error signal PD becomes zero. The increment (decrease) of the clock CP frequency by the VCO control signal CV at this time is the increment value Hinc.

【0026】スキュー測定部4は、インクリメント値H
incと期待値Hwantとを比較することによりクロ
ック毎にスキュー補正値kを算出する。スキュー補正部
1は、スキュー測定部4から供給されるスキュー補正値
kによって量子化データVDにスキュー補正を施し、補
正された量子化データ信号DCを発生する。
The skew measuring section 4 calculates the increment value H
The skew correction value k is calculated for each clock by comparing inc with the expected value Hwant. The skew correction unit 1 performs skew correction on the quantized data VD using the skew correction value k supplied from the skew measurement unit 4, and generates a corrected quantized data signal DC.

【0027】スキュー補正値kは水平同期信号Hを基準
に、実際のサンプリングポイントと希望するサンプリン
グポイントの位置関係から求められる。したがって、水
平同期信号HにロックしたPLL回路内のVCOのイン
クリメント値を用いれば補正値kを求めることができ
る。
The skew correction value k is obtained based on the horizontal synchronization signal H from the positional relationship between the actual sampling point and the desired sampling point. Therefore, the correction value k can be obtained by using the increment value of the VCO in the PLL circuit locked to the horizontal synchronization signal H.

【0028】次に、本実施の形態のデータの間引きおよ
びデータの補間の各々の例を示す図3(A),(B)を
参照してスキュー補正の方法について説明すると、この
図には実サンプリングデータAと期待データBとの関係
を、横軸にサンプル数S、縦軸にクロックCPの計数値
Nによりそれぞれ表している。
Next, a skew correction method will be described with reference to FIGS. 3A and 3B showing examples of data thinning and data interpolation according to the present embodiment. The relationship between the sampling data A and the expected data B is represented by the number of samples S on the horizontal axis and the count value N of the clock CP on the vertical axis.

【0029】1クロックでのVCOの実インクリメント
値をHinc、希望データ数から求めた期待値Hwan
tとすると、間引きのときのスキュー補正値kは式
(3)より以下のように求められる。 k=(Mn−Sn)/(Sn+1−Sn) =(n・Hwant−n・Hinc)/{(n+1)Hinc−n・Hinc} =n・(Hwant−Hinc)/(Hinc)・・・・・・・・・・(7) 同様に補間の場合は式(5)より次式が成り立つ。 k=(Mn−Sn)/(Sn−Sn−1) =(n・Hinc−n・Hwant)/{n・Hinc−(n−1)Hinc} =n・(Hinc−Hwant)/(Hinc)・・・・・・・・・・(8) 式(7),(8)より、スキュー補正値kはインクリメ
ント値Hincと期待値Hwantの差をクロック毎に
積分し、その結果をHincで割った値になることがわ
かる。
The actual increment value of the VCO in one clock is Hinc, and the expected value Hwan obtained from the desired number of data is Hinc.
Assuming that t, the skew correction value k at the time of thinning is obtained as follows from Expression (3). k = (Mn−Sn) / (Sn + 1−Sn) = (n · Hwant−n · Hinc) / {(n + 1) Hinc−n · Hinc} = n · (Hwant−Hinc) / (Hinc) (7) Similarly, in the case of interpolation, the following equation holds from equation (5). k = (Mn−Sn) / (Sn−Sn−1) = (n · Hinc−n · Hwant) / {n · Hinc− (n−1) Hinc} = n · (Hinc−Hwant) / (Hinc) (8) From equations (7) and (8), the skew correction value k is obtained by integrating the difference between the increment value Hinc and the expected value Hwant for each clock, and dividing the result by Hinc. It can be seen that the value obtained is as follows.

【0030】(Hwant−Hinc)>0のときはデ
ータを間引きし、(Hwant−Hinc)<0のとき
はデータを補間することになるが、間引きをするときの
kは現在のデータと1クロック後のデータの関係にな
り、補間をするときのkは現在のデータと1クロック前
のデータの関係になる。クロック毎の積分値がHinc
を超えたときは、積分値からHincを引いた余りを用
いてkを求め、間引く場合のkは現在のデータから1ク
ロック後のデータと2クロック後のデータの関係にな
り、補間の場合は1クロック前のデータと2クロック前
のデータの関係になる。以降、積分値がHincを超え
る度にデータの位置が間引きでは1クロック進み、補間
では1クロック分遅れることになる。
When (Hwant-Hinc)> 0, the data is decimated, and when (Hwant-Hinc) <0, the data is interpolated. The relationship between the subsequent data and k at the time of interpolation is the relationship between the current data and the data one clock before. The integrated value for each clock is Hinc
Is exceeded, k is obtained using the remainder obtained by subtracting Hinc from the integrated value. In the case of thinning, k becomes the relationship between the data after one clock and the data after two clocks from the current data. The relationship between the data one clock before and the data two clocks before is obtained. Thereafter, each time the integrated value exceeds Hinc, the position of the data is advanced by one clock in thinning and delayed by one clock in interpolation.

【0031】非同期サンプリングの場合、水平同期信号
の前縁とサンプリング(VCO)クロックCPとの間に
時刻不一致によるオフセットが発生する。したがって、
(Hwant−Hinc)の積分部分にオフセット分を
加減算する必要がある。
In the case of asynchronous sampling, an offset occurs due to time mismatch between the leading edge of the horizontal synchronization signal and the sampling (VCO) clock CP. Therefore,
It is necessary to add or subtract an offset to the integral part of (Hwant-Hinc).

【0032】オフセットとデータの関係を図3(C),
(D)に示す。VCOクロックCPの値が0を超えたと
きを水平同期信号の前縁とすると、このときのクロック
CPの値がオフセットにあたる。図2(C)より、デー
タ間引き時は(Hinc−CP計数値N)を、データ補
間時はVCOの値を加える必要がある。ただし、間引き
の場合はデータが1クロック分遅くなることも注意しな
くてはならない。
FIG. 3C shows the relationship between the offset and the data.
It is shown in (D). Assuming that the time when the value of the VCO clock CP exceeds 0 is the leading edge of the horizontal synchronization signal, the value of the clock CP at this time corresponds to the offset. From FIG. 2C, it is necessary to add (Hinc-CP count value N) at the time of data thinning and to add the VCO value at the time of data interpolation. However, it must be noted that in the case of thinning, data is delayed by one clock.

【0033】本発明でスキュー補正値kを求めるために
使うパラメータインクリメント値Hincは既存の値で
あるため、回路規模を削減できる。さらに、PLLの精
度をサンプリングクロック以上になるようにVCOビッ
ト幅を設定しておけば、スキュー補正の精度もPLLと
同等まで向上することができる。
Since the parameter increment value Hinc used for obtaining the skew correction value k in the present invention is an existing value, the circuit scale can be reduced. Further, if the VCO bit width is set so that the accuracy of the PLL is equal to or higher than the sampling clock, the accuracy of the skew correction can be improved to the same level as that of the PLL.

【0034】図2を再度参照して上述の演算を実行する
スキュー測定部4の動作について説明すると、加算器4
1はインクリメント値Hincと期待値Hwantの差
分D1=(Hinc−Hwant)をクロック毎に算出
し、加算器42に供給する。加算器42は通常は前クロ
ックの差分D2対応のデータF3と差分D1とを加算し
すなわちクロック毎の積分値である差分D2を除算器4
7と加算器43とスイッチ45とに供給する。除算器4
7は差分D2をインクリメント値Hincで割ることで
スキュー補正値kを算出し出力する。加算器43は差分
D2とインクリメント値Hincとの差分D3を算出し
スイッチ45に供給する。ここで、加算器43はD3が
プラスすなわち差分D2(=D1)がインクリメント値
Hincを超えるとキャリーCOを出力しスイッチ45
を差分D3側に切替え、選択データS1としてスイッチ
46に供給する。スイッチ45はこの選択データS1
(=差分D3)を選択データS2としてFF44に供給
する。FF44は選択データ4Dの供給に応答して1ク
ロック分遅延したデータF3を加算器42に供給する。
これにより、差分D1すなわち(Hinc−Hwan
t)の加算値がインクリメント値Hincを超えると剰
余が巡回することになり、所要のビット幅を削減でき
る。また、スイッチ46は通常は選択信号S1を選択信
号S2として選択し、1H毎にVCOから供給されるオ
フセット値OFを選択信号S2として選択する。
Referring again to FIG. 2, the operation of the skew measuring section 4 for executing the above-described operation will be described.
1 calculates the difference D1 between the increment value Hinc and the expected value Hwant = (Hinc−Hwant) for each clock, and supplies the difference to the adder. The adder 42 normally adds the data D3 corresponding to the difference D2 of the previous clock and the difference D1, that is, adds the difference D2, which is an integrated value for each clock, to the divider 4
7, the adder 43 and the switch 45. Divider 4
7 calculates and outputs the skew correction value k by dividing the difference D2 by the increment value Hinc. The adder 43 calculates a difference D3 between the difference D2 and the increment value Hinc and supplies the difference D3 to the switch 45. Here, the adder 43 outputs the carry CO when D3 is positive, that is, when the difference D2 (= D1) exceeds the increment value Hinc, and the switch 45
Is switched to the difference D3 side and supplied to the switch 46 as selection data S1. The switch 45 selects this selection data S1
(= Difference D3) is supplied to the FF 44 as selection data S2. The FF 44 supplies the adder 42 with the data F3 delayed by one clock in response to the supply of the selection data 4D.
As a result, the difference D1, that is, (Hinc−Hwan)
When the added value of t) exceeds the increment value Hinc, the remainder circulates, and the required bit width can be reduced. The switch 46 normally selects the selection signal S1 as the selection signal S2, and selects the offset value OF supplied from the VCO every 1H as the selection signal S2.

【0035】[0035]

【発明の効果】以上説明したように、本発明のスキュー
補正回路は、クロック信号の供給毎にインクリメント値
とインクリメント期待値とを比較して量子化ビデオデー
タのスキューを測定しスキュー補正値を算出するスキュ
ー測定手段を備え、既知の値であるVCOのインクリメ
ント値を使ってスキュー補正値kを求めているので、従
来必要であったカウンタを削減でき、VCOの制御精度
と同等までスキュー補正の精度を向上することが可能な
上、回路規模の増加を少なくできるというという効果が
ある。
As described above, the skew correction circuit of the present invention measures the skew of quantized video data by comparing the increment value and the expected increment value each time the clock signal is supplied, and calculates the skew correction value. Since the skew correction value k is obtained by using a known value of the increment of the VCO, the counter required in the past can be reduced, and the skew correction accuracy can be reduced to the same level as the VCO control accuracy. Can be improved, and an increase in circuit scale can be reduced.

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

【図1】本発明のスキュー補正回路の一実施の形態を示
すブロック図である。
FIG. 1 is a block diagram illustrating an embodiment of a skew correction circuit according to the present invention.

【図2】図1のスキュー測定部の構成を示すブロック図
である。
FIG. 2 is a block diagram illustrating a configuration of a skew measuring unit in FIG. 1;

【図3】本実施の形態のスキュー補正回路におけるデー
タの間引きおよびデータの補間の各々の補正方法を説明
する説明図である。
FIG. 3 is an explanatory diagram for explaining a correction method of each of data thinning and data interpolation in the skew correction circuit of the present embodiment.

【図4】従来のスキュー補正回路におけるデータの間引
きおよびデータの補間の各々の補正方法を説明する説明
図である。
FIG. 4 is an explanatory diagram for explaining each correction method of data thinning and data interpolation in a conventional skew correction circuit.

【図5】従来のスキュー補正回路の一例を示すブロック
図である。
FIG. 5 is a block diagram illustrating an example of a conventional skew correction circuit.

【図6】図5のスキュー補正部の構成を示すブロック図
である。
FIG. 6 is a block diagram illustrating a configuration of a skew correction unit in FIG. 5;

【図7】図5のスキュー測定部の構成を示すブロック図
である。
FIG. 7 is a block diagram illustrating a configuration of a skew measuring unit in FIG. 5;

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

1 スキュー補正部 2 同期分離回路 3 PLL部 4,5 スキュー測定部 11,12,44 フリップフロップ(FF) 13,14,17,41,42,43 加算器 15,45,46 スイッチ 16 乗算器 47 除算器 51 カウンタ 52 演算回路 521 演算器 522 積分器 Reference Signs List 1 skew correction unit 2 synchronization separation circuit 3 PLL unit 4, 5 skew measurement unit 11, 12, 44 flip-flop (FF) 13, 14, 17, 41, 42, 43 adder 15, 45, 46 switch 16 multiplier 47 Divider 51 Counter 52 Arithmetic circuit 521 Arithmetic unit 522 Integrator

───────────────────────────────────────────────────── フロントページの続き (72)発明者 稲川 剛良 神奈川県川崎市中原区小杉町一丁目403 番53 日本電気アイシーマイコンシステ ム株式会社内 (58)調査した分野(Int.Cl.6,DB名) H04N 5/91 - 5/956 ────────────────────────────────────────────────── ─── of the front page continued (72) inventor Inagawa TsuyoshiRyo Kanagawa Prefecture, Nakahara-ku, Kawasaki, Kosugi-cho, chome 403 No. 53 NEC IC microcomputer system within Co., Ltd. (58) investigated the field (Int.Cl. 6, (DB name) H04N 5/91-5/956

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ビデオ信号をデジタル化した量子化ビデ
オデータから水平同期信号を取り出す同期分離手段と、 前記水平同期信号の供給に応答してVCOのインクリメ
ント値を可変することによりこの水平同期信号に同期さ
せるデジタルPLL手段と、 クロック信号の供給毎に前記インクリメント値と予め定
めたインクリメント期待値とを比較して前記量子化ビデ
オデータの量子化時のサンプリングクロックと前記水平
同期信号との位相差に起因したこの量子化ビデオデータ
の期待値との差であるスキューを測定しスキュー補正値
を算出するスキュー測定手段と、 前記スキュー補正値を用いて前記量子化ビデオデータの
スキュー補正を行うスキュー補正手段とを備えることを
特徴とするスキュー補正回路。
1. A synchronization separating means for extracting a horizontal synchronizing signal from quantized video data obtained by digitizing a video signal, and changing the increment value of a VCO in response to the supply of the horizontal synchronizing signal to thereby generate a horizontal synchronizing signal. Digital PLL means for synchronizing, and comparing the increment value with a predetermined expected expected value every time a clock signal is supplied, to obtain a phase difference between a sampling clock at the time of quantization of the quantized video data and the horizontal synchronization signal. A skew measuring unit for measuring a skew which is a difference from the expected value of the quantized video data and calculating a skew correction value; and a skew correction unit for performing a skew correction of the quantized video data using the skew correction value. And a skew correction circuit.
【請求項2】 前記スキュー測定手段が、クロック信号
の供給毎に前記インクリメント値と前記インクリメント
期待値の差分である第1の差分を算出する第1の加算器
と、 遅延信号と前記第1の差分を1クロック毎に加算して積
分値を出力する第2の加算器と、 前記積分値と前記インクリメント値との差分である第2
の差分を算出するとともにこの第2の差分が正の場合に
キャリー信号を発生する第3の加算器と、 前記キャリー信号の供給に応答して前記積分値と前記第
2の差分とのいずれか一方を選択して第1の選択信号と
して出力する第1のスイッチと、 通常時は前記第1の選択信号を第2の選択信号として出
力し前記水平同期信号の1周期毎に前記VCOのオフセ
ット値を第2の選択信号として出力するよう切替る第2
のスイッチと、 第2の選択信号を1クロック分遅延させ前記遅延信号を
出力するフリップフロップ回路と、 前記積分値を前記インクリメント値で除算して前記スキ
ュー値を算出する除算器とを備えることを特徴とする請
求項1記載のスキュー補正回路。
A second adder for calculating a first difference that is a difference between the increment value and the expected increment value each time a clock signal is supplied; a skew measuring unit; A second adder that adds the difference every clock and outputs an integrated value; and a second adder that is a difference between the integrated value and the increment value.
And a third adder for calculating a difference between the second difference and the carry signal when the second difference is positive; and a third adder for calculating the difference between the integral value and the second difference in response to the supply of the carry signal. A first switch for selecting one of the signals and outputting the selected signal as a first selection signal; and normally outputting the first selection signal as a second selection signal and outputting the VCO offset every one cycle of the horizontal synchronization signal. A second switch for outputting the value as the second selection signal
, A flip-flop circuit that delays the second selection signal by one clock and outputs the delay signal, and a divider that divides the integral value by the increment value to calculate the skew value. The skew correction circuit according to claim 1, wherein:
【請求項3】 前記インクリメント期待値をプログラマ
ブルに設定可能とすることを特徴とする請求項1記載の
スキュー補正回路。
3. The skew correction circuit according to claim 1, wherein said expected increment value is programmable.
JP8200707A 1996-07-30 1996-07-30 Skew correction circuit Expired - Fee Related JP2968730B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8200707A JP2968730B2 (en) 1996-07-30 1996-07-30 Skew correction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8200707A JP2968730B2 (en) 1996-07-30 1996-07-30 Skew correction circuit

Publications (2)

Publication Number Publication Date
JPH1051743A JPH1051743A (en) 1998-02-20
JP2968730B2 true JP2968730B2 (en) 1999-11-02

Family

ID=16428895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8200707A Expired - Fee Related JP2968730B2 (en) 1996-07-30 1996-07-30 Skew correction circuit

Country Status (1)

Country Link
JP (1) JP2968730B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101448919B1 (en) 2007-12-28 2014-10-13 삼성전자주식회사 Deskew system for eliminating skew between data signals and a clock and circuits for the deskew system

Also Published As

Publication number Publication date
JPH1051743A (en) 1998-02-20

Similar Documents

Publication Publication Date Title
US4675724A (en) Video signal phase and frequency correction using a digital off-tape clock generator
EP0443945B1 (en) Sampling rate converter
GB2241620A (en) Delay devices
JPH10200594A (en) Symbol-timing restoring circuit in digital demodulator
JP2518148B2 (en) Clock dependent synchronization method
JP3311153B2 (en) Automatic frequency control device
US6385267B1 (en) System and method for locking disparate video formats
KR970001636B1 (en) Time aixs compensation apparatus of image signal
JP2001513303A (en) Output time base collector
JP2968730B2 (en) Skew correction circuit
JP3032430B2 (en) Digital automatic frequency adjustment method and its circuit
JPH08125884A (en) Pll circuit
JP4200227B2 (en) Synchronization signal processing circuit
JP3204175B2 (en) Clock phase synchronization circuit
JP3465223B2 (en) Leak integral averaging circuit and transmission line clock recovery circuit
JP2532608B2 (en) Time axis correction device
JP2521184B2 (en) Clock signal generation circuit locked to a specific phase of the color burst signal
US5631708A (en) Automatic phase control apparatus
KR100316533B1 (en) Floating point frequency composition apparatus using multi-output phase locked loop
JPS6352496B2 (en)
JPS63144678A (en) Phase synchronous oscillator circuit
KR0152029B1 (en) Synchronously added averaging apparatus and method by interpolation
JPH0429410A (en) Phase locked loop circuit
JPS62115974A (en) Digital synchronizing circuit
JP2833844B2 (en) Phase holding circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990721

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees