JP2884764B2 - Signal processor - Google Patents

Signal processor

Info

Publication number
JP2884764B2
JP2884764B2 JP2298250A JP29825090A JP2884764B2 JP 2884764 B2 JP2884764 B2 JP 2884764B2 JP 2298250 A JP2298250 A JP 2298250A JP 29825090 A JP29825090 A JP 29825090A JP 2884764 B2 JP2884764 B2 JP 2884764B2
Authority
JP
Japan
Prior art keywords
input
output
signal
circuit
interrupt
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
JP2298250A
Other languages
Japanese (ja)
Other versions
JPH04169936A (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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
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

Description

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

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

複数の割り込みを用いる方法では標本化レートの異な
る処理毎に優先順位のついた割り込み信号を割当て、割
り込み信号によりそれぞれの標本化レートの処理を実行
する。各々の標本化レートが異なる為、一つのレートの
処理の実行中に異なる標本化レートの処理を起動する割
り込みが入力されることがある。この場合は入力された
割り込みの優先順位が高い場合は、現在実行中の処理を
中断して、割り込み信号に対応する処理を実行し、処理
が終了したら割り込み入力前の処理を再開する。また、
優先順位が低い場合は、現在実行中の処理が終了してか
ら割り込み処理を開始する。このようにして標本化レー
トの異なる処理を並行して実行することができる。
In the method using a plurality of interrupts, an interrupt signal with a priority is assigned to each process having a different sampling rate, and the process at each sampling rate is executed by the interrupt signal. Since each sampling rate is different, an interrupt that activates processing at a different sampling rate may be input during execution of processing at one rate. In this case, if the priority of the input interrupt is high, the currently executing process 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. Also,
If the priority is low, the interrupt process is started after the process currently being executed ends. In this manner, processes having different sampling rates can be executed in parallel.

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

(発明が解決しようとする課題) しかしながら、複数の割り込みを用いる方法では、優
先順位の高い割り込みによる処理の中断によるプロセッ
サの内部状態の退避などのオーバーヘッドが大きく、時
間的な制約の強い実時間処理においては処理時間の短縮
が求められていた。とくに高速化の為にパイプライン処
理を採用しているプロセッサにおいては割り込みにより
パイプラインを中断するから演算効率の大幅な劣化を招
くことになる。
(Problems to be Solved by the Invention) However, in the method using a plurality of interrupts, there is a large overhead such as evacuation of the internal state of the processor due to the interruption of the processing due to the high-priority interrupt, and the real-time processing with a strong time constraint. Has been required to reduce the processing time. In particular, in a processor employing pipeline processing for speeding up, the pipeline is interrupted by an interrupt, so that the computation efficiency is greatly deteriorated.

一方、プログラム制御による方式では異なる2つの標
本化レートの比をm:nとしたときmおよびnがそれぞれ
整数で表せる場合に限られていた。また各々整数で表せ
れる場合でもmとnの最小公倍数が大きい場合はプログ
ラム、処理遅延、所用メモリ等が大きくなるから実用上
問題があった。
On the other hand, the method based on the program control is limited to the case where m and n can be represented by integers when the ratio of two different sampling rates is m: n. Even when each of them can be represented by an integer, when the least common multiple of m and n is large, there is a practical problem because the program, processing delay, required memory and the like become large.

本発明の目的は、異なる2つの標本化レートの比が簡
単な整数の比で表すことができない複数の処理が存在す
る場合でも効率よくプログラム上で実現できるシグナル
プロセッサを提供することにある。
An object of the present invention is to provide a signal processor which can be efficiently realized on a program even when there are a plurality of processes in which a ratio of two different sampling rates cannot be represented by 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 according to the present invention includes: a frequency dividing circuit that divides a first interrupt input input at a first sampling interval to generate a frequency dividing interrupt signal; A counter circuit that uses the frequency-divided interrupt signal as a reset signal and counts the number of second interrupt inputs that are input at a second sampling interval within the reset signal interval, and outputs the counter circuit when the reset signal is input. A judgment circuit for judging whether or not the number coincides with a predetermined number; and 2 stored in advance according to an output of the judgment circuit.
A program selection circuit for selecting one of the two programs; a first internal input buffer and a first internal output buffer;
A first input / output circuit for storing an input signal of the first internal input buffer and outputting an output signal stored in the first internal output buffer; a second internal input buffer;
A second input signal is stored in the second internal input buffer in synchronization with the second interrupt input, and a second output signal stored in the second internal output buffer is output. An input / output circuit and a signal sequence stored in the first input / output circuit or the second input / output circuit are input, a program selected by the program selection circuit is executed, and an output signal sequence is output to the first input / output circuit. And the program execution unit stored in the second input / output circuit.

(作用) 本発明の原理を次に示す。実現しようとするシステム
内の入出力のサンプリングレートの比を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 will be described below. When the ratio of the input / output sampling rate in the system to be realized is expressed as a: m, when a is a non-integer with respect to an integer value m, n <a <n +
The integer that becomes 1 is n. At this time, it is clear that the number of samples input while outputting only m samples is n or n + 1. Therefore, a program for the case where the ratio of the input and output sampling rates is n: m and a program for the case where n + 1: m are prepared in advance, and the number of input samples input while outputting m samples is n. Or n + 1
By selecting and executing one of the two programs depending on whether the input / output sampling rate is equal to or less than the above, it is possible to realize a system in which the input / output sampling rate ratio is a: m.

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

第1図は本発明の一実施例の構成を示す図であり、こ
の実施例は第1の割り込み入力端子1、分周回路2、第
2の割り込み入力端子3、カウンタ回路4、判定回路
5、プログラム選択回路6、第1の入出力回路7、第1
の信号入力端子8、第1の信号出力端子9、第2の入出
力回路10、第2の信号入力端子11、第2の信号出力端子
12、及びプログラム実行部13から構成されている。
FIG. 1 is a diagram showing a configuration of an embodiment of the present invention. In this embodiment, a first interrupt input terminal 1, a frequency divider 2, a second interrupt input terminal 3, a counter circuit 4, and a decision circuit 5 are shown. , Program selection circuit 6, 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 output terminal
12 and a program execution unit 13.

分周回路2は第1の割り込み入力101を予め与えられ
た数だけ分周を行ない分周された割り込み信号102を出
力する。たとえば分周回数をM(Mは整の整数)とする
と、分周回路2は第1の割り込み入力101がM回入力さ
れるごとに分周された割り込み出力を1回出力する。カ
ウンタ回路4は、分周された割り込み信号102の隣り合
う入力間隔に入力された第2の割り込み入力103の数を
数えるもので、分周された割り込み信号102をリセット
信号、第2の割り込み入力103をカウンタ入力とするア
ップカウンタにより実現できる。判定回路5は分周され
た割り込み信号102入力によりカウンタ回路4の出力104
が予め与えられた数に等しいかを判定し、判定信号105
を出力する。プログラム選択回路6は予め用意された2
種類のプログラムの一方を判定信号105に応じて選択し
て出力する。第1の入出力回路7は内部入力バッファお
よび内部出力バッファを内蔵し、第1の割り込み入力10
1により信号入力端子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 first interrupt input 101 by a predetermined number and outputs a frequency-divided interrupt signal 102. For example, assuming that the number of frequency divisions is M (M is an integer), the frequency dividing circuit 2 outputs the frequency-divided interrupt output once each time the first interrupt input 101 is input M times. The counter circuit 4 counts the number of the second interrupt inputs 103 input at adjacent input intervals of the divided interrupt signal 102, and outputs the divided interrupt signal 102 as a reset signal and a second interrupt input. This can be realized by an up counter using 103 as a counter input. The judgment circuit 5 outputs the output 104 of the counter circuit 4 in response to the divided interrupt signal 102 input.
Is equal to a predetermined number, and a determination signal 105
Is output. The program selection circuit 6 is a program
One of the types of programs is selected and output according to the determination signal 105. The first input / output circuit 7 has a built-in internal input buffer and an internal output buffer.
The signal 108 is input from the signal input terminal 8 according to 1 and stored in the internal input buffer. The signal 109 is read from the internal output buffer and output from the signal terminal 9. The second input / output circuit 10 also has a built-in internal input buffer and an internal output buffer.
And stores it in the internal input buffer, reads out the signal 112 from the internal output buffer, and outputs it to the signal output terminal 12.
The program execution unit 13 reads the input signal sequence from the internal buffers of the first input / output circuit 7 and the second input / output circuit 10 in accordance with the program selected by the program selection circuit 6, performs processing, and then outputs the output signal sequence. Is stored in the internal buffers of the first input / output circuit 7 and the second input / output circuit 10.

実施例のシグナルプロセッサにおいての入力信号の標
本化レートと出力信号の標本化レートの比をRとし、R
に対し、 が成立つとする。このとき分周回路2において第1の割
り込み入力101をM分周し、カウンタ回路4らおいてM
分周された割り込み間隔の間に入力される第2の割り込
み入力103の数を数える。この数はN(Nは整の整数)
またはN+1のいずれかになる。そこでM分周された割
り込み信号102が入力されたとき判定回路5においてカ
ウンタ回路4の出力104がNであるかの判定を行ない判
定信号105を出力する。また同時にカウンタ回路4を0
リセットする。そして、プログラム選択回路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回繰り
返すプログラムを選択してプログラム実行部13で処理さ
せる。
In the signal processor of the embodiment, the ratio between the sampling rate of the input signal and the sampling rate of the output signal is R, and R
Against Is established. At this time, the first interrupt input 101 is frequency-divided by M in the frequency dividing circuit 2 and
The number of the second interrupt inputs 103 input during the divided interrupt interval is counted. This number is N (N is an integer)
Or N + 1. Therefore, when the interrupt signal 102 divided by M is input, the determination circuit 5 determines whether the output 104 of the counter circuit 4 is N and outputs a determination signal 105. At the same time, the counter circuit 4 is set to 0.
Reset. Then, the program selection circuit 6 selects a program as follows and causes the program execution unit 13 to execute the program. First, when the determination signal 105 indicates N sample input, M samples are input to the internal input buffer of the first input / output circuit 7 and N samples are input to the internal input buffer of the second input / output circuit 10. Therefore, the program selection circuit 6 selects a program that repeats the process corresponding to the first interrupt process M times and repeats the process corresponding to the second interrupt process N times, and causes the program execution unit 13 to process the selected program. On the other hand, when the judgment signal 105 indicates N + 1 sample input, the built-in buffer of the second input / output circuit 10
Since +1 sample has been input, the program selection circuit 6 selects a program that repeats the process corresponding to the first interrupt process M times and the process corresponding to the second interrupt process N + 1 times, and selects the program execution unit 13 To process.

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

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

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

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】第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 divider circuit for dividing a first interrupt input inputted at a first sampling interval to generate a frequency-divided interrupt signal, and using the frequency-divided interrupt signal as a reset signal, A counter circuit for counting the number of second interrupt inputs input at a second sampling interval within the signal interval, and determining whether an output of the counter circuit at the time of inputting the reset signal matches a predetermined number. A determination circuit, a program selection circuit for selecting one of two programs stored in advance in accordance with an output of the determination circuit, a first internal input buffer and a first internal output buffer A first input / output circuit that stores a first input signal in the first internal input buffer in synchronization with the first interrupt input and outputs an output signal stored in the first internal output buffer; 2 internal input bus And a second internal output buffer, and stores a second input signal in the second internal input buffer in synchronization with the second interrupt input, and outputs an output signal stored in the second internal output buffer. A second input / output circuit and a signal sequence stored in the first input / output circuit or the second input / output circuit, execute a program selected by the program selection circuit, and output a signal sequence. And a program execution unit that stores the program in the first input / output circuit or 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 JPH04169936A (en) 1992-06-17
JP2884764B2 true 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
JPH04169936A (en) 1992-06-17

Similar Documents

Publication Publication Date Title
US4789927A (en) Interleaved pipeline parallel processing architecture
US4598363A (en) Adaptive delayed polling of sensors
KR100422132B1 (en) cpu task occupation ratio testing equipment of the realtime system
JP2884764B2 (en) Signal processor
US11461069B2 (en) Multi-core audio processor with deadline scheduler
JPH04322330A (en) Multirate signal processor
US6757818B1 (en) Programmable microcontroller for controlling multichannel sequences of states to be processed in each processing period
JPH0117177B2 (en)
JPH05233321A (en) Multirate signal processor
CN110851259B (en) Interrupt control method, interrupt controller, computer device and storage medium
JP2687324B2 (en) Reception buffer control method
US20050177660A1 (en) Method and system for merged rate-smoothing buffer with burst buffer
US8060729B1 (en) Software based data flows addressing hardware block based processing requirements
KR0157484B1 (en) Fade stage muting circuit having interchangeability
JPH0296429A (en) Digital frequency divider
JPH09134294A (en) Interruption control circuit
JPH03233724A (en) Repetitive processing control system
SU1083192A1 (en) Variable priority device
SU1259213A1 (en) Device for setting speed in numeric control systems
JPH02143361A (en) Processing sequence deciding circuit
SU1007099A1 (en) Number sorting device
JP2537683B2 (en) Digital data input method
JPH04192037A (en) Semiconductor integrated circuit
JPH05204598A (en) Fifo buffer circuit
JPS59212020A (en) Data delay system

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