JP2004297389A - Video encoder - Google Patents

Video encoder Download PDF

Info

Publication number
JP2004297389A
JP2004297389A JP2003086080A JP2003086080A JP2004297389A JP 2004297389 A JP2004297389 A JP 2004297389A JP 2003086080 A JP2003086080 A JP 2003086080A JP 2003086080 A JP2003086080 A JP 2003086080A JP 2004297389 A JP2004297389 A JP 2004297389A
Authority
JP
Japan
Prior art keywords
angle
value
output
adder
cos
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
JP2003086080A
Other languages
Japanese (ja)
Other versions
JP3974064B2 (en
Inventor
Satoru Wada
和田  哲
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.)
Fujifilm Holdings Corp
Fujifilm Microdevices Co Ltd
Original Assignee
Fujifilm Microdevices Co Ltd
Fuji Photo Film 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 Fujifilm Microdevices Co Ltd, Fuji Photo Film Co Ltd filed Critical Fujifilm Microdevices Co Ltd
Priority to JP2003086080A priority Critical patent/JP3974064B2/en
Publication of JP2004297389A publication Critical patent/JP2004297389A/en
Application granted granted Critical
Publication of JP3974064B2 publication Critical patent/JP3974064B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a video encoder by which the capacity of a table used for obtaining a sinusoidal value and a cosine value is much more reduced in an image processor. <P>SOLUTION: The video encoder comprises: a terminal inputting a first angle θ; a first adder obtaining a second angle by adding a first given value to the first angle; a first selector selecting one of the first and the second angle; a second adder applying code inversion to the first or the second angle, adding a second given value to the first or the second angle, and outputting a third or a fourth angle; the table obtaining a first and a second sinusoidal value or cosine value with respect to the first or the second angle, the third or the fourth angle for output; a second and a third selector selecting inputting the first and the second sinusoidal value or cosine value to the terminal and selecting one of them; a multiplier multiplying the output of the second selector by a third given value; a third adder adding the output of the third selector to the output of the multiplier; and a terminal obtaining sinθ and cosθ from the first or the second sinusoidal value or the cosine value and the output of the third adder for output. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】本発明は画像信号の処理を行うために、任意の角度における正弦値及び余弦値を出力する手段を有するビデオエンコーダに関する。
【0002】
【従来の技術】角度θの値に応じて正弦値及び余弦値を求める方法として0°〜360°の範囲における正弦値及び余弦値をテーブルに記録しておき随時必要な値を参照する方法が知られている。しかし、360°全範囲の正弦値及び余弦値を記録するのでは必要なテーブルの記憶容量が大きくなってしまう。この問題を解決するために、例えば、特許文献1には0°〜45°の範囲の正弦値及び余弦値の合計90°分の三角関数をテーブルに記録しておき、45°〜360°の正弦値及び余弦値についてはテーブルに記録されている正弦値及び余弦値を用いて算出する直交関数発生回路が記載されている。
【0003】
【特許文献1】
特開平9−265331号公報
【0004】
【発明が解決しようとする課題】以上のように従来知られている方法では、任意の角度における正弦値及び余弦値を求めるためにテーブルに合計90°分以上の範囲の三角関数を記録しておく必要があり、その分ハード量が増大していた。
【0005】
本発明の目的は、画像処理装置において正弦値及び余弦値を求めるために使用するテーブルの容量をより削減することができるビデオエンコーダを提供することである。
【0006】
【課題を解決するための手段】本発明の1観点によれば、1象限に属する角度θを第1の角度として入力する入力端子と、第1の角度に第1の所定値を加算して第2の角度として出力する第1の加算器と、一方の入力端子には第1の角度を入力し、他方の入力端子には第2の角度を入力して、いずれかの入力端子を選択する第1のセレクタと、前記第1のセレクタから出力された第1の角度又は第2の角度を符号反転し、第2の所定値を加算して第3の角度又は第4の角度として出力する第2の加算器と、前記第1のセレクタから出力された第1又は第2の角度に対する第1の正弦値又は余弦値を求め、前記第2の加算器から出力された第3又は第4の角度に対する第2の正弦値又は余弦値を求めて出力するテーブルと、前記テーブルから出力される第1の正弦値又は余弦値を一方の入力端子に入力し、前記テーブルから出力される第2の正弦値又は余弦値を他方の入力端子に入力して、いずれかの入力端子を選択する第2及び第3のセレクタと、前記第2のセレクタの出力に第3の所定値を乗算して出力する乗算器と、前記乗算器の出力に、第3のセレクタの出力を加算して出力する第3の加算器と、前記第1又は第2の正弦値又は余弦値と、前記第3の加算器の出力からsinθ及びcosθを求めて出力する出力端子とを有するビデオエンコーダが提供される。
【0007】
【発明の実施の形態】
図1はビデオエンコーダ内部の構成を示すブロック図である。平衡変調回路1には色差信号C及びCと三角関数sinα及びcosαが入力される。平衡変調回路1では、色差信号Cにsinαの値が乗算され、色差信号Cにcosαの値が乗算された後、合成され搬送色信号Cが出力される。平衡変調回路1から出力された搬送色信号Cは加算器A0で輝度信号Yと加算されてコンポジット信号Nが形成される。
【0008】
ビデオエンコーダで色差信号C及びCからコンポジット信号Nを形成する際にはsinα及びcosαの値を使用するため、sinα及びcosαの値をテーブル等に記録しておくことが必要であるが、角度α=0°〜360°全範囲におけるsinα及びcosαの値をテーブルに記録しておく必要はない。
【0009】
図2(A)は横軸に角度α、縦軸にsinαの値を示したグラフであり、図2(B)は横軸に角度α、縦軸にcosαの値を示したグラフである。第2象限(α=90°〜180°)の正弦波は第1象限(α=0°〜90°)の余弦波と同一の波形をしており、第3象限(α=180°〜270°)の正弦波は第1象限の正弦波の符号を逆にした波形をしており、第4象限(α=270°〜360°)の正弦波は第1象限の余弦波の符号を逆にした波形をしている。第2象限の余弦波は第1象限の正弦波の符号を逆にした波形をしており、第3象限の余弦波は第1象限の余弦波の符号を逆にした波形をしており、第4象限の余弦波は第1象限の正弦波と同一の波形をしている。第1象限の正弦値及び余弦値を用いれば、第2〜4象限の正弦値及び余弦値を求めることができる。
【0010】
図3(A)は、第2象限に属する角度αのsinα及びcosαの値を第1象限に属する角度θのsinθ及びcosθの値から求める方法を説明するための図である。角度αは0°〜360°の値を取る角度であり、角度θは0°〜90°の値を取る角度であるものとする。α=90°+θ(θ=0°〜90°)と置くとsinαは次のように変形することができる。
【0011】
sinα=sin(90°+θ)=a/c=cosθ ・・・(1E)
cosα=cos(90°+θ)=−b/c=−sinθ ・・・(1F)
よって、入力角度αが90°〜180°の値を取る場合でも、第1象限に属する角度θを用いた式に変換することができる。
【0012】
図3(B)は、第3象限に属する角度αのsinα及びcosαの値を第1象限に属する角度θのsinθ及びcosθの値から求める方法を説明するための図である。α=180°+θ(θ=0°〜90°)と置くとsinαは次のように変形することができる。
【0013】
sinα=sin(180°+θ)=−b/c=−sinθ ・・・(1G)
cosα=cos(180°+θ)=−a/c=−cosθ ・・・(1H)
よって、入力角度αが180°〜270°の値を取る場合でも、第1象限に属する角度θを用いた式に変換することができる。
【0014】
図3(C)は、第4象限に属する角度αのsinα及びcosαの値を第1象限に属する角度θのsinθ及びcosθの値から求める方法を説明するための図である。α=270°+θ(θ=0°〜90°)と置くとsinαは次のように変形することができる。
【0015】
sinα=sin(270°+θ)=−a/c=−cosθ ・・・(1I)
cosα=cos(270°+θ)=b/c=sinθ ・・・(1J)
よって、入力角度αが270°〜360°の値を取る場合でも、第1象限に属する角度θを用いた式に変換することができる。
【0016】
このように、第1象限の角度における正弦値及び余弦値から、360°全範囲の正弦値及び余弦値を求めることができる。以下、図2(A)のΔα(α=45°〜90°)の範囲の正弦値のみを用いて360°全範囲の正弦値及び余弦値を求める方法を説明する。
【0017】
以下の説明において、次の三角関数の公式を利用する。
【0018】

Figure 2004297389
まず、角度θがθ=0°〜45°の場合について説明する。
【0019】
角度θに対する余弦値は式(D)を用いて次のように求めることができる。
【0020】
cosθ=sin(90°−θ)
θ=90°−θとすれば、
cosθ=sinθ ・・・(1A)
となる。
【0021】
一方、角度θに対する正弦値については式(A)を用いることにより次のように変形できる。
【0022】
sinθ=√2sin(θ+45°)−cosθ
これに式(1A)を代入すると次のように変形できる。
【0023】
sinθ=√2sin(θ+45°)−sinθ
θ=θ+45°とすれば、
sinθ=√2sinθ−sinθ ・・・(1B)
となる。
【0024】
θ=0°〜45°なので、θ=90°−θ及びθ=θ+45°は共に45°〜90°の範囲の角度となる。θ=0°〜45°の正弦値及び余弦値が45°〜90°の正弦値から求まる。
【0025】
次に、角度θ=45°〜90°の場合について説明する。
【0026】
角度が45°〜90°の範囲の正弦値は分かっているから、θ=θとすれば、次のように直接求めることができる。
【0027】
sinθ=sinθ ・・・(1C)
一方、角度θに対する余弦値は式(A)を用いることにより次のように変形することができる。
【0028】
cosθ=√2cos(θ−45°)−sinθ
ここで、更に式(D)を用いると次のように変形することができる。
【0029】
Figure 2004297389
となる。
【0030】
θ=45°〜90°なのでθ=θ及びθ=135°−θは共に45°〜90°の範囲の角度となる。θ=45°〜90°の正弦値及び余弦値が45°〜90°の正弦値から求まる。
【0031】
入力角度が90°〜360°の範囲の角度αを取る場合については、式(1E)〜(1J)を用いて角度αを第1象限に属する角度θに変換すれば、式(1A)〜(1D)より正弦値及び余弦値を求めることができる。
【0032】
図4は、横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=90°−θ及びθ=θ+45°、角度θ=45°〜90°の場合のθ=θ及びθ=135°−θのグラフを示した図である。
【0033】
角度θ=0°〜45°の範囲において、θは90°から45°まで直線的に減少し、θは45°から90°まで直線的に増加する。θとθは角度θ=22.5°、角度θ=θ=67.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθ(=67.5°〜90°)の範囲に属すれば他方はΔ
θ(45°〜67.5°)の範囲に属する。
【0034】
角度θ=45°〜90°の範囲において、θは90°から45°まで直線的に減少し、θは45°から90°まで直線的に増加する。θとθは角度θ=67.5°、角度θ=θ=67.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθの範囲に属すれば他方はΔθの範囲に属する。
次に本発明の実施例による回路構成について説明する。
【0035】
図5(A)は、入力角度αに対するsinα及びcosαを求める回路のブロック図である。入力角度αは、入力端子I21から角度α変換回路2に入力される。角度α変換回路2は、入力角度αを第1象限に属する角度θに変換して三角関数演算回路3に出力すると共に、入力角度αがどの象限に属する角度であるかを示す制御信号CTL1を三角関数・符号変換回路4に、角度θが第1象限内のどの角度領域に属するかを示す制御信号CTL2を三角関数演算回路3に出力する。
【0036】
三角関数演算回路3は、角度θの正弦値及び余弦値を演算して三角関数・符号変換回路4に出力する。
【0037】
三角関数・符号変換回路4は、角度θの正弦値及び余弦値を入力角度αの正弦値及び余弦値に変換して出力端子O41及びO42からそれぞれ出力する。
【0038】
図5(B)は、角度α変換回路2(図5(A))の構成を示した等価回路図である。入力角度αが、入力端子I21から角度α分類器21に入力される。角度α分類器21は角度αが第1〜4象限のいずれに属するかを判別し、第1象限の角度α、第2象限の角度α、第3象限の角度α、第4象限の角度αに分類して出力すると共に、象限を表わす制御信号CTL1を三角関数・符号変換回路4(図5(A))に出力する。制御信号CTL1は、象限に応じてCTL1a、CTL1b、CTL1c、CTL1dのいずれかとなる。
【0039】
入力角度αが、第1象限の角度αの場合にはそのままスルーで、第2象限の角度αの場合には加算器A1で(−90°)が加算され第1象限の角度θ(=α−90°)に変換されて、第3象限の角度αの場合には加算器A2で(−180°)が加算され第1象限の角度θ(=α−180°)に変換されて、第4象限の角度αの場合には加算器A3で(−270°)が加算され第1象限の角度θ(=α−270°)に変換されて、それぞれ制御信号発生器22に接続される。
【0040】
制御信号発生器22は、角度θが0°〜22.5°、22.5°〜45°、45°〜67.5°、67.5°〜90°のいずれの領域に属するかを判別し、角度範囲を示す制御信号CTL2を出力すると共に、角度θをスルーで出力端子O21から出力し、三角関数演算回路3(図5(A))に供給する。
【0041】
角度θが0°〜22.5°、22.5°〜45°、45°〜67.5°、67.5°〜90°に応じて制御信号CTL2は、CTL2a、CTL2b、CTL2c、CTL2dと変化する。
【0042】
図6(A)は、三角関数演算回路3(図5(A))の構成を示す等価回路図である。
【0043】
入力端子I31から角度θは三角関数演算回路3に供給される。セレクタSa、Sb、Sc、Sd、Se、Sf、Sg、Sh、Siは制御信号CTL2によって制御される。
【0044】
セレクタSaの一方の入力端子Sa1には角度θが直接供給されると共に、他方の入力端子Sa2には加算器A4で角度θに45°が加算された(θ+45°)が供給される。セレクタSaは入力端子Sa1とSa2のいずれか一方を選択する。
【0045】
セレクタSb及びScの一方の入力端子Sb1及びSc1にはセレクタSaからの出力(式(1B)又は式(1C)、(1D)のθ(=θ+45°)又はθ(=θ)に相当する)が直接供給されると共に、セレクタSb及びScの他方の入力端子Sb2及びSc2にはセレクタSaからの出力が加算器A5でリバースアドレッシングにより符号反転された後、加算器A5で135°が加算された値(式(1A)、(1B)又は(1D)のθ(=90°−θ)又はθ(=135°−θ)に相当する)が供給される。セレクタSb及びScは入力端子Sb1とSb2、入力端子Sc1とSc2のいずれか一方を選択する。
【0046】
テーブル1(T1a)にはセレクタSbから45°〜67.5°の範囲に属する値が供給される。テーブル1(T1a)には45°〜67.5°の範囲の正弦値が記録されており、入力値に対応する正弦値(sinθ〜sinθ)を出力する。
【0047】
テーブル2(T2a)にはセレクタScから67.5°〜90°の範囲に属する値が供給される。テーブル2(T2a)には67.5°〜90°の範囲の正弦値が記録されており、入力値に対応する正弦値(sinθ〜sinθ)を出力する。
【0048】
セレクタSd及びSeの一方の入力端子Sd1及びSe1には、テーブル2(T2a)からの出力が供給され、セレクタSd及びSeの他方の入力端子Sd2及びSe2には、テーブル1(T1a)からの出力が供給される。セレクタSd及びSeは入力端子Sd1とSd2、入力端子Se1とSe2のいずれか一方を選択する。
【0049】
セレクタSfの一方の入力端子Sf1にはテーブル1(T1a)からの出力が直接供給され、セレクタSgの一方の入力端子Sg1にはテーブル2(T2a)からの出力が直接供給されると共に、セレクタSf及びSgの他方の入力端子Sf2及びSg2には、セレクタSdの出力に乗算器M1で√2が乗算された後、加算器A6でセレクタSeの出力がリバースアドレッシングにより符号反転された値が加算されて((√2sinθ−sinθ)又は(√2sinθ−sinθ))が供給される。セレクタSf及びSgは入力端子Sf1とSf2、入力端子Sg1とSg2のいずれか一方を選択する。
【0050】
セレクタSh及びSiの一方の入力端子Sh1及びSi1にはセレクタSfからの出力が直接供給されると共に、セレクタSh及びSiの他方の入力端子Sh2及びSi2にはセレクタSgからの出力が直接供給される。セレクタSh及びSiは入力端子Sh1とSh2、入力端子Si1とSi2のいずれか一方を選択する。
【0051】
セレクタShからの出力は出力端子O31に供給され、セレクタSiからの出力は出力端子O32に供給される。
【0052】
図6(B)は、三角関数演算回路3(図6(A))を構成するセレクタSa〜Siが、2つの入力端子のどちらを選択するかを制御する制御信号CTL2(CTL2a、CTL2b、CTL2c、CTL2d)をまとめた図表である。
【0053】
角度θが、0°〜22.5°の領域に属する場合には制御信号CTL2aが、22.5°〜45°の領域に属する場合には制御信号CTL2bが、45°〜67.5°の領域に属する場合には制御信号CTL2cが、67.5°〜90°の領域に属する場合には制御信号CTL2dが、角度α変換回路2の制御信号発生器22(図5(B))から三角関数演算回路3にそれぞれ供給される。
【0054】
図7(A)は角度θが0°〜22.5°であり三角関数演算回路3(図6(A))が制御信号CTL2aで制御される場合の等価回路図である。
【0055】
角度θは、加算器A4で45°が加算されて(θ+45°)(式(1B)のθに相当する)が出力される。(θ+45°)は、テーブル1(T1a)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて135°−(θ+45°)=(90°−θ)(式(1A)、(1B)のθに相当する)がテーブル2(T2a)に供給される。
【0056】
テーブル1(T1a)ではsin(θ+45°)が求められ、乗算器M1に出力される。テーブル2(T2a)ではsin(90°−θ)が求められ、出力端子O32に供給されると共にリバースアドレッシングにより符号反転されて加算器A6に供給される。乗算器M1でsin(θ+45°)に√2が乗算された後、加算器A6で−sin(90°−θ)が加算されて、出力端子O31から√2sin(θ+45°)−sin(90°−θ)が供給される。
【0057】
図7(B)は角度θが22.5°〜45°であり三角関数演算回路3(図6(A))が制御信号CTL2bで制御される場合の等価回路図である。
【0058】
角度θは、加算器A4で45°が加算されて(θ+45°)(式(1B)のθに相当する)が出力される。(θ+45°)は、テーブル2(T2a)に供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて135°−(θ+45°)=(90°−θ)(式(1A)、(1B)のθに相当する)がテーブル1(T1a)に供給される。
【0059】
テーブル1(T1a)ではsin(90°−θ)が求められ、出力端子O32に直接出力されると共に、リバースアドレッシングにより符号反転されて加算器A6に供給される。
【0060】
テーブル2(T2a)ではsin(θ+45°)が求められ、乗算器M1に出力される。乗算器M1でsin(θ+45°)に√2が乗算された後、加算器A6で−sin(90°−θ)が加算されて、出力端子O31から√2sin(θ+45°)−sin(90°−θ)が供給される。
【0061】
図7(C)は角度θが45°〜67.5°であり三角関数演算回路3(図6(A))が制御信号CTL2cで制御される場合の等価回路図である。
【0062】
角度θ(式(1C)、(1D)のθに相当する)は、テーブル1(T1a)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて(135°−θ)(式(1D)のθに相当する)がテーブル2(T2a)に供給される。
【0063】
テーブル1(T1a)ではsinθが求められ、出力端子O31に直接出力されると共に、リバースアドレッシングにより符号反転されて加算器A6に供給される。
【0064】
テーブル2(T2a)ではsin(135°−θ)が求められ、乗算器M1に出力される。
【0065】
乗算器M1ではsin(135°−θ)に√2が乗算された後、加算器A6で−sinθが加算されて、出力端子O32から√2sin(135°−θ)−sinθが供給される。
【0066】
図7(D)は角度θが67.5°〜90°であり三角関数演算回路3(図6(A))が制御信号CTL2dで制御される場合の等価回路図である。
【0067】
角度θ(式(1C)、(1D)のθに相当する)は、テーブル2(T2a)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて(135°−θ)(式(1D)のθに相当する)がテーブル1(T1a)に供給される。
【0068】
テーブル1(T1a)ではsin(135°−θ)が求められ、乗算器M1に供給される。
【0069】
テーブル2(T2a)ではsinθが求められ、出力端子O31に直接供給されると共に、リバースアドレッシングにより符号反転されて加算器A6に供給される。
【0070】
乗算器M1では、sin(135°−θ)に√2が乗算された後、加算器A6で−sinθが加算されて、出力端子O32から√2sin(135°−θ)−sinθが供給される。
【0071】
図8(A)は、角度θに対してθ、θ、θ、θの値がどのように変化するかをまとめた図表である。θとθ、θとθは一方の値が45°〜67.5°の値を取れば、他方は67.5°〜90°の値を取り、67.5°を除けば互いに同一の値を取ることはない。45°〜90°の範囲の正弦値を1つのテーブルに記録すると、式(1A)、(1B)又は式(1C)、(1D)にはθ、θ又はθ、θが含まれているため、角度θの正弦値及び余弦値を求める際に2回テーブルを参照する必要がある。45°〜67.5°と67.5°〜90°の範囲で正弦値を記録するテーブルを2分割することにより、角度θの正弦値及び余弦値を同時に求めることができる。
【0072】
図8(B)は、角度θの正弦値及び余弦値を求めるためにθ、θ、θ、θのいずれの値を使用するかを式(1A)〜(1D)を基にしてまとめた図表である。表中にリバースθと記載されているのは、θ(=90°−θ)の位相が角度θの増加に伴い減少するのに対し、θ(=θ+45°)の位相が角度θの増加に伴い増加し、θとθの位相が互いに逆方向に進行することを意味する。リバースθ及び後に説明するリバースθ、θ(図13(B))、リバースθ、θ(図17(B))、リバースθ、θ(図21(B))についても同様である。
【0073】
sinθの振幅は0から1の範囲を取り、2進数を用いると、次式のように表現することができる。
Figure 2004297389
第1の実施例ではテーブルに45°〜90°の範囲の正弦値(1/√2(約0.7)から1)を記録する。式(1)のaは必ず1を取るためaを記録するビットを省略することができ、テーブルに必要な記憶容量を1ビット削減することが可能である(|sinθ|=1は2進数の0.1111・・・で近似するものとする)。
【0074】
図9(A)は、三角関数・符号変換回路4(図5(A))の構成を示した等価回路図である。
【0075】
セレクタSj及びSkの一方の入力端子Sj1及びSk1には、入力端子I41からsinθが供給される。セレクタSj及びSkの他方の入力端子Sj2及びSk2には、入力端子I42からcosθが供給される。セレクタSj及びSkは入力端子Sj1とSj2、入力端子Sk1とSk2のいずれか一方の端子を選択する。
【0076】
セレクタSlの一方の入力端子Sl1にはセレクタSjからの出力が直接供給されると共に、他方の入力端子Sl2にはセレクタSjからの出力がインバータ41で符号反転されて供給される。
【0077】
セレクタSmの一方の入力端子Sm1にはセレクタSkからの出力が直接供給されると共に、他方の入力端子Sm2にはセレクタSkからの出力がインバータ42で符号反転されて供給される。
【0078】
セレクタSl及びSmは入力端子Sl1とSl2、入力端子Sm1とSm2のいずれか一方の端子を選択する。
【0079】
セレクタSlの出力は出力端子O41に供給され、セレクタSmの出力は出力端子O42に供給される。
【0080】
図9(B)は、三角関数・符号変換回路4(図9(A))を構成するセレクタSj〜Smが、2つの入力端子のどちらを選択するかを制御する制御信号CTL1(CTL1a、CTL1b、CTL1c、CTL1d)をまとめた図表である。
【0081】
入力角度αがα(=0°〜90°)の場合は制御信号CTL1aが、入力角度αがα(=90°〜180°)の場合は制御信号CTL1bが、入力角度αがα(=180°〜270°)の場合は制御信号CTL1cが、入力角度αがα(=270°〜360°)の場合は制御信号CTL1dが、三角関数・符号変換回路4にそれぞれ供給される。
【0082】
出力端子O41及びO42(図9(A))からはsinα及びcosαの値として、入力角度αがαの場合にはsinα=sinθ及びcosα=cosθが、αの場合にはsinα=cosθ及びcosα=−sinθが、αの場合にはsinα=−sinθ及びcosα=−cosθが、αの場合にはsinα=−cosθ及びcosα=sinθが、それぞれ出力される。
【0083】
以上、第1の実施例について説明した。
【0084】
次に第2の実施例を説明する。第2の実施例においては、図2(B)のΔα(α=0°〜45°)の範囲の余弦値のみを用いて360°全範囲の正弦値及び余弦値を求める。
【0085】
まず、角度θがθ=0°〜45°の場合について説明する。
【0086】
角度が0°〜45°の範囲の余弦値は分かっているから、θ=θとすれば、次のように直接求めることができる。
【0087】
cosθ=cosθ ・・・(2A)
一方、角度θに対する正弦値は式(A)を用いることにより次のように変形することができる。
【0088】
sinθ=√2cos(θ−45°)−cosθ
ここで、更に式(F)を用いると次のように変形することができる。
【0089】
sinθ=√2cos(45°−θ)−cosθ
θ=45°−θとすれば、
sinθ=√2cosθ−cosθ ・・・(2B)
となる。
【0090】
θ=0°〜45°なので、θ=θ及びθ=45°−θは共に0°〜45°の範囲の角度となる。θ=0°〜45°の正弦値及び余弦値が0°〜45°の余弦値から求まる。
【0091】
次に、角度θ=45°〜90°の場合について説明する。
【0092】
角度θに対する正弦値は式(E)を用いて次のように求めることができる。
【0093】
sinθ=cos(90°−θ)
θ=90°−θとすれば、
sinθ=cosθ ・・・(2C)
となる。
【0094】
一方、角度θに対する余弦値については式(A)を用いることにより次のように変形できる。
【0095】
cosθ=√2cos(θ−45°)−sinθ
これに式(2C)を代入すると次のように変形できる。
【0096】
cosθ=√2cos(θ−45°)−cosθ
θ=θ−45°とすれば、
cosθ=√2cosθ−cosθ ・・・(2D)
θ=45°〜90°なのでθ=90°−θ及びθ=θ−45°は共に0°〜45°の範囲の角度となる。θ=45°〜90°の正弦値及び余弦値が0°〜45°の余弦値から求まる。
【0097】
入力角度が90°〜360°の範囲の角度αを取る場合については、式(1E)〜(1J)を用いて角度αを第1象限に属する角度θに変換すれば、式(2A)〜(2D)より正弦値及び余弦値を求めることができる。
【0098】
図10は、横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=θ及びθ=45°−θ、角度θ=45°〜90°の場合のθ=90°−θ及びθ=θ−45°のグラフを示した図である。
【0099】
角度θ=0°〜45°の範囲において、θは45°から0°まで直線的に減少し、θは0°から45°まで直線的に増加する。θとθは角度θ=22.5°、角度θ=θ=22.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθ(=22.5°〜45°)の範囲に属すれば他方はΔθ
(=0°〜22.5°)の範囲に属する。
【0100】
角度θ=45°〜90°の範囲において、θは45°から0°まで直線的に減少し、θは0°から45°まで直線的に増加する。θとθは角度θ=67.5°、角度θ=θ=22.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθの範囲に属すれば他方はΔθの範囲に属する。
次に本発明の第2の実施例による回路構成について説明する。回路全体の構成は図5(A)に示した第1の実施例の回路と同一である。
【0101】
角度α変換回路2(図5(B))及び三角関数・角度変換回路4(図9(A))の構成は第1の実施例と同一であるので説明を省略する。
【0102】
図11(A)は、第2の実施例における三角関数演算回路3(図5(A))の構成を示す等価回路図である。加算器A4〜A6、乗算器M1、セレクタSa〜Siそれぞれの回路構成や、加算器A5ではセレクタSaの出力がリバースアドレッシングにより符号反転されて入力される点、加算器A6ではセレクタSeの出力がリバースアドレッシングにより符号反転されて入力される点、乗算器M1ではセレクタSdの出力に√2が乗算される点については第1の実施例における三角関数演算回路(図6(A))と同一である。
【0103】
第1の実施例では式(1A)〜(1D)を用いて正弦値及び余弦値を算出したが、第2の実施例では式(2A)〜(2D)を用いて正弦値及び余弦値を算出するため、次の点で三角関数演算回路3の構成が相違する。
【0104】
第1の実施例における三角関数演算回路(図6(A))では、加算器A4の一方の端子には角度θが入力され、他方の端子には(+45°)が入力されていた。また、加算器A5の一方の端子にはセレクタSaの出力がリバースアドレッシングにより符号反転されて入力され、他方の端子には(+135°)が入力されていた。また、テーブル1及び2には45°〜90°の正弦値が記録されていた。
【0105】
第2の実施例における三角関数演算回路(図11(A))では加算器A4の他方の端子には(−45°)が入力され、加算器A5の他方の端子には(+45°)が入力され、テーブル1及び2には0°〜45°の余弦値が記録される。
【0106】
図11(B)は、三角関数演算回路3(図11(A))を構成するセレクタSa〜Siが、2つの入力端子のどちらを選択するかを制御する制御信号CTL2(CTL2a、CTL2b、CTL2c、CTL2d)をまとめた図表である。
【0107】
角度θが、0°〜22.5°の領域に属する場合には制御信号CTL2aが、22.5°〜45°の領域に属する場合には制御信号CTL2bが、45°〜67.5°の領域に属する場合には制御信号CTL2cが、67.5°〜90°の領域に属する場合には制御信号CTL2dが、角度α変換回路2の制御信号発生器22(図5(B))から三角関数演算回路3にそれぞれ供給される。
【0108】
図12(A)は角度θが0°〜22.5°であり三角関数演算回路3(図11(A))が制御信号CTL2aで制御される場合の等価回路図である。
【0109】
角度θ(式(2A)、(2B)のθに相当する)は、テーブル1(T1b)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて(45°−θ)(式(2B)のθに相当する)がテーブル2(T2b)に供給される。
【0110】
テーブル1(T1b)ではcosθが求められ、出力端子O32に供給されると共にリバースアドレッシングにより符号反転されて加算器A6に供給される。
【0111】
テーブル2(T2b)ではcos(45°−θ)が求められ、乗算器M1に出力される。
【0112】
乗算器M1でcos(45°−θ)に√2が乗算された後、加算器A6で−cosθが加算されて、出力端子O31から√2cos(45°−θ)−cosθが供給される。
【0113】
図12(B)は角度θが22.5°〜45°であり三角関数演算回路3(図11(A))が制御信号CTL2bで制御される場合の等価回路図である。
【0114】
角度θ(式(2A)、(2B)のθに相当する)は、テーブル2(T2b)に供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて(45°−θ)(式(2B)のθに相当する)がテーブル1(T1b)に供給される。
【0115】
テーブル1(T1b)ではcos(45°−θ)が求められ、乗算器M1に出力される。
【0116】
テーブル2(T2b)ではcosθが求められ、出力端子O32に直接出力されると共に、リバースアドレッシングにより符号反転されて加算器A6に供給される。
【0117】
乗算器M1でcos(45°−θ)に√2が乗算された後、加算器A6で−cosθが加算されて、出力端子O31から√2cos(45°−θ)−cosθが供給される。
【0118】
図12(C)は角度θが45°〜67.5°であり三角関数演算回路3(図11(A))が制御信号CTL2cで制御される場合の等価回路図である。
【0119】
角度θは、加算器A4で(−45°)が加算されて(θ−45°)(式(2D)のθに相当する)が出力される。(θ−45°)は、テーブル1(T1b)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて45°−(θ−45°)=(90°−θ)(式(2C)、(2D)のθに相当する)がテーブル2(T2b)に供給される。
【0120】
テーブル1(T1b)ではcos(θ−45°)が求められ、乗算器M1に出力される。
【0121】
テーブル2(T2b)ではcos(90°−θ)が求められ、出力端子O31に直接出力されると共に、リバースアドレッシングにより符号反転されて加算器A6に供給される。
【0122】
乗算器M1ではcos(θ−45°)に√2が乗算された後、加算器A6で−cos(90°−θ)が加算されて、出力端子O32から√2cos(θ−45°)−cos(90°−θ)が供給される。
【0123】
図12(D)は角度θが67.5°〜90°であり三角関数演算回路3(図11(A))が制御信号CTL2dで制御される場合の等価回路図である。
【0124】
角度θは、加算器A4で(−45°)が加算されて(θ−45°)(式(2D)のθに相当する)が出力される。(θ−45°)は、テーブル2(T2b)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて(90°−θ)(式(2C)、(2D)のθに相当する)がテーブル1(T1b)に供給される。
【0125】
テーブル1(T1b)ではcos(90°−θ)が求められ、出力端子O31に直接供給されると共に、リバースアドレッシングにより符号反転されて加算器A6に供給される。
【0126】
テーブル2(T2b)ではcos(θ−45°)が求められ、乗算器M1に供給される。
【0127】
乗算器M1では、cos(θ−45°)に√2が乗算された後、加算器A6で−cos(90°−θ)が加算されて、出力端子O32から√2cos(θ−45°)−cos(90°−θ)が供給される。
【0128】
図13(A)は、角度θに対してθ、θ、θ、θの値がどのように変化するかをまとめた図表である。θとθ、θとθは一方の値が0°〜22.5°の値を取れば、他方は22.5°〜45°の値を取り、22.5°を除けば互いに同一の値を取ることはない。0°〜45°の範囲の余弦値を1つのテーブルに記録すると、式(2A)、(2B)又は式(2C)、(2D)にはθ、θ又はθ、θが含まれているため、角度θの正弦値及び余弦値を求める際に2回テーブルを参照する必要がある。0°〜22.5°と22.5°〜45°の範囲で余弦値を記録するテーブルを2分割することにより、角度θの正弦値及び余弦値を同時に求めることができる。
【0129】
図13(B)は、角度θの正弦値及び余弦値を求めるためにθ、θ、θ、θのいずれの値を使用するかを式(2A)〜(2D)を基にしてまとめた図表である。
【0130】
cosθの振幅は0から1の範囲を取り、2進数を用いると、次式のように表現することができる。
Figure 2004297389
第2の実施例ではテーブルに0°〜45°の範囲の余弦値(1から1/√2(約0.7))を記録する。式(2)のbは必ず1を取るためbを記録するビットを省略することができ、テーブルに必要な記憶容量を1ビット削減することが可能である(|cosθ|=1は2進数の0.1111・・・で近似するものとする)。
【0131】
以上、第2の実施例について説明した。
【0132】
次に第3の実施例を説明する。第3の実施例においては、図2(A)のΔα(α=0°〜45°)の範囲の正弦値のみを用いて360°全範囲の正弦値及び余弦値を求める。
【0133】
まず、角度θがθ=0°〜45°の場合について説明する。
【0134】
角度が0°〜45°の範囲の正弦値は分かっているから、θ=θとすれば、次のように直接求めることができる。
【0135】
sinθ=sinθ ・・・(3A)
一方、角度θに対する余弦値は式(C)を用いることにより次のように変形することができる。
【0136】
cosθ=√2cos(θ+45°)+sinθ
ここで、更に式(D)を用いると次のように変形することができる。
【0137】
Figure 2004297389
となる。
【0138】
θ=0°〜45°なので、θ=θ及びθ=45°−θは共に0°〜45°の範囲の角度となる。θ=0°〜45°の正弦値及び余弦値が0°〜45°の正弦値から求まる。
【0139】
次に、角度θ=45°〜90°の場合について説明する。
【0140】
角度θに対する余弦値は式(D)を用いて次のように求めることができる。
【0141】
cosθ=sin(90°−θ)
θ=90°−θとすれば、
cosθ=sinθ ・・・(3C)
一方、角度θに対する正弦値については式(C)を用いることにより次のように変形できる。
【0142】
sinθ=−√2cos(θ+45°)+cosθ
ここで、更に式(D)を用いると次のように変形することができる。
【0143】
Figure 2004297389
ここで、更に式(G)を用いると次のように変形することができる。
【0144】
sinθ=√2sin(θ−45°)+cosθ
θ=θ−45°とすれば、
sinθ=√2sinθ+sinθ ・・・(3D)
θ=45°〜90°なのでθ=90°−θ及びθ=θ−45°は共に0°〜45°の範囲の角度となる。θ=45°〜90°の正弦値及び余弦値が0°〜45°の正弦値から求まる。
【0145】
入力角度が90°〜360°の範囲の角度αを取る場合については、式(1E)〜(1J)を用いて角度αを第1象限に属する角度θに変換すれば、式(3A)〜(3D)より正弦値及び余弦値を求めることができる。
【0146】
図14は、横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=θ及びθ=45°−θ、角度θ=45°〜90°の場合のθ=θ−45°及びθ=90°−θのグラフを示した図である。
【0147】
角度θ=0°〜45°の範囲において、θは45°から0°まで直線的に減少し、θは0°から45°まで直線的に増加する。θとθは角度θ=22.5°、角度θ=θ=22.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθ(=22.5°〜45°)の範囲に属すれば他方はΔθ
(=0°〜22.5°)の範囲に属する。
【0148】
角度θ=45°〜90°の範囲において、θは45°から0°まで直線的に減少し、θは0°から45°まで直線的に増加する。θとθは角度θ=67.5°、角度θ=θ=22.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθの範囲に属すれば他方はΔθの範囲に属する。
次に本発明の第3の実施例による回路構成について説明する。回路全体の構成は図5(A)に示した第1の実施例の回路と同一である。
【0149】
角度α変換回路2(図5(B))及び三角関数・角度変換回路4(図9(A))の構成は第1の実施例と同一であるので説明を省略する。
【0150】
図15(A)は、第3の実施例における三角関数演算回路3(図5(A))の構成を示す等価回路図である。加算器A4〜A6、乗算器M1、セレクタSa〜Siそれぞれの回路構成や、加算器A5ではセレクタSaの出力がリバースアドレッシングにより符号反転されて入力される点、乗算器M1ではセレクタSdの出力に√2が乗算される点については第1の実施例における三角関数演算回路(図6(A))と同一である。
【0151】
第1の実施例では式(1A)〜(1D)を用いて正弦値及び余弦値を算出したが、第3の実施例では式(3A)〜(3D)を用いて正弦値及び余弦値を算出するため、次の点で三角関数演算回路3の構成が相違する。
【0152】
第1の実施例における三角関数演算回路(図6(A))では、加算器A4の一方の端子には角度θが入力され、他方の端子には(+45°)が入力されていた。また、加算器A5の一方の端子にはセレクタSaの出力がリバースアドレッシングにより符号反転されて入力され、他方の端子には(+135°)が入力されていた。また、加算器A6の一方の端子には乗算器M1の出力が入力され、他方の端子にはセレクタSeの出力がリバースアドレッシングにより符号反転されて入力されていた。また、テーブル1及び2には45°〜90°の正弦値が記録されていた。
【0153】
第3の実施例における三角関数演算回路(図15(A))では加算器A4の他方の端子には(−45°)が入力され、加算器A5の他方の端子には(+45°)が入力され、加算器A6の他方の端子にはセレクタSeの出力が直接入力され、テーブル1及び2には0°〜45°の正弦値が記録される。
【0154】
図15(B)は、三角関数演算回路3(図15(A))を構成するセレクタSa〜Siが、2つの入力端子のどちらを選択するかを制御する制御信号CTL2(CTL2a、CTL2b、CTL2c、CTL2d)をまとめた図表である。
【0155】
角度θが、0°〜22.5°の領域に属する場合には制御信号CTL2aが、22.5°〜45°の領域に属する場合には制御信号CTL2bが、45°〜67.5°の領域に属する場合には制御信号CTL2cが、67.5°〜90°の領域に属する場合には制御信号CTL2dが、角度α変換回路2の制御信号発生器22(図5(B))から三角関数演算回路3にそれぞれ供給される。
【0156】
図16(A)は角度θが0°〜22.5°であり三角関数演算回路3(図15(A))が制御信号CTL2aで制御される場合の等価回路図である。
【0157】
角度θ(式(3A)、(3B)のθに相当する)は、テーブル1(T1c)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて(45°−θ)(式(3B)のθに相当する)がテーブル2(T2c)に供給される。
【0158】
テーブル1(T1c)ではsinθが求められ、出力端子O31に供給されると共に加算器A6に供給される。
【0159】
テーブル2(T2c)ではsin(45°−θ)が求められ、乗算器M1に出力される。
【0160】
乗算器M1でsin(45°−θ)に√2が乗算された後、加算器A6でsinθが加算されて、出力端子O32から√2sin(45°−θ)+sinθが供給される。
【0161】
図16(B)は角度θが22.5°〜45°であり三角関数演算回路3(図15(A))が制御信号CTL2bで制御される場合の等価回路図である。
【0162】
角度θ(式(3A)、(3B)のθに相当する)は、テーブル2(T2c)に供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて(45°−θ)(式(3B)のθに相当する)がテーブル1(T1c)に供給される。
【0163】
テーブル1(T1c)ではsin(45°−θ)が求められ、乗算器M1に出力される。
【0164】
テーブル2(T2c)ではsinθが求められ、出力端子O31に直接出力されると共に、加算器A6に供給される。
【0165】
乗算器M1でsin(45°−θ)に√2が乗算された後、加算器A6でsinθが加算されて、出力端子O32から√2sin(45°−θ)+sinθが供給される。
【0166】
図16(C)は角度θが45°〜67.5°であり三角関数演算回路3(図15(A))が制御信号CTL2cで制御される場合の等価回路図である。
【0167】
角度θは、加算器A4で(−45°)が加算されて(θ−45°)(式(3D)のθに相当する)が出力される。(θ−45°)は、テーブル1(T1c)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて45°−(θ−45°)=(90°−θ)(式(3C)、(3D)のθに相当する)がテーブル2(T2c)に供給される。
【0168】
テーブル1(T1c)ではsin(θ−45°)が求められ、乗算器M1に出力される。
【0169】
テーブル2(T2c)ではsin(90°−θ)が求められ、出力端子O32に直接出力されると共に、加算器A6に供給される。
【0170】
乗算器M1ではsin(θ−45°)に√2が乗算された後、加算器A6でsin(90°−θ)が加算されて、出力端子O31から√2sin(θ−45°)+sin(90°−θ)が供給される。
【0171】
図16(D)は角度θが67.5°〜90°であり三角関数演算回路3(図15(A))が制御信号CTL2dで制御される場合の等価回路図である。
【0172】
角度θは、加算器A4で(−45°)が加算されて(θ−45°)(式(3D)のθに相当する)が出力される。(θ−45°)は、テーブル2(T2c)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、45°が加算されて(90°−θ)(式(3C)、(3D)のθに相当する)がテーブル1(T1c)に供給される。
【0173】
テーブル1(T1c)ではsin(90°−θ)が求められ、出力端子O32に直接供給されると共に、加算器A6に供給される。
【0174】
テーブル2(T2c)ではsin(θ−45°)が求められ、乗算器M1に供給される。
【0175】
乗算器M1では、sin(θ−45°)に√2が乗算された後、加算器A6でsin(90°−θ)が加算されて、出力端子O31から√2sin(θ−45°)+sin(90°−θ)が供給される。
【0176】
図17(A)は、角度θに対してθ、θ、θ、θの値がどのように変化するかをまとめた図表である。θとθ、θとθは一方の値が0°〜22.5°の値を取れば、他方は22.5°〜45°の値を取り、22.5°を除けば互いに同一の値を取ることはない。0°〜45°の範囲の正弦値を1つのテーブルに記録すると、式(3A)、(3B)又は式(3C)、(3D)にはθ、θ又はθ、θが含まれているため、角度θの正弦値及び余弦値を求める際に2回テーブルを参照する必要がある。0°〜22.5°と22.5°〜45°の範囲で余弦値を記録するテーブルを2分割することにより、角度θの正弦値及び余弦値を同時に求めることができる。
【0177】
図17(B)は、角度θの正弦値及び余弦値を求めるためにθ、θ、θ、θのいずれの値を使用するかを式(3A)〜(3D)を基にしてまとめた図表である。
【0178】
第3の実施例ではテーブルに0°〜45°の範囲の正弦値(0から1/√2(約0.7))を記録する。式(1)のaは0と1の両方の値を取り得るため、第1の実施例のようにテーブルに必要な記憶容量を1ビット削減するという効果を得ることはできない。
【0179】
以上、第3の実施例について説明した。
【0180】
次に第4の実施例を説明する。第4の実施例においては、図2(B)のΔα(α=45°〜90°)の範囲の余弦値のみを用いて360°全範囲の正弦値及び余弦値を求める。
【0181】
まず、角度θがθ=0°〜45°の場合について説明する。
【0182】
角度θに対する正弦値は式(E)を用いて次のように求めることができる。
【0183】
sinθ=cos(90°−θ)
θ=90°−θとすれば、
sinθ=cosθ ・・・(4A)
となる。
【0184】
一方、角度θに対する余弦値については式(C)を用いることにより次のように変形できる。
【0185】
cosθ=√2cos(θ+45°)+sinθ
これに式(4A)を代入すると次のように変形できる。
【0186】
cosθ=√2cos(θ+45°)+cosθ
θ=θ+45°とすれば、
cosθ=√2cosθ+cosθ ・・・(4B)
となる。
【0187】
θ=0°〜45°なので、θ=90°−θ及びθ=θ+45°は共に45°〜90°の範囲の角度となる。θ=0°〜45°の正弦値及び余弦値が45°〜90°の余弦値から求まる。
【0188】
次に、角度θ=45°〜90°の場合について説明する。
【0189】
角度が45°〜90°の範囲の余弦値は分かっているから、θ=θとすれば、次のように直接求めることができる。
【0190】
cosθ=cosθ ・・・(4C)
一方、角度θに対する正弦値は式(B)を用いることにより次のように変形することができる。
【0191】
sinθ=√2sin(θ−45°)+cosθ
ここで、更に式(E)を用いると次のように変形することができる。
【0192】
Figure 2004297389
θ=45°〜90°なのでθ=θ及びθ=135°−θは共に45°〜90°の範囲の角度となる。θ=45°〜90°の正弦値及び余弦値が45°〜90°の余弦値から求まる。
【0193】
入力角度が90°〜360°の範囲の角度αを取る場合については、式(1E)〜(1J)を用いて角度αを第1象限に属する角度θに変換すれば、式(4A)〜(4D)より正弦値及び余弦値を求めることができる。
【0194】
図18は、横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=θ+45°及びθ=90°−θ、角度θ=45°〜90°の場合のθ=θ及びθ=135°−θのグラフを示した図である。
【0195】
角度θ=0°〜45°の範囲において、θは90°から45°まで直線的に減少し、θは45°から90°まで直線的に増加する。θとθは角度θ=22.5°、角度θ=θ=67.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθ(=67.5°〜90°)の範囲に属すれば他方はΔ
θ(=45°〜67.5°)の範囲に属する。
【0196】
角度θ=45°〜90°の範囲において、θは90°から45°まで直線的に減少し、θは45°から90°まで直線的に増加する。θとθは角度θ=67.5°、角度θ=θ=67.5°の点で交差し、大小関係が逆転する。θとθは一方がΔθの範囲に属すれば他方はΔθの範囲に属する。
次に本発明の第4の実施例による回路構成について説明する。回路全体の構成は図5(A)に示した第1の実施例の回路と同一である。
【0197】
角度α変換回路2(図5(B))及び三角関数・角度変換回路4(図9(A))の構成は第1の実施例と同一であるので説明を省略する。
【0198】
図19(A)は、第4の実施例における三角関数演算回路3(図5(A))の構成を示す等価回路図である。加算器A4〜A6、乗算器M1、セレクタSa〜Siそれぞれの回路構成や、加算器A4の一方の端子には角度θが入力され他方の端子には(+45°)が入力される点、加算器A5の一方の端子にはセレクタSaの出力がリバースアドレッシングにより符号反転されて入力され他方の端子には(+135°)が入力される点、乗算器M1ではセレクタSdの出力に√2が乗算される点については第1の実施例における三角関数演算回路(図6(A))と同一である。
【0199】
第1の実施例では式(1A)〜(1D)を用いて正弦値及び余弦値を算出したが、第4の実施例では式(4A)〜(4D)を用いて正弦値及び余弦値を算出するため、次の点で三角関数演算回路3の構成が相違する。
【0200】
第1の実施例における三角関数演算回路(図6(A))では、加算器A6の一方の端子には乗算器M1の出力が入力され、他方の端子にはセレクタSeの出力がリバースアドレッシングにより符号反転されて入力されていた。また、テーブル1及び2には45°〜90°の正弦値が記録されていた。
【0201】
第4の実施例における三角関数演算回路(図19(A))では、加算器A6の他方の端子にはセレクタSeの出力が直接入力され、テーブル1及び2には45°〜90°の余弦値が記録される。
【0202】
図19(B)は、三角関数演算回路3(図19(A))を構成するセレクタSa〜Siが、2つの入力端子のどちらを選択するかを制御する制御信号CTL2(CTL2a、CTL2b、CTL2c、CTL2d)をまとめた図表である。
【0203】
角度θが、0°〜22.5°の領域に属する場合には制御信号CTL2aが、22.5°〜45°の領域に属する場合には制御信号CTL2bが、45°〜67.5°の領域に属する場合には制御信号CTL2cが、67.5°〜90°の領域に属する場合には制御信号CTL2dが、角度α変換回路2の制御信号発生器22(図5(B))から三角関数演算回路3にそれぞれ供給される。
【0204】
図20(A)は角度θが0°〜22.5°であり三角関数演算回路3(図19(A))が制御信号CTL2aで制御される場合の等価回路図である。
【0205】
角度θは、加算器A4で45°が加算されて(θ+45°)(式(4B)のθに相当する)が出力される。(θ+45°)は、テーブル1(T1d)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて135°−(θ+45°)=(90°−θ)(式(4A)、(4B)のθに相当する)がテーブル2(T2d)に供給される。
【0206】
テーブル1(T1d)ではcos(θ+45°)が求められ、乗算器M1に出力される。
【0207】
テーブル2(T2d)ではcos(90°−θ)が求められ、出力端子O31に供給されると共に加算器A6に供給される。
【0208】
乗算器M1でcos(θ+45°)に√2が乗算された後、加算器A6でcos(90°−θ)が加算されて、出力端子O32から√2cos(θ+45°)+cos(90°−θ)が供給される。
【0209】
図20(B)は角度θが22.5°〜45°であり三角関数演算回路3(図19(A))が制御信号CTL2bで制御される場合の等価回路図である。
【0210】
角度θは、加算器A4で45°が加算されて(θ+45°)(式(4B)のθに相当する)が出力される。(θ+45°)は、テーブル2(T2d)に供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて(90°−θ)(式(4A)、(4B)のθに相当する)がテーブル1(T1d)に供給される。
【0211】
テーブル1(T1d)ではcos(90°−θ)が求められ、出力端子O31に直接出力されると共に、加算器A6に供給される。
【0212】
テーブル2(T2d)ではcos(θ+45°)が求められ、乗算器M1に出力される。
【0213】
乗算器M1でcos(θ+45°)に√2が乗算された後、加算器A6でcos(90°−θ)が加算されて、出力端子O32から√2cos(θ+45°)+cos(90°−θ)が供給される。
【0214】
図20(C)は角度θが45°〜67.5°であり三角関数演算回路3(図19(A))が制御信号CTL2cで制御される場合の等価回路図である。
【0215】
角度θ(式(4C)、(4D)のθに相当する)は、テーブル1(T1d)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて(135°−θ)(式(4D)のθに相当する)がテーブル2(T2d)に供給される。
【0216】
テーブル1(T1d)ではcosθが求められ、出力端子O32に直接出力されると共に、加算器A6に供給される。
【0217】
テーブル2(T2d)ではcos(135°−θ)が求められ、乗算器M1に出力される。
【0218】
乗算器M1ではcos(135°−θ)に√2が乗算された後、加算器A6でcosθが加算されて、出力端子O31から√2cos(135°−θ)+cosθが供給される。
【0219】
図20(D)は角度θが67.5°〜90°であり三角関数演算回路3(図19(A))が制御信号CTL2dで制御される場合の等価回路図である。
【0220】
角度θ(式(4C)、(4D)のθに相当する)は、テーブル2(T2d)に直接供給されると共に、加算器A5でリバースアドレッシングにより符号反転され、135°が加算されて(135°−θ)(式(4D)のθに相当する)がテーブル1(T1d)に供給される。
【0221】
テーブル1(T1d)ではcos(135°−θ)が求められ、乗算器M1に供給される。
【0222】
テーブル2(T2d)ではcosθが求められ、出力端子O32に直接供給されると共に、加算器A6に供給される。
【0223】
乗算器M1では、cos(135°−θ)に√2が乗算された後、加算器A6でcosθが加算されて、出力端子O31から√2cos(135°−θ)+cosθが供給される。
【0224】
図21(A)は、角度θに対してθ、θ、θ、θの値がどのように変化するかをまとめた図表である。θとθ、θとθは一方の値が45°〜67.5°の値を取れば、他方は67.5°〜90°の値を取り、67.5°を除けば互いに同一の値を取ることはない。45°〜90°の範囲の余弦値を1つのテーブルに記録すると、式(4A)、(4B)又は式(4C)、(4D)にはθ、θ又はθ又はθが含まれているため、角度θの正弦値及び余弦値を求める際に2回テーブルを参照する必要がある。45°〜67.5°と67.5°〜90°の範囲で余弦値を記録するテーブルを2分割することにより、角度θの正弦値及び余弦値を同時に求めることができる。
【0225】
図21(B)は、角度θの正弦値及び余弦値を求めるためにθ、θ、θ、θのいずれの値を使用するかを式(4A)〜(4D)を基にしてまとめた図表である。
【0226】
第4の実施例ではテーブルに45°〜90°の範囲の余弦値(1/√2(約0.7)から0)を記録する。式(2)のbは0と1の両方の値を取り得るため、第2の実施例のようにテーブルに必要な記憶容量を1ビット削減するという効果を得ることはできない。
【0227】
以上、第4の実施例について説明した。
【0228】
実施例では0°〜45°又は45°〜90°の範囲の正弦値又は余弦値を三角関数演算回路3のテーブルに記録する場合について説明したが、(45°×n)〜(45°×(n+1))(n=2〜7の整数)の範囲の正弦値又は余弦値をテーブルに記録しても良い。すなわち、第1〜第4象限のうちいずれか1象限の2分の1の正弦値又は余弦値を用いれば良い。
【0229】
また、実施例では4分の1象限分の正弦値又は余弦値を記録したテーブルを2つ用いる場合について説明したが、デュアルポートメモリに2分の1象限分の正弦値又は余弦値を記録し、デュアルポートメモリの一方の入力端子にはセレクタSaからの出力を入力し、他方の入力端子には加算器A5からの出力を入力して、それぞれの入力値に対する正弦値又は余弦値を求めて出力するようにしても良い。
【0230】
さらに、実施例ではセレクタSf、Sg、Sh、Siを用いて出力端子O31からsinθを、出力端子O32からcosθを出力する場合について説明したが、テーブル1とテーブル2の出力及び加算器A6の出力を別の方法により出力しても良い。
【0231】
以上実施例に沿って本発明を説明したが、本発明はこれらに制限されるものではない。例えば、種々の変更、改良、組み合わせ等が可能であることは当業者に自明であろう。
【0232】
【発明の効果】
45°分の正弦値又は余弦値をテーブルに記録することにより、任意の角度における正弦値及び余弦値を求めることができるので、テーブルの容量を削減することができる。
【図面の簡単な説明】
【図1】ビデオエンコーダ内部の構成を示すブロック図である。
【図2】図2(A)は横軸に角度α、縦軸にsinαの値を示したグラフであり、図2(B)は横軸に角度α、縦軸にcosαの値を示したグラフである。
【図3】第2〜4象限に属する角度αの正弦値及び余弦値を第1象限に属する角度θの正弦値及び余弦値から求める方法を説明するための図である。
【図4】横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=90°−θ及びθ=θ+45°、角度θ=45°〜90°の場合のθ=θ及びθ=135°−θのグラフを示した図である。
【図5】図5(A)は、入力角度αに対するsinα及びcosαを求める回路のブロック図である。図5(B)は、角度α変換回路2の構成を示した等価回路図である。
【図6】図6(A)は、三角関数演算回路3の構成を示す等価回路図である。図6(B)は、三角関数演算回路3のセレクタSa〜Siを制御する制御信号CTL2をまとめた図表である。
【図7】角度θが0°〜22.5°、22.5°〜45°、45°〜67.5°、67.5°〜90°それぞれの場合における三角関数演算回路3(図6(A))が制御信号CTL2で制御される場合の等価回路図である。
【図8】図8(A)は、角度θに対してθ〜θの値がどのように変化するかをまとめた図表である。図8(B)は、角度θの正弦値及び余弦値を求めるためにθ〜θのいずれの値を使用するかをまとめた図表である。
【図9】図9(A)は、三角関数・符号変換回路4の構成を示した等価回路図である。図9(B)は、三角関数・符号変換回路4を構成するセレクタSj〜Smを制御する制御信号CTL1をまとめた図表である。
【図10】横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=θ及びθ=45°−θ、角度θ=45°〜90°の場合のθ=90°−θ及びθ=θ−45°のグラフを示した図である。
【図11】図11(A)は、第2の実施例における三角関数演算回路3の構成を示す等価回路図である。図11(B)は、三角関数演算回路3(図11(A))のセレクタSa〜Siを制御する制御信号CTL2をまとめた図表である。
【図12】角度θが0°〜22.5°、22.5°〜45°、45°〜67.5°、67.5°〜90°それぞれの場合における三角関数演算回路3(図11(A))が制御信号CTL2で制御される場合の等価回路図である。
【図13】図13(A)は、角度θに対してθ〜θの値がどのように変化するかをまとめた図表である。図13(B)は、角度θの正弦値及び余弦値を求めるためにθ〜θのいずれの値を使用するかをまとめた図表である。
【図14】横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=θ及びθ=45°−θ、角度θ=45°〜90°の場合のθ=θ−45°及びθ=90°−θのグラフを示した図である。
【図15】図15(A)は、第3の実施例における三角関数演算回路3の構成を示す等価回路図である。図15(B)は、三角関数演算回路3(図15(A))のセレクタSa〜Siを制御する制御信号CTL2をまとめた図表である。
【図16】角度θが0°〜22.5°、22.5°〜45°、45°〜67.5°、67.5°〜90°それぞれの場合における三角関数演算回路3(図15(A))が制御信号CTL2で制御される場合の等価回路図である。
【図17】図17(A)は、角度θに対してθ〜θの値がどのように変化するかをまとめた図表である。図17(B)は、角度θの正弦値及び余弦値を求めるためにθ〜θのいずれの値を使用するかをまとめた図表である。
【図18】横軸に0°〜90°の範囲の角度θ、縦軸に角度θ=0°〜45°の場合のθ=θ+45°及びθ=90°−θ、角度θ=45°〜90°の場合のθ=θ及びθ=135°−θのグラフを示した図である。
【図19】図19(A)は、第4の実施例における三角関数演算回路3の構成を示す等価回路図である。図19(B)は、三角関数演算回路3(図19(A))のセレクタSa〜Siを制御する制御信号CTL2をまとめた図表である。
【図20】角度θが0°〜22.5°、22.5°〜45°、45°〜67.5°、67.5°〜90°それぞれの場合における三角関数演算回路3(図19(A))が制御信号CTL2で制御される場合の等価回路図である。
【図21】図21(A)は、角度θに対してθ〜θの値がどのように変化するかをまとめた図表である。図21(B)は、角度θの正弦値及び余弦値を求めるためにθ〜θのいずれの値を使用するかをまとめた図表である。
【符号の説明】
Y 輝度信号
,C 色差信号
C 搬送色信号
N コンポジット信号
2 角度α変換回路
21 角度α分類器
22 制御信号発生器
3 三角関数演算回路
4 三角関数・符号変換回路
41,42 インバータ
A0〜A6 加算器
M1 乗算器
I21,I31,I41,I42 入力端子
O21,O31,O32,O41,O42 出力端子
Sa〜Sm セレクタ
Sa1〜Sm1,Sa2〜Sm2 セレクタ入力端子
T1a〜T1d テーブル1
T2a〜T2d テーブル2[0001]
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video encoder having means for outputting a sine value and a cosine value at an arbitrary angle in order to process an image signal.
[0002]
2. Description of the Related Art As a method for obtaining a sine value and a cosine value according to the value of an angle .theta., A method for recording a sine value and a cosine value in a range of 0.degree. Are known. However, recording the sine value and cosine value of the entire 360 ° range increases the storage capacity of the necessary table. In order to solve this problem, for example, in Patent Document 1, trigonometric functions for a total of 90 ° of sine values and cosine values in the range of 0 ° to 45 ° are recorded in a table, and 45 ° to 360 ° are recorded. The sine value and the cosine value are described as an orthogonal function generation circuit that calculates using the sine value and cosine value recorded in the table.
[0003]
[Patent Document 1]
JP-A-9-265331
[0004]
As described above, in the conventionally known method, trigonometric functions in a range of 90 ° or more in total are recorded in a table in order to obtain sine and cosine values at an arbitrary angle. The amount of hardware increased accordingly.
[0005]
An object of the present invention is to provide a video encoder capable of further reducing the capacity of a table used for obtaining a sine value and a cosine value in an image processing apparatus.
[0006]
According to one aspect of the present invention, an input terminal for inputting an angle θ belonging to one quadrant as a first angle, and adding a first predetermined value to the first angle. The first adder that outputs as the second angle, and the first angle is input to one input terminal, the second angle is input to the other input terminal, and one of the input terminals is selected. The first selector and the first angle or the second angle output from the first selector are inverted, and a second predetermined value is added and output as a third angle or a fourth angle. And a first sine value or cosine value for the first or second angle output from the first selector, and a third or second output from the second adder. A table for obtaining and outputting a second sine value or cosine value for an angle of 4; The first sine value or cosine value to be input is input to one input terminal, the second sine value or cosine value output from the table is input to the other input terminal, and either input terminal is selected. The second and third selectors, a multiplier for multiplying the output of the second selector by a third predetermined value, and an output of the third selector to the output of the multiplier There is provided a video encoder having a third adder for output, an output terminal for obtaining and outputting sin θ and cos θ from the output of the third adder, and the first or second sine value or cosine value. The
[0007]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing the internal configuration of the video encoder. The balanced modulation circuit 1 has a color difference signal CrAnd CbAnd trigonometric functions sin α and cos α are input. In the balanced modulation circuit 1, the color difference signal CbIs multiplied by the value of sin α to obtain the color difference signal CrAre multiplied by the value of cos α, and then synthesized, and the carrier color signal C is output. The carrier color signal C output from the balanced modulation circuit 1 is added to the luminance signal Y by the adder A0 to form a composite signal N.
[0008]
Color difference signal C with video encoderrAnd CbSince the values of sin α and cos α are used when the composite signal N is formed from, it is necessary to record the values of sin α and cos α in a table or the like, but the angle α = 0 ° to 360 ° is the entire range. It is not necessary to record the values of sin α and cos α in the table.
[0009]
2A is a graph showing the angle α on the horizontal axis and the value of sin α on the vertical axis, and FIG. 2B is a graph showing the angle α on the horizontal axis and the value of cos α on the vertical axis. The sine wave in the second quadrant (α = 90 ° to 180 °) has the same waveform as the cosine wave in the first quadrant (α = 0 ° to 90 °), and the third quadrant (α = 180 ° to 270). °) sine wave has a waveform obtained by reversing the sign of the sine wave of the first quadrant, and the sine wave of the fourth quadrant (α = 270 ° to 360 °) has the sign of the cosine wave of the first quadrant reversed. The waveform is The cosine wave in the second quadrant has a waveform with the sign of the sine wave in the first quadrant reversed, and the cosine wave in the third quadrant has a waveform with the sign of the cosine wave in the first quadrant reversed, The cosine wave in the fourth quadrant has the same waveform as the sine wave in the first quadrant. If the sine value and cosine value in the first quadrant are used, the sine value and cosine value in the second to fourth quadrants can be obtained.
[0010]
FIG. 3A is a diagram for explaining a method for obtaining the values of sin α and cos α of the angle α belonging to the second quadrant from the values of sin θ and cos θ of the angle θ belonging to the first quadrant. Assume that the angle α is an angle taking a value of 0 ° to 360 °, and the angle θ is an angle taking a value of 0 ° to 90 °. When α = 90 ° + θ (θ = 0 ° to 90 °) is set, sin α can be deformed as follows.
[0011]
sin α = sin (90 ° + θ) = a / c = cos θ (1E)
cos α = cos (90 ° + θ) = − b / c = −sin θ (1F)
Therefore, even when the input angle α takes a value of 90 ° to 180 °, it can be converted into an equation using the angle θ belonging to the first quadrant.
[0012]
FIG. 3B is a diagram for explaining a method for obtaining the values of sin α and cos α of the angle α belonging to the third quadrant from the values of sin θ and cos θ of the angle θ belonging to the first quadrant. When α = 180 ° + θ (θ = 0 ° to 90 °) is set, sin α can be deformed as follows.
[0013]
sin α = sin (180 ° + θ) = − b / c = −sin θ (1G)
cos α = cos (180 ° + θ) = − a / c = −cos θ (1H)
Therefore, even when the input angle α takes a value of 180 ° to 270 °, it can be converted into an expression using the angle θ belonging to the first quadrant.
[0014]
FIG. 3C is a diagram for explaining a method for obtaining the values of sin α and cos α of the angle α belonging to the fourth quadrant from the values of sin θ and cos θ of the angle θ belonging to the first quadrant. When α = 270 ° + θ (θ = 0 ° to 90 °) is set, sin α can be deformed as follows.
[0015]
sin α = sin (270 ° + θ) = − a / c = −cos θ (1I)
cos α = cos (270 ° + θ) = b / c = sin θ (1J)
Therefore, even when the input angle α takes a value of 270 ° to 360 °, it can be converted into an expression using the angle θ belonging to the first quadrant.
[0016]
In this manner, the sine value and cosine value in the entire 360 ° range can be obtained from the sine value and cosine value in the angle of the first quadrant. Hereinafter, Δα in FIG.2A method for obtaining the sine value and cosine value of the entire 360 ° range using only the sine value in the range of (α = 45 ° to 90 °) will be described.
[0017]
In the following explanation, the following trigonometric formula is used.
[0018]
Figure 2004297389
First, the case where the angle θ is θ = 0 ° to 45 ° will be described.
[0019]
The cosine value with respect to the angle θ can be obtained as follows using the equation (D).
[0020]
cos θ = sin (90 ° −θ)
θb= 90 ° -θ
cos θ = sin θb  ... (1A)
It becomes.
[0021]
On the other hand, the sine value with respect to the angle θ can be modified as follows by using the equation (A).
[0022]
sin θ = √2 sin (θ + 45 °) −cos θ
Substituting equation (1A) into this, it can be modified as follows.
[0023]
sin θ = √2 sin (θ + 45 °) −sin θb
θc= Θ + 45 °,
sinθ = √2sinθc-Sinθb  ... (1B)
It becomes.
[0024]
Since θ = 0 ° to 45 °, θb= 90 ° -θ and θc= Θ + 45 ° is an angle in the range of 45 ° to 90 °. A sine value of θ = 0 ° to 45 ° and a cosine value are obtained from a sine value of 45 ° to 90 °.
[0025]
Next, the case where the angle θ = 45 ° to 90 ° will be described.
[0026]
Since the sine value in the range of 45 ° to 90 ° is known, θaIf = θ, it can be obtained directly as follows.
[0027]
sin θ = sin θa  ... (1C)
On the other hand, the cosine value with respect to the angle θ can be modified as follows by using the equation (A).
[0028]
cos θ = √2 cos (θ−45 °) −sin θ
Here, when the equation (D) is further used, it can be modified as follows.
[0029]
Figure 2004297389
It becomes.
[0030]
Since θ = 45 ° to 90 °, θa= Θ and θd= 135 ° −θ is an angle in the range of 45 ° to 90 °. A sine value of θ = 45 ° to 90 ° and a cosine value are obtained from a sine value of 45 ° to 90 °.
[0031]
In the case where the input angle is an angle α in the range of 90 ° to 360 °, if the angle α is converted to an angle θ belonging to the first quadrant using equations (1E) to (1J), equations (1A) to The sine value and cosine value can be obtained from (1D).
[0032]
FIG. 4 shows an angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ when the angle θ = 0 ° to 45 ° on the vertical axis.b= 90 ° -θ and θc= Θ + 45 °, θ when angle θ = 45 ° to 90 °a= Θ and θdIt is the figure which showed the graph of = 135 degree-theta.
[0033]
In the range of angle θ = 0 ° to 45 °, θbDecreases linearly from 90 ° to 45 ° and θcIncreases linearly from 45 ° to 90 °. θbAnd θcIs the angle θ = 22.5 °, the angle θb= ΘcCross at the point of = 67.5 °, and the magnitude relationship is reversed. θbAnd θcOne is Δθ1If it belongs to the range (= 67.5 ° -90 °), the other is Δ
θ2It belongs to the range of (45 ° to 67.5 °).
[0034]
In the range of angle θ = 45 ° to 90 °, θdDecreases linearly from 90 ° to 45 ° and θaIncreases linearly from 45 ° to 90 °. θaAnd θdIs the angle θ = 67.5 °, the angle θa= ΘdCross at the point of = 67.5 °, and the magnitude relationship is reversed. θaAnd θdOne is Δθ1The other is Δθ2Belongs to the range.
Next, a circuit configuration according to an embodiment of the present invention will be described.
[0035]
FIG. 5A is a block diagram of a circuit for obtaining sin α and cos α with respect to the input angle α. The input angle α is input to the angle α conversion circuit 2 from the input terminal I21. The angle α conversion circuit 2 converts the input angle α into an angle θ belonging to the first quadrant and outputs the angle θ to the trigonometric function arithmetic circuit 3 and also outputs a control signal CTL1 indicating which quadrant the input angle α belongs to. A control signal CTL2 indicating to which angle region in the first quadrant the angle θ belongs is output to the trigonometric function / sign conversion circuit 4 to the trigonometric function arithmetic circuit 3.
[0036]
The trigonometric function calculation circuit 3 calculates a sine value and a cosine value of the angle θ and outputs them to the trigonometric function / sign conversion circuit 4.
[0037]
The trigonometric function / sign conversion circuit 4 converts the sine value and cosine value of the angle θ into the sine value and cosine value of the input angle α, and outputs them from the output terminals O41 and O42, respectively.
[0038]
FIG. 5B is an equivalent circuit diagram showing the configuration of the angle α conversion circuit 2 (FIG. 5A). The input angle α is input to the angle α classifier 21 from the input terminal I21. The angle α classifier 21 determines which of the first to fourth quadrants the angle α belongs to, and the angle α of the first quadrant.A, Second quadrant angle αB, Third quadrant angle αC, Fourth quadrant angle αDAnd a control signal CTL1 representing a quadrant is output to the trigonometric function / code conversion circuit 4 (FIG. 5A). The control signal CTL1 is any one of CTL1a, CTL1b, CTL1c, and CTL1d depending on the quadrant.
[0039]
The input angle α is the angle α in the first quadrantAIn the case of, it is just through and the angle α of the second quadrantBIn this case, (−90 °) is added by the adder A1, and the angle θ (= α) of the first quadrant is added.B-90 °), the angle α in the third quadrantCIn this case, (−180 °) is added by the adder A2, and the angle θ (= α) of the first quadrantC-180 °), the angle α in the fourth quadrantDIn the case of (2), (-270 °) is added by the adder A3, and the angle θ (= αD-270 °) and connected to the control signal generator 22 respectively.
[0040]
The control signal generator 22 determines whether the angle θ belongs to a range of 0 ° to 22.5 °, 22.5 ° to 45 °, 45 ° to 67.5 °, or 67.5 ° to 90 °. Then, the control signal CTL2 indicating the angle range is output, and the angle θ is output from the output terminal O21 through and supplied to the trigonometric function arithmetic circuit 3 (FIG. 5A).
[0041]
The control signal CTL2 is CTL2a, CTL2b, CTL2c, CTL2d according to the angle θ of 0 ° to 22.5 °, 22.5 ° to 45 °, 45 ° to 67.5 °, 67.5 ° to 90 °. Change.
[0042]
FIG. 6A is an equivalent circuit diagram showing a configuration of the trigonometric function arithmetic circuit 3 (FIG. 5A).
[0043]
The angle θ is supplied to the trigonometric function arithmetic circuit 3 from the input terminal I31. The selectors Sa, Sb, Sc, Sd, Se, Sf, Sg, Sh, Si are controlled by a control signal CTL2.
[0044]
The angle θ is directly supplied to one input terminal Sa1 of the selector Sa, and (θ + 45 °) obtained by adding 45 ° to the angle θ by the adder A4 is supplied to the other input terminal Sa2. The selector Sa selects one of the input terminals Sa1 and Sa2.
[0045]
One of the input terminals Sb1 and Sc1 of the selectors Sb and Sc has an output from the selector Sa (formula (1B) or θ of formulas (1C) and (1D)).c(= Θ + 45 °) or θa(Corresponding to = θ) is directly supplied, and the other input terminals Sb2 and Sc2 of the selectors Sb and Sc2 have their outputs from the selector Sa inverted by reverse addressing in the adder A5, and then the adder Value obtained by adding 135 ° in A5 (θ in the formula (1A), (1B), or (1D)b(= 90 ° -θ) or θd(Corresponding to = 135 ° −θ)). The selectors Sb and Sc select one of the input terminals Sb1 and Sb2 and the input terminals Sc1 and Sc2.
[0046]
Table 1 (T1a) is supplied with values belonging to the range of 45 ° to 67.5 ° from the selector Sb. In table 1 (T1a), sine values in the range of 45 ° to 67.5 ° are recorded, and sine values corresponding to input values (sin θa~ Sinθd) Is output.
[0047]
Table 2 (T2a) is supplied with values belonging to the range of 67.5 ° to 90 ° from the selector Sc. In table 2 (T2a), sine values in the range of 67.5 ° to 90 ° are recorded, and the sine value corresponding to the input value (sin θa~ Sinθd) Is output.
[0048]
The output from the table 2 (T2a) is supplied to one input terminals Sd1 and Se1 of the selectors Sd and Se, and the output from the table 1 (T1a) is supplied to the other input terminals Sd2 and Se2 of the selectors Sd and Se. Is supplied. The selectors Sd and Se select one of the input terminals Sd1 and Sd2 and the input terminals Se1 and Se2.
[0049]
The output from the table 1 (T1a) is directly supplied to one input terminal Sf1 of the selector Sf, and the output from the table 2 (T2a) is directly supplied to one input terminal Sg1 of the selector Sg. And the other input terminals Sf2 and Sg2 of Sg are multiplied by a value obtained by multiplying the output of the selector Sd by {square root over (2)} by the multiplier M1 and then the sign of the output of the selector Se reversed by reverse addressing in the adder A6. ((√2sinθc-Sinθb) Or (√2sinθd-Sinθa)) Is supplied. The selectors Sf and Sg select one of the input terminals Sf1 and Sf2 and the input terminals Sg1 and Sg2.
[0050]
The output from the selector Sf is directly supplied to one input terminal Sh1 and Si1 of the selector Sh and Si, and the output from the selector Sg is directly supplied to the other input terminal Sh2 and Si2 of the selector Sh and Si. . The selectors Sh and Si select one of the input terminals Sh1 and Sh2 and the input terminals Si1 and Si2.
[0051]
The output from the selector Sh is supplied to the output terminal O31, and the output from the selector Si is supplied to the output terminal O32.
[0052]
FIG. 6B shows a control signal CTL2 (CTL2a, CTL2b, CTL2c) for controlling which of the two input terminals the selectors Sa to Si constituting the trigonometric function arithmetic circuit 3 (FIG. 6A) select. , CTL2d).
[0053]
When the angle θ belongs to the region of 0 ° to 22.5 °, the control signal CTL2b belongs to the region of 22.5 ° to 45 °, and when the control signal CTL2b belongs to the region of 45 ° to 67.5 °. If the control signal CTL2c belongs to the region, and the control signal CTL2d belongs to the region of 67.5 ° to 90 °, the control signal CTL2d is triangular from the control signal generator 22 (FIG. 5B) of the angle α conversion circuit 2. Each is supplied to the function arithmetic circuit 3.
[0054]
FIG. 7A is an equivalent circuit diagram when the angle θ is 0 ° to 22.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 6A) is controlled by the control signal CTL2a.
[0055]
The angle θ is 45 ° added by the adder A4 (θ + 45 °) (θ in Expression (1B)).cIs output). (Θ + 45 °) is directly supplied to the table 1 (T1a), and the sign is inverted by reverse addressing in the adder A5, and 135 ° is added to obtain 135 ° − (θ + 45 °) = (90 ° −θ) ( Θ in equations (1A) and (1B)bIs supplied to the table 2 (T2a).
[0056]
In Table 1 (T1a), sin (θ + 45 °) is obtained and output to the multiplier M1. In Table 2 (T2a), sin (90 ° −θ) is obtained, supplied to the output terminal O32, and inverted in sign by reverse addressing, and supplied to the adder A6. After sin (θ + 45 °) is multiplied by √2 by the multiplier M1, −sin (90 ° −θ) is added by the adder A6, and √2sin (θ + 45 °) −sin (90 °) is output from the output terminal O31. -Θ) is supplied.
[0057]
FIG. 7B is an equivalent circuit diagram when the angle θ is 22.5 ° to 45 ° and the trigonometric function arithmetic circuit 3 (FIG. 6A) is controlled by the control signal CTL2b.
[0058]
The angle θ is 45 ° added by the adder A4 (θ + 45 °) (θ in Expression (1B)).cIs output). (Θ + 45 °) is supplied to the table 2 (T2a), and the sign is inverted by reverse addressing in the adder A5, and 135 ° is added to obtain 135 ° − (θ + 45 °) = (90 ° −θ) (formula Θ of (1A) and (1B)bIs supplied to the table 1 (T1a).
[0059]
In Table 1 (T1a), sin (90 ° −θ) is obtained and directly output to the output terminal O32, and the sign is inverted by reverse addressing and supplied to the adder A6.
[0060]
In Table 2 (T2a), sin (θ + 45 °) is obtained and output to the multiplier M1. After sin (θ + 45 °) is multiplied by √2 by the multiplier M1, −sin (90 ° −θ) is added by the adder A6, and √2sin (θ + 45 °) −sin (90 °) is output from the output terminal O31. -Θ) is supplied.
[0061]
FIG. 7C is an equivalent circuit diagram when the angle θ is 45 ° to 67.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 6A) is controlled by the control signal CTL2c.
[0062]
Angle θ (θ in equations (1C) and (1D)aIs directly supplied to the table 1 (T1a), and the sign is inverted by the reverse addressing in the adder A5, and 135 ° is added to (135 ° −θ) (θ in the equation (1D)).dIs supplied to the table 2 (T2a).
[0063]
In Table 1 (T1a), sin θ is obtained and directly output to the output terminal O31, and the sign is inverted by reverse addressing and supplied to the adder A6.
[0064]
In Table 2 (T2a), sin (135 ° −θ) is obtained and output to the multiplier M1.
[0065]
The multiplier M1 multiplies sin (135 ° −θ) by √2, then adds −sinθ by the adder A6, and supplies √2sin (135 ° −θ) −sinθ from the output terminal O32.
[0066]
FIG. 7D is an equivalent circuit diagram when the angle θ is 67.5 ° to 90 ° and the trigonometric function arithmetic circuit 3 (FIG. 6A) is controlled by the control signal CTL2d.
[0067]
Angle θ (θ in equations (1C) and (1D)aIs directly supplied to the table 2 (T2a), and the sign is inverted by the reverse addressing in the adder A5, and 135 ° is added (135 ° −θ) (θ in the equation (1D)).dIs supplied to the table 1 (T1a).
[0068]
In table 1 (T1a), sin (135 ° −θ) is obtained and supplied to the multiplier M1.
[0069]
In Table 2 (T2a), sin θ is obtained and directly supplied to the output terminal O31, and the sign is inverted by reverse addressing and supplied to the adder A6.
[0070]
In the multiplier M1, sin (135 ° −θ) is multiplied by √2, and −sinθ is added by the adder A6, and √2sin (135 ° −θ) −sinθ is supplied from the output terminal O32. .
[0071]
FIG. 8A shows the angle θ relative to the angle θ.a, Θb, Θc, ΘdIt is the table | surface which summarized how the value of changed. θbAnd θc, ΘaAnd θdIf one value takes a value between 45 ° and 67.5 °, the other takes a value between 67.5 ° and 90 °, and except 67.5 ° does not take the same value. When a sine value in a range of 45 ° to 90 ° is recorded in one table, θ (1A), (1B), or (1C), (1D) is θ.b, ΘcOr θa, ΘdTherefore, it is necessary to refer to the table twice when obtaining the sine value and cosine value of the angle θ. By dividing the table for recording sine values in the range of 45 ° to 67.5 ° and 67.5 ° to 90 ° into two, the sine value and cosine value of the angle θ can be obtained simultaneously.
[0072]
FIG. 8B is a diagram illustrating how to obtain the sine value and cosine value of the angle θa, Θb, Θc, ΘdIt is the chart which summarized which value of which is used based on Formula (1A)-(1D). Reverse θ in the tablecIs written as θbWhile the phase of (= 90 ° −θ) decreases as the angle θ increases, θcThe phase of (= θ + 45 °) increases as the angle θ increases, and θbAnd θcIt means that the phases of the two travel in opposite directions. Reverse θaAnd reverse θ described latere, Θg(Fig. 13B), reverse θi, Θk(FIG. 17 (B)), reverse θm, ΘoThe same applies to (FIG. 21B).
[0073]
The amplitude of sin θ ranges from 0 to 1, and can be expressed as follows using a binary number.
Figure 2004297389
In the first embodiment, a sine value (1 / √2 (about 0.7) to 1) in the range of 45 ° to 90 ° is recorded on the table. A in formula (1)1Always takes 1 a1Can be omitted, and the storage capacity required for the table can be reduced by 1 bit (| sin θ | = 1 is assumed to be approximated by a binary number of 0.1111...) .
[0074]
FIG. 9A is an equivalent circuit diagram showing the configuration of the trigonometric function / sign conversion circuit 4 (FIG. 5A).
[0075]
Sin θ is supplied from the input terminal I41 to one of the input terminals Sj1 and Sk1 of the selectors Sj and Sk. The other input terminals Sj2 and Sk2 of the selectors Sj and Sk are supplied with cos θ from the input terminal I42. The selectors Sj and Sk select one of the input terminals Sj1 and Sj2 and the input terminals Sk1 and Sk2.
[0076]
The output from the selector Sj is directly supplied to one input terminal S11 of the selector S1, and the output from the selector Sj is supplied to the other input terminal S12 after being inverted in sign by the inverter 41.
[0077]
The output from the selector Sk is directly supplied to one input terminal Sm1 of the selector Sm, and the output from the selector Sk is supplied to the other input terminal Sm2 after being inverted in sign by the inverter 42.
[0078]
The selectors S1 and Sm select one of the input terminals S11 and S12 and the input terminals Sm1 and Sm2.
[0079]
The output of the selector S1 is supplied to the output terminal O41, and the output of the selector Sm is supplied to the output terminal O42.
[0080]
FIG. 9B shows control signals CTL1 (CTL1a, CTL1b) for controlling which of the two input terminals the selectors Sj to Sm constituting the trigonometric function / sign conversion circuit 4 (FIG. 9A) select. , CTL1c, CTL1d).
[0081]
Input angle α is αAIn the case of (= 0 ° to 90 °), the control signal CTL1a indicates that the input angle α is αBIn the case of (= 90 ° to 180 °), the control signal CTL1b indicates that the input angle α is αCIn the case of (= 180 ° to 270 °), the control signal CTL1c indicates that the input angle α is αDIn the case of (= 270 ° to 360 °), the control signal CTL1d is supplied to the trigonometric function / sign conversion circuit 4, respectively.
[0082]
From the output terminals O41 and O42 (FIG. 9A), the input angle α is α as the values of sin α and cos α.AIn the case of sin α = sin θ and cos α = cos θ, αBIn the case of sin α = cos θ and cos α = −sin θ, αCIn the case of sin α = −sin θ and cos α = −cos θ, αDIn this case, sin α = −cos θ and cos α = sin θ are output.
[0083]
The first embodiment has been described above.
[0084]
Next, a second embodiment will be described. In the second embodiment, Δα in FIG.3Using only the cosine value in the range of (α = 0 ° to 45 °), the sine value and cosine value in the entire 360 ° range are obtained.
[0085]
First, the case where the angle θ is θ = 0 ° to 45 ° will be described.
[0086]
Since the cosine value in the range of 0 ° to 45 ° is known, θeIf = θ, it can be obtained directly as follows.
[0087]
cos θ = cos θe  ... (2A)
On the other hand, the sine value with respect to the angle θ can be modified as follows by using the equation (A).
[0088]
sin θ = √2 cos (θ−45 °) −cos θ
Here, when Formula (F) is further used, it can be modified as follows.
[0089]
sin θ = √2 cos (45 ° −θ) −cos θ
θh= 45 ° -θ
sin θ = √2 cos θh−cos θe  ... (2B)
It becomes.
[0090]
Since θ = 0 ° to 45 °, θe= Θ and θh= 45 ° −θ is an angle in the range of 0 ° to 45 °. A sine value and a cosine value of θ = 0 ° to 45 ° are obtained from a cosine value of 0 ° to 45 °.
[0091]
Next, the case where the angle θ = 45 ° to 90 ° will be described.
[0092]
The sine value with respect to the angle θ can be obtained as follows using the equation (E).
[0093]
sin θ = cos (90 ° −θ)
θf= 90 ° -θ
sin θ = cos θf  ... (2C)
It becomes.
[0094]
On the other hand, the cosine value with respect to the angle θ can be modified as follows by using the equation (A).
[0095]
cos θ = √2 cos (θ−45 °) −sin θ
Substituting equation (2C) into this can be modified as follows.
[0096]
cos θ = √2 cos (θ−45 °) −cos θf
θg= Θ-45 °,
cos θ = √2 cos θg−cos θf  ... (2D)
Since θ = 45 ° to 90 °, θf= 90 ° -θ and θg= Θ−45 ° is an angle in the range of 0 ° to 45 °. A sine value and a cosine value of θ = 45 ° to 90 ° are obtained from a cosine value of 0 ° to 45 °.
[0097]
When the input angle is an angle α in the range of 90 ° to 360 °, if the angle α is converted to an angle θ belonging to the first quadrant using the equations (1E) to (1J), the equations (2A) to (2A) to The sine value and cosine value can be obtained from (2D).
[0098]
FIG. 10 shows an angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ when the angle θ = 0 ° to 45 ° on the vertical axis.e= Θ and θh= Θ when 45 ° -θ and angle θ = 45 ° -90 °f= 90 ° -θ and θgIt is the figure which showed the graph of = (theta) -45 degrees.
[0099]
In the range of angle θ = 0 ° to 45 °, θhDecreases linearly from 45 ° to 0 ° and θeIncreases linearly from 0 ° to 45 °. θeAnd θhIs the angle θ = 22.5 °, the angle θe= ΘhCrosses at a point of 22.5 °, and the magnitude relationship is reversed. θeAnd θhOne is Δθ3If it belongs to the range (= 22.5 ° -45 °), the other is Δθ4
(= 0 ° to 22.5 °).
[0100]
In the range of angle θ = 45 ° to 90 °, θfDecreases linearly from 45 ° to 0 ° and θgIncreases linearly from 0 ° to 45 °. θfAnd θgIs the angle θ = 67.5 °, the angle θf= ΘgCrosses at a point of 22.5 °, and the magnitude relationship is reversed. θfAnd θgOne is Δθ3The other is Δθ4Belongs to the range.
Next, a circuit configuration according to the second embodiment of the present invention will be described. The overall circuit configuration is the same as the circuit of the first embodiment shown in FIG.
[0101]
Since the configurations of the angle α conversion circuit 2 (FIG. 5B) and the trigonometric function / angle conversion circuit 4 (FIG. 9A) are the same as those in the first embodiment, description thereof will be omitted.
[0102]
FIG. 11A is an equivalent circuit diagram showing the configuration of the trigonometric function arithmetic circuit 3 (FIG. 5A) in the second embodiment. The circuit configuration of each of the adders A4 to A6, the multiplier M1, and the selectors Sa to Si, the point where the output of the selector Sa is inverted by reverse addressing in the adder A5, and the output of the selector Se is input to the adder A6 The point in which the sign is inverted by reverse addressing and the input, and the multiplier M1 multiplies the output of the selector Sd by √2 are the same as the trigonometric function arithmetic circuit (FIG. 6A) in the first embodiment. is there.
[0103]
In the first embodiment, the sine value and the cosine value are calculated using the equations (1A) to (1D). In the second embodiment, the sine value and the cosine value are calculated using the equations (2A) to (2D). For calculation, the configuration of the trigonometric function arithmetic circuit 3 is different in the following points.
[0104]
In the trigonometric function arithmetic circuit (FIG. 6A) in the first embodiment, the angle θ is input to one terminal of the adder A4, and (+ 45 °) is input to the other terminal. Further, the output of the selector Sa is input with its sign inverted by reverse addressing to one terminal of the adder A5, and (+ 135 °) is input to the other terminal. Further, sine values of 45 ° to 90 ° were recorded in Tables 1 and 2.
[0105]
In the trigonometric function arithmetic circuit (FIG. 11A) in the second embodiment, (−45 °) is input to the other terminal of the adder A4, and (+ 45 °) is input to the other terminal of the adder A5. As a result, cosine values of 0 ° to 45 ° are recorded in Tables 1 and 2.
[0106]
FIG. 11B shows a control signal CTL2 (CTL2a, CTL2b, CTL2c) for controlling which of the two input terminals the selectors Sa to Si constituting the trigonometric function arithmetic circuit 3 (FIG. 11A) select. , CTL2d).
[0107]
When the angle θ belongs to the region of 0 ° to 22.5 °, the control signal CTL2b belongs to the region of 22.5 ° to 45 °, and when the control signal CTL2b belongs to the region of 45 ° to 67.5 °. If the control signal CTL2c belongs to the region, and the control signal CTL2d belongs to the region of 67.5 ° to 90 °, the control signal CTL2d is triangular from the control signal generator 22 (FIG. 5B) of the angle α conversion circuit 2. Each is supplied to the function arithmetic circuit 3.
[0108]
FIG. 12A is an equivalent circuit diagram when the angle θ is 0 ° to 22.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 11A) is controlled by the control signal CTL2a.
[0109]
Angle θ (θ in equations (2A) and (2B)eIs directly supplied to the table 1 (T1b), and the sign is inverted by the reverse addressing in the adder A5, and 45 ° is added (45 ° −θ) (θ in the equation (2B)).hIs supplied to the table 2 (T2b).
[0110]
In the table 1 (T1b), cos θ is obtained, supplied to the output terminal O32, and inverted in sign by reverse addressing, and supplied to the adder A6.
[0111]
In Table 2 (T2b), cos (45 ° −θ) is obtained and output to the multiplier M1.
[0112]
After the multiplier M1 multiplies cos (45 ° −θ) by √2, −cosθ is added by the adder A6, and √2cos (45 ° −θ) −cosθ is supplied from the output terminal O31.
[0113]
FIG. 12B is an equivalent circuit diagram when the angle θ is 22.5 ° to 45 ° and the trigonometric function arithmetic circuit 3 (FIG. 11A) is controlled by the control signal CTL2b.
[0114]
Angle θ (θ in equations (2A) and (2B)eIs supplied to the table 2 (T2b), and the sign is inverted by the reverse addressing in the adder A5, and 45 ° is added to (45 ° −θ) (θ in the equation (2B)).hIs supplied to the table 1 (T1b).
[0115]
In the table 1 (T1b), cos (45 ° −θ) is obtained and output to the multiplier M1.
[0116]
In Table 2 (T2b), cos θ is obtained and directly output to the output terminal O32, and the sign is inverted by reverse addressing and supplied to the adder A6.
[0117]
After the multiplier M1 multiplies cos (45 ° −θ) by √2, −cosθ is added by the adder A6, and √2cos (45 ° −θ) −cosθ is supplied from the output terminal O31.
[0118]
FIG. 12C is an equivalent circuit diagram when the angle θ is 45 ° to 67.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 11A) is controlled by the control signal CTL2c.
[0119]
The angle θ is obtained by adding (−45 °) by the adder A4 to (θ−45 °) (θ in Expression (2D)).gIs output). (Θ−45 °) is directly supplied to the table 1 (T1b), and the sign is inverted by reverse addressing in the adder A5, and 45 ° is added to obtain 45 ° − (θ−45 °) = (90 ° -Θ) (θ in equations (2C) and (2D)fIs supplied to the table 2 (T2b).
[0120]
In the table 1 (T1b), cos (θ−45 °) is obtained and output to the multiplier M1.
[0121]
In Table 2 (T2b), cos (90 ° −θ) is obtained and directly output to the output terminal O31, and the sign is inverted by reverse addressing and supplied to the adder A6.
[0122]
The multiplier M1 multiplies cos (θ−45 °) by √2, and then adds −cos (90 ° −θ) by the adder A6, so that √2cos (θ−45 °) − from the output terminal O32. cos (90 ° -θ) is supplied.
[0123]
FIG. 12D is an equivalent circuit diagram when the angle θ is 67.5 ° to 90 ° and the trigonometric function arithmetic circuit 3 (FIG. 11A) is controlled by the control signal CTL2d.
[0124]
The angle θ is obtained by adding (−45 °) by the adder A4 to (θ−45 °) (θ in Expression (2D)).gIs output). (Θ−45 °) is directly supplied to the table 2 (T2b), and the sign is inverted by reverse addressing in the adder A5, and 45 ° is added to (90 ° −θ) (formulas (2C), ( 2D) θfIs supplied to the table 1 (T1b).
[0125]
In Table 1 (T1b), cos (90 ° −θ) is obtained and supplied directly to the output terminal O31, and the sign is inverted by reverse addressing and supplied to the adder A6.
[0126]
In Table 2 (T2b), cos (θ−45 °) is obtained and supplied to the multiplier M1.
[0127]
In the multiplier M1, cos (θ−45 °) is multiplied by √2, and then −cos (90 ° −θ) is added by the adder A6, and √2 cos (θ−45 °) is output from the output terminal O32. −cos (90 ° −θ) is supplied.
[0128]
FIG. 13A shows the angle θ with respect to the angle θ.e, Θf, Θg, ΘhIt is the table | surface which summarized how the value of changed. θfAnd θg, ΘeAnd θhIf one value takes a value between 0 ° and 22.5 °, the other takes a value between 22.5 ° and 45 °, and the values other than 22.5 ° do not take the same value. When cosine values in the range of 0 ° to 45 ° are recorded in one table, the formula (2A), (2B) or the formula (2C), (2D)e, ΘhOr θf, ΘgTherefore, it is necessary to refer to the table twice when obtaining the sine value and cosine value of the angle θ. By dividing the table for recording the cosine value in the range of 0 ° to 22.5 ° and 22.5 ° to 45 °, the sine value and the cosine value of the angle θ can be obtained simultaneously.
[0129]
FIG. 13 (B) shows the θe, Θf, Θg, ΘhIt is the table | surface which put together which value of these was used based on Formula (2A)-(2D).
[0130]
The amplitude of cos θ ranges from 0 to 1, and can be expressed as follows using a binary number.
Figure 2004297389
In the second embodiment, cosine values (1 to 1 / √2 (about 0.7)) in the range of 0 ° to 45 ° are recorded in the table. B in formula (2)1Always take 1 to b1Can be omitted, and the storage capacity required for the table can be reduced by 1 bit (| cos θ | = 1 is assumed to be approximated by a binary number of 0.1111...) .
[0131]
The second embodiment has been described above.
[0132]
Next, a third embodiment will be described. In the third embodiment, Δα in FIG.1Using only the sine value in the range (α = 0 ° to 45 °), the sine value and cosine value in the entire 360 ° range are obtained.
[0133]
First, the case where the angle θ is θ = 0 ° to 45 ° will be described.
[0134]
Since the sine value in the range of 0 ° to 45 ° is known, θiIf = θ, it can be obtained directly as follows.
[0135]
sin θ = sin θi  ... (3A)
On the other hand, the cosine value with respect to the angle θ can be modified as follows by using the equation (C).
[0136]
cos θ = √2 cos (θ + 45 °) + sin θ
Here, when the equation (D) is further used, it can be modified as follows.
[0137]
Figure 2004297389
It becomes.
[0138]
Since θ = 0 ° to 45 °, θi= Θ and θl= 45 ° −θ is an angle in the range of 0 ° to 45 °. A sine value of θ = 0 ° to 45 ° and a cosine value are obtained from a sine value of 0 ° to 45 °.
[0139]
Next, the case where the angle θ = 45 ° to 90 ° will be described.
[0140]
The cosine value with respect to the angle θ can be obtained as follows using the equation (D).
[0141]
cos θ = sin (90 ° −θ)
θj= 90 ° -θ
cos θ = sin θj  ... (3C)
On the other hand, the sine value with respect to the angle θ can be modified as follows by using the equation (C).
[0142]
sin θ = −√2 cos (θ + 45 °) + cos θ
Here, when the equation (D) is further used, it can be modified as follows.
[0143]
Figure 2004297389
Here, when the equation (G) is further used, it can be modified as follows.
[0144]
sin θ = √2 sin (θ−45 °) + cos θ
θk= Θ-45 °,
sinθ = √2sinθk+ Sinθj  ... (3D)
Since θ = 45 ° to 90 °, θj= 90 ° -θ and θk= Θ−45 ° is an angle in the range of 0 ° to 45 °. A sine value of θ = 45 ° to 90 ° and a cosine value are obtained from a sine value of 0 ° to 45 °.
[0145]
In the case where the input angle is an angle α in the range of 90 ° to 360 °, if the angle α is converted into the angle θ belonging to the first quadrant using the equations (1E) to (1J), the equations (3A) to (3A) to A sine value and a cosine value can be obtained from (3D).
[0146]
FIG. 14 shows the angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ in the case of angle θ = 0 ° to 45 ° on the vertical axis.i= Θ and θl= Θ when 45 ° -θ and angle θ = 45 ° -90 °k= Θ-45 ° and θjIt is the figure which showed the graph of = 90 degree-theta.
[0147]
In the range of angle θ = 0 ° to 45 °, θlDecreases linearly from 45 ° to 0 ° and θiIncreases linearly from 0 ° to 45 °. θiAnd θlIs the angle θ = 22.5 °, the angle θi= ΘlCrosses at a point of 22.5 °, and the magnitude relationship is reversed. θiAnd θlOne is Δθ5If it belongs to the range (= 22.5 ° -45 °), the other is Δθ6
(= 0 ° to 22.5 °).
[0148]
In the range of angle θ = 45 ° to 90 °, θjDecreases linearly from 45 ° to 0 ° and θkIncreases linearly from 0 ° to 45 °. θjAnd θkIs the angle θ = 67.5 °, the angle θj= ΘkCrosses at a point of 22.5 °, and the magnitude relationship is reversed. θjAnd θkOne is Δθ5The other is Δθ6Belongs to the range.
Next, a circuit configuration according to a third embodiment of the present invention will be described. The overall circuit configuration is the same as the circuit of the first embodiment shown in FIG.
[0149]
Since the configurations of the angle α conversion circuit 2 (FIG. 5B) and the trigonometric function / angle conversion circuit 4 (FIG. 9A) are the same as those in the first embodiment, description thereof will be omitted.
[0150]
FIG. 15A is an equivalent circuit diagram showing a configuration of the trigonometric function arithmetic circuit 3 (FIG. 5A) in the third embodiment. The circuit configuration of each of the adders A4 to A6, the multiplier M1, and the selectors Sa to Si, the point where the output of the selector Sa is inverted by reverse addressing in the adder A5, and the output of the selector Sd in the multiplier M1 The point that √2 is multiplied is the same as the trigonometric function arithmetic circuit (FIG. 6A) in the first embodiment.
[0151]
In the first embodiment, the sine value and the cosine value are calculated using the equations (1A) to (1D). In the third embodiment, the sine value and the cosine value are calculated using the equations (3A) to (3D). For calculation, the configuration of the trigonometric function arithmetic circuit 3 is different in the following points.
[0152]
In the trigonometric function arithmetic circuit (FIG. 6A) in the first embodiment, the angle θ is input to one terminal of the adder A4, and (+ 45 °) is input to the other terminal. Further, the output of the selector Sa is input with its sign inverted by reverse addressing to one terminal of the adder A5, and (+ 135 °) is input to the other terminal. Further, the output of the multiplier M1 is input to one terminal of the adder A6, and the output of the selector Se is input to the other terminal with the sign inverted by reverse addressing. Further, sine values of 45 ° to 90 ° were recorded in Tables 1 and 2.
[0153]
In the trigonometric function arithmetic circuit (FIG. 15A) in the third embodiment, (−45 °) is input to the other terminal of the adder A4, and (+ 45 °) is input to the other terminal of the adder A5. The output of the selector Se is directly input to the other terminal of the adder A6, and sine values of 0 ° to 45 ° are recorded in the tables 1 and 2.
[0154]
FIG. 15B shows a control signal CTL2 (CTL2a, CTL2b, CTL2c) for controlling which of the two input terminals the selectors Sa to Si constituting the trigonometric function arithmetic circuit 3 (FIG. 15A) select. , CTL2d).
[0155]
When the angle θ belongs to the region of 0 ° to 22.5 °, the control signal CTL2b belongs to the region of 22.5 ° to 45 °, and when the control signal CTL2b belongs to the region of 45 ° to 67.5 °. If the control signal CTL2c belongs to the region, and the control signal CTL2d belongs to the region of 67.5 ° to 90 °, the control signal CTL2d is triangular from the control signal generator 22 (FIG. 5B) of the angle α conversion circuit 2. Each is supplied to the function arithmetic circuit 3.
[0156]
FIG. 16A is an equivalent circuit diagram when the angle θ is 0 ° to 22.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 15A) is controlled by the control signal CTL2a.
[0157]
Angle θ (θ in equations (3A) and (3B)iIs directly supplied to the table 1 (T1c), and the sign is inverted by the reverse addressing in the adder A5, and 45 ° is added to (45 ° −θ) (θ in Expression (3B)).lIs supplied to the table 2 (T2c).
[0158]
In Table 1 (T1c), sin θ is obtained and supplied to the output terminal O31 and to the adder A6.
[0159]
In Table 2 (T2c), sin (45 ° −θ) is obtained and output to the multiplier M1.
[0160]
After the multiplier M1 multiplies sin (45 ° −θ) by √2, sin θ is added by the adder A6, and √2 sin (45 ° −θ) + sin θ is supplied from the output terminal O32.
[0161]
FIG. 16B is an equivalent circuit diagram when the angle θ is 22.5 ° to 45 ° and the trigonometric function arithmetic circuit 3 (FIG. 15A) is controlled by the control signal CTL2b.
[0162]
Angle θ (θ in equations (3A) and (3B)iIs supplied to the table 2 (T2c), and the sign is inverted by the reverse addressing in the adder A5, and 45 ° is added to (45 ° −θ) (θ in the equation (3B)).lIs supplied to the table 1 (T1c).
[0163]
In Table 1 (T1c), sin (45 ° −θ) is obtained and output to the multiplier M1.
[0164]
In Table 2 (T2c), sin θ is obtained and directly output to the output terminal O31 and supplied to the adder A6.
[0165]
After the multiplier M1 multiplies sin (45 ° −θ) by √2, sin θ is added by the adder A6, and √2 sin (45 ° −θ) + sin θ is supplied from the output terminal O32.
[0166]
FIG. 16C is an equivalent circuit diagram when the angle θ is 45 ° to 67.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 15A) is controlled by the control signal CTL2c.
[0167]
The angle θ is obtained by adding (−45 °) by the adder A4 to (θ−45 °) (θ in Expression (3D)).kIs output). (Θ−45 °) is directly supplied to the table 1 (T1c), and the sign is inverted by reverse addressing in the adder A5, and 45 ° is added to obtain 45 ° − (θ−45 °) = (90 ° −θ) (θ in equations (3C) and (3D)jIs supplied to the table 2 (T2c).
[0168]
In table 1 (T1c), sin (θ−45 °) is obtained and output to the multiplier M1.
[0169]
In Table 2 (T2c), sin (90 ° −θ) is obtained, and is directly output to the output terminal O32 and supplied to the adder A6.
[0170]
The multiplier M1 multiplies sin (θ−45 °) by √2, and then adds the sin (90 ° −θ) by the adder A6. The output terminal O31 outputs √2sin (θ−45 °) + sin ( 90 ° −θ) is supplied.
[0171]
FIG. 16D is an equivalent circuit diagram when the angle θ is 67.5 ° to 90 ° and the trigonometric function arithmetic circuit 3 (FIG. 15A) is controlled by the control signal CTL2d.
[0172]
The angle θ is obtained by adding (−45 °) by the adder A4 to (θ−45 °) (θ in Expression (3D)).kIs output). (Θ−45 °) is directly supplied to the table 2 (T2c), and the sign is inverted by reverse addressing in the adder A5, and 45 ° is added to (90 ° −θ) (formula (3C), ( 3D) θjIs supplied to the table 1 (T1c).
[0173]
In Table 1 (T1c), sin (90 ° −θ) is obtained and supplied directly to the output terminal O32 and also to the adder A6.
[0174]
In Table 2 (T2c), sin (θ−45 °) is obtained and supplied to the multiplier M1.
[0175]
In the multiplier M1, sin (θ−45 °) is multiplied by √2, and then sin (90 ° −θ) is added by the adder A6, and √2sin (θ−45 °) + sin from the output terminal O31. (90 ° -θ) is supplied.
[0176]
FIG. 17A shows the angle θ with respect to the angle θ.i, Θj, Θk, ΘlIt is the table | surface which summarized how the value of changed. θjAnd θk, ΘiAnd θlIf one value takes a value between 0 ° and 22.5 °, the other takes a value between 22.5 ° and 45 °, and the values other than 22.5 ° do not take the same value. When the sine values in the range of 0 ° to 45 ° are recorded in one table, θ (i, ΘlOr θj, ΘkTherefore, it is necessary to refer to the table twice when obtaining the sine value and cosine value of the angle θ. By dividing the table for recording the cosine value in the range of 0 ° to 22.5 ° and 22.5 ° to 45 °, the sine value and the cosine value of the angle θ can be obtained simultaneously.
[0177]
FIG. 17B is a diagram illustrating how to obtain a sine value and a cosine value of the angle θi, Θj, Θk, ΘlIt is the chart which summarized which value of which is used based on Formula (3A)-(3D).
[0178]
In the third embodiment, a sine value (0 to 1 / √2 (about 0.7)) in the range of 0 ° to 45 ° is recorded in the table. A in formula (1)1Since can take both values of 0 and 1, it is not possible to obtain the effect of reducing the storage capacity required for the table by 1 bit as in the first embodiment.
[0179]
The third embodiment has been described above.
[0180]
Next, a fourth embodiment will be described. In the fourth embodiment, Δα in FIG.4Using only the cosine value in the range (α = 45 ° to 90 °), the sine value and cosine value in the entire 360 ° range are obtained.
[0181]
First, the case where the angle θ is θ = 0 ° to 45 ° will be described.
[0182]
The sine value with respect to the angle θ can be obtained as follows using the equation (E).
[0183]
sin θ = cos (90 ° −θ)
θn= 90 ° -θ
sin θ = cos θn  ... (4A)
It becomes.
[0184]
On the other hand, the cosine value with respect to the angle θ can be modified as follows by using the equation (C).
[0185]
cos θ = √2 cos (θ + 45 °) + sin θ
Substituting equation (4A) into this, it can be modified as follows.
[0186]
cos θ = √2 cos (θ + 45 °) + cos θn
θo= Θ + 45 °,
cos θ = √2 cos θo+ Cosθn  ... (4B)
It becomes.
[0187]
Since θ = 0 ° to 45 °, θn= 90 ° -θ and θo= Θ + 45 ° is an angle in the range of 45 ° to 90 °. A sine value and a cosine value of θ = 0 ° to 45 ° are obtained from a cosine value of 45 ° to 90 °.
[0188]
Next, the case where the angle θ = 45 ° to 90 ° will be described.
[0189]
Since the cosine value in the range of 45 ° to 90 ° is known, θmIf = θ, it can be obtained directly as follows.
[0190]
cos θ = cos θm  ... (4C)
On the other hand, the sine value with respect to the angle θ can be modified as follows by using the equation (B).
[0191]
sin θ = √2 sin (θ−45 °) + cos θ
Here, when the equation (E) is further used, it can be modified as follows.
[0192]
Figure 2004297389
Since θ = 45 ° to 90 °, θm= Θ and θp= 135 ° −θ is an angle in the range of 45 ° to 90 °. A sine value and a cosine value of θ = 45 ° to 90 ° are obtained from a cosine value of 45 ° to 90 °.
[0193]
In the case where the input angle takes an angle α in the range of 90 ° to 360 °, if the angle α is converted into the angle θ belonging to the first quadrant using the equations (1E) to (1J), the equations (4A) to (4A) to A sine value and a cosine value can be obtained from (4D).
[0194]
FIG. 18 shows an angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ when the angle θ = 0 ° to 45 ° on the vertical axis.o= Θ + 45 ° and θn= Θ in the case of 90 ° −θ and angle θ = 45 ° to 90 °p= Θ and θmIt is the figure which showed the graph of = 135 degree-theta.
[0195]
In the range of angle θ = 0 ° to 45 °, θnDecreases linearly from 90 ° to 45 ° and θoIncreases linearly from 45 ° to 90 °. θnAnd θoIs the angle θ = 22.5 °, the angle θn= ΘoCross at the point of = 67.5 °, and the magnitude relationship is reversed. θnAnd θoOne is Δθ7If it belongs to the range (= 67.5 ° -90 °), the other is Δ
θ8(= 45 ° to 67.5 °).
[0196]
In the range of angle θ = 45 ° to 90 °, θmDecreases linearly from 90 ° to 45 ° and θpIncreases linearly from 45 ° to 90 °. θmAnd θpIs the angle θ = 67.5 °, the angle θm= ΘpCross at the point of = 67.5 °, and the magnitude relationship is reversed. θmAnd θpOne is Δθ7The other is Δθ8Belongs to the range.
Next, a circuit configuration according to a fourth embodiment of the present invention will be described. The overall circuit configuration is the same as the circuit of the first embodiment shown in FIG.
[0197]
Since the configurations of the angle α conversion circuit 2 (FIG. 5B) and the trigonometric function / angle conversion circuit 4 (FIG. 9A) are the same as those in the first embodiment, description thereof will be omitted.
[0198]
FIG. 19A is an equivalent circuit diagram showing a configuration of the trigonometric function arithmetic circuit 3 (FIG. 5A) in the fourth embodiment. The circuit configuration of each of the adders A4 to A6, the multiplier M1, and the selectors Sa to Si, the point that the angle θ is input to one terminal of the adder A4, and (+ 45 °) is input to the other terminal, addition The output of the selector Sa is inverted in sign by reverse addressing and inputted to one terminal of the device A5, and (+ 135 °) is inputted to the other terminal. In the multiplier M1, the output of the selector Sd is multiplied by √2. This is the same as the trigonometric function arithmetic circuit (FIG. 6A) in the first embodiment.
[0199]
In the first embodiment, the sine value and the cosine value are calculated using the equations (1A) to (1D). In the fourth embodiment, the sine value and the cosine value are calculated using the equations (4A) to (4D). For calculation, the configuration of the trigonometric function arithmetic circuit 3 is different in the following points.
[0200]
In the trigonometric function arithmetic circuit (FIG. 6A) in the first embodiment, the output of the multiplier M1 is input to one terminal of the adder A6, and the output of the selector Se is input to the other terminal by reverse addressing. It was input with the sign reversed. Further, sine values of 45 ° to 90 ° were recorded in Tables 1 and 2.
[0201]
In the trigonometric function arithmetic circuit (FIG. 19A) in the fourth embodiment, the output of the selector Se is directly input to the other terminal of the adder A6, and the cosines of 45 ° to 90 ° are input to the tables 1 and 2. The value is recorded.
[0202]
FIG. 19B shows a control signal CTL2 (CTL2a, CTL2b, CTL2c) for controlling which of the two input terminals the selectors Sa to Si constituting the trigonometric function arithmetic circuit 3 (FIG. 19A) select. , CTL2d).
[0203]
When the angle θ belongs to the region of 0 ° to 22.5 °, the control signal CTL2b belongs to the region of 22.5 ° to 45 °, and when the control signal CTL2b belongs to the region of 45 ° to 67.5 °. If the control signal CTL2c belongs to the region, and the control signal CTL2d belongs to the region of 67.5 ° to 90 °, the control signal CTL2d is triangular from the control signal generator 22 (FIG. 5B) of the angle α conversion circuit 2. Each is supplied to the function arithmetic circuit 3.
[0204]
FIG. 20A is an equivalent circuit diagram when the angle θ is 0 ° to 22.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 19A) is controlled by the control signal CTL2a.
[0205]
The angle θ is 45 ° added by the adder A4 (θ + 45 °) (θ in the equation (4B)).oIs output). (Θ + 45 °) is directly supplied to the table 1 (T1d), and the sign is inverted by reverse addressing in the adder A5, and 135 ° is added to obtain 135 ° − (θ + 45 °) = (90 ° −θ) ( Θ in equations (4A) and (4B)nIs supplied to the table 2 (T2d).
[0206]
In table 1 (T1d), cos (θ + 45 °) is obtained and output to the multiplier M1.
[0207]
In Table 2 (T2d), cos (90 ° −θ) is obtained and supplied to the output terminal O31 and to the adder A6.
[0208]
After the multiplier M1 multiplies cos (θ + 45 °) by √2, cos (90 ° −θ) is added by the adder A6, and √2cos (θ + 45 °) + cos (90 ° −θ) from the output terminal O32. ) Is supplied.
[0209]
FIG. 20B is an equivalent circuit diagram when the angle θ is 22.5 ° to 45 ° and the trigonometric function arithmetic circuit 3 (FIG. 19A) is controlled by the control signal CTL2b.
[0210]
The angle θ is 45 ° added by the adder A4 (θ + 45 °) (θ in the equation (4B)).oIs output). (Θ + 45 °) is supplied to the table 2 (T2d), and the sign is inverted by reverse addressing in the adder A5, and 135 ° is added to (90 ° −θ) (the expressions (4A) and (4B)) θnIs supplied to the table 1 (T1d).
[0211]
In Table 1 (T1d), cos (90 ° −θ) is obtained, and is directly output to the output terminal O31 and supplied to the adder A6.
[0212]
In Table 2 (T2d), cos (θ + 45 °) is obtained and output to the multiplier M1.
[0213]
After the multiplier M1 multiplies cos (θ + 45 °) by √2, cos (90 ° −θ) is added by the adder A6, and √2cos (θ + 45 °) + cos (90 ° −θ) from the output terminal O32. ) Is supplied.
[0214]
FIG. 20C is an equivalent circuit diagram when the angle θ is 45 ° to 67.5 ° and the trigonometric function arithmetic circuit 3 (FIG. 19A) is controlled by the control signal CTL2c.
[0215]
Angle θ (θ in equations (4C) and (4D)mIs directly supplied to the table 1 (T1d), and the sign is inverted by the reverse addressing in the adder A5, and 135 ° is added (135 ° −θ) (θ in the equation (4D)).pIs supplied to the table 2 (T2d).
[0216]
In Table 1 (T1d), cos θ is obtained and directly output to the output terminal O32 and supplied to the adder A6.
[0217]
In Table 2 (T2d), cos (135 ° −θ) is obtained and output to the multiplier M1.
[0218]
In the multiplier M1, cos (135 ° −θ) is multiplied by √2, and then cosθ is added in the adder A6, and √2cos (135 ° −θ) + cosθ is supplied from the output terminal O31.
[0219]
FIG. 20D is an equivalent circuit diagram when the angle θ is 67.5 ° to 90 ° and the trigonometric function arithmetic circuit 3 (FIG. 19A) is controlled by the control signal CTL2d.
[0220]
Angle θ (θ in equations (4C) and (4D)mIs directly supplied to the table 2 (T2d), and the sign is inverted by the reverse addressing in the adder A5, and 135 ° is added (135 ° −θ) (θ in Expression (4D)).pIs supplied to the table 1 (T1d).
[0221]
In Table 1 (T1d), cos (135 ° −θ) is obtained and supplied to the multiplier M1.
[0222]
In Table 2 (T2d), cos θ is obtained and supplied directly to the output terminal O32 and also to the adder A6.
[0223]
In the multiplier M1, cos (135 ° −θ) is multiplied by √2, then cosθ is added by the adder A6, and √2cos (135 ° −θ) + cosθ is supplied from the output terminal O31.
[0224]
FIG. 21A shows the angle θ with respect to the angle θ.m, Θn, Θo, ΘpIt is the table | surface which summarized how the value of changed. θnAnd θo, ΘmAnd θpIf one value takes a value between 45 ° and 67.5 °, the other takes a value between 67.5 ° and 90 °, and except 67.5 ° does not take the same value. When cosine values in the range of 45 ° to 90 ° are recorded in one table, the formula (4A), (4B), or (4C), (4D) has θn, ΘoOr θmOr θpTherefore, it is necessary to refer to the table twice when obtaining the sine value and cosine value of the angle θ. By dividing the table for recording cosine values in the range of 45 ° to 67.5 ° and 67.5 ° to 90 ° into two, the sine value and cosine value of the angle θ can be obtained simultaneously.
[0225]
FIG. 21 (B) is a diagram for calculating the sine and cosine values of the angle θm, Θn, Θo, ΘpIt is the chart which summarized which value of which is used based on Formula (4A)-(4D).
[0226]
In the fourth embodiment, cosine values (1 / √2 (about 0.7) to 0) in the range of 45 ° to 90 ° are recorded in the table. B in formula (2)1Can take both values of 0 and 1, so that the effect of reducing the storage capacity required for the table by 1 bit as in the second embodiment cannot be obtained.
[0227]
The fourth embodiment has been described above.
[0228]
In the embodiment, the case where a sine value or cosine value in the range of 0 ° to 45 ° or 45 ° to 90 ° is recorded in the table of the trigonometric function arithmetic circuit 3 has been described, but (45 ° × n) to (45 ° ×). A sine value or cosine value in the range of (n + 1)) (n = 2 to 7) may be recorded in the table. That is, a half sine value or cosine value of any one of the first to fourth quadrants may be used.
[0229]
In the embodiment, the case where two tables in which the sine value or cosine value of the quarter quadrant is recorded is described, but the sine value or cosine value of the half quadrant is recorded in the dual port memory. The output from the selector Sa is input to one input terminal of the dual port memory, and the output from the adder A5 is input to the other input terminal to obtain the sine value or cosine value for each input value. You may make it output.
[0230]
Further, in the embodiment, a case has been described in which the selectors Sf, Sg, Sh, and Si are used to output sin θ from the output terminal O31 and cos θ from the output terminal O32, but the outputs of Table 1 and Table 2 and the output of the adder A6 May be output by another method.
[0231]
Although the present invention has been described with reference to the embodiments, the present invention is not limited thereto. It will be apparent to those skilled in the art that various modifications, improvements, combinations, and the like can be made.
[0232]
【The invention's effect】
By recording the sine value or cosine value for 45 ° in the table, the sine value and cosine value at an arbitrary angle can be obtained, so that the capacity of the table can be reduced.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an internal configuration of a video encoder.
2A is a graph showing the angle α on the horizontal axis and the value of sin α on the vertical axis, and FIG. 2B shows the angle α on the horizontal axis and the value of cos α on the vertical axis. It is a graph.
FIG. 3 is a diagram for explaining a method of obtaining a sine value and a cosine value of an angle α belonging to the second to fourth quadrants from a sine value and a cosine value of an angle θ belonging to the first quadrant.
4 is an angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ in the case of angle θ = 0 ° to 45 ° on the vertical axis.b= 90 ° -θ and θc= Θ + 45 °, θ when angle θ = 45 ° to 90 °a= Θ and θdIt is the figure which showed the graph of = 135 degree-theta.
FIG. 5A is a block diagram of a circuit for calculating sin α and cos α with respect to an input angle α. FIG. 5B is an equivalent circuit diagram showing the configuration of the angle α conversion circuit 2.
FIG. 6A is an equivalent circuit diagram showing a configuration of the trigonometric function arithmetic circuit 3; 6B is a chart summarizing the control signal CTL2 for controlling the selectors Sa to Si of the trigonometric function arithmetic circuit 3. FIG.
7 is a trigonometric function operation circuit 3 when the angle θ is 0 ° to 22.5 °, 22.5 ° to 45 °, 45 ° to 67.5 °, and 67.5 ° to 90 ° (FIG. 6). (A)) is an equivalent circuit diagram in the case of being controlled by a control signal CTL2.
FIG. 8 (A) shows θ relative to angle θ.a~ ΘdIt is the table | surface which summarized how the value of changed. FIG. 8B is a diagram illustrating how to obtain the sine value and cosine value of the angle θa~ ΘdIt is the table | surface which put together which value of these is used.
FIG. 9A is an equivalent circuit diagram showing a configuration of the trigonometric function / code conversion circuit 4; FIG. 9B is a chart summarizing the control signal CTL1 for controlling the selectors Sj to Sm constituting the trigonometric function / sign conversion circuit 4.
FIG. 10 is an angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ when the angle θ = 0 ° to 45 ° is on the vertical axis.e= Θ and θh= Θ when 45 ° -θ and angle θ = 45 ° -90 °f= 90 ° -θ and θgIt is the figure which showed the graph of = (theta) -45 degrees.
FIG. 11A is an equivalent circuit diagram showing a configuration of a trigonometric function arithmetic circuit 3 in the second embodiment. FIG. 11B is a table summarizing the control signal CTL2 for controlling the selectors Sa to Si of the trigonometric function arithmetic circuit 3 (FIG. 11A).
12 is a trigonometric function arithmetic circuit 3 (FIG. 11) when the angle θ is 0 ° to 22.5 °, 22.5 ° to 45 °, 45 ° to 67.5 °, and 67.5 ° to 90 °. (A)) is an equivalent circuit diagram in the case of being controlled by a control signal CTL2.
FIG. 13 (A) shows θ with respect to angle θ.e~ ΘhIt is the table | surface which summarized how the value of changed. FIG. 13 (B) shows the θe~ ΘhIt is the table | surface which put together which value of these is used.
FIG. 14 is an angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ when the angle θ = 0 ° to 45 ° is on the vertical axis.i= Θ and θl= Θ when 45 ° -θ and angle θ = 45 ° -90 °k= Θ-45 ° and θjIt is the figure which showed the graph of = 90 degree-theta.
FIG. 15A is an equivalent circuit diagram showing a configuration of a trigonometric function arithmetic circuit 3 in the third embodiment. FIG. 15B is a chart summarizing the control signal CTL2 for controlling the selectors Sa to Si of the trigonometric function arithmetic circuit 3 (FIG. 15A).
FIG. 16 is a trigonometric function arithmetic circuit 3 (FIG. 15) when the angle θ is 0 ° to 22.5 °, 22.5 ° to 45 °, 45 ° to 67.5 °, and 67.5 ° to 90 °. (A)) is an equivalent circuit diagram in the case of being controlled by a control signal CTL2.
FIG. 17A shows θ with respect to angle θ.i~ ΘlIt is the table | surface which summarized how the value of changed. FIG. 17B is a diagram illustrating how to obtain a sine value and a cosine value of the angle θi~ ΘlIt is the table | surface which put together which value of these is used.
18 is an angle θ in the range of 0 ° to 90 ° on the horizontal axis, and θ in the case of angle θ = 0 ° to 45 ° on the vertical axis.o= Θ + 45 ° and θn= Θ in the case of 90 ° −θ and angle θ = 45 ° to 90 °p= Θ and θmIt is the figure which showed the graph of = 135 degree-theta.
FIG. 19A is an equivalent circuit diagram showing a configuration of a trigonometric function arithmetic circuit 3 in the fourth embodiment. FIG. 19B is a table summarizing the control signal CTL2 for controlling the selectors Sa to Si of the trigonometric function arithmetic circuit 3 (FIG. 19A).
20 is a trigonometric function arithmetic circuit 3 when the angle θ is 0 ° to 22.5 °, 22.5 ° to 45 °, 45 ° to 67.5 °, and 67.5 ° to 90 ° (FIG. 19). (A)) is an equivalent circuit diagram in the case of being controlled by a control signal CTL2.
FIG. 21A shows θ with respect to angle θ.m~ ΘpIt is the table | surface which summarized how the value of changed. FIG. 21 (B) is a diagram for calculating the sine value and cosine value of the angle θm~ ΘpIt is the table | surface which put together which value of these is used.
[Explanation of symbols]
Y Luminance signal
Cr, Cb        Color difference signal
C Conveyance color signal
N composite signal
2 Angle α conversion circuit
21 Angle α classifier
22 Control signal generator
3 Trigonometric function arithmetic circuit
4 Trigonometric function / Sign conversion circuit
41, 42 Inverter
A0-A6 adder
M1 multiplier
I21, I31, I41, I42 input terminals
O21, O31, O32, O41, O42 output terminals
Sa ~ Sm selector
Sa1-Sm1, Sa2-Sm2 selector input terminals
T1a-T1d Table 1
T2a to T2d Table 2

Claims (7)

1象限に属する角度θを第1の角度として入力する入力端子と、
第1の角度に第1の所定値を加算して第2の角度として出力する第1の加算器と、
一方の入力端子には第1の角度を入力し、他方の入力端子には第2の角度を入力して、いずれかの入力端子を選択する第1のセレクタと、
前記第1のセレクタから出力された第1の角度又は第2の角度を符号反転し、第2の所定値を加算して第3の角度又は第4の角度として出力する第2の加算器と、
前記第1のセレクタから出力された第1又は第2の角度に対する第1の正弦値又は余弦値を求め、前記第2の加算器から出力された第3又は第4の角度に対する第2の正弦値又は余弦値を求めて出力するテーブルと、
前記テーブルから出力される第1の正弦値又は余弦値を一方の入力端子に入力し、前記テーブルから出力される第2の正弦値又は余弦値を他方の入力端子に入力して、いずれかの入力端子を選択する第2及び第3のセレクタと、
前記第2のセレクタの出力に第3の所定値を乗算して出力する乗算器と、
前記乗算器の出力に、第3のセレクタの出力を加算して出力する第3の加算器と、
前記第1又は第2の正弦値又は余弦値と、前記第3の加算器の出力からsinθ及びcosθを求めて出力する出力端子と
を有するビデオエンコーダ。
An input terminal for inputting an angle θ belonging to one quadrant as a first angle;
A first adder that adds a first predetermined value to the first angle and outputs the result as a second angle;
A first selector that inputs a first angle to one input terminal, a second angle to the other input terminal, and selects one of the input terminals;
A second adder that inverts the sign of the first angle or the second angle output from the first selector, adds a second predetermined value, and outputs the result as a third angle or a fourth angle; ,
A first sine value or cosine value for the first or second angle output from the first selector is obtained, and a second sine for the third or fourth angle output from the second adder. A table for obtaining and outputting a value or cosine value;
The first sine value or cosine value output from the table is input to one input terminal, the second sine value or cosine value output from the table is input to the other input terminal, and either Second and third selectors for selecting input terminals;
A multiplier for multiplying the output of the second selector by a third predetermined value and outputting the result,
A third adder for adding the output of the third selector to the output of the multiplier and outputting it;
A video encoder comprising: the first or second sine value or cosine value; and an output terminal that obtains and outputs sin θ and cos θ from the output of the third adder.
前記テーブルが、45°〜90°の正弦値又は0°〜45°の余弦値を記憶するテーブルであり、
前記第3の加算器が、前記乗算器の出力に、第3のセレクタの出力を符号反転して加算する加算器である
請求項1記載のビデオエンコーダ。
The table stores a sine value of 45 ° to 90 ° or a cosine value of 0 ° to 45 °;
The video encoder according to claim 1, wherein the third adder is an adder that adds the output of the third selector to the output of the multiplier with the sign inverted.
前記テーブルが、45°〜90°の正弦値を記憶するテーブルであり、
前記第1の所定値が(+45°)であり、
前記第2の所定値が(+135°)であり、
前記第3の所定値が(√2)である
請求項2記載のビデオエンコーダ。
The table is a table storing sine values of 45 ° to 90 °,
The first predetermined value is (+ 45 °);
The second predetermined value is (+ 135 °);
The video encoder according to claim 2, wherein the third predetermined value is (√2).
前記テーブルが、0°〜45°の余弦値を記憶するテーブルであり、
前記第1の所定値が(−45°)であり、
前記第2の所定値が(+45°)であり、
前記第3の所定値が(√2)である
請求項2記載のビデオエンコーダ。
The table is a table for storing cosine values of 0 ° to 45 °,
The first predetermined value is (−45 °),
The second predetermined value is (+ 45 °);
The video encoder according to claim 2, wherein the third predetermined value is (√2).
前記テーブルが、0°〜45°の正弦値又は45°〜90°の余弦値を記憶するテーブルであり、
前記第3の加算器が、前記乗算器の出力に、第3のセレクタの出力を加算する加算器である
請求項1記載のビデオエンコーダ。
The table stores a sine value of 0 ° to 45 ° or a cosine value of 45 ° to 90 °;
The video encoder according to claim 1, wherein the third adder is an adder that adds the output of the third selector to the output of the multiplier.
前記テーブルが、0°〜45°の正弦値を記憶するテーブルであり、
前記第1の所定値が(−45°)であり、
前記第2の所定値が(+45°)であり、
前記第3の所定値が(√2)である
請求項5記載のビデオエンコーダ。
The table is a table storing sine values of 0 ° to 45 °,
The first predetermined value is (−45 °),
The second predetermined value is (+ 45 °);
6. The video encoder according to claim 5, wherein the third predetermined value is (√2).
前記テーブルが、45°〜90°の余弦値を記憶するテーブルであり、
前記第1の所定値が(+45°)であり、
前記第2の所定値が(+135°)であり、
前記第3の所定値が(√2)である
請求項5記載のビデオエンコーダ。
The table is a table for storing cosine values of 45 ° to 90 °,
The first predetermined value is (+ 45 °);
The second predetermined value is (+ 135 °);
6. The video encoder according to claim 5, wherein the third predetermined value is (√2).
JP2003086080A 2003-03-26 2003-03-26 Video encoder Expired - Fee Related JP3974064B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003086080A JP3974064B2 (en) 2003-03-26 2003-03-26 Video encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003086080A JP3974064B2 (en) 2003-03-26 2003-03-26 Video encoder

Publications (2)

Publication Number Publication Date
JP2004297389A true JP2004297389A (en) 2004-10-21
JP3974064B2 JP3974064B2 (en) 2007-09-12

Family

ID=33400834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003086080A Expired - Fee Related JP3974064B2 (en) 2003-03-26 2003-03-26 Video encoder

Country Status (1)

Country Link
JP (1) JP3974064B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6370320A (en) * 1986-09-11 1988-03-30 ドイチエ・アイテイーテイー・インダストリーズ・ゲゼルシヤフト・ミト・ベシユレンクタ・ハフツンク Digital circuit for generating digital sine and cosine function value simultaneously
JPH03237511A (en) * 1990-02-13 1991-10-23 Kyocera Corp Trigonometric function generator
JPH07175636A (en) * 1993-12-16 1995-07-14 Fuji Film Micro Device Kk Digital trigonometric function generating circuit
JPH09265331A (en) * 1996-03-28 1997-10-07 Jisedai Digital Television Hoso Syst Kenkyusho:Kk Orthogonal function generation circuit
JP2000112715A (en) * 1998-10-05 2000-04-21 Nippon Telegr & Teleph Corp <Ntt> Sine/cosine arithmetic circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6370320A (en) * 1986-09-11 1988-03-30 ドイチエ・アイテイーテイー・インダストリーズ・ゲゼルシヤフト・ミト・ベシユレンクタ・ハフツンク Digital circuit for generating digital sine and cosine function value simultaneously
JPH03237511A (en) * 1990-02-13 1991-10-23 Kyocera Corp Trigonometric function generator
JPH07175636A (en) * 1993-12-16 1995-07-14 Fuji Film Micro Device Kk Digital trigonometric function generating circuit
JPH09265331A (en) * 1996-03-28 1997-10-07 Jisedai Digital Television Hoso Syst Kenkyusho:Kk Orthogonal function generation circuit
JP2000112715A (en) * 1998-10-05 2000-04-21 Nippon Telegr & Teleph Corp <Ntt> Sine/cosine arithmetic circuit

Also Published As

Publication number Publication date
JP3974064B2 (en) 2007-09-12

Similar Documents

Publication Publication Date Title
EP0378590A4 (en) Digital signal processor for providing for timbral change in arbitrary audio signals
JP3974064B2 (en) Video encoder
JPS6398699A (en) Electronic musical instrument
JPH0713793B2 (en) Musical sound generator
JPS648360B2 (en)
JPH10320524A (en) Look-up table device and image generator
JP2818345B2 (en) Digital sine wave generation circuit
JP4497116B2 (en) Signal generation circuit
JPH01321574A (en) Memory device
JP2009260689A (en) Sound reproducing device, and sound reproducing method
JP2795619B2 (en) Tone generator
JPH07106855A (en) Ssb modulator
JPS6093493A (en) Musical sound formation apparatus
JPH0353611A (en) Infinite phase shifter
JPH0736490A (en) Higher harmonic adding circuit
JPS58128496U (en) musical tone synthesizer
JPH04286207A (en) Optional waveform generator
JPH06334439A (en) Signal generating circuit
JPH02135894A (en) Right angle two-phase modulator
JP2009260690A (en) Sound reproducing device, and sound reproducing method
Cook et al. Audio Effects
JPH03237511A (en) Trigonometric function generator
JPH09171057A (en) Multiple test signal generator
JPS6142695A (en) Musical sound synthesization
JPS6145294A (en) Musical sound synthesization

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050221

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20060621

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070531

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: 20070612

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070613

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100622

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100622

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110622

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees