JP3189553B2 - Arithmetic unit - Google Patents

Arithmetic unit

Info

Publication number
JP3189553B2
JP3189553B2 JP01718994A JP1718994A JP3189553B2 JP 3189553 B2 JP3189553 B2 JP 3189553B2 JP 01718994 A JP01718994 A JP 01718994A JP 1718994 A JP1718994 A JP 1718994A JP 3189553 B2 JP3189553 B2 JP 3189553B2
Authority
JP
Japan
Prior art keywords
shift number
normalized
data
input data
normalized shift
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP01718994A
Other languages
Japanese (ja)
Other versions
JPH07225670A (en
Inventor
智昭 南田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP01718994A priority Critical patent/JP3189553B2/en
Publication of JPH07225670A publication Critical patent/JPH07225670A/en
Application granted granted Critical
Publication of JP3189553B2 publication Critical patent/JP3189553B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、特に、固定長のメモリ
内に複数種類のビット長のデータが含まれる場合にその
データの正規化シフトを行うのに適する演算装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic unit which is particularly suitable for performing a normalization shift of data having a plurality of types of bit lengths in a fixed length memory.

【0002】[0002]

【従来の技術】近年、ディジタル信号処理には、より高
度な技術が導入され、より高速度、より高度の処理を行
うことが演算装置に要求されている。このような処理の
中には、メモリ内に複数種類のビット長のデータを正規
化する動作を含むものが多い。
2. Description of the Related Art In recent years, more advanced techniques have been introduced into digital signal processing, and arithmetic devices are required to perform higher speed and higher processing. Many of such processes include an operation of normalizing a plurality of types of bit length data in the memory.

【0003】以下、従来の演算装置の一例について図面
を参照しながら説明する。図2は従来の演算装置を示す
ブロック図である。
Hereinafter, an example of a conventional arithmetic unit will be described with reference to the drawings. FIG. 2 is a block diagram showing a conventional arithmetic unit.

【0004】図2において、101はメモリからのデー
タ、若しくは命令により即値データが与えられる入力デ
ータバス、102は入力データバス101のデータを算
術、若しくは論理シフトするバレルシフタ、103はバ
レルシフタ102に正規化シフト数を与える正規化シフ
ト数ラッチ、104は入力データの正規化シフト数を検
出する正規化シフト数検出器、105はALU(算術論
理演算回路)、106は出力データバスである。
In FIG. 2, reference numeral 101 denotes an input data bus to which data from a memory or immediate data is given by an instruction; 102, a barrel shifter for arithmetically or logically shifting data on the input data bus 101; A normalized shift number latch for giving a shift number, 104 is a normalized shift number detector for detecting the normalized shift number of input data, 105 is an ALU (arithmetic logic operation circuit), and 106 is an output data bus.

【0005】以上の構成において、以下、その正規化動
作について説明する。まず、正規化しようとするデータ
が入力データバス101から正規化シフト数検出器10
4に与えられ、正規化シフト数が検出される。検出され
た正規化シフト数は正規化シフト数ラッチ103に与え
られ、バレルシフタ102が正規化シフト数ラッチ10
3の値を用いて入力データバス101に与えられ、正規
化しようとするデータを正規化シフトし、ALU105
に出力する。
The normalizing operation of the above configuration will be described below. First, the data to be normalized is transmitted from the input data bus 101 to the normalized shift number detector 10.
4 and a normalized shift number is detected. The detected normalized shift number is supplied to a normalized shift number latch 103, and the barrel shifter 102
3, the data supplied to the input data bus 101 is normalized-shifted, and the ALU 105
Output to

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来例の演算装置では、例えば、1w24ビットのメモリ
2wに、上位16ビット、下位16ビットの32ビット
データが格納されていて、このデータを正規化しようと
するときに、上位16ビットデータが0であった場合、
真の正規化シフト数は15+下位データシフト数である
のに対し、検出される正規化シフト数は23+下位デー
タシフト数となる。これは正規化シフト数の最大値が、
メモリのビット長−1の値で固定されており、メモリの
中に複数種類のビット長のデータが存在して、そのデー
タを正規化しようとするときに、意味のあるビット長を
超える正規化シフト数で正規化しようとする問題を有し
ていたからである。
However, in the above-described conventional arithmetic device, for example, a 1w / 24bit memory 2w stores upper 16 bits and lower 16 bits of 32 bit data, and normalizes this data. When trying, if the upper 16-bit data is 0,
The true normalized shift number is 15 + the lower data shift number, whereas the detected normalized shift number is 23 + the lower data shift number. This means that the maximum value of the normalized shift number is
It is fixed at the value of the bit length of the memory minus one. When there are data of a plurality of types of bit lengths in the memory and the data is to be normalized, normalization exceeding a meaningful bit length is performed. This is because there was a problem of normalizing with the shift number.

【0007】本発明は、上記従来の問題を解決するもの
であり、固定長のメモリ内に複数種類のビット長のデー
タが存在する場合にも、データの意味のあるビット数を
超えない正規化シフト数を検出することができるように
した演算装置を提供することを目的とするものである。
SUMMARY OF THE INVENTION The present invention solves the above-described conventional problem. Even when data of a plurality of types of bit lengths exist in a fixed-length memory, normalization that does not exceed the number of meaningful bits of the data is performed. It is an object of the present invention to provide an arithmetic device capable of detecting the number of shifts.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
の本発明の技術的手段は、入力データが与えられる入力
データバスと、このバスのデータを算術、若しくは論理
シフトするバレルシフタと、このバレルシフタに正規化
シフト数を与える正規化シフト数ラッチと、上記入力デ
ータバスに与えられたデータの正規化シフト数を検出
し、上記正規化シフト数ラッチに正規化シフト数をセッ
トする正規化シフト数検出器と、この正規化シフト数検
出器から出力される正規化シフト数の最大値を制御する
正規化最大シフト数制御部と、上記入力データバスから
上記正規化最大シフト数制御部に与える正規化シフト数
の最大値がセットされる正規化最大シフト数ラッチとを
備えたものである。
According to the present invention, there is provided an input data bus to which input data is supplied, a barrel shifter for arithmetically or logically shifting the data on the bus, and a barrel shifter. A normalized shift number latch for giving a normalized shift number to the input data bus, and a normalized shift number for detecting the normalized shift number of the data supplied to the input data bus and setting the normalized shift number in the normalized shift number latch. A detector, a normalized maximum shift number control unit that controls the maximum value of the normalized shift number output from the normalized shift number detector, and a normalizer that is supplied from the input data bus to the normalized maximum shift number control unit. And a normalized maximum shift number latch in which the maximum value of the normalized shift number is set.

【0009】[0009]

【作用】したがって、本発明によれば、メモリに複数書
類のビット長のデータが存在して、そのデータを正規化
しょうとするとき、検出する正規化シフト数を、正規化
最大シフト数ラッチに与えられた数で正規化最大シフト
数制御部が制限することができる。
Therefore, according to the present invention, when data having a bit length of a plurality of documents exists in the memory and the data is to be normalized, the normalized shift number to be detected is stored in the normalized maximum shift number latch. The normalized maximum shift number control can be limited by a given number.

【0010】[0010]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0011】図1は本発明の一実施例における演算装置
を示すブロック図である。図1において、1はメモリか
ら入力データ、若しくは命令による即値データが与えら
れる入力データバス、2は入力データバス1のデータを
算術、若しくは論理シフトするバレルシフタ、3はバレ
ルシフタ2に正規化シフト数を与える正規化シフト数ラ
ッチ、4は入力データの正規化シフト数を検出する正規
化シフト数検出器、5はALU(算術論理演算回路)、
6は正規化シフト数検出器4から出力される正規化シフ
ト数の最大値を制御する正規化最大シフト数制御部、7
は入力データバス1から正規化最大シフト数制御部6に
与える正規化シフト数の最大値がセットされる正規化最
大シフト数ラッチ、8な出力データバスである。
FIG. 1 is a block diagram showing an arithmetic unit according to one embodiment of the present invention. In FIG. 1, reference numeral 1 denotes an input data bus to which input data from a memory or immediate data given by an instruction is given; A given normalized shift number latch, 4 is a normalized shift number detector that detects the normalized shift number of input data, 5 is an ALU (arithmetic logic operation circuit),
Reference numeral 6 denotes a normalized maximum shift number control unit for controlling the maximum value of the normalized shift number output from the normalized shift number detector 4;
Reference numeral 8 denotes a normalized maximum shift number latch in which the maximum value of the normalized shift number given from the input data bus 1 to the normalized maximum shift number control unit 6 is set, and eight output data buses.

【0012】以上の構成において、以下、その正規化動
作について説明する。まず、正規化最大シフト数を入力
データバス1を介して正規化最大シフト数ラッチ7にセ
ットする。次に、正規化しようとするデータが入力デー
タバス1から正規化シフト数検出器4に与えられ、正規
化シフト数が検出されるが、その検出される正規化シフ
ト数は、正規化最大シフト数制御部6により、正規化最
大シフト数ラッチ7に保持されている値に制限される。
In the above configuration, the normalizing operation will be described below. First, the normalized maximum shift number is set in the normalized maximum shift number latch 7 via the input data bus 1. Next, data to be normalized is supplied from the input data bus 1 to the normalized shift number detector 4, and the normalized shift number is detected. The detected normalized shift number is the normalized maximum shift number. The number control unit 6 limits the value to the value held in the normalized maximum shift number latch 7.

【0013】上記のように検出された正規化シフト数
は、正規化シフト数ラッチ3に与えられ、バレルシフタ
2が正規化シフト数ラッチ3の値を用いて、入力データ
バス1に与えられる正規化しようとするデータを正規化
シフトし、ALU5に出力する。
The normalized shift number detected as described above is applied to the normalized shift number latch 3, and the barrel shifter 2 uses the value of the normalized shift number latch 3 to apply the normalized shift number to the input data bus 1. The data to be shifted is normalized and output to the ALU5.

【0014】[0014]

【発明の効果】以上説明したように、本発明によれば、
メモリに複数種類のビット長のデータが存在して、この
データを正規化しようとするときに、検出する正規化シ
フト数を、正規化最大シフト数ラッチに与えられた数で
正規化最大シフト数制御部が制限するので、データの意
味のあるビット数を超えない正規化シフト数を検出する
ことができる。
As described above, according to the present invention,
When there are multiple types of bit length data in the memory and this data is to be normalized, the normalized shift number to be detected is determined by the maximum normalized shift number given by the normalized maximum shift number latch. Since the control unit restricts, a normalized shift number that does not exceed the number of significant bits of data can be detected.

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

【図1】本発明の一実施例における演算装置を示すブロ
ック図
FIG. 1 is a block diagram showing an arithmetic unit according to an embodiment of the present invention.

【図2】従来の演算装置を示すブロック図FIG. 2 is a block diagram showing a conventional arithmetic unit.

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

1 入力データバス 2 バレルシフタ 3 正規化シフト数ラッチ 4 正規化シフト数検出器 5 ALU 6 正規化最大シフト数制御部 7 正規化最大シフト数ラッチ 8 出力データバス DESCRIPTION OF SYMBOLS 1 Input data bus 2 Barrel shifter 3 Normalized shift number latch 4 Normalized shift number detector 5 ALU 6 Normalized maximum shift number control unit 7 Normalized maximum shift number latch 8 Output data bus

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力データが与えられる入力データバス
と、このバスのデータを算術、若しくは論理シフトする
バレルシフタと、このバレルシフタに正規化シフト数を
与える正規化シフト数ラッチと、上記入力データバスに
与えられたデータの正規化シフト数を検出し、上記正規
化シフト数ラッチに正規化シフト数をセットする正規化
シフト数検出器と、この正規化シフト数検出器から出力
される正規化シフト数の最大値を制御する正規化最大シ
フト数制御部と、上記入力データバスから上記正規化最
大シフト数制御部に与える正規化シフト数の最大値がセ
ットされる正規化最大シフト数ラッチとを備えた演算装
置。
An input data bus to which input data is supplied, a barrel shifter for arithmetically or logically shifting data on the bus, a normalized shift number latch for giving a normalized shift number to the barrel shifter, A normalized shift number detector for detecting a normalized shift number of given data and setting the normalized shift number in the normalized shift number latch, and a normalized shift number output from the normalized shift number detector And a normalized maximum shift number latch for setting the maximum value of the normalized shift number given from the input data bus to the normalized maximum shift number control unit. Computing device.
JP01718994A 1994-02-14 1994-02-14 Arithmetic unit Expired - Fee Related JP3189553B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01718994A JP3189553B2 (en) 1994-02-14 1994-02-14 Arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01718994A JP3189553B2 (en) 1994-02-14 1994-02-14 Arithmetic unit

Publications (2)

Publication Number Publication Date
JPH07225670A JPH07225670A (en) 1995-08-22
JP3189553B2 true JP3189553B2 (en) 2001-07-16

Family

ID=11936997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01718994A Expired - Fee Related JP3189553B2 (en) 1994-02-14 1994-02-14 Arithmetic unit

Country Status (1)

Country Link
JP (1) JP3189553B2 (en)

Also Published As

Publication number Publication date
JPH07225670A (en) 1995-08-22

Similar Documents

Publication Publication Date Title
EP0803091B1 (en) Computer system
JPH041840A (en) Data transfer control system
KR0177985B1 (en) Vector data adjusting device of processor
JP3189553B2 (en) Arithmetic unit
JP2617974B2 (en) Data processing device
JP3189552B2 (en) Arithmetic unit
JPH10187416A (en) Floating point arithmetic unit
US5935237A (en) Microprocessor capable of carrying out different data length instructions
JP3210356B2 (en) Data zero judgment device
JP3525582B2 (en) Bit operation circuit
JPH0736665A (en) Arithmetic unit
JP3109080B2 (en) Word length limiting circuit
JP3110072B2 (en) Pre-normalization circuit
JP2966439B2 (en) D / A conversion unit for sequencer
JP3331682B2 (en) Arithmetic unit
JPS59229659A (en) Data processing method
JPH0575475A (en) Data conversion circuit
JPH10315548A (en) Apparatus and method for processing data and, printing apparatus
KR970007262B1 (en) Risc structure for data processing
JPH1078862A (en) Semiconductor integrated circuit device
JPS6160126A (en) Shift control circuit
JPH0535468A (en) Arithmetic unit
JPS63115229A (en) Element shift system
JPH05165769A (en) Information processor
KR19980083459A (en) Databus Sizing Device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees