Nothing Special   »   [go: up one dir, main page]

JPH03129522A - Digital signal processor - Google Patents

Digital signal processor

Info

Publication number
JPH03129522A
JPH03129522A JP1268406A JP26840689A JPH03129522A JP H03129522 A JPH03129522 A JP H03129522A JP 1268406 A JP1268406 A JP 1268406A JP 26840689 A JP26840689 A JP 26840689A JP H03129522 A JPH03129522 A JP H03129522A
Authority
JP
Japan
Prior art keywords
data
bus
limit processing
instruction
data bus
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
JP1268406A
Other languages
Japanese (ja)
Inventor
Hideo Ohira
英雄 大平
Atsumichi Murakami
篤道 村上
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1268406A priority Critical patent/JPH03129522A/en
Priority to US07/483,840 priority patent/US5130797A/en
Priority to KR1019900002425A priority patent/KR920010514B1/en
Publication of JPH03129522A publication Critical patent/JPH03129522A/en
Priority to US08/000,562 priority patent/US5590291A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute efficient limit processing by directly inputting computed result data outputted from a data computing part to a limit processing part and allowing the limit processing part to execute the limit processing of the optional number of significant fits instructed from an instruction execution control part. CONSTITUTION:The instruction execution control part 2 informs an address instructed through an address bus 101 to an instruction memory 1, decodes the instruction word concerned and informs a control signal to an address forming part 6 through a data bus 104. Data or the like are sent to a data input bus 3 through a data bus when necessary and the number of significant bits is informed to the limit processing part 8 through a data bus 110. The data computing part 5 inputs the 2-input data sent to the data input bus 3 through a data bus 106, executes the prescribed two-term operation processing instructed from the control part 2 through the data bus 103 and directly outputs the operated result data to the limit processing part 8 through a data bus 108. Consequently, both the operation and limit processing can be executed only by one instruction.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、演算結果データに対してリミット処理を行
うディジタル信号処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a digital signal processing device that performs limit processing on calculation result data.

〔従来の技術〕[Conventional technology]

第3図は例えばティー・ムラカミ エトアル。 Figure 3 shows, for example, Tea Murakami Etoal.

”アゾイーエスピー アーキテクチャ−フォー64キロ
ビーピーニス モーション ビデオ コーチツク”、イ
ンターナショナル シンポジウムオン サーキット ア
ンド システム(アイニスシーニーニス88 )t  
pp、227−230.1988(T、 Muraka
mi etal、 ”A DSP ARCHITECT
URE FOR64Kbps MOTION VIDE
OC0DEC″、 INTERNATIONALSYM
PO8IUM ON CIRCUIT AND SYS
TEM (ISCAS 88) 。
``AzoESP Architecture-Four 64 Kilometers Motion Video Coachtsuk'', International Symposium on Circuits and Systems (Inissininis 88) t
pp, 227-230.1988 (T, Muraka
mi etal, “A DSP ARCHITECT
URE FOR64Kbps MOTION VIDE
OC0DEC'', INTERNATIONALSYM
PO8IUM ON CIRCUIT AND SYS
TEM (ISCAS 88).

pp、227−230,1988)  に示された従来
のディジタル信号処理装置の簡略化した構成を示すブロ
ック図であり、図において、1はマイクロプログラムの
命令語を記憶する命令メモリ、2は前記命令メモリ1か
ら命令語を読込み、解読して演算等の動作制御を行う命
令実行制御部、3は主としてデータ及び制御信号を転送
するためのデータ入力バス、4は演算データを記憶する
複数の入出力ポートを持ったデータメモリ、5は前記デ
ータメモリ4からデータ入力バス3を介して転送された
最大2人力のデータに対して種々の演算を実行するデー
タ演算部、6は前記データ演算部5の2人力l出力デー
タのアドレスをそれぞれ独立に生成するアドレス生成部
、7は前記データ演算結果データを転送するデータ出力
バスである。
(pp, 227-230, 1988) is a block diagram showing a simplified configuration of a conventional digital signal processing device, in which 1 is an instruction memory that stores instruction words of a microprogram, and 2 is an instruction memory that stores the instruction words of a microprogram. An instruction execution control unit reads command words from memory 1, decodes them, and controls operations such as calculations, 3 is a data input bus for mainly transferring data and control signals, and 4 is a plurality of input/outputs for storing calculation data. 5 is a data calculation unit that performs various calculations on the data transferred from the data memory 4 via the data input bus 3, and 6 is a data calculation unit of the data calculation unit 5; There are two address generators that independently generate addresses for output data, and 7 a data output bus that transfers the data operation result data.

次に動作について第4図のフローチャートを用いて説明
する。ここでは、n (n)Qの整数)ビットの2人カ
データについてデータ演算部5で何らかの2項演算処理
を行った後、該演算結果データ(nビット)に対し、m
 (m≦nの整数)ビットを有効ビット数とするリミッ
ト処理を行う場合について説明する。
Next, the operation will be explained using the flowchart shown in FIG. Here, after performing some binary arithmetic processing on the two-person data of n (an integer of Q) bits in the data arithmetic unit 5, m
A case will be described in which limit processing is performed in which the number of effective bits is (an integer where m≦n) bits.

まず、命令実行制御部2はアドレスバス101を介して
指示されたアドレスを命令メモリ1に通知し、該当する
命令語を命令メモリ1からデータバス102を介して読
出す。さらに命令実行制御部2は核読出された命令語を
解読し、データバス104を介して制御信号をアドレス
生成部6に通知するとともに、必要に応じてデータ等を
データバス103を介してデータ入力バス3に送出する
First, the instruction execution control unit 2 notifies the instruction memory 1 of the designated address via the address bus 101, and reads the corresponding instruction word from the instruction memory 1 via the data bus 102. Further, the instruction execution control unit 2 decodes the read instruction word, notifies the address generation unit 6 of a control signal via the data bus 104, and inputs data etc. via the data bus 103 as necessary. Send to bus 3.

この制御信号によりアドレス生成部6はデータバス10
7を介してデータメモリ4に演算に必要な2人カデータ
(それぞれnビット)のアドレスを通知し、該データメ
モリ4は該当する2人カデータをデータバス105を介
してデータ入力バス3に送出する。データ演算部5はこ
のデータ入力バス3に送出された2人カデータをデータ
バス106を介して入力し、命令実行制御部2よりデー
タバス103を介して指示される所定の2項演算処理を
行い、演算結果データ(nビット)をデータバス108
を介してデータ出カバスフに送出する。そして、このデ
ータ出カバスフに送出された演算結果データは、データ
バス109を介してデータメモリ4に入力され、アドレ
ス生成部6によりデータバス107を介して与えられる
アドレスに記憶される(ステップ5TI)。次にデータ
演算部5は上述した入力動作により、再度データバス1
06を介してデータメモリ4に記憶されている演算結果
データを入力し、命令実行制御部2から指示される命令
セットの一つであるMAX命令(有効ビット数mビット
)を実行する。このMAX命令では、演算結果データと
有効ビット数mビットで表現できる最大値のうち大きい
方を結果出力とする命令で、該演算結果データが最大値
を越えるか否かを判断して、越えている場合にはリミッ
ト処理を行い、上述した出力動作により該MAX命令を
実行した演算結果データはデータメモリ4に記憶される
(ステップST2 )。さらにデータ演算部5は上述し
た入力動作により、再度データバス106を介してデー
タメモリ4に記憶されているMAX命令が実行された演
算結果データを入力し、命令セットの一つであるMIN
命令(有効ビット数mビット)を実行する。このMIN
命令では演算結果データと有効ビット数mビットで表現
できる最小値のうち小さい方を結果出力とする命令で、
該演算結果データが最小値より小さいか否かを判断して
、小さい場合には+J ミツト処理を行い、上述した出
力動作により該MIN命令が実行された演算結果データ
をデータメモリ4に記憶して(ステップ5T3)、処理
を終了する。
This control signal causes the address generation section 6 to
7, the data memory 4 is notified of the address of the two-person data (n bits each) necessary for the calculation, and the data memory 4 sends the corresponding two-person data to the data input bus 3 via the data bus 105. . The data calculation unit 5 inputs the two-person data sent to the data input bus 3 via the data bus 106, and performs a predetermined binary calculation process instructed by the instruction execution control unit 2 via the data bus 103. , operation result data (n bits) is transferred to the data bus 108
The data is sent to the output bus through the . The calculation result data sent to the data output bus is input to the data memory 4 via the data bus 109, and stored at the address given via the data bus 107 by the address generator 6 (step 5TI). . Next, the data calculation unit 5 again uses the data bus 1 by the above-described input operation.
It inputs the operation result data stored in the data memory 4 via 06, and executes a MAX instruction (effective bit number m bits), which is one of the instruction sets instructed by the instruction execution control section 2. This MAX instruction is an instruction that outputs the larger of the operation result data and the maximum value that can be expressed using m effective bits, and determines whether or not the operation result data exceeds the maximum value. If so, limit processing is performed, and the calculation result data obtained by executing the MAX instruction is stored in the data memory 4 by the above-described output operation (step ST2). Furthermore, by the input operation described above, the data calculation unit 5 again inputs the calculation result data obtained by executing the MAX instruction stored in the data memory 4 via the data bus 106, and inputs the calculation result data obtained by executing the MAX instruction stored in the data memory 4.
Executes an instruction (effective bit number m bits). This MIN
The instruction outputs the smaller of the operation result data and the minimum value that can be expressed using m effective bits.
It is determined whether or not the calculation result data is smaller than the minimum value, and if it is smaller, +J mit processing is performed, and the calculation result data for which the MIN instruction has been executed is stored in the data memory 4 by the output operation described above. (Step 5T3), the process ends.

次に前記リミット処理を第5図を用いて説明する。まず
、nビットの演算結果データ(MSBは最上位ビット、
LSBは最下位ビット)を考える(第5図(a))。有
効ビット数m(m(n)ビットにリミット処理する場合
、上位(n−m)ビットをMSBと同一のデータとし、
残りのmビットはこの演算結果データの値がmビットで
表現できる範囲内であればそのままmビットデータとし
、mビットで表現できる最大値を越える場合はその最大
値を、mビットで表現できる最小値より小さい場合はそ
の最小値をmビットデータとする(第5図(b))。
Next, the limit processing will be explained using FIG. 5. First, n-bit operation result data (MSB is the most significant bit,
LSB is the least significant bit) (Fig. 5(a)). When performing limit processing to the effective number of bits m (m(n) bits, the upper (n-m) bits are the same data as the MSB,
If the value of the operation result data is within the range that can be expressed with m bits, the remaining m bits will be used as m-bit data, and if it exceeds the maximum value that can be expressed with m bits, then the maximum value will be changed to the minimum value that can be expressed with m bits. If it is smaller than the value, the minimum value is used as m-bit data (FIG. 5(b)).

なお、有効ビット数をm=nとしたリミット処理は、リ
ミット処理を実行しないときと同じ効果がある。
Note that limit processing in which the number of effective bits is m=n has the same effect as when no limit processing is performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のディジタル信号処理装置は以上のように構成され
ているので、演算結果データに対してリミット処理を行
うためには、演算を含めて3命令を実行する必要があり
、処理効率が低下するという課題があった。
Conventional digital signal processing devices are configured as described above, so in order to perform limit processing on calculation result data, it is necessary to execute three instructions including calculation, which reduces processing efficiency. There was an issue.

この発明は上記のよ5 fx課題を解消するためにむさ
れたもので、効率のよいリミット処理を行うディジタル
信号処理装置を得ることを目的とする。
The present invention has been made to solve the above-mentioned five fx problems, and an object of the present invention is to obtain a digital signal processing device that performs efficient limit processing.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るディジタル信号処理装置は、データ演算
部で何らかの演算が行われた演算結果データを直接入力
し、マイクロプログラムの内容に従って命令実行制御部
から指示された任意の有効ビット数にリミット処理を行
うリミット処理部を備えるようにしたものである。
The digital signal processing device according to the present invention directly inputs operation result data after some operation has been performed in the data operation section, and performs limit processing on an arbitrary number of effective bits instructed by the instruction execution control section according to the contents of the microprogram. The present invention is equipped with a limit processing section that performs the following.

〔作 用〕[For production]

この発明におけるディジタル信号処理装置は、データ演
算部の出力を直接リミット処理部に入力するようにした
ので、1命令で演算及びリミット処理を可能にする。
In the digital signal processing device according to the present invention, the output of the data calculation section is directly input to the limit processing section, so that calculation and limit processing can be performed with one instruction.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。第1
図はこの発明の一実施例によるディジタル信号処理装置
の構成を示すブロック図であり、従来のディジタル信号
処理装置(第3図)と同−又は相当部分には同一符号を
付して説明を省略する。
An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram showing the configuration of a digital signal processing device according to an embodiment of the present invention, and the same or equivalent parts as in the conventional digital signal processing device (FIG. 3) are given the same reference numerals and explanations are omitted. do.

第1図において、8はデータ演算部5から出力される演
算結果データをデータバス108を介して直接入力し、
命令実行制御部2からデータバス110を介して指示さ
れる有効ビット数にリミット処理する+7 ミツト処理
部である。
In FIG. 1, 8 directly inputs the operation result data output from the data operation section 5 via the data bus 108;
This is a +7 limit processing unit that performs limit processing to the number of effective bits instructed by the instruction execution control unit 2 via the data bus 110.

次に動作について第2図のフローチャートを用いて説明
する。ここでは、n (n)Qの整数)ビットの2人力
データについてデータ演算部5で何らかの2項演算処理
を行った後、該演算結果データ(nビット)に対し、m
(m≦nの整数)ビットを有効ビット数とするリミット
処理を行う場合について説明する。
Next, the operation will be explained using the flowchart shown in FIG. Here, after performing some binary arithmetic processing on the two-bit manual data of n (an integer of Q) in the data calculation unit 5, m
A case will be described in which limit processing is performed in which the number of effective bits is (an integer where m≦n) bits.

まず、命令実行制御部2はアドレスバス101を介して
指示されたアドレスを命令メモリ1に通知し、該当する
命令語を解読し、データバス104を介して制御信号を
アドレス生成部6に通知するとともに、必要に応じてデ
ータ等をデータバス103を介してデータ入力バス3に
送出し、データバス110を介してリミット処理部8に
有効ビット数を通知する。
First, the instruction execution control unit 2 notifies the instruction memory 1 of the specified address via the address bus 101, decodes the corresponding instruction word, and notifies the address generation unit 6 of a control signal via the data bus 104. At the same time, data etc. are sent to the data input bus 3 via the data bus 103 as needed, and the effective bit number is notified to the limit processing section 8 via the data bus 110.

この制御信号によりアドレス生成部6はデータバス10
7を介してデータメモリ4に演算に必要な2人力データ
(それぞれnビット)のアドレスを通知し、該データメ
モリ4は該当する2人力データをデータバス105を介
してデータ入力バス3に送出する。データ演算部5はこ
のデータ入力バス3に送出された2人力データをデータ
バス106を介して入力し、命令実行制御部2よりデー
タバス103を介して指示される所定の2項演算処理を
行い(ステップ5T4)、演算結果データ(nビット)
をデータバス10Bを介してリミット処理部8に直接出
力する。そしてリミット処理部8はこの演算結果データ
を命令実行制御部2からデータバス110を介して指示
される有効ビット数mビットにリミット処理し、該リミ
ット処理された演算結果データをデータバス111を介
してデータ出カバスフに送出する。さらに該データ出カ
バスフに送出された演算結果パケットはデータバス10
9を介してデータメモリ4に入力され、再度アドレス生
成部6からデータバス107を介して与えられるアドレ
スに記憶され(ステップ5T5)、処理を終了する。以
上の動作により、一つの命令で演算及びリミット処理が
実行可能となる。
This control signal causes the address generation section 6 to
7, the data memory 4 is notified of the address of the two-manpower data (n bits each) necessary for the calculation, and the data memory 4 sends the corresponding two-manpower data to the data input bus 3 via the data bus 105. . The data calculation unit 5 inputs the binary data sent to the data input bus 3 via the data bus 106, and performs a predetermined binary calculation process instructed by the instruction execution control unit 2 via the data bus 103. (Step 5T4), operation result data (n bits)
is output directly to the limit processing unit 8 via the data bus 10B. The limit processing unit 8 then limits the operation result data to m bits, the effective number of bits specified by the instruction execution control unit 2 via the data bus 110, and transfers the limited operation result data via the data bus 111. and sends it to the data output bus. Furthermore, the calculation result packet sent to the data output bus is
9 to the data memory 4, and is stored again at the address given from the address generation unit 6 via the data bus 107 (step 5T5), and the process ends. With the above operations, calculation and limit processing can be executed with one instruction.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば、データ演算部から出力
される演算結果データを直接リミット処理部に入力し、
該リミット処理部で命令実行制御部から指示される任意
の有効ビット数にリミット処理するように構成したので
、−命令で演算及びリミット処理が可能となり、効率的
なリミット処理が行えるディジタル信号処理装置が得ら
れるという効果がある。
As described above, according to the present invention, the calculation result data output from the data calculation section is directly input to the limit processing section,
Since the limit processing unit is configured to perform limit processing to an arbitrary number of effective bits instructed by the instruction execution control unit, calculation and limit processing can be performed with the - instruction, and the digital signal processing device can perform efficient limit processing. This has the effect of providing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例によるディジタル信号処理
装置の構成を示すブロック図、第2図はこの発明のディ
ジタル信号処理装置の動作を説明するフローチャート、
第3図は従来のディジタル信号処理装置の構成を示すブ
ロック図、第4図は従来のディジタル信号処理装置の動
作を説明するフローチャート、第5図はリミット処理の
説明図である。 図において、1は命令メモリ、2は命令実行制御部、3
はデータ入力バス、4はデータメモリ、5はデータ演算
部、6はアドレス生成部、7はデータ出力バス、8はリ
ミット処理部である。 なお、図中、同一符号は同一 又は相当部分を示す。
FIG. 1 is a block diagram showing the configuration of a digital signal processing device according to an embodiment of the present invention, and FIG. 2 is a flowchart explaining the operation of the digital signal processing device of the present invention.
FIG. 3 is a block diagram showing the configuration of a conventional digital signal processing device, FIG. 4 is a flowchart explaining the operation of the conventional digital signal processing device, and FIG. 5 is an explanatory diagram of limit processing. In the figure, 1 is an instruction memory, 2 is an instruction execution control unit, and 3 is an instruction memory.
4 is a data input bus, 4 is a data memory, 5 is a data calculation section, 6 is an address generation section, 7 is a data output bus, and 8 is a limit processing section. In addition, the same symbols in the figures indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] 内蔵されたマイクロプログラムのフェッチ、デコード、
該マイクロプログラムの内容に従ったデータの読出し、
演算、及び演算結果データの書込みを基本動作とするデ
ィジタル信号処理装置において、前記演算結果データを
直接入力し、この演算結果データを前記マイクロプログ
ラムにより任意に指定された有効ビット数にリミット処
理するリミット処理部を備えたことを特徴とするディジ
タル信号処理装置。
Built-in microprogram fetching, decoding,
reading data according to the contents of the microprogram;
In a digital signal processing device whose basic operations are calculation and writing of calculation result data, the calculation result data is directly input and the calculation result data is limited to the number of effective bits arbitrarily specified by the microprogram. A digital signal processing device comprising a processing section.
JP1268406A 1989-02-27 1989-10-16 Digital signal processor Pending JPH03129522A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP1268406A JPH03129522A (en) 1989-10-16 1989-10-16 Digital signal processor
US07/483,840 US5130797A (en) 1989-02-27 1990-02-23 Digital signal processing system for parallel processing of subsampled data
KR1019900002425A KR920010514B1 (en) 1989-02-27 1990-02-26 Digital signal processing apparatus
US08/000,562 US5590291A (en) 1989-02-27 1993-01-04 Digital signal processing system for limiting a result to be predetermined bit count

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1268406A JPH03129522A (en) 1989-10-16 1989-10-16 Digital signal processor

Publications (1)

Publication Number Publication Date
JPH03129522A true JPH03129522A (en) 1991-06-03

Family

ID=17458035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1268406A Pending JPH03129522A (en) 1989-02-27 1989-10-16 Digital signal processor

Country Status (1)

Country Link
JP (1) JPH03129522A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6232457B2 (en) * 1978-01-16 1987-07-15 Ei Teii Ando Teii Tekunorojiizu Inc

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6232457B2 (en) * 1978-01-16 1987-07-15 Ei Teii Ando Teii Tekunorojiizu Inc

Similar Documents

Publication Publication Date Title
US5508948A (en) Numeric representation converting apparatus and vector processor unit such apparatus
US4503511A (en) Computing system with multifunctional arithmetic logic unit in single integrated circuit
US4611278A (en) Wraparound buffer for repetitive decimal numeric operations
JP2559868B2 (en) Information processing device
JPH03129522A (en) Digital signal processor
WO1986006521A1 (en) Address expanding system
EP0265948A2 (en) Data processor capable of immediately calculating branch address in relative address branch
EP0265972A2 (en) Control of the program counter used in a pipelined computer
JP2000081966A (en) Arithmetic unit
JP2641858B2 (en) Compression / expansion processor
JPS60129856A (en) Memory control circuit
KR920006970B1 (en) Programmable logic controller
JPH0619700B2 (en) Arithmetic unit
JP2905989B2 (en) I / O controller
JPH04195629A (en) Arithmetic flag generation device
JP3000293B2 (en) Virtual shift circuit
JPH02105951A (en) Address data generating circuit and digital signal processor incorporating same
JPH05158686A (en) Arithmetic and logic unit
JPS6111493B2 (en)
JPH03113653A (en) Address generation circuit
JPH04155441A (en) Address generating circuit
JPS62150466A (en) Address controller
JPH11306015A (en) Operating processing method and microcomputer using the method
JPH04142640A (en) Address converter
JPH103378A (en) Unit and method for arithmetic