JPH08340532A - Quantization and reverse quantization arithmetic unit - Google Patents

Quantization and reverse quantization arithmetic unit

Info

Publication number
JPH08340532A
JPH08340532A JP16920095A JP16920095A JPH08340532A JP H08340532 A JPH08340532 A JP H08340532A JP 16920095 A JP16920095 A JP 16920095A JP 16920095 A JP16920095 A JP 16920095A JP H08340532 A JPH08340532 A JP H08340532A
Authority
JP
Japan
Prior art keywords
quantization
bits
integer
multiplier
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP16920095A
Other languages
Japanese (ja)
Inventor
Hiroo Matsuda
宏朗 松田
Toshihiro Minami
俊宏 南
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP16920095A priority Critical patent/JPH08340532A/en
Publication of JPH08340532A publication Critical patent/JPH08340532A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To obtain a quantization/reverse quantization arithmetic unit with a small amount of hardware and a small area by calculating both quantization and reverse quantization in time division through the use of a fixed decimal point pipeline arithmetic unit. CONSTITUTION: In the quantization arithmetic operation of a quantization/reverse quantization arithmetic unit 100, selectors 11-1 to 11-4 respectively select quantized data F, a quantization weight coefficient Wq <-1> , an integer P, a reciprocal Mq <-1> of a quantization step and the data F and the coefficient Wq <-1> are given to a multiplier 7-1 and the result is stored in a register 10. Then a fraction part of the register 10 is processed by an arithmetic unit 8-1, a multiplier 7-1 and an adder/subtractor 9 and then processed by a multiplier 7-2 and an arithmetic unit 8-2 for the quantization. Then in the reverse quantization, the unit 100 receives an input (q) of a q-bit integer Q, a quantization weight coefficient Wi , a quantization step Mi and an integer N, the multiplier 7-1, the arithmetic unit 8-1 calculate q'=2q×Wi and an adder/substractor 9 calculates q"=q'+Sign(q).(N×Wi ) and the multiplier 7-1 and the arithmetic unit 8-2 calculate F'=q"×Mi .

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像信号符号化/復号
化を実行するLSIにおいて、量子化と逆量子化との処
理を行う演算器ユニットに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic unit for performing quantization and dequantization in an LSI that executes image signal encoding / decoding.

【0002】[0002]

【従来の技術】図4は、画像符号化/復号化LSIにお
いて、量子化および逆量子化を行う従来の量子化/逆量
子化演算器400のハードウェア構成を示す図である。
2. Description of the Related Art FIG. 4 is a diagram showing a hardware configuration of a conventional quantization / inverse quantization calculator 400 for performing quantization and inverse quantization in an image encoding / decoding LSI.

【0003】以下、量子化/逆量子化演算器400につ
いて、2の補数表現の固定少数の演算を例にあげて説明
する。
The quantizer / inverse-quantizer operator 400 will be described below by taking a fixed number of operations in two's complement representation as an example.

【0004】従来の量子化/逆量子化演算器400は、
量子化器1と逆量子化器2とで構成され、量子化器1
は、nF ビット整数の被量子化データFを入力し、nQ
ビットの整数Qを出力する量子化器であり、逆量子化器
2は、2・q(qはnQ ビットの整数である)を入力
し、nF,q ビットの整数F’を出力する逆量子化器であ
り、量子化演算、逆量子化演算を、それぞれ個別のハー
ドウェアで実行するものである。
A conventional quantizer / inverse quantizer operator 400 is
It comprises a quantizer 1 and an inverse quantizer 2, and the quantizer 1
Input n F- bit integer quantized data F, and n Q
The quantizer 2 outputs a bit integer Q, and the inverse quantizer 2 inputs 2 · q (q is an integer of n Q bits) and outputs an integer F ′ of n F, q bits. It is an inverse quantizer, and executes a quantization operation and an inverse quantization operation by individual hardware.

【0005】図5は、上記量子化/逆量子化演算器40
0における量子化器1と逆量子化器2とを具体的に示す
図である。
FIG. 5 shows the quantizer / inverse-quantizer operator 40.
It is a figure which shows the quantizer 1 and the dequantizer 2 in 0 concretely.

【0006】図5に示す量子化器1と逆量子化器2と
は、情報処理学会論文誌Vol.35 No.7「マルチメディア
のための専用型動画像符号化処理方式の研究」で紹介さ
れた量子化/逆量子化器の構成である。
The quantizer 1 and the inverse quantizer 2 shown in FIG. 5 are introduced in IPSJ Transactions Vol. 35 No. 7 "Research on Dedicated Video Coding Method for Multimedia". 2 is a configuration of a quantizer / inverse quantizer.

【0007】図5において、量子化器1は、ALU3と
丸め/オーバーフロー演算器4とで構成されている。A
LU3は、乗算器2個を核とする算術演算ユニットであ
り、nF ビット整数の被量子化データFと、整数部がn
W,q ビット、少数部がfW,qビットである量子化重み係
数の逆数Wq -1 と、整数部がnM,q ビット、少数部がf
M,q ビットである量子化ステップの逆数Mq -1 とを入力
し、 Q={F×Wq -1 +sign(F×Wq -1 )・P}×Mq -1 を計算し、x<0、x=0、x>0であるときに、si
gn(x)がそれぞれ−1、0、1である計算を行うも
のである。
In FIG. 5, the quantizer 1 comprises an ALU 3 and a rounding / overflow calculator 4. A
The LU3 is an arithmetic operation unit having two multipliers as cores, and the quantized data F of n F bit integers and the integer part are n.
W, q bits, the reciprocal of the quantization weighting coefficient W q -1 , where the decimal part is f W, q bits, and n M, q bits for the integer part and f for the decimal part
M, inputs the inverse M q -1 of the quantization step is q bits, calculates the Q = {F × W q -1 + sign (F × W q -1) · P} × M q -1, When x <0, x = 0, x> 0, si
The calculation is such that gn (x) is -1, 0, 1 respectively.

【0008】また、丸め/オーバーフロー演算器4は、
ALU3の出力の桁数を、符号化に必要な桁数にするた
めに、表現の規格化を行うものである。
Further, the rounding / overflow calculator 4 is
The representation is standardized so that the number of digits of the output of the ALU 3 becomes the number of digits required for encoding.

【0009】図5において、逆量子化器2は、ALU5
と精度調整器6とで構成されている。ALU5も、乗算
器2個を核とする算術演算ユニットであり、nQ ビット
整数Qの入力qと、整数部がnW,i ビット、少数部がf
W,i ビットである量子化重み係数Wi と、整数部がn
M,i ビット、少数部がfM,i ビットである量子化ステッ
プMi とを入力し、nF,q ビットの整数F’を、 F’={2q+sign(q)・N}×Wi ×Mi によって計算するものである。なお、精度調整器6は、
演算結果が符号化器の規定値を越えるないようにするこ
とによって、規格化されたフォーマットに統一するもの
である。
In FIG. 5, the inverse quantizer 2 has an ALU5.
And accuracy adjuster 6. The ALU5 is also an arithmetic operation unit having two multipliers as its core. The input q of an n Q- bit integer Q, the integer part is n W, i bits, and the decimal part is f.
Quantization weight coefficient W i , which is W, i bits, and the integer part is n
M, i bits, fewer unit inputs the quantization step M i is f M, i bits, n F, 'a, F' integer F q-bit = {2q + sign (q) · N} × W i It is calculated by × M i . The accuracy adjuster 6 is
The standardized format is unified by preventing the calculation result from exceeding the specified value of the encoder.

【0010】[0010]

【発明が解決しようとする課題】図6は、図5に示すA
LU3の演算器構成を示す図であり、SPIE Vol.1605 Vi
sual Communications and Image Processing '91:Visua
l Communication の”VLSI Imprementation of A Buffe
r, Universal quantizer and Frame rate control Proc
essor ”に紹介された構成である。
FIG. 6 is a schematic diagram of FIG.
It is a figure which shows the arithmetic unit structure of LU3, SPIE Vol.1605 Vi
sual Communications and Image Processing '91: Visua
l “VLSI Imprementation of A Buffe”
r, Universal quantizer and Frame rate control Proc
This is the configuration introduced in "essor".

【0011】図6において、ALU3は、2個の乗算器
7a、7bと、乗算器7a、7bの出力をそれぞれ丸め
切り捨てする丸め切り捨て回路8a、8bとを有する。
なお、ALU3は、その他の小さな算術回路と、パイプ
ライン処理を行うためのパイプラインレジスタとを有す
るが、図6では、これらを省略して示してある。
In FIG. 6, the ALU 3 has two multipliers 7a and 7b and rounding and truncating circuits 8a and 8b for rounding and truncating the outputs of the multipliers 7a and 7b, respectively.
The ALU 3 has other small arithmetic circuits and pipeline registers for performing pipeline processing, but these are omitted in FIG.

【0012】従来の量子化/逆量子化演算器400で
は、量子化演算、逆量子化演算のそれぞれが、2個の乗
算器を必要とする。したがって、上記従来例では、量子
化と逆量子化とを行うためには、合計4個の乗算器を必
要とし、このために、量子化/逆量子化演算器のハード
ウェア量が大きいという問題があり、これに伴って量子
化/逆量子化演算器の占有面積が大きいという問題があ
る。
In the conventional quantization / inverse quantization calculator 400, each of the quantization operation and the inverse quantization operation requires two multipliers. Therefore, in the above-mentioned conventional example, a total of four multipliers are required to perform the quantization and the dequantization, which results in a large amount of hardware of the quantization / dequantization operator. However, there is a problem that the occupied area of the quantization / inverse quantization calculator is large.

【0013】本発明は、ハードウェア量と面積とが小さ
い量子化/逆量子化演算器を提供することを目的とする
ものである。
An object of the present invention is to provide a quantizer / inverse-quantizer operator having a small amount of hardware and a small area.

【0014】[0014]

【課題を解決するための手段】請求項1、2、3に記載
の発明は、量子化と逆量子化との双方を、固定少数点パ
イプライン演算ユニットを1つ使用することによって時
分割で演算するものである。
According to the invention described in claims 1, 2, and 3, both quantization and dequantization are performed in a time division manner by using one fixed decimal point pipeline arithmetic unit. It is something that is calculated.

【0015】請求項4に記載の発明は、量子化および逆
量子化演算における2回の乗算を、1個の乗算器を時分
割利用して実行するものである。
According to a fourth aspect of the present invention, two multiplications in the quantization and dequantization operations are executed by using one multiplier in time division.

【0016】請求項5に記載の発明は、逆量子化演算時
において、有効数字の小さなデータから順に乗算するも
のである。
According to a fifth aspect of the present invention, in the inverse quantization operation, the data with the smallest significant figures are sequentially multiplied.

【0017】[0017]

【作用】請求項1、2、3に記載の発明は、量子化と逆
量子化との双方を、固定少数点パイプライン演算ユニッ
トを1つ使用することによって時分割で演算するので、
量子化と逆量子化演算に要するハードウェア量を削減す
ることができる。
According to the invention described in claims 1, 2, and 3, both the quantization and the dequantization are performed in a time division manner by using one fixed decimal point pipeline arithmetic unit.
The amount of hardware required for quantization and dequantization operations can be reduced.

【0018】請求項4に記載の発明は、量子化および逆
量子化演算における2回の乗算を、1個の乗算器を時分
割利用して実行するので、量子化と逆量子化演算に要す
るハードウェア量を削減することができる。
According to the fourth aspect of the present invention, two multiplications in the quantization and dequantization operations are executed by using one multiplier in time division, so that the quantization and the dequantization operations are required. The amount of hardware can be reduced.

【0019】請求項5に記載の発明は、逆量子化演算時
において、有効数字の小さなデータから順に乗算するの
で、逆量子化演算に必要なデータ幅が削減され、演算器
ユニットの配線を削減することができる。
According to the fifth aspect of the present invention, in the inverse quantization operation, the data having the smallest effective number is sequentially multiplied, so that the data width necessary for the inverse quantization operation is reduced and the wiring of the operator unit is reduced. can do.

【0020】[0020]

【実施例】図1は、本発明の第1の実施例である量子化
/逆量子化演算器100を示す図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a diagram showing a quantization / inverse quantization calculator 100 according to a first embodiment of the present invention.

【0021】量子化/逆量子化演算器100は、量子化
と逆量子化との双方を、単一の固定少数点パイプライン
演算ユニットによって時分割で演算するものである。
The quantizer / inverse-quantizer operator 100 performs both quantization and inverse-quantization in time division by a single fixed-point pipeline arithmetic unit.

【0022】量子化/逆量子化演算器100は、乗算器
7−1、7−2と、乗算器7−1が出力する乗算結果を
丸め/切り捨てする丸め/切り捨て演算器8−1と、乗
算器7−2が出力する乗算結果を丸め/切り捨てする演
算器8−2と、加減算器9と、複数のパイプラインレジ
スタ10と、2入力1出力セレクタ11−1、11−
2、11−3、11−4、11−5と、零検出器12
と、整数Qの入力qを1ビット左へ算術シストし、2q
を出力するシフタ16とを有する。
The quantization / inverse quantization calculator 100 includes multipliers 7-1 and 7-2, a rounding / truncating calculator 8-1 for rounding / truncating the multiplication result output from the multiplier 7-1, An arithmetic unit 8-2 that rounds / truncates the multiplication result output from the multiplier 7-2, an adder / subtractor 9, a plurality of pipeline registers 10, and 2-input 1-output selectors 11-1 and 11-.
2, 11-3, 11-4, 11-5 and the zero detector 12
And the input q of the integer Q is arithmetically shifted to the left by 1 bit, and 2q
And a shifter 16 for outputting

【0023】なお、図1において、13は、丸め/切り
捨て演算器8−1の出力についての零検出結果であり、
14は、丸め/切り捨て演算器8−1の出力の符号フラ
グであり、15は、量子化/逆量子化の切替え信号であ
る。
In FIG. 1, reference numeral 13 is a zero detection result for the output of the rounding / truncating calculator 8-1,
Reference numeral 14 is a sign flag output from the rounding / truncating calculator 8-1, and 15 is a switching signal for quantization / inverse quantization.

【0024】また、量子化/逆量子化演算器100は、
F ビット整数の被量子化データFと、整数部がnW,q
ビット、少数部がfW,q ビットである量子化重み係数の
逆数Wq -1 と、整数部がnM,q ビット、少数部がfM,q
ビットである量子化ステップの逆数Mq -1 と、整数部が
P,q ビットである整数Pとを入力し、 F0 =F×Wq -1 Q=(F0 +sign(F0 )・P)×Mq -1 x<0、x=0、x>0であるときに、sign(x)
がそれぞれ−1、0、1になる演算によって、nQ ビッ
トの整数Qを得ることによって、量子化演算を行なうも
のである。
Further, the quantization / inverse quantization calculator 100 is
n F bit integer quantized data F and integer part n W, q
Bit, the reciprocal quantized weight coefficient W q −1 whose fractional part is f W, q bits, and n M, q bits for the integer part and f M, q for the decimal part
Input the reciprocal of the quantization step M q −1 which is a bit and the integer P whose integer part is n P, q bits, and F 0 = F × W q −1 Q = (F 0 + sign (F 0 ). • P) × M q −1 x <0, x = 0, and x> 0, then sign (x)
Quantization operation is performed by obtaining an integer Q of n Q bits by an operation in which each becomes -1, 0, 1.

【0025】さらに、量子化/逆量子化演算器100
は、nQ ビット整数Qの入力qと、整数部がnW,i ビッ
ト、少数部がfW,i ビットである量子化重み係数Wi
と、整数部がnM,i ビット、少数部がfM,i ビットであ
る量子化ステップMi と、整数部がnn,i ビットである
整数Nとを入力し、 F’=(2q+sign(q)・N)×Wi ×Mi の演算によって、nF,q ビットの整数F’を出力するこ
とによって逆量子化演算とを行うものである。
Further, the quantization / inverse quantization calculator 100
Is an input q of an n Q- bit integer Q and a quantization weighting coefficient W i whose integer part is n W, i bits and whose decimal part is f W, i bits.
And a quantization step M i in which the integer part is n M, i bits and the decimal part is f M, i bits, and an integer N in which the integer part is n n, i bits, and F ′ = (2q + sign The inverse quantization operation is performed by outputting an integer F ′ of n F, q bits by the operation of (q) · N) × W i × M i .

【0026】次に、量子化/逆量子化演算器100の動
作について説明する。
Next, the operation of the quantization / inverse quantization calculator 100 will be described.

【0027】まず、量子化/逆量子化演算器100が量
子化演算を行う場合について説明する。量子化演算時
は、nF ビット整数の被量子化データFと、整数部がn
W,q ビット、少数部がfW,q ビットである量子化重み係
数の逆数Wq -1 と、整数部がnM,q ビット、少数部がf
M,q ビットである量子化ステップの逆数Mq -1 と、整数
部がnP,q ビットである整数Pとを入力し、乗算器7−
1と演算器8−1とで構成される第1の乗算器が、 F0 =F×Wq -1 を演算し、次に、加減算器9が、 F1 =F0 +sign(F0 )・P を演算し、乗算器7−2と演算器8−2とで構成される
第2の乗算器が、 Q=F1 ×Mq -1 を演算する。
First, the case where the quantization / inverse quantization calculator 100 performs a quantization operation will be described. At the time of the quantization operation, the quantized data F of n F bit integer and the integer part are n
W, q bits, the reciprocal of the quantization weighting coefficient W q -1 , where the decimal part is f W, q bits, and n M, q bits for the integer part and f for the decimal part
The reciprocal of the quantization step of M, q bits M q -1 and the integer P of which the integer part is n P, q bits are input, and the multiplier 7-
1 and the arithmetic unit 8-1 calculates F 0 = F × W q −1 , and then the adder / subtractor 9 calculates F 1 = F 0 + sign (F 0 ). -The second multiplier composed of the multiplier 7-2 and the calculator 8-2 calculates P and calculates Q = F 1 × M q -1 .

【0028】つまり、1番目のパイプラインステージで
は、セレクタ11−1、11−2、11−3、11−4
が、それぞれ、被量子化データF、量子化重み係数Wq
-1 、整数P、量子化ステップの逆数Mq -1 を選択し、
そのうち、被量子化データFと量子化重み係数Wq -1
を乗算器7−1に入力し、その結果をレジスタ10に格
納する。
That is, in the first pipeline stage, the selectors 11-1, 11-2, 11-3, 11-4 are used.
Are the quantized data F and the quantization weight coefficient W q , respectively.
-1 , integer P, the reciprocal of the quantization step M q -1 , and
The quantized data F and the quantization weight coefficient W q −1 are input to the multiplier 7-1 and the result is stored in the register 10.

【0029】2番目のパイプラインステージでは、レジ
スタ10の少数部について、演算器8−1が丸め/切り
捨て処理を行い、乗算器7−1の出力結果を整数化す
る。3番目のパイプラインステージでは、丸め/切り捨
て演算器8−1の出力と、セレクタ11−3で選択され
たPの値とを、加減算器9が加減算する。
In the second pipeline stage, the arithmetic unit 8-1 rounds / truncates the decimal part of the register 10 and converts the output result of the multiplier 7-1 into an integer. In the third pipeline stage, the adder / subtractor 9 adds and subtracts the output of the rounding / truncating calculator 8-1 and the value of P selected by the selector 11-3.

【0030】ここで、丸め/切り捨て演算器8−1の出
力が「0」である場合、零検出器12の出力が「1」に
なり、セレクタ11−5が「0」を選択し、出力する。
Here, when the output of the rounding / truncating arithmetic unit 8-1 is "0", the output of the zero detector 12 becomes "1", and the selector 11-5 selects "0" and outputs it. To do.

【0031】4番目のパイプラインステージでは、乗算
器7−2が、セレクタ11−5の出力にセレクタ11−
4の出力(Mq -1 )を乗じる。5番目のパイプラインス
テージでは、丸め/切り捨て演算器8−2が、乗算器7
−2の出力の少数部の丸め/切り捨て処理を行い、乗算
器7−2の出力を整数化する。上記の動作によって、量
子化演算が終了する。
In the fourth pipeline stage, the multiplier 7-2 outputs the output of the selector 11-5 to the selector 11-.
The output of 4 (M q -1 ) is multiplied. In the fifth pipeline stage, the rounding / truncating calculator 8-2 operates as the multiplier 7
The output of the multiplier 7-2 is converted into an integer by rounding / truncating the decimal part of the output of -2. The quantization operation is completed by the above operation.

【0032】次に、量子化/逆量子化演算器100が逆
量子化演算を行う場合について説明する。
Next, the case where the quantization / inverse quantization calculator 100 performs an inverse quantization operation will be described.

【0033】逆量子化時は、nQ ビット整数Qの入力q
と、整数部がnW,i ビット、少数部がfW,i ビットであ
る量子化重み係数Wi と、整数部がnM,i ビット、少数
部がfM,i ビットである量子化ステップMi と、整数部
がnn,i ビットである整数Nとを入力し、乗算器7−1
と演算器8−1とで構成される第1の乗算器が、 q’=2q×Wi を演算し、次に、加減算器9が、 q”=q’+sign(q)・(N×Wi ) を演算し、乗算器7−1と演算器8−2とで構成される
第2の乗算器が、 F’=q”×Mi を演算する。
At the time of inverse quantization, the input q of the n Q- bit integer Q
And a quantization weight coefficient W i in which the integer part is n W, i bits and the decimal part is f W, i bits, and quantization in which the integer part is n M, i bits and the decimal part is f M, i bits The step M i and the integer N whose integer part is n n, i bits are input, and the multiplier 7-1
And a calculator 8-1 calculate q ′ = 2q × W i , and then the adder / subtractor 9 calculates q ″ = q ′ + sign (q) · (N × W i ), and the second multiplier composed of the multiplier 7-1 and the calculator 8-2 calculates F ′ = q ″ × M i .

【0034】つまり、1番目のパイプラインステージで
は、セレクタ11−1、11−2、11−3、11−4
は、それぞれ、シフタ16の出力2q、整数部がnW,i
ビット、少数部がfW,i ビットである量子化重み係数W
i 、整数部がnn,i ビットである整数N・Wi 、整数部
がnM,i ビット、少数部がfM,i ビットである量子化ス
テップMi を選択する。
That is, in the first pipeline stage, the selectors 11-1, 11-2, 11-3, 11-4 are used.
Are the output 2q of the shifter 16 and the integer part n W, i , respectively.
Bit, the quantization weighting coefficient W whose decimal part is f W, i bits
i, the integer portion n n, an integer N · W i is a i-bit integer part is n M, i bits, the fractional part selects f M, a i-bit quantization step M i.

【0035】出力2qと量子化重み係数Wi とが乗算器
7−1に入力され、この乗算結果がレジスタ10に格納
される。2番目のパイプラインステージでは、丸め/切
り捨て演算器8−1が、レジスタ10の内容を丸め/切
り捨て処理し、有効数字を調整する。3番目のパイプラ
インステージでは、丸め/切り捨て演算器8−1の出力
と、セレクタ11−3で選択された整数N・Wi の値と
を加減算する。
The output 2q and the quantization weight coefficient W i are input to the multiplier 7-1, and the multiplication result is stored in the register 10. In the second pipeline stage, the rounding / truncating calculator 8-1 rounds / truncates the contents of the register 10 and adjusts the significant figures. In the third pipeline stage, the output of the rounding / truncating calculator 8-1 and the value of the integer N · W i selected by the selector 11-3 are added and subtracted.

【0036】ここで、丸め/切り捨て演算器8−1の出
力が「0」である場合、零検出器12の出力が「1」に
なり、セレクタ11−5が「0」を選択し、出力する。
なお、sign(x)=0の場合に、セレクタ11−5
が「0」を選択する。
Here, when the output of the rounding / truncating calculator 8-1 is "0", the output of the zero detector 12 becomes "1", the selector 11-5 selects "0", and the output To do.
Note that when sign (x) = 0, the selector 11-5
Selects "0".

【0037】ところで、丸め/切り捨て演算器の出力結
果について零検出する場合、その零検出をすべき数の桁
数が大きいと、その零検出動作による遅延を無視し得な
いが、その零検出動作を、加減算と並列に実行できるの
で、その零検出動作による遅延をキャンセルすることが
でき、その零検出動作による遅延が実際上は問題になら
ない。
By the way, in the case of detecting zero in the output result of the rounding / truncating arithmetic unit, if the number of digits of the number to be zero detected is large, the delay due to the zero detecting operation cannot be ignored, but the zero detecting operation is performed. Can be executed in parallel with addition and subtraction, so that the delay due to the zero detection operation can be canceled, and the delay due to the zero detection operation does not actually pose a problem.

【0038】また、上記実施例においては、sign
(x)=0の場合に、加減算器9の出力が必ず「0」に
なるので、sign(x)=0の場合には、セレクタ1
1−5を使用して演算結果を強制的に「0」にしてい
る。しかし、このようにする代りに、式の定義をそのま
ま実現するようにしてもよい。
In the above embodiment, the sign is
When (x) = 0, the output of the adder / subtractor 9 is always “0”. Therefore, when sign (x) = 0, the selector 1
1-5 is used to forcibly set the operation result to "0". However, instead of doing so, the definition of the formula may be directly realized.

【0039】そして、4番目のパイプラインステージで
は、乗算器7−2を用い、セレクタ11−5の出力に、
セレクタ11−4の出力であるMi を乗じる。5番目の
パイプラインステージでは、1度目の乗算器7−2出力
の丸め/切り捨て処理を行い、有効数字を調整する。上
記の動作によって、逆量子化演算が終了する。
Then, in the fourth pipeline stage, the multiplier 7-2 is used, and the output of the selector 11-5 is
Multiply by M i which is the output of the selector 11-4. In the fifth pipeline stage, the first rounding / truncating process of the output of the multiplier 7-2 is performed to adjust the significant figures. The above operation completes the inverse quantization operation.

【0040】図1に示す量子化/逆量子化演算器100
において、量子化、逆量子化ともに、乗算、丸め/切り
捨て、加減算、乗算、丸め/切り捨ての順で演算してお
り、この演算順序を損なわない限り、パイプラインレジ
スタ10の設置位置を自由に決めてもよい。
Quantization / inverse quantization calculator 100 shown in FIG.
In the above, both quantization and dequantization are performed in the order of multiplication, rounding / truncation, addition / subtraction, multiplication, and rounding / truncation. May be.

【0041】上記実施例において、量子化/逆量子化の
切替信号15、セレクタ11−3、11−4の入力信号
は、パイプラインレジスタ10を通過し、この通過によ
って、パイプラインステージのタイミング調節を行って
いる。しかし、パイプラインレジスタ10を使用せず
に、上記各信号を適当なタイミングで外部から入力し、
パイプラインステージの演算器に供給するようにしても
よい。
In the above embodiment, the quantizing / inverse quantizing switching signal 15 and the input signals of the selectors 11-3 and 11-4 pass through the pipeline register 10, and the timing adjusts the timing of the pipeline stage. It is carried out. However, without using the pipeline register 10, the above signals are input from the outside at an appropriate timing,
You may make it supply to the arithmetic unit of a pipeline stage.

【0042】量子化/逆量子化演算器100において、
量子化演算する場合にも、逆量子化演算する場合にも、
同一の固定少数点パイプライン演算ユニット(主に、乗
算器7−1、7−2と、丸め/切り捨て演算器8−1、
8−2と、加減算器9とで構成されている)を使用する
ので、全体として乗算器を2つ設ければ足り、したがっ
て、量子化演算と逆量子化演算とに要するハードウェア
量を削減することができる。なお、量子化演算する場合
と、逆量子化演算する場合とでは、セレクタ11−1、
11−2、11−3、11−4が、使用するパラメータ
を時分割しているので、パラメータの衝突は生じない。
In the quantization / inverse quantization calculator 100,
Whether you perform a quantization operation or an inverse quantization operation,
The same fixed-point pipeline arithmetic unit (mainly the multipliers 7-1 and 7-2 and the rounding / truncating arithmetic unit 8-1,
8-2 and the adder / subtractor 9), it is sufficient to provide two multipliers as a whole, thus reducing the amount of hardware required for the quantization operation and the inverse quantization operation. can do. It should be noted that the selector 11-1 and the selector 11-1, depending on whether the quantization operation is performed or the inverse quantization operation is performed,
Since the parameters 11-2, 11-3, and 11-4 time-share the parameters to be used, parameter collision does not occur.

【0043】図2は、本発明の第2の実施例である量子
化/逆量子化演算器200を示す図である。
FIG. 2 is a diagram showing a quantization / inverse quantization calculator 200 according to a second embodiment of the present invention.

【0044】量子化/逆量子化演算器200は、量子化
および逆量子化演算における2回の乗算を、1個の乗算
器を時分割利用して実行するものである。
The quantization / inverse quantization calculator 200 executes two multiplications in the quantization and inverse quantization operations by using one multiplier in time division.

【0045】量子化/逆量子化演算器200は、4入力
1出力セレクタ17と、3入力1出力セレクタ18とを
有する。信号15−1は、セレクタ17とセレクタ18
とに入力するパラメータを切替える量子化/逆量子化の
切替信号であり、信号15−2は、丸め/切り捨て演算
器8−2に入力する信号を、量子化/逆量子化用に切替
えるの切替信号である。
The quantization / inverse quantization calculator 200 has a 4-input 1-output selector 17 and a 3-input 1-output selector 18. The signal 15-1 is the selector 17 and the selector 18.
Is a quantization / inverse-quantization switching signal for switching parameters input to and, and a signal 15-2 is a switching signal for switching the signal input to the rounding / truncating calculator 8-2 for quantization / inverse quantization. It is a signal.

【0046】また、信号19−1は、量子化/逆量子化
それぞれの処理を行う場合、1度目の乗算の入力を選択
するのか、2度目の乗算の入力を選択するかを、セレク
タ17、セレクタ18に切り替えさせる切替信号であ
る。信号19−2は、量子化/逆量子化それぞれの処理
を行う場合、1度目の乗算結果の丸め/切り捨て演算を
行うのか、2度目の乗算結果の丸め/切り捨て演算を行
うかを、丸め/切り捨て演算器8−2に切り替えさせる
切替信号である。なお、20は、加算結果の帰還経路で
ある。
When the signal 19-1 is quantized / dequantized, the selector 17 selects whether the input of the first multiplication or the input of the second multiplication is selected. This is a switching signal for switching to the selector 18. The signal 19-2 determines whether to perform rounding / truncation operation of the first multiplication result or rounding / truncation operation of the second multiplication result when performing quantization / inverse quantization processing. This is a switching signal for switching to the round-down calculator 8-2. In addition, 20 is a return path of the addition result.

【0047】次に、量子化/逆量子化演算器200の動
作について説明する。
Next, the operation of the quantization / inverse quantization calculator 200 will be described.

【0048】まず、量子化/逆量子化演算器200が量
子化演算を行う場合について説明する。1番目のパイプ
ラインステージでは、セレクタ17、18はそれぞれ被
量子化データF、量子化重み係数の逆数Wq -1 を出力す
る。2番目のパイプラインステージでは、乗算器7−2
が1度目の乗算を行う。3番目のパイプラインステージ
では、丸め/切り捨て演算器8−2が1度目の乗算結果
について丸め/切り捨て処理を行い、整数化を行う。4
番目のパイプラインステージでは、加減算器9が丸め切
り捨て結果を加算する。この加算結果を、帰還経路20
を通じてセレクタ18に入力する。
First, the case where the quantizing / inverse quantizing calculator 200 performs a quantizing operation will be described. In the first pipeline stage, the selectors 17 and 18 output the quantized data F and the inverse W q −1 of the quantization weighting coefficient, respectively. In the second pipeline stage, the multiplier 7-2
Performs the first multiplication. In the third pipeline stage, the rounding / truncating arithmetic unit 8-2 performs rounding / truncating processing on the result of the first multiplication to perform integerization. Four
In the th pipeline stage, the adder / subtractor 9 adds the rounded-down results. This addition result is returned to the return path 20.
To the selector 18 through.

【0049】その後、セレクタ17が量子化ステップの
逆数Mq -1 を出力し、セレクタ18が加減算器9の加算
結果を出力する。5番目のパイプラインステージでは、
乗算器7−2が2度目の乗算を行う。6番目のパイプラ
インステージでは、演算器8−2が、2度目の乗算結果
を丸め/切り捨て処理し、整数化を行い、量子化結果と
して出力する。
After that, the selector 17 outputs the reciprocal of the quantization step M q -1 , and the selector 18 outputs the addition result of the adder / subtractor 9. In the fifth pipeline stage,
The multiplier 7-2 performs the second multiplication. In the sixth pipeline stage, the arithmetic unit 8-2 rounds / truncates the second multiplication result, performs integer conversion, and outputs the result as the quantization result.

【0050】次に、量子化/逆量子化演算器200が逆
量子化演算を行う場合について説明する。
Next, the case where the quantization / inverse quantization calculator 200 performs an inverse quantization operation will be described.

【0051】1番目のパイプラインステージでは、セレ
クタ17、18がそれぞれ2q、Wi を出力し、2番目
のパイプラインステージでは、演算器7−2が1度目の
乗算を行う。3番目のパイプラインステージでは、1度
目の乗算結果を演算器8−2が丸め切り捨て処理し、整
数化する。4番目のパイプラインステージでは、丸め切
り捨て結果を減算器9が加算し、この加算結果を、帰還
経路20を通じてセレクタ18に入力する。
[0051] In the first pipeline stage, the selector 17 outputs 2q, a W i, respectively, in the second pipeline stage, arithmetic unit 7-2 performs a multiplication of 1 time. In the third pipeline stage, the arithmetic unit 8-2 rounds and truncates the result of the first multiplication to convert it into an integer. In the fourth pipeline stage, the rounding-down result is added by the subtractor 9, and the addition result is input to the selector 18 through the feedback path 20.

【0052】その後、セレクタ17はMi を出力し、セ
レクタ18は加減算器9による加算結果を出力する。5
番目のパイプラインステージでは、乗算器7−2が2度
目の乗算を行う。6番目のパイプラインステージでは、
1度目の乗算結果を演算器8−2が丸め切り捨て処理
し、整数化し、逆量子化結果として出力する。
After that, the selector 17 outputs M i , and the selector 18 outputs the addition result of the adder / subtractor 9. 5
In the th pipeline stage, the multiplier 7-2 performs the second multiplication. In the sixth pipeline stage,
The arithmetic unit 8-2 rounds and rounds the first multiplication result, converts it into an integer, and outputs the result as an inverse quantization result.

【0053】量子化/逆量子化演算器200において、
被量子化データFは、2サイクルに1個の割合で入力さ
れ、また、逆量化データqも、2サイクルに1個の割合
で入力される。この場合、乗算を行うパイプラインステ
ージと丸め/切り捨てを行うパイプラインステージとの
間には、必ず偶数個のパイプラインステージが存在する
必要がある。つまり、量子化/逆量子化の第1回目の乗
算を、奇数段目のパイプラインステージで実行した場
合、偶数段目のパイプラインステージで第2回目の乗算
を行うようにすると、あるデータの第1回目の乗算によ
る乗算器と、第2回目の乗算による乗算器とが競合する
ことを回避できる。なお、第1回目の乗算を偶数段目で
実行すれば、第2回目の乗算を奇数段目で実行する。
In the quantization / inverse quantization calculator 200,
The quantized data F is input once every two cycles, and the inverse quantized data q is also input once every two cycles. In this case, there must be an even number of pipeline stages between the pipeline stage that performs multiplication and the pipeline stage that performs rounding / truncation. That is, when the first quantization / inverse quantization multiplication is executed in the odd-numbered pipeline stages, if the second multiplication is performed in the even-numbered pipeline stages, a certain data It is possible to avoid the competition between the multiplier for the first multiplication and the multiplier for the second multiplication. Note that if the first multiplication is executed in the even stages, the second multiplication is executed in the odd stages.

【0054】上記のように、乗算を行うパイプラインス
テージと丸め/切り捨てを行うパイプラインステージと
の間に、偶数個のパイプラインステージが必ず存在する
という関係が損なわれない限り、パイプラインレジスタ
10の配置は自由である。
As described above, unless the relationship that an even number of pipeline stages always exists between the pipeline stage for performing multiplication and the pipeline stage for performing rounding / truncation is not damaged, the pipeline register 10 Can be arranged freely.

【0055】量子化/逆量子化演算器200において、
量子化演算における乗算と、逆量子化演算とにおける乗
算との2回の乗算を、1個の乗算器7−2利用して実行
しているので、量子化演算と逆量子化演算とに要するハ
ードウェア量を従来よりも削減することができる。な
お、量子化演算する場合と、逆量子化演算する場合とで
は、セレクタ17、18、15−2がパラメータを時分
割しているので、パラメータの衝突は生じない。
In the quantization / inverse quantization calculator 200,
Since the multiplication in the quantization operation and the multiplication in the dequantization operation are performed twice using one multiplier 7-2, it is necessary for the quantization operation and the dequantization operation. The amount of hardware can be reduced more than ever before. Since the selectors 17, 18, and 15-2 time-share the parameters between the case of performing the quantization operation and the case of performing the inverse quantization, the parameter collision does not occur.

【0056】また、図2に示す量子化/逆量子化演算器
200において、セレクタ18の入力のF、Qと、セレ
クタ17の入力Wi 、Wq -1 とを交換しても、上記と同
様の作用が得られる。
In the quantizer / inverse-quantizer operator 200 shown in FIG. 2, even if the inputs F and Q of the selector 18 and the inputs W i and W q -1 of the selector 17 are exchanged, Similar effects are obtained.

【0057】図3は、本発明の第3の実施例である量子
化/逆量子化演算器300を示す図である。
.量子化/
逆量子化演算器300は、逆量子化演算時において、有
効数字の小さなデータから順に乗算するものである。
FIG. 3 is a diagram showing a quantization / inverse quantization calculator 300 according to a third embodiment of the present invention.
. Quantization /
The inverse quantization calculator 300 multiplies in order from the data with the smallest significant number in the inverse quantization operation.

【0058】量子化/逆量子化演算器300において、
符号10はパイプラインレジスタを示す符号であるが、
このうち、符号10−1、10−2、10−3は、第3
の実施例を説明するために、新たに符号付けされてい
る。
In the quantization / inverse quantization calculator 300,
Reference numeral 10 indicates a pipeline register,
Of these, reference numerals 10-1, 10-2, and 10-3 denote the third
Are newly numbered to describe the embodiment of FIG.

【0059】また、量子化/逆量子化演算器300は、
4入力1出力セレクタ17−1、17−2と、セレクタ
11−1、11−2と、シフタ16とを有する。シフタ
16は、切替信号19−1が量子化を指定していれば、
シフタ16の入力がそのまま出力され、逆量子化を指定
していれば、シフタ16の入力を1ビット左へシフトし
て出力する(入力を2倍にして出力する)ものである。
Further, the quantization / inverse quantization calculator 300 is
It has 4-input 1-output selectors 17-1 and 17-2, selectors 11-1 and 11-2, and a shifter 16. If the switching signal 19-1 specifies quantization, the shifter 16
If the input of the shifter 16 is output as it is and the inverse quantization is designated, the input of the shifter 16 is shifted to the left by 1 bit and is output (the input is doubled and output).

【0060】加減算器入力切替信号14は、加減算器9
の演算がそのサイクルにおいて、量子化演算に用いられ
ているか、逆量子化演算に用いられているかを切替える
切替信号である。
The adder / subtractor input switching signal 14 is supplied to the adder / subtractor 9
Is a switching signal for switching whether the operation of is used in the quantization operation or the inverse quantization operation in the cycle.

【0061】帰還経路21は、セレクタ11−3の出力
とセレクタ17−2の入力を接続する線であり、帰還経
路22は、レジスタ10−3の出力とセレクタ17の入
力とを接続する線であり、帰還経路23は、演算器8が
行った丸め/切り捨て演算の結果を格納したレジスタ1
0の出力を、セレクタ17−1と、加減算器9へ入力す
るセレクタ11−1の入力とを接続する線である。
The feedback path 21 is a line connecting the output of the selector 11-3 and the input of the selector 17-2, and the feedback path 22 is a line connecting the output of the register 10-3 and the input of the selector 17. Yes, the feedback path 23 is a register 1 that stores the result of the rounding / truncating operation performed by the arithmetic unit 8.
The output of 0 is a line connecting the selector 17-1 and the input of the selector 11-1 which is input to the adder / subtractor 9.

【0062】その他の各部の符号は、図2と同様に対応
づけてあり、その説明を省略する。また、信号15−
1、15−2、19−1、19−2も、図2に示す量子
化/逆量子化演算器200と対応づけてある。
The reference numerals of other parts are associated with each other in the same manner as in FIG. 2, and the description thereof will be omitted. Also, signal 15-
1, 15-2, 19-1 and 19-2 are also associated with the quantization / inverse quantization calculator 200 shown in FIG.

【0063】次に、量子化/逆量子化演算器300の動
作について説明する。
Next, the operation of the quantization / inverse quantization calculator 300 will be described.

【0064】まず、量子化/逆量子化演算器300にお
いて、量子化を行う場合の動作について説明する。1番
目のパイプラインステージでは、セレクタ17−1が量
子化重み係数の逆数Wq -1 を出力し、セレクタ17−2
が被量子化データFを出力する。2番目のパイプライン
ステージでは、乗算器7−2が1度目の乗算を行う。3
番目のパイプラインステージでは、丸め/切り捨て演算
器8が、1度目の乗算結果の整数化を行う。4番目のパ
イプラインステージでは、3番目のステージで得られた
1度目の乗算の積を、帰還経路23を介してセレクタ1
1−1に入力する。セレクタ11−1は、帰還経路23
の値を選択し、セレクタ11−2は、整数Pを選択す
る。
First, the operation of the quantizer / inverse-quantizer operator 300 when performing quantization will be described. In the first pipeline stage, the selector 17-1 outputs the reciprocal W q −1 of the quantization weight coefficient, and the selector 17-2
Outputs the quantized data F. In the second pipeline stage, the multiplier 7-2 performs the first multiplication. Three
In the second pipeline stage, the rounding / truncating calculator 8 converts the first multiplication result into an integer. In the fourth pipeline stage, the product of the first multiplication obtained in the third stage is passed through the feedback path 23 to the selector 1
Enter in 1-1. The selector 11-1 uses the feedback path 23.
, The selector 11-2 selects the integer P.

【0065】切替信号19−1によって、シフタ16
は、セレクタ11−1の出力をそのまま出力する。加減
算器9は、シフタ16の出力とセレクタ11−2の出力
とを加減算し、その結果を帰還経路21を介してセレク
タ17−2に入力する。セレクタ17−1は量子化重み
係数の逆数Mq -1 を出力し、セレクタ17−2は帰還経
路21を経由した値を出力する。5番目のパイプライン
ステージでは、乗算器7−2が2度目の乗算を行い、6
番目のパイプラインステージでは、2度目の乗算の積を
演算器8が整数化し、量子化結果を得る。
The shifter 16 is activated by the switching signal 19-1.
Outputs the output of the selector 11-1 as it is. The adder / subtractor 9 adds and subtracts the output of the shifter 16 and the output of the selector 11-2, and inputs the result to the selector 17-2 via the feedback path 21. The selector 17-1 outputs the reciprocal M q -1 of the quantization weighting coefficient, and the selector 17-2 outputs the value passed through the feedback path 21. In the fifth pipeline stage, the multiplier 7-2 performs the second multiplication,
In the th pipeline stage, the arithmetic unit 8 converts the product of the second multiplication into an integer and obtains the quantization result.

【0066】次に、量子化/逆量子化演算器300にお
いて、逆量子化を行う場合について説明する。1番目の
パイプラインステージでは、セレクタ17−1は量子化
重み係数Wi を出力し、セレクタ17−2は量子化ステ
ップMi を出力する。
Next, the case where the quantization / inverse quantization calculator 300 performs inverse quantization will be described. In the first pipeline stage, the selector 17-1 outputs the quantization weight coefficient W i , and the selector 17-2 outputs the quantization step M i .

【0067】ここで、セレクタ17−1が量子化重み係
数Wi を出力し、セレクタ17−2が量子化ステップM
i を出力する場合、整数Qi 、量子化重み係数Wi 、量
子化ステップMi について、nQ >nW,i かつnQ >n
M,i の関係を維持するので、有効数字の小さなデータか
ら順に乗算される。
Here, the selector 17-1 outputs the quantization weight coefficient W i , and the selector 17-2 outputs the quantization step M i.
When i is output, n Q > n W, i and n Q > n for integer Q i , quantization weight coefficient W i , and quantization step M i.
Since the relationship of M and i is maintained, the data with the smallest significant figures are sequentially multiplied.

【0068】セレクタ11−1は2qの値を選択し、セ
レクタ11−2はNを選択する。加減算入力切替信号1
9−1によって、シフタ16は、セレクタ11−1の出
力を1ビット左へシフトして出力する。加減算器9は、
シフタ16の出力とセレクタ11−2の出力とを加減算
し、セレクタ11−3の結果をパイプラインレジスタ1
0−1に格納する。
The selector 11-1 selects the value of 2q, and the selector 11-2 selects N. Addition / subtraction input switching signal 1
By 9-1, the shifter 16 shifts the output of the selector 11-1 to the left by 1 bit and outputs it. The adder / subtractor 9 is
The output of the shifter 16 and the output of the selector 11-2 are added and subtracted, and the result of the selector 11-3 is added to the pipeline register 1
It is stored in 0-1.

【0069】2番目のパイプラインステージでは、乗算
器7−2が1度目の乗算を行う。3番目のパイプライン
ステージでは、丸め/切り捨て演算器8が、1度目の乗
算結果を整数化し、この結果が帰還経路23を経由して
セレクタ17−1に入力される。4番目のパイプライン
ステージでは、セレクタ17−1は帰還経路23の値を
選択し、セレクタ17−2は、帰還経路22を経由して
セレクタ17−2に入力されたパイプラインレジスタ1
0−3の内容を選択する。5番目のパイプラインステー
ジは、乗算器7−2が2度目の乗算を行う。6番目のパ
イプラインステージは、2度目の乗算の積を演算器8が
整数化し、逆量子化結果を得る。
In the second pipeline stage, the multiplier 7-2 performs the first multiplication. In the third pipeline stage, the rounding / truncating calculator 8 converts the first multiplication result into an integer, and the result is input to the selector 17-1 via the feedback path 23. In the fourth pipeline stage, the selector 17-1 selects the value of the feedback path 23, and the selector 17-2 receives the pipeline register 1 input to the selector 17-2 via the feedback path 22.
Select contents 0-3. In the fifth pipeline stage, the multiplier 7-2 performs the second multiplication. In the sixth pipeline stage, the arithmetic unit 8 converts the product of the second multiplication into an integer to obtain an inverse quantization result.

【0070】量子化/逆量子化演算器300において、
被量子化データFは2サイクルに1個の割合で入力さ
れ、逆量子化データqも、2サイクルに1個の割合で入
力される。このときに、乗算を実行するパイプラインス
テージと、丸め/切り捨てを実行するパイプラインステ
ージとの間には、必ず偶数個のパイプラインステージが
存在する必要がある。この関係が損なわれない限り、パ
イプラインレジスタ10の配置は自由である。
In the quantization / inverse quantization calculator 300,
The quantized data F is input once every two cycles, and the dequantized data q is also input once every two cycles. At this time, there must be an even number of pipeline stages between the pipeline stage that performs multiplication and the pipeline stage that performs rounding / truncation. The pipeline register 10 can be freely arranged as long as this relationship is not damaged.

【0071】量子化/逆量子化演算器200において
は、入力データに関して、nQ >nW,i でありしかもn
Q >nM,i である場合、最も有効数字の大きい2qを被
乗数とする乗算が先に行われる。
In the quantizer / inverse-quantizer operator 200, for input data, n Q > n W, i and n
If Q > n M, i , the multiplication with 2q having the largest significant number as the multiplicand is performed first.

【0072】ところが、量子化/逆量子化演算器300
は、逆量子化演算時に、上記のように有効数字の小さな
データから順に乗算され、このようにすることによって
その乗算結果のデータ幅は小さくなり、したがって、逆
量子化演算に必要なデータ幅も小さくなり、このため
に、演算器ユニットの配線を削減することができる。
However, the quantization / inverse quantization calculator 300
Is multiplied in order from the data with the smallest significant number as described above at the time of the inverse quantization operation, and by doing so, the data width of the multiplication result becomes small, and therefore the data width required for the inverse quantization operation is also reduced. Since the size is reduced, the wiring of the arithmetic unit can be reduced.

【0073】すなわち、上記実施例は、量子化に必要な
量子化用パラメータと、逆量子化に必要な逆量子化用パ
ラメータとを切替えて出力するパラメータ選択手段と、
このパラメータ選択手段が出力した量子化用パラメータ
に基づいて、量子化演算を実行するとともに、パラメー
タ選択手段が出力した逆量子化用パラメータに基づい
て、逆量子化演算を実行する共通の演算手段とを有する
量子化/逆量子化演算器である。
That is, in the above embodiment, the parameter selecting means for switching and outputting the quantization parameter required for quantization and the inverse quantization parameter required for inverse quantization,
A common arithmetic means for executing the quantization operation based on the quantization parameter output by the parameter selecting means and an inverse quantization operation based on the inverse quantization parameter output by the parameter selecting means. Is a quantization / inverse quantization calculator having

【0074】この場合、上記量子化演算は、nF ビット
整数の被量子化データFと、整数部がnW,q ビット、少
数部がfW,q ビットである量子化重み係数の逆数Wq -1
と、整数部がnM,q ビット、少数部がfM,q ビットであ
る量子化ステップの逆数Mq -1 と、整数部がnP,q ビッ
トである整数Pとを入力し、 F0 =F×Wq -1 Q=(F0 +sign(F0 )・P)×Mq -1 x<0、x=0、x>0であるときに、sign(x)
がそれぞれ−1、0、1になる演算によって、nQ ビッ
トの整数Qを得る演算である。
In this case, the above-mentioned quantization operation is performed by reciprocal number W of the quantization weighting coefficient F whose n F bit integer is n W, q bits and whose decimal part is f W, q bits. q -1
, And the reciprocal of the quantization step M q −1 whose integer part is n M, q bits and whose decimal part is f M, q bits, and integer P whose integer part is n P, q bits, and F 0 = F × W q −1 Q = (F 0 + sign (F 0 ) · P) × M q −1 When x <0, x = 0, x> 0, sign (x)
Is an operation to obtain an integer Q of n Q bits by the operations of becoming -1, 0, and 1, respectively.

【0075】また、上記逆量子化演算は、nQ ビット整
数Qの入力qと、整数部がnW,i ビット、少数部がf
W,i ビットである量子化重み係数Wi と、整数部がn
M,i ビット、少数部がfM,i ビットである量子化ステッ
プMi と、整数部がnn,i ビットである整数Nとを入力
し、 F’=(2q+sign(q)・N)×Wi ×Mi の演算によって、nF,q ビットの整数F’を出力する演
算である。
In the inverse quantization operation, the input q of the n Q- bit integer Q, the integer part is n W, i bits, and the decimal part is f.
Quantization weight coefficient W i , which is W, i bits, and the integer part is n
M, Type i bits, fractional part is f M, and the quantization step M i is the i-bit integer part is n n, the integer N is i bits, F '= (2q + sign (q) · N) It is an operation of outputting an integer F ′ of n F, q bits by an operation of × W i × M i .

【0076】[0076]

【発明の効果】本発明によれば、量子化/逆量子化演算
器において使用する乗算器の数を少なくできるので、量
子化/逆量子化演算器におけるハードウェア量と面積と
が小さいという効果を奏する。
According to the present invention, since the number of multipliers used in the quantization / inverse quantization calculator can be reduced, the amount of hardware and the area in the quantization / inverse quantization calculator are small. Play.

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

【図1】本発明の第1の実施例である量子化/逆量子化
演算器100を示すブロック図である。
FIG. 1 is a block diagram showing a quantization / inverse quantization calculator 100 that is a first embodiment of the present invention.

【図2】本発明の第2の実施例である量子化/逆量子化
演算器200を示すブロック図である。
FIG. 2 is a block diagram showing a quantization / inverse quantization calculator 200 according to a second embodiment of the present invention.

【図3】本発明の第3の実施例である量子化/逆量子化
演算器300を示すブロック図である。
FIG. 3 is a block diagram showing a quantization / inverse quantization calculator 300 which is a third embodiment of the present invention.

【図4】画像符号化/復号化LSIにおいて、量子化お
よび逆量子化を行う従来の量子化/逆量子化演算器40
0のハードウェア構成を示す図である。
FIG. 4 is a conventional quantization / inverse quantization calculator 40 for performing quantization and inverse quantization in an image encoding / decoding LSI.
It is a figure which shows the hardware constitutions of 0.

【図5】上記量子化/逆量子化演算器400における量
子化器1と逆量子化器2とを具体的に示す図である。
5 is a diagram specifically showing a quantizer 1 and an inverse quantizer 2 in the quantizer / inverse-quantizer operator 400. FIG.

【図6】図5に示すALU3の演算器構成を示す図であ
る。
6 is a diagram showing a configuration of an arithmetic unit of the ALU3 shown in FIG.

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

100、200、300…量子化/逆量子化演算器、 7−1、7−2…乗算器、 8−1、8−2…丸め/切り捨て演算器、 9…加減算器、 10…パイプラインレジスタ、 11、11−1、11−2、11−3、11−4、11
−5、15−2、17、17−1、17−2、18、1
9…セレクタ、 13…零検出器、 14…符号フラグ、 16…シフタ、 F…nF ビット整数の被量子化データ、 Wq -1 …整数部がnW,q ビット、少数部がfW,q ビット
である量子化重み係数の逆数、 Mq -1 …整数部がnM,q ビット、少数部がfM,q ビット
である量子化ステップの逆数、 P…整数部がnP,q ビットである整数、 Q…nQ ビットの整数、 q…nQ ビット整数Qの入力、 Wi …整数部がnW,i ビット、少数部がfW,i ビットで
ある量子化重み係数、 Mi …整数部がnM,i ビット、少数部がfM,i ビットで
ある量子化ステップ、 N…整数部がnn,i ビットである整数。
100, 200, 300 ... Quantization / inverse quantization calculator, 7-1, 7-2 ... Multiplier, 8-1, 8-2 ... Rounding / truncating calculator, 9 ... Adder / subtractor, 10 ... Pipeline register , 11, 11-1, 11-2, 11-3, 11-4, 11
-5, 15-2, 17, 17-1, 17-2, 18, 1
9 ... Selector, 13 ... Zero detector, 14 ... Sign flag, 16 ... Shifter, F ... n F bit integer quantized data, W q -1 ... Integer part is n W, q bits, and decimal part is f W , the reciprocal of the quantization weighting coefficient that is q bits, M q −1 ... The integer part is n M, q bits, the decimal part is the reciprocal of the quantization step that is f M, q bits, P ... The integer part is n P, q- bit integer, Q ... n Q- bit integer, q ... n Q- bit integer Q input, W i ... Quantization weight coefficient whose integer part is n W, i bits, and decimal part is f W, i bits , M i ... Quantization step in which the integer part is n M, i bits and the decimal part is f M, i bits, N ... Integer in which the integer part is n n, i bits.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 量子化に必要な量子化用パラメータと、
逆量子化に必要な逆量子化用パラメータとを切り換えて
出力するパラメータ選択手段と;このパラメータ選択手
段が出力した上記量子化用パラメータに基づいて、量子
化演算を実行するとともに、上記パラメータ選択手段が
出力した上記逆量子化用パラメータに基づいて、逆量子
化演算を実行する共通の演算手段と;を有することを特
徴とする量子化/逆量子化演算器。
1. A quantization parameter required for quantization,
A parameter selecting means for switching and outputting an inverse quantization parameter necessary for inverse quantization; a quantization operation based on the quantization parameter output by the parameter selecting means, and a parameter selecting means And a common arithmetic means for executing an inverse quantization operation on the basis of the above-mentioned inverse quantization parameter output by the above-mentioned quantization / inverse quantization operator.
【請求項2】 請求項1において、 上記量子化演算は、nF ビット整数の被量子化データF
と、整数部がnW,q ビット、少数部がfW,q ビットであ
る量子化重み係数の逆数Wq -1 と、整数部がnM,q ビッ
ト、少数部がfM,q ビットである量子化ステップの逆数
q -1 と、整数部がnP,q ビットである整数Pとを入力
し、 F0 =F×Wq -1 Q=(F0 +sign(F0 )・P)×Mq -1 x<0、x=0、x>0であるときに、sign(x)
がそれぞれ−1、0、1になる演算によって、nQ ビッ
トの整数Qを得る演算であり、 上記逆量子化演算は、nQ ビット整数Qの入力qと、整
数部がnW,i ビット、少数部がfW,i ビットである量子
化重み係数Wi と、整数部がnM,i ビット、少数部がf
M,i ビットである量子化ステップMi と、整数部がn
n,i ビットである整数Nとを入力し、 F’=(2q+sign(q)・N)×Wi ×Mi の演算によって、nF,q ビットの整数F’を出力する演
算であることを特徴とする量子化/逆量子化演算器。
2. The quantized data according to claim 1, wherein the quantized data F is an n F bit integer.
And the reciprocal of the quantization weighting coefficient W q -1 , where the integer part is n W, q bits and the decimal part is f W, q bits, and the integer part is n M, q bits, and the decimal part is f M, q bits the reciprocal M q -1 of the quantization step is, integer part inputs the integer P is n P, q bits, F 0 = F × W q -1 Q = (F 0 + sign (F 0) · P) × M q −1 x <0, x = 0, and x> 0, sign (x)
Is an operation for obtaining an n Q- bit integer Q by an operation in which −1, 0, and 1, respectively, and the dequantization operation is performed by inputting an n Q- bit integer Q and an integer part of n W, i bits. , The quantizing weight coefficient W i whose fractional part is f W, i bits, and the integer part n M, i bits, and the fractional part f
Quantization step M i , which is M, i bits, and the integer part is n
Inputting an integer N which is n, i bits, and outputting the integer F ′ of n F, q bits by the operation of F ′ = (2q + sign (q) · N) × W i × M i Quantization / dequantization calculator.
【請求項3】 nF ビット整数の被量子化データFと、
整数部がnW,q ビット、少数部がfW,q ビットである量
子化重み係数の逆数Wq -1 と、整数部がnM, q ビット、
少数部がfM,q ビットである量子化ステップの逆数Mq
-1 と、整数部がnP,q ビットである整数Pとを入力
し、 F0 =F×Wq -1 Q=(F0 +sign(F0 )・P)×Mq -1 x<0、x=0、x>0であるときに、sign(x)
がそれぞれ−1、0、1になる演算によって、nQ ビッ
トの整数Qを得る量子化演算と、 nQ ビット整数Qの入力qと、整数部がnW,i ビット、
少数部がfW,i ビットである量子化重み係数Wi と、整
数部がnM,i ビット、少数部がfM,i ビットである量子
化ステップMi と、整数部がnn,i ビットである整数N
とを入力し、 F’=(2q+sign(q)・N)×Wi ×Mi の演算によって、nF,q ビットの整数F’を出力する逆
量子化演算とを行う量子化/逆量子化演算器において、 上記被量子化データFと上記量子化重み係数の逆数Wq
-1 と上記量子化ステップの逆数Mq -1 と上記整数Pと
を含む量子化用パラメータと、上記入力qと上記量子化
重み係数Wi と上記量子化ステップMi と上記整数Nと
を含む逆量子化用パラメータとを切り換えて出力するパ
ラメータ選択手段と;積の丸め機能と切り捨て機能とを
具備し、上記パラメータ選択手段が出力するパラメータ
を乗算する第1の乗算器と;被加数の正、零、負によっ
て演算内容を切替える機能を具備し、上記第1の乗算器
の出力を入力する加減算器と;積の丸め機能と切り捨て
機能とを具備し、上記加減算器の出力を入力する第2の
乗算器と;を有し、 上記第1の乗算器へいかなるタイミングでデータが入力
されても、正当な演算結果を出力するパイプライン演算
器であることを特徴とする量子化/逆量子化演算器。
3. Quantized data F of n F bit integers,
The reciprocal of the quantization weight coefficient W q −1 , where the integer part is n W, q bits and the decimal part is f W, q bits, and the integer part is n M, q bits,
Reciprocal number of quantization step M q whose fractional part is f M, q bits
−1 and an integer P whose integer part is n P, q bits are input, and F 0 = F × W q −1 Q = (F 0 + sign (F 0 ) · P) × M q −1 x < When 0, x = 0, and x> 0, sign (x)
Quantization operation to obtain an integer Q of n Q bits by an operation of becoming -1, 0, 1, an input q of an n Q bit integer Q, and an integer part of n W, i bits,
Quantization weight coefficient W i having a decimal part of f W, i bits, a quantization step M i having an integer part of n M, i bits and a decimal part of f M, i bits, and an integer part of n n, an integer N that is i bits
Quantization / inverse quantification, which is performed by inputting and F ′ = (2q + sign (q) · N) × W i × M i and outputting an integer F ′ of n F, q bits. In the quantization operation unit, the reciprocal W q of the data to be quantized F and the quantization weight coefficient
−1 , the reciprocal of the quantization step M q −1, and the integer P, the input q, the quantization weight coefficient W i , the quantization step M i, and the integer N. A parameter selection means for switching and outputting the included inverse quantization parameter; a first multiplier having a product rounding function and a truncation function for multiplying the parameter output by the parameter selection means; And an adder / subtractor for inputting the output of the first multiplier; and a function for rounding and truncating the product and inputting the output of the adder / subtractor. And a second multiplier for performing a quantization operation, which is a pipeline arithmetic unit that outputs a valid arithmetic result no matter what timing data is input to the first multiplier. Inverse quantization calculator.
【請求項4】 nF ビット整数の被量子化データFと、
整数部がnW,q ビット、少数部がfW,q ビットである量
子化重み係数の逆数Wq -1 と、整数部がnM,q ビット、
少数部がfM,q ビットである量子化ステップの逆数Mq
-1 と、整数部がnP,q ビットである整数Pとを入力
し、 F0 =F×Wq -1 Q=(F0 +sign(F0 )・P)×Mq -1 x<0、x=0、x>0であるときに、sign(x)
がそれぞれ−1、0、1になる演算によって、nQ ビッ
トの整数Qを得る量子化演算と、 nQ ビット整数Qの入力qと、整数部がnW,i ビット、
少数部がfW,i ビットである量子化重み係数Wi と、整
数部がnM,i ビット、少数部がfM,i ビットである量子
化ステップMi と、整数部がnn,i ビットである整数N
とを入力し、 F’=(2q+sign(q)・N)×Wi ×Mi の演算によって、nF,q ビットの整数F’を出力する逆
量子化演算とを行う量子化/逆量子化演算器において、 上記被量子化データFと上記量子化重み係数の逆数Wq
-1 と上記量子化ステップの逆数Mq -1 と上記整数Pと
を含む量子化用パラメータと、上記入力qと上記量子化
重み係数Wi と上記量子化ステップMi と上記整数Nと
を含む逆量子化用パラメータとを切り換えて出力するパ
ラメータ選択手段と;積の丸め機能と切り捨て機能とを
具備し、上記パラメータ選択手段が出力するパラメータ
を乗算する乗算器と;この乗算器の入力を選択する選択
器と;被加数の正、零、負によって演算内容を切替える
機能を具備し、上記乗算器の出力を入力する加減算器
と;この加減算器の出力を上記選択器に入力する帰還経
路と;を有し、奇数サイクル後に、上記乗算器の出力
が、上記加減算器と上記選択器とを経由し、上記乗算器
に再び入力され、上記乗算器へいかなるタイミングでデ
ータが入力されても、正当な演算結果を出力するパイプ
ライン演算器であることを特徴とする量子化/逆量子化
演算器。
4. Quantized data F of n F bit integers,
The reciprocal of the quantization weight coefficient W q −1 , where the integer part is n W, q bits and the decimal part is f W, q bits, and the integer part is n M, q bits,
Reciprocal number of quantization step M q whose fractional part is f M, q bits
−1 and an integer P whose integer part is n P, q bits are input, and F 0 = F × W q −1 Q = (F 0 + sign (F 0 ) · P) × M q −1 x < When 0, x = 0, and x> 0, sign (x)
Quantization operation to obtain an integer Q of n Q bits by an operation of becoming -1, 0, 1, an input q of an n Q bit integer Q, and an integer part of n W, i bits,
Quantization weight coefficient W i having a decimal part of f W, i bits, a quantization step M i having an integer part of n M, i bits and a decimal part of f M, i bits, and an integer part of n n, an integer N that is i bits
Quantization / inverse quantification, which is performed by inputting and F ′ = (2q + sign (q) · N) × W i × M i and outputting an integer F ′ of n F, q bits. In the quantization operation unit, the reciprocal W q of the data to be quantized F and the quantization weight coefficient
−1 , the reciprocal of the quantization step M q −1, and the integer P, the input q, the quantization weight coefficient W i , the quantization step M i, and the integer N. A parameter selection means for switching and outputting the included dequantization parameter; a multiplier having a product rounding function and a truncation function for multiplying the parameter output by the parameter selection means; and an input of this multiplier A selector for selecting; an adder / subtractor having a function of switching operation contents depending on whether the augend is positive, zero, or negative; and a feedback for inputting the output of the adder / subtractor to the selector. The output of the multiplier is input to the multiplier again via the adder / subtractor and the selector after odd cycles, and data is input to the multiplier at any timing. Is also legitimate Quantization / dequantization calculator, which is a pipeline operation unit for outputting the operation result.
【請求項5】 nF ビット整数の被量子化データFと、
整数部がnW,q ビット、少数部がfW,q ビットである量
子化重み係数の逆数Wq -1 と、整数部がnM,q ビット、
少数部がfM,q ビットである量子化ステップの逆数Mq
-1 と、整数部がnP,q ビットである整数Pとを入力
し、 F0 =F×Wq -1 Q=(F0 +sign(F0 )・P)×Mq -1 x<0、x=0、x>0であるときに、sign(x)
がそれぞれ−1、0、1になる演算によって、nQ ビッ
トの整数Qを得る量子化演算と、 nQ ビット整数Qの入力qと、整数部がnW,i ビット、
少数部がfW,i ビットである量子化重み係数Wi と、整
数部がnM,i ビット、少数部がfM,i ビットである量子
化ステップMi と、整数部がnn,i ビットである整数N
とを入力し、 F’=(2q+sign(q)・N)×Wi ×Mi の演算によって、nF,q ビットの整数F’を出力する逆
量子化演算とを行う量子化/逆量子化演算器において、 上記被量子化データFと上記量子化重み係数の逆数Wq
-1 と上記量子化ステップの逆数Mq -1 と上記整数Pと
を含む量子化用パラメータと、上記入力qと上記量子化
重み係数Wi と上記量子化ステップMi と上記整数Nと
を含む逆量子化用パラメータとを切り換えて出力するパ
ラメータ選択手段と;積の丸め機能と切り捨て機能とを
具備し、上記パラメータ選択手段の出力を乗算する乗算
器と;被加数の正、零、負によって演算内容を切替える
加減算器と;この加減算器の出力を格納する一時記憶レ
ジスタと;を有し、整数Qi 、上記量子化重み係数W
i 、上記量子化ステップMi について、nQ >nW,i
つnQ >nM,i の関係がある場合に、上記パラメータ選
択手段の出力が上記乗算器に入力され、上記パラメータ
選択手段の出力が上記加減算器と帰還経路とを経て上記
パラメータ選択手段の入力に接続され、上記パラメータ
選択手段と上記一時記憶レジスタとを経由し、奇数サイ
クル後に、上記加減算器の出力が上記乗算器に再び入力
され、上記加減算器による加減算と、上記パラメータ選
択手段による乗数、被乗数の選択とを、同一のパイプラ
インステージで行い、上記乗算器へいかなるタイミング
でデータが入力されても、正当な演算結果を出力するパ
イプライン演算器であることを特徴とする量子化/逆量
子化演算器。
5. Quantized data F of n F bit integers,
The reciprocal of the quantization weight coefficient W q −1 , where the integer part is n W, q bits and the decimal part is f W, q bits, and the integer part is n M, q bits,
Reciprocal number of quantization step M q whose fractional part is f M, q bits
−1 and an integer P whose integer part is n P, q bits are input, and F 0 = F × W q −1 Q = (F 0 + sign (F 0 ) · P) × M q −1 x < When 0, x = 0, and x> 0, sign (x)
Quantization operation to obtain an integer Q of n Q bits by an operation of becoming -1, 0, 1, an input q of an n Q bit integer Q, and an integer part of n W, i bits,
Quantization weight coefficient W i having a decimal part of f W, i bits, a quantization step M i having an integer part of n M, i bits and a decimal part of f M, i bits, and an integer part of n n, an integer N that is i bits
Quantization / inverse quantification, which is performed by inputting and F ′ = (2q + sign (q) · N) × W i × M i and outputting an integer F ′ of n F, q bits. In the quantization operation unit, the reciprocal W q of the data to be quantized F and the quantization weight coefficient
−1 , the reciprocal of the quantization step M q −1, and the integer P, the input q, the quantization weight coefficient W i , the quantization step M i, and the integer N. A parameter selecting means for switching and outputting the included inverse quantization parameter; a multiplier having a product rounding function and a truncating function, and multiplying the output of the parameter selecting means; An adder / subtractor that switches the content of the operation depending on the negative; and a temporary storage register that stores the output of this adder / subtractor; integer Q i ;
i , the quantization step M i , when there is a relation of n Q > n W, i and n Q > n M, i , the output of the parameter selecting means is input to the multiplier, and the parameter selecting means Is connected to the input of the parameter selecting means via the adder / subtractor and the feedback path, and via the parameter selecting means and the temporary storage register, and after an odd number of cycles, the output of the adder / subtractor is sent to the multiplier. Input again, the addition and subtraction by the adder / subtractor and the selection of the multiplier and the multiplicand by the parameter selection means are performed in the same pipeline stage, and no matter what timing the data is input to the multiplier, a valid operation result is obtained. Quantization / inverse quantization calculator, which is a pipeline calculator that outputs
JP16920095A 1995-06-12 1995-06-12 Quantization and reverse quantization arithmetic unit Pending JPH08340532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16920095A JPH08340532A (en) 1995-06-12 1995-06-12 Quantization and reverse quantization arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16920095A JPH08340532A (en) 1995-06-12 1995-06-12 Quantization and reverse quantization arithmetic unit

Publications (1)

Publication Number Publication Date
JPH08340532A true JPH08340532A (en) 1996-12-24

Family

ID=15882070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16920095A Pending JPH08340532A (en) 1995-06-12 1995-06-12 Quantization and reverse quantization arithmetic unit

Country Status (1)

Country Link
JP (1) JPH08340532A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012154A (en) * 2016-10-28 2018-05-08 北京金山云网络技术有限公司 A kind of method for video coding and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012154A (en) * 2016-10-28 2018-05-08 北京金山云网络技术有限公司 A kind of method for video coding and device

Similar Documents

Publication Publication Date Title
US5500812A (en) Multiplication circuit having rounding function
JP4064989B2 (en) Device for performing multiplication and addition of packed data
US6915322B2 (en) Multiplier capable of multiplication of large multiplicands and parallel multiplications of small multiplicands
US6823353B2 (en) Method and apparatus for multiplying and accumulating complex numbers in a digital filter
US5862067A (en) Method and apparatus for providing high numerical accuracy with packed multiply-add or multiply-subtract operations
KR100310584B1 (en) A system for signal processing using multiply-add operations
KR19990044305A (en) A multiplication-addition operation unit
CA2530015C (en) Division and square root arithmetic unit
KR19990044304A (en) Instruction set for compressed data operation
US5993051A (en) Combined leading one and leading zero anticipator
KR20040063143A (en) High-speed computation in arithmetic logic circuit
US6223197B1 (en) Constant multiplier, method and device for automatically providing constant multiplier and storage medium storing constant multiplier automatic providing program
JPH01269183A (en) Spatial filter picture processor
JP3102115B2 (en) Discrete cosine transform processor
JPH07234778A (en) Arithmetic circuit
US5870322A (en) Multiplier to selectively perform unsigned magnitude multiplication or signed magnitude multiplication
JPH08340532A (en) Quantization and reverse quantization arithmetic unit
US6684236B1 (en) System of and method for efficiently performing computations through extended booth encoding of the operands thereto
JPH0540605A (en) Floating point multiplier
KR100264957B1 (en) Calculating the average of two integer numbers rounded away from zero in a single instruction cycle
KR0176883B1 (en) Complex number multiplier
JP3221076B2 (en) Digital filter design method
JP2608090B2 (en) High radix non-restoring divider
JPS6177964A (en) Digital signal processor
JP2023161967A (en) Arithmetic device, arithmetic method, and program