JPH0621820A - Sign magnitude outputting device - Google Patents

Sign magnitude outputting device

Info

Publication number
JPH0621820A
JPH0621820A JP4172351A JP17235192A JPH0621820A JP H0621820 A JPH0621820 A JP H0621820A JP 4172351 A JP4172351 A JP 4172351A JP 17235192 A JP17235192 A JP 17235192A JP H0621820 A JPH0621820 A JP H0621820A
Authority
JP
Japan
Prior art keywords
output
waveform data
bit
serial
parallel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP4172351A
Other languages
Japanese (ja)
Inventor
Naoaki Ito
直明 伊藤
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP4172351A priority Critical patent/JPH0621820A/en
Publication of JPH0621820A publication Critical patent/JPH0621820A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To realize the sign magnitude output device outputting a waveform signal with excellent S/N and less cross distortion by means of one system of parallel/serial converter by applying D/A conversion to digital waveform data separately for its positive range and its negative range and mixing analog signals obtained as the result at an analog circuit. CONSTITUTION:A computing element 101 outputs waveform data X as they are when the data are positive and outputs the result of subtraction of a value of a least significant bit digit from a value '1' when the data are negative. A parallel serial converter 102 converts parallel waveform data comprising other bits than a most significant bit of parallel waveform data PDT outputted from the computing element 101 into serial waveform data. Then a data converter 103 applies logic arithmetic operation to the serial waveform data to generate outputs 1, 2 for 1st and 2nd D/A converters.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、デジタル波形データを
正側範囲と負側範囲に分けて別々にD/A変換を行い、
その結果得られるアナログ信号をアナログ回路で混合す
ることによりクロス歪み及びS/Nの優れた波形信号を
出力するサインマグニチュード出力装置に関する。
BACKGROUND OF THE INVENTION The present invention divides digital waveform data into a positive range and a negative range and performs D / A conversion separately,
The present invention relates to a sine magnitude output device that outputs a waveform signal with excellent cross distortion and S / N by mixing the resulting analog signal in an analog circuit.

【0002】[0002]

【従来の技術】電子楽器においてデジタル楽音波形デー
タを楽音信号として発音する場合などのように、デジタ
ル波形データをアナログ波形信号として出力する場合
に、D/A変換時の量子化ビット数を例えば16ビット
から17ビットに増加させたい場合に、17ビットのD
/A変換器を1個使用するより16ビットのD/A変換
器を2個使用した方が装置全体を安価に構成することが
できる。
2. Description of the Related Art When outputting digital waveform data as an analog waveform signal, such as in the case of producing digital musical tone waveform data as a musical tone signal in an electronic musical instrument, the number of quantization bits in D / A conversion is, for example, 16 If you want to increase from 17 bits to 17 bits, D of 17 bits
The use of two 16-bit D / A converters makes it possible to construct the entire apparatus at a lower cost than the use of one A / A converter.

【0003】このように、デジタル波形データを2個の
D/A変換器を使用して出力する方式として、サインマ
グニチュード出力方式と呼ばれる方式が知られている。
この方式は、アナログ波形信号におけるクロス歪みを低
減し、S/Nを向上させることができる。
As described above, as a method of outputting digital waveform data using two D / A converters, a method called a sine magnitude output method is known.
This method can reduce cross distortion in an analog waveform signal and improve S / N.

【0004】図8を用いてサインマグニチュード出力装
置の基本構成について説明する。図8において、デジタ
ルのパラレルデータである波形データは、まずサインマ
グニチュード演算回路801に入力される。ここでは、
パラレルの波形データが正側と負側の範囲に分けられ、
それぞれの範囲に対して後述するサインマグニチュード
演算が施される。サインマグニチュード演算が施された
正側と負側の波形データは、それぞれシリアルデータで
ある出力1及び出力2に変換され、それぞれD/A変換
器(DAC)802及び803へ出力される。
The basic configuration of the sine magnitude output device will be described with reference to FIG. In FIG. 8, waveform data, which is digital parallel data, is first input to the sine magnitude arithmetic circuit 801. here,
Parallel waveform data is divided into positive side and negative side,
The sine magnitude calculation described later is performed on each range. The waveform data on the positive side and the waveform on the negative side that have been subjected to the sine magnitude calculation are converted into output 1 and output 2 which are serial data, respectively, and are output to D / A converters (DAC) 802 and 803, respectively.

【0005】D/A変換器(DAC)802、803
は、上述の各出力をそれぞれアナログ信号に変換し、可
変抵抗R1及び抵抗R3を介してオペアンプ804に出
力する。オペアンプ804では、抵抗R1の出力電圧値
(出力1に対応する)から抵抗R3の出力電圧値(出力
2に対応する)が減算されて波形信号が出力される。こ
こで、オペアンプ804の出力のゼロ点は、オペアンプ
804の増幅率と抵抗R1、R2、R3、R4によって
定まる。そのため、入力波形データの振幅値が“0”の
場合にオペアンプ804の出力が“0”になるように、
可変抵抗器R1の抵抗値が調整される。
D / A converters (DAC) 802, 803
Converts each of the above outputs into an analog signal and outputs the analog signal to the operational amplifier 804 via the variable resistors R1 and R3. The operational amplifier 804 subtracts the output voltage value of the resistor R3 (corresponding to the output 2) from the output voltage value of the resistor R1 (corresponding to the output 1) and outputs a waveform signal. Here, the zero point of the output of the operational amplifier 804 is determined by the amplification factor of the operational amplifier 804 and the resistors R1, R2, R3, and R4. Therefore, when the amplitude value of the input waveform data is “0”, the output of the operational amplifier 804 becomes “0”.
The resistance value of the variable resistor R1 is adjusted.

【0006】次に、図9の波形図を用いて図8のサイン
マグニチュード出力装置の動作原理について説明する。
まず、入力波形の0〜(+MAX)までの正側の範囲
(図9(a) のA)の値を表現するN+1ビット(例えば
17ビット)のデータのうち、MSBの符号ビットを除
いた下位Nビットは、図8のサインマグニチュード演算
回路801において、図9(b) のA′に示される最小値
(−MAX)〜最大値(+MAX)までの範囲の値を表
現する符号ビットを含むNビット(例えば16ビット)
のデータに変換され、出力1として出力される。それと
共に、出力2として、図9(c) のCに示される最小値
(−MAX)を表現する符号ビットを含むNビットのデ
ータが出力される。
Next, the operation principle of the sine magnitude output device of FIG. 8 will be described with reference to the waveform diagram of FIG.
First, in the N + 1-bit (for example, 17-bit) data expressing the value on the positive side of the input waveform from 0 to (+ MAX) (A in FIG. 9 (a)), the lower order except the MSB sign bit The N bits include a sign bit representing a value in the range from the minimum value (-MAX) to the maximum value (+ MAX) shown by A'in FIG. 9B in the sign magnitude arithmetic circuit 801 in FIG. Bits (eg 16 bits)
Is converted into data and output as output 1. At the same time, as output 2, N-bit data including a code bit representing the minimum value (-MAX) shown in C of FIG. 9C is output.

【0007】一方、入力波形の0〜(−MAX)までの
負側の範囲(図9(a) のB)の値を表現するN+1ビッ
ト(例えば17ビット)のデータのうち、MSBの符号
ビットを除いた下位Nビットは、図8のサインマグニチ
ュード演算回路801において、図9(c) のB′に示さ
れる最小値(−MAX)〜(+MAX)の範囲の値を表
現する符号ビットを含むNビット(例えば16ビット)
のデータに変換され、出力2として出力される。この場
合、波形の凹凸は逆にされるように変換がなされる。そ
れと共に、出力1として、図9(b) のDに示される最小
値(−MAX)を表現する符号ビットを含むNビットの
データが出力される。
On the other hand, the sign bit of the MSB of N + 1 bits (for example, 17 bits) of data representing the value in the negative range (B in FIG. 9A) from 0 to (-MAX) of the input waveform. The lower N bits except for include a sign bit expressing a value in the range of the minimum value (-MAX) to (+ MAX) shown by B'in FIG. 9 (c) in the sine magnitude arithmetic circuit 801 of FIG. N bits (eg 16 bits)
Data and output as output 2. In this case, the conversion is performed so that the unevenness of the waveform is reversed. At the same time, as output 1, N-bit data including a code bit representing the minimum value (-MAX) shown by D in FIG. 9B is output.

【0008】上述の符号ビットを含むNビットのデータ
である出力1と出力2は、それぞれD/A変換器802
と803でD/A変換される。そして、前述のようにオ
ペアンプ804において、図9(b) の出力1に対応する
アナログ信号から図9(c) の出力2に対応するアナログ
信号が減算され、図9(d) に示される出力波形が得られ
る。この出力波形のS/Nは、元のN+1ビットの入力
波形がそのままD/A変換された場合のS/Nと同じで
ある。
Output 1 and output 2, which are N-bit data including the above-mentioned sign bit, are respectively D / A converters 802.
And 803 D / A converted. Then, as described above, in the operational amplifier 804, the analog signal corresponding to the output 2 of FIG. 9 (c) is subtracted from the analog signal corresponding to the output 1 of FIG. 9 (b) to obtain the output shown in FIG. 9 (d). The waveform is obtained. The S / N of this output waveform is the same as the S / N when the original N + 1-bit input waveform is D / A converted as it is.

【0009】以上示したように、波形データの負側の範
囲の値と正側の範囲の値を、それぞれ別々にNビットの
D/A変換器によりアナログ信号に変換した後、アナロ
グ回路によって合成することにより、波形データの負側
の範囲の値から正側の範囲の値までを1個のN+1ビッ
トのD/A変換器によりアナログデータに変換した場合
に比較して、装置全体を安価に構成することができる。
As described above, the value in the negative side range and the value in the positive side range of the waveform data are separately converted into analog signals by the N-bit D / A converter and then combined by the analog circuit. By doing so, the entire apparatus can be made cheaper in comparison with the case where the value in the range on the negative side of the waveform data to the value in the positive side is converted into analog data by one N + 1-bit D / A converter. Can be configured.

【0010】また、上述のサインマグニチュード出力方
式では、入力波形のゼロ点がD/A変換器におけるゼロ
点に対応しなくなるため、D/A変換器のクロス歪みの
発生を抑制することができる。
Further, in the above sine magnitude output method, the zero point of the input waveform does not correspond to the zero point in the D / A converter, so that the occurrence of cross distortion in the D / A converter can be suppressed.

【0011】図10は、図8のサインマグニチュード出
力装置におけるサインマグニチュード演算回路801の
従来例の基本構成図である。演算器1001は、波形デ
ータの正負判定を行ない、正側の範囲と負側の範囲のそ
れぞれの範囲毎に、前述した図9(a) →(b) 、又は図9
(a) →(c) で示される変換動作を行ない、それぞれの変
換結果を正側用パラシリ変換器1002及び負側用パラ
シリ変換器1003に出力する。
FIG. 10 is a basic configuration diagram of a conventional example of the sine magnitude arithmetic circuit 801 in the sine magnitude output device of FIG. The calculator 1001 determines whether the waveform data is positive or negative, and for each range of the positive side range and the negative side range, the above-mentioned FIG. 9 (a) → (b) or FIG.
The conversion operation shown in (a) → (c) is performed, and each conversion result is output to the positive side parallel-serial converter 1002 and the negative side parallel-serial converter 1003.

【0012】正側用パラシリ変換器1002及び負側用
パラシリ変換器1003は、それぞれパラレルデータで
ある変換出力をシリアルデータに変換し、図8の各D/
A変換器802、803に出力する。
The positive-side parallel-serial converter 1002 and the negative-side parallel-serial converter 1003 respectively convert the conversion output, which is parallel data, into serial data, and each D / D in FIG.
It outputs to the A converters 802 and 803.

【0013】[0013]

【発明が解決しようとする課題】しかし、上述した図8
のサインマグニチュード演算回路801に関する従来例
では、波形データを出力するために2系統のパラレル−
シリアル変換器が必要になるため、その回路の規模が大
きくなり、コストアップも招いてしまうという問題点を
有している。
However, the above-mentioned FIG.
In the conventional example related to the sine magnitude arithmetic circuit 801 of FIG.
Since a serial converter is required, the scale of the circuit becomes large, which causes a problem of cost increase.

【0014】本発明の課題は、サインマグニチュード演
算を1系統のパラレル−シリアル変換器で実行可能とす
ることにある。
An object of the present invention is to enable the sine magnitude calculation to be executed by one system of parallel-serial converter.

【0015】[0015]

【課題を解決するための手段】本発明の第1の態様は、
以下の構成を有する。まず、所定数のビットからなる楽
音波形データなどの入力パラレル波形データについて、
その入力パラレル波形データが正の符号を有する場合に
はそれをそのまま出力し、その入力パラレル波形データ
が負の符号を有する場合にはそれからその最下位ビット
の桁で値“1”を減算しその減算結果を出力する演算手
段を有する。この手段は、汎用のプロセッサ又は専用の
ハードウエア回路によって実現される。
The first aspect of the present invention is as follows.
It has the following configuration. First, regarding input parallel waveform data such as tone waveform data consisting of a predetermined number of bits,
If the input parallel waveform data has a positive sign, it is output as it is, and if the input parallel waveform data has a negative sign, the value “1” is subtracted from the digit of the least significant bit, and It has a calculation means for outputting the subtraction result. This means is realized by a general-purpose processor or a dedicated hardware circuit.

【0016】次に、演算手段から出力されるパラレル波
形データの最上位ビット以外のビットからなるパラレル
波形データをシリアル波形データに変換するパラレル/
シリアル変換手段を有する。この手段は、例えば、並列
入力/直列出力タイプのシフトレジスタである。
Next, a parallel / parallel converter for converting parallel waveform data composed of bits other than the most significant bit of the parallel waveform data output from the arithmetic means into serial waveform data.
It has a serial conversion means. This means is, for example, a parallel input / serial output type shift register.

【0017】また、入力パラレル波形データが正の符号
を有する場合には、パラレル/シリアル変換手段から出
力されるシリアル波形データの各ビットのうち、入力パ
ラレル波形データの最上位ビットより1ビット下位のビ
ットに対応するビットについてはその値を反転して第1
の出力シリアル波形データとして出力し、そのビット以
外のビットはそのまま第1の出力シリアル波形データと
して順次出力し、入力パラレル波形データが負の符号を
有する場合には、第1の出力シリアル波形データとして
入力パラレル波形データの最上位ビットより1ビット下
位のビットに対応するビットが値“1”であってそのビ
ット以外のビットは値“0”である各ビットを順次出力
する第1の出力手段を有する。この手段は、例えば、入
力パラレル波形データの符号を示すその最上位ビットの
値と、パラレル/シリアル変換手段から出力されるシリ
アル波形データの各ビット位置を示すタイミング信号に
基づいて動作する論理回路により実現される。
Further, when the input parallel waveform data has a positive sign, of each bit of the serial waveform data output from the parallel / serial conversion means, it is one bit lower than the most significant bit of the input parallel waveform data. For the bit corresponding to the bit, the value is inverted and the first
Output serial waveform data, and the bits other than that bit are sequentially output as they are as the first output serial waveform data. When the input parallel waveform data has a negative sign, it is output as the first output serial waveform data. A first output means for sequentially outputting each bit in which the bit corresponding to the bit one bit lower than the most significant bit of the input parallel waveform data has the value "1" and the other bits have the value "0" Have. This means uses, for example, a logic circuit that operates based on the value of the most significant bit indicating the sign of the input parallel waveform data and the timing signal indicating each bit position of the serial waveform data output from the parallel / serial conversion means. Will be realized.

【0018】これと対で、入力パラレル波形データが負
の符号を有する場合には、パラレル/シリアル変換手段
から出力されるシリアル波形データの全ビットを順次反
転した後、その反転されたシリアル波形データの各ビッ
トのうち、入力パラレル波形データの最上位ビットより
1ビット下位のビットに対応するビットについてはその
値を反転して第2の出力シリアル波形データとして出力
し、そのビット以外のビットはそのまま第2の出力シリ
アル波形データとして順次出力し、入力パラレル波形デ
ータが正の符号を有する場合には、第2の出力シリアル
波形データとして入力パラレル波形データの最上位ビッ
トより1ビット下位のビットに対応するビットが値
“1”であってそのビット以外のビットは値“0”であ
る各ビットを順次出力する第2の出力手段を有する。こ
の手段は、例えば、第1の出力手段と同様の論理回路に
より実現される。
In contrast to this, when the input parallel waveform data has a negative sign, all the bits of the serial waveform data output from the parallel / serial conversion means are sequentially inverted, and then the inverted serial waveform data is inverted. For each bit corresponding to the bit one bit lower than the most significant bit of the input parallel waveform data, the value is inverted and output as the second output serial waveform data, and the other bits are left as they are. When the input parallel waveform data is sequentially output as the second output serial waveform data and the input parallel waveform data has a positive sign, the second output serial waveform data corresponds to a bit one bit lower than the most significant bit of the input parallel waveform data. The bits that have the value "1" and the other bits have the value "0" are sequentially output. That a second output means. This means is realized by, for example, a logic circuit similar to the first output means.

【0019】更に、第1の出力シリアル波形データを第
1のアナログ波形信号に変換する第1のデジタル/アナ
ログ変換手段を有する。これと対で、第2の出力シリア
ル波形データを第2のアナログ波形信号に変換する第2
のデジタル/アナログ変換手段を有する。
Further, it has a first digital / analog converting means for converting the first output serial waveform data into a first analog waveform signal. Paired with this, a second output serial waveform data is converted into a second analog waveform signal by a second
It has digital / analog conversion means.

【0020】そして、第1のアナログ波形信号から第2
のアナログ波形信号を減算しその減算結果を出力アナロ
グ波形信号として出力するアナログ波形演算手段を有す
る。この手段は、例えば、演算増幅器によって実現され
る。
Then, from the first analog waveform signal to the second
Of analog waveform signals and outputs the result of the subtraction as an output analog waveform signal. This means is realized, for example, by an operational amplifier.

【0021】次に、本発明の第2の態様は、以下の構成
を有する。まず、所定数のビットからなる楽音波形デー
タなどの入力パラレル波形データについて、その入力パ
ラレル波形データが正の符号を有する場合にはそれをそ
のまま出力し、その入力パラレル波形データが負の符号
を有する場合にはその負の入力パラレル波形データの符
号を反転しそれと同じ振幅を有する正の符号を有するパ
ラレル波形データを演算し出力する演算手段を有する。
この手段は、汎用のプロセッサ又は専用のハードウエア
回路によって実現される。
Next, the second aspect of the present invention has the following configuration. First, for input parallel waveform data such as tone waveform data consisting of a predetermined number of bits, if the input parallel waveform data has a positive sign, it is output as it is, and the input parallel waveform data has a negative sign. In some cases, it has a calculating means for inverting the sign of the negative input parallel waveform data and calculating and outputting parallel waveform data having a positive sign having the same amplitude as that.
This means is realized by a general-purpose processor or a dedicated hardware circuit.

【0022】次に、演算手段から出力されるパラレル波
形データの最上位ビット以外のビットからなるパラレル
波形データをシリアル波形データに変換するパラレル/
シリアル変換手段を有する。
Next, the parallel / parallel data for converting the parallel waveform data composed of bits other than the most significant bit of the parallel waveform data output from the arithmetic means into serial waveform data.
It has a serial conversion means.

【0023】また、パラレル/シリアル変換手段から出
力されるシリアル波形データの各ビットのうち、入力パ
ラレル波形データの最上位ビットより1ビット下位のビ
ットに対応するビットについてはその値を反転して出力
し、そのビット以外のビットはそのまま順次出力する論
理演算手段を有する。
Of the bits of the serial waveform data output from the parallel / serial conversion means, the bit corresponding to the bit one bit lower than the most significant bit of the input parallel waveform data is inverted and output. However, it has a logical operation means for sequentially outputting the bits other than that bit as they are.

【0024】更に、入力パラレル波形データが正の符号
を有する場合には、第1の出力シリアル波形データとし
て論理演算手段から出力されるシリアル波形データの各
ビットを順次出力し、入力パラレル波形データが負の符
号を有する場合には、第1の出力シリアル波形データと
して入力パラレル波形データの最上位ビットより1ビッ
ト下位のビットに対応するビットが値“1”であってそ
のビット以外のビットは値“0”である各ビットを順次
出力する第1の出力手段を有する。
Further, when the input parallel waveform data has a positive sign, each bit of the serial waveform data output from the logical operation means is sequentially output as the first output serial waveform data, and the input parallel waveform data becomes When it has a negative sign, the bit corresponding to the bit one bit lower than the most significant bit of the input parallel waveform data as the first output serial waveform data is the value "1" and the other bits are the values. It has a first output means for sequentially outputting each bit which is "0".

【0025】これと対で、入力パラレル波形データが正
の符号を有する場合には、第2の出力シリアル波形デー
タとして入力パラレル波形データの最上位ビットより1
ビット下位のビットに対応するビットが値“1”であっ
てそのビット以外のビットは値“0”である各ビットを
順次出力し、入力パラレル波形データが負の符号を有す
る場合には、第2の出力シリアル波形データとして論理
演算手段から出力されるシリアル波形データの各ビット
を順次出力する第2の出力手段を有する。
On the other hand, when the input parallel waveform data has a positive sign, it is 1 from the most significant bit of the input parallel waveform data as the second output serial waveform data.
When the bits corresponding to the lower bits of the bits have the value “1” and the bits other than the bits have the value “0” are sequentially output, and the input parallel waveform data has a negative sign, Second output means for sequentially outputting each bit of the serial waveform data output from the logical operation means as the second output serial waveform data.

【0026】そして、本発明の第1の態様と同様の第1
及び第2のデジタル/アナログ変換手段と、アナログ波
形演算手段とを有する。
Then, a first similar to the first aspect of the present invention
And a second digital / analog converting means and an analog waveform calculating means.

【0027】[0027]

【作用】サインマグニチュード演算では、入力パラレル
波形データが負の符号を有する場合に、その負の入力パ
ラレル波形データの符号を反転しそれと同じ振幅を有す
る正の符号を有するパラレル波形データを演算する処理
が必要であるが、本発明の第1の態様では、上述の演算
の一部である負の入力パラレル波形データについてその
最下位ビットの桁で値“1”を減算しその減算結果を出
力する演算を、パラレル/シリアル変換処理の前に行う
ことにより、また、本発明の第2の態様では、上述の演
算の全部をパラレル/シリアル変換処理の前に行うこと
により、サインマグニチュード演算のための構成におい
て必要なパラレル/シリアル変換手段の数を1個にする
ことができる。
In the sine magnitude operation, when the input parallel waveform data has a negative sign, the sign of the negative input parallel waveform data is inverted and the parallel waveform data having a positive sign having the same amplitude as that is calculated. However, in the first aspect of the present invention, the value “1” is subtracted from the digit of the least significant bit of the negative input parallel waveform data which is a part of the above-described operation, and the subtraction result is output. By performing the operation before the parallel / serial conversion processing, and in the second aspect of the present invention, by performing all the above-described operations before the parallel / serial conversion processing, The number of parallel / serial conversion means required in the configuration can be reduced to one.

【0028】[0028]

【実施例】以下、図面を参照しながら本発明の実施例に
ついて説明する。 <実施例の構成>まず、サインマグニチュード出力装置
の基本構成は、前述した図8と同様であり、その動作原
理も前述した図9と同様である。
Embodiments of the present invention will be described below with reference to the drawings. <Structure of Embodiment> First, the basic structure of the sine magnitude output device is the same as that of FIG. 8 described above, and the operating principle thereof is also the same as that of FIG. 9 described above.

【0029】次に、図1は、本発明による図8のサイン
マグニチュード演算回路801の実施例のブロック図で
ある。図1において、まず、パラレルのデジタルデータ
として入力される波形データXは、演算器101で、そ
の波形の振幅の正負が判定される。その振幅が負である
と判定された波形データXについては、後述する理由に
より、そのデータの最下位ビットの桁で値“1”が減算
される。
Next, FIG. 1 is a block diagram of an embodiment of the sine magnitude arithmetic circuit 801 of FIG. 8 according to the present invention. In FIG. 1, first, in the waveform data X input as parallel digital data, the arithmetic unit 101 determines whether the amplitude of the waveform is positive or negative. For the waveform data X whose amplitude is determined to be negative, the value “1” is subtracted at the digit of the least significant bit of the data for the reason described later.

【0030】次に、波形データXが演算器101で処理
された結果得られるパラレルデータPDTは、パラレル
−シリアル変換器(以後、パラシリ変換器と呼ぶ)10
2でシリアルデータに変換され、更に、データ変換器1
03によって、後述するようにデータ変換される。その
結果、図9(b) 、及び(c) に示す出力1、出力2が、図
8のD/A変換器802、803へそれぞれ出力され
る。
Next, the parallel data PDT obtained as a result of processing the waveform data X by the arithmetic unit 101 is a parallel-serial converter (hereinafter referred to as a parallel-serial converter) 10
It is converted into serial data at 2 and further data converter 1
Data conversion is performed by 03 as described later. As a result, the outputs 1 and 2 shown in FIGS. 9B and 9C are output to the D / A converters 802 and 803 of FIG. 8, respectively.

【0031】図2は、図1のパラシリ変換器102とデ
ータ変換器103の部分の回路構成図であり、パラシリ
変換器102以外の部分は、図1のデータ変換器103
に対応する。なお、図1の演算器101は、図2のパラ
シリ変換器102と、Dフリップフロップ(DFF)2
01の手前に設けられるが、汎用のマイクロプロセッサ
で実現されるため、特には図示されていない。
FIG. 2 is a circuit configuration diagram of the parts of the parallel-serial converter 102 and the data converter 103 of FIG. 1, and the parts other than the parallel-serial converter 102 are the data converter 103 of FIG.
Corresponding to. The arithmetic unit 101 of FIG. 1 includes a parallel-serial converter 102 of FIG. 2 and a D flip-flop (DFF) 2
Although it is provided before 01, it is not shown in the figure because it is realized by a general-purpose microprocessor.

【0032】まず、波形データXが図1の演算器101
で処理された結果出力されるパラレルデータPDTのM
SB(最上位ビット)は、DFF201に取り込まれ
る。一方、パラレルデータPDTの上述の(MSB−
1)ビット目以下のNビットからなるデータは、パラシ
リ変換器102でシリアルデータに変換され、出力Yと
して順次出力される。
First, the waveform data X is the arithmetic unit 101 of FIG.
M of parallel data PDT output as a result of being processed by
SB (most significant bit) is taken into the DFF 201. On the other hand, the parallel data PDT (MSB-
1) The data consisting of N bits from the 1st bit onward is converted into serial data by the parallel-serial converter 102 and sequentially output as the output Y.

【0033】DFF201の出力は、ノア回路(NO
R)203及びインバータ205に入力し、パラシリ変
換器102からのシリアルデータ出力Yは、インバータ
202及びNOR206に入力する。
The output of the DFF 201 is the NOR circuit (NO
R) 203 and the inverter 205, and the serial data output Y from the parallel-serial converter 102 is input to the inverter 202 and the NOR 206.

【0034】NOR203の出力Zは、排他論理和回路
(EOR)204に入力し、NOR206の出力Wは、
EOR207に入力する。サインマグニチュード演算回
路801内の特には図示しない信号発生回路からは、D
FF201にクロックMSBCKが入力し、パラシリ変
換器102に制御信号LDBとクロックPSCKが入力
し、EOR204、207に制御信号MSBINVが入
力する。 <実施例の動作>以上説明した図1及び図2の構成を有
する本発明の実施例の動作について、図3の動作フロー
チャートに沿って説明する。なお、図3の動作フローチ
ャートは、図1及び図2の各部分が実行する動作として
実現される。
The output Z of the NOR 203 is input to the exclusive OR circuit (EOR) 204, and the output W of the NOR 206 is
Input to EOR207. From the signal generation circuit (not shown) in the sine magnitude calculation circuit 801, D
The clock MSBCK is input to the FF 201, the control signal LDB and the clock PSCK are input to the parallel-serial converter 102, and the control signal MSBINV is input to the EORs 204 and 207. <Operation of the Embodiment> The operation of the embodiment of the present invention having the configuration of FIGS. 1 and 2 described above will be described with reference to the operation flowchart of FIG. The operation flowchart of FIG. 3 is realized as an operation executed by each part of FIGS. 1 and 2.

【0035】まず、波形データXの1サンプル分(N+
1ビット)がサインマグニチュード演算回路801内の
演算器101へ入力される(ステップS301)。次
に、演算器101において、その波形データXの符号の
正負が、そのMSB(最上位ビット)の符号により判定
される(ステップS302)。
First, one sample of the waveform data X (N +
1 bit) is input to the arithmetic unit 101 in the sine magnitude arithmetic circuit 801 (step S301). Next, in the arithmetic unit 101, whether the sign of the waveform data X is positive or negative is determined by the sign of the MSB (most significant bit) (step S302).

【0036】ステップS302での判定の結果、波形デ
ータXの符号が正(MSB=0)の場合は、演算器10
1は、波形データXをそのままパラレルデータPDTと
して出力する。
If the sign of the waveform data X is positive (MSB = 0) as a result of the determination in step S302, the calculator 10
1 outputs the waveform data X as it is as parallel data PDT.

【0037】ステップS302での判定の結果、波形デ
ータXの符号が負(MSB=1)の場合は、演算器10
1は、波形データXの最下位ビットの桁で値“1”を減
算し、その減算結果をパラレルデータPDTとして出力
する(ステップS303)。次に、パラレルデータPD
TのMSBは、図4の動作タイミングチャートに示され
るように、MSBの出力タイミングを示すクロックMS
BCKの立ち上がりのタイミングで、他のビットから分
離されてDFF201に取り込まれる(ステップS30
4)。従って、DFF201からは、MSBが正の場合
には“0”が、負の場合には“1”が、それぞれ出力さ
れる。このDFF201の出力値に応じて、パラレルデ
ータPDTの(MSB−1)ビット目以下の(MSB−
1)、(MSB−2)、・・・、(MSB−N)のNビ
ットのデータに対して実行される後述するデータ変換動
作が制御される。
When the sign of the waveform data X is negative (MSB = 1) as a result of the determination in step S302, the calculator 10
1 subtracts the value "1" at the digit of the least significant bit of the waveform data X, and outputs the subtraction result as parallel data PDT (step S303). Next, parallel data PD
The MSB of T is a clock MS that indicates the output timing of the MSB, as shown in the operation timing chart of FIG.
At the rising timing of BCK, it is separated from other bits and taken into the DFF 201 (step S30).
4). Therefore, the DFF 201 outputs "0" when the MSB is positive and outputs "1" when the MSB is negative. According to the output value of the DFF 201, the (MSB-1) th bit or less (MSB-) of the parallel data PDT
1), (MSB-2), ..., (MSB-N), which will be described later, are executed to control the data conversion operation performed on the N-bit data.

【0038】一方、パラレルデータPDTの上述の(M
SB−1)ビット目以下のNビットからなるデータは、
パラシリ変換器102でシリアルデータに変換される
(ステップS305)。即ち、パラシリ変換器102
は、図4の動作タイミングチャートに示されるように、
制御信号LDBがローレベルである期間内のクロックP
SCKの立ち上がりタイミングで、パラレルデータPD
Tの(MSB−1)ビット目以下のNビットを同時に取
り込み、その後の制御信号LDBがハイレベルの期間内
のクロックPSCKの各立ち上がりタイミングで、上述
の取り込んだデータの各ビットを順次シリアルデータ出
力Yとして出力する。
On the other hand, the above-mentioned (M
SB-1) The data consisting of N bits below the 1st bit is
The parallel-serial converter 102 converts the serial data into serial data (step S305). That is, the parallel-serial converter 102
As shown in the operation timing chart of FIG.
The clock P within the period when the control signal LDB is at the low level
Parallel data PD at the rising edge of SCK
N bits below the (MSB-1) th bit of T are taken in at the same time, and at each rising timing of the clock PSCK within the period when the control signal LDB is at a high level thereafter, each bit of the above taken data is serially output as serial data. Output as Y.

【0039】なお、上述のビット数Nは、図8のD/A
変換器802、803での変換ビット数に等しい。この
ように、パラシリ変換器102からは、パラレルデータ
PDTのMSBビット目以下ではなく、(MSB−1)
ビット目以下のデータがシリアルデータとして出力され
る。
The above-mentioned number of bits N is the same as D / A in FIG.
It is equal to the number of conversion bits in the converters 802 and 803. In this way, from the parallel-serial converter 102, not the MSB bit or less of the parallel data PDT, but (MSB-1)
The data below the first bit is output as serial data.

【0040】次に、パラシリ変換器102のデータ出力
Yは、パラレルデータPDTのMSBの符号を示すDF
F201の出力と制御信号MSBINVの値に応じて、
以下に示すようにして、NOR回路203と206の各
出力Z、W及びEXOR204、207の各出力である
出力1と出力2に変換される。ここで、図5は、そのと
きの各信号の状態を示す真理値表である。波形データXの符号が正の場合の動作 まず、符号が正である波形データXに対しては、図3の
ステップS302→S304の処理ルートとして示され
るように、図1の演算器101では何も処理されず、そ
のままパラレルデータPDTとして演算器101から出
力された後、図3のステップS306に相当する処理が
なされる。
Next, the data output Y of the parallel-serial converter 102 is a DF indicating the sign of the MSB of the parallel data PDT.
Depending on the output of F201 and the value of the control signal MSBINV,
As described below, the outputs Z and W of the NOR circuits 203 and 206 and the outputs 1 and 2 of the EXORs 204 and 207 are converted. Here, FIG. 5 is a truth table showing the state of each signal at that time. Operation when the sign of the waveform data X is positive First, for the waveform data X with a positive sign, as shown by the processing route of steps S302 → S304 of FIG. 3, the arithmetic unit 101 of FIG. Is not processed and is output as it is from the arithmetic unit 101 as parallel data PDT, and then the process corresponding to step S306 in FIG. 3 is performed.

【0041】パラレルデータPDTの符号が正の場合に
はDFF201の出力が“0”となる。この場合、NO
R203は、インバータとして機能する。従って、イン
バータ202とNOR203とで、パラシリ変換器10
2からのシリアルデータ出力Yを単に通過させる回路と
なり、NOR203の出力Zは、図5(a) 〜(d) に示さ
れるように、出力Yと同じになる。
When the sign of the parallel data PDT is positive, the output of the DFF 201 becomes "0". In this case, NO
R203 functions as an inverter. Therefore, the inverter 202 and the NOR 203 form the parallel-serial converter 10
The output Z of the NOR 203 becomes the same as the output Y as shown in FIGS. 5 (a) to 5 (d).

【0042】そして、パラレルデータPDTの(MSB
−1)ビット目に対応するシリアルデータYが出力され
ているタイミングでは、前述したように制御信号MSB
INVが“1”となるため(図3参照)、EOR204
はインバータとして機能する。従って、符号が正である
パラレルデータPDXの(MSB−1)ビット目に対応
するシリアルデータYが出力されるタイミングでは、イ
ンバータ202、NOR203、及びEOR204から
なる回路部分は全体としてインバータとして機能し、出
力1として、図5(a),(b) に示されるように、上述の
(MSB−1)ビット目が反転された信号が出力され
る。
The parallel data PDT (MSB
-1) At the timing when the serial data Y corresponding to the 1st bit is output, as described above, the control signal MSB
Since INV becomes “1” (see FIG. 3), EOR204
Functions as an inverter. Therefore, at the timing when the serial data Y corresponding to the (MSB-1) th bit of the parallel data PDX having a positive sign is output, the circuit portion including the inverter 202, the NOR 203, and the EOR 204 functions as an inverter as a whole, As the output 1, as shown in FIGS. 5A and 5B, the signal in which the (MSB-1) th bit is inverted is output.

【0043】また、パラレルデータPDTの(MSB−
2)ビット目以下のビットに対応するシリアルデータY
が出力されているタイミングでは、前述したように制御
信号MSBINVが“0”となるため(図3参照)、E
OR204は信号を単に通過させる回路となる。従っ
て、符号が正であるパラレルデータPDXの(MSB−
2)ビット目以下のビットに対応するシリアルデータY
が出力されるタイミングでは、インバータ202、NO
R203、及びEOR204からなる回路部分は全体と
して単に信号を通過させる回路となり、出力1として、
図5(c),(d) に示されるように、上述の(MSB−2)
ビット目以下の各ビットがそのまま出力される。
Further, the parallel data PDT (MSB-
2) Serial data Y corresponding to the bits below the 1st bit
At the timing when is output, the control signal MSBINV becomes "0" as described above (see FIG. 3).
The OR 204 is a circuit that simply passes a signal. Therefore, the parallel data PDX (MSB-
2) Serial data Y corresponding to the bits below the 1st bit
Is output at the timing when the inverter 202, NO
The circuit portion composed of R203 and EOR204 is a circuit that simply allows a signal to pass, and as an output 1,
As shown in FIGS. 5 (c) and 5 (d), the above (MSB-2)
Each bit from the bit onward is output as it is.

【0044】一方、パラレルデータPDTの符号が正で
DFF201の出力が“0”の場合には、インバータ2
05の出力は“1”となり、NOR206の出力Wは、
図5(a) 〜(d) に示されるように、常に“0”となる。
On the other hand, when the sign of the parallel data PDT is positive and the output of the DFF 201 is "0", the inverter 2
The output of 05 becomes "1", and the output W of NOR 206 is
As shown in FIGS. 5 (a) to 5 (d), it is always "0".

【0045】従って、パラレルデータPDTの(MSB
−1)ビット目に対応するシリアルデータYが出力され
制御信号MSBINVが“1”となるタイミングでは、
EOR207からの出力2は、図5(a),(b) に示される
ように、“1”となる。
Therefore, the parallel data PDT (MSB
-1) At the timing when the serial data Y corresponding to the 1st bit is output and the control signal MSBINV becomes “1”,
The output 2 from the EOR 207 becomes "1" as shown in FIGS. 5 (a) and 5 (b).

【0046】また、パラレルデータPDTの(MSB−
2)ビット目以下のビットに対応するシリアルデータY
が出力され制御信号MSBINVが“0”となるタイミ
ングでは、EOR207からの出力2は、図5(a),(b)
に示されるように、“0”となる。
In addition, the parallel data PDT (MSB-
2) Serial data Y corresponding to the bits below the 1st bit
Is output and the control signal MSBINV becomes “0”, the output 2 from the EOR 207 is as shown in FIGS.
As shown in FIG.

【0047】以上の動作をまとめると、次のようにな
る。今、波形データXは、図9(a) に示したように、
(−MAX)≦X<(+MAX)の範囲の値をとり得る
とし、各値は、MSBの符号ビットを含めてN+1ビッ
ト(例えば17ビット)で表現されるとする。
The above operation is summarized as follows. Now, the waveform data X is, as shown in FIG.
It is assumed that a value in the range of (−MAX) ≦ X <(+ MAX) can be taken, and each value is represented by N + 1 bits (for example, 17 bits) including the sign bit of MSB.

【0048】そして、波形データXの符号が正でそのM
SBが“0”である場合には、波形データXは、図9
(a) のAに示されるように、0≦X<(+MAX)の範
囲の値をとり得る。そして、(MSB−1)ビット目が
“0”から“1”に変化すると、波形データXの値の範
囲は、(+MAX/2未満)から(+MAX/2以上)
に変化する。
The sign of the waveform data X is positive and its M
When SB is “0”, the waveform data X is as shown in FIG.
As shown in A of (a), the value can be in the range of 0 ≦ X <(+ MAX). When the (MSB-1) th bit changes from "0" to "1", the range of the value of the waveform data X is from (less than + MAX / 2) to (+ MAX / 2 or more).
Changes to.

【0049】従って、MSBが分離された後に、(MS
B−1)ビット目が“0”の場合には、それが“1”に
反転されて符号ビットとされ、(MSB−2)ビット目
以下の各ビットはそのまま出力されることにより、波形
データXの0≦X<(+MAX/2)の範囲の値を表現
するN+1ビットのデータのうち、MSBの符号ビット
を除いた下位Nビットは、(−MAX)≦X<0の範囲
の値を表現する符号ビットを含むNビット(例えば16
ビット)のデータに変換される。
Therefore, after the MSB has been separated, (MS
When the (B-1) th bit is "0", it is inverted to "1" to be a sign bit, and each bit from the (MSB-2) th bit and thereafter is output as it is. Of the N + 1-bit data expressing the value of X in the range of 0 ≦ X <(+ MAX / 2), the lower N bits excluding the sign bit of the MSB have a value in the range of (−MAX) ≦ X <0. N bits (for example, 16 bits) including the sign bit to be expressed
Bit) data.

【0050】同様に、MSBが分離された後に、(MS
B−1)ビット目が“1”の場合には、それが“0”に
反転されて符号ビットとされ、(MSB−2)ビット目
以下の各ビットはそのまま出力されることにより、波形
データXの(+MAX/2)≦X<(+MAX)の範囲
の値を表現するN+1ビットのデータのうち、MSBの
符号ビットを除いた下位Nビットは、0≦X<(+MA
X)の範囲の値を表現する符号ビットを含むNビットの
データに変換される。
Similarly, after the MSB has been separated, (MS
When the (B-1) th bit is "1", it is inverted to "0" to be a sign bit, and each bit from the (MSB-2) th bit and thereafter is output as it is. Of the N + 1-bit data representing the value of X in the range of (+ MAX / 2) ≦ X <(+ MAX), the lower N bits excluding the sign bit of the MSB are 0 ≦ X <(+ MA
X) is converted into N-bit data including a sign bit expressing a value in the range.

【0051】上述のように、波形データXの正側の範囲
(図9(a) のA)の値を表現するN+1ビットのデータ
のうち、MSBの符号ビットを除いた下位Nビットは、
図9(b) のA´で示される範囲の値を表現する符号ビッ
トを含むNビットのデータに変換されて、出力1として
出力される。この場合、波形データXのN+1ビットの
データのうち、MSBの符号ビットを除いた下位Nビッ
トにより表現される情報は、出力1を表現する符号ビッ
トを含むNビットにより表現される情報としてそのまま
保存され、また、MSBの符号ビットにより表現される
情報は、出力1を選択するための情報として保存され
る。従って、上述の変換動作において、元の波形データ
Xの情報量は失われていない。
As described above, the lower N bits excluding the sign bit of the MSB in the N + 1-bit data expressing the positive range (A in FIG. 9 (a)) of the waveform data X are:
The data is converted into N-bit data including a code bit that represents the value in the range indicated by A'in FIG. In this case, of the N + 1-bit data of the waveform data X, the information represented by the lower N bits excluding the MSB code bit is stored as it is as the information represented by the N bits including the code bit representing the output 1. The information represented by the sign bit of the MSB is stored as the information for selecting the output 1. Therefore, in the above conversion operation, the information amount of the original waveform data X is not lost.

【0052】上述の変換動作と共に、出力2としては、
(MSB−1)ビット目が符号ビット“1”とされ、
(MSB−2)ビット目以下の各ビットは“0”として
出力されることにより、最小値(−MAX)が符号ビッ
トを含むNビットのデータとして出力される(図9(c)
のC)。波形データXの符号が負の場合の動作 次に、符号が負である波形データXに対しては、図3の
ステップS302→S303→S304の処理ルートと
して示されるように、図1の演算器101において、波
形データXの最下位ビットの桁で値“1”が減算され、
その減算結果がパラレルデータPDTとして出力され
る。
Along with the above conversion operation, the output 2 is
The (MSB-1) th bit is the code bit "1",
Since the bits from the (MSB-2) th bit onward are output as "0", the minimum value (-MAX) is output as N-bit data including the sign bit (FIG. 9 (c)).
C). Operation when the sign of the waveform data X is negative Next, for the waveform data X with a negative sign, as shown as the processing route of steps S302 → S303 → S304 of FIG. At 101, the value “1” is subtracted at the least significant bit of the waveform data X,
The subtraction result is output as parallel data PDT.

【0053】パラレルデータPDTの符号が負の場合に
はDFF201の出力が“1”となる。この場合、NO
R206はインバータとして機能し、NOR206の出
力Wは、図5(e) 〜(f) に示されるように、パラシリ変
換器102からのシリアルデータ出力Yが反転されたも
のになる(ステップS307)。
When the sign of the parallel data PDT is negative, the output of the DFF 201 becomes "1". In this case, NO
The R206 functions as an inverter, and the output W of the NOR206 becomes an inverted version of the serial data output Y from the parallel-serial converter 102 as shown in FIGS. 5 (e) to (f) (step S307).

【0054】以上の演算器101における減算動作とN
OR206における全ビットの反転動作によって、符号
が負の波形データXの値をそれと絶対値が等しい正の値
に変換する動作が実現される。
The subtraction operation in the arithmetic unit 101 and N
The operation of inverting all the bits in the OR 206 realizes the operation of converting the value of the waveform data X whose sign is negative into a positive value whose absolute value is equal to that.

【0055】上述の動作の後、図3のステップS308
に相当する処理がなされる。まず、パラレルデータPD
Tの(MSB−1)ビット目に対応するシリアルデータ
Yが出力されているタイミングでは、前述のように制御
信号MSBINVが“1”となるため(図3参照)、E
OR207はインバータとして機能する。従って、符号
が負であるパラレルデータPDXの(MSB−1)ビッ
ト目に対応するシリアルデータYが出力されるタイミン
グでは、出力2として、図5(a),(b)に示されるよう
に、シリアルデータYに対応するNOR206の出力W
が更に反転された信号が出力される。
After the above operation, step S308 in FIG.
The process corresponding to is performed. First, parallel data PD
At the timing at which the serial data Y corresponding to the (MSB-1) th bit of T is output, the control signal MSBINV becomes "1" as described above (see FIG. 3).
The OR 207 functions as an inverter. Therefore, at the timing when the serial data Y corresponding to the (MSB-1) th bit of the parallel data PDX having a negative sign is output, as the output 2, as shown in FIGS. 5 (a) and 5 (b), Output W of NOR 206 corresponding to serial data Y
Is further inverted and the signal is output.

【0056】また、パラレルデータPDTの(MSB−
2)ビット目以下のビットに対応するシリアルデータY
が出力されているタイミングでは、前述したように制御
信号MSBINVが“0”となるため(図3参照)、E
OR207は信号を単に通過させる回路となる。従っ
て、符号が負であるパラレルデータPDXの(MSB−
2)ビット目以下のビットに対応するシリアルデータY
が出力されるタイミングでは、出力2として、図5(g),
(h) に示されるように、NOR206の出力Wがそのま
ま出力される。一方、パラレルデータPDTの符号が負
でDFF201の出力が“1”の場合には、NOR20
3の出力Zは、図5(e) 〜(h) に示されるように、常に
“0”となる。
Further, the parallel data PDT (MSB-
2) Serial data Y corresponding to the bits below the 1st bit
At the timing when is output, the control signal MSBINV becomes "0" as described above (see FIG. 3).
The OR 207 is a circuit that simply passes the signal. Therefore, the parallel data PDX with a negative sign (MSB-
2) Serial data Y corresponding to the bits below the 1st bit
At the timing when is output, the output 2 is shown in FIG.
As shown in (h), the output W of the NOR 206 is output as it is. On the other hand, when the sign of the parallel data PDT is negative and the output of the DFF 201 is “1”, the NOR 20
The output Z of 3 is always "0" as shown in FIGS. 5 (e) to 5 (h).

【0057】従って、パラレルデータPDTの(MSB
−1)ビット目に対応するシリアルデータYが出力され
制御信号MSBINVが“1”となるタイミングでは、
EOR204からの出力1は、図5(e),(f) に示される
ように、“1”となる。
Therefore, the parallel data PDT (MSB
-1) At the timing when the serial data Y corresponding to the 1st bit is output and the control signal MSBINV becomes “1”,
The output 1 from the EOR 204 becomes "1" as shown in FIGS. 5 (e) and 5 (f).

【0058】また、パラレルデータPDTの(MSB−
2)ビット目以下のビットに対応するシリアルデータY
が出力され制御信号MSBINVが“0”となるタイミ
ングでは、EOR204からの出力1は、図5(g),(h)
に示されるように、“0”となる。
In addition, the parallel data PDT (MSB-
2) Serial data Y corresponding to the bits below the 1st bit
Is output and the control signal MSBINV becomes “0”, the output 1 from the EOR 204 is as shown in FIGS.
As shown in FIG.

【0059】以上の動作をまとめると、次のようにな
る。今、波形データXは、図9(a) に示したように、
(−MAX)≦X<(+MAX)の範囲の値をとり得る
とし、各値は、MSBの符号ビットを含めてN+1ビッ
ト(例えば17ビット)で表現されるとする。
The above operation is summarized as follows. Now, the waveform data X is, as shown in FIG.
It is assumed that a value in the range of (−MAX) ≦ X <(+ MAX) can be taken, and each value is represented by N + 1 bits (for example, 17 bits) including the sign bit of MSB.

【0060】そして、波形データXの符号が負でそのM
SBが“1”である場合には、波形データXは、図9
(a) のBに示されるように、(−MAX)≦X<0の範
囲の値をとり得る。
The sign of the waveform data X is negative and its M
When SB is “1”, the waveform data X is as shown in FIG.
As shown in B of (a), a value in the range of (−MAX) ≦ X <0 can be taken.

【0061】そして、(MSB−1)ビット目が“1”
から“0”に変化すると、元のデータ値は、(−MAX
/2より大)から(−MAX/2以下)に変化する。従
って、演算器101によって−1され、MSBが分離さ
れると共に(MSB−1)ビット目以下の全ビットが反
転された後に、元の波形データXの(MSB−1)ビッ
ト目が“0”の場合には、上述の反転された(MSB−
1)ビット目の“1”が更に“0”に反転されて符号ビ
ットとされ、上述の反転された(MSB−2)ビット目
以下の各ビットはそのまま出力されることにより、波形
データXの0>X>(−MAX/2)の範囲の値を表現
するN+1ビットのデータのうち、MSBの符号ビット
を除いた下位Nビットは、波形の凹凸が反転されながら
(−MAX)<X<0の範囲の値を表現する符号ビット
を含むNビット(例えば16ビット)のデータに変換さ
れる。
The (MSB-1) th bit is "1".
When changing from "0" to "0", the original data value is (-MAX
From> / 2) to (-MAX / 2 or less). Therefore, after being decremented by the arithmetic unit 101 to separate the MSB and all the bits below the (MSB-1) th bit are inverted, the (MSB-1) th bit of the original waveform data X is "0". In the case of, the above-mentioned inverted (MSB-
1) The 1st bit "1" is further inverted to "0" to be a sign bit, and the above-mentioned inverted (MSB-2) th bit and the following bits are output as they are. Of the N + 1-bit data representing the value in the range of 0>X> (-MAX / 2), the lower N bits excluding the sign bit of the MSB are (-MAX) <X <while the unevenness of the waveform is inverted. It is converted into N-bit (for example, 16-bit) data including a sign bit that represents a value in the range of 0.

【0062】同様に、演算器101によって−1され、
MSBが分離されると共に(MSB−1)ビット目以下
の全ビットが反転された後に、元の波形データXの(M
SB−1)ビット目が“1”の場合には、上述の反転さ
れた(MSB−1)ビット目の“0”が更に“1”に反
転されて符号ビットとされ、上述の反転された(MSB
−2)ビット目以下の各ビットはそのまま出力されるこ
とにより、波形データXの(−MAX/2)≧X≧(−
MAX)の範囲の値を表現するN+1ビットのデータの
うち、MSBの符号ビットを除いた下位Nビットは、波
形の凹凸が反転されながら0≦X≦(+MAX)の範囲
の値を表現する符号ビットを含むNビットのデータに変
換される。
Similarly, -1 is subtracted by the arithmetic unit 101,
After the MSB is separated and all bits from the (MSB-1) th bit onward are inverted, (M
When the (SB-1) th bit is "1", the above-mentioned inverted "MSB-1" th bit "0" is further inverted to "1" to be a sign bit, and the above-mentioned inverted (MSB
-2) Each bit from the bit onward is output as it is, so that (-MAX / 2) ≧ X ≧ (− of the waveform data X.
The lower N bits excluding the sign bit of the MSB of the N + 1 bit data representing the value in the range of (MAX) are the codes expressing the value in the range of 0 ≦ X ≦ (+ MAX) while the unevenness of the waveform is inverted. Converted to N-bit data including bits.

【0063】上述のように、波形データXの負側の範囲
(図9(a) のB)の値を表現するN+1ビットのデータ
のうち、MSBの符号ビットを除いた下位Nビットは、
波形の凹凸が反転されながら、図9(c) のB´で示され
る範囲の値を表現する符号ビットを含むNビットのデー
タに変換されて、出力2として出力される。この場合も
波形データXの正側に対する処理の場合と同様、波形デ
ータXのN+1ビットのデータのうち、MSBの符号ビ
ットを除いた下位Nビットにより表現される情報は、出
力2を表現する符号ビットを含むNビットにより表現さ
れる情報としてそのまま保存され、また、MSBの符号
ビットにより表現される情報は、出力2を選択するため
の情報として保存される。従って、上述の変換動作にお
いて、元の波形データXの情報量は失われていない。
As described above, the lower N bits excluding the sign bit of the MSB of the N + 1 bit data representing the value on the negative side of the waveform data X (B in FIG. 9A) are:
While the unevenness of the waveform is inverted, it is converted into N-bit data including the sign bit expressing the value in the range shown by B'in FIG. 9 (c) and output as the output 2. Also in this case, as in the case of the processing on the positive side of the waveform data X, the information represented by the lower N bits of the N + 1 bit data of the waveform data X excluding the MSB code bit is the code representing the output 2. The information represented by the N bits including the bits is stored as it is, and the information represented by the MSB code bit is stored as the information for selecting the output 2. Therefore, in the above conversion operation, the information amount of the original waveform data X is not lost.

【0064】上述の変換動作と共に、出力1としては、
(MSB−1)ビット目が符号ビット“1”とされ、
(MSB−2)ビット目以下の各ビットは“0”として
出力されることにより、最小値(−MAX)が符号ビッ
トを含むNビットのデータとして出力される(図9(b)
のD)。具体例は以上のようにして、サインマグニチュード演算回
路801でデータ変換される前の波形データXと変換後
の出力1又は出力2の例を示した図である。この例で
は、説明の簡単のため、変換前の波形データXのビット
数N+1は6ビット、変換後の出力1又は出力2のビッ
ト数Nは5ビットである。
With the above conversion operation, the output 1 is
The (MSB-1) th bit is the code bit "1",
Each bit from the (MSB-2) th bit onward is output as "0", so that the minimum value (-MAX) is output as N-bit data including the sign bit (FIG. 9 (b)).
D). Specific Example FIG. 6 is a diagram showing an example of the waveform data X before data conversion by the sine magnitude arithmetic circuit 801 and the output 1 or output 2 after conversion as described above. In this example, for simplicity of explanation, the number of bits N + 1 of the waveform data X before conversion is 6 bits, and the number of bits N of the output 1 or output 2 after conversion is 5 bits.

【0065】例えば、波形データXの値が+5(10進
表示)である場合、その2進数表示は“0101.0
0”であり、MSBは“0”である。この波形データX
は、演算器101からそのままパラレルデータPDTと
して出力される。
For example, when the value of the waveform data X is +5 (decimal display), the binary display is "0101.0".
0 "and MSB is" 0 ". This waveform data X
Is output from the arithmetic unit 101 as it is as parallel data PDT.

【0066】なお、“.”は整数部と小数部の境界を示
しているが、この小数点の位置はD/A変換器の特性に
依存する便宜的なものである。この場合、図2のパラシ
リ変換器102には、パラレルデータPDT“010
1.00”のうち、MSBの“0”を除いたデータ“1
01.00”が出力される。従って、パラシリ変換器1
02からは、シリアルデータ出力Yとして、“1”、
“0”、“1”、“0”、そして“0”が、順次出力さ
れる。
Incidentally, "." Indicates the boundary between the integer part and the decimal part, but the position of the decimal point is for convenience depending on the characteristics of the D / A converter. In this case, the parallel-to-serial converter 102 of FIG.
Data "1" excluding "0" of MSB out of "1.00"
01.00 "is output. Therefore, the parallel-serial converter 1
From 02, the serial data output Y is "1",
"0", "1", "0", and "0" are sequentially output.

【0067】図5の真理値表に従って、出力1のデータ
を求めると、上記出力Yのデータ“101.00”のう
ち、波形データXの(MSB−1)ビット目に対応する
最初の“1”は、制御信号MSBINVの“1”に基づ
いて“0”に反転され、出力1として出力される。ま
た、波形データXの(MSB−2)ビット目以下のデー
タ列“01.00”は、制御信号MSBINVの“0”
に基づいて“01.00”のまま出力1として出力され
る。この結果、波形データXの値+5.0(“010
1.00”)は、出力1の値+2(“0010.0”)
に変換される。なお、小数点の位置は、出力1が入力さ
れるD/A変換器802(図8参照)に合わせて決定さ
れる。
When the data of the output 1 is obtained according to the truth table of FIG. 5, the first "1" corresponding to the (MSB-1) th bit of the waveform data X among the data "101.00" of the output Y is obtained. "" Is inverted to "0" based on "1" of the control signal MSBINV and output as output 1. In addition, the data string “01.00” of the (MSB−2) th bit or less of the waveform data X is “0” of the control signal MSBINV.
Based on the above, it is output as the output 1 without change from "01.00". As a result, the value of the waveform data X + 5.0 (“010
1.00 ”) is the value of output 1 +2 (“ 0010.0 ”)
Is converted to. The position of the decimal point is determined according to the D / A converter 802 (see FIG. 8) to which the output 1 is input.

【0068】なお、上述の場合、出力2としては、(M
SB−1)ビット目のみ“1”で、(MSB−2)ビッ
ト目以下の各ビットは“0”であるデータ“1000.
0”=−8(10進表示)、即ち、(−MAX)が出力
される。
In the above case, the output 2 is (M
Data "1000.SB" in which only the 1st bit of SB-1 is "1" and each bit of (MSB-2) th bit and below is "0".
0 "=-8 (decimal display), that is, (-MAX) is output.

【0069】また、波形データXの値が−7(10進表
示)である場合、その2進数表示は“1001.00”
であり、MSBは“1”である。従って、演算器101
は、波形データX=“1001.00”の最下位ビット
の桁で値“1”を減算する。この結果、演算器101か
ら出力されるパラレルデータPDTは、“1000.1
1”=−7.25(10進表示)となる。
When the value of the waveform data X is -7 (displayed in decimal), the binary display is "1001.00".
And the MSB is “1”. Therefore, the arithmetic unit 101
Subtracts the value “1” at the least significant bit digit of the waveform data X = “1001.00”. As a result, the parallel data PDT output from the arithmetic unit 101 is “1000.1
1 ″ = − 7.25 (decimal display).

【0070】この場合、図2のパラシリ変換器102に
は、パラレルデータPDT“1000.11”のうち、
MSBの“1”を除いたデータ“000.11”が出力
される。従って、パラシリ変換器102からは、シリア
ルデータ出力Yとして、“0”、“0”、“0”、
“1”、そして“1”が、順次出力される。
In this case, the parallel-serial converter 102 shown in FIG. 2 has the parallel data PDT "1000.11"
Data "000.11" excluding "1" of MSB is output. Therefore, from the serial-serial converter 102, as serial data output Y, "0", "0", "0",
"1" and "1" are sequentially output.

【0071】図5の真理値表に従って、出力1のデータ
を求めると、上記出力Yのデータ“000.11”のう
ち、波形データXの(MSB−1)ビット目に対応する
最初の“0”は、まず、NOR206(図2参照)で
“1”に反転された後、制御信号MSBINVの“1”
に基づいて更に“0”に反転され、出力2として出力さ
れる。また、波形データXの(MSB−2)ビット目以
下のデータ列“00.11”は、NOR206(図2参
照)で“11.00”に反転された後、制御信号MSB
INVの“0”に基づいて“11.00”のまま出力2
として出力される。この結果、波形データXの値−7.
0(“1001.00”)は、出力2の値+6.0
(“0110.0”)に変換される。なお、この場合
も、小数点の位置は、出力2が入力されるD/A変換器
803(図8参照)に合わせて決定される。
When the data of the output 1 is obtained according to the truth table of FIG. 5, the first "0" corresponding to the (MSB-1) th bit of the waveform data X among the data "000.11" of the output Y is obtained. “” Is first inverted to “1” by the NOR 206 (see FIG. 2), and then the control signal MSBINV is set to “1”.
Is further inverted to "0" based on the above, and is output as output 2. In addition, the data string “00.11” of the (MSB−2) th bit or less of the waveform data X is inverted to “11.00” by the NOR 206 (see FIG. 2) and then the control signal MSB.
Output as "11.00" based on "0" of INV 2
Is output as. As a result, the value of the waveform data X-7.
0 (“1001.00”) is the value of output 2 +6.0
Is converted to (“0110.0”). In this case as well, the position of the decimal point is determined according to the D / A converter 803 (see FIG. 8) to which the output 2 is input.

【0072】なお、上述の場合、出力1としては、(M
SB−1)ビット目のみ“1”で、(MSB−2)ビッ
ト目以下の各ビットは“0”であるデータ“1000.
0”=−8(10進表示)、即ち、(−MAX)が出力
される。
In the above case, the output 1 is (M
Data "1000.SB" in which only the 1st bit of SB-1 is "1" and each bit of (MSB-2) th bit and below is "0".
0 "=-8 (decimal display), that is, (-MAX) is output.

【0073】図7はサインマグニチュード演算方式によ
る変換前後の波形を示した図で、図6に対応する。図7
において、A、A′、B、B′、C、Dは、それぞれ図
9の同じ記号が付された範囲に対応している。
FIG. 7 is a diagram showing waveforms before and after conversion by the sine magnitude calculation method, and corresponds to FIG. Figure 7
, A, A ′, B, B ′, C, and D respectively correspond to the ranges with the same symbols in FIG. 9.

【0074】以上説明したように、本発明の実施例で
は、図2の1個のパラシリ変換器102と、DFF20
1、インバータ202、205、NOR203、20
6、及びEOR204、207などからなる簡単なデー
タ変換器103によって、サインマグニチュード演算回
路の主要部を構成することができる。 <他の実施例>以上の実施例では、図1の演算器101
は、汎用のマイクロプロセッサによって実現されている
が、専用のハードウエア回路によって実現されてもよ
い。
As described above, in the embodiment of the present invention, one parallel-serial converter 102 shown in FIG.
1, inverters 202, 205, NOR 203, 20
6, and a simple data converter 103 composed of EORs 204, 207, etc., can constitute the main part of the sine magnitude arithmetic circuit. <Other Embodiments> In the above embodiments, the arithmetic unit 101 of FIG.
Is realized by a general-purpose microprocessor, but may be realized by a dedicated hardware circuit.

【0075】また、更に他の実施例として次のような構
成が実現されてもよい。即ち、まず、図1の演算器10
1は、波形データXについて、そのMSBが“0”の場
合にはそれをそのまま出力し、MSBが“1”の場合に
は波形データXの符号を反転しそれと同じ振幅を有する
正の符号を有するパラレルデータPDTを演算し出力す
る。
Further, as still another embodiment, the following configuration may be realized. That is, first, the arithmetic unit 10 of FIG.
1 outputs the waveform data X as it is when the MSB is “0”, and inverts the sign of the waveform data X when the MSB is “1” and outputs a positive sign having the same amplitude as that. The parallel data PDT that it has is calculated and output.

【0076】パラシリ変換器102は、演算器101か
ら出力されるパラレルデータPDTの(MSB−1)ビ
ット目以下のビットからなるデータをシリアルデータに
変換する。
The parallel-serial converter 102 converts the data consisting of the (MSB-1) th bit or less of the parallel data PDT output from the arithmetic unit 101 into serial data.

【0077】データ変換器103内の論理演算回路は、
パラ/シリ変換器102から出力されるシリアルデータ
の各ビットのうち、波形データXの(MSB−1)ビッ
ト目に対応するビットについてはその値を反転して出力
し、(MSB−2)ビット目以下のビットに対応するビ
ットはそのまま順次出力する。
The logical operation circuit in the data converter 103 is
Of each bit of the serial data output from the parallel / serial converter 102, the bit corresponding to the (MSB-1) th bit of the waveform data X is inverted and output, and the (MSB-2) bit is output. The bits corresponding to the bits below the eye are sequentially output as they are.

【0078】データ変換器103内の第1の出力回路
は、波形データXのMSBが“0”の場合には、出力1
として前述の論理演算回路から出力されるシリアルデー
タの各ビットを順次出力し、波形データXのMSBが
“1”の場合には、出力1として波形データXの(MS
B−1)ビット目に対応するビットが値“1”であって
波形データXの(MSB−2)ビット目以下のビットに
対応するビットは値“0”である各ビットを順次出力す
る。
The first output circuit in the data converter 103 outputs 1 when the MSB of the waveform data X is "0".
As the output of each bit of the serial data output from the above logical operation circuit. When the MSB of the waveform data X is "1", the output 1 is the (MS
Bits corresponding to the (B-1) th bit have a value of "1", and bits corresponding to the (MSB-2) th bit and below of the waveform data X have a value of "0".

【0079】データ変換器103内の第2の出力回路
は、波形データXのMSBが“0”の場合には、出力2
として波形データXの(MSB−1)ビット目に対応す
るビットが値“1”であって波形データXの(MSB−
2)ビット目以下のビットに対応するビットは値“0”
である各ビットを順次出力し、波形データXのMSBが
“1”の場合には、出力2として前述の論理演算回路か
ら出力されるシリアルデータの各ビットを順次出力す
る。
The second output circuit in the data converter 103 outputs the output 2 when the MSB of the waveform data X is "0".
, The bit corresponding to the (MSB-1) th bit of the waveform data X has the value "1" and the (MSB-
2) The bit corresponding to the bits below the second bit has the value “0”
Is sequentially output, and when the MSB of the waveform data X is "1", each bit of the serial data output from the above-described logical operation circuit is sequentially output as the output 2.

【0080】このような構成を有する実施例により、前
述した実施例(図2参照)と同様の効果を、1個のパラ
/シリ変換器102のみで実現できる。
With the embodiment having such a structure, the same effect as that of the above-described embodiment (see FIG. 2) can be realized by only one para / serial converter 102.

【0081】[0081]

【発明の効果】サインマグニチュード演算では、入力パ
ラレル波形データが負の符号を有する場合に、その負の
入力パラレル波形データの符号を反転しそれと同じ振幅
を有する正の符号を有するパラレル波形データを演算す
る処理が必要であるが、本発明の第1の態様によれば、
上述の演算の一部である負の入力パラレル波形データに
ついてその最下位ビットの桁で値“1”を減算しその減
算結果を出力する演算を、パラレル/シリアル変換処理
の前に行うことによって、サインマグニチュード演算の
ための構成において必要なパラレル/シリアル変換手段
の数を1個にすることが可能となる。
In the sine magnitude calculation, when the input parallel waveform data has a negative sign, the sign of the negative input parallel waveform data is inverted and the parallel waveform data having a positive sign having the same amplitude as that is calculated. However, according to the first aspect of the present invention,
By performing the operation of subtracting the value “1” at the least significant bit digit of the negative input parallel waveform data, which is a part of the above operation, and outputting the subtraction result before the parallel / serial conversion processing, It is possible to reduce the number of parallel / serial conversion means required in the configuration for sine magnitude calculation to one.

【0082】また、本発明の第2の態様によれば、上述
の演算の全部をパラレル/シリアル変換処理の前に行う
ことによって、やはりサインマグニチュード演算のため
の構成において必要なパラレル/シリアル変換手段の数
を1個にすることが可能となる。
Further, according to the second aspect of the present invention, all the above-mentioned operations are performed before the parallel / serial conversion process, so that the parallel / serial conversion means also necessary in the configuration for the sine magnitude operation. The number of can be 1.

【0083】この結果、回路規模を小さくし、コストダ
ウンを図ることが可能となる。
As a result, the circuit scale can be reduced and the cost can be reduced.

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

【図1】本発明によるサインマグニチュード演算回路の
実施例のブロック図である。
FIG. 1 is a block diagram of an embodiment of a sine magnitude arithmetic circuit according to the present invention.

【図2】本発明によるサインマグニチュード演算回路の
実施例の回路構成図である。
FIG. 2 is a circuit configuration diagram of an embodiment of a sine magnitude arithmetic circuit according to the present invention.

【図3】サインマグニチュード演算に関する動作フロー
チャートである。
FIG. 3 is an operation flowchart related to sine magnitude calculation.

【図4】サインマグニチュード演算回路の動作タイミン
グチャートである。
FIG. 4 is an operation timing chart of a sine magnitude arithmetic circuit.

【図5】サインマグニチュード演算回路の各部の信号状
態を示す真理値表である。
FIG. 5 is a truth table showing signal states of respective parts of the sine magnitude arithmetic circuit.

【図6】サインマグニチュード演算方式による変換前の
波形データXと変換後の出力1又は出力2の例を示した
図である。
FIG. 6 is a diagram showing an example of waveform data X before conversion and output 1 or output 2 after conversion by a sine magnitude calculation method.

【図7】サインマグニチュード演算方式による変換前後
の波形図である。
FIG. 7 is a waveform diagram before and after conversion by a sine magnitude calculation method.

【図8】サインマグニチュード出力装置の基本構成図で
ある。
FIG. 8 is a basic configuration diagram of a sine magnitude output device.

【図9】サインマグニチュード出力装置の動作原理を示
す波形図である。
FIG. 9 is a waveform diagram showing the operating principle of the sine magnitude output device.

【図10】従来のサインマグニチュード演算回路の基本
構成図である。
FIG. 10 is a basic configuration diagram of a conventional sine magnitude arithmetic circuit.

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

101 演算器 102 パラシリ変換器 103 データ変換器 201 D−フリップフロップ(DFF) 202、205 インバータ 203、206 ノア回路(NOR) 204、207 排他論理和回路(EOR) 801 サインマグニチュード演算回路 802、803 D/A変換器 804 オペアンプ R1 可変抵抗器 R2、R3、R4 抵抗器 101 arithmetic unit 102 parallel-serial converter 103 data converter 201 D-flip-flop (DFF) 202, 205 inverters 203, 206 NOR circuit (NOR) 204, 207 exclusive OR circuit (EOR) 801 sine magnitude arithmetic circuit 802, 803 D / A converter 804 operational amplifier R1 variable resistor R2, R3, R4 resistor

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 所定数のビットからなる入力パラレル波
形データについて、該入力パラレル波形データが正の符
号を有する場合には該入力パラレル波形データをそのま
ま出力し、該入力パラレル波形データが負の符号を有す
る場合には該入力パラレル波形データからその最下位ビ
ットの桁で値“1”を減算しその減算結果を出力する演
算手段と、 該演算手段から出力されるパラレル波形データの最上位
ビット以外のビットからなるパラレル波形データをシリ
アル波形データに変換するパラレル/シリアル変換手段
と、 前記入力パラレル波形データが正の符号を有する場合に
は、前記パラレル/シリアル変換手段から出力される前
記シリアル波形データの各ビットのうち、前記入力パラ
レル波形データの最上位ビットより1ビット下位のビッ
トに対応するビットについてはその値を反転して第1の
出力シリアル波形データとして出力し、該ビット以外の
ビットはそのまま前記第1の出力シリアル波形データと
して順次出力し、前記入力パラレル波形データが負の符
号を有する場合には、前記第1の出力シリアル波形デー
タとして前記入力パラレル波形データの最上位ビットよ
り1ビット下位のビットに対応するビットが値“1”で
あって該ビット以外のビットは値“0”である各ビット
を順次出力する第1の出力手段と、 前記入力パラレル波形データが負の符号を有する場合に
は、前記パラレル/シリアル変換手段から出力される前
記シリアル波形データの全ビットを順次反転した後、該
反転されたシリアル波形データの各ビットのうち、前記
入力パラレル波形データの最上位ビットより1ビット下
位のビットに対応するビットについてはその値を反転し
て第2の出力シリアル波形データとして出力し、該ビッ
ト以外のビットはそのまま前記第2の出力シリアル波形
データとして順次出力し、前記入力パラレル波形データ
が正の符号を有する場合には、前記第2の出力シリアル
波形データとして前記入力パラレル波形データの最上位
ビットより1ビット下位のビットに対応するビットが値
“1”であって該ビット以外のビットは値“0”である
各ビットを順次出力する第2の出力手段と、 前記第1の出力シリアル波形データを第1のアナログ波
形信号に変換する第1のデジタル/アナログ変換手段
と、 前記第2の出力シリアル波形データを第2のアナログ波
形信号に変換する第2のデジタル/アナログ変換手段
と、 前記第1のアナログ波形信号から前記第2のアナログ波
形信号を減算しその減算結果を出力アナログ波形信号と
して出力するアナログ波形演算手段と、 を有することを特徴とするサインマグニチュード出力装
置。
1. For input parallel waveform data consisting of a predetermined number of bits, when the input parallel waveform data has a positive sign, the input parallel waveform data is output as it is, and the input parallel waveform data has a negative sign. And a means for subtracting the value “1” at the least significant bit digit from the input parallel waveform data and outputting the subtraction result, other than the most significant bit of the parallel waveform data output from the arithmetic means. Parallel / serial conversion means for converting parallel waveform data composed of bits into serial waveform data; and, if the input parallel waveform data has a positive sign, the serial waveform data output from the parallel / serial conversion means. Bit of each bit of the input parallel waveform data that is one bit lower than the most significant bit The value of the corresponding bit is inverted and output as the first output serial waveform data, bits other than the bit are sequentially output as they are as the first output serial waveform data, and the input parallel waveform data is negative. If it has a sign, the bit corresponding to the bit one bit lower than the most significant bit of the input parallel waveform data as the first output serial waveform data has the value “1” and the other bits have the value. First output means for sequentially outputting each bit that is "0", and when the input parallel waveform data has a negative sign, all bits of the serial waveform data output from the parallel / serial conversion means Of each bit of the inverted serial waveform data after being sequentially inverted, the most significant bit of the input parallel waveform data. For the bit corresponding to the bit lower by one bit, the value is inverted and output as the second output serial waveform data, and the bits other than the bit are sequentially output as they are as the second output serial waveform data. When the input parallel waveform data has a positive sign, the bit corresponding to the bit one bit lower than the most significant bit of the input parallel waveform data is the value “1” as the second output serial waveform data. Bits other than the bit have a value of "0", second output means for sequentially outputting the respective bits, and first digital / analog conversion for converting the first output serial waveform data into a first analog waveform signal. Means, second digital / analog conversion means for converting the second output serial waveform data into a second analog waveform signal, and the second Sign Magnitude output apparatus characterized by having an analog waveform calculation means, the said analog waveform signal second subtracts the analog waveform signal and outputs the subtraction result as an output analog waveform signal.
【請求項2】 所定数のビットからなる入力パラレル波
形データについて、該入力パラレル波形データが正の符
号を有する場合には該入力パラレル波形データをそのま
ま出力し、該入力パラレル波形データが負の符号を有す
る場合には該入力パラレル波形データからその最下位ビ
ットの桁で値“1”を減算しその減算結果を出力する演
算回路と、 該演算手段から出力されるパラレル波形データの最上位
ビット以外のビットからなるパラレル波形データをシリ
アル波形データに変換するパラレル/シリアル変換回路
と、 該パラレル/シリアル変換手段が1サンプル分の前記入
力パラレル波形データに対応する前記シリアル波形デー
タを出力している間、前記演算手段から出力されるパラ
レル波形データの最上位ビットを保持するフリップフロ
ップ回路と、 前記パラレル/シリアル変換手段から出力される前記シ
リアル波形データの各ビットを順次反転する第1のイン
バータ回路と、 前記フリップフロップ回路の出力を第1の入力とし、前
記第1のインバータ回路の出力を第2の入力とする第1
のノア回路と、 前記フリップフロップ回路の出力を反転する第2のイン
バータ回路と、 該第2のインバータ回路の出力を第1の入力とし、前記
パラレル/シリアル変換手段の出力を第2の入力とする
第2のノア回路と、 前記パラレル/シリアル変換手段から前記シリアル波形
データとして前記入力パラレル波形データの最上位ビッ
トより1ビット下位のビットに対応するビットが出力さ
れるタイミングでハイレベルとなりそれ以外のビットが
出力されるタイミングでローレベルとなる制御信号を第
1の入力とし、前記第1のノア回路の出力を第2の入力
とする第1の排他論理和回路と、 前記制御信号を第1の入力とし、前記第2のノア回路の
出力を第2の入力とする第2の排他論理和回路と、 前記第1の排他論理和回路から出力されるシリアル波形
データを第1のアナログ波形信号に変換する第1のデジ
タル/アナログ変換器と、 前記第2の排他論理和回路から出力されるシリアル波形
データを第2のアナログ波形信号に変換する第2のデジ
タル/アナログ変換器と、 前記第1のアナログ波形信号から前記第2のアナログ波
形信号を減算しその減算結果を出力アナログ波形信号と
して出力するアナログ波形演算回路と、 を有することを特徴とするサインマグニチュード出力装
置。
2. With respect to input parallel waveform data consisting of a predetermined number of bits, when the input parallel waveform data has a positive sign, the input parallel waveform data is output as it is, and the input parallel waveform data has a negative sign. And the arithmetic circuit that subtracts the value “1” from the input parallel waveform data at the least significant bit digit and outputs the subtraction result, other than the most significant bit of the parallel waveform data output from the arithmetic means. A parallel / serial conversion circuit for converting parallel waveform data composed of bits into serial waveform data, and while the parallel / serial conversion means outputs the serial waveform data corresponding to the input parallel waveform data for one sample. , A flip-flop that holds the most significant bit of the parallel waveform data output from the arithmetic means. A circuit, a first inverter circuit that sequentially inverts each bit of the serial waveform data output from the parallel / serial conversion means, and an output of the flip-flop circuit as a first input, the first inverter circuit The output of is the second input
NOR circuit, a second inverter circuit that inverts the output of the flip-flop circuit, an output of the second inverter circuit as a first input, and an output of the parallel / serial conversion means as a second input. And a second NOR circuit for outputting a bit corresponding to a bit one bit lower than the most significant bit of the input parallel waveform data as the serial waveform data from the parallel / serial conversion means. A first exclusive-OR circuit having a control signal that becomes a low level at the timing when the bit of is output as a first input and an output of the first NOR circuit as a second input; A second exclusive OR circuit having an input of 1 and an output of the second NOR circuit as a second input; and a system output from the first exclusive OR circuit. A first digital / analog converter for converting the analog waveform data into a first analog waveform signal, and a second digital / analog converter for converting the serial waveform data output from the second exclusive OR circuit into a second analog waveform signal. A digital / analog converter, and an analog waveform arithmetic circuit that subtracts the second analog waveform signal from the first analog waveform signal and outputs the subtraction result as an output analog waveform signal. Sign magnitude output device.
【請求項3】 所定数のビットからなる入力パラレル波
形データについて、該入力パラレル波形データが正の符
号を有する場合には該入力パラレル波形データをそのま
ま出力し、該入力パラレル波形データが負の符号を有す
る場合には該負の入力パラレル波形データの符号を反転
しそれと同じ振幅を有する正の符号を有するパラレル波
形データを演算し出力する演算手段と、 該演算手段から出力されるパラレル波形データの最上位
ビット以外のビットからなるパラレル波形データをシリ
アル波形データに変換するパラレル/シリアル変換手段
と、 該パラレル/シリアル変換手段から出力される前記シリ
アル波形データの各ビットのうち、前記入力パラレル波
形データの最上位ビットより1ビット下位のビットに対
応するビットについてはその値を反転して出力し、該ビ
ット以外のビットはそのまま順次出力する論理演算手段
と、 前記入力パラレル波形データが正の符号を有する場合に
は、第1の出力シリアル波形データとして前記論理演算
手段から出力されるシリアル波形データの各ビットを順
次出力し、前記入力パラレル波形データが負の符号を有
する場合には、前記第1の出力シリアル波形データとし
て前記入力パラレル波形データの最上位ビットより1ビ
ット下位のビットに対応するビットが値“1”であって
該ビット以外のビットは値“0”である各ビットを順次
出力する第1の出力手段と、 前記入力パラレル波形データが正の符号を有する場合に
は、第2の出力シリアル波形データとして前記入力パラ
レル波形データの最上位ビットより1ビット下位のビッ
トに対応するビットが値“1”であって該ビット以外の
ビットは値“0”である各ビットを順次出力し、前記入
力パラレル波形データが負の符号を有する場合には、前
記第2の出力シリアル波形データとして前記論理演算手
段から出力されるシリアル波形データの各ビットを順次
出力する第2の出力手段と、 前記第1の出力シリアル波形データを第1のアナログ波
形信号に変換する第1のデジタル/アナログ変換手段
と、 前記第2の出力シリアル波形データを第2のアナログ波
形信号に変換する第2のデジタル/アナログ変換手段
と、 前記第1のアナログ波形信号から前記第2のアナログ波
形信号を減算しその減算結果を出力アナログ波形信号と
して出力するアナログ波形演算手段と、 を有することを特徴とするサインマグニチュード出力装
置。
3. For input parallel waveform data consisting of a predetermined number of bits, when the input parallel waveform data has a positive sign, the input parallel waveform data is output as it is, and the input parallel waveform data has a negative sign. In the case of the above, the calculation means for inverting the sign of the negative input parallel waveform data and calculating and outputting the parallel waveform data having the positive sign having the same amplitude as that, and the parallel waveform data output from the calculation means. Parallel / serial conversion means for converting parallel waveform data composed of bits other than the most significant bit into serial waveform data, and the input parallel waveform data of each bit of the serial waveform data output from the parallel / serial conversion means The bit corresponding to the bit one bit lower than the most significant bit of Is inverted and output, and bits other than the bit are sequentially output as they are, and when the input parallel waveform data has a positive sign, the logical operation means outputs first output serial waveform data as the first output serial waveform data. Each bit of the output serial waveform data is sequentially output, and when the input parallel waveform data has a negative sign, the first output serial waveform data is 1 bit from the most significant bit of the input parallel waveform data. First output means for sequentially outputting each bit in which the bit corresponding to the lower bit has a value "1" and the bits other than the bit have a value "0"; and the input parallel waveform data has a positive sign. If it has, it corresponds to a bit one bit lower than the most significant bit of the input parallel waveform data as the second output serial waveform data. The bits having the value "1" and the bits other than the bits having the value "0" are sequentially output, and when the input parallel waveform data has a negative sign, the second output serial waveform Second output means for sequentially outputting each bit of the serial waveform data output from the logical operation means as data, and a first digital / digital converter for converting the first output serial waveform data into a first analog waveform signal. Analog conversion means, second digital / analog conversion means for converting the second output serial waveform data into a second analog waveform signal, and subtracting the second analog waveform signal from the first analog waveform signal And a sine magnitude output device comprising: an analog waveform calculation means for outputting the subtraction result as an output analog waveform signal.
【請求項4】 前記入力パラレル波形データは楽音波形
データである、 ことを特徴とする請求項1乃至3の何れか1項に記載の
サインマグニチュード出力装置。
4. The sine magnitude output device according to claim 1, wherein the input parallel waveform data is tone waveform data.
JP4172351A 1992-06-30 1992-06-30 Sign magnitude outputting device Withdrawn JPH0621820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4172351A JPH0621820A (en) 1992-06-30 1992-06-30 Sign magnitude outputting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4172351A JPH0621820A (en) 1992-06-30 1992-06-30 Sign magnitude outputting device

Publications (1)

Publication Number Publication Date
JPH0621820A true JPH0621820A (en) 1994-01-28

Family

ID=15940294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4172351A Withdrawn JPH0621820A (en) 1992-06-30 1992-06-30 Sign magnitude outputting device

Country Status (1)

Country Link
JP (1) JPH0621820A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100737627B1 (en) * 2002-01-28 2007-07-10 엘지노텔 주식회사 Apparatus and Method for realizing Pulse Shaping

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100737627B1 (en) * 2002-01-28 2007-07-10 엘지노텔 주식회사 Apparatus and Method for realizing Pulse Shaping

Similar Documents

Publication Publication Date Title
JPH07193509A (en) Thermometer binary encoding method
US4520347A (en) Code conversion circuit
JPH0621820A (en) Sign magnitude outputting device
Tarnoff Computer Organization and Design Fundamentals
JPH0578104B2 (en)
KR950004221B1 (en) Data transformation method and its circuit
US6816098B2 (en) High-speed oversampling modulator device
WO2004088586A1 (en) Lookup table device and image generation device
JP3083119B2 (en) Encoding / decoding circuit using adaptive delta modulation scheme
US4855741A (en) Logarithmic digital level display device
JPH0773187B2 (en) Bit length expansion device
JPH08256061A (en) D/a converter
JP2819719B2 (en) Arithmetic circuit
JP2525082B2 (en) Serial data receiving circuit
JP2904239B2 (en) A / D conversion circuit
JPH0983368A (en) D/a converting circuit
JPH0697831A (en) D/a converter
JPS607816B2 (en) Overflow detection and correction circuit
JPH0448253B2 (en)
JPS607815B2 (en) Overflow detection and correction circuit
JPH05315971A (en) Serial/parallel conversion circuit
JPS5840760B2 (en) Musical waveform noise removal method
JPH0713800B2 (en) Electronic musical instrument
JPS62124596A (en) Electronic musical apparatus
JPH0265527A (en) Adaptive delta modulation coder

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990831