[go: up one dir, main page]

JP2004328094A - Video signal processing apparatus and method - Google Patents

Video signal processing apparatus and method Download PDF

Info

Publication number
JP2004328094A
JP2004328094A JP2003116595A JP2003116595A JP2004328094A JP 2004328094 A JP2004328094 A JP 2004328094A JP 2003116595 A JP2003116595 A JP 2003116595A JP 2003116595 A JP2003116595 A JP 2003116595A JP 2004328094 A JP2004328094 A JP 2004328094A
Authority
JP
Japan
Prior art keywords
image data
circuit
input
clock
signal
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.)
Withdrawn
Application number
JP2003116595A
Other languages
Japanese (ja)
Inventor
Haruichi Emoto
晴一 江本
Kazunori Yasuda
和徳 安田
Tadayuki Ishikawa
忠幸 石川
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2003116595A priority Critical patent/JP2004328094A/en
Publication of JP2004328094A publication Critical patent/JP2004328094A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Synchronizing For Television (AREA)

Abstract

【課題】PLLを使用せずに、2つのデジタルの映像信号を同期させる。
【解決手段】位相検出回路38は、非同期FIFO回路31から入力された画像データの開始位置を示す同期信号と非同期FIFO回路35から入力された画像データの開始位置を示す同期信号の位相差を検出し、検出結果を選択回路41に供給する。選択回路41は、位相検出回路38から供給された検出結果に基づいて、非同期FIFO回路31からの画像データと非同期FIFO回路35の画像データの位相を揃えて画像合成回路7に出力できるように、端子a、端子b、または端子cを選択する。
【選択図】 図1
Kind Code: A1 Two digital video signals are synchronized without using a PLL.
A phase detection circuit detects a phase difference between a synchronization signal indicating a start position of image data input from an asynchronous FIFO circuit and a synchronization signal indicating a start position of image data input from an asynchronous FIFO circuit. Then, the detection result is supplied to the selection circuit 41. The selection circuit 41 adjusts the phases of the image data from the asynchronous FIFO circuit 31 and the image data from the asynchronous FIFO circuit 35 based on the detection result supplied from the phase detection circuit 38 and outputs the same to the image synthesis circuit 7. Select terminal a, terminal b, or terminal c.
[Selection diagram] Fig. 1

Description

【0001】
【発明の属する技術分野】
本発明は、映像信号処理装置および方法に関し、特に、例えば、映像信号の同期処理を行う場合に用いて好適な映像信号処理装置および方法に関する。
【0002】
【従来の技術】
従来、テレビジョンシステムにおける水平同期回路では、水平同期信号を比較パルスとし、VOC(Voltage Controlled Oscillator:電圧制御発振器)の出力を分周Nで分周したものを基準パルスとしたPLL(Phase Locked Loop:位相同期回路)システムによって、各種タイミングパルスが生成されている。PLLとは、外部から入力された基準信号と、ループ内の発振器(VOC)の出力、もしくは、発振器の出力を分周Nで分周したパルス信号とが、同一の周波数および位相となるように、ループ内の発振器にフィードバック制御をかけて発振周波数を調整する発振回路のことである。
【0003】
このように、テレビジョンシステムに用いられてきたPLLシステムでは、同期信号中のノイズなどを除去することにより、ジッタ除去を行うようにしている(特許文献1参照)。
【0004】
【特許文献1】
特開平10−327333号公報
【0005】
【発明が解決しようとする課題】
しかしながら、現在では、映像信号をアナログ信号として処理せず、離散的な数値として処理する、いわゆるデジタル信号処理が主流となっている。従って、従来のアナログ信号を処理するためのPLLシステムが、デジタルの映像信号の入力を受けた場合、発振器(VOC)の出力はジッタの多いものとなってしまう。
【0006】
ところで、2つのデジタルの映像信号が別々の画像生成回路にて生成され、それらが画像合成回路によって合成されるような場合、画像合成回路では、2つの画像生成回路からそれぞれ出力されるクロックを受け、画像合成に用いるクロックに乗せ換えて処理を行う必要がある。
【0007】
しかしながら、2つの画像生成回路の遅延量は、不明もしくは不定であり、これら2つのクロック間の位相関係に何の制限も与えることができず、2つのデジタルの映像信号を同期させることが困難である課題があった。
【0008】
本発明はこのような状況に鑑みてなされたものであり、PLLを使用せずに、2つのデジタルの映像信号を同期させて合成処理などを行うことができるようにするものである。
【0009】
【課題を解決するための手段】
本発明の映像信号処理装置は、第1のクロック信号に同期して生成された第1の画像データを入力する第1の入力手段と、第1のクロック信号と内部クロック信号の位相差に基づいて、第1の画像データを、第1の画像データの同期信号とともに出力する第1の出力手段と、第2のクロック信号に同期して生成された第2の画像データを入力する第2の入力手段と、第2のクロック信号と内部クロック信号の位相差に基づいて、第2の画像データを、第2の画像データの同期信号とともに出力する第2の出力手段と、第1の画像データの同期信号と第2の画像データの同期信号の位相差を検出する検出手段と、検出手段による検出結果に基づいて、第2の画像データの遅延量を選択する選択手段とを備えることを特徴とする。
【0010】
前記第1の出力手段により出力された第1の画像データを遅延させる遅延手段をさらに設けるようにすることができる。
【0011】
前記選択手段は、遅延手段により遅延された第1の画像データに、第2の画像データを同期させる遅延量を選択するようにすることができる。
【0012】
前記第1および第2のクロック信号、並びに内部クロックは、同じ周波数であるものとすることができる。
【0013】
本発明の映像信号処理方法は、第1のクロック信号に同期して生成された第1の画像データを入力する第1の入力ステップと、第1のクロック信号と内部クロック信号の位相差に基づいて、第1の画像データを、第1の画像データの同期信号とともに出力する第1の出力ステップと、第2のクロック信号に同期して生成された第2の画像データを入力する第2の入力ステップと、第2のクロック信号と内部クロック信号の位相差に基づいて、第2の画像データを、第2の画像データの同期信号とともに出力する第2の出力ステップと、第1の画像データの同期信号と第2の画像データの同期信号の位相差を検出する検出ステップと、検出ステップの処理による検出結果に基づいて、第2の画像データの遅延量を選択する選択ステップとを含むことを特徴とする。
【0014】
本発明においては、第1のクロック信号に同期して生成された第1の画像データが入力され、第1のクロック信号と内部クロックの位相差に基づいて、第1の画像データが、第1の画像データの同期信号とともに出力され、第2のクロック信号に同期して生成された第2の画像データが入力され、第2のクロックと内部クロックの位相差に基づいて、第2の画像データが、第2の画像データの同期信号とともに出力され、第1の画像データの同期信号と第2の画像データの同期信号の位相差が検出され、その検出結果に基づいて、第2の画像データの遅延量が選択される。
【0015】
【発明の実施の形態】
以下に本発明の実施の形態を説明するが、請求項に記載の構成要件と、発明の実施の形態における具体例との対応関係を例示すると、次のようになる。この記載は、請求項に記載されている発明をサポートする具体例が、発明の実施の形態に記載されていることを確認するためのものである。従って、発明の実施の形態中には記載されているが、構成要件に対応するものとして、ここには記載されていない具体例があったとしても、そのことは、その具体例が、その構成要件に対応するものではないことを意味するものではない。逆に、具体例が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その具体例が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。
【0016】
さらに、この記載は、発明の実施の形態に記載されている具体例に対応する発明が、請求項に全て記載されていることを意味するものではない。換言すれば、この記載は、発明の実施の形態に記載されている具体例に対応する発明であって、この出願の請求項には記載されていない発明の存在、すなわち、将来、分割出願されたり、補正により追加される発明の存在を否定するものではない。
【0017】
請求項1に記載の映像信号処理装置(例えば、図1の映像信号処理回路6)は、第1のクロック信号に同期して生成された第1の画像データを入力する第1の入力手段(例えば、図1の非同期FIFO回路31のデータ入力端子D2)と、第1のクロック信号と内部クロック信号の位相差に基づいて、第1の画像データを、第1の画像データの同期信号とともに出力する第1の出力手段(例えば、図1の非同期FIFO回路31のデータ出力端子Q2と同期信号出力端子Q1)と、第2のクロック信号に同期して生成された第2の画像データを入力する第2の入力手段(例えば、図1の非同期FIFO回路35のデータ入力端子D2)と、第2のクロック信号と内部クロック信号の位相差に基づいて、第2の画像データを、第2の画像データの同期信号とともに出力する第2の出力手段(例えば、図1の非同期FIFO回路35のデータ出力端子Q2と同期信号出力端子Q1)と、第1の画像データの同期信号と第2の画像データの同期信号の位相差を検出する検出手段(例えば、図1の位相検出回路38)と、検出手段による検出結果に基づいて、第2の画像データの遅延量を選択する選択手段(例えば、図1の選択回路41)とを備えることを特徴とする。
【0018】
請求項2に記載の映像信号処理装置は、第1の出力手段により出力された第1の画像データを遅延させる遅延手段(例えば、図1の遅延回路34)をさらに備えることを特徴とする。
【0019】
請求項3に記載の映像信号処理装置の選択手段は、遅延手段により遅延された第1の画像データに、第2の画像データを同期させる遅延量を選択する(例えば、図1の選択回路41の端子a,b,cを選択する)ことを特徴とする。
【0020】
請求項4に記載の映像信号処理装置の第1および第2のクロック信号、並びに内部クロック信号は、同じ周波数である(例えば、図1のクロック発生回路1で発生されるクロック信号と同じ周波数である)ことを特徴とする。
【0021】
請求項5に記載の映像信号処理方法は、第1のクロック信号(例えば、図2B、図3B、または図4Bに示すクロック信号)に同期して生成された第1の画像データ(例えば、図2C、図3C、または図4Cに示す画像データ)を入力する第1の入力ステップと、第1のクロック信号と内部クロック信号(例えば、図2E、図3E、または図4Eに示す内部処理クロック信号)の位相差に基づいて、第1の画像データ(例えば、図2F、図3F、または図4Fに示す画像データ)を、第1の画像データの同期信号(図2G、図3G、または図4Gに示す同期信号)とともに出力する第1の出力ステップと、第2のクロック信号(例えば、図2I、図3I、または図4Iに示すクロック信号)に同期して生成された第2の画像データ(例えば、図2J、図3J、または図4Jに示す画像データ)を入力する第2の入力ステップと、第2のクロック信号と内部クロック信号(例えば、図2L、図3L、または図4Lに示す内部処理クロック信号)の位相差に基づいて、第2の画像データ(例えば、図2M、図3M、または図4Mに示す画像データ)を、第2の画像データの同期信号(図2N、図3N、または図4Nに示す同期信号)とともに出力する第2の出力ステップと、第1の画像データの同期信号と第2の画像データの同期信号の位相差を検出する検出ステップと、検出ステップの処理による検出結果に基づいて、第2の画像データの遅延量を選択する選択ステップとを含むことを特徴とする。
【0022】
以下に、本発明の実施の形態について図面を参照して説明する。
【0023】
図1は、本発明を適用した映像信号処理システムの構成例を示している。同図に示されるように、映像信号処理システムは、クロック発生回路1、画像生成回路2,3、増幅器4、リセット信号出力回路5、映像信号処理回路6、および画像合成回路7などで構成されており、映像信号処理回路6は、非同期FIFO(First In First Out)回路31,35、遅延回路32,36、アンド回路33,37、遅延回路34、位相検出回路38、遅延回路39,40、および選択回路41で構成されている。
【0024】
クロック発生回路1は、高周波数のクロック信号を発生し、それを増幅器4、画像生成回路2、および画像生成回路3にそれぞれ出力する。
【0025】
画像生成回路2は、クロック発生回路1から入力されたクロック信号を増幅器11で増幅し、非同期FIFO回路31に出力する。画像生成回路2はまた、クロック発生回路1から入力されたクロック信号に基づいて、デジタルの画像信号(以下、画像データと称する)を生成し、生成した画像データの開始位置を示す同期信号(例えば、HDISPなど)とともに、非同期FIFO回路31に出力する。
【0026】
同様に、画像生成回路3は、クロック発生回路1から入力されたクロック信号を増幅器21で増幅し、非同期FIFO回路35に出力する。画像生成回路3はまた、クロック発生回路1から入力されたクロック信号に基づいて、画像データを生成し、その開始位置を示す同期信号とともに、非同期FIFO回路35に出力する。
【0027】
なお、画像生成回路2,3は、同一の水平ドット数、および同一の垂直ライン数で動作しており、それらが生成した画像データは、増幅器11,21から出力されるクロック信号に対するセットアップ・ホールドにより規定される信号方式で、非同期FIFO回路31,35にそれぞれ入力される。
【0028】
増幅器4は、クロック発生回路1から入力されたクロック信号を増幅し、非同期FIFO回路31、非同期FIFO回路35、遅延回路34、および画像合成回路7にそれぞれ出力する。リセット信号出力回路5は、非同期FIFO回路31および非同期FIFO回路35にそれぞれリセット信号を出力し、所定のタイミングで、そのリセットを解除する。
【0029】
非同期FIFO回路31のクロック端子wckには、画像生成回路2からクロック信号が入力され、クロック端子rckには、増幅器4から内部処理クロック信号が入力され、非同期リセット端子rstには、リセット信号出力回路5からリセット信号が入力される。
【0030】
非同期FIFO回路31は、非同期リセット端子rstに入力されているリセット信号によりリセットがかけられているが、所定のタイミングで、リセットが解除されると、データ入力端子D2に、画像生成回路2から画像データが入力され、同期信号入力端子D1に、画像生成回路2から同期信号が入力される。
【0031】
また非同期FIFO回路31は、リセット解除後データが入力されることによって、有効にされていたエンプティ端子/emp(負論理)のステータスフラグが無効になる。本信号をリード信号として、遅延回路32に出力するとともに、アンド回路33の一方の入力に供給する。遅延回路32は、入力端子Dに入力されたリード信号を1クロックだけ遅延し、出力端子Qからアンド回路33の他方の入力に供給する。アンド回路33は、非同期FIFO回路31の出力と遅延回路32の出力の論理積を演算し、演算結果を非同期FIFO回路31に出力する。
【0032】
非同期FIFO回路31は、読み出し検出端子REにリード信号が入力された場合、クロック端子wckに入力されたクロック信号とクロック端子rckに入力された内部処理クロック信号の位相を比較し、その比較結果に基づいて、非同期FIFO回路31内の画像データを読み出し、データ出力端子Q2から遅延回路34に出力するとともに、その画像データの開始位置を示す同期信号を同期信号出力端子Q1から位相検出回路38に出力する。
【0033】
すなわち、非同期FIFO回路31は、遅延回路32によりリード信号を1クロック遅延させることにより、非同期FIFO回路31内のデータ残量が少なくとも2になってから読み出しを開始する、深さ(バッファ量)2以上のデバイスである。
【0034】
遅延回路34は、増幅器4から入力された内部処理クロック信号に基づいて、非同期FIFO回路31からデータ入力端子Dに入力された画像データを1クロックだけ遅延し、データ出力端子Qから画像生成回路7に出力する。
【0035】
非同期FIFO回路35のクロック端子wckには、画像生成回路3からクロック信号が入力され、クロック端子rckには、増幅器4から内部処理クロック信号が入力され、非同期リセット端子rstには、リセット信号出力回路5からリセット信号が入力される。
【0036】
非同期FIFO回路35は、非同期リセット端子rstに入力されているリセット信号によりリセットがかけられているが、所定のタイミングで、リセットが解除されると、データ入力端子D2に、画像生成回路3から画像データが入力され、同期信号入力端子D1に、画像生成回路3から同期信号が入力される。
【0037】
また非同期FIFO回路35は、リセット解除後データが入力されることによって、有効にされていたエンプティ端子/emp(負論理)のステータスフラグが無効になる。本信号をリード信号として、遅延回路36に出力するとともに、アンド回路37の一方の入力に供給する。遅延回路36は、入力端子Dに入力されたリード信号を1クロックだけ遅延し、出力端子Qからアンド回路37の他方の入力に供給する。アンド回路37は、非同期FIFO回路35の出力と遅延回路36の出力の論理積を演算し、演算結果を非同期FIFO回路35に出力する。
【0038】
非同期FIFO回路35は、読み出し検出端子REにリード信号が入力された場合、クロック端子wckに入力されたクロック信号とクロック端子rckに入力された内部処理クロック信号の位相を比較し、その比較結果に基づいて、非同期FIFO回路35内の画像データを読み出し、データ出力端子Q2から、直接選択回路41に出力するか、遅延回路39を介して選択回路41に出力するか、あるいは遅延回路39および遅延回路40を介して選択回路41に出力する。また非同期FIFO回路35は、選択回路41に出力した画像データの開始位置を示す同期信号を同期信号出力端子Q1から位相検出回路38に出力する。
【0039】
すなわち、非同期FIFO回路35は、遅延回路36によりリード信号を1クロック遅延させることにより、非同期FIFO回路35内のデータ残量が少なくとも2になってから読み出しを開始する、深さ2以上のデバイスである。
【0040】
位相検出回路38は、非同期FIFO回路31,35からそれぞれ入力された同期信号の位相差を検出し、検出結果を選択回路41に供給する。選択回路41は、位相検出回路38から供給された検出結果(位相差)に基づいて、端子a、端子b、または端子cを選択する。
【0041】
例えば、非同期FIFO回路31から入力された同期信号が非同期FIFO回路35から入力された同期信号より、その開始位置が進んでいる場合、選択回路41は、端子aを選択する。これにより、非同期FIFO回路35から出力された画像データは、そのまま(遅延せずに)、選択回路41の出力端子dから画像合成回路7に出力される。
【0042】
また例えば、非同期FIFO回路31から入力された同期信号と非同期FIFO回路35から入力された同期信号が同位相の場合、選択回路41は、端子bを選択する。これにより、非同期FIFO回路35から出力された画像データは、遅延回路39で1クロックだけ遅延され、選択回路41の出力端子dから画像合成回路7に出力される。
【0043】
また例えば、非同期FIFO回路31から入力された同期信号が非同期FIFO回路35から入力された同期信号より、その開始位置が遅れている場合、選択回路41は、端子cを選択する。これにより、非同期FIFO回路35から出力された画像データは、遅延回路39で1クロックだけ遅延され、さらに、遅延回路40で1クロックだけ遅延され、選択回路41の出力端子dから画像合成回路7に出力される。
【0044】
画像合成回路7は、増幅器4から入力された内部処理クロック信号に基づいて、位相が揃えられた非同期FIFO回路31からの画像データと、非同期FIFO回路35からの画像データを合成し、出力する。
【0045】
次に、図2乃至図4のタイミングチャートを参照して、選択回路41の選択動作について説明する。まず、図2のタイミングチャートを参照して、選択回路41の端子aが選択される場合の動作について説明する。
【0046】
映像信号処理回路6にリセットがかけられた状態で、非同期FIFO回路31のクロック端子wckには、画像生成回路2の増幅器11で増幅されたクロック信号WA1乃至WA5が入力され(図2B)、非同期FIFO回路35のクロック端子wckには、画像生成回路3の増幅器21で増幅されたクロック信号WB1乃至WB5が入力されている(図2I)。また、非同期FIFO回路31のクロック端子rckには、増幅器4から内部処理クロック信号RA1乃至RA5が入力され(図2E)、非同期FIFO回路35のクロック端子rckには、増幅器4から内部処理クロック信号RB1乃至RB5が入力されている(図2L)。
【0047】
そして、リセットが解除されると(図2A)、非同期FIFO回路31のデータ入力端子D2には、画像生成回路2で、リセット解除直後の最初のクロック信号WA2に基づいて生成された画像データDA1の入力が開始され(図2C)、同期信号入力端子D1には、画像データDA1の開始位置を示す同期信号SAが入力される(図2D)。また、非同期FIFO回路35のデータ入力端子D2には、画像生成回路3で、リセット解除直後の最初のクロック信号WB2に基づいて生成された画像データDB1の入力が開始され(図2J)、同期信号入力端子D1には、画像データDB1の開始位置を示す同期信号SBが入力される(図2K)。
【0048】
ここで、非同期FIFO回路31は、リセット解除直後にクロック端子wckに入力されたクロック信号WA2(図2B)とクロック端子rckに入力された内部処理クロック信号RA2(図2E)の位相を比較する。同図に示されるように、クロック信号WA2の開始位置は、内部処理クロック信号RA2の開始位置に較べて進んでいる。この場合、非同期FIFO回路31は、直ちに、データ入力端子D2に入力された画像データの読み出しを開始するが、遅延回路32により読み出し開始位置が1クロックだけ遅延されているため、データ残量が2になってから読み出しを開始する。
【0049】
すなわち、非同期FIFO回路31に画像データDA1および画像データDA2が蓄積されると(図2C)、それらが読み出され、データ出力端子Q2から遅延回路34に出力される(図2F)。また、同期信号出力端子Q1から、画像データDA1の開始位置を示す同期信号SAが位相検出回路38に出力される(図2G)。
【0050】
同様に、非同期FIFO回路35も、リセット解除直後にクロック端子wckに入力されたクロック信号WB2(図2I)とクロック端子rckに入力された内部処理クロック信号RB2(図2L)の位相を比較する。同図に示されるように、クロック信号WB2の開始位置は、内部処理クロック信号RB2の開始位置に較べて遅れている。この場合、非同期FIFO回路35は、遅延回路36により読み出し開始位置が1クロックだけ遅延されているため、データ残量が3になってから読み出しを開始する。
【0051】
すなわち、非同期FIFO回路35に画像データDB1乃至DB3が蓄積されると(図2J)、それらが読み出され、データ出力端子Q2から選択回路41に出力される(図2M)。また、同期信号出力端子Q1から、画像データDB1の開始位置を示す同期信号SBが位相検出回路38に出力される(図2N)。
【0052】
遅延回路34は、非同期FIFO回路31から入力された画像データを1クロックだけ遅延し、画像生成回路7に出力する(図2H)。
【0053】
位相検出回路38は、非同期FIFO回路31から入力された同期信号SA(図2G)と非同期FIFO回路35から入力された同期信号SB(図2N)の位相差を検出し、検出結果を選択回路41に供給する。いまの場合、同期信号SAが同期信号SBより1クロック進んでいるため、非同期FIFO回路31では、非同期FIFO回路35より1クロック早く画像データが読み出されている。
【0054】
しかしながら、非同期FIFO回路31で読み出しが開始された画像データDA1は、遅延回路34で1クロック遅延された後、画像合成回路7に出力されているため、非同期FIFO回路31より1クロック遅れて読み出しが開始された非同期FIFO回路35の画像データDB1は、非同期FIFO回路31と同じタイミングで画像合成回路7に出力されることになる。従って、選択回路41は、端子aを選択し、非同期FIFO回路35で読み出しが開始された画像データDB1を、直接(遅延回路を介さずに)、画像合成回路7に出力する(図2O)。これにより、画像合成回路7には、非同期FIFO回路31から出力された画像データDA1と非同期FIFO回路35から出力された画像データDB1の位相が揃えられて入力されるため、容易に合成処理を行うことができる。
【0055】
以上のように、リセット解除直後において、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2(図2B)の開始位置が、クロック端子rckに入力された内部処理クロック信号RA2(図2E)の開始位置に較べて進んでおり、かつ、非同期FIFO回路35のクロック端子wckに入力されたクロック信号WB2(図2I)の開始位置が、クロック端子rckに入力された内部処理クロック信号RB2(図2L)の開始位置に較べて遅れている場合、選択回路41は、端子aを選択することにより、画像生成回路2,3で生成された画像データの位相を揃えて画像合成回路7に供給することができる。
【0056】
次に、図3のタイミングチャートを参照して、選択回路41の端子bが選択される場合の動作について説明する。
【0057】
映像信号処理回路6にリセットがかけられた状態で、非同期FIFO回路31のクロック端子wckには、画像生成回路2の増幅器11で増幅されたクロック信号WA1乃至WA5が入力され(図3B)、非同期FIFO回路35のクロック端子wckには、画像生成回路3の増幅器21で増幅されたクロック信号WB1乃至WB5が入力されている(図3I)。また、非同期FIFO回路31のクロック端子rckには、増幅器4から内部処理クロック信号RA1乃至RA5が入力され(図3E)、非同期FIFO回路35のクロック端子rckには、増幅器4から内部処理クロック信号RB1乃至RB5が入力されている(図3L)。
【0058】
そして、リセットが解除されると(図3A)、非同期FIFO回路31のデータ入力端子D2には、画像生成回路2で、リセット解除直後の最初のクロック信号WA2に基づいて生成された画像データDA1の入力が開始され(図3C)、同期信号入力端子D1には、画像データDA1の開始位置を示す同期信号SAが入力される(図3D)。また、非同期FIFO回路35のデータ入力端子D2には、画像生成回路3で、リセット解除直後の最初のクロック信号WB2に基づいて生成された画像データDB1の入力が開始され(図3J)、同期信号入力端子D1には、画像データDB1の開始位置を示す同期信号SBが入力される(図3K)。
【0059】
ここで、非同期FIFO回路31は、リセット解除直後にクロック端子wckに入力されたクロック信号WA2(図3B)とクロック端子rckに入力された内部処理クロック信号RA2(図3E)の位相を比較する。同図に示されるように、クロック信号WA2の開始位置は、内部処理クロック信号RA2の開始位置に較べて進んでいる。従って、上述したように、非同期FIFO回路31は、データ残量が2になってから読み出しを開始する。
【0060】
すなわち、非同期FIFO回路31に画像データDA1および画像データDA2が蓄積されると(図3C)、それらが読み出され、データ出力端子Q2から遅延回路34に出力される(図3F)。また、同期信号出力端子Q1から、画像データDA1の開始位置を示す同期信号SAが位相検出回路38に出力される(図3G)。
【0061】
同様に、非同期FIFO回路35も、リセット解除直後にクロック端子wckに入力されたクロック信号WB2(図3I)とクロック端子rckに入力された内部処理クロック信号RB2(図3L)の位相を比較する。同図に示されるように、クロック信号WB2の開始位置は、内部処理クロック信号RB2の開始位置に較べて進んでいる。従って、上述した非同期FIFO回路31と同様に、データ残量が2になってから読み出しを開始する。
【0062】
すなわち、非同期FIFO回路35に画像データDB1および画像データDB2が蓄積されると(図3J)、それらが読み出され、データ出力端子Q2から選択回路41に出力される(図3M)。また、同期信号出力端子Q1から、画像データDB1の開始位置を示す同期信号SBが位相検出回路38に出力される(図3N)。
【0063】
遅延回路34は、非同期FIFO回路31から入力された画像データを1クロックだけ遅延し、画像生成回路7に出力する(図3H)。
【0064】
位相検出回路38は、非同期FIFO回路31から入力された同期信号SA(図3G)と非同期FIFO回路35から入力された同期信号SB(図3N)の位相差を検出し、検出結果を選択回路41に供給する。いまの場合、同期信号SAと同期信号SBは同位相であるため、非同期FIFO回路31,35では、同じタイミングで画像データが読み出されている。
【0065】
しかしながら、上述したように、非同期FIFO回路31で読み出しが開始された画像データDA1は、遅延回路34で1クロック遅延された後、画像合成回路7に出力されているため、非同期FIFO回路31と同じタイミングで読み出しが開始された非同期FIFO回路35の画像データDB1は、非同期FIFO回路31より1クロック早く画像合成回路7に出力されることになる。従って、選択回路41は、端子bを選択し、非同期FIFO回路35で読み出しが開始された画像データDB1を遅延回路39で1クロックだけ遅延させた後、画像合成回路7に出力する(図3O)。これにより、画像合成回路7には、非同期FIFO回路31から出力された画像データDA1と非同期FIFO回路35から出力された画像データDB1の位相が揃えられて入力されるため、容易に合成処理を行うことができる。
【0066】
以上のように、リセット解除直後において、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2(図3B)の開始位置が、クロック端子rckに入力された内部処理クロック信号RA2(図3E)の開始位置に較べて進んでおり、かつ、非同期FIFO回路35のクロック端子wckに入力されたクロック信号WB2(図3I)の開始位置が、クロック端子rckに入力された内部処理クロック信号RB2(図3L)の開始位置に較べて進んでいる場合、選択回路41は、端子bを選択することにより、画像生成回路2,3で生成された画像データの位相を揃えて画像合成回路7に供給することができる。
【0067】
なお、リセット解除直後において、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2(図3B)の開始位置が、クロック端子rckに入力された内部処理クロック信号RA2(図3E)の開始位置に較べて遅れており、かつ、非同期FIFO回路35のクロック端子wckに入力されたクロック信号WB2(図3I)の開始位置が、クロック端子rckに入力された内部処理クロック信号RB2(図3L)の開始位置に較べて遅れている場合も、選択回路41で端子bが選択される。従って、この場合も、画像生成回路2,3で生成された画像データの位相を揃えて画像合成回路7に供給することができる。
【0068】
次に、図4のタイミングチャートを参照して、選択回路41の端子cが選択される場合の動作について説明する。
【0069】
映像信号処理回路6にリセットがかけられた状態で、非同期FIFO回路31のクロック端子wckには、画像生成回路2の増幅器11で増幅されたクロック信号WA1乃至WA6が入力され(図4B)、非同期FIFO回路35のクロック端子wckには、画像生成回路3の増幅器21で増幅されたクロック信号WB1乃至WB6が入力されている(図4I)。また、非同期FIFO回路31のクロック端子rckには、増幅器4から内部処理クロック信号RA1乃至RA6が入力され(図4E)、非同期FIFO回路35のクロック端子rckには、増幅器4から内部処理クロック信号RB1乃至RB6が入力されている(図4L)。
【0070】
そして、リセットが解除されると(図4A)、非同期FIFO回路31のデータ入力端子D2には、画像生成回路2で、リセット解除直後の最初のクロック信号WA2に基づいて生成された画像データDA1の入力が開始され(図4C)、同期信号入力端子D1には、画像データDA1の開始位置を示す同期信号SAが入力される(図4D)。また、非同期FIFO回路35のデータ入力端子D2には、画像生成回路3で、リセット解除直後の最初のクロック信号WB2に基づいて生成された画像データDB1の入力が開始され(図4J)、同期信号入力端子D1には、画像データDB1の開始位置を示す同期信号SBが入力される(図4K)。
【0071】
ここで、非同期FIFO回路31は、リセット解除直後にクロック端子wckに入力されたクロック信号WA2(図4B)とクロック端子rckに入力された内部処理クロック信号RA2(図4E)の位相を比較する。同図に示されるように、クロック信号WA2の開始位置は、内部処理クロック信号RA2の開始位置に較べて遅れている。従って、上述したように、非同期FIFO回路31は、データ残量が3になってから読み出しを開始する。
【0072】
すなわち、非同期FIFO回路31に画像データDA1乃至DA3が蓄積されると(図4C)、それらが読み出され、データ出力端子Q2から遅延回路34に出力される(図4F)。また、同期信号出力端子Q1から、画像データDA1の開始位置を示す同期信号SAが位相検出回路38に出力される(図4G)。
【0073】
同様に、非同期FIFO回路35も、リセット解除直後にクロック端子wckに入力されたクロック信号WB2(図3I)とクロック端子rckに入力された内部処理クロック信号RB2(図3L)の位相を比較する。同図に示されるように、クロック信号WB2の開始位置は、内部処理クロック信号RB2の開始位置に較べて進んでいる。従って、上述したように、データ残量が2になってから読み出しを開始する。
【0074】
すなわち、非同期FIFO回路35に画像データDB1および画像データDB2が蓄積されると(図4J)、それらが読み出され、データ出力端子Q2から選択回路41に出力される(図4M)。また、同期信号出力端子Q1から、画像データDB1の開始位置を示す同期信号SBが位相検出回路38に出力される(図4N)。
【0075】
遅延回路34は、非同期FIFO回路31から入力された画像データを1クロックだけ遅延し、画像生成回路7に出力する(図4H)。
【0076】
位相検出回路38は、非同期FIFO回路31から入力された同期信号SA(図4G)と非同期FIFO回路35から入力された同期信号SB(図4N)の位相差を検出し、検出結果を選択回路41に供給する。いまの場合、同期信号SAが同期信号SBより1クロック遅れているため、非同期FIFO回路31では、非同期FIFO回路35より1クロック遅れて画像データが読み出されている。
【0077】
しかしながら、上述したように、非同期FIFO回路31で読み出しが開始された画像データDA1は、遅延回路34で1クロックだけ遅延された後、画像合成回路7に出力されているため、非同期FIFO回路31より1クロック早く読み出しが開始された非同期FIFO回路35の画像データDB1は、非同期FIFO回路31より2クロック早く画像合成回路7に出力されることになる。従って、選択回路41は、端子cを選択し、非同期FIFO回路35で読み出しが開始された画像データDB1を遅延回路39で1クロックだけ遅延させ、さらに、遅延回路40で1クロックだけ遅延させた後、画像合成回路7に出力する(図4O)。これにより、画像合成回路7には、非同期FIFO回路31から出力された画像データDA1と非同期FIFO回路35から出力された画像データDB1の位相が揃えられて入力されるため、容易に合成処理を行うことができる。
【0078】
以上のように、リセット解除直後において、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2(図4B)の開始位置が、クロック端子rckに入力された内部処理クロック信号RA2(図4E)の開始位置に較べて遅れており、非同期FIFO回路35のクロック端子wckに入力されたクロック信号WB2(図4I)の開始位置が、クロック端子rckに入力された内部処理クロック信号RB2(図4L)の開始位置に較べて進んでいる場合、選択回路41は、端子cを選択することにより、画像生成回路2,3で生成された画像データの位相を揃えて画像合成回路7に供給することができる。
【0079】
以上においては、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2と、クロック端子rckに入力された内部処理クロック信号RA2の位相差、および、非同期FIFO回路35のクロック端子wckに入力されたクロック信号WB2と、クロック端子rckに入力された内部処理クロック信号RB2の位相差の組み合わせに応じて、選択回路41の選択を行うようにしたが、どの組合せであっても、リセット解除後は、非同期FIFO回路31,35に入力される画像データのサイズ(個数)と、非同期FIFO回路31,35から出力される画像データのサイズは同一である。従って、選択回路41は、リセット解除後に選択を変更することなく(すなわち、リセット解除直後に選択された回路で)、画像データの位相が揃えられた状態を維持し続けることができる。
【0080】
ただし、リセット解除して所定の時間が経過した後、画像生成回路2の増幅器11や画像生成回路3の増幅器21のクロックバッファの温度特性などにより、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2とクロック端子rckに入力された内部処理クロック信号RA2の位相関係が逆転した場合、または非同期FIFO回路35のクロック端子wckに入力されたクロック信号WB2とクロック端子rckに入力された内部処理クロック信号RB2の位相関係が逆転した場合、非同期FIFO回路31,35内に蓄積された画像データの個数が変化する。
【0081】
例えば、リセット当初、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2の開始位置が、クロック端子rckに入力された内部処理クロック信号RA2の開始位置に較べて進んでいたものが、所定の時間が経過した後に逆転した場合(クロック信号WA2の開始位置が、内部処理クロック信号RA2の開始位置に較べて遅れた場合)、非同期FIFO回路31内に蓄積された画像データは1個少なくなる。
【0082】
また例えば、リセット当初、非同期FIFO回路31のクロック端子wckに入力されたクロック信号WA2の開始位置が、クロック端子rckに入力された内部処理クロック信号RA2の開始位置に較べて遅れていたものが、所定の時間が経過した後に逆転した場合(クロック信号WA2の開始位置が、クロック信号RA2の開始位置に較べて進んだ場合)、非同期FIFO回路31内に蓄積された画像データは1個多くなる。
【0083】
しかしながら、クロック端子wckに入力されたクロック信号WA2とクロック端子rckに入力された内部処理クロック信号RA2は、いずれもクロック発生回路1から生成されたものであり、これ以上の変動は起こり得ないため、非同期FIFO回路31,35は、リセット直後に画像データが2個蓄積されてから読み出しを開始すれば充分である。
【0084】
以上のように、同一の発振器を基準に動作する映像信号処理システムにおいて問題となるクロックスキューを、PLLを使用せずに解決することができる。また、複数のLSIにまたがるデータ伝送で、クロックアウト端子を持つLSIを使用する場合に、特にその効果が期待できる。
【0085】
上述した一連の処理は、ハードウェアにより実行させることもできるし、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、ネットワークや記録媒体からインストールされる。
【0086】
図5は、汎用のコンピュータの内部の構成例を示す図である。コンピュータのCPU(Central Processing Unit)101は、ROM(Read Only Memory)102に記憶されているプログラム、または記憶部108からRAM(Random Access Memory)103にロードされたプログラムに従って各種の処理を実行する。RAM103にはまた、CPU101が各種の処理を実行する上において必要なデータなども適宜記憶される。
【0087】
CPU101、ROM102、およびRAM103は、バス104を介して相互に接続されている。このバス104にはまた、入出力インターフェース105も接続されている。
【0088】
入出力インターフェース105には、ボタン、スイッチ、キーボードあるいはマウスなどで構成される構成される入力部106、CRT(Cathode Ray Tube)やLCD(Liquid Crystal Display)などのディスプレイ、並びにスピーカなどで構成される出力部107、ハードディスクなどで構成される記憶部108、およびモデムやターミナルアダプタなどで構成される通信部109が接続されている。通信部109は、インターネットを含むネットワークを介して通信処理を行う。
【0089】
入出力インターフェース105にはまた、必要に応じてドライブ110が接続され、磁気ディスク、光ディスク、光磁気ディスク、あるいは半導体メモリなどよりなるリムーバブルメディア111が適宜装着され、そこから読み出されたコンピュータプログラムが、記憶部108にインストールされる。
【0090】
コンピュータにインストールされ、コンピュータによって実行可能な状態とされるプログラムを記録する記録媒体は、図5に示されるように、装置本体とは別に、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD−ROM(Compact Disc−Read Only Memory)、DVD(Digital Versatile Disc)を含む)、光磁気ディスク(MD(Mini−Disc)(登録商標)を含む)、もしくは半導体メモリなどよりなるリムーバブルメディア111により構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに提供される、プログラムが記録されているROM103またはハードディスクなどの記憶部108で構成される。
【0091】
なお、本明細書において、プログラム格納媒体に格納されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。
【0092】
また、本明細書において、システムとは、複数の装置により構成される装置全体を表わすものである。
【0093】
【発明の効果】
以上のように、本発明によれば、2つのデジタルの映像信号を同期させることが可能となる。特に、PLLを使用せずに、2つのデジタルの映像信号を同期させて、同一の発振器を基準に動作する場合に問題となるクロックスキューを解決した映像信号処理システムを構築することが可能となる。
【図面の簡単な説明】
【図1】本発明を適用した映像信号処理システムの構成例を示している。
【図2】選択回路の選択動作を説明するためのタイミングチャートである。
【図3】選択回路の他の選択動作を説明するためのタイミングチャートである。
【図4】選択回路の他の選択動作を説明するためのタイミングチャートである。
【図5】汎用のコンピュータの内部の構成例を示す図である。
【符号の説明】
1 クロック発生回路, 2,3 画像生成回路, 4 増幅器, 5 リセット信号出力回路, 6 映像信号処理回路, 7 画像合成回路, 11,21 増幅器, 31 非同期FIFO回路, 34 遅延回路, 35 非同期FIFO回路, 38 位相検出回路, 39,40 遅延回路, 41 選択回路
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a video signal processing device and method, and more particularly, to a video signal processing device and method suitable for use in performing, for example, video signal synchronization processing.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in a horizontal synchronization circuit in a television system, a horizontal synchronization signal is used as a comparison pulse, and an output of a VOC (Voltage Controlled Oscillator) is divided by N and a reference pulse is used as a reference pulse. Various phase pulses are generated by the system. The PLL is such that a reference signal input from the outside and an output of an oscillator (VOC) in a loop or a pulse signal obtained by dividing the output of the oscillator by N are the same in frequency and phase. Is an oscillation circuit that adjusts the oscillation frequency by performing feedback control on the oscillator in the loop.
[0003]
As described above, in the PLL system used in the television system, jitter is removed by removing noise or the like in the synchronization signal (see Patent Document 1).
[0004]
[Patent Document 1]
JP-A-10-327333
[0005]
[Problems to be solved by the invention]
However, at present, so-called digital signal processing in which a video signal is not processed as an analog signal but is processed as a discrete numerical value is in use. Therefore, when a conventional PLL system for processing an analog signal receives an input of a digital video signal, the output of the oscillator (VOC) has a large amount of jitter.
[0006]
In the case where two digital video signals are generated by separate image generation circuits and are synthesized by the image synthesis circuit, the image synthesis circuit receives clocks output from the two image generation circuits. In addition, it is necessary to perform processing by switching to a clock used for image synthesis.
[0007]
However, the delay amount of the two image generation circuits is unknown or indeterminate, and no limitation can be given to the phase relationship between these two clocks, and it is difficult to synchronize two digital video signals. There was an issue.
[0008]
The present invention has been made in view of such a situation, and it is an object of the present invention to perform a synthesizing process or the like by synchronizing two digital video signals without using a PLL.
[0009]
[Means for Solving the Problems]
The video signal processing apparatus according to the present invention is configured such that a first input means for inputting first image data generated in synchronization with a first clock signal, and a phase difference between the first clock signal and an internal clock signal. A first output unit that outputs the first image data together with a synchronization signal of the first image data, and a second output unit that inputs the second image data generated in synchronization with the second clock signal. Input means, second output means for outputting second image data together with a synchronization signal of the second image data based on the phase difference between the second clock signal and the internal clock signal, and first image data Detecting means for detecting a phase difference between the synchronizing signal and the synchronizing signal of the second image data, and selecting means for selecting a delay amount of the second image data based on a detection result by the detecting means. And
[0010]
The image processing apparatus may further include a delay unit that delays the first image data output by the first output unit.
[0011]
The selecting means may select a delay amount for synchronizing the second image data with the first image data delayed by the delay means.
[0012]
The first and second clock signals and the internal clock may be at the same frequency.
[0013]
A video signal processing method according to the present invention includes a first input step of inputting first image data generated in synchronization with a first clock signal, and a phase difference between the first clock signal and an internal clock signal. A first output step of outputting the first image data together with a synchronization signal of the first image data, and a second output step of inputting the second image data generated in synchronization with the second clock signal. An input step, a second output step of outputting second image data together with a synchronization signal of the second image data based on a phase difference between the second clock signal and the internal clock signal, and a first image data A detecting step of detecting a phase difference between the synchronizing signal of the second image data and the synchronizing signal of the second image data, and a selecting step of selecting a delay amount of the second image data based on a detection result by the processing of the detecting step. And wherein the door.
[0014]
In the present invention, first image data generated in synchronization with a first clock signal is input, and the first image data is converted to a first image data based on a phase difference between the first clock signal and an internal clock. And the second image data generated in synchronization with the second clock signal is input, and the second image data is output based on the phase difference between the second clock and the internal clock. Is output together with the synchronization signal of the second image data, the phase difference between the synchronization signal of the first image data and the synchronization signal of the second image data is detected, and the second image data is Is selected.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Embodiments of the present invention will be described below. The correspondence between constituent elements described in the claims and specific examples in the embodiments of the present invention is as follows. This description is for confirming that a specific example supporting the invention described in the claims is described in the embodiment of the invention. Therefore, even if there is a specific example which is described in the embodiment of the invention but is not described here as corresponding to the configuration requirement, the fact that the specific example is It does not mean that it does not correspond to the requirement. Conversely, even if a specific example is described here as corresponding to a configuration requirement, this means that the specific example does not correspond to a configuration requirement other than the configuration requirement. not.
[0016]
Furthermore, this description does not mean that the invention corresponding to the specific examples described in the embodiments of the invention is all described in the claims. In other words, this description is an invention corresponding to the specific example described in the embodiment of the invention, and the existence of the invention not described in the claims of this application, that is, It does not deny the existence of the invention added by the amendment.
[0017]
The video signal processing device according to claim 1 (for example, the video signal processing circuit 6 in FIG. 1) includes a first input unit that inputs first image data generated in synchronization with a first clock signal. For example, the first image data is output together with the synchronization signal of the first image data based on the data input terminal D2 of the asynchronous FIFO circuit 31 in FIG. 1 and the phase difference between the first clock signal and the internal clock signal. First output means (for example, the data output terminal Q2 and the synchronization signal output terminal Q1 of the asynchronous FIFO circuit 31 in FIG. 1) and the second image data generated in synchronization with the second clock signal are input. Based on the second input means (for example, the data input terminal D2 of the asynchronous FIFO circuit 35 in FIG. 1) and the phase difference between the second clock signal and the internal clock signal, the second image data is converted into the second image data. data A second output unit (for example, the data output terminal Q2 and the synchronization signal output terminal Q1 of the asynchronous FIFO circuit 35 in FIG. 1) that outputs the synchronization signal together with the synchronization signal, and the synchronization of the synchronization signal of the first image data and the second image data. Detecting means for detecting a phase difference between signals (for example, the phase detecting circuit 38 in FIG. 1), and selecting means for selecting a delay amount of the second image data based on a detection result by the detecting means (for example, FIG. 1) And a selection circuit 41).
[0018]
The video signal processing device according to claim 2 further includes a delay unit (for example, the delay circuit 34 in FIG. 1) that delays the first image data output by the first output unit.
[0019]
The selection means of the video signal processing device according to claim 3 selects a delay amount for synchronizing the second image data with the first image data delayed by the delay means (for example, the selection circuit 41 in FIG. 1). (Terminals a, b, and c) are selected).
[0020]
The first and second clock signals and the internal clock signal of the video signal processing device according to claim 4 have the same frequency (for example, at the same frequency as the clock signal generated by the clock generation circuit 1 in FIG. 1). ).
[0021]
The video signal processing method according to claim 5, wherein the first image data (for example, FIG. 2B, FIG. 3B, or FIG. 4B) is generated in synchronization with a first clock signal. A first input step of inputting the image data shown in FIG. 2C, FIG. 3C, or FIG. 4C; a first clock signal and an internal clock signal (for example, an internal processing clock signal shown in FIG. 2E, FIG. 3E, or FIG. 4E); ), The first image data (for example, the image data shown in FIG. 2F, FIG. 3F, or FIG. 4F) is converted to a synchronization signal of the first image data (FIG. 2G, FIG. 3G, or FIG. 4G). , And a second image data (for example, a clock signal shown in FIG. 2I, FIG. 3I, or FIG. 4I) generated in synchronization with a second clock signal (for example, the clock signal shown in FIG. For example, 2J, 3J, or 4J), a second input step, a second clock signal and an internal clock signal (for example, an internal processing clock signal shown in FIG. 2L, 3L, or 4L). ), The second image data (for example, the image data shown in FIG. 2M, FIG. 3M, or FIG. 4M) is converted into a synchronization signal (FIG. 2N, FIG. 3N, or FIG. 4N) of the second image data. (A synchronization signal shown in FIG. 3), a detection step of detecting a phase difference between a synchronization signal of the first image data and a synchronization signal of the second image data, and a detection result obtained by the processing of the detection step. And a selecting step of selecting a delay amount of the second image data based on the selection.
[0022]
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0023]
FIG. 1 shows a configuration example of a video signal processing system to which the present invention is applied. As shown in FIG. 1, the video signal processing system includes a clock generation circuit 1, image generation circuits 2 and 3, an amplifier 4, a reset signal output circuit 5, a video signal processing circuit 6, an image synthesis circuit 7, and the like. The video signal processing circuit 6 includes asynchronous FIFO (First In First Out) circuits 31, 35, delay circuits 32, 36, AND circuits 33, 37, a delay circuit 34, a phase detection circuit 38, delay circuits 39, 40, And a selection circuit 41.
[0024]
The clock generation circuit 1 generates a high-frequency clock signal and outputs it to the amplifier 4, the image generation circuit 2, and the image generation circuit 3, respectively.
[0025]
The image generation circuit 2 amplifies the clock signal input from the clock generation circuit 1 with the amplifier 11 and outputs the amplified clock signal to the asynchronous FIFO circuit 31. The image generation circuit 2 also generates a digital image signal (hereinafter, referred to as image data) based on the clock signal input from the clock generation circuit 1, and generates a synchronization signal (for example, a start signal of the generated image data). , HDISP, etc.) to the asynchronous FIFO circuit 31.
[0026]
Similarly, the image generation circuit 3 amplifies the clock signal input from the clock generation circuit 1 by the amplifier 21 and outputs the amplified clock signal to the asynchronous FIFO circuit 35. The image generation circuit 3 also generates image data based on the clock signal input from the clock generation circuit 1 and outputs the image data to the asynchronous FIFO circuit 35 together with a synchronization signal indicating the start position.
[0027]
Note that the image generation circuits 2 and 3 operate with the same number of horizontal dots and the same number of vertical lines, and the image data generated by them is set up and held with respect to the clock signals output from the amplifiers 11 and 21. Are input to the asynchronous FIFO circuits 31 and 35, respectively.
[0028]
The amplifier 4 amplifies the clock signal input from the clock generation circuit 1 and outputs it to the asynchronous FIFO circuit 31, the asynchronous FIFO circuit 35, the delay circuit 34, and the image synthesizing circuit 7, respectively. The reset signal output circuit 5 outputs a reset signal to each of the asynchronous FIFO circuit 31 and the asynchronous FIFO circuit 35, and releases the reset at a predetermined timing.
[0029]
A clock signal from the image generation circuit 2 is input to a clock terminal wck of the asynchronous FIFO circuit 31, an internal processing clock signal is input from the amplifier 4 to a clock terminal rck, and a reset signal output circuit is input to the asynchronous reset terminal rst. 5, a reset signal is input.
[0030]
The asynchronous FIFO circuit 31 is reset by a reset signal input to the asynchronous reset terminal rst. When the reset is released at a predetermined timing, the image is output from the image generation circuit 2 to the data input terminal D2. Data is input, and a synchronization signal is input from the image generation circuit 2 to the synchronization signal input terminal D1.
[0031]
Further, in the asynchronous FIFO circuit 31, the status flag of the empty terminal / emp (negative logic) that has been enabled becomes invalid by inputting data after reset release. This signal is output as a read signal to the delay circuit 32 and supplied to one input of the AND circuit 33. The delay circuit 32 delays the read signal input to the input terminal D by one clock, and supplies the read signal from the output terminal Q to the other input of the AND circuit 33. The AND circuit 33 calculates the logical product of the output of the asynchronous FIFO circuit 31 and the output of the delay circuit 32, and outputs the calculation result to the asynchronous FIFO circuit 31.
[0032]
When the read signal is input to the read detection terminal RE, the asynchronous FIFO circuit 31 compares the phase of the clock signal input to the clock terminal wck with the phase of the internally processed clock signal input to the clock terminal rck, and compares the comparison result. Based on this, the image data in the asynchronous FIFO circuit 31 is read out, output from the data output terminal Q2 to the delay circuit 34, and a synchronization signal indicating the start position of the image data is output from the synchronization signal output terminal Q1 to the phase detection circuit 38. I do.
[0033]
That is, the asynchronous FIFO circuit 31 starts reading after the remaining amount of data in the asynchronous FIFO circuit 31 becomes at least 2 by delaying the read signal by one clock by the delay circuit 32. The above device.
[0034]
The delay circuit 34 delays the image data input from the asynchronous FIFO circuit 31 to the data input terminal D by one clock based on the internal processing clock signal input from the amplifier 4, and outputs the image data from the data output terminal Q to the image generation circuit 7. Output to
[0035]
A clock signal from the image generation circuit 3 is input to the clock terminal wck of the asynchronous FIFO circuit 35, an internal processing clock signal is input from the amplifier 4 to the clock terminal rck, and a reset signal output circuit is input to the asynchronous reset terminal rst. 5, a reset signal is input.
[0036]
The asynchronous FIFO circuit 35 is reset by the reset signal input to the asynchronous reset terminal rst. When the reset is released at a predetermined timing, the image is output from the image generation circuit 3 to the data input terminal D2. Data is input, and a synchronization signal is input from the image generation circuit 3 to the synchronization signal input terminal D1.
[0037]
Further, in the asynchronous FIFO circuit 35, when the data is input after the reset release, the status flag of the empty terminal / emp (negative logic) that has been enabled becomes invalid. This signal is output as a read signal to the delay circuit 36 and supplied to one input of an AND circuit 37. The delay circuit 36 delays the read signal input to the input terminal D by one clock, and supplies the read signal to the other input of the AND circuit 37 from the output terminal Q. The AND circuit 37 calculates the logical product of the output of the asynchronous FIFO circuit 35 and the output of the delay circuit 36, and outputs the calculation result to the asynchronous FIFO circuit 35.
[0038]
When the read signal is input to the read detection terminal RE, the asynchronous FIFO circuit 35 compares the phase of the clock signal input to the clock terminal wck with the phase of the internal processing clock signal input to the clock terminal rck, and compares the comparison result with the result of the comparison. The image data in the asynchronous FIFO circuit 35 is read out and output to the selection circuit 41 directly from the data output terminal Q2, to the selection circuit 41 via the delay circuit 39, or to the delay circuit 39 and the delay circuit Output to the selection circuit 41 via 40. The asynchronous FIFO circuit 35 outputs a synchronization signal indicating the start position of the image data output to the selection circuit 41 from the synchronization signal output terminal Q1 to the phase detection circuit 38.
[0039]
That is, the asynchronous FIFO circuit 35 is a device having a depth of 2 or more which starts reading after the remaining amount of data in the asynchronous FIFO circuit 35 becomes at least 2 by delaying the read signal by one clock by the delay circuit 36. is there.
[0040]
The phase detection circuit 38 detects the phase difference between the synchronization signals input from the asynchronous FIFO circuits 31 and 35, and supplies the detection result to the selection circuit 41. The selection circuit 41 selects the terminal a, the terminal b, or the terminal c based on the detection result (phase difference) supplied from the phase detection circuit 38.
[0041]
For example, when the start position of the synchronization signal input from the asynchronous FIFO circuit 31 is ahead of the synchronization signal input from the asynchronous FIFO circuit 35, the selection circuit 41 selects the terminal a. Thus, the image data output from the asynchronous FIFO circuit 35 is output from the output terminal d of the selection circuit 41 to the image synthesis circuit 7 as it is (without delay).
[0042]
In addition, for example, when the synchronization signal input from the asynchronous FIFO circuit 31 and the synchronization signal input from the asynchronous FIFO circuit 35 have the same phase, the selection circuit 41 selects the terminal b. As a result, the image data output from the asynchronous FIFO circuit 35 is delayed by one clock by the delay circuit 39, and output from the output terminal d of the selection circuit 41 to the image synthesis circuit 7.
[0043]
Further, for example, when the start position of the synchronization signal input from the asynchronous FIFO circuit 31 is later than that of the synchronization signal input from the asynchronous FIFO circuit 35, the selection circuit 41 selects the terminal c. Thus, the image data output from the asynchronous FIFO circuit 35 is delayed by one clock by the delay circuit 39, further delayed by one clock by the delay circuit 40, and transmitted from the output terminal d of the selection circuit 41 to the image synthesis circuit 7. Is output.
[0044]
The image synthesizing circuit 7 synthesizes and outputs the image data from the asynchronous FIFO circuit 31 and the image data from the asynchronous FIFO circuit 35 whose phases have been aligned based on the internal processing clock signal input from the amplifier 4.
[0045]
Next, the selection operation of the selection circuit 41 will be described with reference to the timing charts of FIGS. First, the operation when the terminal a of the selection circuit 41 is selected will be described with reference to the timing chart of FIG.
[0046]
In a state where the video signal processing circuit 6 is reset, the clock signals WA1 to WA5 amplified by the amplifier 11 of the image generation circuit 2 are input to the clock terminal wck of the asynchronous FIFO circuit 31 (FIG. 2B). Clock signals WB1 to WB5 amplified by the amplifier 21 of the image generation circuit 3 are input to a clock terminal wck of the FIFO circuit 35 (FIG. 2I). The clock signal rck of the asynchronous FIFO circuit 31 receives the internal processing clock signals RA1 to RA5 from the amplifier 4 (FIG. 2E), and the clock terminal rck of the asynchronous FIFO circuit 35 receives the internal processing clock signal RB1 from the amplifier 4. To RB5 are input (FIG. 2L).
[0047]
When the reset is released (FIG. 2A), the image data DA1 generated by the image generation circuit 2 based on the first clock signal WA2 immediately after the reset is released is supplied to the data input terminal D2 of the asynchronous FIFO circuit 31. Input is started (FIG. 2C), and a synchronization signal SA indicating the start position of the image data DA1 is input to the synchronization signal input terminal D1 (FIG. 2D). Further, input of image data DB1 generated by the image generation circuit 3 based on the first clock signal WB2 immediately after reset release is started to the data input terminal D2 of the asynchronous FIFO circuit 35 (FIG. 2J), and the synchronization signal The synchronization signal SB indicating the start position of the image data DB1 is input to the input terminal D1 (FIG. 2K).
[0048]
Here, the asynchronous FIFO circuit 31 compares the phases of the clock signal WA2 (FIG. 2B) input to the clock terminal wck and the internal processing clock signal RA2 (FIG. 2E) input to the clock terminal rck immediately after reset release. As shown in the figure, the start position of the clock signal WA2 is ahead of the start position of the internal processing clock signal RA2. In this case, the asynchronous FIFO circuit 31 immediately starts reading the image data input to the data input terminal D2, but since the read start position is delayed by one clock by the delay circuit 32, the remaining data amount is 2 The reading is started after reaching.
[0049]
That is, when the image data DA1 and the image data DA2 are accumulated in the asynchronous FIFO circuit 31 (FIG. 2C), they are read and output from the data output terminal Q2 to the delay circuit 34 (FIG. 2F). Further, a synchronization signal SA indicating the start position of the image data DA1 is output from the synchronization signal output terminal Q1 to the phase detection circuit 38 (FIG. 2G).
[0050]
Similarly, the asynchronous FIFO circuit 35 also compares the phases of the clock signal WB2 (FIG. 2I) input to the clock terminal wck and the internal processing clock signal RB2 (FIG. 2L) input to the clock terminal rck immediately after reset release. As shown in the figure, the start position of the clock signal WB2 is later than the start position of the internal processing clock signal RB2. In this case, since the reading start position is delayed by one clock by the delay circuit 36, the asynchronous FIFO circuit 35 starts reading after the remaining data amount becomes three.
[0051]
That is, when the image data DB1 to DB3 are accumulated in the asynchronous FIFO circuit 35 (FIG. 2J), they are read and output from the data output terminal Q2 to the selection circuit 41 (FIG. 2M). Further, a synchronization signal SB indicating the start position of the image data DB1 is output from the synchronization signal output terminal Q1 to the phase detection circuit 38 (FIG. 2N).
[0052]
The delay circuit 34 delays the image data input from the asynchronous FIFO circuit 31 by one clock, and outputs it to the image generation circuit 7 (FIG. 2H).
[0053]
The phase detection circuit 38 detects a phase difference between the synchronization signal SA (FIG. 2G) input from the asynchronous FIFO circuit 31 and the synchronization signal SB (FIG. 2N) input from the asynchronous FIFO circuit 35, and determines the detection result as a selection circuit 41. To supply. In this case, since the synchronization signal SA is ahead of the synchronization signal SB by one clock, the asynchronous FIFO circuit 31 reads image data one clock earlier than the asynchronous FIFO circuit 35.
[0054]
However, the image data DA1 whose reading has been started by the asynchronous FIFO circuit 31 is output to the image synthesizing circuit 7 after being delayed by one clock by the delay circuit 34, so that the reading is delayed by one clock from the asynchronous FIFO circuit 31. The started image data DB1 of the asynchronous FIFO circuit 35 is output to the image synthesizing circuit 7 at the same timing as the asynchronous FIFO circuit 31. Therefore, the selection circuit 41 selects the terminal a, and outputs the image data DB1 read out by the asynchronous FIFO circuit 35 directly to the image synthesis circuit 7 (without passing through a delay circuit) (FIG. 2O). Accordingly, the image data DA1 output from the asynchronous FIFO circuit 31 and the image data DB1 output from the asynchronous FIFO circuit 35 are input to the image synthesizing circuit 7 with the phases thereof aligned, so that the synthesizing process is easily performed. be able to.
[0055]
As described above, immediately after reset release, the start position of the clock signal WA2 (FIG. 2B) input to the clock terminal wck of the asynchronous FIFO circuit 31 is determined by the internal processing clock signal RA2 (FIG. 2E) input to the clock terminal rck. , And the start position of the clock signal WB2 (FIG. 2I) input to the clock terminal wck of the asynchronous FIFO circuit 35 is the internal processing clock signal RB2 (FIG. 21) input to the clock terminal rck. 2L), the selection circuit 41 selects the terminal a to align the phases of the image data generated by the image generation circuits 2 and 3 and supply the same to the image synthesis circuit 7. be able to.
[0056]
Next, an operation when the terminal b of the selection circuit 41 is selected will be described with reference to the timing chart of FIG.
[0057]
In a state where the video signal processing circuit 6 is reset, clock signals WA1 to WA5 amplified by the amplifier 11 of the image generation circuit 2 are input to the clock terminal wck of the asynchronous FIFO circuit 31 (FIG. 3B). Clock signals WB1 to WB5 amplified by the amplifier 21 of the image generation circuit 3 are input to the clock terminal wck of the FIFO circuit 35 (FIG. 3I). The clock signal rck of the asynchronous FIFO circuit 31 receives the internal processing clock signals RA1 to RA5 from the amplifier 4 (FIG. 3E), and the clock terminal rck of the asynchronous FIFO circuit 35 receives the internal processing clock signal RB1 from the amplifier 4. To RB5 are input (FIG. 3L).
[0058]
When the reset is released (FIG. 3A), the image data DA1 generated by the image generation circuit 2 based on the first clock signal WA2 immediately after the reset is released is supplied to the data input terminal D2 of the asynchronous FIFO circuit 31. Input is started (FIG. 3C), and a synchronization signal SA indicating the start position of the image data DA1 is input to the synchronization signal input terminal D1 (FIG. 3D). Further, input of the image data DB1 generated based on the first clock signal WB2 immediately after reset release by the image generation circuit 3 is started to the data input terminal D2 of the asynchronous FIFO circuit 35 (FIG. 3J), A synchronization signal SB indicating the start position of the image data DB1 is input to the input terminal D1 (FIG. 3K).
[0059]
Here, the asynchronous FIFO circuit 31 compares the phases of the clock signal WA2 (FIG. 3B) input to the clock terminal wck and the internal processing clock signal RA2 (FIG. 3E) input to the clock terminal rck immediately after the reset is released. As shown in the figure, the start position of the clock signal WA2 is ahead of the start position of the internal processing clock signal RA2. Therefore, as described above, the asynchronous FIFO circuit 31 starts reading after the remaining data amount becomes 2.
[0060]
That is, when the image data DA1 and the image data DA2 are accumulated in the asynchronous FIFO circuit 31 (FIG. 3C), they are read and output from the data output terminal Q2 to the delay circuit 34 (FIG. 3F). Further, a synchronization signal SA indicating the start position of the image data DA1 is output from the synchronization signal output terminal Q1 to the phase detection circuit 38 (FIG. 3G).
[0061]
Similarly, the asynchronous FIFO circuit 35 also compares the phases of the clock signal WB2 (FIG. 3I) input to the clock terminal wck and the internal processing clock signal RB2 (FIG. 3L) input to the clock terminal rck immediately after reset release. As shown in the figure, the start position of the clock signal WB2 is ahead of the start position of the internal processing clock signal RB2. Therefore, as in the case of the above-mentioned asynchronous FIFO circuit 31, reading is started after the remaining data amount becomes 2.
[0062]
That is, when the image data DB1 and the image data DB2 are accumulated in the asynchronous FIFO circuit 35 (FIG. 3J), they are read and output from the data output terminal Q2 to the selection circuit 41 (FIG. 3M). Further, a synchronization signal SB indicating the start position of the image data DB1 is output from the synchronization signal output terminal Q1 to the phase detection circuit 38 (N in FIG. 3).
[0063]
The delay circuit 34 delays the image data input from the asynchronous FIFO circuit 31 by one clock and outputs it to the image generation circuit 7 (FIG. 3H).
[0064]
The phase detection circuit 38 detects a phase difference between the synchronization signal SA (FIG. 3G) input from the asynchronous FIFO circuit 31 and the synchronization signal SB (FIG. 3N) input from the asynchronous FIFO circuit 35, and determines the detection result as a selection circuit 41. To supply. In this case, since the synchronizing signal SA and the synchronizing signal SB have the same phase, the asynchronous FIFO circuits 31 and 35 read image data at the same timing.
[0065]
However, as described above, the image data DA1 whose reading has been started by the asynchronous FIFO circuit 31 is output to the image synthesizing circuit 7 after being delayed by one clock in the delay circuit 34, and thus is the same as that of the asynchronous FIFO circuit 31. The image data DB1 of the asynchronous FIFO circuit 35 whose reading has been started at the timing is output to the image synthesizing circuit 7 one clock earlier than the asynchronous FIFO circuit 31. Accordingly, the selection circuit 41 selects the terminal b, delays the image data DB1 whose reading has been started by the asynchronous FIFO circuit 35 by one clock by the delay circuit 39, and then outputs the image data DB1 to the image synthesis circuit 7 (FIG. 3O). . Accordingly, the image data DA1 output from the asynchronous FIFO circuit 31 and the image data DB1 output from the asynchronous FIFO circuit 35 are input to the image synthesizing circuit 7 with the phases thereof aligned, so that the synthesizing process is easily performed. be able to.
[0066]
As described above, immediately after reset release, the start position of the clock signal WA2 (FIG. 3B) input to the clock terminal wck of the asynchronous FIFO circuit 31 is determined by the internal processing clock signal RA2 (FIG. 3E) input to the clock terminal rck. Of the clock signal WB2 (FIG. 3I) input to the clock terminal wck of the asynchronous FIFO circuit 35, and the internal processing clock signal RB2 (FIG. 3L), the selection circuit 41 selects the terminal b and aligns the phases of the image data generated by the image generation circuits 2 and 3 to supply the same to the image synthesis circuit 7. be able to.
[0067]
Immediately after reset release, the start position of the clock signal WA2 (FIG. 3B) input to the clock terminal wck of the asynchronous FIFO circuit 31 is changed to the start position of the internal processing clock signal RA2 (FIG. 3E) input to the clock terminal rck. And the start position of the clock signal WB2 (FIG. 3I) input to the clock terminal wck of the asynchronous FIFO circuit 35 is different from that of the internal processing clock signal RB2 (FIG. 3L) input to the clock terminal rck. The terminal b is also selected by the selection circuit 41 even when it is later than the start position. Therefore, also in this case, the image data generated by the image generating circuits 2 and 3 can be supplied to the image synthesizing circuit 7 with the phases thereof aligned.
[0068]
Next, an operation when the terminal c of the selection circuit 41 is selected will be described with reference to the timing chart of FIG.
[0069]
In a state where the video signal processing circuit 6 is reset, clock signals WA1 to WA6 amplified by the amplifier 11 of the image generation circuit 2 are input to the clock terminal wck of the asynchronous FIFO circuit 31 (FIG. 4B). Clock signals WB1 to WB6 amplified by the amplifier 21 of the image generation circuit 3 are input to a clock terminal wck of the FIFO circuit 35 (FIG. 4I). The clock signal rck of the asynchronous FIFO circuit 31 receives the internal processing clock signals RA1 to RA6 from the amplifier 4 (FIG. 4E), and the clock terminal rck of the asynchronous FIFO circuit 35 receives the internal processing clock signal RB1 from the amplifier 4. To RB6 are input (FIG. 4L).
[0070]
When the reset is released (FIG. 4A), the image data DA1 generated by the image generation circuit 2 based on the first clock signal WA2 immediately after the reset is released is supplied to the data input terminal D2 of the asynchronous FIFO circuit 31. Input is started (FIG. 4C), and a synchronization signal SA indicating the start position of the image data DA1 is input to the synchronization signal input terminal D1 (FIG. 4D). Further, input of image data DB1 generated by the image generation circuit 3 based on the first clock signal WB2 immediately after reset release is started to the data input terminal D2 of the asynchronous FIFO circuit 35 (FIG. 4J), and the synchronization signal A synchronization signal SB indicating the start position of the image data DB1 is input to the input terminal D1 (FIG. 4K).
[0071]
Here, the asynchronous FIFO circuit 31 compares the phases of the clock signal WA2 (FIG. 4B) input to the clock terminal wck and the internal processing clock signal RA2 (FIG. 4E) input to the clock terminal rck immediately after reset release. As shown in the figure, the start position of the clock signal WA2 is later than the start position of the internal processing clock signal RA2. Therefore, as described above, the asynchronous FIFO circuit 31 starts reading after the remaining data amount becomes three.
[0072]
That is, when the image data DA1 to DA3 are accumulated in the asynchronous FIFO circuit 31 (FIG. 4C), they are read and output from the data output terminal Q2 to the delay circuit 34 (FIG. 4F). Further, a synchronization signal SA indicating the start position of the image data DA1 is output from the synchronization signal output terminal Q1 to the phase detection circuit 38 (FIG. 4G).
[0073]
Similarly, the asynchronous FIFO circuit 35 also compares the phases of the clock signal WB2 (FIG. 3I) input to the clock terminal wck and the internal processing clock signal RB2 (FIG. 3L) input to the clock terminal rck immediately after reset release. As shown in the figure, the start position of the clock signal WB2 is ahead of the start position of the internal processing clock signal RB2. Therefore, as described above, reading is started after the remaining data amount becomes 2.
[0074]
That is, when the image data DB1 and the image data DB2 are accumulated in the asynchronous FIFO circuit 35 (FIG. 4J), they are read and output from the data output terminal Q2 to the selection circuit 41 (FIG. 4M). Further, a synchronization signal SB indicating the start position of the image data DB1 is output from the synchronization signal output terminal Q1 to the phase detection circuit 38 (N in FIG. 4).
[0075]
The delay circuit 34 delays the image data input from the asynchronous FIFO circuit 31 by one clock, and outputs the image data to the image generation circuit 7 (FIG. 4H).
[0076]
The phase detection circuit 38 detects a phase difference between the synchronization signal SA (FIG. 4G) input from the asynchronous FIFO circuit 31 and the synchronization signal SB (FIG. 4N) input from the asynchronous FIFO circuit 35, and determines the detection result as a selection circuit 41. To supply. In this case, since the synchronizing signal SA is delayed by one clock from the synchronizing signal SB, the asynchronous FIFO circuit 31 reads image data with a delay of one clock from the asynchronous FIFO circuit 35.
[0077]
However, as described above, since the image data DA1 whose reading has been started by the asynchronous FIFO circuit 31 is output to the image synthesizing circuit 7 after being delayed by one clock in the delay circuit 34, the asynchronous FIFO circuit 31 The image data DB1 of the asynchronous FIFO circuit 35 whose reading has been started one clock earlier is output to the image synthesizing circuit 7 two clocks earlier than the asynchronous FIFO circuit 31. Accordingly, the selection circuit 41 selects the terminal c, delays the image data DB1 read out by the asynchronous FIFO circuit 35 by one clock by the delay circuit 39, and further delays the image data DB1 by one clock by the delay circuit 40. , To the image synthesizing circuit 7 (FIG. 4O). Accordingly, the image data DA1 output from the asynchronous FIFO circuit 31 and the image data DB1 output from the asynchronous FIFO circuit 35 are input to the image synthesizing circuit 7 with the phases thereof aligned, so that the synthesizing process is easily performed. be able to.
[0078]
As described above, immediately after reset release, the start position of the clock signal WA2 (FIG. 4B) input to the clock terminal wck of the asynchronous FIFO circuit 31 is determined by the internal processing clock signal RA2 (FIG. 4E) input to the clock terminal rck. Of the clock signal WB2 (FIG. 4I) input to the clock terminal wck of the asynchronous FIFO circuit 35, the internal processing clock signal RB2 (FIG. 4L) input to the clock terminal rck. Is selected, the selection circuit 41 selects the terminal c so that the phases of the image data generated by the image generation circuits 2 and 3 are aligned and supplied to the image synthesis circuit 7. it can.
[0079]
In the above, the phase difference between the clock signal WA2 input to the clock terminal wck of the asynchronous FIFO circuit 31 and the internal processing clock signal RA2 input to the clock terminal rck, and the clock signal wck input to the clock terminal wck of the asynchronous FIFO circuit 35 The selection circuit 41 is selected according to a combination of the phase difference between the clock signal WB2 and the internal processing clock signal RB2 input to the clock terminal rck. The size (number) of image data input to the asynchronous FIFO circuits 31 and 35 and the size of image data output from the asynchronous FIFO circuits 31 and 35 are the same. Therefore, the selection circuit 41 can maintain the state where the phases of the image data are aligned without changing the selection after the reset is released (that is, by the circuit selected immediately after the reset is released).
[0080]
However, after a predetermined time has passed since the reset was released, the clock signal was input to the clock terminal wck of the asynchronous FIFO circuit 31 due to the temperature characteristics of the clock buffer of the amplifier 11 of the image generation circuit 2 and the amplifier 21 of the image generation circuit 3. When the phase relationship between the clock signal WA2 and the internal processing clock signal RA2 input to the clock terminal rck is reversed, or the clock signal WB2 input to the clock terminal wck of the asynchronous FIFO circuit 35 and the internal processing input to the clock terminal rck When the phase relationship of the clock signal RB2 is reversed, the number of image data stored in the asynchronous FIFO circuits 31 and 35 changes.
[0081]
For example, at the beginning of the reset, the start position of the clock signal WA2 input to the clock terminal wck of the asynchronous FIFO circuit 31 is advanced from the start position of the internal processing clock signal RA2 input to the clock terminal rck by a predetermined value. Is reversed (the start position of the clock signal WA2 is later than the start position of the internal processing clock signal RA2) after the lapse of time, the image data accumulated in the asynchronous FIFO circuit 31 is reduced by one. .
[0082]
Further, for example, at the beginning of the reset, the start position of the clock signal WA2 input to the clock terminal wck of the asynchronous FIFO circuit 31 is later than the start position of the internal processing clock signal RA2 input to the clock terminal rck. When the clock signal WA2 reverses after a predetermined time has elapsed (when the start position of the clock signal WA2 is advanced compared to the start position of the clock signal RA2), the image data stored in the asynchronous FIFO circuit 31 is increased by one.
[0083]
However, the clock signal WA2 input to the clock terminal wck and the internal processing clock signal RA2 input to the clock terminal rck are both generated from the clock generation circuit 1, and no further fluctuations can occur. It is sufficient for the asynchronous FIFO circuits 31 and 35 to start reading after two image data are accumulated immediately after reset.
[0084]
As described above, the clock skew which is a problem in the video signal processing system operating on the basis of the same oscillator can be solved without using the PLL. Further, in the case of using an LSI having a clock out terminal for data transmission over a plurality of LSIs, the effect can be particularly expected.
[0085]
The above-described series of processing can be executed by hardware or can be executed by software. When a series of processing is executed by software, a program constituting the software may execute various functions by installing a computer built into dedicated hardware or installing various programs. It is installed in a possible, for example, a general-purpose personal computer from a network or a recording medium.
[0086]
FIG. 5 is a diagram illustrating an example of the internal configuration of a general-purpose computer. A CPU (Central Processing Unit) 101 of the computer executes various processes according to a program stored in a ROM (Read Only Memory) 102 or a program loaded from a storage unit 108 into a RAM (Random Access Memory) 103. The RAM 103 also stores data necessary for the CPU 101 to execute various processes as appropriate.
[0087]
The CPU 101, the ROM 102, and the RAM 103 are mutually connected via a bus 104. The bus 104 is also connected to an input / output interface 105.
[0088]
The input / output interface 105 includes an input unit 106 including buttons, switches, a keyboard, a mouse, and the like, a display such as a CRT (Cathode Ray Tube) and an LCD (Liquid Crystal Display), and a speaker. An output unit 107, a storage unit 108 including a hard disk, and a communication unit 109 including a modem and a terminal adapter are connected. The communication unit 109 performs communication processing via a network including the Internet.
[0089]
A drive 110 is connected to the input / output interface 105 as necessary, and a removable medium 111 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory is appropriately mounted. Is installed in the storage unit 108.
[0090]
As shown in FIG. 5, a recording medium that is installed in a computer and records a program that can be executed by the computer is provided separately from the main body of the apparatus to provide the program to a user. A recorded magnetic disk (including a flexible disk), an optical disk (including a CD-ROM (Compact Disc-Read Only Memory), a DVD (Digital Versatile Disc)), and a magneto-optical disk (MD (Mini-Disc) (registered trademark) ) Or a removable medium 111 formed of a semiconductor memory or the like, and provided to a user in a state where the program is stored in advance in the apparatus main body. It consists of the storage unit 108, such as.
[0091]
In this specification, the steps of describing a program stored in a program storage medium may be performed in chronological order according to the described order, or may be performed in parallel, even if not necessarily performed in chronological order. Alternatively, it also includes processing executed individually.
[0092]
Also, in this specification, a system represents the entire device including a plurality of devices.
[0093]
【The invention's effect】
As described above, according to the present invention, it is possible to synchronize two digital video signals. In particular, it is possible to construct a video signal processing system in which two digital video signals are synchronized without using a PLL and clock skew which is a problem when operating based on the same oscillator is solved. .
[Brief description of the drawings]
FIG. 1 shows a configuration example of a video signal processing system to which the present invention is applied.
FIG. 2 is a timing chart for explaining a selection operation of a selection circuit.
FIG. 3 is a timing chart for explaining another selection operation of the selection circuit.
FIG. 4 is a timing chart for explaining another selection operation of the selection circuit.
FIG. 5 is a diagram illustrating an example of the internal configuration of a general-purpose computer.
[Explanation of symbols]
Reference Signs List 1 clock generation circuit, 2, 3 image generation circuit, 4 amplifier, 5 reset signal output circuit, 6 video signal processing circuit, 7 image synthesis circuit, 11 and 21 amplifier, 31 asynchronous FIFO circuit, 34 delay circuit, 35 asynchronous FIFO circuit , 38 phase detection circuit, 39, 40 delay circuit, 41 selection circuit

Claims (5)

第1のクロック信号に同期して生成された第1の画像データを入力する第1の入力手段と、
前記第1のクロック信号と内部クロック信号の位相差に基づいて、前記第1の画像データを、前記第1の画像データの同期信号とともに出力する第1の出力手段と、
第2のクロック信号に同期して生成された第2の画像データを入力する第2の入力手段と、
前記第2のクロック信号と内部クロック信号の位相差に基づいて、前記第2の画像データを、前記第2の画像データの同期信号とともに出力する第2の出力手段と、
前記第1の画像データの同期信号と前記第2の画像データの同期信号の位相差を検出する検出手段と、
前記検出手段による検出結果に基づいて、前記第2の画像データの遅延量を選択する選択手段と
を備えることを特徴とする映像信号処理装置。
First input means for inputting first image data generated in synchronization with the first clock signal;
First output means for outputting the first image data together with a synchronization signal of the first image data based on a phase difference between the first clock signal and an internal clock signal;
Second input means for inputting second image data generated in synchronization with the second clock signal;
A second output unit that outputs the second image data together with a synchronization signal of the second image data based on a phase difference between the second clock signal and an internal clock signal;
Detecting means for detecting a phase difference between a synchronization signal of the first image data and a synchronization signal of the second image data;
A video signal processing device comprising: a selection unit that selects a delay amount of the second image data based on a detection result by the detection unit.
前記第1の出力手段により出力された前記第1の画像データを遅延させる遅延手段をさらに備える
ことを特徴とする請求項1に記載の映像信号処理装置。
2. The video signal processing device according to claim 1, further comprising a delay unit that delays the first image data output by the first output unit.
前記選択手段は、前記遅延手段により遅延された前記第1の画像データに、前記第2の画像データを同期させる前記遅延量を選択する
ことを特徴とする請求項2に記載の映像信号処理装置。
3. The video signal processing apparatus according to claim 2, wherein the selection unit selects the delay amount for synchronizing the second image data with the first image data delayed by the delay unit. .
前記第1および第2のクロック信号、並びに内部クロック信号は、同じ周波数である
ことを特徴とする請求項1に記載の映像信号処理装置。
The video signal processing device according to claim 1, wherein the first and second clock signals and the internal clock signal have the same frequency.
第1のクロック信号に同期して生成された第1の画像データを入力する第1の入力ステップと、
前記第1のクロック信号と内部クロック信号の位相差に基づいて、前記第1の画像データを、前記第1の画像データの同期信号とともに出力する第1の出力ステップと、
第2のクロック信号に同期して生成された第2の画像データを入力する第2の入力ステップと、
前記第2のクロック信号と内部クロック信号の位相差に基づいて、前記第2の画像データを、前記第2の画像データの同期信号とともに出力する第2の出力ステップと、
前記第1の画像データの同期信号と前記第2の画像データの同期信号の位相差を検出する検出ステップと、
前記検出ステップの処理による検出結果に基づいて、前記第2の画像データの遅延量を選択する選択ステップと
を含むことを特徴とする映像信号処理方法。
A first input step of inputting first image data generated in synchronization with a first clock signal;
A first output step of outputting the first image data together with a synchronization signal of the first image data based on a phase difference between the first clock signal and an internal clock signal;
A second input step of inputting second image data generated in synchronization with a second clock signal;
A second output step of outputting the second image data together with a synchronization signal of the second image data based on a phase difference between the second clock signal and an internal clock signal;
A detection step of detecting a phase difference between a synchronization signal of the first image data and a synchronization signal of the second image data;
A selecting step of selecting a delay amount of the second image data based on a detection result obtained by the processing of the detecting step.
JP2003116595A 2003-04-22 2003-04-22 Video signal processing apparatus and method Withdrawn JP2004328094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003116595A JP2004328094A (en) 2003-04-22 2003-04-22 Video signal processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003116595A JP2004328094A (en) 2003-04-22 2003-04-22 Video signal processing apparatus and method

Publications (1)

Publication Number Publication Date
JP2004328094A true JP2004328094A (en) 2004-11-18

Family

ID=33496751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003116595A Withdrawn JP2004328094A (en) 2003-04-22 2003-04-22 Video signal processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2004328094A (en)

Similar Documents

Publication Publication Date Title
JP6215505B2 (en) Clock synchronization
JP4672194B2 (en) Receiver circuit
TWI285999B (en) Framework of phase-locked loop capable of avoiding from frequency drifting and jiggling, and its method
US20040135711A1 (en) High speed over-sampler application in a serial to parallel converter
CN100559750C (en) Device and method for receiving parallel data
JP2004328094A (en) Video signal processing apparatus and method
JP4708528B2 (en) Video signal converter
CN101271679B (en) Image data processing apparatus
CN1723444B (en) Methods for Using Simultaneous Sampling Designs in Fixed Rate Sampling Mode
US6642766B2 (en) Digital circuit, LSI including the same and method for removing noise
US6788127B2 (en) Circuit for variably delaying data
JP4194430B2 (en) Synchronizer
US6867631B1 (en) Synchronous frequency convertor for timebase signal generation
JP2007087468A (en) Output control signal generation circuit
JP4825929B2 (en) Video signal converter
JP4506157B2 (en) Video signal phase adjustment circuit
WO2010113378A1 (en) Horizontal sync generation circuit, video signal processing lsi and video system
JP4239475B2 (en) Scanning line converter
JP3493111B2 (en) Semiconductor integrated circuit device
US6801055B1 (en) Data driven clocking
JP5126497B2 (en) Audio signal relay circuit and audio signal relay method
JP3179403B2 (en) Digital signal synchronization circuit
JP2002232401A (en) Video signal synchronization device and image processing device
JP4266728B2 (en) Synchronization control method
JP4143703B2 (en) Digital arithmetic processing method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060704