JP2002073341A - Dsp program download system - Google Patents

Dsp program download system

Info

Publication number
JP2002073341A
JP2002073341A JP2000262036A JP2000262036A JP2002073341A JP 2002073341 A JP2002073341 A JP 2002073341A JP 2000262036 A JP2000262036 A JP 2000262036A JP 2000262036 A JP2000262036 A JP 2000262036A JP 2002073341 A JP2002073341 A JP 2002073341A
Authority
JP
Japan
Prior art keywords
program
dsp
cpu
dsps
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000262036A
Other languages
Japanese (ja)
Inventor
Yoshifumi Ogura
佳文 小倉
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2000262036A priority Critical patent/JP2002073341A/en
Publication of JP2002073341A publication Critical patent/JP2002073341A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a DSP program download method which can be made faster by reducing time required in downloading a program to plural DSPs. SOLUTION: When power is applied, the CPU 1 writes the DSP program stored in advance in the memory 2 to the dual port memory 3 for a program storage after its initialization process. When the power is applied, the DSPs 5-7 become the program transfer standby status and output a DMA transfer request to the DMA controller (DMAC) 4. CPU 1 writes the DSP program to dual port memory 3 for the program storage and sets the DMA start address, the number of DMA transfer bytes and the DMA transfer permission to DMAC 4. DMAC 4 executes the DMA operation to DSPs 5-7 based on a set address and the number of bytes to be transferred and outputs the DMA transfer completion signal to CPU 1 after the DMA operation is completed. When the program transfer is completed, DSPs 5-7 output the download completion notice interrupting to CPU 1.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はDSPプログラムダ
ウンロードシステムに関し、特に伝送制御装置の音声符
号/復号化回路として用いられるDSP(Digita
l SignalProcessor)周辺回路に関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a DSP program download system, and more particularly to a DSP (Digita) used as a voice coding / decoding circuit of a transmission control device.
l SignalProcessor) peripheral circuits.

【0002】[0002]

【従来の技術】DSPはディジタル信号処理専用の1チ
ップマイクロプロセッサであり、ディジタル信号処理で
特に多い積和演算の繰返し等を、汎用マイクロプロセッ
サに比べて1桁以上も高速に演算処理できるため、伝送
制御装置の音声符号/復号化回路として用いられてい
る。
2. Description of the Related Art A DSP is a one-chip microprocessor dedicated to digital signal processing, and can perform repetition of product-sum operations, which are particularly common in digital signal processing, at least one digit faster than general-purpose microprocessors. It is used as a speech encoding / decoding circuit of a transmission control device.

【0003】このDSPに対するプログラムダウンロー
ドの方法としては、特開平2−213968号公報に記
載の方法があり、上記公報では単一DSPに対するプロ
グラムダウンロードの方法が記載されている。
As a method of downloading a program to the DSP, there is a method described in Japanese Patent Application Laid-Open No. 213968/1990, and the above-mentioned publication describes a method of downloading a program to a single DSP.

【0004】上記公報記載の方法では複数のDSPが存
在した場合、プログラムをダウンロードするための時間
が非常に掛かってしまう。この場合、全てのDSPに対
するプログラムダウンロードにかかる時間は、n台のD
SPがあれば、1ダウンロード単位時間×n個の時間が
必要となる。また、DSPに対してプログラムダウンロ
ードを行っている最中はその処理しかできず、他のDS
Pに対してインタフェースをとることができない。
In the method disclosed in the above publication, when a plurality of DSPs exist, it takes a very long time to download a program. In this case, the time required to download the program to all DSPs is n D
If there is an SP, one download unit time × n times is required. Also, while the program is being downloaded to the DSP, only the processing can be performed.
Cannot interface to P.

【0005】また、特開平8−249272号公報に
は、複数のDSPに対してプログラムダウンロードを1
つ1つ別々に行うことをせず、プログラムをブロックデ
ータ化して順番にダウンロードしていく方法が記載され
ており、プログラムダウンロードに掛かるトータル時間
を短縮することを目的としている。
Japanese Patent Application Laid-Open No. 8-249272 discloses that one program download is performed for a plurality of DSPs.
A method is described in which a program is converted into block data and downloaded sequentially, instead of performing each one separately, and the object is to reduce the total time required for downloading the program.

【0006】上記の方法ではプログラムダウンロード自
体をCPU(中央処理装置)で行っているため、DSP
に対してダウンロードを行ったいる間、その処理しかで
きず、他のDSPに対してインタフェースをとることが
できない。
In the above method, the program download itself is performed by a CPU (Central Processing Unit).
While downloading data to the DSP, only that processing can be performed, and no interface can be taken with another DSP.

【0007】さらに、特開平11−120002号公報
には、DSP用プログラムメモリをDSPに対して1対
1で設けた例が開示されている。この公報記載の技術で
は各DSPにダウンロードするためのプログラムをマス
タROMの形式で保有しており、アドレス発生部でサイ
クリックに生成されたアドレスに同期して各DSPのプ
ログラムメモリにダウンロードしていく方法を採ってい
る。
Further, Japanese Patent Application Laid-Open No. 11-120002 discloses an example in which a DSP program memory is provided one-to-one with respect to a DSP. In the technology described in this publication, a program to be downloaded to each DSP is held in the form of a master ROM, and downloaded to a program memory of each DSP in synchronization with an address generated cyclically by an address generation unit. The method is adopted.

【0008】上記公報記載の方法には1つ1つ順番にダ
ウンロードしていく方法と、多少の時間差で順次ダウン
ロードしていく方法とが記載されているが、各DSPに
対してプログラムを同時にダウンロードすることはでき
ない。
[0008] The method described in the above-mentioned publication describes a method of sequentially downloading one by one and a method of sequentially downloading with a slight time lag. The program is simultaneously downloaded to each DSP. I can't.

【0009】[0009]

【発明が解決しようとする課題】上述した従来のDSP
に対するプログラムのダウンロード方法では、DSPプ
ログラムダウンロードをCPUが直接行う場合、プログ
ラムダウンロードを同時に複数個まとめて行うことはで
きない。また、CPUで行う場合にはまとめて行う場合
でも、プログラムをブロックに分けて行う場合でも、1
つのDSPに対してしか制御することができない。
The above-mentioned conventional DSP
According to the method of downloading a program, when a CPU directly downloads a DSP program, a plurality of program downloads cannot be performed simultaneously. In addition, when the program is executed by the CPU or when the program is divided into blocks,
Only one DSP can be controlled.

【0010】さらに、プログラムを複数同時にダウンロ
ードする方法もあるが、複数のDSPに対してプログラ
ムをまったく同じタイミングでダウンロードすることは
できない。よって、従来のダウンロード方法では複数の
DSPが存在した場合、全てのDSPに対して同時にプ
ログラムをダウンロードすることができない。
Further, there is a method of downloading a plurality of programs at the same time, but it is impossible to download the programs to a plurality of DSPs at exactly the same timing. Therefore, in the case where a plurality of DSPs exist in the conventional download method, the program cannot be downloaded to all the DSPs at the same time.

【0011】DSPに対するプログラムのダウンロード
をCPUが直接行う場合には、CPU自体がダウンロー
ド処理を行っているため、その時に他のDSPに対して
インタフェースをとることができない。仮に、インタフ
ェースをとることができたとしても、それはプログラム
ダウンロード処理を中断することになり、プログラムダ
ウンロード終了までに掛かる時間後、その分遅くなるこ
とになる。
When a CPU directly downloads a program to a DSP, the CPU itself is performing the download process, so that no interface can be taken with another DSP at that time. Even if the interface could be taken, it would interrupt the program download process, and would be delayed by the time it takes to complete the program download.

【0012】したがって、1つのDSPに対してプログ
ラムダウンロードしている時に、それ以外のDSPに対
して、CPUからコマンド/ステータス等のソフトウェ
ア的なインタフェースをとることができない。
Therefore, when a program is downloaded to one DSP, a software interface such as a command / status cannot be taken from the CPU to the other DSPs.

【0013】そこで、本発明の目的は上記の問題点を解
消し、複数のDSPに対してプログラムのダウンロード
に掛かる時間を短縮して高速化することができるDSP
プログラムダウンロードシステムを提供することにあ
る。
Accordingly, an object of the present invention is to solve the above-mentioned problems and to reduce the time required to download a program to a plurality of DSPs, thereby increasing the speed.
It is to provide a program download system.

【0014】本発明の他の目的は、あるDSPに対して
プログラムのダウンロードを行っている最中でも、他の
DSPに対してインタフェースをとることができるDS
Pプログラムダウンロードシステムを提供することにあ
る。
Another object of the present invention is to provide a DS which can interface with another DSP even while a program is being downloaded to a certain DSP.
A P program download system is provided.

【0015】[0015]

【課題を解決するための手段】本発明によるDSPプロ
グラムダウンロードシステムは、音声符号/復号化回路
として用いられる複数のディジタルシグナルプロセッサ
各々へプログラムをダウンロードするためのDSPプロ
グラムダウンロードシステムであって、前記複数のディ
ジタルシグナルプロセッサ各々にダウンロードするプロ
グラムを格納するプログラムダウンロード用メモリと、
前記複数のディジタルシグナルプロセッサ各々から前記
プログラムダウンロード用メモリへのダイレクトメモリ
アクセスを制御する制御手段とを備えている。
A DSP program download system according to the present invention is a DSP program download system for downloading a program to each of a plurality of digital signal processors used as a voice encoding / decoding circuit. A program download memory for storing a program to be downloaded to each of the digital signal processors;
Control means for controlling direct memory access from each of the plurality of digital signal processors to the program download memory.

【0016】本発明による他のDSPプログラムダウン
ロードシステムは、上記の構成のほかに、前記複数のデ
ィジタルシグナルプロセッサ各々へのプログラムを伝送
するDSPプログラム転送用バスと、前記DSPプログ
ラム転送用バスに接続されかつ前記複数のディジタルシ
グナルプロセッサ各々と中央処理装置とを接続する制御
バスと、前記DSPプログラム転送用バスと前記制御バ
スとを分離する手段とを具備している。
Another DSP program download system according to the present invention has, in addition to the above-described configuration, a DSP program transfer bus for transmitting a program to each of the plurality of digital signal processors, and a DSP program transfer bus connected to the DSP program transfer bus. And a control bus for connecting each of the plurality of digital signal processors to a central processing unit; and means for separating the DSP program transfer bus from the control bus.

【0017】すなわち、本発明のDSPプログラムダウ
ンロード方法は、音声符号/復号化回路として用いる際
の音声コーデックプログラムをDSP(Digital
Signal Processor)にダウンロード
するためのDMAC(Direct memory A
ccess Controler)と、DSPプログラ
ム格納用メモリとを設けている。
That is, according to the DSP program download method of the present invention, an audio codec program to be used as an audio encoding / decoding circuit is stored in a DSP (Digital
DMAC (Direct memory A) for downloading to a Signal Processor
access controller) and a memory for storing a DSP program.

【0018】CPU(中央処理装置)とDSPとの通信
手段として共有メモリを用いた場合には、1つのDSP
に対してダウンロードを行っている時でも他のDSPに
対するCPU−DSP間通信を可能とするために、各D
SPに対してプログラム転送用バスとDSPローカルバ
スとを接続している。
When a shared memory is used as communication means between the CPU (Central Processing Unit) and the DSP, one DSP
In order to enable communication between the CPU and the DSP for other DSPs even when downloading to
A program transfer bus and a DSP local bus are connected to the SP.

【0019】また、本発明のDSPプログラムダウンロ
ード方法では、プログラムダウンロード中にCPUの制
御バスとプログラム転送バスとを切離すバス分離バッフ
ァと、DSP動作中にCPUの制御バスとDSPローカ
ルバスとを切離すバス分離バッファとを有し、DSPロ
ーカルバス上のバス調停を行うためのバスアービタを備
えている。
Further, in the DSP program download method of the present invention, a bus separation buffer for separating the control bus and the program transfer bus of the CPU during the program download, and a control bus of the CPU and the DSP local bus during the DSP operation. A bus arbiter for performing bus arbitration on the DSP local bus.

【0020】CPUは予めDSPにダウンロードすべき
プログラム全てをDSPプログラム格納用メモリに転送
しておき、DMACは全てのDSPからのDMA転送要
求信号を同期化させることによって、プログラム格納メ
モリからのDSPに対するプログラムダウンロードを実
現している。
The CPU transfers all programs to be downloaded to the DSP to the DSP program storage memory in advance, and the DMAC synchronizes DMA transfer request signals from all the DSPs so that the DMA transfer request signals from the program storage memory can be transferred to the DSP from the DSP storage memory. Program download is realized.

【0021】このDMACを使用することによって、複
数のDSPに対して全く同時にプログラムダウンロード
を完了させることが可能となる。したがって、DSPが
1つでも20個でもプログラム転送にかかる時間は同じ
になるという効果がある。
By using the DMAC, it is possible to complete the program download for a plurality of DSPs at the same time. Therefore, there is an effect that the time required for the program transfer becomes the same regardless of whether one or twenty DSPs are used.

【0022】また、CPU制御バスとプログラム転送バ
スとの間にはバス分離バッファがあるため、DMACが
動作中でも、CPUの動作に影響を及ぼすことはない。
CPUが共有メモリをアクセスする時や、各DSPがア
クセスする時には、バスアービタに対してバス要求信号
を出力する。これに対し、バスアービタは優先順位をつ
けてどれか1つの相手に対してバス許可信号を出力す
る。この動作によってDSPローカルバス使用権が決定
される。
Further, since the bus separation buffer is provided between the CPU control bus and the program transfer bus, the operation of the CPU is not affected even when the DMAC is operating.
When the CPU accesses the shared memory or each DSP accesses, the CPU outputs a bus request signal to the bus arbiter. On the other hand, the bus arbiter assigns priorities and outputs a bus permission signal to any one of the other parties. By this operation, the right to use the DSP local bus is determined.

【0023】CPUはDMACがプログラムダウンロー
ドを行っている最中でも動作可能であるため、共有メモ
リに対するアクセス動作が可能となり、インタフェース
をとることが可能となる。
Since the CPU can operate even while the DMAC is downloading the program, the CPU can access the shared memory and can take an interface.

【0024】上記のように、プログラムダウンロード処
理自体をハードウェアで実現することによって、CPU
の負荷を軽減することが可能となり、伝送処理に費やせ
る時間を拡大することが可能となる。つまり、本発明で
は、回路構成の簡単なものと、バスアービトレーション
ブロック内が多少複雑な回路構成となるが、全体的にコ
ストを削減して簡易的な回路構成とを組むことが可能と
なる。
As described above, by realizing the program download process itself by hardware, the CPU
Can be reduced, and the time that can be spent on transmission processing can be extended. In other words, in the present invention, although the circuit configuration is simple and the circuit configuration inside the bus arbitration block is somewhat complicated, it is possible to reduce the cost as a whole and form a simple circuit configuration.

【0025】[0025]

【発明の実施の形態】次に、本発明の実施例について図
面を参照して説明する。図1は本発明の一実施例による
DSPプログラムダウンロードシステムの構成を示すブ
ロック図である。図1において、本発明の一実施例によ
るDSPプログラムダウンロードシステムはCPU1
と、メモリ2と、プログラム格納用デュアルポートメモ
リ3と、DMAC(Direct memory Ac
cess Controler)4と、DSP(Dig
ital Signal Processor)(#1
〜#3)5〜7と、CPUIF(インタフェース)用デ
ュアルポートメモリ8〜10とから構成されている。
Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a DSP program download system according to one embodiment of the present invention. In FIG. 1, a DSP program download system according to an embodiment of the present invention includes a CPU 1
, A memory 2, a program storage dual port memory 3, and a DMAC (Direct memory Ac).
ESS Controller 4) and DSP (Dig)
ital Signal Processor) (# 1
To # 3) 5 to 7 and dual-port memories 8 to 10 for CPUIF (interface).

【0026】CPU1はDSP5〜7へのプログラムの
転送を司る。メモリ2にはCPU1のプログラム及びD
SP5〜7にダウンロードするためのプログラムが最初
に格納されている。
The CPU 1 controls the transfer of programs to the DSPs 5 to 7. The memory 2 has a program for the CPU 1 and D
Programs to be downloaded to SPs 5 to 7 are stored first.

【0027】プログラム格納用デュアルポートメモリ3
はDSP5〜7にダウンロードするためにプログラムを
格納する。DMAC4はプログラム格納用デュアルポー
トメモリ3からDSP5〜7に対してプログラムを転送
する。
Dual port memory 3 for storing programs
Stores a program to be downloaded to DSPs 5-7. The DMAC 4 transfers the program from the dual port memory 3 for storing programs to the DSPs 5 to 7.

【0028】DSP5〜7はプログラムが転送され、デ
ィジタル信号処理の積和演算の繰返し等を行う伝送制御
装置の音声符号/複合化回路(図示せず)として用いら
れる。CPUIF用デュアルポートメモリ8〜10はC
PU1とDSP5〜7との間に配置されている。
The DSPs 5 to 7 are used as a speech coding / decoding circuit (not shown) of a transmission control device for transferring a program and repeating a product-sum operation in digital signal processing. CPUIF dual port memory 8-10 is C
It is arranged between PU1 and DSPs 5-7.

【0029】CPU1と、メモリ2と、プログラム格納
用デュアルポートメモリ3と、DMAC4と、CPUI
F用デュアルポートメモリ8〜10とはそれぞれ共通の
制御バス101で接続されている。プログラム格納用デ
ュアルポートメモリ3と、DMAC4と、DSP5〜7
とはそれぞれプログラム転送用バス102で接続されて
いる。
The CPU 1, the memory 2, the dual port memory 3 for storing programs, the DMAC 4,
The dual port memories for F 8 to 10 are connected by a common control bus 101. Dual port memory 3 for storing programs, DMAC 4, DSPs 5 to 7
Are connected by a program transfer bus 102.

【0030】DSP5とCPUIF用デュアルポートメ
モリ8とはDSPローカルバス103で接続され、DS
P6とCPUIF用デュアルポートメモリ9とはDSP
ローカルバス104で接続され、DSP7とCPUIF
用デュアルポートメモリ10とはDSPローカルバス1
05で接続されている。
The DSP 5 and the CPU IF dual port memory 8 are connected by a DSP local bus 103,
P6 and dual port memory 9 for CPUIF are DSP
Connected by local bus 104, DSP7 and CPUIF
Dual port memory 10 is DSP local bus 1
05.

【0031】DMAC4はCPU1からの制御バス10
1と、プログラム転送用バス102とに接続されてい
る。DMAC4は制御バス101のアドレス/データ/
制御バス全てに接続されているが、プログラム転送用バ
ス102に対してはアドレス/制御バスの接続となる。
The DMAC 4 is connected to the control bus 10 from the CPU 1.
1 and the program transfer bus 102. DMAC 4 is the address / data / control bus 101
Although connected to all the control buses, the address / control bus is connected to the program transfer bus 102.

【0032】各DSP5〜7はDMAC4に対してDM
A転送要求信号を出力し、DMAC4はこれに対してD
MA転送許可信号を出力する。DMAC4はCPU1に
対してDMA転送が終了したことを伝えるDMA転送終
了信号を出力する。
Each of the DSPs 5 to 7 sends a DMC signal to the DMAC 4.
A DMA transfer request signal is output, and DMAC 4
An MA transfer permission signal is output. The DMAC 4 outputs a DMA transfer end signal for notifying the CPU 1 that the DMA transfer has ended.

【0033】図2は本発明の一実施例によるDSPプロ
グラムダウンロードシステムの処理動作を示すシーケン
スチャートであり、図3は本発明の一実施例によるDM
A動作を示すタイミングチャートである。また、図4は
本発明の一実施例による全てのDSPにプログラムをダ
ウンロードする時の状態を示すタイミングチャートであ
り、図5は本発明の一実施例による一部のDSPにプロ
グラムをダウンロードする時の動作を示すシーケンスチ
ャートであり、図6は本発明の一実施例による一部のD
SPにプログラムをダウンロードする時の状態を示すタ
イミングチャートである。
FIG. 2 is a sequence chart showing the processing operation of the DSP program download system according to one embodiment of the present invention, and FIG. 3 is a DM chart according to one embodiment of the present invention.
6 is a timing chart showing an A operation. FIG. 4 is a timing chart showing a state when a program is downloaded to all DSPs according to an embodiment of the present invention. FIG. 5 is a timing chart showing a state when a program is downloaded to some DSPs according to an embodiment of the present invention. 6 is a sequence chart showing the operation of FIG.
6 is a timing chart showing a state when a program is downloaded to an SP.

【0034】これら図1〜図6を参照して本発明の一実
施例によるDSPプログラムダウンロードシステムの動
作について説明する。まず、電源投入時の動作について
図2を参照して説明する。
The operation of the DSP program download system according to one embodiment of the present invention will be described with reference to FIGS. First, the operation when the power is turned on will be described with reference to FIG.

【0035】電源投入後、CPU1は初期化処理後、予
めメモリ2内に収められているDSPプログラムをプロ
グラム格納用デュアルポートメモリ3に書込む。また、
電源投入時、DSP5〜7はプログラム転送待ち状態に
なり、DMAC4に対してDMA転送要求を出力する。
After the power is turned on, the CPU 1 writes the DSP program stored in the memory 2 in advance into the dual port memory 3 for storing the program after the initialization processing. Also,
When the power is turned on, the DSPs 5 to 7 enter a program transfer waiting state and output a DMA transfer request to the DMAC 4.

【0036】CPU1はDSPプログラムをプログラム
格納用デュアルポートメモリ3に書込んだ後、DMAC
4に対してDMA開始アドレス、DMA転送バイト数、
DMA転送許可をそれぞれ設定する。
After the CPU 1 writes the DSP program into the dual port memory 3 for storing the program, the CPU 1
4, the DMA start address, the number of DMA transfer bytes,
DMA transfer permission is set.

【0037】DMAC4は設定されたアドレスと転送バ
イト数とによって、DSP5〜7に対してDMA動作を
行う。DMAC4はDSP5〜7に対するDMA動作が
終了した時に、CPU1に対してDMA転送終了信号を
出力する。
The DMAC 4 performs a DMA operation on the DSPs 5 to 7 according to the set address and the number of transfer bytes. The DMAC 4 outputs a DMA transfer end signal to the CPU 1 when the DMA operation for the DSPs 5 to 7 ends.

【0038】DSP5〜7はプログラム転送が終了する
と、CPUIF用デュアルポートメモリ8〜10にプロ
グラムダウンロード完了メッセージを書込み、CPU1
に対してダウンロード完了通知の割込みを出力する。
Upon completion of the program transfer, the DSPs 5 to 7 write a program download completion message to the CPU IF dual port memories 8 to 10, and
Output a download completion notification interrupt.

【0039】次に、図3を参照してDMAC4がDSP
5〜7に対してプログラム転送をする時の詳細なタイミ
ングについて説明する。DSP5〜7の全てのDMA転
送要求信号がロウレベルになると、DMAC4からアド
レスが出力される。
Next, referring to FIG.
The detailed timing when transferring the program to 5 to 7 will be described. When all the DMA transfer request signals of the DSPs 5 to 7 become low level, the address is output from the DMAC 4.

【0040】プログラム格納用デュアルポートメモリ3
はこのアドレスを入力し、このアドレスに対応するデー
タを出力する。DMAC4はアドレス出力後、データが
出力されるタイミングを計ってDMA転送許可信号をロ
ウレベルとする。
Dual port memory 3 for storing programs
Inputs this address and outputs data corresponding to this address. After outputting the address, the DMAC 4 sets the DMA transfer permission signal to a low level at a timing when data is output.

【0041】DSP5〜7はDMA転送許可信号がロウ
レベルになったことを確認して、データを取込み、DM
A転送要求信号をハイレベルにする。DMAC4はDM
A転送要求信号がハイレベルになると、DMA許可信号
をハイレベルにする。DSP5〜7は受取るべきデータ
が終了するまで、DMA転送要求信号にロウレベルを出
力して、上記のサイクルを繰り返し行う。
The DSPs 5 to 7 confirm that the DMA transfer permission signal has become low level, take in the data, and
The A transfer request signal is set to a high level. DMAC4 is DM
When the A transfer request signal goes high, the DMA permission signal goes high. The DSPs 5 to 7 output a low level to the DMA transfer request signal until the data to be received ends, and repeat the above cycle.

【0042】図4に電源投入時からの各DSP5〜7の
状態を表しており、図5に通常動作時の動作を示す。図
5においてプログラム書込みとあるが、この書込みは電
源投入時に書込んだものに対して変更がある場合にのみ
行われ、変更がない場合には行われない。
FIG. 4 shows the state of each of the DSPs 5 to 7 after the power is turned on, and FIG. 5 shows the operation during normal operation. In FIG. 5, there is a program write, but this write is performed only when there is a change to the written one when the power is turned on, and is not performed when there is no change.

【0043】動作中プログラム転送を行う場合、CPU
1はDSP5〜7に対してCPUIF用デュアルポート
メモリ8〜10を介してプログラム転送要求を通知す
る。この通知を受けたDSP5〜7はプログラム転送を
受付ける処理を行い、準備完了後、プログラム転送が可
能になったことをCPU1に対してCPUIF用デュア
ルポートメモリ8〜10を介してプログラム転送許可を
通知する。DSP5〜7はこれと同時に、DMAC4に
対してDMA転送要求信号を出力する。
When performing program transfer during operation, the CPU
1 notifies the DSPs 5 to 7 of a program transfer request via the CPUIF dual port memories 8 to 10. The DSPs 5 to 7 receiving the notification perform a process of accepting the program transfer, and after the preparation is completed, notify the CPU 1 of the program transfer permission to the CPU 1 via the CPU IF dual port memories 8 to 10. I do. At the same time, the DSPs 5 to 7 output a DMA transfer request signal to the DMAC 4.

【0044】CPU1はプログラム転送許可通知を受信
した後、DMAC4に対してDMA開始アドレスとDM
A転送バイト数とDMA転送許可とを設定する。この
時、DMAC4は設定されたアドレスと転送バイト数と
によってDMA動作を行うが、電源投入時との違いは、
DMA転送許可を出力したDSPに対してのみDMA転
送を行うことである。DMA転送後の動作は、上記の電
源投入時のシーケンスと同様である。
After receiving the program transfer permission notice, the CPU 1 issues a DMA start address and DM
A transfer byte count and DMA transfer permission are set. At this time, the DMAC 4 performs a DMA operation according to the set address and the number of transfer bytes.
That is, DMA transfer is performed only to the DSP that has output the DMA transfer permission. The operation after the DMA transfer is the same as the above-described sequence when the power is turned on.

【0045】このほかの電源投入時との違いは、DSP
プログラム転送中にプログラム転送していないDSPに
対して、符号化/復号化の要求を出すことができること
にある(図5及び図6参照)。
The other difference from power-on is that the DSP
It is possible to issue a request for encoding / decoding to a DSP that has not transferred a program during the program transfer (see FIGS. 5 and 6).

【0046】図7は本発明の他の実施例によるDSPプ
ログラムダウンロードシステムの構成を示すブロック図
であり、図8は本発明の他の実施例によるDSPプログ
ラムダウンロードシステムの動作を示すタイミングチャ
ートである。図7において、本発明の他の実施例による
DSPプログラムダウンロードシステムはCPU1と、
メモリ2と、プログラム格納用メモリ11と、DMAC
4と、DSP5,6と、CPUIF(インタフェース)
用メモリ12,13と、バス分離バッファ14〜16
と、バスアービタ17,18とから構成されている。
FIG. 7 is a block diagram showing the configuration of a DSP program download system according to another embodiment of the present invention, and FIG. 8 is a timing chart showing the operation of the DSP program download system according to another embodiment of the present invention. . In FIG. 7, a DSP program download system according to another embodiment of the present invention includes a CPU 1,
Memory 2, program storage memory 11, DMAC
4, DSP5, 6, CPUIF (interface)
Memories 12 and 13 and bus separation buffers 14 to 16
And bus arbiters 17 and 18.

【0047】図7において、本発明の他の実施例による
DSPプログラムダウンロードシステムの基本的構成に
ついては、上記の本発明の一実施例と同様であるが、デ
ュアルポートメモリを使用すると高価となるので、この
点についてさらに工夫している。
Referring to FIG. 7, the basic structure of a DSP program download system according to another embodiment of the present invention is the same as that of the above-described embodiment of the present invention. In this regard, we are further devising this point.

【0048】本発明の他の実施例と本発明の一実施例と
の違いは、プログラム格納用デュアルポートメモリ3と
CPUIF用デュアルポートメモリ8〜10とを、通常
のメモリのプログラム格納用メモリ11とCPUIF用
メモリ12,13とに置換えている点にある。
The difference between the other embodiment of the present invention and the embodiment of the present invention is that the dual port memory 3 for storing programs and the dual port memories 8 to 10 for CPUIF And CPUIF memories 12 and 13.

【0049】これによって、CPU1がメモリ2にアク
セスできるのはDMA転送中以外となる。CPU1がD
MAC4に対してDMA転送許可を設定した段階で、D
MAC4はバス分離バッファ14を閉じてしまい、CP
U1の制御バス101とプログラム転送バス102とを
分離する。言い換えれば、これによって、DMA動作中
でもCPU1を止めることなく、プログラムダウンロー
ドが可能になる。
Thus, the CPU 1 can access the memory 2 except during the DMA transfer. CPU1 is D
When DMA transfer permission is set for MAC4, D
The MAC 4 closes the bus separation buffer 14 and outputs the CP
The control bus 101 of U1 and the program transfer bus 102 are separated. In other words, this allows the program to be downloaded without stopping the CPU 1 even during the DMA operation.

【0050】CPU1がCPUIF用メモリ12,13
にアクセスする時には一度、バスアービタ17,18に
対してバス要求を出力してウエイト要求が解除されるま
で待たされることになる。したがって、このバスアービ
タ17,18を用いたバス調停動作のタイミングは図8
に示すようになる。
The CPU 1 has the CPU IF memories 12 and 13
Is accessed once, a bus request is output to the bus arbiters 17 and 18 and the system waits until the wait request is released. Therefore, the timing of the bus arbitration operation using the bus arbiters 17 and 18 is as shown in FIG.
It becomes as shown in.

【0051】図9は本発明の別の実施例によるDSPプ
ログラムダウンロードシステムの構成を示すブロック図
であり、図10は本発明の別の実施例によるDSPプロ
グラムダウンロードシステムの動作を示すタイミングチ
ャートである。図9において、本発明の別の実施例によ
るDSPプログラムダウンロードシステムはCPU1
と、メモリ2と、プログラム格納用メモリ11と、DM
AC4と、DSP(#1〜#3)5〜7と、CPUIF
(インタフェース)用メモリ12と、バス分離バッファ
14,15と、バスアービタ17とから構成されてい
る。
FIG. 9 is a block diagram showing the configuration of a DSP program download system according to another embodiment of the present invention, and FIG. 10 is a timing chart showing the operation of the DSP program download system according to another embodiment of the present invention. . In FIG. 9, a DSP program download system according to another embodiment of the present invention has a CPU 1
, Memory 2, program storage memory 11, DM
AC4, DSPs (# 1 to # 3) 5 to 7, CPUIF
(Interface) memory 12, bus separation buffers 14 and 15, and bus arbiter 17.

【0052】図9において、本発明の別の実施例による
DSPプログラムダウンロードシステムの基本的構成に
ついては、上記の本発明の他の実施例と同様である。本
発明の別の実施例と本発明の他の実施例との違いは、C
PUIF用メモリ12をDSP5〜7に対して1個づつ
用意するのではなく、n個のDSPに対して1個用意す
る点である。CPUIF用メモリ12はn個のDSPと
CPU1とで共有して使用するようにする。
In FIG. 9, the basic configuration of a DSP program download system according to another embodiment of the present invention is the same as that of the above-described other embodiment of the present invention. The difference between another embodiment of the present invention and another embodiment of the present invention is that C
The point is that one PUIF memory 12 is not prepared for each of DSPs 5 to 7, but one is prepared for n DSPs. The CPU IF memory 12 is used in common by the n DSPs and the CPU 1.

【0053】これによって、DSPローカルバス103
のバス調停を行うバスアービタ17は1つとなり、複数
のデバイスのバス調停を行うことになる。この時のバス
アービタ17を用いたバス調停動作のタイミングは図1
0に示すようになる。よって、本発明の別の実施例で
は、上記の効果のほかに、装置コスト削減という効果が
得られる。
Thus, the DSP local bus 103
The bus arbiter 17 that performs the bus arbitration is one, and the bus arbitration of a plurality of devices is performed. The timing of the bus arbitration operation using the bus arbiter 17 at this time is shown in FIG.
0. Therefore, in another embodiment of the present invention, in addition to the above-described effects, an effect of reducing the apparatus cost can be obtained.

【0054】このように、DMAを1つのチャンネルで
行い、全てのDMA要求信号を処理し、DMA転送を同
時に行うことによって、DSP5〜7に対するプログラ
ム転送時間が1個のDSPに対するダウンロードでも、
30個のDSPに対するダウンロードでも、同時に終了
することができる。
As described above, the DMA is performed on one channel, all the DMA request signals are processed, and the DMA transfer is performed at the same time.
Downloading for 30 DSPs can be completed simultaneously.

【0055】また、プログラム転送をするバスとローカ
ルバスとに別々に接続されるDSP5〜7を使用し、C
PU1とDSP5〜7との間にインタフェース用のメモ
リとプログラム転送用のメモリとを配設し、プログラム
ダウンロードにDMAを使用することによって、1つの
CPU1で複数のDSP5〜7を制御する場合、あるD
SPに対してプログラムのダウンロードを行っている最
中でも、他のDSPに対してインタフェースをとること
ができる。
Further, DSPs 5 to 7 which are separately connected to a bus for performing a program transfer and a local bus are used.
There is a case where a plurality of DSPs 5 to 7 are controlled by one CPU 1 by arranging a memory for interface and a memory for program transfer between PU 1 and DSPs 5 to 7 and using DMA for program download. D
While downloading a program to an SP, an interface can be established with another DSP.

【0056】[0056]

【発明の効果】以上説明したように本発明のDSPプロ
グラムダウンロード方法によれば、音声符号/復号化回
路として用いられる複数のディジタルシグナルプロセッ
サ各々へプログラムをダウンロードするためのDSPプ
ログラムダウンロードシステムにおいて、複数のディジ
タルシグナルプロセッサ各々にダウンロードするプログ
ラムを格納するプログラムダウンロード用メモリへの複
数のディジタルシグナルプロセッサ各々からのダイレク
トメモリアクセスを制御することによって、複数のDS
Pに対してプログラムのダウンロードに掛かる時間を短
縮して高速化することができるという効果がある。
As described above, according to the DSP program download method of the present invention, in the DSP program download system for downloading a program to each of a plurality of digital signal processors used as a voice encoding / decoding circuit, By controlling direct memory access from each of the plurality of digital signal processors to a program download memory storing a program to be downloaded to each of the plurality of digital signal processors,
For P, there is an effect that the time required for downloading the program can be reduced and the speed can be increased.

【0057】また、本発明の他のDSPプログラムダウ
ンロード方法によれば、複数のディジタルシグナルプロ
セッサ各々へのプログラムを伝送するDSPプログラム
転送用バスと、DSPプログラム転送用バスに接続され
かつ複数のディジタルシグナルプロセッサ各々と中央処
理装置とを接続する制御バスとを分離する手段を設ける
ことによって、あるDSPに対してプログラムのダウン
ロードを行っている最中でも、他のDSPに対してイン
タフェースをとることができるという効果がある。
According to another DSP program download method of the present invention, a DSP program transfer bus for transmitting a program to each of a plurality of digital signal processors and a plurality of digital signals connected to the DSP program transfer bus are provided. By providing a means for separating each processor from the control bus connecting the central processing unit, it is possible to interface with another DSP even while downloading a program to one DSP. effective.

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

【図1】本発明の一実施例によるDSPプログラムダウ
ンロードシステムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a DSP program download system according to one embodiment of the present invention.

【図2】本発明の一実施例によるDSPプログラムダウ
ンロードシステムの処理動作を示すシーケンスチャート
である。
FIG. 2 is a sequence chart showing a processing operation of a DSP program download system according to one embodiment of the present invention.

【図3】本発明の一実施例によるDMA動作を示すタイ
ミングチャートである。
FIG. 3 is a timing chart showing a DMA operation according to an embodiment of the present invention.

【図4】本発明の一実施例による全てのDSPにプログ
ラムをダウンロードする時の状態を示すタイミングチャ
ートである。
FIG. 4 is a timing chart showing a state when a program is downloaded to all DSPs according to an embodiment of the present invention.

【図5】本発明の一実施例による一部のDSPにプログ
ラムをダウンロードする時の動作を示すシーケンスチャ
ートである。
FIG. 5 is a sequence chart showing an operation when a program is downloaded to some DSPs according to an embodiment of the present invention.

【図6】本発明の一実施例による一部のDSPにプログ
ラムをダウンロードする時の状態を示すタイミングチャ
ートである。
FIG. 6 is a timing chart showing a state when a program is downloaded to some DSPs according to an embodiment of the present invention.

【図7】本発明の他の実施例によるDSPプログラムダ
ウンロードシステムの構成を示すブロック図である。
FIG. 7 is a block diagram showing a configuration of a DSP program download system according to another embodiment of the present invention.

【図8】本発明の他の実施例によるDSPプログラムダ
ウンロードシステムの動作を示すタイミングチャートで
ある。
FIG. 8 is a timing chart showing an operation of a DSP program download system according to another embodiment of the present invention.

【図9】本発明の別の実施例によるDSPプログラムダ
ウンロードシステムの構成を示すブロック図である。
FIG. 9 is a block diagram showing a configuration of a DSP program download system according to another embodiment of the present invention.

【図10】本発明の別の実施例によるDSPプログラム
ダウンロードシステムの動作を示すタイミングチャート
である。
FIG. 10 is a timing chart showing an operation of a DSP program download system according to another embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 CPU 2 メモリ 3 プログラム格納用デュアルポートメモリ 4 DMAC 5〜7 DSP 8〜10 CPUIF用デュアルポートメモリ 11 プログラム格納用メモリ 12,13 CPUIF用メモリ 14〜16 バス分離バッファ 17,18 バスアービタ DESCRIPTION OF SYMBOLS 1 CPU 2 Memory 3 Dual port memory for program storage 4 DMAC 5-7 DSP 8-10 Dual port memory for CPUIF 11 Memory for program storage 12, 13 CPUIF memory 14-16 Bus separation buffer 17, 18 Bus arbiter

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 音声符号/復号化回路として用いられる
複数のディジタルシグナルプロセッサ各々へプログラム
をダウンロードするためのDSPプログラムダウンロー
ドシステムであって、前記複数のディジタルシグナルプ
ロセッサ各々にダウンロードするプログラムを格納する
プログラムダウンロード用メモリと、前記複数のディジ
タルシグナルプロセッサ各々から前記プログラムダウン
ロード用メモリへのダイレクトメモリアクセスを制御す
る制御手段とを有することを特徴とするDSPプログラ
ムダウンロードシステム。
1. A DSP program download system for downloading a program to each of a plurality of digital signal processors used as an audio encoding / decoding circuit, wherein the program stores a program to be downloaded to each of the plurality of digital signal processors. A DSP program download system comprising: a download memory; and control means for controlling direct memory access from each of the plurality of digital signal processors to the program download memory.
【請求項2】 前記複数のディジタルシグナルプロセッ
サ各々へのプログラムを伝送するDSPプログラム転送
用バスと、前記DSPプログラム転送用バスに接続され
かつ前記複数のディジタルシグナルプロセッサ各々と中
央処理装置とを接続する制御バスと、前記DSPプログ
ラム転送用バスと前記制御バスとを分離する手段とを含
むことを特徴とする請求項1記載のDSPプログラムダ
ウンロードシステム。
2. A DSP program transfer bus for transmitting a program to each of the plurality of digital signal processors, and a bus connected to the DSP program transfer bus and connecting each of the plurality of digital signal processors to a central processing unit. 2. The DSP program download system according to claim 1, further comprising: a control bus; and means for separating the DSP program transfer bus from the control bus.
【請求項3】 前記複数のディジタルシグナルプロセッ
サ各々を共通に前記制御バスに接続するインタフェース
用メモリを含むことを特徴とする請求項1または請求項
2記載のDSPプログラムダウンロードシステム。
3. The DSP program download system according to claim 1, further comprising an interface memory for connecting each of said plurality of digital signal processors to said control bus in common.
【請求項4】 前記制御手段は、1つのダイレクトメモ
リアクセスチャンネルで複数のダイレクトメモリアクセ
ス要求を処理するようにしたことを特徴とする請求項1
から請求項3のいずれか記載のDSPプログラムダウン
ロードシステム。
4. The apparatus according to claim 1, wherein said control means processes a plurality of direct memory access requests on one direct memory access channel.
The DSP program download system according to any one of claims 1 to 3.
JP2000262036A 2000-08-31 2000-08-31 Dsp program download system Pending JP2002073341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000262036A JP2002073341A (en) 2000-08-31 2000-08-31 Dsp program download system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000262036A JP2002073341A (en) 2000-08-31 2000-08-31 Dsp program download system

Publications (1)

Publication Number Publication Date
JP2002073341A true JP2002073341A (en) 2002-03-12

Family

ID=18749772

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000262036A Pending JP2002073341A (en) 2000-08-31 2000-08-31 Dsp program download system

Country Status (1)

Country Link
JP (1) JP2002073341A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004099981A1 (en) * 2003-05-09 2004-11-18 Fujitsu Limited Program load method, load program, and multi-processor
KR100470993B1 (en) * 2002-07-10 2005-03-10 삼성전자주식회사 Method and device for downloading program by using hand-shaking in digital signal processing
JPWO2005076481A1 (en) * 2004-02-10 2008-01-10 松下電器産業株式会社 Encoding / decoding device
JP2008108064A (en) * 2006-10-25 2008-05-08 Toshiba Corp Digital signal processor (dsp) system and starting method of digital signal processor
JP2018507489A (en) * 2016-03-28 2018-03-15 中▲車▼青▲島▼四方▲車▼▲輛▼研究所有限公司Crrc Qingdao Sifang Rolling Stock Research Institute Co.,Ltd. TIGERSHARC DSP boot management chip and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100470993B1 (en) * 2002-07-10 2005-03-10 삼성전자주식회사 Method and device for downloading program by using hand-shaking in digital signal processing
WO2004099981A1 (en) * 2003-05-09 2004-11-18 Fujitsu Limited Program load method, load program, and multi-processor
JPWO2005076481A1 (en) * 2004-02-10 2008-01-10 松下電器産業株式会社 Encoding / decoding device
JP2008108064A (en) * 2006-10-25 2008-05-08 Toshiba Corp Digital signal processor (dsp) system and starting method of digital signal processor
JP2018507489A (en) * 2016-03-28 2018-03-15 中▲車▼青▲島▼四方▲車▼▲輛▼研究所有限公司Crrc Qingdao Sifang Rolling Stock Research Institute Co.,Ltd. TIGERSHARC DSP boot management chip and method
US10203962B2 (en) 2016-03-28 2019-02-12 Crrc Qingdao Sifang Rolling Stock Research Institute Co., Ltd. Tigersharc DSP boot management chip and method

Similar Documents

Publication Publication Date Title
KR100733943B1 (en) Processor system, dma control circuit, dma control method, control method for dma controller, graphic processing method, and graphic processing circuit
EP1059589B1 (en) Multi-channel DMA with scheduled ports
JP2004171209A (en) Shared memory data transfer device
US10409749B2 (en) Semiconductor device and system provided with a communication interface
JPH0855038A (en) Symmetric multiprocessing system,interrupt control unit for it and method for start of processor interrupt signal at inside of symmetric multiprocessing system
JPH03188546A (en) Bus interface control system
JPH01162967A (en) Method and device for interruption processing
JP2000010913A (en) Information processing device and method and distribution medium
JPH11184804A (en) Information processor and information processing method
JP2008152409A (en) Semiconductor integrated circuit
JP2002073341A (en) Dsp program download system
WO2007060932A1 (en) Multi thread processor having dynamic reconfiguration logic circuit
JP2003150395A (en) Processor and program transfer method thereof
US11789884B2 (en) Bus system and method for operating a bus system
JPH07219887A (en) Dma transfer controller
JPH07244607A (en) Queue memory system and method thereof
JP2856709B2 (en) Bus coupling system
JPH03149627A (en) Method for controlling dma for multitask monitor
KR20000033265A (en) Device and method for interfacing chip embedded bus
JPS6240565A (en) Memory control system
JP2022520842A (en) How to synchronize host and coprocessor operations via communication
JP2000076199A (en) Multiprocessor device provided with debugging terminal
JPH0658655B2 (en) Serial I / O method
JP2002157213A (en) Apparatus and method for host port interface unit in digital signal processor
JPH0734189B2 (en) Multiple data input / output control circuit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051227

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060418