JP2760756B2 - Digital filter - Google Patents
Digital filterInfo
- Publication number
- JP2760756B2 JP2760756B2 JP6277691A JP27769194A JP2760756B2 JP 2760756 B2 JP2760756 B2 JP 2760756B2 JP 6277691 A JP6277691 A JP 6277691A JP 27769194 A JP27769194 A JP 27769194A JP 2760756 B2 JP2760756 B2 JP 2760756B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- output
- data
- delay
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数段の遅延要素を含
むデジタルフィルタに係わり、特に、フィルタリングの
開始及び終了等の信号の端部での処理に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital filter including a plurality of stages of delay elements, and more particularly to processing at the end of a signal such as the start and end of filtering.
【0002】[0002]
【従来の技術】一般に、デジタル処理を行うシステムで
は、デジタルフィルタが頻繁に利用されており、FIR
型やIIR型等のデジタルフィルタは、入力信号をクロ
ック信号に同期して順次遅延させる複数段の遅延要素よ
り成る遅延回路を含んで構成されている。2. Description of the Related Art Generally, in a system for performing digital processing, a digital filter is frequently used.
A digital filter of a type or IIR type includes a delay circuit including a plurality of stages of delay elements for sequentially delaying an input signal in synchronization with a clock signal.
【0003】そして、従来では、これら遅延要素の出力
そのものに、必要に応じて所定の係数を乗算し、得られ
た乗算結果を加算するという処理が行われていた。[0003] Conventionally, a process of multiplying the output itself of these delay elements by a predetermined coefficient as necessary and adding the obtained multiplication result has been performed.
【0004】[0004]
【発明が解決しようとする課題】デジタルフィルタによ
りフィルタリング処理を行う場合、フィルタリング処理
を開始する部分と終了する部分の端部では、その前後に
無効データが存在する。従って、上述した複数段の遅延
要素より成る遅延回路では、端部において前後に存在す
る無効データを含んだまま処理が行われ、実際のデータ
とのかけ離れが多かれ少なかれ発生してしまう。ところ
が、従来の構成では、処理しようとするデータが端部で
あるか否かに係わらず、複数段の遅延要素の出力を常に
そのまま用いており、これに対する対策は何ら施されて
はいなかった。When a filtering process is performed by a digital filter, invalid data exists before and after the end of the portion where the filtering process starts and ends. Therefore, in the above-described delay circuit including a plurality of delay elements, the processing is performed while the invalid data existing before and after at the end is included, and the deviation from the actual data occurs more or less. However, in the conventional configuration, regardless of whether the data to be processed is at the end or not, the outputs of the delay elements in a plurality of stages are always used as they are, and no measures have been taken against this.
【0005】[0005]
【課題を解決するための手段】本発明は、入力信号をク
ロック信号に同期して順次遅延させる複数段の遅延要素
より成る第1の遅延手段と、データの有効領域を示す有
効領域信号を前記クロック信号に同期して順次遅延させ
る複数段の遅延要素より成る第2の遅延手段と、前記有
効領域信号の立ち上がりもしくは立ち下がりに同期した
データロード信号に応じて前記入力信号を取り込むデー
タ取り込み手段と、前記遅延手段の各段の遅延要素の出
力を各々一端に入力し、他端に前記取り込み手段の出力
を入力し、前記第2遅延手段の対応する段の遅延要素の
出力によりいずれか一方の入力を選択的に出力する複数
のスイッチ手段とを設けて、上記課題を解決するもので
ある。According to the present invention, a first delay means comprising a plurality of delay elements for sequentially delaying an input signal in synchronization with a clock signal, and an effective area signal indicating an effective area of data are provided. A second delay unit comprising a plurality of delay elements for sequentially delaying in synchronization with a clock signal; and a data capturing unit for capturing the input signal in response to a data load signal synchronized with a rise or fall of the effective area signal. The output of the delay element of each stage of the delay means is input to one end, the output of the capturing means is input to the other end, and one of the outputs is output by the delay element of the corresponding stage of the second delay means. The object is achieved by providing a plurality of switch means for selectively outputting an input.
【0006】[0006]
【作用】本発明では、信号の開始及び終了という端部に
おいては、入力信号である最端部のデータがスイッチ手
段により遅延要素の出力の代わりに選択出力されるの
で、その前後の無効データが用いられることなく、最端
部のデータが重複してフィルタリング処理に用いられる
ようになる。According to the present invention, at the end of the start and end of the signal, the data at the end, which is the input signal, is selectively output instead of the output of the delay element by the switch means. Instead of being used, the data at the extreme end is used redundantly for the filtering process.
【0007】[0007]
【実施例】図1は、本発明の実施例の構成を示すブロッ
ク図であり、3タップのFIR型デジタルフィルタの例
を示す。図において、1は入力信号INをクロック信号
CLKに同期して順次遅延させる直列接続された3個の
Dフリップフロップ2,3,4より成る第1の遅延回
路、5は有効領域信号WINをクロック信号CLKに同
期して順次遅延させる直列接続された3個のDフリップ
フロップ6,7,8より成る第2の遅延回路、9は有効
領域信号に基づいて生成されたデータロード信号LOA
Dをクロックとして入力しデータ入力端子Dに入力信号
INが印加されるDフリップフロップ、10,11,1
2は、各々、一端にDフリップフロップ2,3,4の出
力T1,T2,T3を入力し、他端にDフリップフロッ
プ9の出力DTを入力し、対応する同一段のDフリップ
フロップ6,7,8の出力W1,W2,W3に応じて、
入力のいずれか一方を選択的に、タップTP1,TP,
TP3に出力するスイッチであり、これらの出力に必要
に応じて係数K1,K2,K3が乗算され、乗算結果が
加算器13によって加算処理される。勿論、係数が1で
あれば乗算の必要はない。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, showing an example of a 3-tap FIR type digital filter. In the figure, reference numeral 1 denotes a first delay circuit comprising three D flip-flops 2, 3, and 4 connected in series for sequentially delaying an input signal IN in synchronization with a clock signal CLK; A second delay circuit 9 composed of three D flip-flops 6, 7, 8 connected in series for sequentially delaying in synchronization with the signal CLK is a data load signal LOA generated based on the effective area signal.
D flip-flop in which D is input as a clock and an input signal IN is applied to a data input terminal D, 10, 11, 1
2 receives the outputs T1, T2, and T3 of the D flip-flops 2, 3, and 4 at one end, and receives the output DT of the D flip-flop 9 at the other end. According to the outputs W1, W2, W3 of 7, 8
Select one of the inputs and tap TP1, TP,
These switches output to TP3. These switches are multiplied by coefficients K1, K2, and K3 as necessary, and the multiplication result is added by the adder 13. Of course, if the coefficient is 1, there is no need for multiplication.
【0008】本実施例は、表示装置に用いるデジタルフ
ィルタとして最適な構成であって、ここでは、有効領域
信号WIN及びデータロード信号LOADは、表示装置
の有効画素領域を示す有効画素領域信号DISPWIN
に基づき、図2の回路により生成される。図2におい
て、20は有効画素領域信号DISPWINをデータ端
子Dに入力しクロック信号CLKをクロックとして入力
するDフリップフロップ、21はDフリップフロップ2
0のQ出力と有効画素領域信号DISPWINを入力
し、出力として有効領域信号WINを発生するORゲー
ト、22はDフリップフロップ23とエクスクルーシブ
NORゲート(E−NORゲート)24より成り、信号
WINの立ち上がり及び立ち下がりに同期してクロック
パルスCLKの1周期期間Hレベルの信号LOADを出
力する切り出し回路である。This embodiment has an optimum configuration as a digital filter used in a display device. In this embodiment, an effective area signal WIN and a data load signal LOAD are used as an effective pixel area signal DISPWIN indicating an effective pixel area of the display apparatus.
Is generated by the circuit of FIG. In FIG. 2, reference numeral 20 denotes a D flip-flop for inputting an effective pixel area signal DISPWIN to a data terminal D and inputting a clock signal CLK as a clock;
An OR gate 22 that receives a Q output of 0 and an effective pixel area signal DISPWIN and generates an effective area signal WIN as an output. The OR gate 22 includes a D flip-flop 23 and an exclusive NOR gate (E-NOR gate) 24, and the rising edge of the signal WIN. And a cutout circuit that outputs a signal LOAD of H level for one cycle period of the clock pulse CLK in synchronization with the falling edge.
【0009】次に、図3のタイミングチャートを参照し
ながら、本実施例の動作を説明する。Dフリップフロッ
プ2に、図3のイに示すように、入力信号D1,D2,
D3,………,Dnが入力されると、Dフリップフロッ
プ2,3,4の出力には、入力信号をクロックパルスの
1周期分,2周期分,3周期分各々遅延させた信号T
1,T2,T3が、図3のウ,エ,オに示すように出力
される。Next, the operation of this embodiment will be described with reference to the timing chart of FIG. As shown in FIG. 3A, input signals D1, D2,
When D3,..., And Dn are input, the signals of the D flip-flops 2, 3, and 4 output the signal T obtained by delaying the input signal by one cycle, two cycles, and three cycles of the clock pulse, respectively.
1, T2 and T3 are output as shown in FIG.
【0010】又、有効画素領域信号DISPWINは、
図3キに示すように、有効データD1,D2,D3,…
……,Dnが存在する期間のみでLレベルになり、その
前後の無効データが存在する期間ではHレベルになる。
この信号DISPWINは、Dフリップフロップ20で
1クロック分遅延され、この遅延信号DWIN(図3
ク)と信号DISPWINの論理和がORゲートでとら
れるので、両信号が共にLレベルのときのみLレベルと
なる信号が生成され、この信号が図3ケに示すように有
効領域信号WINとなる。The effective pixel area signal DISPWIN is
As shown in FIG. 3, the valid data D1, D2, D3,.
,..., Becomes L level only during the period in which Dn exists, and goes to H level in the period before and after invalid data.
This signal DISPWIN is delayed by one clock in the D flip-flop 20, and the delayed signal DWIN (FIG.
) And the signal DISPWIN are ORed by the OR gate, so that a signal which is at L level only when both signals are at L level is generated, and this signal becomes the effective area signal WIN as shown in FIG. .
【0011】Dフリップフロップ6,7,8では、信号
WINがクロックCLKに同期して順次遅延されるの
で、その出力W1,W2,W3は、図3コ,サ,シに示
すように、クロックパルスの1周期分,2周期分,3周
期分各々遅延されることとなる。更に、信号WINは、
切り出し回路22に入力されるので、図3スに示すよう
に、信号WINの立ち上がり及び立ち下がりに同期し
て、クロックパルスCLKの1周期期間のみHレベルに
なる信号LOADが出力される。そして、Dフリップフ
ロップ9はこの信号LOADの立ち上がりに応じてその
時の入力信号を取り込むので、図3カに示すように、立
ち上がり時に有効画素領域の開始データD1が取り込ま
れ、次の立ち上がりまでその開始データD1はDフリッ
プフロップ9に保持される。次の立ち上がり時は有効画
素領域の最終部分で起こるので、この時点で、最終デー
タDnがDフリップフロップ9に取り込まれて保持され
る。In the D flip-flops 6, 7, and 8, the signal WIN is sequentially delayed in synchronization with the clock CLK, and the outputs W1, W2, and W3 are output from the clocks as shown in FIGS. The pulse is delayed by one cycle, two cycles, and three cycles, respectively. Further, the signal WIN is
Since the signal is input to the cutout circuit 22, a signal LOAD which becomes H level only for one cycle period of the clock pulse CLK is output in synchronization with the rise and fall of the signal WIN, as shown in FIG. Then, the D flip-flop 9 takes in the input signal at that time in response to the rise of the signal LOAD. Therefore, as shown in FIG. 3, the start data D1 of the effective pixel area is taken in at the time of the rise, and the start data is started until the next rise. Data D1 is held in D flip-flop 9. Since the next rising occurs in the last portion of the effective pixel area, the final data Dn is captured and held in the D flip-flop 9 at this time.
【0012】この実施例では、3タップの例を示すの
で、第2タップの出力T2を中心に考えれば、この出力
T2が開始データD1であるときは、図3ウ,エ,オの
斜線で示すように、出力T1は1クロック後のD2であ
るが、出力T3には開始データD1より1クロック前の
無効データXXが含まれることとなる。また、出力T2
が終了データDnであるときは、図3ウ,エ,オの斜線
で示すように、出力T3は1クロック前のDn-1である
が、出力T1には終了データより1クロック後の無効デ
ータXXが含まれることとなる。In this embodiment, an example of three taps is shown. Considering the output T2 of the second tap as a center, when the output T2 is the start data D1, the output T2 is indicated by oblique lines in FIGS. As shown, the output T1 is D2 one clock later, but the output T3 contains invalid data XX one clock before the start data D1. The output T2
Is the end data Dn, the output T3 is Dn-1 one clock before, as shown by hatching in FIG. 3, c, d, and e, but the output T1 has invalid data one clock after the end data. XX will be included.
【0013】従って、従来ではこのような無効データを
含んだままフィルタリング処理が行われていた。ところ
が、本実施例では、スイッチ10,11,12により、
切り替え用の信号W1,W2,W3がLレベルであると
きは、出力T1,T2,T3が選択されてTP1,TP
2,TP3からそのまま出力されるが、信号W1,W
2,W3がHレベルになると、出力T1,T2,T3の
代わりにDフリップフロップ9の出力DTが選択されて
TP1,TP2,TP3から出力されるよう構成されて
いる。Therefore, conventionally, a filtering process has been performed while including such invalid data. However, in this embodiment, the switches 10, 11, and 12
When the switching signals W1, W2, W3 are at the L level, the outputs T1, T2, T3 are selected and TP1, TP
2 and TP3 as they are, but the signals W1 and W
2, when W3 goes high, the output DT of the D flip-flop 9 is selected instead of the outputs T1, T2, and T3 and output from TP1, TP2, and TP3.
【0014】従って、図3セ,ソ,タの斜線で示す有効
データの開始部分では、TP1,TP2には、スイッチ
10,11を介してT1のデータD2,T2のデータD
1がそのまま出力されるが、TP3にはスイッチ12を
介してDTに保持されている開始データD1が出力さ
れ、無効データXXは出力されない。また、有効データ
の終了部分では、 TP3,TP2には、スイッチ1
2,11を介してT3のデータDn-1,T2のデータD
nがそのまま出力されるが、TP1にはスイッチ10を
介してDTに保持されている終了データDnが出力さ
れ、無効データXXは出力されない。Therefore, at the beginning of the valid data indicated by the oblique lines in FIGS. 3A, 3B and 3C, the data D2 of T1 and the data D2 of T2 are supplied to TP1 and TP2 via switches 10 and 11, respectively.
Although 1 is output as it is, start data D1 held in DT is output to TP3 via the switch 12, and invalid data XX is not output. Also, at the end of the valid data, TP3 and TP2 have switch 1
Data Dn−1 of T3 and data D of T2 via 2, 11
Although n is output as it is, the end data Dn held in DT is output to TP1 via the switch 10, and invalid data XX is not output.
【0015】このように、有効領域の開始及び終了の端
部では、端部のデータが重複して使用させることとな
り、無効データの混入が阻止される。以上説明した実施
例は、3タップのデジタルフィルタであったがタップ数
がこれより多いデジタルフィルタにも適用できることは
言うまでもなく、タップ数が多いほど本発明の効果は大
きくなる。又、FIR型だけでなくIIR型等の異なる
デジタルフィルタにも当然適用可能である。As described above, at the end of the start and end of the effective area, the data at the end is used redundantly, thereby preventing the entry of invalid data. Although the embodiment described above is a three-tap digital filter, it is needless to say that the present invention can be applied to a digital filter having a larger number of taps. In addition, the present invention is naturally applicable not only to the FIR type but also to a different digital filter such as the IIR type.
【0016】[0016]
【発明の効果】本発明によれば、信号の開始及び終了と
いう端部においては、遅延要素の出力の代わりに最端部
のデータが重複して用いられるようになるので、端部の
前後の無効データを含まない処理を行え、従って、より
高品質な信号処理を実現できる。According to the present invention, at the ends of the start and end of the signal, the data at the extreme end is used redundantly instead of the output of the delay element. Processing that does not include invalid data can be performed, and therefore, higher quality signal processing can be realized.
【図1】本発明の実施例の構成を示す回路図である。FIG. 1 is a circuit diagram showing a configuration of an embodiment of the present invention.
【図2】図1の詳細を示す詳細回路図である。FIG. 2 is a detailed circuit diagram showing details of FIG. 1;
【図3】実施例の動作を説明するためのタイミングチャ
ートである。FIG. 3 is a timing chart for explaining the operation of the embodiment.
1 第1遅延回路 2,3,4,6,7,8,9,20,23 Dフリップ
フロップ 5 第2遅延回路 10,11,12 スイッチ 21 ORゲート 22 切り出し回路 24 E−NORゲートReference Signs List 1 first delay circuit 2, 3, 4, 6, 7, 8, 9, 20, 23 D flip-flop 5 second delay circuit 10, 11, 12 switch 21 OR gate 22 cutout circuit 24 E-NOR gate
Claims (2)
遅延させる複数段の遅延要素より成る第1の遅延手段
と、データの有効領域を示す有効領域信号を前記クロッ
ク信号に同期して順次遅延させる複数段の遅延要素より
成る第二の遅延手段と、前記有効領域信号の立ち上がり
もしくは立ち下がりに同期したデータロード信号に応じ
て前記入力信号を取り込むデータ取り込み手段と、前記
第1の遅延手段の各段の遅延要素の出力を各々一端に入
力し、他端に前記取り込み手段の出力を入力し、前記第
2の遅延手段の対応する段の遅延要素の出力によりいず
れか一方の入力を選択的に出力する複数のスイッチ手段
と、該スイッチ手段の各出力に各々係数を乗算し、該乗
算結果を加算する乗算及び加算手段とを備えたことを特
徴とするデジタルフィルタ。1. A delay means comprising a plurality of delay elements for sequentially delaying an input signal in synchronization with a clock signal, and an effective area signal indicating an effective area of data is sequentially delayed in synchronization with the clock signal. A second delay unit comprising a plurality of stages of delay elements, a data capture unit for capturing the input signal in response to a data load signal synchronized with a rise or fall of the effective area signal,
The output of the delay element of each stage of the first delay means is input to one end, the output of the capturing means is input to the other end, and the output of the delay element of the corresponding stage of the second delay means A plurality of switch means for selectively outputting one input; multiplying each output of the switch means by a coefficient;
A digital filter comprising multiplication and addition means for adding a calculation result .
有効画素領域を示す信号であることを特徴とする請求項
1記載のデジタルフィルタ。2. The digital filter according to claim 1, wherein the effective area signal is a signal indicating an effective pixel area in a display device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6277691A JP2760756B2 (en) | 1994-11-11 | 1994-11-11 | Digital filter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6277691A JP2760756B2 (en) | 1994-11-11 | 1994-11-11 | Digital filter |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH08138045A JPH08138045A (en) | 1996-05-31 |
JP2760756B2 true JP2760756B2 (en) | 1998-06-04 |
Family
ID=17586965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6277691A Expired - Fee Related JP2760756B2 (en) | 1994-11-11 | 1994-11-11 | Digital filter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2760756B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5665508B2 (en) | 2010-11-30 | 2015-02-04 | キヤノン株式会社 | Image processing apparatus and method, program, and storage medium |
JP5623256B2 (en) | 2010-11-30 | 2014-11-12 | キヤノン株式会社 | Imaging apparatus, control method thereof, and program |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2893350B2 (en) * | 1990-03-01 | 1999-05-17 | 株式会社日立製作所 | Data processing device, image processing device, shift register circuit, lookup table circuit, arithmetic circuit, image processing system |
JPH05210735A (en) * | 1991-10-31 | 1993-08-20 | Kawasaki Steel Corp | Two-dimensional spatial filtering circuit |
-
1994
- 1994-11-11 JP JP6277691A patent/JP2760756B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH08138045A (en) | 1996-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6347154B1 (en) | Configurable horizontal scaler for video decoding and method therefore | |
US5381354A (en) | Digital filtering of blocks of data values with symmetric data extension at edges of the blocks | |
JP2760756B2 (en) | Digital filter | |
JP2002158561A (en) | Fir filter, and data processing method therefor | |
JPH0834407B2 (en) | Input weighted transversal filter | |
JP2006093884A (en) | Filtering device | |
JP2513218B2 (en) | FIR Digital Filter | |
JPH06181424A (en) | Digital filter system | |
JPH11203467A (en) | Display and its method | |
JPH03114366A (en) | Ghost elimination device | |
JPH08172343A (en) | Method for constituting iir type digital filter | |
JPS61152171A (en) | Digital ghost eliminating device | |
JP2590910B2 (en) | Digital filter | |
JP3177358B2 (en) | Digital filter | |
JP2000004147A (en) | Device and method for eliminating noise, and recording medium | |
US5959698A (en) | Poly phase filter for dot sequential color difference signal conversion | |
KR0181999B1 (en) | Horizontal filter in the moving picture decoding apparatus | |
JP2747146B2 (en) | Ghost removal device | |
JP3352558B2 (en) | Signal processing device | |
JP2776052B2 (en) | Blanking processing circuit | |
JPH05110441A (en) | Prediction output d/a converter | |
JP2004128858A (en) | Fir digital filter | |
JP2882712B2 (en) | Contour correction circuit in image processing device | |
JPS61152174A (en) | Digital ghost eliminating device | |
JPH0263270A (en) | Picture processing circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090320 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090320 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100320 Year of fee payment: 12 |
|
LAPS | Cancellation because of no payment of annual fees |