JPS63305462A - Digital signal processor - Google Patents

Digital signal processor

Info

Publication number
JPS63305462A
JPS63305462A JP14088487A JP14088487A JPS63305462A JP S63305462 A JPS63305462 A JP S63305462A JP 14088487 A JP14088487 A JP 14088487A JP 14088487 A JP14088487 A JP 14088487A JP S63305462 A JPS63305462 A JP S63305462A
Authority
JP
Japan
Prior art keywords
data
overflow
output
output signal
accumulator
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
JP14088487A
Other languages
Japanese (ja)
Inventor
Yoshiaki Tanaka
美昭 田中
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP14088487A priority Critical patent/JPS63305462A/en
Publication of JPS63305462A publication Critical patent/JPS63305462A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To easily set up an optimum signal level by sending an output signal from an overload detecting circuit and an output signal from an overflow detecting circuit to an output terminal through on OR circuit. CONSTITUTION:A signal generated from an overflow detecting circuit OVF due to an overflow of an accumulator ACC when the ACC generates overflow and sent to an output terminal (y) is also supplied to OR circuits OR1, OR2. Even if the outputs of overload detecting circuits OL1, OL2 are unfixed when the ACC generates overflow, the output signal of the OVF due to the overflow of the ACC is sent to an output terminal (x). Consequently, the optimum signal level can be easily set up.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はデジタルシグナル・プロセッサに関する。[Detailed description of the invention] (Industrial application field) The present invention relates to digital signal processors.

(従来の技術) デジタル信号の演算装置は多くの技術分野における各種
の機器において広く使用されていることは周知のとおり
である。ところで、デジタル信号の演算装置による演算
結果がオーバーフローした場合には、それ以後の演算が
無意味となるので、従来から演算装置では演算結果がオ
ーバーフローを起こした場合に演算を中断するとともに
、オーバーフローの状態を検出してその状態を表示装置
により表示させるようにしている。
(Prior Art) It is well known that digital signal arithmetic devices are widely used in various devices in many technical fields. By the way, if the calculation result of a digital signal calculation device overflows, subsequent calculations become meaningless, so conventional calculation devices have traditionally stopped the calculation when the calculation result has overflowed, and also stopped the calculation from overflowing. The state is detected and the state is displayed on a display device.

(発明が解決しようとする問題点) ところで、従来の演算装置におけるオーバーフローの表
示は、演算装置における演算結果にオーバーフローが生
じたときに初めてオーバーフロー状態が検出されて、そ
れの表示が行われるようになされていたので、オーバー
フローの発生の予知が困難であり、また、信号処理の対
象にされている信号の最適な信号レベルの設定も容易で
はないという問題点があった。
(Problem to be Solved by the Invention) By the way, in the conventional arithmetic device, an overflow condition is detected and displayed only when an overflow occurs in the arithmetic result of the arithmetic device. Therefore, there were problems in that it was difficult to predict the occurrence of overflow, and it was also not easy to set the optimal signal level of the signal that was the subject of signal processing.

前記の問題点は1例えば民生用のデジタル・オーディオ
機器における信号処理に際して、入力信号を適正な信号
レベルの状態で装置に供給したいと希望されるようなと
きに特に大きな問題になる。
The above problem becomes a particularly serious problem when, for example, in signal processing in consumer digital audio equipment, it is desired to supply an input signal to the equipment at an appropriate signal level.

それで、アキュムレータの出力信号データに対して予め
設定しておいた所定の領域に前記のアキュムレータの出
力信号データが入ったか否か(オーバーロードの状態に
なったか否か)を検出するオーバーフロー警告レベルの
検出手段を設けて前記のような問題点が生じないように
することが試みられた。
Therefore, an overflow warning level is set to detect whether or not the output signal data of the accumulator has entered a predetermined area set in advance for the output signal data of the accumulator (whether or not an overload state has occurred). Attempts have been made to provide detection means to prevent such problems from occurring.

ところで、アキュムレータの出力信号データがオーバー
ロードの状態になったか否かを検出するオーバーフロー
警告レベルの検出手段(オーバーロード検出手段)とし
ては、例えば、アキュムレータの出力信号データに所定
の係数を乗じて得られるデータがオーバーフローの状態
になるかどうかをみるようにするなどの手段が適用され
る。
By the way, the overflow warning level detection means (overload detection means) for detecting whether or not the output signal data of the accumulator is in an overload state can be obtained by multiplying the output signal data of the accumulator by a predetermined coefficient, for example. Measures may be taken to check whether the data being stored overflows.

そして、アキュムレータの出力信号データに所定の係数
を乗じて得られるデータがオーバーフローの状態になる
かどうかをみるようにしたオーバーロード検出手段の場
合においても、それに用いられているアキュムレータが
オーバーフロー・プロテクトの施されているものであっ
た場合にはオーバーフロー警告レベルの検出を問題なく
行うことができるが、アキュムレータの出力信号データ
に所定の係数を乗じて得られるデータがオーバーフロー
の状態になるかどうかをみるようにしたオーバーロード
検出手段の場合に、それに用いられているアキュムレー
タがオーバーフロー・プロテクトの施されていないもの
のときに、仮に、アキュムレータがオーバーフローを起
こしている状態を考えると、このときのアキュムレータ
の出力信号データに所定の係数を乗じて得られるデータ
は出鱈目のものとなるから、実際にはアキュムレータが
オーバーフローの状態になっていても、この際における
オーバーフロー警告レベルの検出手段の出力の状態は不
定となって、その出力は信頼性のないものになる。
Even in the case of an overload detection means that multiplies the output signal data of an accumulator by a predetermined coefficient and checks whether the data obtained is in an overflow state, the accumulator used therein is protected against overflow protection. If it is, the overflow warning level can be detected without any problem, but check whether the data obtained by multiplying the output signal data of the accumulator by a predetermined coefficient is in an overflow state. In the case of the overload detection means described above, if the accumulator used in it is not overflow protected, and if we consider a state in which the accumulator has overflowed, the output of the accumulator at this time is Since the data obtained by multiplying the signal data by a predetermined coefficient is random, even if the accumulator is actually in an overflow state, the state of the output of the overflow warning level detection means at this time is uncertain. The output will be unreliable.

それで、アキュムレータとしてオーバーフロー・プロテ
クトの施されていないものも頻繁に使用されるようにな
って来たのに伴って、前記のような問題点の解決策の出
現が求められた。
Therefore, as accumulators without overflow protection have come to be used frequently, a solution to the above-mentioned problems has been sought.

(問題点を解決するための手段) 本発明はプログラム・メモリから順次に読出される命令
に応じてデジタル信号処理を実行するようになされてお
り、少なくとも係数データとデジタル信号データとを乗
算する乗算器を備えているデジタルシグナル・プロセッ
サにおいて、前記の乗算器からの出力信号データを累算
するアキュムレータの出力信号データのオーバーフロー
検出手段と、前記したアキュムレータの出力信号データ
のオーバーフロー警告レベルの検出手段と、前記のオー
バーフロー検出手段からの出力信号と前記のオーバーフ
ロー警告レベルの検出手段からの出力信号との論理和出
力を得る手段とを設けてなるデジタルシグナル・プロセ
ッサを提供して、前記した問題点を解決したものである
(Means for Solving the Problems) The present invention is configured to perform digital signal processing according to instructions sequentially read out from a program memory, and includes at least a multiplication operation in which coefficient data and digital signal data are multiplied. a digital signal processor comprising: an overflow detection means for output signal data of an accumulator that accumulates output signal data from the multiplier; and means for detecting an overflow warning level of output signal data from the accumulator; The above-mentioned problems can be solved by providing a digital signal processor comprising means for obtaining an OR output of an output signal from the overflow detection means and an output signal from the overflow warning level detection means. It is resolved.

(実施例) 以下、添付図面を参照して本発明のデジタルシグナル・
プロセッサの具体的な内容を詳細に説明する。第1図及
び第2図はそれぞれ本発明のデジタルシグナル・プロセ
ッサの各人なる実施例のブロック図である。
(Example) Hereinafter, with reference to the attached drawings, the digital signal and
The specific contents of the processor will be explained in detail. 1 and 2 are block diagrams of respective embodiments of the digital signal processor of the present invention.

まず、第1図に示されている本発明のデジタルシグナル
・プロセッサ(DSP)の一実施例のブロック図におい
て、aはデジタル信号(シリアル・データ)の入力端子
であって、この入力端子aには所定の信号処理が施され
るべきデジタル信号、例えば、PCM信号であるNRZ
信号が供給される。
First, in the block diagram of an embodiment of the digital signal processor (DSP) of the present invention shown in FIG. 1, a is an input terminal for a digital signal (serial data); is a digital signal to be subjected to predetermined signal processing, for example, NRZ which is a PCM signal.
A signal is provided.

第1図において、SDIはシリアル・データの入力回路
、IBは入カバソファ、N(、−RAMは係数RAM、
TBは転送バッファ、PCDはパラメータ制御部、P−
RAMはプログラムRAM、SD○はシリアルデータの
出力回路、SCIはシリアル・コード・インターフェー
ス、D−RAMはデータRAMであり、また、FN−R
OMは定数のメモリ用ROM、MULは乗算器、ACC
はアキュムレータ、REGはシフタ付レジスタ、OBは
出力バッファ、OLI、○L2はオーバーロード検出回
路、SFT、5FTIはシフト回路、OVFはオーバー
フロー検出回路、○R1,OR2はオア回路、xi、x
2はオーバーロード検出回路の出力信号の出力端子、y
はオーバーフロー検出回路の出力信号の出力端子である
In Figure 1, SDI is a serial data input circuit, IB is an input buffer sofa, N(, -RAM is a coefficient RAM,
TB is a transfer buffer, PCD is a parameter control unit, P-
RAM is a program RAM, SD○ is a serial data output circuit, SCI is a serial code interface, D-RAM is a data RAM, and FN-R
OM is constant memory ROM, MUL is multiplier, ACC
is an accumulator, REG is a register with a shifter, OB is an output buffer, OLI, ○L2 is an overload detection circuit, SFT, 5FTI is a shift circuit, OVF is an overflow detection circuit, ○R1 and OR2 are OR circuits, xi, x
2 is the output terminal of the output signal of the overload detection circuit, y
is an output terminal for the output signal of the overflow detection circuit.

前記したプログラムRAM(P−RAM)は、デジタル
シグナル・プロセッサDSPが実行すべきプログラムを
予め記憶していて、所定の乗算係数等のデータを記憶す
ることにより係数メモリとして機能する係数RAM(N
C−RAM)から、これらのデータを乗算器MULに供
給する。
The program RAM (P-RAM) described above stores in advance a program to be executed by the digital signal processor DSP, and functions as a coefficient memory by storing data such as predetermined multiplication coefficients.
C-RAM), these data are supplied to the multiplier MUL.

シリアル・コード・インターフェースSCIはシリアル
コード入力端子Cおよびシリアルコード出力端子dを備
えており、シリアルコードタイミング入力端子eから供
給されるクロック信号及び同期信号(LRCK、LRC
Kバー)によってシリアルコード入力端子Cからデータ
(SD、SD’ )を入力したりシリアルコード出力端
子dからデータ(SD、SD’ )を出力したりする。
The serial code interface SCI is equipped with a serial code input terminal C and a serial code output terminal d, and receives clock signals and synchronization signals (LRCK, LRC) supplied from the serial code timing input terminal e.
Data (SD, SD') is input from the serial code input terminal C and data (SD, SD') is output from the serial code output terminal d by means of the serial code input terminal C (K bar).

前記したパラメータ制御部PCDは、シリアルコード・
インターフェースSCIからのデータをプログラムRA
M(P−RAM)および転送バッファTBに識別して送
るとともに、転送バッファTBから転送タイミングと転
送数とを指定する制御信号’I’s、Twを出力する0
gはパラメータ制御部PCDのトリガ入力端子である。
The parameter control unit PCD described above has a serial code.
Program RA with data from interface SCI
M (P-RAM) and the transfer buffer TB for identification and sending, and the transfer buffer TB outputs control signals 'I's and Tw specifying the transfer timing and number of transfers.
g is a trigger input terminal of the parameter control unit PCD.

前記のパラメータ制御部PCDは前記したトリガ入力端
子gに対して外部からトリガ(同期信号)入力が供給さ
れたときに、そのトリガ入力によって転送タイミングが
決定された制御信号Tsを発生することができるような
構成になされているが、パラメータ制御部PCDは前記
した端子gに対して外部からトリガ入力が供給されなく
ても、データ(SD、SD’ )によってもトリガされ
つるような機能を備えている。
When a trigger (synchronization signal) input is supplied from the outside to the trigger input terminal g, the parameter control unit PCD can generate a control signal Ts whose transfer timing is determined by the trigger input. However, the parameter control unit PCD has a function that allows it to be triggered by data (SD, SD') even if no external trigger input is supplied to the terminal g. There is.

シリアル・データの入力回路SDIはシリアル・データ
入力端子aからの入力データを直並列変換し、入力バッ
ファIBを介してデータRAM(D−RAM)に供給す
る1図中のfはシリアルデータ入力およびシリアルデー
タ出力のタイミングをきめるために、シリアル・データ
の入力回路SDIとシリアル・データの出力回路SD○
とに供給するデータクロック信号BC:LKとチャンネ
ル識別信号LRCKとの入力端子である。
The serial data input circuit SDI converts the input data from the serial data input terminal a into serial/parallel data and supplies it to the data RAM (D-RAM) via the input buffer IB. In order to determine the timing of serial data output, the serial data input circuit SDI and the serial data output circuit SD○
This is an input terminal for the data clock signal BC:LK and the channel identification signal LRCK that are supplied to the input terminal.

図示されていない中央演算処理装置(CP U)が例え
ばR8232Cのシリアルフォーマットにより、デジタ
ルシグナル・プロセッサDSPのシリアルコード入力端
子Cから演算用の所定の係数データを送ると、その演算
用の所定の係数データはシリアルコード・インターフェ
ースSCIとパラメータ制御部PCDとを介して転送バ
ッファTBに送られる。
When a central processing unit (CPU) (not shown) sends predetermined coefficient data for calculation from the serial code input terminal C of the digital signal processor DSP in the R8232C serial format, for example, the predetermined coefficient for the calculation is sent. Data is sent to the transfer buffer TB via the serial code interface SCI and the parameter control unit PCD.

シリアルコードの転送開始を知らせるスタート信号はシ
リアルコードの転送部からシリアルコード・インターフ
ェースSCIの入力端子りに印加される。また、前記し
たデジタルシグナル・プロセッサDSPのプログラム命
令サイクルを決定するクロック信号は、クロック入力端
子fに供給される。
A start signal indicating the start of serial code transfer is applied from the serial code transfer section to the input terminal of the serial code interface SCI. Further, a clock signal that determines the program instruction cycle of the digital signal processor DSP described above is supplied to the clock input terminal f.

図示されていないシリアル転送部の転送速度に対応した
周波数のクロック信号を発生する図示されていないクロ
ック信号の発生回路で発生されたクロック信号は、デジ
タルシグナル・プロセッサDSPのシリアルコード・イ
ンターフェースSCIのシリアルコードタイミング信号
の入力端子eに供給される。
A clock signal generated by a clock signal generation circuit (not shown) that generates a clock signal with a frequency corresponding to the transfer speed of a serial transfer unit (not shown) is connected to the serial code interface SCI of the digital signal processor DSP. The code timing signal is supplied to the input terminal e.

デジタルシグナル・プロセッサDSPにおけるデジタル
信号に対する所定の演算処理は、中央演算処理装置!(
CP U)の制御の下に行われることはいうまでもなく
、デジタルシグナル・プロセッサDSPでは、定数のメ
モリ用ROM(FN−ROM)と乗算器MULと、アキ
ュムレータACCと。
Predetermined arithmetic processing on digital signals in the digital signal processor DSP is carried out by the central processing unit! (
Needless to say, the digital signal processor DSP is controlled by a constant memory ROM (FN-ROM), a multiplier MUL, and an accumulator ACC.

シフタ付レジスタREG、シフト回路SFT及び出力バ
ッファOB、データRAM(D−RAM)などの回路構
成部分において、信号に対する所定の演算処理が行われ
る。
Predetermined arithmetic processing is performed on signals in circuit components such as the shifter register REG, the shift circuit SFT, the output buffer OB, and the data RAM (D-RAM).

第1図に示されている実施例のデジタルシグナル・プロ
セッサDSPでは1乗算器MULで積算されてアキュム
レータACCによって累算された出力信号データがシフ
ト回路SFTと出力パッファOBとを介してシリアル・
データの出力回路SDOに供給されて、シリアル・デー
タの出力回路SDOから出力端子すに出力されるととも
に、アキュムレータACCの出力信号データがオーバー
フロー検出回路OVFに供給されるようになされており
、また、アキュムレータACCの出力信号データがオー
バーロード検出回路○L1に供給されている。
In the digital signal processor DSP of the embodiment shown in FIG. 1, output signal data accumulated by one multiplier MUL and accumulated by an accumulator ACC is serially transmitted via a shift circuit SFT and an output buffer OB.
The data is supplied to the data output circuit SDO, and outputted from the serial data output circuit SDO to the output terminal, and the output signal data of the accumulator ACC is supplied to the overflow detection circuit OVF. The output signal data of the accumulator ACC is supplied to the overload detection circuit ○L1.

第1図に示すブロック図及び後述されている第2図に示
すブロック図中に、点線枠によって示しているシフト回
路5FTIとオーバーロード検出回路OL2とによって
構成されている部分は、第1図中及び後述されている第
2図に示すブロック図中で実線枠により示しているオー
バーロード検出回路OLIと同様な機能を有するものと
して構成させようとしている構成部分であり、本発明の
実施は前記した実線図示の構成部分によって行われても
、あるいは点線図示の構成部分によって行われてもよい
のである。
In the block diagram shown in FIG. 1 and the block diagram shown in FIG. This is a component that is intended to have the same function as the overload detection circuit OLI indicated by a solid line frame in the block diagram shown in FIG. 2, which will be described later. This may be done by the components shown in solid lines or by the components shown in dotted lines.

前記した。オーバーロード検出回路0LI(または○L
2)は、前記したアキュムレータACCにおける各デー
タ毎の累算値と比較するためのデータのプリセット機能
と、オーバーロード検出回路○Ll(または0L2)に
プリセットされたデータと前記したアキュムレータAC
Cから出力データとを比較するための比較器とを備えて
いるものとして構成されていて、前記したアキュムレー
タACCにおける出力信号データとオーバーロード検出
回路0L1(または0L2)にプリセットされていたデ
ータとの比較結果により、アキュムレータACCにおけ
る累算値が、アキュムレータACCの出力信号データに
おける真のオーバーフローの状態に対して設定されてい
る所定の余裕領域内に入ったときに出力信号を端子XI
(またはx2)に出力する。
As mentioned above. Overload detection circuit 0LI (or ○L
2) is a data preset function for comparing with the cumulative value of each data in the accumulator ACC described above, and a data preset function for comparing the accumulated value of each data in the accumulator ACC, and the data preset in the overload detection circuit ○Ll (or 0L2) and the above-mentioned accumulator AC.
It is configured to include a comparator for comparing the output data from the accumulator ACC and the output signal data in the accumulator ACC and the data preset in the overload detection circuit 0L1 (or 0L2). As a result of the comparison, when the accumulated value in the accumulator ACC falls within a predetermined margin area set for a true overflow state in the output signal data of the accumulator ACC, the output signal is transferred to the terminal XI.
(or x2).

前記のようにオーバーフロー防止用の余裕領域内に入っ
たときに、アキュムレータACCから供給された出力デ
ータと比較するための前記した比較器としては、正及び
負のオーバーロードがそれぞれ検出されるように、正及
び負のデータによってアキュムレータACCの出力信号
データの信号レベル、すなわち、絶対値のデータの比較
が行えるように構成されているものが使用される。
As mentioned above, the comparator for comparing with the output data supplied from the accumulator ACC is designed to detect positive and negative overloads respectively when entering the margin area for overflow prevention. , the signal level of the output signal data of the accumulator ACC, that is, the absolute value data, can be compared using positive and negative data.

前記のようにオーバーロード検出回路0LI(OL2)
から出力端子X1(X2)に出力された信号は、それを
、例えば表示部に供給して1表示部゛のディスプレイ上
に可視的な表示を行わせる。
As mentioned above, overload detection circuit 0LI (OL2)
The signal outputted to the output terminal X1 (X2) is supplied to, for example, a display section and visually displayed on the display of one display section.

前記のように構成されている第1図に示されているデジ
タルシグナル・プロセッサにおいて、オーバーロード検
出回路OLIの出力信号とオーバーフロー検出回路OV
Fの出力信号とはオア回路ORIを介して出力端子x1
に送出される(またはオーバーロード検出回路OL2の
出力信号とオーバーフロー検出回路OVFの出力信号と
はオア回路OR2を介して出力端子x2に送出される)
In the digital signal processor shown in FIG. 1 configured as described above, the output signal of the overload detection circuit OLI and the overflow detection circuit OV are
The output signal of F is the output terminal x1 via the OR circuit ORI.
(or the output signal of overload detection circuit OL2 and the output signal of overflow detection circuit OVF are sent to output terminal x2 via OR circuit OR2)
.

したがって、前記した第1図示のデジタルシグナル・プ
ロセッサにおいては、それに用いられているアキュムレ
ータACCがオーバーフロー・プロテクトの施されてい
ないものであり、しかも、使用されているオーバーロー
ド検出回路0LI(OL2)が、アキュムレータACC
の出力信号データに所定の係数を乗じて得られるデータ
がオーバーフローの状態になるかどうかをみるようにし
た構成形態のものであった場合で、アキュムレータAC
Cがオーバーフローを起こした状態においても、アキュ
ムレータACCのオーバーフローによりオーバーフロー
検出回路○VFで発生されて出力端子yに送出された信
号が、オア回路0RI(または0R2)にも供給されて
いることにより、アキュムレータACCがオーバーフロ
ーを起こした状態においてオーバーロード検出回路○L
l(または0L2)の出力が不定であっても、アキュム
レータACCのオーバーフローによるオーバーフロー検
出回路OVFの出力信号ガ出力端子XI(X2)に送出
されるので、この第1図示のデジタルシグナル・プロセ
ッサでは既述したような問題点は生じることがない。
Therefore, in the digital signal processor shown in the first diagram, the accumulator ACC used therein is not overflow protected, and moreover, the overload detection circuit 0LI (OL2) used is , accumulator ACC
If the configuration is such that it is checked whether the data obtained by multiplying the output signal data of AC by a predetermined coefficient is in an overflow state, the accumulator AC
Even in the state where C has overflowed, the signal generated by the overflow detection circuit ○VF due to the overflow of the accumulator ACC and sent to the output terminal y is also supplied to the OR circuit 0RI (or 0R2). Overload detection circuit ○L when accumulator ACC has overflowed
Even if the output of 0L2 (or 0L2) is undefined, the output signal of the overflow detection circuit OVF due to the overflow of the accumulator ACC is sent to the output terminal XI (X2). The problems described above do not occur.

次に、第2図示の実施例について説明する。第2図に示
すデジタルシグナル・プロセッサにおいて、M U L
 aは乗算器、MUXはマルチプレクサ、PCはプログ
ラムカウンタ、DPはデータ・メモリ・ページ・ポイン
タ、ARPは補助レジスタ・ポインタ、ALUは演算論
理ユニット、ACCはアキュムレータ、○Ll、OL2
はオーバーロード検出回路、1,5FTIはシフト回路
、OVFはオーバーフロー検出回路、ORI、OR2は
オア回路、Xi、X2はオーバーロード検出回路の出力
信号の出力端子、yはオーバーフロー検出回路の出力信
号の出力端子である。
Next, the embodiment shown in the second figure will be described. In the digital signal processor shown in FIG.
a is a multiplier, MUX is a multiplexer, PC is a program counter, DP is a data memory page pointer, ARP is an auxiliary register pointer, ALU is an arithmetic logic unit, ACC is an accumulator, ○Ll, OL2
is an overload detection circuit, 1,5FTI is a shift circuit, OVF is an overflow detection circuit, ORI, OR2 is an OR circuit, Xi, X2 are output terminals for the output signal of the overload detection circuit, y is an output terminal for the output signal of the overflow detection circuit. It is an output terminal.

第2図に示されている実施例のデジタルシグナル・プロ
セッサDSPでは、乗算器M U L aで積算されて
アキュムレータACCによって累算された出力信号デー
タがシフト回路1を介してデータ・バス2に出力される
とともに、アキュムレータACCの出力信号データがオ
ーバーフロー検出回路OVFに供給されるようになされ
ており、また、アキュムレータACCの出力信号データ
がオーバーロード検出回路OLIに供給されている。
In the digital signal processor DSP of the embodiment shown in FIG. At the same time, the output signal data of the accumulator ACC is supplied to the overflow detection circuit OVF, and the output signal data of the accumulator ACC is supplied to the overload detection circuit OLI.

前記した。オーバーロード検出回路0LI(または0L
2)は、前記したアキュムレータACCにおける各デー
タ毎の累算値と比較するためのデータのプリセット機能
と、オーバーロード検出回路0Ll(または○L2)に
プリセットされたデータと前記したアキュムレータAC
Cから出力データとを比較するための比較器とを備えて
いるものとして構成されていて、前記したアキュムレー
タACCにおける出力信号データとオーバーロード検出
回路0LI(または0L2)にプリセットされていたデ
ータとの比較結果により、アキュムレータACCにおけ
る累算値が、アキュムレータACCの出力信号データに
おける真のオーバーフローの状態に対して設定されてい
る所定の余裕領域内に入ったときに出力信号を端子xi
(またはx2)に出力するi前記のようにオーバーフロ
ー防止用の余裕領域内に入ったときに、アキュムレータ
ACCから供給された出力データと比較するための前記
した比較器としては、正及び負のオーバーロードがそれ
ぞれ検出されるように、正及び負のデータによってアキ
ュムレータACCの出力信号データの信号レベル、すな
わち、絶対値のデータの比較が行えるように構成されて
いるものが使用される。
As mentioned above. Overload detection circuit 0LI (or 0L
2) is a data preset function for comparing with the cumulative value of each data in the accumulator ACC described above, and a data preset function for comparing the accumulated value of each data in the accumulator ACC, and the data preset in the overload detection circuit 0Ll (or ○L2) and the accumulator AC described above.
It is configured to include a comparator for comparing the output data from the accumulator ACC and the data preset in the overload detection circuit 0LI (or 0L2). According to the comparison result, when the accumulated value in the accumulator ACC falls within a predetermined margin area set for a true overflow state in the output signal data of the accumulator ACC, the output signal is sent to the terminal xi.
(or In order to detect each load, a device is used which is configured so that the signal level of the output signal data of the accumulator ACC, that is, the absolute value data, can be compared using positive and negative data.

前記のようにオーバーロード検出回路0LI(OL2)
から出力端子xi(x2)に出力された信号は、それを
、例えば表示部に供給して1表示部のディスプレイ上に
可視的な表示を行わせる。
As mentioned above, overload detection circuit 0LI (OL2)
The signal outputted to the output terminal xi (x2) is supplied to, for example, a display section to visually display it on the display of one display section.

前記のように構成されている第2図に示されているデジ
タルシグナル・プロセッサにおいても、既述した第1図
示のデジタルシグナル・プロセッサの場合と同様に、オ
ーバーロード検出回路OL1の出力信号とオーバーフロ
ー検出回路OVFの出力信号とはオア回路ORIを介し
て出力端子Xlに送出される(またはオーバーロード検
出回路OL2の出力信号とオーバーフロー検出回路OV
Fの出力信号とはオア回路○R2を介して出力端子x2
に送出される)から、それに用いられているアキュムレ
ータACCがオーバーフロー・プロテクトの施されてい
ないものであり、しかも、使用されているオーバーロー
ド検出回路0LI(OL2)が、アキュムレータACC
の出力信号データに所定の係数を乗じて得られるデータ
がオーバーフローの状態になるかどうかをみるようにし
た構成形態のものであった場合で、アキュムレータAC
Cがオーバーフローを起こした状態においても、アキュ
ムレータACCのオーバーフローによりオーバーフロー
検出回路OVFで発生されて出力端子yに送出された信
号が、オア回路0RI(または○OLl(OL2)R2
)にも供給されていることにより、アキュムレータAC
Cがオーバーフローを起こした状態においてオーバーロ
ード検出回路0L1(または0L2)の出力が不定であ
っても、アキュムレータACCのオーバーフローによる
オーバーフロー検出回路OVFの出力信号が出力端子X
I(X2)に送出されるので、この第2図示のデジタル
シグナル・プロセッサでも既述したような問題点は生じ
ることがない。
In the digital signal processor shown in FIG. 2 configured as described above, as in the case of the digital signal processor shown in FIG. The output signal of the detection circuit OVF is sent to the output terminal Xl via the OR circuit ORI (or the output signal of the overload detection circuit OL2 and the overflow detection circuit OV
The output signal of F is the output terminal x2 via the OR circuit ○R2.
), the accumulator ACC used there is not overflow protected, and the overload detection circuit 0LI (OL2) used is
If the configuration is such that it is checked whether the data obtained by multiplying the output signal data of AC by a predetermined coefficient is in an overflow state, the accumulator AC
Even in the state where C has overflowed, the signal generated by the overflow detection circuit OVF due to the overflow of the accumulator ACC and sent to the output terminal y is output to the OR circuit 0RI (or ○OLl(OL2)R2
) is also supplied to the accumulator AC
Even if the output of the overload detection circuit 0L1 (or 0L2) is undefined in a state where C has overflowed, the output signal of the overflow detection circuit OVF due to the overflow of the accumulator ACC is output from the output terminal
Since the signal is sent to I(X2), the above-mentioned problem does not occur in the digital signal processor shown in the second diagram.

(発明の効果) 以上、詳細に説明したところから明らかなように2本発
明のデジタルシグナル・プロセッサは。
(Effects of the Invention) As is clear from the detailed explanation above, there are two digital signal processors of the present invention.

プログラム・メモリから順次に読出される命令に応じて
デジタル信号処理を実行するようになされており、少な
くとも係数データとデジタル信号デ−夕とを乗算する乗
算器を備えているデジタルシグナル・プロセッサにおい
て、前記の乗算器からの出力信号データを累算するアキ
ュムレータの出力信号データのオーバーフロー検出手段
と、前記したアキュムレータの出力信号データのオーバ
ーフロー警告レベルの検出手段と、前記のオーバーフロ
ー検出手段からの出力信号と前記のオーバーフロー警告
レベルの検出手段からの出力信号との論理和出力を得る
手段とを設けてなるものであるから、この本発明のデジ
タルシグナル・プロセッサでは、オーバーロード検出回
路の出力信号とオーバーフロー検出回路の出力信号とが
オア回路を介して出力端子Xに送出されるから、それに
用いられているアキュムレータACCがオーバーフロー
・プロテクトの施されていないものであり、しかも、使
用されているオーバーロード検出回路が、アキュムレー
タACCの出力信号データに所定の係数を乗じて得られ
るデータがオーバーフローの状態になるかどうかをみる
ようにした構成形態のものであった場合で、アキュムレ
ータACCがオーバーフローを起こした状態においても
、アキュムレータACCのオーバーフローによりオーバ
ーフロー検出回路OVFで発生されて出力端子yに送出
された信号が、オア回路にも供給されていることにより
、アキュムレータACCがオーバーフローを起こした状
態においてオーバーロード検出回路の出力が不定であっ
ても、アキュムレータACCのオーバーフローによるオ
ーバーフロー検出回路OVFの出力信号が出力端子Xに
送出されるので、本発明のデジタルシグナル・プロセッ
サでは既述したような従来の問題点は生じることがない
A digital signal processor configured to perform digital signal processing in response to instructions sequentially read from a program memory, and comprising at least a multiplier for multiplying coefficient data and digital signal data, Overflow detection means for output signal data of an accumulator that accumulates output signal data from the multiplier; means for detecting an overflow warning level for output signal data of the accumulator; and an output signal from the overflow detection means. Since the digital signal processor of the present invention is provided with means for obtaining an OR output with the output signal from the overflow warning level detection means, the output signal of the overload detection circuit and the overflow detection circuit are provided. Since the output signal of the circuit is sent to the output terminal is configured to check whether the data obtained by multiplying the output signal data of the accumulator ACC by a predetermined coefficient is in an overflow state, and when the accumulator ACC has overflowed, Also, the signal generated by the overflow detection circuit OVF and sent to the output terminal y due to the overflow of the accumulator ACC is also supplied to the OR circuit, so that when the accumulator ACC overflows, the overload detection circuit is Even if the output is undefined, the output signal of the overflow detection circuit OVF due to the overflow of the accumulator ACC is sent to the output terminal There is no.

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

第1図及び第2図は本発明のデジタルシグナル・プロセ
ッサの各人なる実施例のブロック図である。 a・・・デジタル信号の入力端子、b・・・出力端子、
X・・・出力端子、MUL、MULa・・・乗算器、M
UX・・・マルチプレクサ、SDI・・・シリアル・デ
ータの入力回路、IB・・・入力バッファ、NC−RA
M・・・係数RAM、TB・・・転送バッファ、PCD
・・・パラメータ制御部、P−RAM・・・プログラム
RAM、SD○・・・シリアルデータの出力回路、SC
I・・・シリアルコード・インターフェース、D−RA
M・・・データRAM、FN−ROM・・・定数のメモ
リ用ROM、ACC・・・アキュムレータ、REG・・
・シフタ付レジスタ、OB・・・出力バツファ、OVF
・・・オーバーフロー検出回路、PC・・・プログラム
カウンタ、DP・・・データ・メモリ・ページ・ポイン
タ、ARP・・・補助レジスタ・ポインタ、ALU・・
・演算論理ユニット、OLI、OL2・・・オーバーロ
ード検出回路、SFT、5FTI、1・・・シフト回路
、OR1゜OR2・・・オア回路、
1 and 2 are block diagrams of respective embodiments of the digital signal processor of the present invention. a...digital signal input terminal, b...output terminal,
X...output terminal, MUL, MULa...multiplier, M
UX...multiplexer, SDI...serial data input circuit, IB...input buffer, NC-RA
M...Coefficient RAM, TB...Transfer buffer, PCD
...Parameter control unit, P-RAM...Program RAM, SD○...Serial data output circuit, SC
I...Serial code interface, D-RA
M...Data RAM, FN-ROM...Constant memory ROM, ACC...Accumulator, REG...
・Register with shifter, OB...output buffer, OVF
...Overflow detection circuit, PC...Program counter, DP...Data memory page pointer, ARP...Auxiliary register pointer, ALU...
・Arithmetic logic unit, OLI, OL2... Overload detection circuit, SFT, 5FTI, 1... Shift circuit, OR1°OR2... OR circuit,

Claims (1)

【特許請求の範囲】[Claims] プログラム・メモリから順次に読出される命令に応じて
デジタル信号処理を実行するようになされており、少な
くとも係数データとデジタル信号データとを乗算する乗
算器を備えているデジタルシグナル・プロセッサにおい
て、前記の乗算器からの出力信号データを累算するアキ
ュムレータの出力信号データのオーバーフロー検出手段
と、前記したアキュムレータの出力信号データのオーバ
ーフロー警告レベルの検出手段と、前記のオーバーフロ
ー検出手段からの出力信号と前記のオーバーフロー警告
レベルの検出手段からの出力信号との論理和出力を得る
手段とを設けてなるデジタルシグナル・プロセッサ
The digital signal processor is configured to perform digital signal processing in response to instructions sequentially read from a program memory, and includes at least a multiplier for multiplying coefficient data and digital signal data. Overflow detection means for the output signal data of an accumulator that accumulates output signal data from the multiplier; means for detecting an overflow warning level for the output signal data of the accumulator; and an output signal from the overflow detection means and the A digital signal processor comprising means for obtaining an OR output with an output signal from an overflow warning level detection means.
JP14088487A 1987-06-05 1987-06-05 Digital signal processor Pending JPS63305462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14088487A JPS63305462A (en) 1987-06-05 1987-06-05 Digital signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14088487A JPS63305462A (en) 1987-06-05 1987-06-05 Digital signal processor

Publications (1)

Publication Number Publication Date
JPS63305462A true JPS63305462A (en) 1988-12-13

Family

ID=15279013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14088487A Pending JPS63305462A (en) 1987-06-05 1987-06-05 Digital signal processor

Country Status (1)

Country Link
JP (1) JPS63305462A (en)

Similar Documents

Publication Publication Date Title
KR900014984A (en) Circuit element and method for providing output signal representation of time delay between two asynchronous clock signals
KR19980014906A (en) Accumulator
US6586962B2 (en) Semiconductor device
KR920700496A (en) Vector Quantizer Codebook Processing Circuit
US5907498A (en) Circuit and method for overflow detection in a digital signal processor having a barrel shifter and arithmetic logic unit connected in series
JPS63305462A (en) Digital signal processor
US7089437B2 (en) Apparatus for determining power consumed by a bus of a digital signal processor using counted number of logic state transitions on bus
US6327665B1 (en) Processor with power consumption limiting function
JPS63266577A (en) Digital signal processor
JPS63304370A (en) Digital signal processor
JPS63290009A (en) Digital signal processor
US20020188640A1 (en) Dual mode arithmetic saturation processing
US7149274B2 (en) Addressing type coin-dropping detector circuit
US4907185A (en) Program-controlled computer with an interrupt capability for floating-point operation
JPS63292716A (en) Peak display device for preventing overload in arithmetic unit for digital signal
JPS63255735A (en) Floating-point multiplier
JPH01208096A (en) Measured value collecting system in measurement control system
KR0128714Y1 (en) Keyboard connection device
JPS5822463A (en) Computer load measuring instrument
KR20060126149A (en) Apparatus for sensing bus traffic and method for sensing a amount of bus traffic
KR100297650B1 (en) Monitoring method of received digital data
JP2998324B2 (en) Normalized shift device and normalized shift method
JPS62113245A (en) Operation monitoring device for signal processor
JPH0736665A (en) Arithmetic unit
JPS60191330A (en) Security system of data accuracy for operation