JPH04169936A - Signal processor - Google Patents

Signal processor

Info

Publication number
JPH04169936A
JPH04169936A JP29825090A JP29825090A JPH04169936A JP H04169936 A JPH04169936 A JP H04169936A JP 29825090 A JP29825090 A JP 29825090A JP 29825090 A JP29825090 A JP 29825090A JP H04169936 A JPH04169936 A JP H04169936A
Authority
JP
Japan
Prior art keywords
input
output
signal
circuit
internal
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.)
Granted
Application number
JP29825090A
Other languages
Japanese (ja)
Other versions
JP2884764B2 (en
Inventor
Ichiro Kuroda
黒田 一朗
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2298250A priority Critical patent/JP2884764B2/en
Publication of JPH04169936A publication Critical patent/JPH04169936A/en
Application granted granted Critical
Publication of JP2884764B2 publication Critical patent/JP2884764B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Complex Calculations (AREA)

Abstract

PURPOSE:To efficiently realize the parallel signal processing on a program by providing a program executing part which executes a program selected by a program selecting circuit to store an output signal string in a first or second input/output circuit. CONSTITUTION:In accordance with the program selected by a program selecting circuit 6 which selects one of two kinds of preliminarily prepared program in accordance with a discrimination signal 105, a program executing part 13 reads out an input signal string from internal buffers of a first input/output circuit 7, which takes a signal 108 as the input by a first interrupt input 101 to store it in an internal input buffer and reads out a signal 109 from an internal output buffer to output it from a signal terminal 9, and a second input/output circuit 10 which takes a signal 111 as the input by a second interrupt input 103 to store it in an internal input buffer and reads out a signal 112 from an internal output buffer to output it to a signal output terminal 12. After the processing, the output signal string is stored in internal buffers of first and second input/output circuits 7 and 10. Thus, plural processings are efficiently realized on the program.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、PCM信号とディジタルオーディオ信号など
のように標本化間隔の異なる2つの信号を並行して処理
できる信号処理用プロセッサに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a signal processing processor that can process two signals having different sampling intervals, such as a PCM signal and a digital audio signal, in parallel.

(従来の技術) 従来、シグナルプロセッサなどにより複数の標本化レー
トの信号を並行して処理する方法としては、 1)複数の割り込みを用いる方法 2)プログラム制御による方法 がある。
(Prior Art) Conventionally, as methods for processing signals of multiple sampling rates in parallel using a signal processor or the like, there are 1) a method using multiple interrupts, and 2) a method using program control.

複数の割り込みを用いる方法では標本化レートの異なる
処理毎に優先順位のついた割り込み信号を割当て、割り
込み信号によりそれぞれの標本化レートの処理を実行す
る。各々の標本化レートが興なる為、一つのレートの処
理の実行中に異なる標本化レートの処理を起動する割り
込みが入力されることがある。この場合は入力された割
り込みの優先順位が高い場合は、現在実行中の処理を中
断して、割り込み信号に対応する処理を実行し、処理が
終了したら割り込み入力前の処理を再開する。また、優
先順位が低い場合は、現在実行中の処理が終了してから
割り込み処理を開始する。このようにして標本化レート
の興なる処理を並行して実行することができる。
In a method using a plurality of interrupts, a prioritized interrupt signal is assigned to each process with a different sampling rate, and the process with each sampling rate is executed using the interrupt signal. Since each sampling rate is different, an interrupt may be input to start processing of a different sampling rate while processing of one rate is being executed. In this case, if the input interrupt has a high priority, the process currently being executed is interrupted, the process corresponding to the interrupt signal is executed, and when the process is completed, the process before the interrupt input is resumed. Furthermore, if the priority is low, interrupt processing is started after the currently executing process ends. In this way, processing depending on the sampling rate can be performed in parallel.

一方、プログラム制御による方法では標本化レートの異
なる処理を1つのプログラム内で標本化レートに応じて
繰り返し実行することによりマルチレート処理を実現す
るものである6例えば、2つの処理A、Bの標本化レー
トの比が2対3の場合はAを2回、Bを3回繰り返すプ
ログラムをAの標本化レートの半分のレートで繰り返す
ことにより実現できる。
On the other hand, in the method using program control, multi-rate processing is realized by repeatedly executing processing with different sampling rates within one program according to the sampling rate. If the sampling rate ratio is 2:3, this can be achieved by repeating a program that repeats A twice and B three times at a rate that is half the sampling rate of A.

(発明が解決しようとする課題) しかしながら、複数の割り込みを用いる方法では、優先
順位の高い割り込みによる処理の中断によるプロセッサ
の内部状態の退避などのオーバーヘッドが大きく、時間
的な制約の強い実時間処理においては処理時間の短縮が
求められていた。とくに高速化の為にパイプライン処理
を採用しているプロセッサにおいては割り込みによりバ
イブラインを中断するから演算効率の大幅な劣化を招く
ことになる。
(Problem to be solved by the invention) However, in the method using multiple interrupts, there is a large overhead such as saving the internal state of the processor due to interruption of processing due to high priority interrupts, and real-time processing with strong time constraints There was a need to shorten processing time. Particularly in processors that employ pipeline processing to increase speed, interrupts interrupt the vibe line, resulting in a significant deterioration in computational efficiency.

一方、プログラム制御による方式では興なる2つの標本
化レートの比をm:nとしたときmおよびnがそれぞれ
整数で表せる場合に限られていた。
On the other hand, the method using program control is limited to cases where m and n can each be expressed as an integer, where the ratio of two sampling rates is m:n.

また各々整数で表せる場合でもmとnの最小公倍数が大
きい場合はプログラム、処理遅延、所用メモリ等が大き
くなるから実用上問題があった。
Furthermore, even if each of the numbers can be expressed as an integer, if the least common multiple of m and n is large, the program, processing delay, memory requirements, etc. will become large, which poses a practical problem.

本発明の目的は、異なる2つの標本化レートの比が簡単
な整数の比で表すことができない複数の処理が存在する
場合でも効率よくプログラム上で実現できるシグナルプ
ロセッサを提供することにある。
An object of the present invention is to provide a signal processor that can be efficiently implemented on a program even when there are multiple processes in which the ratio of two different sampling rates cannot be expressed as a simple integer ratio.

(課題を解決するための手段) 本発明のシグナルプロセッサは、第1の標本化間隔で入
力される第1の割り込み入力を分周して分周割込信号を
生成する分周回路と、該分周割込信号をリセット信号と
し該リセット信号間隔内に第2の標本化間隔で入力され
る第2の割り込み入力の数をカウントするカウンタ回路
と、前記リセット信号入力時に前記カウンタ回路の出力
が予め与えられた数に一致するかどうかを判定する判定
回路と、該判定回路の出力に応じて予め蓄えられた2つ
のプログラムのうちから1つを選択するプログラム選択
回路と、第1の内部入力バッファ及び第1の内部出力バ
ッファを有し前記第1の割り込み入力に同期して第1の
入力信号を前記第1の内部入力バッファに蓄え前記第1
の内部出力バッファに蓄えられた出力信号を出力する第
1の入出力回路と、第2の内部入力バッファ及び第2の
内部出力バッファを有し前記第2の割り込み入力に同期
して第2の入力信号を前記第2の内部入力バッファに蓄
え前記第2内部出力バッファに蓄えられた出力信号を出
力する第2の入出力回路と、前記第1の入出力回路また
は前記第2の入出力回路に蓄えられた信号列を入力とし
、前記プログラム選択回路により選択されたプログラム
を実行し、出力信号列を前記第1の入出力回路または前
記第2の入出力回路に蓄えるプログラムを実行部とを少
なくとも備えて構成される。
(Means for Solving the Problems) A signal processor of the present invention includes a frequency dividing circuit that divides a first interrupt input input at a first sampling interval to generate a frequency-divided interrupt signal; a counter circuit that uses a frequency-divided interrupt signal as a reset signal and counts the number of second interrupt inputs input at a second sampling interval within the reset signal interval, and an output of the counter circuit when the reset signal is input; a determination circuit that determines whether the number matches a predetermined number; a program selection circuit that selects one of two programs stored in advance according to the output of the determination circuit; and a first internal input. a buffer and a first internal output buffer, and stores a first input signal in the first internal input buffer in synchronization with the first interrupt input;
a first input/output circuit that outputs the output signal stored in the internal output buffer of the input/output circuit, a second internal input buffer, and a second internal output buffer; a second input/output circuit that stores an input signal in the second internal input buffer and outputs an output signal stored in the second internal output buffer; and the first input/output circuit or the second input/output circuit. an execution unit that executes a program that receives a signal string stored in the first input/output circuit or the second input/output circuit as input, executes a program selected by the program selection circuit, and stores an output signal string in the first input/output circuit or the second input/output circuit; Configured with at least one.

(作用) 本発明の原理を次に示す、実現しようとするシステム内
の入出力のサンプリングレートの比をa:mとして表し
たとき整数値mに対してaが非整数の場合n<a<n+
1となる整数をnとする。このとき、mサンプルだけ出
力する間に入力されるサンプル数はnまたはn+1であ
ることは明らかである。そこで、入出力のサンプリング
レートの比がn:mの場合のプログラムとn+1:mの
場合のプログラムとを予め用意しておき、mサンプルた
け出力する間に入力された入力サンプル数がnであるか
n+1であるかに応じて2つのプログラムのうちの何れ
か一方を選択して実行することにより入出力サンプリン
グレートの比がa:mであるシステムを実現することが
できる。
(Operation) The principle of the present invention is shown below. When the ratio of the input and output sampling rates in the system to be realized is expressed as a:m, and when a is a non-integer with respect to an integer value m, n<a< n+
Let n be an integer that is 1. At this time, it is clear that the number of samples input while only m samples are output is n or n+1. Therefore, we prepare in advance a program for when the input/output sampling rate ratio is n:m and a program for n+1:m, so that the number of input samples input while outputting m samples is n. By selecting and executing one of the two programs depending on whether the input/output sampling rate is n+1, it is possible to realize a system in which the input/output sampling rate ratio is a:m.

(実施例) 次に本発明の実施例を図面を参照しながら説明する。(Example) Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示す図であり、この
実施例は第1の割り込み入力端子1、分周回路2、第2
の割り込み入力端子3、カウンタ回路4、判定回路5、
プログラム選択口#16、第1の入出力回路7、第1の
信号入力端子8、第1の信号出力端子9、第2の入出力
回路10、第2の信号入力端子11、第2の信号出力端
子12、及びプログラム実行部13から構成されている
FIG. 1 is a diagram showing the configuration of an embodiment of the present invention, which includes a first interrupt input terminal 1, a frequency dividing circuit 2, a second
interrupt input terminal 3, counter circuit 4, judgment circuit 5,
Program selection port #16, first input/output circuit 7, first signal input terminal 8, first signal output terminal 9, second input/output circuit 10, second signal input terminal 11, second signal It is composed of an output terminal 12 and a program execution section 13.

分周回路2は第1の割り込み入力101を予め与えられ
た数だけ分周を行ない分周された割り込み信号102を
出力する。たとえば分周回数をM(Mは整の整数)とす
ると、分周回路2は第1の割り込み入力101がM凹入
力されるごとに分周された割り込み出力を1回出力する
。カウンタ回路4は、分周された割り込み信号102の
隣り合う入力間隔に入力された第2の割り込み入力10
3の数を数えるもので、分周された割り込み信号102
をリセット信号、第2の割り込み入力103をカウンタ
入力とするアップカウンタにより実現できる。判定回路
5は分周された割り込み信号102入力によりカウンタ
回路4の出力104が予め与えられた数に等しいかを判
定し、判定信号105を出力する。プログラム選択回路
6は予め用意された2種類のプログラムの一方を判定信
号105に応じて選択して出力する。第1の入出力回R
7は内部入力バッファおよび内部出力゛バッファを内蔵
し、第1の割り込み入力101により信号入力端子8よ
り信号108を入力して内部入力バッファに蓄え、内部
出力バッファから信号109を読み出して信号端子9か
ら出力する。第2の入出力回路10も内部入力バッファ
および内部出力バッファを内蔵し、第2の割り込み入力
103により信号入力端子11より信号111を入力し
て内部入力バッファに蓄え、内部出力バッファから信号
112を読み出して信号出力端子12に出力する。プロ
グラム実行部13はプログラム選択回路6で選択された
プログラムに従い、第1の入出力回路7および第2の入
出力回路10の内部バッファから入力信号列を読み出し
、処理を行なった後、出力信号列を第1の入出力回路7
および第2の入出力回路10の内部バッファに格納する
The frequency dividing circuit 2 divides the frequency of the first interrupt input 101 by a predetermined number and outputs the frequency-divided interrupt signal 102. For example, if the number of frequency divisions is M (M is an integer), the frequency dividing circuit 2 outputs the frequency-divided interrupt output once every M inputs of the first interrupt input 101. The counter circuit 4 receives a second interrupt input 10 input at an interval between adjacent inputs of the frequency-divided interrupt signal 102.
A frequency-divided interrupt signal 102 that counts the number of 3.
This can be realized by an up counter that uses the reset signal as the reset signal and the second interrupt input 103 as the counter input. The determination circuit 5 determines whether the output 104 of the counter circuit 4 is equal to a predetermined number based on the frequency-divided interrupt signal 102 input, and outputs a determination signal 105. The program selection circuit 6 selects and outputs one of two types of programs prepared in advance according to the determination signal 105. First input/output circuit R
7 incorporates an internal input buffer and an internal output buffer, inputs a signal 108 from the signal input terminal 8 through the first interrupt input 101, stores it in the internal input buffer, reads out the signal 109 from the internal output buffer, and outputs it to the signal terminal 9. Output from. The second input/output circuit 10 also includes an internal input buffer and an internal output buffer, and receives a signal 111 from the signal input terminal 11 through the second interrupt input 103 and stores it in the internal input buffer, and outputs a signal 112 from the internal output buffer. It is read out and output to the signal output terminal 12. The program execution unit 13 reads the input signal string from the internal buffers of the first input/output circuit 7 and the second input/output circuit 10 according to the program selected by the program selection circuit 6, processes it, and then outputs the output signal string. The first input/output circuit 7
and stored in the internal buffer of the second input/output circuit 10.

実施例のシグナルプロセッサにおいての入力信号の標本
化レートと出力信号の標本化レートの比をRとし、Rに
対し、 M         M が成立つとする。このとき分周回路2において第1の割
り込み入力101をM分周し、カウンタ回路4らおいて
M分周された割り込み間隔の間に入力される第2の割り
込み入力103の数を数える。
It is assumed that the ratio of the sampling rate of the input signal to the sampling rate of the output signal in the signal processor of the embodiment is R, and that M M holds true for R. At this time, the frequency of the first interrupt input 101 is divided by M in the frequency dividing circuit 2, and the number of second interrupt inputs 103 inputted during the M-divided interrupt interval is counted in the counter circuit 4.

この数はN(Nは整の整数)またはN+1のいずれかに
なる6そこでM分周された割り込み信号102が入力さ
れたとき判定回路5においてカウンタ回路4の出力10
4がNであるかの判定を行ない判定信号105を出力す
る。また同時にカウンタ回路4をOリセットする。そし
て、プログラム選択回路6は次のようにプログラムを選
択してプログラム実行部13に実行させる。まず、判定
信号105がNサンプル入力を示しているときは、第1
の入出力回路7の内部入力バッファにはMサンプル入力
され第2の入出力回路10の内部入力バッファにはNサ
ンプル入力されているから、プログラム選択回路6は、
第1の割り込み処理に対応する処理をM回繰り返し、第
2の割り込み処理に対応する処理をN回繰り返すプログ
ラムを選択してプログラム実行部13で処理させる。一
方、判定信号105がN+1サンプル入力を示している
ときは第2人出力回路10の内臓バッファにはN+1サ
ンプル入力されているから、プログラム選択回路6は、
第1の割り込み処理に対応する処理をM回繰り返し、第
2の割り込み処理に対応する処理をN+1回繰り返すグ
ログラムを選択して10グラム実行113で処理させる
This number is either N (N is an integer) or N+1 6 Therefore, when the M-divided interrupt signal 102 is input, the determination circuit 5 checks the output 10 of the counter circuit 4.
It is determined whether 4 is N and a determination signal 105 is output. At the same time, the counter circuit 4 is reset to O. Then, the program selection circuit 6 selects a program as follows and causes the program execution unit 13 to execute it. First, when the determination signal 105 indicates N sample input, the first
Since M samples are input to the internal input buffer of the input/output circuit 7 and N samples are input to the internal input buffer of the second input/output circuit 10, the program selection circuit 6
A program is selected that repeats the process corresponding to the first interrupt process M times and the process corresponding to the second interrupt process N times, and causes the program execution unit 13 to process it. On the other hand, when the determination signal 105 indicates input of N+1 samples, since N+1 samples are input to the built-in buffer of the second person output circuit 10, the program selection circuit 6
A program is selected in which the process corresponding to the first interrupt process is repeated M times, and the process corresponding to the second interrupt process is repeated N+1 times, and is processed in the 10-gram execution 113.

(発明の効果) 以上に説明したように、本発明に従えば簡単な整数の比
で表すことのできない2つの異なる標本化レートの処理
が存在する場合でも並行信号処理を効率よくプログラム
で実現することが可能になる。
(Effects of the Invention) As explained above, according to the present invention, even when there are processes with two different sampling rates that cannot be expressed by a simple ratio of integers, parallel signal processing can be efficiently realized by a program. becomes possible.

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

第1図は本発明の一実施例の構成を示す図である。 1・・・第1の割り込み入力端子、2・・・分周回路、
3・・・第2の割り込み入力端子、4・・・カウンタ回
路、5・・・判定回路、6・・・10グラム選択回路、
7・・・第■の入出力回路、8・・・第1の信号入力端
子、9・・・第1の信号出力端子、10・・・第2の入
出力回路、11・・・第2の信号入力端子、12・・・
第2の信号出力端子、13・・・プログラム実行部。
FIG. 1 is a diagram showing the configuration of an embodiment of the present invention. 1... First interrupt input terminal, 2... Frequency divider circuit,
3... Second interrupt input terminal, 4... Counter circuit, 5... Judgment circuit, 6... 10 gram selection circuit,
7... ■th input/output circuit, 8... first signal input terminal, 9... first signal output terminal, 10... second input/output circuit, 11... second signal input terminal, 12...
second signal output terminal, 13...program execution section;

Claims (1)

【特許請求の範囲】[Claims] 第1の標本化間隔で入力される第1の割り込み入力を分
周して分周割込信号を生成する分周回路と、該分周割込
信号をリセット信号とし該リセット信号間隔内に第2の
標本化間隔で入力される第2の割り込み入力の数をカウ
ントするカウンタ回路と、前記リセット信号入力時に前
記カウンタ回路の出力が予め与えられた数に一致するか
どうかを判定する判定回路と、該判定回路の出力に応じ
て予め蓄えられた2つのプログラムのうちから1つを選
択するプログラム選択回路と、第1の内部入力バッファ
及び第1の内部出力バッファを有し前記第1の割り込み
入力に同期して第1の入力信号を前記第1の内部入力バ
ッファに蓄え前記第1の内部出力バッファに蓄えられた
出力信号を出力する第1の入出力回路と、第2の内部入
力バッファ及び第2の内部出力バッファを有し前記第2
の割り込み入力に同期して第2の入力信号を前記第2の
内部入力バッファに蓄え前記第2内部出力バッファに蓄
えられた出力信号を出力する第2の入出力回路と、前記
第1の入出力回路または前記第2の入出力回路に蓄えら
れた信号列を入力とし、前記プログラム選択回路により
選択されたプログラムを実行し、出力信号列を前記第1
の入出力回路または前記第2の入出力回路に蓄えるプロ
グラム実行部とを少なくとも備えることを特徴とするシ
グナルプロセッサ。
A frequency dividing circuit that divides a first interrupt input input at a first sampling interval to generate a frequency-divided interrupt signal; a counter circuit that counts the number of second interrupt inputs input at a sampling interval of 2; and a determination circuit that determines whether the output of the counter circuit matches a predetermined number when the reset signal is input. , a program selection circuit that selects one of two programs stored in advance according to the output of the determination circuit, a first internal input buffer, and a first internal output buffer, and the first interrupt a first input/output circuit that stores a first input signal in the first internal input buffer in synchronization with the input and outputs the output signal stored in the first internal output buffer; and a second internal input buffer. and a second internal output buffer;
a second input/output circuit that stores a second input signal in the second internal input buffer and outputs the output signal stored in the second internal output buffer in synchronization with an interrupt input of the first input/output circuit; The signal string stored in the output circuit or the second input/output circuit is input, the program selected by the program selection circuit is executed, and the output signal string is input to the first input/output circuit.
A signal processor comprising at least an input/output circuit or a program execution unit that stores in the second input/output circuit.
JP2298250A 1990-11-01 1990-11-01 Signal processor Expired - Fee Related JP2884764B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2298250A JP2884764B2 (en) 1990-11-01 1990-11-01 Signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2298250A JP2884764B2 (en) 1990-11-01 1990-11-01 Signal processor

Publications (2)

Publication Number Publication Date
JPH04169936A true JPH04169936A (en) 1992-06-17
JP2884764B2 JP2884764B2 (en) 1999-04-19

Family

ID=17857188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2298250A Expired - Fee Related JP2884764B2 (en) 1990-11-01 1990-11-01 Signal processor

Country Status (1)

Country Link
JP (1) JP2884764B2 (en)

Also Published As

Publication number Publication date
JP2884764B2 (en) 1999-04-19

Similar Documents

Publication Publication Date Title
US4789927A (en) Interleaved pipeline parallel processing architecture
CN1100296C (en) Apparatus and method for interrupt processing
JPH04169936A (en) Signal processor
JPH04322330A (en) Multirate signal processor
US6757818B1 (en) Programmable microcontroller for controlling multichannel sequences of states to be processed in each processing period
JP2929823B2 (en) Multi-rate signal processor
JPH04209020A (en) Microcomputer
JPH0117177B2 (en)
JPH03294930A (en) Arithmetic processing method
JPH03233724A (en) Repetitive processing control system
JPH09134294A (en) Interruption control circuit
JPH04168530A (en) Program priority control system
JPH04346140A (en) Access controller for shared memory
JPH0454544A (en) Memory access controller
JPS59197920A (en) Address controlling device
JPH04160551A (en) Interrupt circuit
JPH0580089A (en) Timer device
JPH05313917A (en) Interruption control circuit
JPS61226839A (en) Event processing system
JPS6277658A (en) Runaway preventing circuit for central processing unit
JPH0512011A (en) Pipeline circuit
JPH06152546A (en) Microprocessor
JPH05313890A (en) Address arithmetic circuit
JPH04192037A (en) Semiconductor integrated circuit
JPS61264465A (en) Data transfer control method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080212

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090212

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100212

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees