JP3261729B2 - Linear interpolation method and its circuit - Google Patents

Linear interpolation method and its circuit

Info

Publication number
JP3261729B2
JP3261729B2 JP08179992A JP8179992A JP3261729B2 JP 3261729 B2 JP3261729 B2 JP 3261729B2 JP 08179992 A JP08179992 A JP 08179992A JP 8179992 A JP8179992 A JP 8179992A JP 3261729 B2 JP3261729 B2 JP 3261729B2
Authority
JP
Japan
Prior art keywords
data
output
error
interpolation
register
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 - Lifetime
Application number
JP08179992A
Other languages
Japanese (ja)
Other versions
JPH05284043A (en
Inventor
建夫 土肥
超 八木下
泰尚 益子
強之 高山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP08179992A priority Critical patent/JP3261729B2/en
Publication of JPH05284043A publication Critical patent/JPH05284043A/en
Application granted granted Critical
Publication of JP3261729B2 publication Critical patent/JP3261729B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はCDプレーヤー等のデジ
タルオーディオ機器に適したディジタル信号処理の直線
補間方法及びその回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital signal processing linear interpolation method suitable for digital audio equipment such as a CD player and a circuit therefor.

【0002】[0002]

【従来の技術】従来の直線補間回路の補間演算の方法
は、データの誤りが連続n個以内であれば、常に、前記
の連続n個の誤りデータの前後の正しいデータを用いて
演算を行い、演算の際の乗算係数を変えることにより、
1個目の誤りデータからn個目の誤りデータまでを求め
ることを特徴としたものである。
2. Description of the Related Art A conventional interpolation operation method of a linear interpolation circuit always performs an operation by using correct data before and after the n consecutive error data, if the data error is within n consecutive errors. , By changing the multiplication coefficient in the calculation,
It is characterized by obtaining from the first error data to the n-th error data.

【0003】図3は、データの誤りが連続8個以内なら
ば直線補間が可能な直線補間回路の演算方法を示したも
のである。以下図3を用いて従来の補間回路の演算方法
について説明する。
FIG. 3 shows an operation method of a linear interpolation circuit capable of performing linear interpolation if there are no more than eight consecutive data errors. Hereinafter, the calculation method of the conventional interpolation circuit will be described with reference to FIG.

【0004】図3(a)に示す誤りデータの数(エラーデ
ータ数)が1のときの演算方法は、
When the number of error data (the number of error data) shown in FIG.

【0005】[0005]

【数1】 (Equation 1)

【0006】となり、図3(b)に示す誤りデータの数が
8のときの演算方法は、
[0006] When the number of error data shown in FIG.

【0007】[0007]

【数2】 (Equation 2)

【0008】となる。また、図3(c)に示す誤りデータ
の数が9のときの演算方法は、前の正しいデータで置き
換えて、この置き換えたデータ(前値ホールドデータ)
を使用し、図3(b)のときの演算方法を用いて補間演算
を行う。
[0008] When the number of erroneous data shown in FIG. 3C is 9, the calculation method is to replace the previous correct data with the replaced data (previous value hold data).
And the interpolation calculation is performed using the calculation method shown in FIG.

【0009】[0009]

【数3】 (Equation 3)

【0010】図4は前記の従来の場合の直線補間回路の
一構成例を示したものである。以下図4を用いて従来の
直線補間回路の構成について説明する。
FIG. 4 shows an example of the configuration of the above-described conventional linear interpolation circuit. Hereinafter, the configuration of the conventional linear interpolation circuit will be described with reference to FIG.

【0011】図4において、1は直線補間回路の入力デ
ータ21を順次シフトさせるデータ用シフトレジスタであ
る。2は前記入力データの誤りを示すエラーフラグを順
次シフトさせるエラーフラグ用シフトレジスタである。
3はエラーフラグ用シフトレジスタ2からの出力信号を
読み取り、個々の回路を制御するフラグデコーダであ
る。4はフラグデコーダ3からの制御信号によりデータ
用シフトレジスタ1の個々の段の出力データの中から1
つを選ぶセレクタである。5は第1のスイッチ6より選
択されたデータを一時保持するレジスタである。6はフ
ラグデコーダ3からの制御信号によりデータ用シフトレ
ジスタ1の最終段の出力データを選択しレジスタ5にシ
フトするか、レジスタ5より一時保持され出力されたデ
ータを選択し帰還させてレジスタ5に入力させるかを切
り換える第1のスイッチである。7は補間演算に用いる
係数を内蔵するROMである。8はレジスタ5により一
時保持され出力されたデータとフラグデコーダ3からの
制御信号により決められるROM7に内蔵された係数A
との乗算を行う第1の乗算器である。9はセレクタ4か
らの出力データとフラグデコーダ3からの制御信号によ
り決められるROM7に内蔵された係数Bとの乗算を行
う第2の乗算器である。10は第1の乗算器8の出力デー
タと第2の乗算器9の出力データを加算する加算器であ
る。11は第1のスイッチ6からの出力データと加算器10
からの出力データを切り換える第2のスイッチである。
そして、第2のスイッチ11からの出力データを直線補間
回路全体の出力とする。
In FIG. 4, reference numeral 1 denotes a data shift register for sequentially shifting input data 21 of a linear interpolation circuit. An error flag shift register 2 sequentially shifts an error flag indicating an error in the input data.
Reference numeral 3 denotes a flag decoder that reads an output signal from the error flag shift register 2 and controls each circuit. Reference numeral 4 denotes one of output data of individual stages of the data shift register 1 in accordance with a control signal from the flag decoder 3.
It is a selector to choose one. Reference numeral 5 denotes a register for temporarily holding data selected by the first switch 6. 6 selects the output data of the last stage of the data shift register 1 by the control signal from the flag decoder 3 and shifts it to the register 5, or selects the data temporarily held and output from the register 5 and feeds it back to the register 5 This is a first switch for switching whether to input. Reference numeral 7 denotes a ROM that stores coefficients used for interpolation calculation. Reference numeral 8 denotes a coefficient A stored in the ROM 7 which is determined by the data temporarily held and output by the register 5 and the control signal from the flag decoder 3.
Is a first multiplier that performs multiplication with the following. Reference numeral 9 denotes a second multiplier for multiplying output data from the selector 4 and a coefficient B stored in the ROM 7 determined by a control signal from the flag decoder 3. An adder 10 adds the output data of the first multiplier 8 and the output data of the second multiplier 9. 11 is the output data from the first switch 6 and the adder 10
Is a second switch for switching output data from.
Then, the output data from the second switch 11 is used as the output of the entire linear interpolation circuit.

【0012】以上にように構成された直線補間回路のつ
いて、以下図3を用いてその動作について説明する。
The operation of the linear interpolation circuit configured as described above will be described below with reference to FIG.

【0013】図3(b)の場合において、直線補間回路の
入力データD0がデータ用シフトレジスタ1の最終段に
あるとき、このデータD0が正しいデータであるという
出力信号をエラーフラグ用シフトレジスタ2がフラグデ
コーダ3に出力する事により、フラグデコーダ3が第1
のスイッチ6と第2のスイッチ11に制御信号を出力す
る。この信号により、第1のスイッチ6はデータ用シフ
トレジスタ1の最終段の出力データを選択し、第2のス
イッチ11は第1のスイッチ6の出力データを選択する。
また、レジスタ5は次のクロック周期において、データ
用シフトレジスタの最終段の出力データを一時保持す
る。また、このときの直線補間回路全体の出力は、デー
タ用シフトレジスタの最終段の出力データ(この場合
データD0)を出力する。
In the case of FIG. 3B, when the input data D0 of the linear interpolation circuit is at the last stage of the data shift register 1, an output signal indicating that the data D0 is correct data is output to the error flag shift register 2. Is output to the flag decoder 3 so that the flag decoder 3
The control signal is output to the switch 6 and the second switch 11. With this signal, the first switch 6 selects the output data of the last stage of the data shift register 1, and the second switch 11 selects the output data of the first switch 6.
The register 5 temporarily holds the output data of the last stage of the data shift register in the next clock cycle. At this time, the output of the entire linear interpolation circuit is the output data of the last stage of the data shift register (in this case,
Data D0) is output.

【0014】次に、次のクロック周期において入力デー
タD1がシフトされ、データ用シフトレジスタ1の最終
段にあるとき、このデータD1が誤りのデータであると
いう出力信号をエラーフラグ用シフトレジスタ2がフラ
グデコーダ3に出力する事により、フラグデコーダ3が
第1のスイッチ6と第2のスイッチ11に制御信号を出力
する。この信号により、第1のスイッチ6はレジスタ5
により一時保持され出力されたデータ(この場合 デー
タD0)を選択し、第2のスイッチは加算器10からの出
力データを選択する。よって、このときの直線補間回路
全体の出力は次のようになる。まず、フラグデコーダ3
からの制御信号により、ROM7に内蔵された係数の中
から、第1の乗算器8に使用する係数A(この場合 係
数A=8/9)と第2の乗算器9に使用する係数B(この
場合 係数=1/9)を決定する。そして、第1の乗算器8
はレジスタ5に一時保持され出力されたデータと係数A
との乗算を行い、第2の乗算器9はセレクタ4によって
選ばれたデータ用シフトレジスタ1の出力データ(この
場合 データD9)と係数Bとの乗算を行う。そして、
加算器10は第1の乗算器8の出力データと第2の乗算器
9の出力データを加算する。よって、この加算器10の出
力データを直線補間回路全体の出力とする。また、この
時、レジスタ5は、次のクロック周期において、第1の
スイッチにより選択されたデータ(この場合 データD
0)を一時保持することになる。
Next, when the input data D1 is shifted in the next clock cycle and is at the final stage of the data shift register 1, the error flag shift register 2 outputs an output signal indicating that the data D1 is erroneous data. By outputting to the flag decoder 3, the flag decoder 3 outputs a control signal to the first switch 6 and the second switch 11. By this signal, the first switch 6 causes the register 5
Selects the data temporarily held and output (in this case, data D0), and the second switch selects the output data from the adder 10. Therefore, the output of the entire linear interpolation circuit at this time is as follows. First, the flag decoder 3
From among the coefficients stored in the ROM 7, the coefficient A used in the first multiplier 8 (in this case, the coefficient A = 8/9) and the coefficient B used in the second multiplier 9 In this case, coefficient = 1/9) is determined. Then, the first multiplier 8
Is the data temporarily held in the register 5 and output and the coefficient A
The second multiplier 9 multiplies the output data (in this case, data D9) of the data shift register 1 selected by the selector 4 by the coefficient B. And
The adder 10 adds the output data of the first multiplier 8 and the output data of the second multiplier 9. Therefore, the output data of the adder 10 is used as the output of the entire linear interpolation circuit. At this time, in the next clock cycle, the register 5 stores the data selected by the first switch (in this case, the data D
0) is temporarily held.

【0015】図3(c)の場合において、データ用シフト
レジスタ1のデータがすべて誤りであるとき、エラーフ
ラグ用シフトレジスタ2の出力信号によってフラグデコ
ーダ3は第1のスイッチ6と第2のスイッチ11に制御信
号を出力する。この信号により、第1のスイッチ6はレ
ジスタ5により一時保持され出力されたデータ(この場
合 データD0)を選択し、第2のスイッチ11は第一の
スイッチ6の出力データを選択する。よって、このとき
の直線補間回路全体の出力は、レジスタ5により一時保
持され出力されたデータを出力する。これは、すなわ
ち、誤りのデータの前の正しいデータを前値ホールドす
るという動作になる。
In the case of FIG. 3C, when all the data in the data shift register 1 are erroneous, the flag decoder 3 operates according to the output signal of the error flag shift register 2 by the first switch 6 and the second switch. The control signal is output to 11. With this signal, the first switch 6 selects the data temporarily held and output by the register 5 (data D0 in this case), and the second switch 11 selects the output data of the first switch 6. Therefore, the output of the entire linear interpolation circuit at this time is temporarily held by the register 5 and output. This means that the correct data before the erroneous data is held at the previous value.

【0016】[0016]

【発明が解決しようとする課題】しかしながら前記の従
来の構成では、補間演算に用いる係数の数が多いので、
前記の係数を内蔵するROMの容量が大きいという問題
があった。
However, in the above-mentioned conventional configuration, since the number of coefficients used for the interpolation calculation is large,
There is a problem that the capacity of the ROM containing the above coefficient is large.

【0017】本発明は前記従来の問題点を解決するもの
で、補間演算に用いる係数の数を減らすことにより、前
記の係数を内蔵するROMの容量を大幅に小さくできる
直線補間回路を提供することを目的とする。
An object of the present invention is to solve the above-mentioned conventional problems, and to provide a linear interpolation circuit capable of greatly reducing the capacity of a ROM containing the above-mentioned coefficients by reducing the number of coefficients used for interpolation calculation. With the goal.

【0018】[0018]

【課題を解決するための手段】この目的を達成するため
に本発明の直線補間回路は、データの誤りが連続n個以
内であれば、最初に前記の連続n個の誤りデータの1個
目のデータを補間演算するときは、前記の連続n個の誤
りデータの前後の正しいデータを用いて第1の補間演算
を行い、次に2個目のデータを補間演算するときは、す
でに前記の補間演算で求められた1個目の補間データ
と、前記の連続n個の誤りデータの後の正しいデータを
用いて演算を行う。同様にm個目(m≦n)のデータを
補間演算するときには、すでに前記の補間演算で求めら
れたm−1個目の補間データと、前記の連続n個の誤り
データの後の正しいデータを用いて演算を行うように構
成されている。
In order to achieve this object, a linear interpolation circuit according to the present invention is arranged so that, if data errors are within n consecutive data, the first of the n consecutive error data is first used. When performing the interpolation operation on the data of the above, the first interpolation operation is performed using the correct data before and after the n consecutive error data, and when performing the interpolation operation on the second data, The calculation is performed by using the first interpolation data obtained by the interpolation calculation and the correct data after the n consecutive error data. Similarly, when performing an interpolation operation on the m-th (m ≦ n) data, the (m−1) -th interpolation data already obtained by the above-mentioned interpolation operation and the correct data after the above-mentioned n consecutive error data are obtained. It is configured to perform the calculation using.

【0019】[0019]

【作用】この構成によって、本発明の直線補間回路の補
間演算は、補間演算に用いる係数の数を少なくできるの
で、補間演算に用いる係数を内蔵するROMの容量を小
さくすることができる。
With this configuration, the number of coefficients used in the interpolation operation of the linear interpolation circuit of the present invention can be reduced, so that the capacity of the ROM containing the coefficients used in the interpolation operation can be reduced.

【0020】[0020]

【実施例】(実施例1)以下本発明の第1の実施例につ
いて、図1を用いてその構成を説明する。
(Embodiment 1) The configuration of a first embodiment of the present invention will be described below with reference to FIG.

【0021】図1は本発明の第1の実施例における直線
補間回路の構成図である。図1において、データ用シフ
トレジスタ1、エラーフラグ用シフトレジスタ2、フラ
グデコーダ3、セレクタ4、レジスタ5、ROM7に関
しては従来の構成と同様である。12はフラグデコーダ3
からの制御信号によりデータ用シフトレジスタ1の最終
段の出力データを選択しレジスタ5に入力させるか、レ
ジスタ5に一時保持され出力されたデータを選択し帰還
させてレジスタ5に入力させるか、また、演算部13の出
力データを選択しレジスタ5に入力させるかを切り換え
る第1のスイッチである。13はレジスタ5により一時保
持され出力されたデータとセレクタ4からの出力データ
を用い、あらかじめ決められた演算で処理を行う演算部
である。14は第1のスイッチ12からの出力データと演算
部13の出力データを切り換える第2のスイッチである。
第2のスイッチ14により選択されたデータを直線補間回
路全体の出力とする。演算部13において、15はレジスタ
5によって一時保持され出力されたデータとフラグデコ
ーダ3からの制御信号により決められるROM7に内蔵
された係数Aとの乗算を行う第1の乗算器である。16は
セレクタ4からの出力データとフラグデコーダ3からの
制御信号により決められるROM7に内蔵された係数B
との乗算を行う第2の乗算器である。17は第1の乗算器
15からの出力データと第2の乗算器16からの出力データ
を加算する加算器である。加算器17からの出力データを
演算部13の出力とする。
FIG. 1 is a block diagram of a linear interpolation circuit according to a first embodiment of the present invention. In FIG. 1, a data shift register 1, an error flag shift register 2, a flag decoder 3, a selector 4, a register 5, and a ROM 7 are the same as in the conventional configuration. 12 is the flag decoder 3
The output data of the last stage of the data shift register 1 is selected and input to the register 5 in accordance with the control signal from the CPU, or the data temporarily held and output in the register 5 is selected and fed back and input to the register 5; , A first switch for selecting whether the output data of the operation unit 13 is selected and input to the register 5. Reference numeral 13 denotes an operation unit that performs processing by a predetermined operation using data temporarily held and output by the register 5 and output data from the selector 4. Reference numeral 14 denotes a second switch for switching between output data from the first switch 12 and output data from the operation unit 13.
The data selected by the second switch 14 is used as the output of the entire linear interpolation circuit. In the operation unit 13, reference numeral 15 denotes a first multiplier for multiplying the data temporarily held and output by the register 5 and a coefficient A built in the ROM 7 determined by a control signal from the flag decoder 3. 16 is a coefficient B stored in the ROM 7 determined by the output data from the selector 4 and the control signal from the flag decoder 3.
Is a second multiplier for multiplying by. 17 is the first multiplier
This is an adder for adding the output data from the second multiplier 16 to the output data from the second multiplier 16. The output data from the adder 17 is used as the output of the arithmetic unit 13.

【0022】以上の様に構成された直線補間回路につい
て、図3を用いてその演算の方法と動作について説明す
る。
The operation method and operation of the linear interpolation circuit configured as described above will be described with reference to FIG.

【0023】図3は、データの誤りが連続8個以内なら
ば直線補間可能な直線補間回路の演算の方法を示したも
のである。第1の実施例の直線補間回路の演算方法は、
図3(a)に示す誤りデータの数(エラーデータ数)が
1のときは、従来例と同様に(数1)に示す演算方法と
なり、図3(b)に示す誤りデータの数が8のときは、
FIG. 3 shows a calculation method of a linear interpolation circuit capable of performing linear interpolation if there are no more than eight consecutive data errors. The operation method of the linear interpolation circuit of the first embodiment is as follows.
When the number of error data (number of error data) shown in FIG. 3A is 1, the calculation method shown in (Equation 1) is performed similarly to the conventional example, and the number of error data shown in FIG. When

【0024】[0024]

【数4】 (Equation 4)

【0025】となる。また、図3(c)に示す誤りデータ
の数が9のときは、前の正しいデータで置き換えて、こ
の置き換えたデータ(前値ホールドデータ)を使用し、
図3(c)のときの演算方法を用いて補間演算を行う。
## EQU1 ## When the number of erroneous data shown in FIG. 3C is 9, the data is replaced with the previous correct data, and the replaced data (previous value hold data) is used.
The interpolation calculation is performed using the calculation method shown in FIG.

【0026】[0026]

【数5】 (Equation 5)

【0027】図3(b)の場合において、直線補間回路の
入力データD0がデータ用シフトレジスタ1の最終段に
あるとき、このデータD0が正しいデータであるという
出力信号をエラーフラグ用シフトレジスタ2がフラグデ
コーダ3に出力する事により、フラグデコーダ3が第1
のスイッチ12と第2のスイッチ14に制御信号を出力す
る。この信号により、第1のスイッチ12はデータ用シフ
トレジスタ1の最終段の出力データ(この場合データD
0)を選択し、第2のスイッチ14は第1のスイッチ12か
らの出力データを選択する。これにより、レジスタ5は
次のクロック周期において、データ用シフトレジスタ1
の最終段の出力データを一時保持する。また、このとき
の直線補間回路の出力は、データ用シフトレジスタ1の
最終段の出力データを出力する。
In the case of FIG. 3B, when the input data D0 of the linear interpolation circuit is in the last stage of the data shift register 1, an output signal indicating that the data D0 is correct is output to the error flag shift register 2. Is output to the flag decoder 3 so that the flag decoder 3
The control signal is output to the switch 12 and the second switch 14. By this signal, the first switch 12 outputs the final stage output data of the data shift register 1 (in this case, the data D
0), and the second switch 14 selects the output data from the first switch 12. As a result, the register 5 stores the data shift register 1 in the next clock cycle.
Temporarily holds the output data of the last stage of. At this time, the output of the linear interpolation circuit outputs the final stage output data of the data shift register 1.

【0028】次に、次のクロック周期において入力デー
タD1がシフトされ、データ用シフトレジスタ1の最終
段にあるとき、このデータD1が誤りデータであるとい
う出力信号をエラーフラグ用シフトレジスタ2がフラグ
デコーダ3に出力する事により、フラグデコーダ3が第
1のスイッチ12と第2のスイッチ14に制御信号を出力す
る。この信号により、第1のスイッチ12は演算部13の出
力データを選択し、第2のスイッチ14は演算部13からの
出力データを選択する。よって、このときの直線補間回
路全体の出力は次のようになる。まず、フラグデコーダ
3からの制御信号により、ROM7に内蔵された係数の
中から、第1の乗算器15に使用する係数A(この場合
係数A=8/9)と第2の乗算器16に使用する係数B(こ
の場合 係数=1/9)を決定する。そして、第1の乗算器
15はレジスタ5に一時保持され出力されたデータ(この
場合 データD0)と係数Aとの乗算を行い、第2の乗
算器16はセレクタ4によって選ばれたデータ用シフトレ
ジスタ1の出力データ(この場合 データD9)と係数
Bとの乗算を行う。このセレクタ4によって選ばれるデ
ータ用シフトレジスタ1の出力データは、常に連続n個
の誤りデータの後の正しいデータである。そして、加算
器17は第1の乗算器15の出力データと第2の乗算器16の
出力データを加算する。よって、この加算器17の出力デ
ータを直線補間回路全体の出力とする。また、この時、
レジスタ5は、次のクロック周期において、第1のスイ
ッチにより選択されたデータ、すなわち、演算部13の出
力データ(この場合 補間データD1)を一時保持する
ことになる。
Next, when the input data D1 is shifted in the next clock cycle and is at the final stage of the data shift register 1, the error flag shift register 2 outputs an output signal indicating that the data D1 is erroneous data. By outputting to the decoder 3, the flag decoder 3 outputs a control signal to the first switch 12 and the second switch 14. According to this signal, the first switch 12 selects the output data of the arithmetic unit 13 and the second switch 14 selects the output data from the arithmetic unit 13. Therefore, the output of the entire linear interpolation circuit at this time is as follows. First, according to the control signal from the flag decoder 3, the coefficient A used in the first multiplier 15 (in this case,
The coefficient A = 8/9) and the coefficient B (the coefficient = 1/9 in this case) used for the second multiplier 16 are determined. And a first multiplier
Reference numeral 15 multiplies the data temporarily stored in the register 5 (the data D0 in this case) and the coefficient A, and the second multiplier 16 outputs the output data of the data shift register 1 selected by the selector 4 (this data). Case: Multiply the data D9) by the coefficient B. The output data of the data shift register 1 selected by the selector 4 is always correct data after n consecutive error data. Then, the adder 17 adds the output data of the first multiplier 15 and the output data of the second multiplier 16. Therefore, the output data of the adder 17 is used as the output of the entire linear interpolation circuit. Also, at this time,
The register 5 temporarily holds the data selected by the first switch, that is, the output data of the operation unit 13 (interpolation data D1 in this case) in the next clock cycle.

【0029】さらに、クロック周期において入力データ
D2がシフトされ、データ用シフトレジスタ1の最終段
にあるとき、入力データD1がデータ用シフトレジスタ
1の最終段にあるときと同様に、このデータD2が誤り
データであるという出力信号をエラーフラグ用シフトレ
ジスタ2がフラグデコーダ3に出力する事により、フラ
グデコーダ3が第1のスイッチ12と第2のスイッチ14に
制御信号を出力する。この信号により、第1のスイッチ
12は演算部13の出力データを選択し、第2のスイッチ14
は演算部13からの出力データを選択する。よって、この
ときの直線補間回路全体の出力は次のようになる。ま
ず、フラグデコーダ3からの制御信号により、ROM7
に内蔵された係数の中から、第1の乗算器15に使用する
係数A(この場合 係数A=7/8)と第2の乗算器16に使
用する係数B(この場合 係数=1/8)を決定する。そし
て、第1の乗算器15はレジスタ5に一時保持され出力さ
れたデータ(この場合 補間データD1)と係数Aとの
乗算を行い、第2の乗算器16はセレクタ4によって選ば
れたデータ用シフトレジスタ1の出力データ(この場合
データD9)と係数Bとの乗算を行う。そして、加算
器17は第1の乗算器15の出力データと第2の乗算器16の
出力データを加算する。よって、この加算器17の出力デ
ータを直線補間回路全体の出力とする。また、この時、
レジスタ5は、次のクロック周期において、第1のスイ
ッチにより選択されたデータ、すなわち、演算部13の出
力データ(この場合 補間データD2)を一時保持する
ことになる。
Further, when the input data D2 is shifted in the clock cycle and is at the last stage of the data shift register 1, this data D2 is shifted in the same manner as when the input data D1 is at the last stage of the data shift register 1. When the error flag shift register 2 outputs an output signal indicating error data to the flag decoder 3, the flag decoder 3 outputs a control signal to the first switch 12 and the second switch 14. With this signal, the first switch
12 selects the output data of the operation unit 13 and the second switch 14
Selects output data from the operation unit 13. Therefore, the output of the entire linear interpolation circuit at this time is as follows. First, the ROM 7 is controlled by a control signal from the flag decoder 3.
Among the coefficients built in the first and second coefficients, the coefficient A used in the first multiplier 15 (coefficient A = 7/8 in this case) and the coefficient B used in the second multiplier 16 (coefficient = 1/8 in this case) ) Is determined. The first multiplier 15 multiplies the data temporarily stored in the register 5 (the interpolation data D1 in this case) by the coefficient A, and the second multiplier 16 performs the multiplication for the data selected by the selector 4. The output data of the shift register 1 (data D9 in this case) is multiplied by a coefficient B. Then, the adder 17 adds the output data of the first multiplier 15 and the output data of the second multiplier 16. Therefore, the output data of the adder 17 is used as the output of the entire linear interpolation circuit. Also, at this time,
The register 5 temporarily holds the data selected by the first switch, that is, the output data of the operation unit 13 (in this case, the interpolation data D2) in the next clock cycle.

【0030】以下順次同様の演算を繰り返しながら最終
的に連続8個の誤りデータ全て補間を行う。
Thereafter, interpolation is performed for all eight consecutive error data while repeating the same operation.

【0031】図3(c)の場合において、データ用シフト
レジスタ1のデータがすべて誤りであるとき、エラーフ
ラグ用シフトレジスタ2の出力信号によってフラグデコ
ーダ3は第1のスイッチ12と第2のスイッチ14に制御信
号を出力する。この信号により、第1のスイッチ12はレ
ジスタ5により一時保持され出力されたデータ(この場
合 データD0)を選択し、第2のスイッチ14は第1の
スイッチ12からの出力データを選択する。よって、この
ときの直線補間回路全体の出力は、レジスタ5により一
時保持され出力されたデータを出力する。これは、すな
わち、誤りの前の正しいデータを前値ホールドするとい
う動作になる。そして、この前値ホールドデータを使用
し、図3(b)の場合と同様の演算方法を用いて補間を行
う。
In the case of FIG. 3C, when all the data in the data shift register 1 are erroneous, the flag decoder 3 outputs the first switch 12 and the second switch 12 by the output signal of the error flag shift register 2. The control signal is output to 14. With this signal, the first switch 12 selects the data temporarily held and output by the register 5 (data D0 in this case), and the second switch 14 selects the output data from the first switch 12. Therefore, the output of the entire linear interpolation circuit at this time is temporarily held by the register 5 and output. This means that the correct data before the error is held at the previous value. Then, using the previous value hold data, interpolation is performed using the same calculation method as in the case of FIG.

【0032】(表1)は本実施例の場合と従来の場合と
の直線補間回路の補間演算に用いる係数の数を比較した
ものである。
Table 1 compares the number of coefficients used in the interpolation operation of the linear interpolation circuit in the present embodiment and the conventional case.

【0033】[0033]

【表1】 [Table 1]

【0034】この(表1)から明らかにように、本第1
の実施例の場合の直線補間回路は、補間演算に用いる係
数の数を従来の場合より同等もしくは少なくできるの
で、前記の係数を内蔵するROMの容量を小さくできる
点で優れた効果が得られる。
As apparent from Table 1 above, the first
Since the number of coefficients used for the interpolation operation can be made equal to or less than that of the conventional case, the linear interpolation circuit in the case of the first embodiment has an excellent effect in that the capacity of the ROM incorporating the above coefficients can be reduced.

【0035】(実施例2)以下本発明の第2の実施例に
ついて、図2を用いてその構成を説明する。
(Embodiment 2) The configuration of a second embodiment of the present invention will be described below with reference to FIG.

【0036】図2は本発明の第2の実施例における直線
補間回路の構成図である。図2において、データ用シフ
トレジスタ1、エラーフラグ用シフトレジスタ2、フラ
グデコーダ3、セレクタ4、レジスタ5、ROM7、第
1のスイッチ12、第2のスイッチ14に関しては図1の構
成と同様である。図1の構成と異なるのは演算部13であ
り、演算部13において、18はセレクタ4からの出力デー
タからレジスタ5により一時保持され出力されたデータ
を減算する減算器である。19は減算器18からの出力デー
タとフラグデコーダ3からの制御信号により決められる
ROM7に内蔵された係数Aとの乗算を行う乗算器であ
る。20は乗算器19からの出力データとレジスタ5により
一時保持され出力された出力データを加算する加算器で
ある。加算器20からの出力データを演算部13の出力とす
る。
FIG. 2 is a configuration diagram of a linear interpolation circuit according to a second embodiment of the present invention. 2, a data shift register 1, an error flag shift register 2, a flag decoder 3, a selector 4, a register 5, a ROM 7, a first switch 12, and a second switch 14 are the same as those in FIG. . The operation unit 13 differs from the configuration of FIG. 1. In the operation unit 13, reference numeral 18 denotes a subtractor that subtracts data temporarily held by the register 5 and output from the data output from the selector 4. A multiplier 19 multiplies output data from the subtracter 18 by a coefficient A stored in the ROM 7 determined by a control signal from the flag decoder 3. An adder 20 adds the output data from the multiplier 19 and the output data temporarily held and output by the register 5. The output data from the adder 20 is used as the output of the operation unit 13.

【0037】以上の様に構成された直線補間回路につい
て、図3を用いてその演算の方法と動作について説明す
る。
The operation method and operation of the linear interpolation circuit configured as described above will be described with reference to FIG.

【0038】図3は、データの誤りが連続8個以内なら
ば直線補間が可能な直線補間回路の演算の方法を示した
ものである。第2の実施例の場合の補間データの演算の
方法は、図3(a)に示す誤りデータの数(エラーデータ
数)が1のときは、
FIG. 3 shows a method of calculating a linear interpolation circuit capable of performing linear interpolation if there are no more than eight consecutive data errors. The method of calculating the interpolation data in the case of the second embodiment is such that when the number of error data (the number of error data) shown in FIG.

【0039】[0039]

【数6】 (Equation 6)

【0040】となり、図3(b)に示す誤りデータの数が
8のときは、
When the number of error data shown in FIG. 3B is 8,

【0041】[0041]

【数7】 (Equation 7)

【0042】となる。また、図3(c)に示す誤りデータ
の数が9のときは、前の正しいデータで置き換えて、こ
の置き換えたデータ(前値ホールドデータ)を使用し、
図3(b)のときの演算方法を用いて補間演算を行う。
Is as follows. When the number of erroneous data shown in FIG. 3C is 9, the data is replaced with the previous correct data, and the replaced data (previous value hold data) is used.
The interpolation calculation is performed using the calculation method shown in FIG.

【0043】[0043]

【数8】 (Equation 8)

【0044】図3(b)の場合において、直線補間回路の
入力データD0がデータ用シフトレジスタ1の最終段に
あるとき、このデータD0が正しいデータであるという
出力信号をエラーフラグ用シフトレジスタ2がフラグデ
コーダ3に出力する事により、フラグデコーダ3が第1
のスイッチ12と第2のスイッチ14に制御を出力する。こ
の信号により、第1のスイッチ12はデータ用シフトレジ
スタ1の最終段の出力データ(この場合 データD0)
を選択し、第2のスイッチ14は第1のスイッチ12の出力
データを選択する。これにより、レジスタ5は次のクロ
ックにおいて、データ用シフトレジスタ1の最終段の出
力データを一時保持する。また、このときの直線補間回
路全体の出力は、データ用シフトレジスタ1の最終段の
出力データを出力する。
In the case of FIG. 3B, when the input data D0 of the linear interpolation circuit is at the last stage of the data shift register 1, an output signal indicating that the data D0 is correct is output to the error flag shift register 2. Is output to the flag decoder 3 so that the flag decoder 3
The control is output to the switch 12 and the second switch 14. By this signal, the first switch 12 outputs the final stage output data of the data shift register 1 (in this case, data D0).
And the second switch 14 selects the output data of the first switch 12. As a result, the register 5 temporarily holds the output data of the last stage of the data shift register 1 at the next clock. At this time, the output of the entire linear interpolation circuit outputs the output data of the last stage of the data shift register 1.

【0045】次に、次のクロック周期において入力デー
タD1がシフトされ、データ用シフトレジスタ1の最終
段にあるとき、このデータD1が誤りデータであるとい
う出力信号をエラーフラグ用シフトレジスタ2がフラグ
デコーダ3に出力する事により、フラグデコーダ3が第
1のスイッチ12と第2のスイッチ14に制御信号を出力す
る。この信号により、第1のスイッチ12は演算部13の出
力データを選択し、第2のスイッチ14は演算部13からの
出力データを選択する。よって、このときの直線補間回
路全体の出力は次のようになる。まず、フラグデコーダ
3からの制御信号により、ROM7に内蔵された係数の
中から乗算器19に使用する係数A(この場合係数A=1/
9)を決定する。そして、減算器18は、セレクタ4によ
って選ばれたデータ用シフトレジスタ1の出力データ
(この場合 データD9)からレジスタ5により一時保
持され出力されたデータ(この場合 データD0)を減
算する。このセレクタ4によって選ばれるデータ用シフ
トレジスタ1の出力データは、常に連続n個の誤りデー
タの後の正しいデータである。そして、乗算器19は減算
器18の出力データと係数Aとの乗算を行う。そして、加
算器20は乗算器19の出力データとレジスタ5により一時
保持され出力されたデータを加算する。よって、この加
算器20の出力データを直線補間回路全体の出力とする。
また、レジスタ5は、次のクロック周期において、第1
のスイッチにより選択されたデータ、すなわち、演算部
13の出力データ(この場合 補間データD2)を一時保
持することになる。
Next, when the input data D1 is shifted in the next clock cycle and is in the last stage of the data shift register 1, the error flag shift register 2 outputs an output signal indicating that the data D1 is erroneous data. By outputting to the decoder 3, the flag decoder 3 outputs a control signal to the first switch 12 and the second switch 14. According to this signal, the first switch 12 selects the output data of the arithmetic unit 13 and the second switch 14 selects the output data from the arithmetic unit 13. Therefore, the output of the entire linear interpolation circuit at this time is as follows. First, according to a control signal from the flag decoder 3, a coefficient A used in the multiplier 19 (in this case, coefficient A = 1 /
9) is determined. Then, the subtractor 18 subtracts the data temporarily stored and output by the register 5 (data D0 in this case) from the output data of the data shift register 1 selected by the selector 4 (data D9 in this case). The output data of the data shift register 1 selected by the selector 4 is always correct data after n consecutive error data. Then, the multiplier 19 multiplies the output data of the subtractor 18 by the coefficient A. Then, the adder 20 adds the output data of the multiplier 19 and the data temporarily held and output by the register 5. Therefore, the output data of the adder 20 is used as the output of the entire linear interpolation circuit.
The register 5 stores the first clock in the next clock cycle.
, The data selected by the switch
Thirteen output data (in this case, interpolation data D2) are temporarily held.

【0046】さらに、クロック周期において入力データ
D2がシフトされ、データ用シフトレジスタ1の最終段
にあるとき、入力データD1がデータ用シフトレジスタ
1の最終段にあるときと同様に、このデータD2が誤り
データであるという出力信号をエラーフラグ用シフトレ
ジスタ2がフラグデコーダ3に出力する事により、フラ
グデコーダ3が第1のスイッチ12と第2のスイッチ14に
制御信号を出力する。この信号により、第1のスイッチ
12は演算部13の出力データを選択し、第2のスイッチ14
は演算部13からの出力データを選択する。よって、この
ときの直線補間回路全体の出力は次のようになる。ま
ず、フラグデコーダ3からの制御信号により、ROM7
に内蔵された係数の中から乗算器19に使用する係数A
(この場合係数A=1/8)を決定する。そして、減算器18
は、セレクタ4によって選ばれたデータ用シフトレジス
タ1の出力データ(この場合 データD9)からレジス
タ5により一時保持され出力されたデータ(この場合
補間データD)を減算する。そして、乗算器19は減算
器18の出力データと係数Aとの乗算を行う。そして、加
算器20は乗算器19の出力データとレジスタ5により一時
保持され出力されたデータを加算する。よって、この加
算器20の出力データを直線補間回路全体の出力とする。
また、レジスタ5は、次のクロック周期において、第1
のスイッチにより選択されたデータ、すなわち、演算部
13の出力データ(この場合 補間データD)を一時保
持することになる。
Further, when the input data D2 is shifted in the clock cycle and is at the last stage of the data shift register 1, this data D2 is shifted in the same manner as when the input data D1 is at the last stage of the data shift register 1. When the error flag shift register 2 outputs an output signal indicating error data to the flag decoder 3, the flag decoder 3 outputs a control signal to the first switch 12 and the second switch 14. With this signal, the first switch
12 selects the output data of the operation unit 13 and the second switch 14
Selects output data from the operation unit 13. Therefore, the output of the entire linear interpolation circuit at this time is as follows. First, the ROM 7 is controlled by a control signal from the flag decoder 3.
Coefficient A to be used for the multiplier 19 from among the coefficients built in
(In this case, coefficient A = 1/8) is determined. And the subtractor 18
Is the data temporarily stored and output by the register 5 from the output data of the data shift register 1 selected by the selector 4 (data D9 in this case).
The interpolation data D 2 ) is subtracted. Then, the multiplier 19 multiplies the output data of the subtractor 18 by the coefficient A. Then, the adder 20 adds the output data of the multiplier 19 and the data temporarily held and output by the register 5. Therefore, the output data of the adder 20 is used as the output of the entire linear interpolation circuit.
The register 5 stores the first clock in the next clock cycle.
, The data selected by the switch
Thirteen output data (in this case, interpolation data D 3 ) are temporarily held.

【0047】以下順次同様の演算を繰り返しながら最終
的に連続8個の誤りデータ全て補間を行う。
Thereafter, interpolation is performed for all eight consecutive error data while repeating the same operation.

【0048】図3(c)の場合において、データ用シフト
レジスタ1のデータがすべて誤りであるとき、エラーフ
ラグ用シフトレジスタ2の出力信号によってフラグデコ
ーダ3は第1のスイッチ12と第2のスイッチ14に制御信
号を出力する。この信号により、第1のスイッチ12はレ
ジスタ5により一時保持され出力されたデータを選択
し、第2のスイッチ14は第一のスイッチ12の出力データ
を選択する。よって、このときの直線補間回路全体の出
力は、レジスタ5により一時保持され出力されたデータ
を出力する。これは、すなわち、誤りの前の正しいデー
タを前値ホールドするという動作になる。そして、この
前値ホールドデータを使用し、図3(b)の場合と同様の
演算方法を用いて補間を行う。
In the case of FIG. 3C, when all the data in the data shift register 1 are erroneous, the flag decoder 3 outputs the first switch 12 and the second switch 12 by the output signal of the error flag shift register 2. The control signal is output to 14. With this signal, the first switch 12 selects the data temporarily held and output by the register 5, and the second switch 14 selects the output data of the first switch 12. Therefore, the output of the entire linear interpolation circuit at this time is temporarily held by the register 5 and output. This means that the correct data before the error is held at the previous value. Then, using the previous value hold data, interpolation is performed using the same calculation method as in the case of FIG.

【0049】以上のように、演算部13の回路を構成する
ことにより、前記(表1)の本実施例の場合と従来の場
合との直線補間回路の補間演算に用いる係数の数の比較
から明らかにように、本第2の実施例の場合の直線補間
回路は、従来の場合より補間演算に用いる係数の数を同
等もしくは少なくできるので、前記の係数を内蔵するR
OMの容量を大幅に小さくできる点で優れた効果が得ら
れる。また、第2の実施例の方が第1の実施例より優れ
た効果を得ることができる。
As described above, by configuring the circuit of the arithmetic unit 13, the comparison of the number of coefficients used in the interpolation operation of the linear interpolation circuit between the case of the present embodiment (Table 1) and the conventional case can be obtained. Obviously, the linear interpolation circuit in the case of the second embodiment can make the number of coefficients used for the interpolation calculation equal to or less than that of the conventional case.
An excellent effect is obtained in that the capacity of the OM can be significantly reduced. Further, the second embodiment can obtain more excellent effects than the first embodiment.

【0050】[0050]

【発明の効果】前記の様に本発明による直線補間方法
は、直線補間回路において、連続n個以上の誤りデータ
の補間演算を行う場合、まず最初に、前記n個の誤りデ
ータの前後の正しい2個のデータを用いて、正しいデー
タに隣接した第1の誤りデータの補間演算のみを行って
第1の補間データとし、次に前記の補間演算によって求
められた第1の補間データを正しいデータとして取り扱
い、残った連続n−1個の誤りデータの補間演算を行う
際に、再度前記n−1個の誤りデータの前後の前記第1
の補間データを含む正しい2個のデータを用いて、正し
いデータに隣接した誤りデータの補間演算のみを行い、
以下順次同様の演算を繰り返しながら最終的に連続n個
の誤りデータ全ての補間演算を行うものである。また、
その直線補間回路は、データの誤りが連続n個以内であ
れば、最初に前記の連続n個の誤りデータの1個目のデ
ータを補間演算するときは、前記の連続n個の誤りデー
タの前後の正しいデータを用いて第1の補間演算を行
い、次に2個目のデータを補間演算するときは、すでに
前記の補間演算で求められた1個目の補間データと、前
記の連続n個の誤りデータの後の正しいデータを用いて
演算を行う。同様にm個目(m≦n)のデータを補間演
算するときには、すでに前記の補間演算で求められたm
−1個目の補間データと、前記の連続n個の誤りデータ
の後の正しいデータを用いて演算を行うように構成され
ている。
As described above, the linear interpolation method according to the present invention
Is n or more consecutive error data in the linear interpolation circuit.
First, when performing the interpolation calculation of
Using the correct two data before and after the data,
Only the interpolation operation of the first error data adjacent to the data
The first interpolated data is used, and then calculated by the above-described interpolation operation.
Handles the first interpolated data obtained as correct data
And performs an interpolation operation on the remaining consecutive n-1 error data.
At this time, the first data before and after the (n-1) error data are again used.
Using two correct data including interpolation data of
Performs only the interpolation operation on the error data adjacent to the new data,
Thereafter, the same operation is repeated sequentially, and finally n continuous
Is performed for all the error data. Also,
The linear interpolation circuit performs an interpolation operation on the first data of the n consecutive error data if the data error is within n consecutive error data. performing a first interpolation operation using the front and rear correct data, when the next interpolation operation two first data, and one th interpolated data that has been already obtained by the interpolation operation, the continuous n The operation is performed using the correct data after the error data. Similarly, when the m-th (m ≦ n) data is subjected to the interpolation calculation, the m-th data already obtained by the above-described interpolation calculation is
The calculation is performed by using the first interpolated data and the correct data after the n consecutive error data.

【0051】前記の構成により、本発明の直線補間回路
は、前後の正しい2個のデータを用いて、正しいデータ
に隣接した第1の誤りデータの補間演算のみを行って第
1の補間データとし、次にその第1の補間データを正し
いデータとして取り扱って次の補間演算に用い、以下順
次同様の演算を行うので、補間演算に用いる係数の数
減らすことができ、補間演算に用いる係数を内蔵するR
OMの容量を小さくすることができる優れた直線補間回
路を実現できるものである。
With the above configuration, the linear interpolation circuit of the present invention uses the correct two data before and after
Only the interpolation operation of the first error data adjacent to
1 interpolation data, and then correct the first interpolation data.
Data and use it for the next interpolation operation.
Since the same operation is performed next, the number of coefficients used for the interpolation operation can be reduced, and R
An excellent linear interpolation circuit capable of reducing the capacity of the OM can be realized.

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

【図1】本発明の第1の実施例における直線補間回路の
構成図
FIG. 1 is a configuration diagram of a linear interpolation circuit according to a first embodiment of the present invention.

【図2】本発明の第2の実施例における直線補間回路の
構成図
FIG. 2 is a configuration diagram of a linear interpolation circuit according to a second embodiment of the present invention.

【図3】第1の実施例、第2の実施例、従来の例におけ
る直線補間回路の動作説明のための直線補間の演算の方
法を示した図
FIG. 3 is a diagram showing a method of calculating linear interpolation for explaining the operation of a linear interpolation circuit in the first embodiment, the second embodiment, and the conventional example.

【図4】従来の直線補間回路の構成図FIG. 4 is a configuration diagram of a conventional linear interpolation circuit.

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

1 データ用シフトレジスタ 2 エラーフラグ用シフトレジスタ 3 フラグデコーダ 4 セレクタ 5 レジスタ 6,11,12,14 スイッチ 7 ROM 8,9,15,16,19 乗算器 10,17,20 加算器 18 減算器 1 data shift register 2 error flag shift register 3 flag decoder 4 selector 5 register 6,11,12,14 switch 7 ROM 8,9,15,16,19 multiplier 10,17,20 adder 18 subtractor

───────────────────────────────────────────────────── フロントページの続き (72)発明者 高山 強之 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (56)参考文献 特開 昭63−205862(JP,A) 特公 昭63−39990(JP,B1) 特公 昭61−30344(JP,B2) (58)調査した分野(Int.Cl.7,DB名) H03M 13/00 ────────────────────────────────────────────────── ─── Continued from the front page (72) Inventor Takeyuki Takayama 1006 Kazuma Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. -39990 (JP, B1) JP-B 61-30344 (JP, B2) (58) Fields investigated (Int. Cl. 7 , DB name) H03M 13/00

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 直線補間回路において、連続n個以上の
誤りデータの補間演算を行う場合、まず最初に、前記n
個の誤りデータの前後の正しい2個のデータを用いて、
正しいデータに隣接した第1の誤りデータの補間演算の
みを行って第1の補間データとし、次に前記の補間演算
によって求められた第1の補間データを正しいデータと
して取り扱い、残った連続n−1個の誤りデータの補間
演算を行う際に、再度前記n−1個の誤りデータの前後
前記第1の補間データを含む正しい2個のデータを用
いて、正しいデータに隣接した誤りデータの補間演算の
みを行い、以下順次同様の演算を繰り返しながら最終的
に連続n個の誤りデータ全ての補間演算を行う事を特徴
とした直線補間方法。
When performing an interpolation operation on n or more consecutive error data in a linear interpolation circuit, first, the n
Using two correct data before and after the error data,
Only interpolation operation of the first error data adjacent to the correct data as the first interpolation data I line, handling the next first interpolated data obtained by interpolation of the as the correct data, the remaining continuous n When performing an interpolation operation on -1 error data, error data adjacent to the correct data is again used by using two correct data including the first interpolation data before and after the n-1 error data. A linear interpolation method characterized in that only the interpolation calculation of the above is performed, and thereafter, the same calculation is sequentially repeated, and finally the interpolation calculation of all n consecutive error data is performed.
【請求項2】 直線補間回路において、データの誤りが
連続n個以内であれば、最初に前記の連続n個の誤りデ
ータの1個目のデータを補間演算するときは、前記の連
続n個の誤りデータの前後の正しいデータを用いて第1
の補間演算を行い、次に2個目のデータを補間演算する
ときは、すでに前記の補間演算で求められた1個目の
データと、前記の連続n個の誤りデータの後の正しい
データを用いて演算を行い、同様にm個目(m≦n)の
データを補間演算するときには、すでに前記の補間演算
で求められたm−1個目の補間データと、前記の連続n
個の誤りデータの後の正しいデータを用いて演算を行う
ことを特徴とする請求項1記載の直線補間方法。
2. In a linear interpolation circuit, if the number of data errors is within n consecutive data, when the first data of the n consecutive error data is interpolated first, the n consecutive error data is calculated. the using of the front and rear of the correct data of the error data 1
Performs interpolation operation, the next time you interpolation calculation 2 -th data is already complement of one eye obtained by the interpolation operation
When the calculation is performed using the interim data and the correct data after the above-mentioned n consecutive error data, and the m-th (m ≦ n) data is similarly subjected to the interpolation calculation, the interpolation calculation has already been performed. And the (m-1) th interpolation data
2. The linear interpolation method according to claim 1, wherein the calculation is performed using correct data after the error data.
【請求項3】 前記の直線補間回路を構成する際に、直
線補間回路の入力データを順次シフトさせるデータ用シ
フトレジスタと、前記入力データの誤りを示すエラーフ
ラグを順次シフトさせるエラーフラグ用シフトレジスタ
と、前記エラーフラグ用シフトレジスタからの出力信号
を読み取り、個々の回路を制御するフラグデコーダと、
前記フラグデコーダからの制御信号により前記データ用
シフトレジスタの個々の段の出力データの中から1つを
選ぶセレクタと、第1のスイッチにより選択されたデー
タを一時保持するレジスタと、前記フラグデコーダから
の制御信号により前記データ用シフトレジスタの最終段
の出力データを選択し前記レジスタに入力させるか、前
記レジスタにより一時保持され出力されたデータを選択
し帰還させて前記レジスタに入力させるか、また、演算
部出力データを選択し前記レジスタに入力させるかを切
り換える第1のスイッチと、前記第1のスイッチからの
出力データと前記セレクタからの出力データを用い、あ
らかじめ決められた演算で処理を行う演算部と、前記フ
ラグデコーダからの制御信号により前記第1のスイッチ
からの出力データを選択するか、また、前記演算部出力
データを選択するかを切り換える第2のスイッチとを備
え、前記第2のスイッチから出力されるデータを直線補
間回路全体の出力データとすることを特徴とする請求項
2記載の直線補間方法に基づいた直線補間回路。
3. A data shift register for sequentially shifting input data of the linear interpolation circuit when configuring the linear interpolation circuit, and an error flag shift register for sequentially shifting an error flag indicating an error in the input data. And a flag decoder that reads an output signal from the error flag shift register and controls each circuit.
A selector for selecting one of output data of individual stages of the data shift register according to a control signal from the flag decoder, a register for temporarily holding data selected by a first switch, Whether to select the output data of the last stage of the data shift register by the control signal and input it to the register, or select the data temporarily held and output by the register, feed it back, and input it to the register, A first switch for selecting whether to output operation unit output data and inputting the data to the register, and an operation for performing processing by a predetermined operation using output data from the first switch and output data from the selector And output data from the first switch according to a control signal from the flag decoder. A second switch for selecting whether to select the operation unit output data, and to output data from the second switch as output data of the entire linear interpolation circuit. A linear interpolation circuit based on the linear interpolation method according to claim 2.
【請求項4】 前記演算部を構成する際に、前記レジス
タによって一時保持され出力されたデータと前記フラグ
デコーダからの制御信号により決められる係数との乗算
を行う第1の乗算器と、前記セレクタからの出力データ
と前記フラグデコーダからの制御信号により決められる
係数との乗算を行う第2の乗算器と、前記第1の乗算器
からの出力データと前記第2の乗算器からの出力データ
を加算する加算器とを備え、前記加算器から出力される
データを演算部の出力データとすることを特徴とする請
求項3記載の直線補間回路。
A first multiplier configured to multiply data temporarily held and output by the register and a coefficient determined by a control signal from the flag decoder when configuring the arithmetic unit; and the selector. A second multiplier for multiplying the output data from the multiplication by a coefficient determined by a control signal from the flag decoder, and the output data from the first multiplier and the output data from the second multiplier. 4. The linear interpolation circuit according to claim 3, further comprising an adder for adding, wherein data output from the adder is used as output data of a calculation unit .
【請求項5】 前記演算部を構成する際に、前記セレク
タからの出力データから前記レジスタによって一時保持
され出力されたデータを減算する減算器と、前記減算器
からの出力データと前記フラグデコーダからの制御信号
により決められる係数との乗算を行う乗算器と、前記レ
ジスタによって一時保持され出力されたデータと前記乗
算器からの出力データを加算する加算器とを備え、前記
加算器から出力されるデータを演算部の出力データとす
ることを特徴とする請求項3記載の直線補間回路。
5. A subtracter for subtracting data temporarily held and output by said register from output data from said selector when configuring said arithmetic unit, and a data output from said subtractor and said flag decoder. A multiplier for multiplying by a coefficient determined by the control signal of (i), and an adder for adding data temporarily held and output by the register and output data from the multiplier, and output from the adder. 4. The linear interpolation circuit according to claim 3, wherein the data is output data of the operation unit .
JP08179992A 1992-04-03 1992-04-03 Linear interpolation method and its circuit Expired - Lifetime JP3261729B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08179992A JP3261729B2 (en) 1992-04-03 1992-04-03 Linear interpolation method and its circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08179992A JP3261729B2 (en) 1992-04-03 1992-04-03 Linear interpolation method and its circuit

Publications (2)

Publication Number Publication Date
JPH05284043A JPH05284043A (en) 1993-10-29
JP3261729B2 true JP3261729B2 (en) 2002-03-04

Family

ID=13756540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08179992A Expired - Lifetime JP3261729B2 (en) 1992-04-03 1992-04-03 Linear interpolation method and its circuit

Country Status (1)

Country Link
JP (1) JP3261729B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3572769B2 (en) * 1995-11-30 2004-10-06 ソニー株式会社 Digital audio signal processing apparatus and method

Also Published As

Publication number Publication date
JPH05284043A (en) 1993-10-29

Similar Documents

Publication Publication Date Title
US5287299A (en) Method and apparatus for implementing a digital filter employing coefficients expressed as sums of 2 to an integer power
US4817025A (en) Digital filter
JPH05235699A (en) Sampling frequency converter
WO1991018355A1 (en) Integrated interpolator and method of operation
JP3261729B2 (en) Linear interpolation method and its circuit
US4701875A (en) High speed convolution arithmetic circuit with multiple counters
US5477479A (en) Multiplying system having multi-stages for processing a digital signal based on the Booth's algorithm
JPH08152994A (en) Multiplier and digital filter
US5777915A (en) Multiplier apparatus and method for real or complex numbers
JP3851024B2 (en) Multiplier
JPS6116110B2 (en)
JP3243831B2 (en) FIR type filter
US5923578A (en) Data processing circuit
JP3412368B2 (en) Bit serial squaring circuit
JPH0368415B2 (en)
US5627776A (en) Data processing circuit
JPH0795671B2 (en) Digital Filter
JPS63113757A (en) Operation circuit
JPH06152330A (en) Digital filter
KR19980013689A (en) An Implementation Method of K-tap FIR Filter Using Vector Processor (Method for emboding K-tap FIR Filter Using Vector Processor)
JPH0785001A (en) Interpolation arithmetic system and linear interpolation arithmetic unit
JP3286204B2 (en) Thinning filter device
JPH07114454A (en) Multiplication circuit and multiplication method
JPH059031U (en) High precision filter device
JPH0816366A (en) Divider and dividing method for the same

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071221

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081221

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091221

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091221

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101221

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101221

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111221

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121221

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121221

Year of fee payment: 11