JP2013114483A - Digital signal processor system and interruption processing method in digital signal processor system - Google Patents

Digital signal processor system and interruption processing method in digital signal processor system Download PDF

Info

Publication number
JP2013114483A
JP2013114483A JP2011260463A JP2011260463A JP2013114483A JP 2013114483 A JP2013114483 A JP 2013114483A JP 2011260463 A JP2011260463 A JP 2011260463A JP 2011260463 A JP2011260463 A JP 2011260463A JP 2013114483 A JP2013114483 A JP 2013114483A
Authority
JP
Japan
Prior art keywords
interrupt
dsp
external
external interrupt
processing
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
JP2011260463A
Other languages
Japanese (ja)
Inventor
Noriyuki Ogawa
憲之 小川
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2011260463A priority Critical patent/JP2013114483A/en
Publication of JP2013114483A publication Critical patent/JP2013114483A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem that a DSP cannot process an external interruption on a DSP card.SOLUTION: According to one embodiment, a digital signal processor system 10 includes an interruption control unit 18 for outputting a notice of interruption generation by input of a plurality of interruption requests that are generated on a first data bus 16 or second data buses 20 and 26 and have different generation causes, a first DSP 21 for executing a signal processing operation, and a second DSP 22 for performing determination processing of selecting an external interruption request of the highest priority by respective priority orders and external interruption processing corresponding to the external interruption request. The second DSP 22 repeats the determination processing and the external interruption processing within one period, and ends the processing of the external interruption request of the highest priority among one or more asynchronous external interruption requests in a plurality of other periods in each of the other periods.

Description

一実施形態はディジタルシグナルプロセッサシステム(DSP)およびディジタルシグナルプロセッサシステムにおける割込み処理方法に関する。   One embodiment relates to a digital signal processor system (DSP) and an interrupt processing method in the digital signal processor system.

パソコンに用いられるCPUは使用可能なメモリ容量が大きい。CPUは基本ソフトウェア(以下、OSと呼ぶ)による割込み処理を行う。CPUを対象とした高速割込み応答を実現する技術が知られている(例えば特許文献1、2参照)。   A CPU used in a personal computer has a large usable memory capacity. The CPU performs interrupt processing by basic software (hereinafter referred to as OS). A technique for realizing a high-speed interrupt response for a CPU is known (see, for example, Patent Documents 1 and 2).

DSPは信号処理に特化した様々な機能を有しているため、従来ハードウェアで構成されていた多くの信号処理機能をソフトウェア化している。通常、DSPが使用可能なメモリ資源はCPUのそれと比べて乏しいため、DSPは、CPUのようにOSを利用することや、複雑な処理を実行することができない。このため、DSPが行う信号処理は、ディジタルフィルタ処理やFFT処理などの固定した信号処理を各DSPに割付け、DSP間は専用の高速通信を用いて接続する分散方式のDSP構成や、巡回的並列処理又はラウンドロビン方式のDSP構成を取って行われている(例えば特許文献3参照[図14、図15])。   Since the DSP has various functions specialized for signal processing, many signal processing functions that have been conventionally configured by hardware are converted into software. Usually, since the DSP can use fewer memory resources than the CPU, the DSP cannot use the OS or execute complicated processing like the CPU. For this reason, the signal processing performed by the DSP allocates fixed signal processing such as digital filter processing and FFT processing to each DSP, and the DSP is connected to each other using dedicated high-speed communication. Processing or a round robin DSP configuration is used (see, for example, Patent Document 3 [FIGS. 14 and 15]).

信号処理システムでは、システム全体のタイミングに同期してこのシステムの構成要素が処理を行う。DSPカードは、多種多様な複数の割込みについて、応答制御を行う必要がある。DSPには割込みコントローラを含めて必要な装置が全て用意されており、自IC内で発生する内部割込みについては処理を行える。しかしDSPによる演算処理の適用分野が拡大してきている。この拡大に伴ってVMEバスやPCIバスなど公知規格を有するデータバスをDSPカードに配線し、例えばバスプロトコル変換機能を持つICを介してVMEバス経由で他のDSPカードからの割込みや、あるいはPCIバス経由でCPUからの割込みをDSPが受信処理する信号処理システムが提案されている(例えば特許文献4参照)。   In the signal processing system, the system components perform processing in synchronization with the timing of the entire system. The DSP card needs to perform response control for a wide variety of interrupts. The DSP has all necessary devices including an interrupt controller, and can process internal interrupts that occur in its own IC. However, the field of application of arithmetic processing by DSP is expanding. Along with this expansion, a data bus having a known standard such as a VME bus or a PCI bus is wired to the DSP card, for example, an interrupt from another DSP card via the VME bus via an IC having a bus protocol conversion function, or a PCI There has been proposed a signal processing system in which a DSP receives and processes an interrupt from a CPU via a bus (see, for example, Patent Document 4).

DSPは使用できるメモリの容量が小さいことから、DSP単体は単純で固定的な処理を割当て、複数個のDSPをまとめたDSPカードという単位で、必要な処理を実現させている。従って、DSPカード上の割込み発生源はDSPIC自身であり、DSPIC外部からの割込みの発生源が存在しない。   Since the DSP has a small memory capacity, a simple DSP is assigned a fixed process, and necessary processes are realized in units of a DSP card in which a plurality of DSPs are collected. Therefore, the interrupt source on the DSP card is the DSPIC itself, and there is no interrupt source from outside the DSPIC.

特開平7−6038号公報Japanese Patent Laid-Open No. 7-6038 特開2000−284973号公報JP 2000-284773 A 特開2009−020573号公報JP 2009-020573 A 特開2010−244174号公報JP 2010-244174 A

しかし、PCIバスなどを配線したDSPカードでは、このDSPカード上のDSPがDSP以外の割込み発生源からの外部割込みを処理する必要がある。互いに非同期な複数の外部割込要求がPCIバスからDSPカードに入力されたとき、このDSPカードは、PCIバスからの高速応答を要する割込みも、外部バス上のシリアル通信装置(UART)などからの高速応答が不要な割込みも、同一レベルで扱っている。このため、非同期かつ複数の割込み発生に対してDSPカードは適切な割込応答を行えない。   However, in a DSP card wired with a PCI bus or the like, it is necessary for the DSP on the DSP card to process an external interrupt from an interrupt source other than the DSP. When a plurality of external interrupt requests that are asynchronous with each other are input from the PCI bus to the DSP card, the DSP card also receives an interrupt requiring a high-speed response from the PCI bus from a serial communication device (UART) on the external bus. Interrupts that do not require a fast response are handled at the same level. For this reason, the DSP card cannot make an appropriate interrupt response to asynchronous and multiple interrupts.

このような課題を解決するため、一実施形態によれば、第1データバスと、それぞれこの第1データバスにバスインターフェースを介して接続された複数の第2データバスと、前記第1データバス又は前記第2データバス上に発生し発生要因が異なる複数の割込要求の割込み要因を持つ一種以上の割込要求の入力により割込発生の通知を出力し、前記第1データバスおよび前記複数の第2データバスに接続された割込み制御部と、この割込み制御部から出力される信号処理対象のデータの受信割込発生によってこのデータに対して信号処理演算を実行する少なくとも一つの第1DSPと、前記割込み制御部からの前記通知によりDSP外からの複数の外部割込要求のうち最も優先度の高い外部割込要求を各優先順位により選択する判定処理、およびこの外部割込要求に対応する前記割込みハンドラの実行による外部割込み処理を行う第2DSPと、を備え、この第2DSPは一つの期間内で前記判定処理および前記外部割込み処理を繰返し、複数の他の期間において一つ以上の非同期な外部割込要求のうち前記最も優先度の高い外部割込要求の処理をこれらの他の期間毎に終わらせることを特徴とするディジタルシグナルプロセッサシステムが提供される。   In order to solve such a problem, according to one embodiment, a first data bus, a plurality of second data buses respectively connected to the first data bus via a bus interface, and the first data bus Alternatively, an interrupt generation notification is output by inputting one or more interrupt requests having interrupt factors of a plurality of interrupt requests that are generated on the second data bus and having different generation factors, and the first data bus and the plurality of interrupt requests are output. An interrupt control unit connected to the second data bus, and at least one first DSP for performing signal processing operations on the data by generating a reception interrupt of the data to be processed output from the interrupt control unit; A determination process for selecting an external interrupt request having the highest priority among a plurality of external interrupt requests from outside the DSP by the notification from the interrupt control unit according to each priority order; And a second DSP that performs external interrupt processing by executing the interrupt handler corresponding to the external interrupt request, and the second DSP repeats the determination processing and the external interrupt processing within one period, A digital signal processor system is provided in which processing of the highest priority external interrupt request among one or more asynchronous external interrupt requests is terminated in each of these other periods. .

また、別の一実施形態によれば、(a)第1データバスあるいはそれぞれこの第1データバスにバスインターフェースを介して接続された複数の第2データバス上に発生し発生要因が異なる複数の割込要求の割込み要因を持つ一種以上の割込要求の入力により割込発生の通知を出力し、(b)前記第2データバス上の第2DSPが、一つの期間内において前記通知によりDSP外からの複数の外部割込要求のうち最も優先度の高い外部割込要求を各優先順位により選択する判定処理と、この外部割込要求に対応する前記割込みハンドラの実行による外部割込み処理とを前記期間が満了するまで繰返し、(c)前記第2DSPが、複数の他の期間内での一つ以上の非同期な外部割込要求のうち前記最も優先度の高い外部割込要求の処理をこれらの他の期間毎に終わらせることを特徴とするディジタルシグナルプロセッサシステムにおける割込み処理方法が提供される。   According to another embodiment, (a) a plurality of different generation factors that are generated on a first data bus or a plurality of second data buses connected to the first data bus via a bus interface. An interrupt generation notification is output by inputting one or more interrupt requests having an interrupt request interrupt factor, and (b) the second DSP on the second data bus is outside the DSP by the notification within one period. Determination processing for selecting the highest priority external interrupt request among the plurality of external interrupt requests from each priority, and external interrupt processing by execution of the interrupt handler corresponding to the external interrupt request (C) the second DSP performs processing of the highest priority external interrupt request among one or more asynchronous external interrupt requests in a plurality of other periods. Interrupt processing method in a digital signal processor system, characterized in that to end for each other period is provided.

実施の形態に係るディジタルシグナルプロセッサシステムのブロック図である。1 is a block diagram of a digital signal processor system according to an embodiment. 実施の形態に係るディジタルシグナルプロセッサシステムにおける複数種類の割込み要因、割込み制御部及び第2DSP間の接続関係を示す図である。It is a figure which shows the connection relationship between multiple types of interrupt factors, the interrupt control part, and 2nd DSP in the digital signal processor system which concerns on embodiment. 実施の形態に係るディジタルシグナルプロセッサシステムに用いられる第2DSPによる起動処理を説明するためのフローチャートである。It is a flowchart for demonstrating the starting process by 2nd DSP used for the digital signal processor system which concerns on embodiment. 実施の形態に係るディジタルシグナルプロセッサシステムによる外部割込み処理を説明するためのフローチャートである。It is a flowchart for demonstrating the external interruption process by the digital signal processor system which concerns on embodiment. 実施の形態に係るディジタルシグナルプロセッサシステムによる外部割込み処理のタイムチャートの一例を示す図である。It is a figure which shows an example of the time chart of the external interruption process by the digital signal processor system which concerns on embodiment. 実施の形態に係るディジタルシグナルプロセッサシステムが行う判定処理に用いられるレジスタ群の一例を示す図である。It is a figure which shows an example of the register group used for the determination process which the digital signal processor system which concerns on embodiment performs.

以下、実施の形態に係るディジタルシグナルプロセッサおよびディジタルシグナルプロセッサにおける割込み処理方法について、図1乃至図6を参照しながら説明する。尚、各図において同一箇所については同一の符号を付すとともに、重複した説明は省略する。   Hereinafter, a digital signal processor according to an embodiment and an interrupt processing method in the digital signal processor will be described with reference to FIGS. In the drawings, the same portions are denoted by the same reference numerals, and redundant description is omitted.

一実施形態に係るディジタルシグナルプロセッサシステムはレーダ装置から周期的に到来する受信信号の信号処理システムであり、それぞれ複数個のDSPを搭載した複数枚のDSPカードにより実行される。一実施形態に係るディジタルシグナルプロセッサシステムにおける割込み処理方法は信号処理システムにおける外部割込み受信処理方法である。この外部割込み受信処理方法は、レーダ装置からの受信完了割込みや、デバッグ用表示データの送信完了割込み、及びCPUボードといった上位装置からの送受信割込みなどの互いに非同期に発生する複数種類の割込要求信号を、このDSPカード上のDSPが受信し、割込み制御を行って処理する方法である。   A digital signal processor system according to an embodiment is a signal processing system for received signals that periodically arrive from a radar apparatus, and is executed by a plurality of DSP cards each equipped with a plurality of DSPs. An interrupt processing method in a digital signal processor system according to an embodiment is an external interrupt reception processing method in a signal processing system. This external interrupt reception processing method has a plurality of types of interrupt request signals that are generated asynchronously, such as a reception completion interrupt from a radar device, a debug display data transmission completion interrupt, and a transmission / reception interrupt from a host device such as a CPU board. Is received by the DSP on the DSP card and processed by interrupt control.

図1は信号処理システムのブロック図である。信号処理システム10は、基本周期毎にレーダ波の受信信号を出力するレーダ装置11と、このレーダ装置11からの受信信号をA/D(アナログtoディジタル)変換するA/D変換器12と、このA/D変換器12からの受信ディジタル信号に対しそれぞれDSPプログラムによって信号処理演算を行うM枚のDSPカード13と、これらのDSPカード13間を接続するVMEバス14と、VMEバス14に接続され各DSPカード13の動作を制御するCPUカード15とを備えている。   FIG. 1 is a block diagram of a signal processing system. The signal processing system 10 includes a radar device 11 that outputs a received signal of a radar wave for each basic period, an A / D converter 12 that performs A / D (analog to digital) conversion on the received signal from the radar device 11, and The M DSP cards 13 that perform signal processing operations on the received digital signals from the A / D converter 12 according to the DSP program, the VME bus 14 that connects these DSP cards 13, and the VME bus 14 are connected. And a CPU card 15 for controlling the operation of each DSP card 13.

レーダ装置11は例えば50μsec〜10msecの基本周期毎に繰返して受信信号を出力する。一基本周期とはレーダ装置が送信、受信をそれぞれ1回行うための時間に実質等しい。A/D変換器12は、受信アナログ信号からディジタルビット列を出力し、高速に流れかつ大量のシリアルビット列をDSPカード13へ送込む。   The radar apparatus 11 outputs a reception signal repeatedly for every basic period of, for example, 50 μsec to 10 msec. One basic period is substantially equal to the time required for the radar apparatus to perform transmission and reception once. The A / D converter 12 outputs a digital bit string from the received analog signal, flows at a high speed, and sends a large number of serial bit strings to the DSP card 13.

複数枚のDSPカード13はそれぞれ基本周期に応じて計算時間を割当てられており、各計算時間内にそれぞれの信号処理演算を完了させるようにしている。これらのDSPカード13は受信データ列を1ビットも取りこぼさずに信号処理演算を実行する。   Each of the plurality of DSP cards 13 is assigned a calculation time according to the basic period, and each signal processing operation is completed within each calculation time. These DSP cards 13 execute signal processing operations without dropping even one bit of the received data string.

一枚目のDSPカード13は、PCIバス16(第1データバス)と、このPCIバス16に接続されたバスプロトコル変換機能部19(バスインターフェース)と、それぞれPCIバス16にバスプロトコル変換機能部19を介して接続されたデータバス20、26(複数の第2データバス)と、PCIバス16又はデータバス26上に発生し発生要因が異なる複数の割込み要因を持つ一種以上の割込要求の入力により割込発生の通知を出力する外部割込み制御装置18(割込み制御部)と、データバス20上の複数個のDSP21(第1DSP)と、同じくデータバス20に接続され主に外部割込み処理を実行するDSP22(第2DSP)とを備えている。   The first DSP card 13 includes a PCI bus 16 (first data bus), a bus protocol conversion function unit 19 (bus interface) connected to the PCI bus 16, and a bus protocol conversion function unit connected to the PCI bus 16, respectively. One or more interrupt requests having a plurality of interrupt factors that are generated on the PCI bus 16 or the data bus 26 and different from the data buses 20 and 26 (a plurality of second data buses) connected via the bus 19 An external interrupt control device 18 (interrupt control unit) that outputs a notification of occurrence of an interrupt by input, a plurality of DSPs 21 (first DSPs) on the data bus 20, and is also connected to the data bus 20 and mainly performs external interrupt processing. DSP 22 (second DSP) to be executed.

更にDSPカード13は、DSP21、22の内部プログラムの実行結果をこれらのDSP21、22から信号線23を介してパソコン24へ送る汎用のシリアル通信装置25と、このシリアル通信装置25、バスプロトコル変換機能部19及び外部割込み制御装置18を収容する別のデータバス26(第2データバス)と、このデータバス26を介してDSP21、22用の起動プログラムを保持するフラッシュROM27とを備えている。外部割込みとはDSP21、22内部で発生する内部割込みと異なるDSP外からの割込み要求を指す。   Further, the DSP card 13 is a general-purpose serial communication device 25 for sending the execution results of the internal programs of the DSPs 21 and 22 from the DSPs 21 and 22 to the personal computer 24 via the signal line 23, and the serial communication device 25 and the bus protocol conversion function. Another data bus 26 (second data bus) that accommodates the unit 19 and the external interrupt control device 18, and a flash ROM 27 that holds a startup program for the DSPs 21 and 22 via the data bus 26. The external interrupt refers to an interrupt request from outside the DSP that is different from the internal interrupt generated inside the DSPs 21 and 22.

PCIバス16及びデータバス20上には複数種類の割込発生源が物理的に配置されている。割込発生源としてDSPカード13は、シリアルデータの入出力完了時に割込みを発生させる上記シリアル通信装置25と、A/D変換器12からの受信データの受信完了時に割込みを発生させる高速シリアル通信装置28と、CPUカード15及びDSPカード13間の信号の送受信完了時に割込みを発生させるPCI−VMEブリッジ装置29とを備えている。   A plurality of types of interrupt generation sources are physically arranged on the PCI bus 16 and the data bus 20. As an interrupt generation source, the DSP card 13 includes the serial communication device 25 that generates an interrupt when input / output of serial data is completed, and a high-speed serial communication device that generates an interrupt when reception of received data from the A / D converter 12 is completed. 28 and a PCI-VME bridge device 29 that generates an interrupt when transmission / reception of signals between the CPU card 15 and the DSP card 13 is completed.

シリアル通信装置25はUART(Universal Asynchronous Receiver Transmitter)機能を持つICである。シリアル通信装置25はDSP21、22が実行するDSPプログラムのソースコードに埋込まれたプリント文の文字列を出力する。シリアル通信装置25はパソコン24のRS−232Cインターフェース等により低速のシリアルビット列を送信する。   The serial communication device 25 is an IC having a UART (Universal Asynchronous Receiver Transmitter) function. The serial communication device 25 outputs a character string of a print sentence embedded in the source code of the DSP program executed by the DSPs 21 and 22. The serial communication device 25 transmits a low-speed serial bit string through the RS-232C interface of the personal computer 24 or the like.

高速シリアル通信装置28は割込み要求を出したとき又はその直後に受信データを揮発性の外部記憶装置30に書込む。高速シリアル通信装置28は予め決められた個数のビット列を受信すると、一回の受信完了割込みを出力する。DSPカード13はこのDSPカード13上に発生した複数の外部割込み要求のうち、この高速シリアル通信装置28からの受信データを最も重要なデータとして取扱い、ビット落ちを起こさせずにこの受信データを蓄積するようにしている。高速シリアル通信装置28による受信完了割込みの出力を契機として、DSP21群は一回の信号処理演算を行うようにしている。受信データに対する外部割込み間隔が、レーダ装置11側の一基本周期に合うようにDSPカード上での処理タイミングが合わせられている。   The high-speed serial communication device 28 writes the received data to the volatile external storage device 30 when an interrupt request is issued or immediately after that. When the high-speed serial communication device 28 receives a predetermined number of bit strings, it outputs a single reception completion interrupt. Of the plurality of external interrupt requests generated on the DSP card 13, the DSP card 13 treats the received data from the high-speed serial communication device 28 as the most important data, and accumulates the received data without causing bit dropping. Like to do. With the reception completion interrupt output from the high-speed serial communication device 28, the DSP 21 group performs a single signal processing operation. The processing timing on the DSP card is adjusted so that the external interrupt interval for the received data matches one basic period on the radar device 11 side.

PCI−VMEブリッジ装置29は、VMEバス14及びDSPカード13間の転送割込みを発生させる。PCI−VMEブリッジ装置29はCPUカード15上のCPU31からDSPカード13に対して送られた動作制御用の制御信号を受信する。一方DSPカード13からCPUカード15へはバスプロトコル変換機能部19がデータを転送する。   The PCI-VME bridge device 29 generates a transfer interrupt between the VME bus 14 and the DSP card 13. The PCI-VME bridge device 29 receives a control signal for operation control sent from the CPU 31 on the CPU card 15 to the DSP card 13. On the other hand, the bus protocol conversion function unit 19 transfers data from the DSP card 13 to the CPU card 15.

また、DSPカード13は、他の割込発生源としてバスプロトコル変換機能部19内に設けられたユーティリティプログラムのウォッチドッグタイマ、温度センサ及び電源監視センサなどを備えてもよい。温度センサは環境温度が上限を越えたときに割込みを上げる。電源監視センサは電源電圧値が閾値を下回ったときに割込みを上げる。   The DSP card 13 may include a utility program watchdog timer, a temperature sensor, a power supply monitoring sensor, and the like provided in the bus protocol conversion function unit 19 as other interrupt generation sources. The temperature sensor raises an interrupt when the ambient temperature exceeds the upper limit. The power supply monitoring sensor raises an interrupt when the power supply voltage value falls below the threshold value.

外部割込み制御装置18は割込発生通知用の端子33を有する。外部割込み制御装置18は割込み要因を持つ一種以上の割込要求を受信すると、端子33から割込発生を通知する。外部割込み制御装置18の機能はFPGAにより実現される。   The external interrupt control device 18 has a terminal 33 for interrupt generation notification. When the external interrupt control device 18 receives one or more interrupt requests having an interrupt factor, the external interrupt control device 18 notifies an interrupt occurrence from the terminal 33. The function of the external interrupt control device 18 is realized by an FPGA.

図2は実施形態に係るディジタルシグナルプロセッサシステムにおける複数例えば32種類の割込み要因、外部割込み制御装置18及びDSP22間の接続関係を示す図である。既述の符号はそれらと同じ要素を表す。INT0〜INT31はDSP外の複数の割込発生源による外部割込要求信号名を表す。例えばINT0〜INT3はPCIバス16用である。INT4〜INT10はVMEバス14用である。INT11〜INT31はシリアル通信装置25や、タイマ割込み、温度センサ、電源監視センサからの割込み等に用いられる。同図の例では最大32種類まで外部割込み要求を外部割込み制御装置18は入力可能になっている。外部割込み制御装置18は、何れかの割込み発生源から入力があった場合、DSP22へ外部割込み発生を通知する。   FIG. 2 is a diagram showing a connection relationship among a plurality of, for example, 32 types of interrupt factors, the external interrupt control device 18 and the DSP 22 in the digital signal processor system according to the embodiment. The above described symbols represent the same elements. INT0 to INT31 represent external interrupt request signal names by a plurality of interrupt generation sources outside the DSP. For example, INT0 to INT3 are for the PCI bus 16. INT4 to INT10 are for the VME bus 14. INT11 to INT31 are used for interruption from the serial communication device 25, timer interruption, temperature sensor, power supply monitoring sensor, and the like. In the example shown in the figure, the external interrupt control device 18 can input up to 32 types of external interrupt requests. When there is an input from any interrupt generation source, the external interrupt control device 18 notifies the DSP 22 of the occurrence of an external interrupt.

外部割込み制御装置18は、内部に割込みマスクレジスタ34を持ち、この割込みマスクレジスタ34により割込み応答の可否を制御可能になっている。外部割込み制御装置18は内部に割込みステータスレジスタ35を持つ。この割込みステータスレジスタ35により外部割込み制御部18は割込み要因を特定し、割込み発生源をDSP22へ通知可能になっている。外部割込み制御装置18は割込み処理が終了したかどうかを識別する割込みEOI(End Of Interrupt)レジスタ36を持ち、この割込みEOIレジスタ36により割込み発生源毎に割込み処理を終了させるようにしている。これらの割込みマスクレジスタ34、割込みステータスレジスタ35、割込みEOIレジスタ36により、外部割込み制御装置18は複数の外部割込みの入力信号のOR結果をDSP22へ通知可能になっている。   The external interrupt control device 18 has an interrupt mask register 34 inside, and the interrupt mask register 34 can control whether or not an interrupt response is possible. The external interrupt control device 18 has an interrupt status register 35 inside. The interrupt status register 35 allows the external interrupt control unit 18 to specify the interrupt factor and notify the DSP 22 of the interrupt generation source. The external interrupt control device 18 has an interrupt EOI (End Of Interrupt) register 36 for identifying whether or not the interrupt processing is completed, and the interrupt EOI register 36 terminates the interrupt processing for each interrupt generation source. With these interrupt mask register 34, interrupt status register 35, and interrupt EOI register 36, the external interrupt control device 18 can notify the DSP 22 of the OR results of a plurality of external interrupt input signals.

割込みマスクレジスタ34、割込みステータスレジスタ35、及び割込みEOIレジスタ36は、同じビット割付けパターンを有する。例えばそれぞれが割込発生源を表す32ビットのハードウェアレジスタをレジスタ34〜36(割込みマスクレジスタ34、割込みステータスレジスタ35、割込みEOIレジスタ36)は用いる。LSBがINT0であり、MSBがINT31を表すように割付けされる。ビット値ハイが割込要求有りを示しビット値ローが割込要求無しを示す。   The interrupt mask register 34, the interrupt status register 35, and the interrupt EOI register 36 have the same bit allocation pattern. For example, the registers 34 to 36 (the interrupt mask register 34, the interrupt status register 35, and the interrupt EOI register 36) use 32-bit hardware registers each representing an interrupt generation source. LSB is INT0 and MSB is assigned to represent INT31. A bit value high indicates an interrupt request is present and a bit value low indicates no interrupt request.

これらのレジスタ34〜36を用いて、外部割込み制御装置18は、32本の信号が並列入力される端子37群の値を取込みしている。   Using these registers 34 to 36, the external interrupt control device 18 takes in the value of the terminal group 37 to which 32 signals are input in parallel.

また、DSP21、22には何れも端子38が設けられている。端子38はメーカ仕様により予めICに設けられた端子である。外部割込み制御装置18が一個のDSPICの端子38を外部割込みの入力端子として使うことにより、DSP22は外部割込み処理用に動作可能にされる。   The DSPs 21 and 22 are each provided with a terminal 38. The terminal 38 is a terminal provided in advance in the IC according to manufacturer specifications. When the external interrupt control device 18 uses the terminal 38 of one DSPIC as an input terminal for external interrupt, the DSP 22 is enabled for external interrupt processing.

図1のバスプロトコル変換機能部19は互いにバス幅やデータ転送単位が異なるPCIバス16、データバス20、26、42の間で、これらのバスのプロトコルに応じてデータをプロトコル変換してから転送する。DSPカード13が値データ又は制御データをCPUカード15へ転送する場合、バスプロトコル変換機能部19内のDMAコントローラ32が外部記憶装置30から値データ又は制御データを読出して、読出したデータをCPUカード15へ転送するようにしている。データバス20は全部でN個のDSP21、22を収容する内部バスである。データバス26はシリアル通信装置25を収容する内部バスである。外部記憶装置30は例えばページメモリのような大容量のメモリである。データバス42は内部バスである。   The bus protocol conversion function unit 19 in FIG. 1 transfers data after converting the protocol between the PCI bus 16 and the data buses 20, 26, and 42 having different bus widths and data transfer units according to the protocols of these buses. To do. When the DSP card 13 transfers the value data or control data to the CPU card 15, the DMA controller 32 in the bus protocol conversion function unit 19 reads the value data or control data from the external storage device 30, and the read data is stored in the CPU card. 15 is transferred. The data bus 20 is an internal bus that accommodates N DSPs 21 and 22 in total. The data bus 26 is an internal bus that accommodates the serial communication device 25. The external storage device 30 is a large-capacity memory such as a page memory. The data bus 42 is an internal bus.

信号処理演算用のDSP21は外部割込み制御装置18から出力される信号処理対象のデータの受信割込発生によってこのデータに対して信号処理演算を実行する。DSP21は小容量の記憶領域を有する内部メモリ40と、データをDMA転送するDMAコントローラ41とを有する。内部メモリ40はプログラム及びデータを格納する。DMAコントローラ41はこの内部メモリ40へフラッシュROM27から実行ファイルを取込み実行する。DMAコントローラ41は実行結果のうち必要な結果を外部記憶装置30に書込む。   The DSP 21 for signal processing operation executes signal processing operation on this data by generating a reception interrupt of the data to be processed output from the external interrupt control device 18. The DSP 21 has an internal memory 40 having a small-capacity storage area and a DMA controller 41 for DMA transfer of data. The internal memory 40 stores programs and data. The DMA controller 41 loads the execution file from the flash ROM 27 into the internal memory 40 and executes it. The DMA controller 41 writes necessary results out of the execution results to the external storage device 30.

外部割込み処理用のDSP22も内部メモリ40及びDMAコントローラ41を備える。DSP22はこれらのDSP21が演算中、判定処理と外部割込み処理とを実行する。判定処理とは、端子38からの通知信号により一種以上の外部割込要求のうち最も優先度の高い外部割込要求を各優先順位により選択する処理を指す。   The DSP 22 for external interrupt processing also includes an internal memory 40 and a DMA controller 41. The DSP 22 executes a determination process and an external interrupt process while these DSPs 21 are calculating. The determination process refers to a process of selecting an external interrupt request having the highest priority among the one or more types of external interrupt requests based on a priority signal according to a notification signal from the terminal 38.

DSPカード13は、複数N個のDSP21、22から構成されていることから、ブート対象のDSP21、22は1個または複数個存在する。2枚目からM枚目の各DSPカード13の構成は1枚目のDSPカード13の構成と同じである。   Since the DSP card 13 includes a plurality of N DSPs 21 and 22, one or a plurality of DSPs 21 and 22 to be booted exist. The configuration of each of the second to M-th DSP cards 13 is the same as the configuration of the first DSP card 13.

構造について述べると、信号処理システム10は箱状のシャーシに組込まれている。信号処理システム10は、シャーシと、このシャーシ内面上にVMEバス14を布線したバックプレーンと、それぞれこのバックプレーン上に列設された複数個のスロットと、最左端側のスロットに差込まれた1枚のCPUカード15と、それぞれこのCPUカード15が差込まれたスロット以外のスロットに差込まれたM枚のDSPカード13とを備えて構成されている。各DSPカード13上にPCIバス拡張用のコネクタが設けられ、複数種類の内部バス線がカード基板上に配線されている。   Regarding the structure, the signal processing system 10 is incorporated in a box-shaped chassis. The signal processing system 10 is inserted into a chassis, a backplane in which a VME bus 14 is wired on the inner surface of the chassis, a plurality of slots arranged on the backplane, and a leftmost slot. The CPU card 15 and the M DSP cards 13 inserted into slots other than the slot into which the CPU card 15 is inserted, respectively. A PCI bus expansion connector is provided on each DSP card 13, and a plurality of types of internal bus lines are wired on the card substrate.

上述の構成の信号処理システム10が起動されると、一枚目のDSPカード13上のDSP21、DSP22の各DMAコントローラ41はプログラムを内部メモリ40に転送する。プログラムの記述によりDSP21はスレーブDSPとして機能し、DSP22はマスタDSPとして機能する(以下、DSP22をマスタDSP22と呼び、各DSP21をスレーブDSP21と呼ぶことがある)。   When the signal processing system 10 having the above-described configuration is activated, each DMA controller 41 of the DSP 21 and DSP 22 on the first DSP card 13 transfers the program to the internal memory 40. The DSP 21 functions as a slave DSP and the DSP 22 functions as a master DSP (hereinafter, the DSP 22 may be referred to as a master DSP 22 and each DSP 21 may be referred to as a slave DSP 21).

DSPカード13内における、ブート手順のフローチャートを図3に示す。図3は実施形態に係るディジタルシグナルプロセッサシステムに用いられるマスタDSP22による起動処理を説明するためのフローチャートである。   A flowchart of the boot procedure in the DSP card 13 is shown in FIG. FIG. 3 is a flowchart for explaining start-up processing by the master DSP 22 used in the digital signal processor system according to the embodiment.

ステップA1において、マスタDSP22へ電源が投入される。ステップA2において、マスタDSP22は、フラッシュROM27からプログラムを、内部メモリ40へロードする。ステップA3において、予め決められた情報に基づき、外部割込みを受信するため割込みマスクレジスタ34をマスタDSP22は設定する。あるいは外部割込み制御装置18が必要なマスクを解除設定する。   In step A1, power is turned on to the master DSP 22. In step A <b> 2, the master DSP 22 loads a program from the flash ROM 27 into the internal memory 40. In step A3, the master DSP 22 sets the interrupt mask register 34 to receive an external interrupt based on predetermined information. Alternatively, the external interrupt control device 18 cancels and sets a necessary mask.

割込要求信号INT0〜INT31のうち、一例として、INT0、INT4、INT11及びINT14等を信号処理システム10は使っている。これらのINT0等に対応する割込みマスクレジスタ34のビットのマスクを外部割込み制御装置18は解除する。図6(a)は割込みマスクレジスタ34のマスク例を示す図である。外部割込み制御装置18は、PCIバス16用に割当てしているINT0〜INT3のうちINT0のマスクを高速シリアル通信装置28用に解除する。外部割込み制御装置18は、INT4〜INT10のうちINT4のマスクをPCI−VMEブリッジ装置29用に解除し、INT11のマスクをシリアル通信装置25用に解除する。外部割込み制御装置18は、例えばINT14〜INT17などにタイマ割込みや、温度センサや、電源監視センサからの割込みのビットを割付けし、これらのビットのマスクを解除してもよい。   Of the interrupt request signals INT0 to INT31, for example, the signal processing system 10 uses INT0, INT4, INT11, INT14, and the like. The external interrupt controller 18 cancels the masking of the bits of the interrupt mask register 34 corresponding to these INT0 and the like. FIG. 6A is a diagram showing a mask example of the interrupt mask register 34. The external interrupt control device 18 releases the mask of INT0 among INT0 to INT3 assigned to the PCI bus 16 for the high-speed serial communication device 28. The external interrupt control device 18 cancels the mask of INT4 among INT4 to INT10 for the PCI-VME bridge device 29 and cancels the mask of INT11 for the serial communication device 25. The external interrupt control device 18 may assign interrupt bits from timer interrupts, temperature sensors, and power supply monitoring sensors to INT14 to INT17, for example, and cancel the mask of these bits.

ステップA4においてマスタDSP22はスレーブDSP21とともに演算処理を実行する。各スレーブDSP21はプログラムの計算命令にしたがって割当てられたDSPソフトウェアの演算処理を開始する。例えばディジタルフィルタ処理やFFT処理などの演算を各スレーブDSP21が実行する。   In step A4, the master DSP 22 executes arithmetic processing together with the slave DSP 21. Each slave DSP 21 starts arithmetic processing of DSP software assigned in accordance with a program calculation instruction. For example, each slave DSP 21 executes operations such as digital filter processing and FFT processing.

この演算処理の実行中、ステップA5においてマスタDSP22は上位装置としてのCPU31から終了指令を受けたかどうかを判定している。ステップA5においてマスタDSP22が終了指令を受けない間、NOルートを通り、マスタDSP22は演算処理を続ける(ステップA4)。ステップA5において、マスタDSP22が終了指令を受けると、YESルートを通り、ステップA6においてマスタDSP22は終了処理を行う。マスタDSP22は、フラッシュROM27からプログラムを起動した後、演算処理を実行し、外部割込みの発生に併せて割込み処理を行える状態にされる。   During execution of this arithmetic processing, in step A5, the master DSP 22 determines whether or not an end command has been received from the CPU 31 as the host device. While the master DSP 22 does not receive an end command in step A5, the master DSP 22 continues the arithmetic processing through the NO route (step A4). In step A5, when the master DSP 22 receives the termination command, the YES route is passed, and in step A6, the master DSP 22 performs termination processing. After starting the program from the flash ROM 27, the master DSP 22 executes arithmetic processing and is ready to perform interrupt processing in conjunction with the generation of an external interrupt.

次に、マスタDSP22における、外部割込み処理を図4、図5に示す。図4はマスタDSP22による外部割込み処理を説明するためのフローチャートである。図5はマスタDSP22による外部割込み処理のタイムチャートの一例を示す図である。図5ではDSPカード13内で、割込み(外部割込み要求)1,2,3が発生した例で説明する。割込み優先度は、割込み1>割込み2>割込み3とする。具体例として、割込み1は図1の(2)のように高速シリアル通信装置28の受信完了割込みを表す。割込み2は同図中(1)のようにCPU31からPCI−VMEブリッジ装置29への転送割込みを表す。割込み3は同図中(5)のようにシリアル通信装置25の送信完了割込みを表す。   Next, external interrupt processing in the master DSP 22 is shown in FIGS. FIG. 4 is a flowchart for explaining external interrupt processing by the master DSP 22. FIG. 5 is a diagram showing an example of a time chart of external interrupt processing by the master DSP 22. FIG. 5 illustrates an example in which interrupts (external interrupt requests) 1, 2, and 3 are generated in the DSP card 13. The interrupt priority is interrupt 1> interrupt 2> interrupt 3. As a specific example, interrupt 1 represents a reception completion interrupt of the high-speed serial communication device 28 as shown in (2) of FIG. Interrupt 2 represents a transfer interrupt from the CPU 31 to the PCI-VME bridge device 29 as indicated by (1) in FIG. Interrupt 3 represents a transmission completion interrupt of the serial communication device 25 as indicated by (5) in FIG.

ステップB1において図1の(3)のように外部割込み制御部18は外部割込みの発生を入力される。このステップB1において、同図中の(4)のように、マスタDSP22は外部割込み制御装置18から端子38を介して外部割込み信号を通知される。マスタDSP22は続くステップB2〜ステップB4の外部割込み処理を実行する。まず、ステップB2においてマスタDSP22は割込みステータスレジスタ35をリードする。このリード処理を開始する時点ではDSPカード13の割込み発生状態は図5(a)の状態にある。図5(a)に示すように、時刻t0において割込み1、割込み3が発生しているとする。   In step B1, as shown in (3) of FIG. 1, the external interrupt control unit 18 receives the generation of an external interrupt. In step B1, the master DSP 22 is notified of an external interrupt signal from the external interrupt control device 18 via the terminal 38, as indicated by (4) in FIG. The master DSP 22 executes external interrupt processing in subsequent steps B2 to B4. First, in step B2, the master DSP 22 reads the interrupt status register 35. At the start of this read process, the interrupt generation state of the DSP card 13 is in the state shown in FIG. As shown in FIG. 5A, it is assumed that interrupt 1 and interrupt 3 occur at time t0.

ステップB3においてマスタDSP22は割込みステータスレジスタ35のビット番号を繰返しの変数iとするfor文の冒頭でビット番号「0」の値をリードする。図6(b)に割込みステータスレジスタ35及び割込みEOIレジスタ36の一例を示す。割込みステータスレジスタ35のビット番号「0」の1をマスタDSP22はリードする。   In step B3, the master DSP 22 reads the value of the bit number “0” at the beginning of the for statement in which the bit number of the interrupt status register 35 is set to the repetition variable i. FIG. 6B shows an example of the interrupt status register 35 and the interrupt EOI register 36. The master DSP 22 reads 1 of the bit number “0” of the interrupt status register 35.

ステップB4においてマスタDSP22はビット値が1か否かを判定する。1である場合、マスタDSP22はYESルートを通り、ステップB5においてマスタDSP22はビット番号「0」に対する割込み処理を実行する。図5(b)に示すように、時刻t1から時刻t2までの間に、マスタDSP22は外部割込み処理を行う。   In step B4, the master DSP 22 determines whether the bit value is 1. When it is 1, the master DSP 22 passes through the YES route, and in step B5, the master DSP 22 executes an interrupt process for the bit number “0”. As shown in FIG. 5B, the master DSP 22 performs external interrupt processing between time t1 and time t2.

ステップB5ではマスタDSP22は割込み処理を行う。マスタDSP22はユーザハンドラ(割込みハンドラ)1を実行する。図5(c)に示すように、時刻t3から時刻t4までの間に、ビット番号「0」に対応するユーザハンドラ1が実行される。時刻t3から時刻t4は、ユーザハンドラ1によるタスクを完了させるために要する時間である。このステップB5では図6(b)に示すように割込みEOIレジスタ36のビット位置に1を外部割込み制御装置18が書込む。   In step B5, the master DSP 22 performs an interrupt process. The master DSP 22 executes a user handler (interrupt handler) 1. As shown in FIG. 5C, the user handler 1 corresponding to the bit number “0” is executed between time t3 and time t4. From time t3 to time t4 is the time required to complete the task by the user handler 1. In step B5, as shown in FIG. 6B, the external interrupt controller 18 writes 1 to the bit position of the interrupt EOI register 36.

ユーザハンドラ1の実行後、ステップB6において、マスタDSP22は割込み1に対応した割込み終了処理を実行する。図6(c)に示すように外部割込み制御装置18は割込みEOIレジスタ36の対応ビットに0を書くとともに割込みステータスレジスタ35の対応のビットに0を書く。外部割込み制御部18は一旦外部割込み処理を終える。割込み要因の小さい順番にマスタDSP22は処理を行うことから、優先度が最も高い割込み1に対応する処理を確実に行える。   After execution of the user handler 1, in step B6, the master DSP 22 executes interrupt termination processing corresponding to the interrupt 1. As shown in FIG. 6C, the external interrupt control device 18 writes 0 in the corresponding bit of the interrupt EOI register 36 and 0 in the corresponding bit of the interrupt status register 35. The external interrupt control unit 18 once finishes the external interrupt process. Since the master DSP 22 performs processing in ascending order of interrupt factors, the processing corresponding to the interrupt 1 having the highest priority can be reliably performed.

時刻t4までに最優先に処理すべき高速シリアル通信装置28の割込み1の処理をマスタDSP22は終える。時刻t3から時刻t4の間に割込み2が発生している。この割込み2を外部割込み制御装置18が取扱って割込み2を割込みステータスレジスタ35に書込みしてある(図6(c))。時刻t4においては外部割込み2、3が発生中であることから、マスタDSP22は再度外部割込み処理を実行する。図4において、マスタDSP22は割込みステータスレジスタ35を再度LSBからリードする(ステップB2)。割込みステータスレジスタ35のビット番号「0」は処理済みでクリアされている。bit(i)のi=0、1、2、3までのfor文において、マスタDSP22は、割込みステータスレジスタ35のビット番号iのビット値がそれぞれローであることをリードし、NOルートを通り、繰返し変数iを1つ増やす(ステップB3、ステップB4、ステップB7)。   The master DSP 22 ends the processing of the interrupt 1 of the high-speed serial communication device 28 to be processed with the highest priority by the time t4. Interrupt 2 occurs between time t3 and time t4. The interrupt 2 is handled by the external interrupt control device 18 and the interrupt 2 is written in the interrupt status register 35 (FIG. 6C). Since external interrupts 2 and 3 are occurring at time t4, the master DSP 22 executes the external interrupt process again. In FIG. 4, the master DSP 22 reads the interrupt status register 35 from the LSB again (step B2). The bit number “0” of the interrupt status register 35 has been processed and cleared. In the for statement of i = 0, 1, 2, 3 of bit (i), the master DSP 22 reads that the bit values of the bit numbers i of the interrupt status register 35 are low, and passes through the NO route. The repetition variable i is incremented by one (step B3, step B4, step B7).

i=4について、マスタDSP22はビット番号「4」のビット値をリードし(ステップB3、ステップB4)、YESルートを通り、ステップB5において、マスタDSP22は時刻t5から時刻t6の間(図5(b))、ビット番号「4」に対する割込み処理を実行する。ユーザハンドラ(割込みハンドラ)2をマスタDSP22が実行する(図5(d))。ユーザハンドラ2のタスクは時刻t8まで続く。マスタDSP22は割込み2の割込み終了処理を実行する(ステップB6)。図6(d)に示すように、外部割込み制御装置18は割込みEOIレジスタ36及び割込みステータスレジスタ35のそれぞれのビット番号「4」に0を書く。マスタDSP22は一旦外部割込み処理を終える。このように、割込み3が時刻t0で上がっており、この割込み3は割込み2よりも先に上がっているにも関わらず、時刻t4において、後から入った割込み2が割込み3に優先して処理される。マスタDSP22は割込み要因の優先順位が小さい順番に処理を行うことから、時系列に入った割込み2、3間の順番に関わらず割込み2に対応する処理が優先的に処理されるようになる。   For i = 4, the master DSP 22 reads the bit value of the bit number “4” (step B3, step B4), passes the YES route, and in step B5, the master DSP 22 is between time t5 and time t6 (FIG. 5 ( b)), interrupt processing for bit number “4” is executed. The master DSP 22 executes the user handler (interrupt handler) 2 (FIG. 5 (d)). The task of the user handler 2 continues until time t8. The master DSP 22 executes the interrupt end process for interrupt 2 (step B6). As shown in FIG. 6D, the external interrupt control device 18 writes 0 in each bit number “4” of the interrupt EOI register 36 and the interrupt status register 35. The master DSP 22 once finishes the external interrupt process. Thus, although interrupt 3 has risen at time t0, and interrupt 3 has risen before interrupt 2, interrupt 2 that has entered later takes priority over interrupt 3 at time t4. Is done. Since the master DSP 22 performs the processing in the order of the priority of the interrupt factor, the processing corresponding to the interrupt 2 is preferentially processed regardless of the order between the interrupts 2 and 3 entering the time series.

時刻t8までに割込み1、割込み2の各処理をマスタDSP22は終える。引続き、マスタDSP22は割込み3に対応した処理を行う。マスタDSP22は割込みステータスレジスタ35を再度LSBからリードする(ステップB2)。図6(d)に示すように、割込みステータスレジスタ35のビット番号「0」、「4」は処理済みでクリアされている。bit(i)のi=0〜10までのfor文において、マスタDSP22は、ビット番号iのビット値をリードしていく(ステップB3、ステップB4、ステップB7)。i=11について、マスタDSP22は割込みステータスレジスタ35のビット値をリードする(ステップB3、ステップB4)。ステップB5において時刻t9から時刻t10の間、マスタDSP22はビット番号「11」に対する割込み処理を実行する(図5(b))。時刻t12までの間、ユーザハンドラ(割込みハンドラ)3をマスタDSP22が実行する(図5(e))。引続きマスタDSP22は割込み3について割込み終了処理を実行する(ステップB6)。外部割込み制御装置18は割込みEOIレジスタ36及び割込みステータスレジスタ35のそれぞれのビット番号「11」のビット値をクリアする(図6(e))。全ての外部割込み処理をマスタDSP22は終える。時刻t12においては、3つのEOIが全て発行されている。マスタDSP22は信号処理演算に制御を移す(図3のステップA4)。   The master DSP 22 finishes the processing of interrupt 1 and interrupt 2 by time t8. Subsequently, the master DSP 22 performs processing corresponding to the interrupt 3. The master DSP 22 reads the interrupt status register 35 from the LSB again (step B2). As shown in FIG. 6D, the bit numbers “0” and “4” of the interrupt status register 35 have been processed and cleared. In the for statement from i = 0 to 10 in bit (i), the master DSP 22 reads the bit value of bit number i (step B3, step B4, step B7). For i = 11, the master DSP 22 reads the bit value of the interrupt status register 35 (step B3, step B4). In step B5, between time t9 and time t10, the master DSP 22 executes an interrupt process for the bit number “11” (FIG. 5B). Until time t12, the master DSP 22 executes the user handler (interrupt handler) 3 (FIG. 5 (e)). Subsequently, the master DSP 22 executes an interrupt end process for the interrupt 3 (step B6). The external interrupt control device 18 clears the bit values of the bit number “11” of the interrupt EOI register 36 and the interrupt status register 35 (FIG. 6E). The master DSP 22 finishes all external interrupt processing. At time t12, all three EOIs are issued. The master DSP 22 shifts control to signal processing calculation (step A4 in FIG. 3).

割込み3について述べると、割込み3の優先順位は割込み1、2の優先順位に比べて低い。図1の(1)〜(4)のように、割込み1、2の処理が終わった後、(5)のように後回しの処理をされる。割込み3はこの割込み3が上がった後、割込みハンドラ1、2の実行終了までずっと待たされ続ける。本実施形態では、シリアル通信装置25が記憶しているデータを最悪取り損ねたとしても、それほど重要でないデータとして割り切って、DSPカード13に動作を続けさせるようにしている。信号処理システム10は、必ず高い優先順位から割込要求を処理していくため、たとえ割込み1が連続して発生した場合でも、信号処理システム10は、全ての割込み1の外部割込み処理を漏れなく実行することができる。以上により、優先度に応じて外部割込み処理を行うことで、DSPカード13は外部割込みの取りこぼしを防ぐことが可能である。   As for interrupt 3, the priority of interrupt 3 is lower than that of interrupts 1 and 2. As shown in (1) to (4) of FIG. 1, after the processing of the interrupts 1 and 2 is completed, the post-processing is performed as shown in (5). Interrupt 3 continues to wait until the end of execution of interrupt handlers 1 and 2 after interrupt 3 is raised. In the present embodiment, even if the data stored in the serial communication device 25 is lost in the worst case, it is divided as less important data, and the DSP card 13 continues to operate. Since the signal processing system 10 always processes interrupt requests from a high priority, even if interrupts 1 are generated continuously, the signal processing system 10 does not leak external interrupt processing of all interrupts 1. Can be executed. As described above, by performing the external interrupt process according to the priority, the DSP card 13 can prevent the external interrupt from being missed.

従来例に係るディジタルシグナルプロセッサシステムでは、DSPカード上においてDSPがDSP以外を割込み発生源とする外部割込みを処理することができない。互いに非同期な複数の外部割込要求がDSPカードに発生したとき、このDSPカードは、PCIバスなどからの高速応答を要する割込みも、UARTなどからの高速応答が不要な割込みも、同一レベルで扱っている。複数種類の割込み発生に対してDSPカードは高速に割込応答を行えない。   In the digital signal processor system according to the conventional example, the DSP cannot process an external interrupt whose source is an interrupt source other than the DSP on the DSP card. When a plurality of asynchronous external interrupt requests are generated in the DSP card, this DSP card handles interrupts that require a high-speed response from the PCI bus or the like and interrupts that do not require a high-speed response from the UART or the like at the same level. ing. The DSP card cannot make an interrupt response at high speed when multiple types of interrupts occur.

現在は、半導体技術の進歩により、DSPが使用できるメモリ容量が増え、より複雑な処理を実行できるようになったことから、従来CPUが行ってきた処理をDSPで置換える信号処理システムが出てきている。これに伴い、DSPカードが公知規格バスをサポートし、公知規格バスからの割込みを出力するバスプロトコル変換機能ICがDSPカード上に設けられるようになってきている。DSPにとっての外部割込み発生源がDSPカード上に存在するようになってきている。   At present, due to advances in semiconductor technology, the memory capacity that can be used by the DSP has increased, and more complicated processing can be executed. Therefore, a signal processing system that replaces processing conventionally performed by a CPU with a DSP has emerged. ing. Accordingly, the DSP card supports a known standard bus, and a bus protocol conversion function IC that outputs an interrupt from the known standard bus is provided on the DSP card. An external interrupt generation source for the DSP has come to exist on the DSP card.

従来例に係るディジタルシグナルプロセッサシステムでは、DSPカードが本来取りこぼすことを許されないレーダ装置からの受信データと、それほど重要でないデバッグ用の文字列データとをDSPカードが同列に扱っている。非同期複数の割込要求の発生に対し、DSPカードが全て同じ重要度で処理したとすると、DSPカードは重要でない割込み処理の最中にレーダ装置からの受信割込みが入って受信データを基本周期内に処理を終えない可能性が存在する。   In the digital signal processor system according to the conventional example, the DSP card handles the received data from the radar apparatus that the DSP card is not allowed to miss and the character string data for debugging which is not so important in the same line. Assuming that the DSP card processes all of the asynchronous interrupt requests with the same importance, the DSP card receives a reception interrupt from the radar device during an unimportant interrupt process, and the received data is within the basic period. There is a possibility that the process will not finish.

これに対して、本実施形態に係るディジタルシグナルプロセッサシステムおよびディジタルシグナルプロセッサシステムにおける割込み処理方法によれば、DSPカード13上においてDSP22が外部割込みを処理することができる。割込要因の種別の数が増大したとしても、各基本周期内で優先度の高い外部割込みの発生を確実に発見して優先度の高い外部割込みを処理できる。DSP22は、各基本周期内で、割込みハンドラの実行終了の都度、i=0に戻ってLSBからfor文を回している。DSP22は必ず優先度の高い高速シリアル通信装置28からの受信割込みが入っているかどうかを判定している。優先順位による評価判定をDSP22が処理の都度実行するため、DSPカード13は非同期複数の外部割込みに対して高速に割込応答を行えるようになる。   On the other hand, according to the digital signal processor system and the interrupt processing method in the digital signal processor system according to the present embodiment, the DSP 22 can process an external interrupt on the DSP card 13. Even if the number of interrupt factor types increases, it is possible to reliably detect the occurrence of a high-priority external interrupt within each basic cycle and process a high-priority external interrupt. The DSP 22 returns to i = 0 and rotates the for statement from the LSB every time the execution of the interrupt handler ends within each basic cycle. The DSP 22 always determines whether or not there is a reception interrupt from the high-speed serial communication device 28 having a high priority. Since the DSP 22 executes the evaluation determination based on the priority every time the processing is performed, the DSP card 13 can perform an interrupt response at a high speed to a plurality of asynchronous external interrupts.

尚、上記の実施形態は実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。例えば図2では外部割込み発生源は、最大32種類まで登録されているが、外部割込み発生源の種別や個数は種々変更可能である。優先度の高い外部割込要求を選択する判定処理では、優先順位を繰返し評価しているが、この繰返し処理において、図6の割込みマスクレジスタ34、割込みステータスレジスタ35、割込みEOIレジスタ36の割付け方は一例である。プログラム言語の繰返し構造を示す例としてfor文を述べたが、他の言語あるいは他の繰返し構造により繰返し処理を記述してもよい。ビット割付けの仕方を変えること、又は上記3本のレジスタ群と実質同じ機能を有する複数本のレジスタを使うことによって判定処理を実施したに過ぎない実施品に対しても本実施形態に係るディジタルシグナルプロセッサシステムの優位性は何ら損なわれるものではない。   The above-described embodiment is not limited to the embodiment as it is, and can be embodied by modifying the components without departing from the scope of the invention in the implementation stage. For example, in FIG. 2, up to 32 types of external interrupt generation sources are registered, but the type and number of external interrupt generation sources can be variously changed. In the determination process for selecting an external interrupt request with a high priority, the priority order is repeatedly evaluated. In this iterative process, how to allocate the interrupt mask register 34, interrupt status register 35, and interrupt EOI register 36 in FIG. Is an example. Although the for statement has been described as an example showing the repetition structure of the program language, the repetition processing may be described in another language or another repetition structure. The digital signal according to the present embodiment can be applied to an embodiment in which the determination process is merely performed by changing the bit allocation method or using a plurality of registers having substantially the same function as the above three register groups. The superiority of the processor system is not lost.

いくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   Although several embodiments have been described, these embodiments have been presented by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the equivalents thereof.

10…信号処理システム(ディジタルシグナルプロセッサシステム)11…レーダ装置、12…A/D変換器、13…DSPカード、14…VMEバス、15…CPUカード、16…PCIバス(第1データバス)、18…外部割込み制御装置(割込み制御部)、19…バスプロトコル変換機能部(バスインターフェース)、20…データバス(第2データバス)、21…DSP(第1DSP)、22…DSP(第2DSP)、23…信号線、24…パソコン、25…シリアル通信装置(割込み制御部)、26…データバス(第2データバス)、27…フラッシュROM、28…高速シリアル通信装置(割込み発生源)、29…PCI−VMEブリッジ装置(割込み発生源)、30…外部記憶装置、31…CPU、32…DMAコントローラ、33…端子、34…割込みマスクレジスタ、35…割込みステータスレジスタ、36…割込みEOIレジスタ、37,38,39…端子、40…内部メモリ、41…DMAコントローラ、42…データバス。   DESCRIPTION OF SYMBOLS 10 ... Signal processing system (digital signal processor system) 11 ... Radar apparatus, 12 ... A / D converter, 13 ... DSP card, 14 ... VME bus, 15 ... CPU card, 16 ... PCI bus (1st data bus), 18 ... external interrupt control device (interrupt control unit), 19 ... bus protocol conversion function unit (bus interface), 20 ... data bus (second data bus), 21 ... DSP (first DSP), 22 ... DSP (second DSP) , 23 ... signal line, 24 ... personal computer, 25 ... serial communication device (interrupt control unit), 26 ... data bus (second data bus), 27 ... flash ROM, 28 ... high-speed serial communication device (interrupt generation source), 29 ... PCI-VME bridge device (interrupt generation source), 30 ... external storage device, 31 ... CPU, 32 ... DMA controller 33 ... terminal, 34 ... interrupt mask register, 35 ... interrupt status register, 36 ... interrupt EOI register, 37, 38, 39 ... terminal, 40 ... internal memory, 41 ... DMA controller, 42 ... data bus.

Claims (3)

第1データバスと、
それぞれこの第1データバスにバスインターフェースを介して接続された複数の第2データバスと、
前記第1データバス又は前記第2データバス上に発生し発生要因が異なる複数の割込要求の割込み要因を持つ一種以上の割込要求の入力により割込発生の通知を出力し、前記第1データバスおよび前記複数の第2データバスに接続された割込み制御部と、
この割込み制御部から出力される信号処理対象のデータの受信割込発生によってこのデータに対して信号処理演算を実行する少なくとも一つの第1DSPと、
前記割込み制御部からの前記通知によりDSP外からの複数の外部割込要求のうち最も優先度の高い外部割込要求を各優先順位により選択する判定処理、およびこの外部割込要求に対応する割込みハンドラの実行による外部割込み処理を行う第2DSPと、を備え、
この第2DSPは一つの期間内で前記判定処理および前記外部割込み処理を繰返し、複数の他の期間において一つ以上の非同期な外部割込要求のうち前記最も優先度の高い外部割込要求の処理をこれらの他の期間毎に終わらせることを特徴とするディジタルシグナルプロセッサシステム。
A first data bus;
A plurality of second data buses each connected to the first data bus via a bus interface;
An interrupt generation notification is output by inputting one or more interrupt requests having interrupt factors of a plurality of interrupt requests that are generated on the first data bus or the second data bus and have different generation factors. An interrupt control unit connected to the data bus and the plurality of second data buses;
At least one first DSP that performs a signal processing operation on the data by generating a reception interrupt of the data to be processed output from the interrupt control unit;
A determination process for selecting an external interrupt request having the highest priority among a plurality of external interrupt requests from outside the DSP based on the notification from the interrupt control unit, and an interrupt corresponding to the external interrupt request A second DSP that performs external interrupt processing by executing a handler,
The second DSP repeats the determination process and the external interrupt process within one period, and processes the highest-priority external interrupt request among one or more asynchronous external interrupt requests in a plurality of other periods. A digital signal processor system characterized in that it terminates every other period of time.
前記第2DSPは、前記期間内で、前記最も優先度の高い外部割込要求に対する前記外部割込み処理を実行し終えた時点で、前記最も優先度の高い外部割込要求を含む前記一つ以上の非同期な外部割込要求に対する前記判定処理を再度行うことを特徴とする請求項1記載のディジタルシグナルプロセッサシステム。   The second DSP includes the one or more high-priority external interrupt requests when the external interrupt processing for the high-priority external interrupt request is completed within the period. 2. The digital signal processor system according to claim 1, wherein the determination processing for the asynchronous external interrupt request is performed again. 第1データバスあるいはそれぞれこの第1データバスにバスインターフェースを介して接続された複数の第2データバス上に発生し発生要因が異なる複数の割込要求の割込み要因を持つ一種以上の割込要求の入力により割込発生の通知を出力し、
前記第2データバス上の第2DSPが、一つの期間内において前記通知によりDSP外からの複数の外部割込要求のうち最も優先度の高い外部割込要求を各優先順位により選択する判定処理と、この外部割込要求に対応する割込みハンドラの実行による外部割込み処理とを前記期間が満了するまで繰返し、
前記第2DSPが、複数の他の期間内での一つ以上の非同期な外部割込要求のうち前記最も優先度の高い外部割込要求の処理をこれらの他の期間毎に終わらせることを特徴とするディジタルシグナルプロセッサシステムにおける割込み処理方法。
One or more types of interrupt requests having interrupt factors for a plurality of interrupt requests that are generated on the first data bus or a plurality of second data buses connected to the first data bus via a bus interface, respectively. Will output a notification that an interrupt has occurred.
A determination process in which the second DSP on the second data bus selects an external interrupt request having the highest priority among a plurality of external interrupt requests from the outside of the DSP according to the notification within one period according to each priority order; The external interrupt processing by executing the interrupt handler corresponding to the external interrupt request is repeated until the period expires,
The second DSP terminates processing of the highest-priority external interrupt request for each of these other periods among one or more asynchronous external interrupt requests in a plurality of other periods. An interrupt processing method in a digital signal processor system.
JP2011260463A 2011-11-29 2011-11-29 Digital signal processor system and interruption processing method in digital signal processor system Pending JP2013114483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011260463A JP2013114483A (en) 2011-11-29 2011-11-29 Digital signal processor system and interruption processing method in digital signal processor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011260463A JP2013114483A (en) 2011-11-29 2011-11-29 Digital signal processor system and interruption processing method in digital signal processor system

Publications (1)

Publication Number Publication Date
JP2013114483A true JP2013114483A (en) 2013-06-10

Family

ID=48709973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011260463A Pending JP2013114483A (en) 2011-11-29 2011-11-29 Digital signal processor system and interruption processing method in digital signal processor system

Country Status (1)

Country Link
JP (1) JP2013114483A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015032008A (en) * 2013-07-31 2015-02-16 株式会社東芝 Memory transfer apparatus by digital signal processor and memory transfer method by digital signal processor
CN111209235A (en) * 2019-12-31 2020-05-29 西安翔腾微电子科技有限公司 Bus control circuit based on DSP

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015032008A (en) * 2013-07-31 2015-02-16 株式会社東芝 Memory transfer apparatus by digital signal processor and memory transfer method by digital signal processor
CN111209235A (en) * 2019-12-31 2020-05-29 西安翔腾微电子科技有限公司 Bus control circuit based on DSP
CN111209235B (en) * 2019-12-31 2023-03-21 西安翔腾微电子科技有限公司 Bus control circuit based on DSP

Similar Documents

Publication Publication Date Title
JP2009265963A (en) Information processing system and task execution control method
JP5445669B2 (en) Multi-core system and startup method
WO2011148920A1 (en) Multiprocessor system, execution control method, execution control program
CN109062834B (en) DMA-based SPI communication method, electronic equipment, storage medium and device
JP6568399B2 (en) Information processing device
JP2013114483A (en) Digital signal processor system and interruption processing method in digital signal processor system
JP6123487B2 (en) Control device, control method, and control program
CN109343950B (en) General interrupt processing method suitable for Xilinx soft-core processor
JP2012203451A (en) Semiconductor integrated circuit simulation device and semiconductor integrated circuit simulation method
JP4762207B2 (en) DSP card testing equipment
JP7326863B2 (en) Transfer device, information processing device, and data transfer method
JP7064367B2 (en) Deadlock avoidance method, deadlock avoidance device
JP2011059787A (en) Digital signal processor system and starting method for digital signal processor
JP5641128B2 (en) Multi-core processor system, multi-core processor system control method, and multi-core processor system control program
JP2013242816A (en) Dsp card and data transfer method
WO2019188177A1 (en) Information processing device
JP2014164675A (en) Digital signal processor system and interruption processing method in the digital signal processor system
EP3495960A1 (en) Program, apparatus, and method for communicating data between parallel processor cores
JP6206524B2 (en) Data transfer device, data transfer method, and program
JP2008071107A (en) Flash rom update method of dsp card, and flash rom update device of dsp card
JP6217386B2 (en) Program generation method for multiprocessor
JP6940283B2 (en) DMA transfer control device, DMA transfer control method, and DMA transfer control program
US20140320424A1 (en) Data transmission method, touch data processing method and electronic device
JP6392556B2 (en) Access request issuing device, access request issuing system, access request issuing method, and access request issuing program
JP2015032008A (en) Memory transfer apparatus by digital signal processor and memory transfer method by digital signal processor