JP2013250573A - Memory control device and control method of memory - Google Patents

Memory control device and control method of memory Download PDF

Info

Publication number
JP2013250573A
JP2013250573A JP2013160382A JP2013160382A JP2013250573A JP 2013250573 A JP2013250573 A JP 2013250573A JP 2013160382 A JP2013160382 A JP 2013160382A JP 2013160382 A JP2013160382 A JP 2013160382A JP 2013250573 A JP2013250573 A JP 2013250573A
Authority
JP
Japan
Prior art keywords
signal
timing
memory
synchronization signal
period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013160382A
Other languages
Japanese (ja)
Other versions
JP5693677B2 (en
JP2013250573A5 (en
Inventor
Hidekazu Matsuzaki
英一 松崎
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2013160382A priority Critical patent/JP5693677B2/en
Publication of JP2013250573A publication Critical patent/JP2013250573A/en
Publication of JP2013250573A5 publication Critical patent/JP2013250573A5/ja
Application granted granted Critical
Publication of JP5693677B2 publication Critical patent/JP5693677B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide technology capable of avoiding memory address passing and suppressing, as soon as possible, image degradation in which motion becomes unnatural.SOLUTION: A memory control device comprises: a memory comprising a plurality of regions; a memory control section for sequentially writing image data in each region of the memory by synchronizing with a first synchronous signal, and reading the image data from the memory by synchronizing with a second synchronous signal created without synchronizing with the first synchronous signal; a timing determination section for determining reference timing with reference to the first synchronous signal; a region determination section for determining a region read by the memory control section on the basis of order of the reference timing and the second synchronous signal; and an exchange period detection section for detecting an exchange period which is a period where occurrence of order exchange between the reference timing and the second synchronous signal is predicted. The timing determination section changes the reference timing in the exchange period in a direction in which the order exchange easily occurs.

Description

本発明は、メモリ制御装置に関するものである。   The present invention relates to a memory control device.

特許文献1には、書き込みフレームの開始時の読み出しアドレス値に書き込みの1フレームの間に進む読み出しアドレス量を加算し、加算された値と書き込みの1フレームのアドレス量とを比較して追い越しの有無を判定することが記載されている。また、特許文献1には、読み出しアドレスと書き込みアドレスの差分と所定の許容値とから記憶装置のアドレス追い越し判定を行い、記憶装置の書き込み実行、または、停止を行うことが記載されている。   In Patent Document 1, the read address value at the start of a write frame is added to the read address amount that proceeds during one write frame, and the added value is compared with the address amount of one write frame. It is described that the presence or absence is determined. Japanese Patent Application Laid-Open No. 2004-228561 describes that an address overtaking determination of a storage device is performed from a difference between a read address and a write address and a predetermined allowable value, and writing of the storage device is executed or stopped.

特許文献2には、書き込みアドレスのリセット時刻と読み出しアドレスのリセット時刻との時間差を検出し、検出された時間差に基づいて、次の書き込みフレームにおいてメモリの追い越しが発生するか否かを判定することが開示されている。また、特許文献2には、メモリの追い越しが発生する場合に以下のいずれかの処理を行うことが記載されている。(1)次の書き込みフレームにおいてフレームメモリへの書き込みを中止する。(2)次の読み出しフレームにおいて直前に読み出したメモリ領域と同じメモリ領域から1フレーム分のデータを読み出す。(3)次の読み出しフレームにおいてデータを読み出すべき順序のメモリ領域より読み出し順序が1つ先のメモリ領域からデータを読み出す。   In Patent Document 2, a time difference between a reset time of a write address and a reset time of a read address is detected, and whether or not a memory overtaking occurs in the next write frame is determined based on the detected time difference. Is disclosed. Japanese Patent Application Laid-Open No. H10-228561 describes that any of the following processes is performed when overtaking of a memory occurs. (1) Stop writing to the frame memory in the next writing frame. (2) Data for one frame is read from the same memory area as that read immediately before in the next read frame. (3) In the next read frame, data is read from the memory area that is one order ahead of the memory area in the order in which data is to be read.

ここで、入力される映像信号がインタレース形式の映像信号であった場合、1フィールド分の垂直同期期間が奇数フィールドと偶数フィールドとで異なる場合が発生する。一般的にインタレース形式の映像信号では、奇数フィールドか偶数フィールドかを判別可能にするために、垂直同期信号と水平同期信号の位相を奇数フィールドと偶数フィールドとで0.5ライン分ずらしている。例えば、有効走査ライン数が1080本である映像信号での垂直
同期期間に含まれる全走査ライン数は1125本であり、このような映像信号のインタレース形式における1フィールド分の垂直同期期間は562.5本となる。即ち垂直同期信号と水平
同期信号との位相関係は、一方のフィールドで揃っている場合、他方のフィールドでは0.5ライン分ずれている。これにより、垂直同期信号の変化点での水平同期信号との位相関
係から、入力される映像信号が奇数フィールドの映像信号であるか偶数フィールドの映像信号であるかを判定することができる。
Here, when the input video signal is an interlaced video signal, the vertical synchronization period for one field may be different between the odd field and the even field. In general, in an interlaced video signal, the phases of the vertical synchronizing signal and the horizontal synchronizing signal are shifted by 0.5 lines between the odd field and the even field in order to make it possible to determine whether the field is an odd field or an even field. For example, the total number of scanning lines included in the vertical synchronization period in a video signal having 1080 effective scanning lines is 1125, and the vertical synchronization period for one field in the interlace format of such a video signal is 562.5. Become a book. That is, when the phase relationship between the vertical synchronizing signal and the horizontal synchronizing signal is aligned in one field, the other field is shifted by 0.5 lines. As a result, it is possible to determine whether the input video signal is an odd-field video signal or an even-field video signal from the phase relationship with the horizontal synchronization signal at the change point of the vertical synchronization signal.

フィールド判定後は、たとえば、垂直同期信号と水平同期信号との変化点を揃えて後段の処理回路に出力するような処理が行われる。この場合、一方のフィールドでは垂直同期期間が562本、他方のフィールドでは垂直同期期間が563本となる。つまり、奇数フィールドの垂直同期期間と偶数フィールドの垂直同期期間との間で1ライン分の差が発生する。このようなケースで特許文献1或いは特許文献2に示された追い越し回避処理を講じた場合、追い越しの有無の判定が安定せず、一時的に画像が繰り返して表示されるなど、動きが不自然となる画質劣化を生じることがある。   After the field determination, for example, processing is performed in which the change points of the vertical synchronization signal and the horizontal synchronization signal are aligned and output to the subsequent processing circuit. In this case, one field has 562 vertical synchronization periods and the other field has 563 vertical synchronization periods. That is, a difference of one line occurs between the vertical synchronization period of the odd field and the vertical synchronization period of the even field. In such a case, when the overtaking avoidance process shown in Patent Document 1 or Patent Document 2 is performed, the determination of the presence or absence of overtaking is not stable, and the image is displayed repeatedly and temporarily. Image quality degradation may occur.

特許文献3では、入力映像信号と表示側の垂直同期信号が近い場合に発生するジッター(時間的なゆれ)により、読み出しメモリ選択ビットの不安定な状態(チャタリング)が発生することが開示されている。また、チャタリングを回避するために、メモリ切り替え点を起点とした第1のパルスと第1のパルスの終了点を起点とする第2のパルスを生成し、読み出しメモリの切り替え点が何れのパルスで検出されたかにより読み出しメモリを決定することが開示されている。   Patent Document 3 discloses that an unstable state (chattering) of a read memory selection bit occurs due to jitter (temporal fluctuation) that occurs when an input video signal and a display-side vertical synchronization signal are close to each other. Yes. In order to avoid chattering, the first pulse starting from the memory switching point and the second pulse starting from the end point of the first pulse are generated, and the switching point of the read memory is any pulse. It is disclosed that the read memory is determined depending on whether it is detected.

特開2001−13934号公報JP 2001-13934 A 特開2001−83928号公報JP 2001-83928 A 特開2004−177738号公報JP 2004-177738 A

表示装置において、表示側の垂直同期信号が入力映像信号の垂直同期信号とは非同期に生成されることがある。このような場合、表示側(読み出し側)の垂直同期信号の周期を入力側(書き込み側)の周期に合わせようとしても、両者の周期を完全に一致させることは難しい。垂直同期信号の周期は1画素単位のクロックの積み重ねであるため、画素クロックの誤差の積み上げにより、入力側と表示側の垂直同期信号の周期に差分が生じるからである。したがって、入力側と表示側の垂直同期信号が非同期の関係にある場合は、入力側に対して出力側のほうが速い(周期が短い)ケース、あるいは、遅い(周期が長い)ケースの何れかが発生する。このような垂直同期信号の周期の差を「速度差」とよぶ。   In the display device, the vertical synchronization signal on the display side may be generated asynchronously with the vertical synchronization signal of the input video signal. In such a case, even if the period of the vertical synchronization signal on the display side (reading side) is to be matched with the period on the input side (writing side), it is difficult to make the periods coincide completely. This is because, since the period of the vertical synchronization signal is a stack of clocks in units of one pixel, a difference occurs in the period of the vertical synchronization signal on the input side and the display side due to the accumulation of pixel clock errors. Therefore, if the vertical synchronization signal on the input side and the display side are asynchronous, either the output side is faster (shorter cycle) or slower (longer cycle) than the input side. Occur. Such a difference in the period of the vertical synchronization signal is referred to as a “speed difference”.

特許文献3に示された追い越し回避手法では、入力側と表示側の垂直同期信号に速度差があり、更に入力側の垂直同期信号がフィールド毎に周期が変動するような場合に、不適切な読み出しメモリが選択されるおそれがある。そのため、一時的に画像が繰り返して表示されるなど、動きが不自然となる画質劣化を十分に回避することができない。   The overtaking avoidance technique disclosed in Patent Document 3 is inappropriate when there is a speed difference between the vertical synchronization signal on the input side and the display side, and the period of the vertical synchronization signal on the input side varies for each field. There is a possibility that the read memory is selected. For this reason, it is not possible to sufficiently avoid image quality deterioration in which the motion is unnatural, such as temporarily displaying images repeatedly.

本発明は上記実情に鑑みてなされたものであって、その目的とするところは、メモリの追い越しを回避できるとともに、動きが不自然となる画質劣化を可及的に抑制できる技術を提供することにある。本発明の更なる目的は、読み出し側の同期信号が書き込み側の同期信号とは非同期に生成される場合でも、メモリの追い越しを回避できるとともに、動きが不自然となる画質劣化を可及的に抑制できる技術を提供することにある。本発明の更なる目的は、書き込み側の同期信号の周期が画像データ(フィールドあるいはフレーム)毎に変動する場合でも、メモリの追い越しを回避できるとともに、動きが不自然となる画質劣化を可及的に抑制できる技術を提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a technique capable of avoiding overtaking of the memory and suppressing image quality deterioration that causes unnatural movement as much as possible. It is in. A further object of the present invention is to avoid overtaking of the memory even when the synchronization signal on the reading side is generated asynchronously with the synchronization signal on the writing side, and to minimize image quality degradation that causes unnatural movement. It is to provide a technology that can be suppressed. A further object of the present invention is to avoid overtaking of the memory even when the period of the synchronization signal on the writing side fluctuates for each image data (field or frame), and as much as possible to deteriorate the image quality that causes unnatural movement. It is to provide technology that can be suppressed.

上記目的を達成するために本発明は、以下の構成を採用する。   In order to achieve the above object, the present invention adopts the following configuration.

本発明の第1態様は、複数の領域を有するメモリと、
第1の同期信号に同期して前記メモリの各領域に画像データを順次書き込み、前記第1の同期信号とは非同期に生成される第2の同期信号に同期して画像データを前記メモリから読み出すメモリ制御部と、
前記第1の同期信号を基準にして参照タイミングを決定するタイミング決定部と、
前記参照タイミングと前記第2の同期信号の順序に基づいて、前記メモリ制御部により読み出す領域を決定する領域決定部と、
前記参照タイミングと前記第2の同期信号の順序の入れ替わりが発生すると予測される期間である交替期間を検出する交替期間検出部と、
を備え、
前記タイミング決定部は、前記交替期間内の前記参照タイミングを、前記順序の入れ替わりが発生しやすくなる方向に、変更するメモリ制御装置である。
A first aspect of the present invention is a memory having a plurality of areas;
Image data is sequentially written in each area of the memory in synchronization with a first synchronization signal, and image data is read from the memory in synchronization with a second synchronization signal generated asynchronously with the first synchronization signal. A memory controller;
A timing determination unit that determines a reference timing based on the first synchronization signal;
An area determination unit that determines an area to be read by the memory control unit based on the reference timing and the order of the second synchronization signals;
A replacement period detection unit that detects a replacement period that is a period in which the switching of the order of the reference timing and the second synchronization signal is predicted to occur;
With
The timing determination unit is a memory control device that changes the reference timing in the replacement period in a direction in which the change of order is likely to occur.

本発明の第2態様は、複数の領域を有するメモリの制御方法であって、
第1の同期信号に同期して前記メモリの各領域に画像データを順次書き込む書き込み工程と、
前記第1の同期信号とは非同期に生成される第2の同期信号に同期して画像データを前記メモリから読み出す読み出し工程と、を有し、
前記読み出し工程では、前記第1の同期信号を基準にして決定される参照タイミングと前記第2の同期信号との順序に基づいて、読み出す領域が決定され、
前記制御方法がさらに、
前記参照タイミングと前記第2の同期信号の順序の入れ替わりが発生すると予測される期間である交替期間を検出する工程と、
前記交替期間内の前記参照タイミングを、前記順序の入れ替わりが発生しやすくなる方向に、変更する工程と、を有するメモリの制御方法である。
A second aspect of the present invention is a method of controlling a memory having a plurality of areas,
A writing step of sequentially writing image data in each area of the memory in synchronization with a first synchronization signal;
A reading step of reading image data from the memory in synchronization with a second synchronization signal generated asynchronously with the first synchronization signal;
In the reading step, an area to be read is determined based on the order of the reference timing determined based on the first synchronization signal and the second synchronization signal,
The control method further includes:
Detecting a replacement period, which is a period during which a change in the order of the reference timing and the second synchronization signal is expected to occur;
And changing the reference timing within the replacement period in a direction in which the change of order is likely to occur.

本発明によれば、メモリの追い越しを回避できるとともに、動きが不自然となる画質劣化を可及的に抑制することができる。   According to the present invention, overtaking of a memory can be avoided and image quality deterioration that causes unnatural movement can be suppressed as much as possible.

図1は、本発明の実施形態に係るメモリ制御装置の構成例を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration example of a memory control device according to an embodiment of the present invention. 図2Aは、入力映像信号の垂直同期信号と有効ライン番号との関係を示す図であり、図2Bは、出力映像信号の垂直同期信号と有効ライン番号との関係を示す図である。2A is a diagram showing the relationship between the vertical synchronization signal of the input video signal and the effective line number, and FIG. 2B is a diagram showing the relationship between the vertical synchronization signal of the output video signal and the effective line number. 図3は、追い越しの発生する様子を示す図である。FIG. 3 is a diagram illustrating how overtaking occurs. 図4は、読み出すメモリ部の切り替え期間を示すタイミングチャート図である。FIG. 4 is a timing chart showing the switching period of the memory unit to be read. 図5は、検出タイミング信号生成部にてタイミング信号の生成される様子を示すタイミングチャート図である。FIG. 5 is a timing chart showing how the timing signal is generated by the detection timing signal generator. 図6は、速度差検出部にてIVS信号とOVS信号の速度差が検出される様子を示すタイミングチャート図である。FIG. 6 is a timing chart showing how the speed difference detection unit detects the speed difference between the IVS signal and the OVS signal. 図7は、追い越し回避検出部にて読み出すメモリ部の切り替え期間が検出される様子を示すタイミングチャート図である。FIG. 7 is a timing chart showing how the switching period of the memory unit read by the overtaking avoidance detection unit is detected. 図8は、出力メモリ選択部にて読み出すメモリ部を切り替える様子を示すタイミングチャート図である。FIG. 8 is a timing chart showing how the memory unit read by the output memory selection unit is switched. 図9は、出力メモリ選択信号生成部にて読み出すメモリ部が決定される様子を示すタイミングチャート図である。FIG. 9 is a timing chart showing how the memory unit to be read is determined by the output memory selection signal generation unit. 図10は、比較例のメモリ制御装置にて、読み出すメモリ部が決定される様子を示すタイミングチャート図である。FIG. 10 is a timing chart showing how the memory unit to be read is determined in the memory control device of the comparative example. 図11は、本発明の実施形態に係るメモリ制御装置にて、読み出すメモリ部が決定される様子を示すタイミングチャート図である。FIG. 11 is a timing chart showing how a memory unit to be read is determined in the memory control device according to the embodiment of the present invention. 図12は、比較例のメモリ制御装置にて、読み出すメモリ部が決定される様子を示すタイミングチャート図である。FIG. 12 is a timing chart showing how the memory unit to be read is determined in the memory control device of the comparative example. 図13は、本発明の実施形態に係るメモリ制御装置にて、読み出すメモリ部が決定される様子を示すタイミングチャート図である。FIG. 13 is a timing chart showing how the memory unit to be read is determined in the memory control device according to the embodiment of the present invention.

以下、本発明の実施の形態について、図面を参照しながら説明を行う。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

本発明の実施形態に係るメモリ制御装置は、画像データを記憶するフレームメモリの書き込み及び読み出しを制御するための装置である。このメモリ制御装置は、たとえば、テレビジョン装置などの表示装置の駆動回路や、表示装置に映像信号を供給する映像処理装置(コンピュータ、ビデオレコーダなど)の映像処理回路における、フレームメモリの制御に適用することができる。   A memory control device according to an embodiment of the present invention is a device for controlling writing and reading of a frame memory that stores image data. This memory control device is applied to control of a frame memory in a drive circuit of a display device such as a television device or a video processing circuit (computer, video recorder, etc.) that supplies a video signal to the display device. can do.

本実施形態のメモリ制御装置は、複数の領域(たとえば図1のBA0〜BA3)を有するメモリ(図1の1)を備える。各々の領域は、1画面分(1フィールド或いは1フレーム)の画像データを一時的に記憶するための領域である。   The memory control device of the present embodiment includes a memory (1 in FIG. 1) having a plurality of areas (for example, BA0 to BA3 in FIG. 1). Each area is an area for temporarily storing image data for one screen (one field or one frame).

メモリ制御装置は、メモリの書き込み及び読み出しの制御を担うメモリ制御部(図1の2)を備える。メモリ制御部は、第1の同期信号(図1のIVS信号)に同期してメモリの各領域に画像データを順次書き込む。一方、メモリ制御部は、第2の同期信号(図1のOVS信号)に同期して画像データをメモリから読み出す。   The memory control device includes a memory control unit (2 in FIG. 1) that controls memory writing and reading. The memory control unit sequentially writes the image data in each area of the memory in synchronization with the first synchronization signal (IVS signal in FIG. 1). On the other hand, the memory control unit reads the image data from the memory in synchronization with the second synchronization signal (OVS signal in FIG. 1).

ここで、第2の同期信号は、第1の同期信号とは非同期に生成される信号である。したがって前述のように第1の同期信号と第2の同期信号の周期は完全に一致しておらず、速度差がある。このとき、第1の同期信号のほうが速いケースと第2の同期信号のほうが速いケースの両方が発生し得、どちらのほうが速いのかを事前に決めることができないこともある。また、インタレース形式の映像信号を扱う場合のように、第1の同期信号の周期が画像データ毎(フィールド毎)に変動することもあり得る。   Here, the second synchronization signal is a signal generated asynchronously with the first synchronization signal. Therefore, as described above, the periods of the first synchronization signal and the second synchronization signal do not completely match, and there is a speed difference. At this time, both a case where the first synchronization signal is faster and a case where the second synchronization signal is faster may occur, and it may not be possible to determine in advance which is faster. Further, as in the case of handling an interlaced video signal, the period of the first synchronization signal may vary for each image data (each field).

メモリ制御装置は、メモリの読み出し位置が書き込み位置を追い越すのを未然に防ぐために、次のような構成を採用する。まず、タイミング決定部(図1の6、7)が、第1の同期信号(IVS信号)を基準にして参照タイミング(lat_IBA_sel信号)を決定する。
参照タイミングは、第1の同期信号に同期して書き込みが開始された領域に対して、参照タイミングから読み出しを開始したときに、追い越しが発生しない範囲(図4のメモリ切り替え期間)内に設定される。そして、領域決定部(図1の4、5)が、参照タイミング(lat_IBA_sel信号)と第2の同期信号(OVS信号)の順序に基づいて、メモリ制御部
により読み出す領域(OBA信号)を決定する。具体的には、第2の同期信号(OVS信号
)が参照タイミング(lat_IBA_sel信号)より後の場合は、追い越しは発生しないため、
書き込み中の領域から読み出しが行われる(図11のt3〜t6、図13のt10〜t11参照)。一方、第2の同期信号が参照タイミングより先の場合は、追い越しが発生する可能性があるため、書き込み中の領域の1つ前の領域から読み出しが行われる(図11のt1〜t2、図13のt12〜t16参照)。これにより追い越しの発生が回避される。
The memory control device employs the following configuration in order to prevent the read position of the memory from overtaking the write position. First, the timing determination unit (6 and 7 in FIG. 1) determines the reference timing (lat_IBA_sel signal) based on the first synchronization signal (IVS signal).
The reference timing is set within a range (memory switching period in FIG. 4) in which overtaking does not occur when reading is started from the reference timing with respect to the area where writing is started in synchronization with the first synchronization signal. The Then, the area determination unit (4, 5 in FIG. 1) determines an area (OBA signal) to be read by the memory control unit based on the order of the reference timing (lat_IBA_sel signal) and the second synchronization signal (OVS signal). . Specifically, when the second synchronization signal (OVS signal) is after the reference timing (lat_IBA_sel signal), overtaking does not occur.
Reading is performed from the area being written (see t3 to t6 in FIG. 11 and t10 to t11 in FIG. 13). On the other hand, when the second synchronization signal is ahead of the reference timing, overtaking may occur, so reading is performed from the area immediately before the area being written (t1 to t2 in FIG. 11). 13 t12-t16). This avoids overtaking.

このような追い越し回避手法では、参照タイミングと第2の同期信号の順序が入れ替わるときに、1画面分の画像データが読み飛ばされるか(図11のt2→t3参照)、同一の画像データが2回読み出される(図13のt11→t12参照)。これにより動画の動きが不自然になる可能性があるものの、追い越し回避のためには許容せざるを得ない。   In such an overtaking avoidance method, when the reference timing and the order of the second synchronization signal are switched, image data for one screen is skipped (see t2 → t3 in FIG. 11), or the same image data is 2 It is read once (see t11 → t12 in FIG. 13). Although this may cause unnatural motion of the moving image, it must be allowed to avoid overtaking.

しかしながら、第1の同期信号と第2の同期信号が非同期の関係にあったり、第1の同期信号の周期が変動したりする場合は、図10や図12に示すような現象が生じるおそれがある。すなわち、参照タイミングと第2の同期信号の順序が入れ替わった直後に(図10のt2→t3)、順序が元に戻り(t3→t4)、また入れ替わる(t4→t5)というように、順序の入れ替わりが頻発するのである。このような現象が発生すると、画像データの読み飛ばしや繰り返しが不必要に生じるために、画質の劣化を招いてしまう。   However, when the first synchronization signal and the second synchronization signal are in an asynchronous relationship or when the cycle of the first synchronization signal fluctuates, the phenomenon shown in FIGS. 10 and 12 may occur. is there. That is, immediately after the order of the reference timing and the second synchronization signal is changed (t2 → t3 in FIG. 10), the order is restored (t3 → t4), and the order is changed (t4 → t5). Replacements occur frequently. When such a phenomenon occurs, image data is skipped and repeated unnecessarily, resulting in degradation of image quality.

そこで、メモリ制御装置は、上記現象を抑制するために、次のような構成を採用する。まず、交替期間検出部(図1の9)が、参照タイミングと第2の同期信号の順序の入れ替わりが発生すると予測される期間である交替期間を検出する(図11のnear信号が”1”である期間が交替期間)。そして、タイミング決定部(図1の6、7)が、交替期間内の参照タイミング(lat_IBA_sel信号)を、順序の入れ替わりが発生しやすくなる方向に変
更する。たとえば図11のように、交替期間において予定されている順序の入れ替わりが「先:第2の同期信号、後:参照タイミング→先:参照タイミング、後:第2の同期信号
」である場合は、参照タイミングを早める(lat_IBA(2)からlat_IBA(1)に変更)。逆に図13のように、交替期間において予定されている順序の入れ替わりが「先:参照タイミング、後:第2の同期信号→先:第2の同期信号、後:参照タイミング」である場合は、参照タイミングを遅らせる(lat_IBA(2)からlat_IBA(3)に変更)。
Therefore, the memory control device adopts the following configuration in order to suppress the above phenomenon. First, the replacement period detection unit (9 in FIG. 1) detects a replacement period that is a period in which the switching of the order of the reference timing and the second synchronization signal is expected (the near signal in FIG. 11 is “1”). Is a replacement period). Then, the timing determination unit (6 and 7 in FIG. 1) changes the reference timing (lat_IBA_sel signal) in the replacement period in a direction in which the order is likely to change. For example, as shown in FIG. 11, when the planned change in the replacement period is “first: second synchronization signal, rear: reference timing → first: reference timing, rear: second synchronization signal” Advance the reference timing (change from lat_IBA (2) to lat_IBA (1)). On the contrary, as shown in FIG. 13, when the change of the order planned in the replacement period is “first: reference timing, after: second synchronization signal → destination: second synchronization signal, after: reference timing”. , Delay the reference timing (change from lat_IBA (2) to lat_IBA (3)).

このように交替期間における参照タイミングを調整することによって、交替期間における参照タイミングと第2の同期信号の順序の入れ替わりが促進される一方で、一度入れ替わった順序が元に戻ることは抑制される。したがって、順序の入れ替わりが頻発する現象が好適に抑制され、画質の劣化を可及的に抑えることができる。   By adjusting the reference timing in the replacement period in this way, the switching of the reference timing in the replacement period and the order of the second synchronization signal is promoted, while the order once switched is suppressed from being restored. Therefore, the phenomenon that the order is frequently changed is preferably suppressed, and the deterioration of the image quality can be suppressed as much as possible.

ここで、第1の同期信号と第2の同期信号が非同期の関係にあると、参照タイミングが第2の同期信号を追い抜くケースと、第2の同期信号が参照タイミングを追い抜くケースのいずれもが生じ得る。それゆえ、速度差検出部(図1の8)が、第2の同期信号の周期と第1の同期信号の周期のいずれが速いかを検出する。第1の同期信号の周期のほうが速い場合(ov_direction=1)、タイミング決定部は、交替期間内の参照タイミングを第1のタイミング(lat_IBA(1)信号)に設定する(図11参照)。第1のタイミングは、交替期間外の参照タイミングである第2のタイミング(lat_IBA(2)信号)よりも早いタイミングである。また、第2の同期信号の周期のほうが速い場合(ov_direction=0)、タイミング決定部は、交替期間内の参照タイミングを第2のタイミングよりも遅い第3のタイミング(lat_IBA(3)信号)に設定する(図13参照)。このような構成により、第1の同期信号と第2の同期信号のどちらが速いケースでも、画質の劣化を好適に抑制することができる。   Here, when the first synchronization signal and the second synchronization signal are in an asynchronous relationship, both the case in which the reference timing overtakes the second synchronization signal and the case in which the second synchronization signal overtakes the reference timing are available. Can occur. Therefore, the speed difference detection unit (8 in FIG. 1) detects which of the cycle of the second synchronization signal and the cycle of the first synchronization signal is faster. When the cycle of the first synchronization signal is faster (ov_direction = 1), the timing determination unit sets the reference timing within the replacement period to the first timing (lat_IBA (1) signal) (see FIG. 11). The first timing is earlier than the second timing (lat_IBA (2) signal) which is the reference timing outside the replacement period. Further, when the cycle of the second synchronization signal is faster (ov_direction = 0), the timing determination unit sets the reference timing within the replacement period to a third timing (lat_IBA (3) signal) that is later than the second timing. Set (see FIG. 13). With such a configuration, it is possible to favorably suppress deterioration in image quality regardless of which of the first synchronization signal and the second synchronization signal is fast.

速度差検出部(図1の8)は、たとえば、交替期間の前における第2の同期信号と第2のタイミングの順序を調べることで、どちらの同期信号の周期が速いか判定することができる。第2の同期信号が先行していた場合には、第1の同期信号の周期のほうが速いとみなしてよい。交替期間の前で第2の同期信号が先行しているということは、第2の同期信号が第1の同期信号よりも徐々に遅れていき、交替期間の間に第2の同期信号と第2のタイミングの順序が入れ替わることを意味するからである。逆に、第2のタイミングが先行していた場合には、第2の同期信号の周期のほうが速いとみなすことができる。   The speed difference detection unit (8 in FIG. 1) can determine which synchronization signal cycle is faster, for example, by examining the order of the second synchronization signal and the second timing before the replacement period. . When the second synchronization signal is preceded, it may be considered that the period of the first synchronization signal is faster. The fact that the second synchronization signal precedes the replacement period means that the second synchronization signal is gradually delayed from the first synchronization signal, and the second synchronization signal and the second synchronization signal during the replacement period. This is because it means that the order of the timings of 2 is switched. On the contrary, when the second timing is preceded, it can be considered that the period of the second synchronization signal is faster.

より具体的には、以下の構成が好ましい。ウィンドウ設定部(図1の6)が、第2のタイミング(lat_IBA(2)信号)よりも前に第1のウィンドウ(near_off(1)=1)を設定し、
第2のタイミングよりも後に第2のウィンドウ(near_off(2)=1)を設定する(図5参照
)。そして、速度差検出部が、第1のウィンドウ(near_off(1)=1)内で第2の同期信号
(OVS信号)を検出した場合に第1の同期信号の周期のほうが速い(ov_direction=1)と判定する(図6参照)。また、第2のウィンドウ(near_off(2)=1)内で第2の同期信
号(OVS信号)を検出した場合に第2の同期信号の周期のほうが速い(ov_direction=0)と判定する。これにより、第1の同期信号と第2の同期信号のいずれの周期が速いかを、簡易な構成及び処理により判定することができる。
More specifically, the following configuration is preferable. The window setting unit (6 in FIG. 1) sets the first window (near_off (1) = 1) before the second timing (lat_IBA (2) signal),
A second window (near_off (2) = 1) is set after the second timing (see FIG. 5). When the speed difference detection unit detects the second synchronization signal (OVS signal) within the first window (near_off (1) = 1), the cycle of the first synchronization signal is faster (ov_direction = 1 ) (See FIG. 6). Further, when the second synchronization signal (OVS signal) is detected within the second window (near_off (2) = 1), it is determined that the cycle of the second synchronization signal is faster (ov_direction = 0). This makes it possible to determine which cycle of the first synchronization signal and the second synchronization signal is fast with a simple configuration and processing.

<メモリ制御装置の詳細構成>
では、本発明の実施形態に係るメモリ制御装置の詳細な構成について説明する。
<Detailed configuration of memory control device>
Now, a detailed configuration of the memory control device according to the embodiment of the present invention will be described.

図1は、メモリ制御装置の構成を示すブロック図である。1は、入力された一つの画面を形成するための画像情報を記憶できるメモリ部を複数有しているフレームメモリである。本例ではそれぞれのメモリ部をバンクエリア(Bank Area:以下、BAとする)と呼び
、BA0からBA3までの4つのメモリ部を有しているものとする。ここで、メモリ部は4つに限定されるものではなく、2つ以上のメモリ部を有していれば、メモリ部を切り替えることによる追い越し回避制御は可能である。2は、フレームメモリ1の書き込み、或
いは読み出し制御を行うメモリ制御部である。3は、入力された映像データを書き込むメモリ部を選択する入力メモリ選択信号生成部である。4は、入力メモリ選択信号生成部3にて生成された入力メモリ選択信号を、フレームメモリ1からの映像データ読み出しにおいて追い越しの発生しないタイミングで保持しておくための入力メモリ選択信号保持部である。5は、出力する映像データを読み出すメモリ部を選択する出力メモリ選択信号生成部である。6は、追い越しを検出するための信号を生成する検出タイミング信号生成部である。7は、入力メモリ選択信号保持部4へ入力メモリ選択信号生成部3にて生成された入力メモリ選択信号を保持するタイミング信号を生成して出力する出力メモリ選択部である。8は、入力垂直同期信号(第1の同期信号)と出力垂直同期信号(第2の同期信号)の速度差を検出する速度差検出部である。9は、フレームメモリ1からの映像データ読み出しにおいて追い越しの発生回避を検出する追い越し回避検出部である。10は、フレームメモリ1から読み出した映像データを出力するタイミングを生成する出力タイミング信号生成部である。
FIG. 1 is a block diagram showing the configuration of the memory control device. Reference numeral 1 denotes a frame memory having a plurality of memory units capable of storing image information for forming one input screen. In this example, each memory unit is called a bank area (hereinafter referred to as BA), and has four memory units from BA0 to BA3. Here, the number of memory units is not limited to four, and if there are two or more memory units, overtaking avoidance control by switching the memory units is possible. Reference numeral 2 denotes a memory control unit that controls writing or reading of the frame memory 1. Reference numeral 3 denotes an input memory selection signal generation unit that selects a memory unit to which input video data is written. Reference numeral 4 denotes an input memory selection signal holding unit for holding the input memory selection signal generated by the input memory selection signal generation unit 3 at a timing at which no overtaking occurs in the video data reading from the frame memory 1. . Reference numeral 5 denotes an output memory selection signal generation unit that selects a memory unit from which video data to be output is read. Reference numeral 6 denotes a detection timing signal generation unit that generates a signal for detecting overtaking. Reference numeral 7 denotes an output memory selection unit that generates and outputs a timing signal for holding the input memory selection signal generated by the input memory selection signal generation unit 3 to the input memory selection signal holding unit 4. A speed difference detection unit 8 detects a speed difference between the input vertical synchronization signal (first synchronization signal) and the output vertical synchronization signal (second synchronization signal). Reference numeral 9 denotes an overtaking avoidance detecting unit that detects avoidance of overtaking in reading video data from the frame memory 1. Reference numeral 10 denotes an output timing signal generation unit that generates timing for outputting video data read from the frame memory 1.

図1の構成では、検出タイミング信号生成部6及び出力メモリ選択部7が、上述した「タイミング決定部」に対応する。また入力メモリ選択信号保持部4及び出力メモリ選択信号生成部5が、上述した「領域決定部」に対応する。また追い越し回避検出部9が、上述した「交替期間検出部」に対応する。また検出タイミング信号生成部6が、上述した「ウィンドウ設定部」に対応する。   In the configuration of FIG. 1, the detection timing signal generation unit 6 and the output memory selection unit 7 correspond to the “timing determination unit” described above. The input memory selection signal holding unit 4 and the output memory selection signal generation unit 5 correspond to the above-described “region determination unit”. Further, the overtaking avoidance detection unit 9 corresponds to the “replacement period detection unit” described above. The detection timing signal generator 6 corresponds to the “window setting unit” described above.

<制御信号>
メモリ制御装置が取り扱う制御信号について説明する。
<Control signal>
Control signals handled by the memory control device will be described.

「IFLD」は、入力映像データが奇数フィールドの映像データか偶数フィールドの映像データかを示すフィールド信号である。「IVS」は、入力映像データの垂直同期信号(第1
の同期信号)である。「IHS」は、入力映像データの水平同期信号である。「IACT」は、
入力映像データの有効データ信号である。
“IFLD” is a field signal indicating whether the input video data is odd field video data or even field video data. “IVS” is the vertical sync signal (first
Synchronization signal). “IHS” is a horizontal synchronization signal of input video data. "IACT"
This is a valid data signal for input video data.

「OVS」は、出力映像データの垂直同期信号(第2の同期信号)である。「OHS」は、出力映像データの水平同期信号である。「OACT」は、出力映像データの有効データ信号である。   “OVS” is a vertical synchronization signal (second synchronization signal) of output video data. “OHS” is a horizontal synchronization signal of output video data. “OACT” is an effective data signal of output video data.

「IBA」は、映像データを書き込むBAを指定する入力メモリ選択信号である。「OBA」は、映像データを読み出すBAを指定する出力メモリ選択信号である。   “IBA” is an input memory selection signal for designating a BA to which video data is written. “OBA” is an output memory selection signal for designating a BA from which video data is read.

「lat_IBA(1)」「lat_IBA(2)」「lat_IBA(3)」は、IVS信号を基準に生成されるタイミング信号である。lat_IBA(2)信号がデフォルトのタイミング(第2のタイミング)である。lat_IBA(1)信号はlat_IBA(2)信号よりも早いタイミング(第1のタイミング)、lat_IBA(3)信号はlat_IBA(2)信号よりも遅いタイミング(第3のタイミング)である。「lat_IBA_sel」は、lat_IBA(1)〜lat_IBA(3)の中から選択された信号であり、IBA信号を参照しその値をラッチするタイミングを規定するために用いられる。lat_IBA_sel信号が、上述
した「参照タイミング」に対応する。「IBA_lat」は、lat_IBA_sel信号のタイミングでラッチされたIBA信号の値を示す信号である。すなわち、IBA_lat信号は、IBA信号と同じよ
うに値が変化する信号である。ただし、IBA_lat信号の値が変化するタイミングは、IBA信号に比べて、lat_IBA_sel信号で指定された分だけ遅れており、その遅れ量はlat_IBA(1)
〜lat_IBA(3)により変化する。
“Lat_IBA (1)”, “lat_IBA (2)”, and “lat_IBA (3)” are timing signals generated based on the IVS signal. The lat_IBA (2) signal is the default timing (second timing). The lat_IBA (1) signal has an earlier timing (first timing) than the lat_IBA (2) signal, and the lat_IBA (3) signal has a later timing (third timing) than the lat_IBA (2) signal. “Lat_IBA_sel” is a signal selected from lat_IBA (1) to lat_IBA (3), and is used to specify the timing of referring to the IBA signal and latching the value. The lat_IBA_sel signal corresponds to the “reference timing” described above. “IBA_lat” is a signal indicating the value of the IBA signal latched at the timing of the lat_IBA_sel signal. That is, the IBA_lat signal is a signal whose value changes in the same manner as the IBA signal. However, the timing at which the value of the IBA_lat signal changes is delayed by the amount specified by the lat_IBA_sel signal compared to the IBA signal, and the amount of delay is lat_IBA (1)
It changes by ~ lat_IBA (3).

「near_on」は、OVS信号がlat_IBA(2)信号の近くにあるか否かを検出するために用
いられるウィンドウである。「near_off(1)」は、OVS信号がlat_IBA(1)信号の近くに
あるか否かを検出するために用いられる第1のウィンドウである。「near_off(2)」は、
OVS信号がlat_IBA(3)信号の近くにあるか否かを検出するために用いられる第2のウィンドウである。
“Near_on” is a window used to detect whether the OVS signal is near the lat_IBA (2) signal. “Near_off (1)” is a first window used to detect whether the OVS signal is near the lat_IBA (1) signal. "Near_off (2)"
A second window used to detect whether the OVS signal is near the lat_IBA (3) signal.

「near」は、OVS信号がlat_IBA(2)信号の近くにあるか否かを示す信号である。near_on信号のウィンドウ内でOVS信号が検出されるとnear信号が1になり、near_off(1)信号又はnear_off(2)信号のウィンドウ内でOVS信号が検出されるとnear信号は0になる
。near信号が1である期間が、上述した「交替期間」に対応する。
“Near” is a signal indicating whether or not the OVS signal is close to the lat_IBA (2) signal. When the OVS signal is detected within the near_on signal window, the near signal becomes 1, and when the OVS signal is detected within the near_off (1) signal or near_off (2) signal window, the near signal becomes 0. The period in which the near signal is 1 corresponds to the “alternating period” described above.

「ov_direction」は、IVS信号の周期とOVS信号の周期のいずれが速いか(短いか)を示す信号である。near_off(1)信号のウィンドウ内でOVS信号が検出されるとov_direction信号は1になり、near_off(2)信号のウィンドウ内でOVS信号が検出されるとov_direction信号は0になる。   “Ov_direction” is a signal indicating which one of the cycle of the IVS signal and the cycle of the OVS signal is fast (short). When the OVS signal is detected within the near_off (1) signal window, the ov_direction signal becomes 1, and when the OVS signal is detected within the near_off (2) signal window, the ov_direction signal becomes 0.

<メモリ制御装置の動作>
次に、以上に説明したメモリ制御装置の動作について詳細に説明を行う。
<Operation of memory control device>
Next, the operation of the memory control device described above will be described in detail.

メモリ制御部2は、IVS信号、IHS信号、IACT信号、及びIBA信号に基づき、入力映像データをフレームメモリ1のIBA信号にて指定されたメモリ部へ順次書き込むための制御信号を生成してフレームメモリ1へ出力する。またメモリ制御部2は、OVS信号、OHS信号、OACT信号、及びOBA信号に基づき、映像データをフレームメモリ1から順次読み出すための制御信号を生成してフレームメモリ1へ出力する。   Based on the IVS signal, IHS signal, IACT signal, and IBA signal, the memory control unit 2 generates a control signal for sequentially writing the input video data to the memory unit designated by the IBA signal of the frame memory 1 to generate a frame. Output to memory 1. The memory control unit 2 generates a control signal for sequentially reading video data from the frame memory 1 based on the OVS signal, the OHS signal, the OACT signal, and the OBA signal, and outputs the control signal to the frame memory 1.

本実施形態では、入力映像データはインタレース形式の映像信号を想定している。メモリ制御部2は、IFLD信号を参照して、フレームメモリ1へ格納されたインタレース形式の映像信号に対し、飛び越されたラインの画素情報を補間してプログレッシブ形式の映像信号に変換する処理部(以下、IP変換処理部と呼ぶ)を有している。IP変換処理部は、一般的に知られているIP変換処理を用いることができる。公知のIP変換処理としては、画素毎に画素値のフレーム間差分情報を求め、更にフレーム間差分情報から画素毎の動きを判定し、動画であればフレーム内での補間処理を行い、静止画であればフレーム間での補間処理を行う動き適応方式がある。動き適応方式のIP変換処理では補間処理を行うのにフレーム遅延が発生してしまうため、ここでは単純にフレーム内での補間処理のみを行う方式を用いてもよい。   In this embodiment, the input video data is assumed to be an interlaced video signal. The memory control unit 2 refers to the IFLD signal, and interpolates interlaced line pixel information with respect to the interlaced video signal stored in the frame memory 1 to convert it into a progressive video signal. Section (hereinafter referred to as an IP conversion processing section). The IP conversion processing unit can use generally known IP conversion processing. As a known IP conversion process, the inter-frame difference information of the pixel value is obtained for each pixel, and further, the movement for each pixel is determined from the inter-frame difference information. Then, there is a motion adaptation method that performs interpolation processing between frames. In the motion adaptive IP conversion processing, a frame delay occurs when performing the interpolation processing. Therefore, a method of simply performing the interpolation processing within the frame may be used here.

フレームメモリ1は、メモリ制御部2から出力される制御信号に従い、入力映像データをフィールド単位でBA0からBA3までのメモリ部に巡回しながら格納する。またフレームメモリ1は、メモリ部に格納された映像データを制御信号に従って読み出して出力する。フレームメモリ1からはプログレッシブ形式の映像データが出力される。   The frame memory 1 stores the input video data while circulating in the memory units from BA0 to BA3 in units of fields according to the control signal output from the memory control unit 2. The frame memory 1 reads out and outputs the video data stored in the memory unit according to the control signal. Progressive video data is output from the frame memory 1.

入力メモリ選択信号生成部3は、入力されるIVS信号の変化に同期してIBA信号を更新する。入力メモリ選択信号生成部3は、例えばIVS信号が発行される毎にBA0からBA3までのメモリ部を指定する2ビットのカウンタ値を更新するような簡単なカウンタで構成され、カウンタ値をIBA信号として出力する。   The input memory selection signal generation unit 3 updates the IBA signal in synchronization with the change of the input IVS signal. The input memory selection signal generation unit 3 is composed of a simple counter that updates a 2-bit counter value that designates a memory unit from BA0 to BA3 each time an IVS signal is issued, for example. Output as.

検出タイミング信号生成部6は、追い越し回避制御を行うためのタイミング信号を生成して出力する。図5は、検出タイミング信号生成部6にて生成されるタイミング信号の例を示したタイミングチャート図である。検出タイミング信号生成部6は、IVS信号の変化で初期値を設定し、IHS信号の変化でカウントダウンするカウンタを有している。タイミング信号はカウンタのカウント値に従って生成される。   The detection timing signal generation unit 6 generates and outputs a timing signal for performing overtaking avoidance control. FIG. 5 is a timing chart showing an example of the timing signal generated by the detection timing signal generation unit 6. The detection timing signal generator 6 has a counter that sets an initial value when the IVS signal changes and counts down when the IHS signal changes. The timing signal is generated according to the count value of the counter.

図5の例では、初期値が16進数で"10"であり、カウント値が"10"の時のIHS信
号変化点でlat_signal信号が出力される。カウント値が"E"の時のIHS信号変化点でlat_IBA(1)信号が出力される。カウント値が"A"の時のIHS信号変化点でlat_IBA(2)信号が出力される。カウント値が"6"の時のIHS信号変化点でlat_IBA(3)信号が出力される。
In the example of FIG. 5, the lat_signal signal is output at the IHS signal change point when the initial value is “10” in hexadecimal and the count value is “10”. The lat_IBA (1) signal is output at the IHS signal change point when the count value is “E”. The lat_IBA (2) signal is output at the IHS signal change point when the count value is “A”. The lat_IBA (3) signal is output at the IHS signal change point when the count value is “6”.

また、カウント値が"A"と"9"の時にnear_on信号が出力され、カウント値が"E"と"D"の時にnear_off(1)信号が出力され、カウント値が"6"と"5"の時にnear_off(2)信号
が出力される。near_on信号とnear_off信号は、メモリの追い越しが発生しない期間内に
生成される。
When the count values are “A” and “9”, a near_on signal is output, and when the count values are “E” and “D”, a near_off (1) signal is output, and the count values are “6” and “5”. When "", the near_off (2) signal is output. The near_on signal and the near_off signal are generated within a period in which no overtaking of the memory occurs.

図2A、図2B、図3、図4にて、near_on信号とnear_off信号を生成するタイミング
について説明を行う。図2Aは、入力される映像信号における垂直同期信号を示す図であり、図2Bは、出力タイミング信号生成部10にて生成される表示側の垂直同期信号を示す図である。
The timing for generating the near_on signal and the near_off signal will be described with reference to FIGS. 2A, 2B, 3, and 4. FIG. 2A is a diagram illustrating a vertical synchronization signal in an input video signal, and FIG. 2B is a diagram illustrating a display-side vertical synchronization signal generated by the output timing signal generation unit 10.

図2Aにおいて、横軸は入力される映像信号における1垂直同期期間を示し、前後にブランキング期間IVB1とIVB2があり、ブランキング期間を除いた期間で有効データの転送が行われる。縦軸は、入力される有効データのライン番号を示す。本例では1080本の有効データが入力され、ブランキング期間を除いた期間で1080本の有効データが順次入力される様子を示す(実線にて示した直線)。本例では、入力される映像データはインタレース形式の映像信号を想定しているため、奇数ラインの映像データのみで構成される奇数フィールドと偶数ラインの映像データのみで構成される偶数フィールドとが交互に繰り返される。飛び越されたラインの映像データはメモリ制御部2が生成してフレームメモリ1へ書き込むものとする。   In FIG. 2A, the horizontal axis indicates one vertical synchronization period in the input video signal, and there are blanking periods IVB1 and IVB2 before and after, and valid data is transferred in a period excluding the blanking period. The vertical axis indicates the line number of the input valid data. In this example, 1080 valid data is input, and 1080 valid data is sequentially input during a period excluding the blanking period (a straight line indicated by a solid line). In this example, since the input video data is assumed to be an interlaced video signal, there are an odd field composed only of odd line video data and an even field composed only of even line video data. Repeated alternately. It is assumed that the video data of the skipped line is generated by the memory control unit 2 and written to the frame memory 1.

図2Bに示すように、表示側の1垂直同期期間では、前後にブランキング期間OVB1とOVB2があり、ブランキング期間を除いた期間で有効データの読み出しが行われる(破線にて示した直線)。   As shown in FIG. 2B, in one vertical synchronization period on the display side, there are blanking periods OVB1 and OVB2 before and after, and valid data is read out during the period excluding the blanking period (a straight line indicated by a broken line). .

ここで、表示側の同期信号は、入力側の同期信号とは同期せずに生成されるため、図2Aで示した入力垂直同期期間と図2Bで示した出力垂直同期期間は同じにならない。また、ブランキング期間に関しても、表示側でのブランキング期間は表示デバイスの特性で任意に決められるため、入力側のブランキング期間(IVB1,IVB2)と表示側のブランキング期間(OVB1,OVB2)は同じにならない。このため、フレームメモリ1からの映像データ読み出しにおいて追い越しが発生し得る。   Here, since the display-side synchronization signal is generated without being synchronized with the input-side synchronization signal, the input vertical synchronization period shown in FIG. 2A and the output vertical synchronization period shown in FIG. 2B are not the same. As for the blanking period, the blanking period on the display side is arbitrarily determined by the characteristics of the display device, so the blanking period on the input side (IVB1, IVB2) and the blanking period on the display side (OVB1, OVB2). Will not be the same. For this reason, overtaking may occur in reading video data from the frame memory 1.

図3は、図2Aで示した入力垂直同期期間と図2Bで示した出力垂直同期期間を重ねて表示したものである。実線で示した入力映像データをフレームメモリ1へ書き込むタイミングと、破線で示したフレームメモリ1から映像データを読み出すタイミングが交差するところ(tOVER)で追い越しが発生する。   FIG. 3 shows the input vertical synchronization period shown in FIG. 2A and the output vertical synchronization period shown in FIG. 2B in an overlapping manner. Overtaking occurs when the timing of writing input video data indicated by a solid line into the frame memory 1 and the timing of reading video data from the frame memory 1 indicated by a broken line intersect (tOVER).

追い越しが発生するかどうかは入力垂直同期信号(IVS)と出力垂直同期信号(OVS)の発生タイミングから判断することができる。図4に示すように、IVS信号の発生する前後(ハッチングで示した期間)でOVS信号が発生した場合、図3で示したような交差点(tOVER)が現れ、追い越しが発生することとなる。逆にいえば、図4のハッチング期間
の外でOVS信号が発生すれば追い越しは発生しない。よって、IVS信号とOVS信号のタイミングが徐々にずれていく場合には、OVS信号がハッチング期間に進入する前に(つまりOVS信号がメモリ切り替え期間内にある間に)読み出すメモリ部を切り替えることで、追い越しを回避することができる。図5で示したnear_on信号とnear_off信号は
、図4のメモリ切り替え期間内に配置される。なお本実施形態においては、追い越しの発
生しない期間を検出して読み出すメモリ部の切り替えを行うが、追い越しの発生する期間を検出して読み出すメモリ部の切り替えを行うとしても等価の処理となる。
Whether overtaking occurs can be determined from the generation timing of the input vertical synchronization signal (IVS) and the output vertical synchronization signal (OVS). As shown in FIG. 4, when the OVS signal is generated before and after the generation of the IVS signal (period shown by hatching), an intersection (tOVER) as shown in FIG. 3 appears and overtaking occurs. Conversely, if the OVS signal is generated outside the hatching period of FIG. 4, no overtaking occurs. Therefore, when the timings of the IVS signal and the OVS signal gradually shift, the memory unit to be read is switched before the OVS signal enters the hatching period (that is, while the OVS signal is within the memory switching period). , Can avoid overtaking. The near_on signal and the near_off signal shown in FIG. 5 are arranged within the memory switching period of FIG. In the present embodiment, the memory unit to be read and detected while a period in which overtaking does not occur is switched. However, even if the memory unit to be read and detected in a period in which overtaking occurs is switched, an equivalent process is performed.

次に、図6は、速度差検出部8での処理の様子を示したタイミングチャート図である。速度差検出部8は、near_off信号とOVS信号とから、IVS信号に対するOVS信号の速度差を判断する。IVS信号の周期に対しOVS信号の周期が速い場合には、ov_direction信号を"0"として出力し、IVS信号の周期に対しOVS信号の周期が遅い場合には、ov_direction信号を"1"として出力する。速度差検出部8は、図6に示すように、near_off(1)信号が"1"である期間にOVS信号の立ち上がり変化が検出された場合にはov_direction信号を"1"とする。near_off(2)信号が"1"である期間にOVS信号の立ち上がり変化が検出された場合にはov_direction信号を"0"とする。   Next, FIG. 6 is a timing chart showing a state of processing in the speed difference detection unit 8. The speed difference detector 8 determines the speed difference of the OVS signal with respect to the IVS signal from the near_off signal and the OVS signal. When the cycle of the OVS signal is faster than the cycle of the IVS signal, the ov_direction signal is output as “0”, and when the cycle of the OVS signal is slower than the cycle of the IVS signal, the ov_direction signal is output as “1”. To do. As illustrated in FIG. 6, the speed difference detection unit 8 sets the ov_direction signal to “1” when a rising change of the OVS signal is detected during a period in which the near_off (1) signal is “1”. If the rising change of the OVS signal is detected during the period when the near_off (2) signal is “1”, the ov_direction signal is set to “0”.

IVS信号の周期に対しOVS信号の周期が遅い場合には、OVS信号はIVS信号から離れる方向へ移動し、near_off(1)信号のアサート期間を通過後にnear_off(2)信号のアサート期間を通過する。その間はov_direction信号が"1"として出力される。また、IVS信号の周期に対しOVS信号の周期が速い場合には、OVS信号はIVS信号に近づく方向へ移動し、near_off(2)信号のアサート期間を通過後にnear_off(1)信号のアサート期間を通過する。その間はov_direction信号が"0"として出力される。   When the period of the OVS signal is slower than the period of the IVS signal, the OVS signal moves away from the IVS signal, and passes the assert period of the near_off (2) signal after passing the assert period of the near_off (1) signal. . In the meantime, the ov_direction signal is output as “1”. When the OVS signal cycle is faster than the IVS signal cycle, the OVS signal moves closer to the IVS signal, and after passing the near_off (2) signal assertion period, the near_off (1) signal assertion period is increased. pass. During this period, the ov_direction signal is output as “0”.

以上説明したように、near_on信号、near_off信号、及びOVS信号を利用することで
簡単にIVS信号とOVS信号との速度差を判断することが可能である。
As described above, the speed difference between the IVS signal and the OVS signal can be easily determined by using the near_on signal, the near_off signal, and the OVS signal.

図7は、追い越し回避検出部9での処理の様子を示したタイミングチャート図である。追い越し回避検出部9は、near_on信号とnear_off信号、及びOVS信号とから、OVS
信号が読み出すメモリ部の切り替えタイミングの近辺にあるか否かを判断する。追い越し回避検出部9は、図7に示すように、near_on信号が"1"として出力されている期間にO
VS信号の立ち上がり変化が検出された場合には、near信号を"1"とする。追い越し回避検出部9は、near_off(1)信号又はnear_off(2)信号が"1"として出力されている期間にOVS信号の立ち上がり変化が検出された場合には、near信号を"0"として出力する。
FIG. 7 is a timing chart showing a state of processing in the overtaking avoidance detecting unit 9. The overtaking avoidance detection unit 9 detects the OVS from the near_on signal, the near_off signal, and the OVS signal.
It is determined whether or not the signal is in the vicinity of the switching timing of the memory unit to be read. As shown in FIG. 7, the overtaking avoidance detection unit 9 performs O during the period when the near_on signal is output as “1”.
When the rising change of the VS signal is detected, the near signal is set to “1”. The overtaking avoidance detection unit 9 outputs the near signal as “0” when the rising change of the OVS signal is detected during the period when the near_off (1) signal or the near_off (2) signal is output as “1”. To do.

図8は、出力メモリ選択部7での処理の様子を示したタイミングチャート図である。出力メモリ選択部7は、ov_direction信号とnear信号に基づき、lat_IBA(1)信号、lat_IBA(2)信号、lat_IBA(3)信号の何れかを選択してlat_IBA_sel信号として出力する。出力メモ
リ選択部7は、図8に示すように、まずlat_signal信号のタイミングにおいて、ov_direction信号の状態を保持したov_direction_lat信号と、near信号の状態を保持したnear_lat信号とを生成する。次に、near_lat信号が"0"の場合にはlat_IBA(2)信号を選択してlat_IBA_sel信号として出力する。near_lat信号が"1"の場合には、ov_direction_lat信号の
状態に応じてlat_IBA(1)信号とlat_IBA(3)信号の何れかが選択されてlat_IBA_sel信号と
して出力される。ov_direction_lat信号が"1"の場合には図8の(a)に示すようにlat_IBA(1)信号が選択され、ov_direction_lat信号が"0"の場合には図8の(b)に示すようにlat_IBA(3)信号が選択されて出力される。
FIG. 8 is a timing chart showing the state of processing in the output memory selection unit 7. The output memory selection unit 7 selects one of the lat_IBA (1) signal, the lat_IBA (2) signal, and the lat_IBA (3) signal based on the ov_direction signal and the near signal, and outputs the selected signal as a lat_IBA_sel signal. As shown in FIG. 8, the output memory selection unit 7 first generates an ov_direction_lat signal holding the state of the ov_direction signal and a near_lat signal holding the state of the near signal at the timing of the lat_signal signal. Next, when the near_lat signal is “0”, the lat_IBA (2) signal is selected and output as the lat_IBA_sel signal. When the near_lat signal is “1”, either the lat_IBA (1) signal or the lat_IBA (3) signal is selected according to the state of the ov_direction_lat signal and output as the lat_IBA_sel signal. When the ov_direction_lat signal is “1”, the lat_IBA (1) signal is selected as shown in FIG. 8A, and when the ov_direction_lat signal is “0”, as shown in FIG. 8B, lat_IBA (3) A signal is selected and output.

入力メモリ選択信号保持部4は、lat_IBA_sel信号の変化するタイミングにてIBA信
号の状態を保持し、IBA_lat信号として出力する。出力メモリ選択信号生成部5は、OV
S信号の変化するタイミングにてIBA_lat信号の状態を保持し、OBA信号として出力す
る。
The input memory selection signal holding unit 4 holds the state of the IBA signal at the timing when the lat_IBA_sel signal changes and outputs it as an IBA_lat signal. The output memory selection signal generator 5 is OV
The state of the IBA_lat signal is held at the timing when the S signal changes, and is output as an OBA signal.

出力タイミング信号生成部10は、フレームメモリ1に記憶されている映像データを出力するタイミング信号として、垂直同期信号(OVS)、水平同期信号(OHS)、有効データ信号(OACT)を生成して出力する。   The output timing signal generator 10 generates and outputs a vertical synchronization signal (OVS), a horizontal synchronization signal (OHS), and an effective data signal (OACT) as timing signals for outputting video data stored in the frame memory 1. To do.

以上に説明したメモリ制御装置の動作を、図9のタイミングチャート図に示す。図9の(a)は、OVS信号がnear_on信号のアサート期間から離れた位置で発生している様子
を示す。(b)は、ov_direction信号が"1"の状態でOVS信号がnear_on信号のアサー
ト期間で発生している様子を示す。(c)は、ov_direction信号が"0"の状態でOVS信号がnear_on信号のアサート期間で発生している様子を示す。OVS信号はIVS信号と
は非同期に生成されるため、(a)〜(c)のいずれの状態も発生し得る。
The operation of the memory control device described above is shown in the timing chart of FIG. FIG. 9A shows a state in which the OVS signal is generated at a position away from the assert period of the near_on signal. (B) shows a state in which the OVS signal is generated in the assert period of the near_on signal in the state where the ov_direction signal is “1”. (C) shows a state in which the OVS signal is generated in the assert period of the near_on signal in the state where the ov_direction signal is “0”. Since the OVS signal is generated asynchronously with the IVS signal, any of the states (a) to (c) can occur.

IBA信号は、IVS信号の立ち上がり変化に同期して"0"から"3"までの値でカウントアップ動作を繰り返す。   The IBA signal repeats the count-up operation with a value from “0” to “3” in synchronization with the rising change of the IVS signal.

図9の(a)では、near信号が"0"であるため、出力メモリ選択部7からはlat_IBA(2)信号のタイミングでlat_IBA_sel信号が出力される。入力メモリ選択信号保持部4ではそ
の時のIBA信号の状態をIBA_lat信号として出力する。出力メモリ選択信号生成部5で
は、OVS信号の立ち上がり変化のタイミングでIBA_lat信号の状態をOBA信号として
出力する。
In FIG. 9A, since the near signal is “0”, the output memory selection unit 7 outputs the lat_IBA_sel signal at the timing of the lat_IBA (2) signal. The input memory selection signal holding unit 4 outputs the state of the IBA signal at that time as an IBA_lat signal. The output memory selection signal generation unit 5 outputs the state of the IBA_lat signal as an OBA signal at the rising change timing of the OVS signal.

図9の(b)では、near信号が"1"で、且つov_direction信号が"1"であるため、出力メモリ選択部7からはlat_IBA(1)信号のタイミングでlat_IBA_sel信号が出力される。入
力メモリ選択信号保持部4ではその時のIBA信号の状態をIBA_lat信号として出力する
。出力メモリ選択信号生成部5では、OVS信号の立ち上がり変化のタイミングでIBA_lat信号の状態をOBA信号として出力する。
In FIG. 9B, since the near signal is “1” and the ov_direction signal is “1”, the output memory selection unit 7 outputs the lat_IBA_sel signal at the timing of the lat_IBA (1) signal. The input memory selection signal holding unit 4 outputs the state of the IBA signal at that time as an IBA_lat signal. The output memory selection signal generation unit 5 outputs the state of the IBA_lat signal as an OBA signal at the rising change timing of the OVS signal.

図9の(c)では、near信号が"1"で、且つov_direction信号が"0"であるため、出力メモリ選択部7からはlat_IBA(3)信号のタイミングでlat_IBA_sel信号が出力される。入
力メモリ選択信号保持部4ではその時のIBA信号の状態をIBA_lat信号として出力する
。出力メモリ選択信号生成部5では、OVS信号の立ち上がり変化のタイミングでIBA_lat信号の状態をOBA信号として出力する。
In FIG. 9C, since the near signal is “1” and the ov_direction signal is “0”, the output memory selection unit 7 outputs the lat_IBA_sel signal at the timing of the lat_IBA (3) signal. The input memory selection signal holding unit 4 outputs the state of the IBA signal at that time as an IBA_lat signal. The output memory selection signal generation unit 5 outputs the state of the IBA_lat signal as an OBA signal at the rising change timing of the OVS signal.

<追い越し回避の例>
以上に説明したメモリ制御装置の動作により、入力映像での垂直同期信号がフィールド毎に異なる周期で出力されるような映像信号においても安定した追い越し回避処理が行われる様子を、図10乃至図13にて説明を行う。
<Example of overtaking avoidance>
FIG. 10 to FIG. 13 show how a stable overtaking avoidance process is performed even in a video signal in which a vertical synchronization signal in an input video is output at a different period for each field by the operation of the memory control device described above. We will explain in.

図10及び図11は、IVS信号の周期に対しOVS信号の周期が遅いケースを示す。図10は、比較例(IBA_lat信号の変化タイミングを固定にした例)を示し、図11は、
本実施形態のメモリ制御装置の動作を示している。
10 and 11 show a case where the cycle of the OVS signal is slower than the cycle of the IVS signal. FIG. 10 shows a comparative example (an example in which the change timing of the IBA_lat signal is fixed), and FIG.
The operation | movement of the memory control apparatus of this embodiment is shown.

ここで、入力される映像信号はインタレース形式の映像信号であり、且つフィールド毎に異なる周期をもつ。即ち、偶数フィールドでのIVS信号の周期はtIVS1であり、奇数
フィールドでのIVS信号の周期はtIVS2であり、tIVS1とtIVS2とは式1の関係にある。

tIVS1<tIVS2 ・・・ 式1
Here, the input video signal is an interlaced video signal and has a different period for each field. That is, the cycle of the IVS signal in the even field is tIVS1, the cycle of the IVS signal in the odd field is tIVS2, and tIVS1 and tIVS2 have the relationship of Equation 1.

tIVS1 <tIVS2 ... Formula 1

OVS信号は一定の周期(tOVS1)で発生し、IVS信号とOVS信号とは式2乃至式
4の関係にある。

(tIVS1+tIVS2)<tOVS1×2 ・・・ 式2
tIVS1<tOVS1 ・・・ 式3
tIVS2>tOVS1 ・・・ 式4
The OVS signal is generated at a constant period (tOVS1), and the IVS signal and the OVS signal are in the relationship of Expressions 2 to 4.

(TIVS1 + tIVS2) <tOVS1 × 2 Equation 2
tIVS1 <tOVS1 Equation 3
tIVS2> tOVS1 Equation 4

図10に示すように、IBA信号は、IVS信号の立ち上がり変化に同期して"0"から"3"までの値でカウントアップ動作を繰り返す。IBA信号は更に、IVS信号の立ち上がり変化から一定のタイミング(ここではlat_IBA(2)信号のタイミング)でその状態が保持され、IBA_lat信号が生成される。ここでIVS信号はフィールド毎に異なる周期で出
力されるため、lat_IBA(2)信号のタイミングもIVS信号に同期して変化する。IBA_lat
信号は、OVS信号の立ち上がり変化のタイミングでその状態が保持され、OBA信号として出力される。
As shown in FIG. 10, the IBA signal repeats the count-up operation with a value from “0” to “3” in synchronization with the rising change of the IVS signal. The state of the IBA signal is further maintained at a constant timing (here, the timing of the lat_IBA (2) signal) from the rising change of the IVS signal, and the IBA_lat signal is generated. Here, since the IVS signal is output at a different period for each field, the timing of the lat_IBA (2) signal also changes in synchronization with the IVS signal. IBA_lat
The state of the signal is held at the rising change timing of the OVS signal and is output as an OBA signal.

図10において、t1とt2で示したOVS信号の立ち上がり変化のタイミングでは、その時のIBA_lat信号の状態がOBA信号に出力され、OBA信号は"0"、"1"と変化する。
このままOBA信号を"2"、"3"と変化させていくとフレームメモリ1から読み出した映像データにおいて追い越しが発生してしまう。しかし、t3のタイミングでは、lat_IBA(2)信号のタイミングで生成された"3"の値がOBA信号として出力されるため、BA2のメモリ部に記憶された映像データを読み飛ばすことで追い越しの発生が回避される。
In FIG. 10, at the rising change timing of the OVS signal indicated by t1 and t2, the state of the IBA_lat signal at that time is output to the OBA signal, and the OBA signal changes to “0” and “1”.
If the OBA signal is changed to “2” or “3” as it is, overtaking occurs in the video data read from the frame memory 1. However, since the value of “3” generated at the timing of the lat_IBA (2) signal is output as the OBA signal at the timing of t3, overtaking occurs by skipping the video data stored in the memory unit of BA2. Is avoided.

ところが、IVS信号とOVS信号とは式2乃至式4の関係にあるため、t4のタイミングでは再び"3"の値がOBA信号として出力される。よって、フレームメモリ1からはBA3のメモリ部に記憶された映像データが連続して読み出されることとなる。更にt5のタイミングでは"1"の値がOBA信号として出力されるため、BA0のメモリ部に記憶された映像データを読み飛ばされてしまうこととなる。結果として、60Hzで変化する映像が30Hzで変化するような映像として一定期間表示されることとなり、動きが不自然な表示となってしまう。   However, since the IVS signal and the OVS signal are in the relationship of Equations 2 to 4, the value “3” is output again as the OBA signal at the timing t4. Therefore, the video data stored in the memory unit BA3 is continuously read from the frame memory 1. Furthermore, since the value of “1” is output as the OBA signal at the timing of t5, the video data stored in the memory unit of BA0 is skipped. As a result, an image that changes at 60 Hz is displayed for a certain period as an image that changes at 30 Hz, resulting in an unnatural display.

図11は、本実施形態のメモリ制御装置の動作を示すタイミングチャートである。t1のタイミングでは、near_off(1)信号が"1"として出力されている期間にOVS信号の立ち
上がり変化が発生したため、ov_direction信号が"1"に変化する。t2のタイミングでは、near_on信号が"1"として出力されている期間にOVS信号の立ち上がり変化が発生した
ため、near信号が"1"に変化する。near信号が"1"に変化したことにより、次のIVS信号の周期からはov_direction信号が"1"であることから、lat_IBA_sel信号としてlat_IBA(1)信号が選択されて出力される。
FIG. 11 is a timing chart showing the operation of the memory control device of this embodiment. At the timing t1, since the rising change of the OVS signal occurs during the period when the near_off (1) signal is output as “1”, the ov_direction signal changes to “1”. At the timing of t2, since the rising change of the OVS signal occurs during the period when the near_on signal is output as “1”, the near signal changes to “1”. Since the near signal has changed to “1”, the ov_direction signal is “1” from the period of the next IVS signal, so the lat_IBA (1) signal is selected and output as the lat_IBA_sel signal.

その後、t5のタイミングで、near_off(2)信号が"1"として出力されている期間にOV
S信号の立ち上がり変化が発生したことにより、ov_direction信号とnear信号が"0"に変化する。次のIVS信号の周期からは再びlat_IBA(2)信号がlat_IBA_sel信号として選択
されて出力される。IBA_lat信号は、lat_IBA_sel信号が出力されるタイミングでIBA信号の状態を保持して出力する。更にIBA_lat信号は、OVS信号の立ち上がり変化のタイ
ミングでその状態が保持され、OBA信号として出力される。
After that, at the timing of t5, it is OV during the period when the near_off (2) signal is output as “1”
Since the rising change of the S signal occurs, the ov_direction signal and the near signal change to “0”. From the period of the next IVS signal, the lat_IBA (2) signal is again selected and output as the lat_IBA_sel signal. The IBA_lat signal is output while holding the state of the IBA signal at the timing when the lat_IBA_sel signal is output. Further, the state of the IBA_lat signal is held at the rise change timing of the OVS signal and is output as an OBA signal.

図11で示したように、本構成で説明した処理を行うことにより、t3のタイミングでBA2のメモリ部に記憶された映像データを読み飛ばすことで追い越しの発生が回避される。そして、それ以降は再びBA0からBA3のメモリ部に記憶されている映像データを順次読み出すこととなり、図10で示したような、動画の品質低下を回避できる。   As shown in FIG. 11, by performing the processing described in this configuration, the occurrence of overtaking can be avoided by skipping the video data stored in the memory unit of BA2 at the timing t3. After that, the video data stored in the memory units BA0 to BA3 are sequentially read again, and the deterioration of the quality of the moving image as shown in FIG. 10 can be avoided.

図12及び図13は、IVS信号の周期に対しOVS信号の周期が速いケースを示す。図12は、比較例(IBA_lat信号の変化タイミングを固定にした例)を示し、図13は、
本実施形態のメモリ制御装置の動作を示している。
12 and 13 show a case where the cycle of the OVS signal is faster than the cycle of the IVS signal. FIG. 12 shows a comparative example (an example in which the change timing of the IBA_lat signal is fixed), and FIG.
The operation | movement of the memory control apparatus of this embodiment is shown.

ここで、入力される映像信号は図10で示したものと同様にインタレース形式の映像信号であり、且つフィールド毎に異なる周期をもつ。   Here, the input video signal is an interlaced video signal similar to that shown in FIG. 10, and has a different period for each field.

OVS信号は一定の周期(tOVS2)で発生し、図10で示した周期(tOVS1)よりも速い周期で発生する。即ち、tOVS1とtOVS2との関係は、式5の関係にあるものとする。

tOVS1>tOVS2 ・・・ 式5
The OVS signal is generated at a constant cycle (tOVS2), and is generated at a cycle faster than the cycle (tOVS1) shown in FIG. That is, the relationship between tOVS1 and tOVS2 is assumed to be the relationship of Equation 5.

tOVS1> tOVS2 ... Formula 5

また、図12で示したIVS信号とOVS信号とは式6乃至式8の関係にあるものとする。

(tIVS1+tIVS2)>tOVS2×2 ・・・ 式6
tIVS1<tOVS2 ・・・ 式7
tIVS2>tOVS2 ・・・ 式8
Further, it is assumed that the IVS signal and the OVS signal shown in FIG.

(TIVS1 + tIVS2)> tOVS2 × 2 Equation 6
tIVS1 <tOVS2 ... Formula 7
tIVS2> tOVS2 ... Formula 8

図12に示すように、IBA信号は、IVS信号の立ち上がり変化に同期して"0"から"3"までの値でカウントアップ動作を繰り返す。IBA信号は更に、IVS信号の立ち上がり変化から一定のタイミング(ここではlat_IBA(2)信号のタイミング)でその状態が保持され、IBA_lat信号が生成される。IBA_lat信号は、OVS信号の立ち上がり変化のタイミングでその状態が保持され、OBA信号として出力される。   As shown in FIG. 12, the IBA signal repeats the count-up operation with a value from “0” to “3” in synchronization with the rising change of the IVS signal. The state of the IBA signal is further maintained at a constant timing (here, the timing of the lat_IBA (2) signal) from the rising change of the IVS signal, and the IBA_lat signal is generated. The state of the IBA_lat signal is held at the rise change timing of the OVS signal, and is output as the OBA signal.

図12において、t10とt11で示したOVS信号の立ち上がり変化のタイミングでは、その時のIBA_lat信号の状態がOBA信号に出力され、OBA信号は"0"、"1"と変化する
。このままOBA信号を"2"、"3"と変化させていくとフレームメモリ1から読み出した映像データにおいて追い越しが発生してしまう。しかし、t12のタイミングでは、lat_IBA(2)信号のタイミングで生成された"1"の値がOBA信号として出力されるため、BA1
のメモリ部に記憶された映像データを二度読みすることで追い越しの発生が回避される。
In FIG. 12, at the timing of the rising change of the OVS signal indicated by t10 and t11, the state of the IBA_lat signal at that time is output to the OBA signal, and the OBA signal changes to “0” and “1”. If the OBA signal is changed to “2” or “3” as it is, overtaking occurs in the video data read from the frame memory 1. However, at the timing of t12, the value “1” generated at the timing of the lat_IBA (2) signal is output as the OBA signal.
The occurrence of overtaking can be avoided by reading the video data stored in the memory unit twice.

ところが、IVS信号とOVS信号とは式6乃至式8の関係にあるため、t13のタイミ
ングでは"3"の値がOBA信号として出力される。これにより、フレームメモリ1からはBA2のメモリ部に記憶された映像データが読み飛ばされる。更にt14のタイミングでは"3"の値がOBA信号として出力されるため、再びBA3のメモリ部に記憶された映像デ
ータが読み出されてしまうこととなる。結果として、60Hzで変化する映像が30Hzで変化するような映像として一定期間表示されることとなり、動きが不自然な表示となってしまう。
However, since the IVS signal and the OVS signal have a relationship of Expressions 6 to 8, a value of “3” is output as the OBA signal at the timing of t13. As a result, the video data stored in the memory unit of BA2 is skipped from the frame memory 1. Furthermore, since the value of “3” is output as an OBA signal at the timing of t14, the video data stored in the memory unit of BA3 is read again. As a result, an image that changes at 60 Hz is displayed for a certain period as an image that changes at 30 Hz, resulting in an unnatural display.

図13は、本実施形態のメモリ制御装置の動作を示すタイミングチャートである。t11
のタイミングでは、near_off(2)信号が"1"として出力されている期間にOVS信号の立
ち上がり変化が発生したため、ov_direction信号が"0"に変化する。t12のタイミングで
は、near_on信号が"1"として出力されている期間にOVS信号の立ち上がり変化が発生
したため、near信号が"1"に変化する。near信号が"1"に変化したことにより、次のIVS信号の周期からはov_direction信号が"0"であることから、lat_IBA_sel信号としてlat_IBA(3)信号が選択されて出力される。
FIG. 13 is a timing chart showing the operation of the memory control device of this embodiment. t11
At this timing, since the rising change of the OVS signal occurs during the period when the near_off (2) signal is output as “1”, the ov_direction signal changes to “0”. At the timing t12, since the rising change of the OVS signal occurs during the period when the near_on signal is output as “1”, the near signal changes to “1”. Since the near signal has changed to “1”, the ov_direction signal is “0” from the period of the next IVS signal, so the lat_IBA (3) signal is selected and output as the lat_IBA_sel signal.

その後、t14のタイミングで、near_off(1)信号が"1"として出力されている期間にOVS信号の立ち上がり変化が発生したことにより、ov_direction信号とnear信号が"0"に変化する。次のIVS信号の周期からは再びlat_IBA(2)がlat_IBA_sel信号として選択され
て出力される。IBA_lat信号は、lat_IBA_sel信号が出力されるタイミングでIBA信号の
状態を保持して出力する。更にIBA_lat信号は、OVS信号の立ち上がり変化のタイミン
グでその状態が保持され、OBA信号として出力される。
Thereafter, at the timing of t14, the rise of the OVS signal occurs during the period in which the near_off (1) signal is output as “1”, so that the ov_direction signal and the near signal change to “0”. From the period of the next IVS signal, lat_IBA (2) is again selected and output as the lat_IBA_sel signal. The IBA_lat signal is output while holding the state of the IBA signal at the timing when the lat_IBA_sel signal is output. Further, the state of the IBA_lat signal is held at the rise change timing of the OVS signal and is output as an OBA signal.

図13で示したように、本構成で説明した処理を行うことにより、t12のタイミングで
BA1のメモリ部に記憶された映像データを二度読みすることで追い越しの発生が回避される。そして、それ以降は再びBA0からBA3のメモリ部に記憶されている映像データを順次読み出すこととなり、図12で示したような、動画の品質低下を回避できる。
As shown in FIG. 13, by performing the processing described in this configuration, the occurrence of overtaking can be avoided by reading the video data stored in the memory unit of BA1 twice at the timing t12. After that, the video data stored in the memory units BA0 to BA3 are sequentially read again, and it is possible to avoid the deterioration of the quality of the moving image as shown in FIG.

以上説明した構成によれば、入力映像信号と表示側の垂直同期信号が非同期関係にあり、更に、入力映像での垂直同期信号がフィールド毎に異なる周期で出力されるような映像信号においても安定した追い越し回避処理が行われる。また、一時的に画像が繰り返して表示されるなど、動きが不自然となる画質劣化を回避することが可能となる。   According to the configuration described above, the input video signal and the vertical sync signal on the display side are in an asynchronous relationship, and the video signal in which the vertical sync signal in the input video is output with a different period for each field is stable. The overtaking avoidance process is performed. In addition, it is possible to avoid image quality deterioration that causes unnatural movement such as temporarily displaying images repeatedly.

更に本構成によれば、特許文献3で示されているような、入力映像信号と表示側の垂直同期信号が近い場合に発生するジッターによるチャタリングの発生も抑制できる。   Furthermore, according to this configuration, it is possible to suppress the occurrence of chattering due to jitter that occurs when the input video signal and the vertical synchronization signal on the display side are close as shown in Patent Document 3.

しかも、IVS信号とOVS信号の速度差を検出し、その検出結果に応じてIBA_lat信
号の変化タイミングを調整するので、OVS信号のほうが速いケース、OVS信号のほうが遅いケースのどちらのケースにも自動的に対応可能である。
In addition, since the speed difference between the IVS signal and the OVS signal is detected and the change timing of the IBA_lat signal is adjusted according to the detection result, it is automatic in both cases where the OVS signal is faster and the OVS signal is slower. Can be handled.

1 フレームメモリ
2 メモリ制御部
3 入力メモリ選択信号生成部
4 入力メモリ選択信号保持部
5 出力メモリ選択信号生成部
6 検出タイミング信号生成部
7 出力メモリ選択部
8 速度差検出部
9 追い越し回避検出部
10 出力タイミング信号生成部
DESCRIPTION OF SYMBOLS 1 Frame memory 2 Memory control part 3 Input memory selection signal generation part 4 Input memory selection signal holding part 5 Output memory selection signal generation part 6 Detection timing signal generation part 7 Output memory selection part 8 Speed difference detection part 9 Overtaking avoidance detection part 10 Output timing signal generator

Claims (5)

複数の領域を有するメモリと、
第1の同期信号に同期して前記メモリの各領域に画像データを順次書き込み、前記第1の同期信号とは非同期に生成される第2の同期信号に同期して画像データを前記メモリから読み出すメモリ制御部と、
前記第1の同期信号を基準にして参照タイミングを決定するタイミング決定部と、
前記参照タイミングと前記第2の同期信号の順序に基づいて、前記メモリ制御部により読み出す領域を決定する領域決定部と、
前記参照タイミングと前記第2の同期信号の順序の入れ替わりが発生すると予測される期間である交替期間を検出する交替期間検出部と、
を備え、
前記タイミング決定部は、前記交替期間内の前記参照タイミングを、前記順序の入れ替わりが発生しやすくなる方向に、変更する
ことを特徴とするメモリ制御装置。
A memory having a plurality of areas;
Image data is sequentially written in each area of the memory in synchronization with a first synchronization signal, and image data is read from the memory in synchronization with a second synchronization signal generated asynchronously with the first synchronization signal. A memory controller;
A timing determination unit that determines a reference timing based on the first synchronization signal;
An area determination unit that determines an area to be read by the memory control unit based on the reference timing and the order of the second synchronization signals;
A replacement period detection unit that detects a replacement period that is a period in which the switching of the order of the reference timing and the second synchronization signal is predicted to occur;
With
The memory controller according to claim 1, wherein the timing determination unit changes the reference timing in the replacement period in a direction in which the order change is likely to occur.
前記第2の同期信号の周期と前記第1の同期信号の周期のいずれが速いかを検出する速度差検出部をさらに備え、
前記第1の同期信号の周期のほうが速い場合に、前記タイミング決定部は、前記交替期間内の参照タイミングを前記交替期間外の参照タイミングである第2のタイミングよりも早い第1のタイミングに設定し、
前記第2の同期信号の周期のほうが速い場合に、前記タイミング決定部は、前記交替期間内の参照タイミングを前記第2のタイミングよりも遅い第3のタイミングに設定する
ことを特徴とする請求項1に記載のメモリ制御装置。
A speed difference detector for detecting which one of the period of the second synchronization signal and the period of the first synchronization signal is faster;
When the period of the first synchronization signal is faster, the timing determination unit sets the reference timing within the replacement period to a first timing that is earlier than a second timing that is a reference timing outside the replacement period. And
The timing determination unit sets the reference timing within the replacement period to a third timing that is later than the second timing when the cycle of the second synchronization signal is faster. 2. The memory control device according to 1.
前記速度差検出部は、
前記交替期間の前における前記第2の同期信号と前記第2のタイミングの順序を調べ、
前記第2の同期信号が先行していた場合に前記第1の同期信号の周期のほうが速いと判定し、
前記第2のタイミングが先行していた場合に前記第2の同期信号の周期のほうが速いと判定する
ことを特徴とする請求項2に記載のメモリ制御装置。
The speed difference detector is
Check the order of the second synchronization signal and the second timing before the replacement period,
When the second synchronization signal is preceded, it is determined that the cycle of the first synchronization signal is faster,
3. The memory control device according to claim 2, wherein when the second timing is preceded, it is determined that the cycle of the second synchronization signal is faster.
前記第2のタイミングよりも前に第1のウィンドウを設定し、前記第2のタイミングよりも後に第2のウィンドウを設定するウィンドウ設定部をさらに備え、
前記速度差検出部は、前記第1のウィンドウで前記第2の同期信号を検出した場合に前記第1の同期信号の周期のほうが速いと判定し、前記第2のウィンドウで前記第2の同期信号を検出した場合に前記第2の同期信号の周期のほうが速いと判定する
ことを特徴とする請求項3に記載のメモリ制御装置。
A window setting unit that sets a first window before the second timing and sets a second window after the second timing;
The speed difference detection unit determines that the period of the first synchronization signal is faster when the second synchronization signal is detected in the first window, and the second synchronization signal is detected in the second window. 4. The memory control device according to claim 3, wherein when the signal is detected, it is determined that the cycle of the second synchronization signal is faster.
複数の領域を有するメモリの制御方法であって、
第1の同期信号に同期して前記メモリの各領域に画像データを順次書き込む書き込み工程と、
前記第1の同期信号とは非同期に生成される第2の同期信号に同期して画像データを前記メモリから読み出す読み出し工程と、を有し、
前記読み出し工程では、前記第1の同期信号を基準にして決定される参照タイミングと前記第2の同期信号との順序に基づいて、読み出す領域が決定され、
前記制御方法がさらに、
前記参照タイミングと前記第2の同期信号の順序の入れ替わりが発生すると予測される期間である交替期間を検出する工程と、
前記交替期間内の前記参照タイミングを、前記順序の入れ替わりが発生しやすくなる方向に、変更する工程と、を有する
ことを特徴とするメモリの制御方法。
A method of controlling a memory having a plurality of areas,
A writing step of sequentially writing image data in each area of the memory in synchronization with a first synchronization signal;
A reading step of reading image data from the memory in synchronization with a second synchronization signal generated asynchronously with the first synchronization signal;
In the reading step, an area to be read is determined based on the order of the reference timing determined based on the first synchronization signal and the second synchronization signal,
The control method further includes:
Detecting a replacement period, which is a period during which a change in the order of the reference timing and the second synchronization signal is expected to occur;
A step of changing the reference timing within the replacement period in a direction in which the change of the order is likely to occur.
JP2013160382A 2013-08-01 2013-08-01 Memory control device and memory control method Active JP5693677B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013160382A JP5693677B2 (en) 2013-08-01 2013-08-01 Memory control device and memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013160382A JP5693677B2 (en) 2013-08-01 2013-08-01 Memory control device and memory control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2008107725A Division JP5335273B2 (en) 2008-04-17 2008-04-17 Memory control device and memory control method

Publications (3)

Publication Number Publication Date
JP2013250573A true JP2013250573A (en) 2013-12-12
JP2013250573A5 JP2013250573A5 (en) 2014-01-30
JP5693677B2 JP5693677B2 (en) 2015-04-01

Family

ID=49849259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013160382A Active JP5693677B2 (en) 2013-08-01 2013-08-01 Memory control device and memory control method

Country Status (1)

Country Link
JP (1) JP5693677B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05191782A (en) * 1992-01-13 1993-07-30 Pioneer Electron Corp Video reproduction speed converter
JPH0997041A (en) * 1995-09-29 1997-04-08 Sanyo Electric Co Ltd Video signal processor
JPH09116875A (en) * 1995-10-16 1997-05-02 Sanyo Electric Co Ltd Video signal processing circuit
JP2001067060A (en) * 1999-06-25 2001-03-16 Sony Corp Synchronous conversion device and its method, and record medium
JP2004177738A (en) * 2002-11-28 2004-06-24 Victor Co Of Japan Ltd Video signal processing circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05191782A (en) * 1992-01-13 1993-07-30 Pioneer Electron Corp Video reproduction speed converter
US5402247A (en) * 1992-01-13 1995-03-28 Pioneer Electronic Corporation Image reproduction speed conversion apparatus
JPH0997041A (en) * 1995-09-29 1997-04-08 Sanyo Electric Co Ltd Video signal processor
US5861879A (en) * 1995-09-29 1999-01-19 Sanyo Electric Co., Ltd. Video signal processing device for writing and reading a video signal with respect to a memory according to different clocks, while preventing a write/read address pass-by in the memory
JPH09116875A (en) * 1995-10-16 1997-05-02 Sanyo Electric Co Ltd Video signal processing circuit
JP2001067060A (en) * 1999-06-25 2001-03-16 Sony Corp Synchronous conversion device and its method, and record medium
JP2004177738A (en) * 2002-11-28 2004-06-24 Victor Co Of Japan Ltd Video signal processing circuit

Also Published As

Publication number Publication date
JP5693677B2 (en) 2015-04-01

Similar Documents

Publication Publication Date Title
JP4513913B2 (en) Image signal processing apparatus and method
JP5335273B2 (en) Memory control device and memory control method
JP2005086302A (en) Liquid crystal display control apparatus
JP2011061323A (en) Synchronization signal control circuit and display device
JP2012169727A (en) Image signal processor and image signal processing method
JP5284304B2 (en) Synchronization signal generating device and display device
JP5693677B2 (en) Memory control device and memory control method
JP2007017604A (en) Drive device of display panel and method for driving display panel
JP5147860B2 (en) Synchronization signal conversion circuit, signal processing system including the same, and synchronization signal conversion method
JP2006303630A (en) Frame rate conversion apparatus, overrun compensation method, and display apparatus
US7623185B2 (en) Synchronization control apparatus and method
US20150189127A1 (en) Video processing apparatus
JP2009077042A (en) Device and method for processing video image
JP2013219624A (en) Imaging apparatus
JP6489802B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP7449062B2 (en) Electronic equipment and its control method
JP6478291B2 (en) Display control apparatus and control method thereof
JP3906788B2 (en) Video signal processing circuit
JP6544939B2 (en) Imaging device, control method therefor, program, storage medium
JP2013070261A (en) Synchronous signal control circuit and display device
US20200193558A1 (en) Image processing system and image processing method thereof
JP5672116B2 (en) Video processing device
JP4729124B2 (en) Display panel driving apparatus and display panel driving method
JP2013037286A (en) Video processing device, video processing method, and computer program
JP2020042107A (en) Video processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140415

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140703

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150106

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150203

R151 Written notification of patent or utility model registration

Ref document number: 5693677

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151