JP2520158B2 - Debugging method of digital signal processor - Google Patents

Debugging method of digital signal processor

Info

Publication number
JP2520158B2
JP2520158B2 JP63235176A JP23517688A JP2520158B2 JP 2520158 B2 JP2520158 B2 JP 2520158B2 JP 63235176 A JP63235176 A JP 63235176A JP 23517688 A JP23517688 A JP 23517688A JP 2520158 B2 JP2520158 B2 JP 2520158B2
Authority
JP
Japan
Prior art keywords
signal
data
fifo
empty
full
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP63235176A
Other languages
Japanese (ja)
Other versions
JPH0282323A (en
Inventor
公一 會田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63235176A priority Critical patent/JP2520158B2/en
Publication of JPH0282323A publication Critical patent/JPH0282323A/en
Application granted granted Critical
Publication of JP2520158B2 publication Critical patent/JP2520158B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [概要] 入力側は先入れ先出しメモリからデータを内部メモリ
へ転送して処理を行い出力側の先入れ先出しメモリへ転
送するディジタルシグナルプロセッサのインサーキット
エミュレータによるデバッグ方式に関し, DSPのデバックの際先入れ先出しメモリがエンプティ
またはフルの状態の時にホルト要求を発生した場合に、
それらの状態信号を無効化してDSP内の各部にアクセス
可能にするDSPのデバッグ方式を提供することを目的と
し、 ディジタルシグナルプロセッサは,マイクロプロセッ
サと,前記各先入れ先出しメモリからのエンプティ信号
またはフル信号およびマイクロプロセッサからの書き込
み信号または読み出し信号を受けて転送を行うためのレ
ディ信号を発生する転送指示回路を備え,エンプティ信
号またはフル信号を有効化または無効化する制御入力手
段を設け,転送指示回路は,前記インサーキットエミュ
レータによるホルト要求に対しレディ信号が発生できな
い時に制御入力手段からの制御入力を受け取ると前記エ
ンプティ信号またはフル信号を無効化してレディ信号を
発生し,ディジタルシグナルプロセッサは前記レディー
信号により処理を実行して前記ホルト要求を許可する制
御を行うよう構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A debug method by an in-circuit emulator of a digital signal processor in which an input side transfers data from a first-in first-out memory to an internal memory for processing, and a data is transferred to a first-in first-out memory on an output side. When a first-in, first-out memory is empty or full and a halt request occurs,
For the purpose of providing a debug method of a DSP which makes it possible to access each part in the DSP by invalidating those status signals, a digital signal processor includes a microprocessor and an empty signal or a full signal from each of the first-in first-out memory and a digital signal processor. A transfer instruction circuit for generating a ready signal for receiving a write signal or a read signal from the microprocessor is provided, and a control input means for enabling or disabling an empty signal or a full signal is provided. When the ready signal cannot be generated in response to the halt request by the in-circuit emulator, the empty signal or the full signal is invalidated when a control input is received from the control input means, and a ready signal is generated, and the digital signal processor receives the ready signal. Processing It is configured to perform the control for permitting the halt request.

[産業上の利用分野] 本発明はインサーキットエミュレータからのホルト要
求に対するホルト許可を制御できるディジタルシグナル
プロセッサのデバッグ方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a debugging method of a digital signal processor capable of controlling a halt permission for a halt request from an in-circuit emulator.

近年、設計支援、構造解析等の表示関係の画像処理
(座標変換、クリッピング等)を行うワークステーショ
ンが利用されるようになった。
In recent years, workstations that perform display-related image processing (coordinate conversion, clipping, etc.) such as design support and structural analysis have come into use.

そのような画像処理を行う処理装置としてディジタル
シグナルプロセッサ(DSPと略称される)が用いられ、
マイクロプログラムによりデータの処理が行われる。
A digital signal processor (abbreviated as DSP) is used as a processing device for performing such image processing,
The data is processed by the microprogram.

従来、処理すべきデータは先入れ先出しメモリ(ファ
ーストインファーストアウトメモリ:FIFOと称される)
から読み出してDSPのRAMに転送し、処理済のデータは出
力側の作入れ先出しメモリに転送される。
Conventionally, the data to be processed is first-in first-out memory (first-in first-out memory: called FIFO).
Is read out from and transferred to the RAM of DSP, and the processed data is transferred to the write-in first-out memory on the output side.

DSPはそれぞれ処理機能に応じてプログラムが開発さ
れ、そのプログラムの正常性を確認するためにデバッグ
が行われる。従来、DSPのデバッグはインサーキットエ
ミュレータ(ICEと略称される)によりプログラムを実
行して、必要に応じてホルト要求を行い、ホルト許可が
得られるとその時のデータやマイクロプロセッサの状態
を読み取って解析を行っている。
A program is developed for each DSP according to the processing function, and debugging is performed to confirm the normality of the program. Conventionally, in DSP debugging, a program is executed by an in-circuit emulator (abbreviated as ICE), a halt request is issued if necessary, and when the halt permission is obtained, the data at that time and the state of the microprocessor are read and analyzed. It is carried out.

その場合、処理すべきデータは入力側(前段)のFIFO
から読み取ってプロセッサのRAMに転送され、プロセッ
サにより処理された後出力側(後段)のFIFOに転送され
て書き込むことが繰り返される。ところが、前段のFIFO
にデータが空(エンプティ)の場合、または後段のFIFO
が充満(フル)の場合には、プロセッサは待機状態のま
ま命令の実行をすることができない。
In that case, the data to be processed is the FIFO on the input side (previous stage).
It is read from and transferred to the RAM of the processor, and after being processed by the processor, transferred to the output side (post-stage) FIFO and written. However, the first stage FIFO
If the data is empty (empty), or the latter FIFO
Is full, the processor cannot execute the instruction in the waiting state.

デバッグを行っている時は、そのような待機状態にお
けるDSPの各部のデータを検出することが必要である
が、それができなくなるという問題があった。
When debugging, it is necessary to detect the data of each part of the DSP in such a standby state, but there was a problem that it could not be done.

[従来の技術] 第6図は従来例の構成図を示す。[Prior Art] FIG. 6 is a block diagram of a conventional example.

第6図の60は入力側の先入れ先立しメモリ(FIFOで表
示)、61はディジタルシグナルプロセッサ(DSPで表
示)、62はマイクロプロセッサ(MPUで表示)、620はプ
ログラムアドレスバス、621はプログラムデータバス、6
3はRAM、64はROM、65は出力側のFIFO、66はインサーキ
ットエミュレータ(ICEで表示)、67は代行命令を保持
する命令メモリ、68は制御部、69はパーソナル・コンピ
ュータ(パソコンの略称で表示する)を表す。
In FIG. 6, 60 is a first-in-first-out memory on the input side (represented by FIFO), 61 is a digital signal processor (represented by DSP), 62 is a microprocessor (represented by MPU), 620 is a program address bus, and 621 is Program data bus, 6
3 is RAM, 64 is ROM, 65 is output FIFO, 66 is in-circuit emulator (displayed by ICE), 67 is instruction memory holding proxy instructions, 68 is control unit, 69 is personal computer (abbreviation of personal computer) Is displayed).

従来のDSP61のデバッグの動作を説明すると、本来MPU
62はROM64に格納されたプログラムにより動作するが、
プログラムを作成してデバッグしてバグを取り除いた後
でROM64が作成される。従って、デバッグの際は、ROM64
は使用せず、このインサーキットエミュレータ66の命令
メモリ67に、デバッグの対象となるプログラムを保持
し、DSP61のMPU62によるプログラムの読み出しアクセス
があると、命令メモリ67からプログラムが読み出されて
実行される。
Explaining the debug operation of the conventional DSP61, the MPU originally
62 operates according to the program stored in ROM 64,
ROM64 is created after programming, debugging and bug elimination. Therefore, when debugging, ROM64
If the program to be debugged is held in the instruction memory 67 of this in-circuit emulator 66 and the program is read and accessed by the MPU62 of the DSP61, the program is read from the instruction memory 67 and executed. It

プログラムアドレス620はホルト許可信号が送出され
る前はICE66内の命令メモリのアドレスバスとして用い
られ、DSP61からICE66方向に設定される。ホルト許可信
号が送出された後はDSP61内のRAM63、MPU62内のレジス
タ等をアクセスする為にICE66からDSP方向に設定され
る。
The program address 620 is used as the address bus of the instruction memory in the ICE66 before the halt enable signal is transmitted, and is set in the direction from the DSP61 to the ICE66. After the halt enable signal is sent, the ICE66 is set in the DSP direction to access the RAM63 in the DSP61 and the registers in the MPU62.

また、プログラムデータバス621はホルト許可信号が
送出される前は、ICE66内の命令メモリ67のデータ用と
して使用され、ICE66からDSP61方向に設定される。ホル
ト許可信号が送出された後は、ICE66からのリード・ラ
イト信号によりデータの方向が設定される。
Further, the program data bus 621 is used for the data of the instruction memory 67 in the ICE 66 before the halt enable signal is transmitted, and is set in the direction from the ICE 66 to the DSP 61. After the halt enable signal is sent, the data direction is set by the read / write signal from the ICE66.

デバッグを行っている時、プログラムの或る段階でMP
U62の動作を停止したい場合、ICE66の制御部68からホル
ト要求信号680を出力する。これに対しMPU62が実行中の
命令を終了するとホルト許可信号681をICE66に出力す
る。これを受け取ると、ICE66はプログラムアドレスバ
ス620にアクセスしたいMPU62内のレジスタのアドレス
や、RAM63内のアドレスを出力し、アドレス設定信号683
によりバス上のアドレスを有効化するタイミング信号を
出力する。また、この時ICEからリード・ライト信号682
を出力し、アドレスされた位置からデータを読み取るの
か、そこにデータを書き込むかの何れかを指定する。こ
うして、MPU62またはRAM63のアドレスされたレジスタま
たはメモリ位置のデータを読み出すか、そこに別のデー
タを書き込むかの動作が行われる。その際、パソコン69
は読み取ったデータを表示したり、書き込みたいデータ
を入力する手段として使用する。
MP at some stage of the program when debugging
When it is desired to stop the operation of U62, the control unit 68 of the ICE 66 outputs the halt request signal 680. On the other hand, when the MPU 62 finishes the instruction being executed, the halt enable signal 681 is output to the ICE 66. When this is received, the ICE66 outputs the address of the register in the MPU62 that wants to access the program address bus 620 and the address in the RAM63, and the address setting signal 683
Outputs a timing signal for validating an address on the bus. Also, at this time, the read / write signal 682 from the ICE
To read the data from the addressed location or write the data to that location. Thus, the operation of reading the data in the addressed register or memory location of the MPU 62 or RAM 63 or writing another data there is performed. At that time, PC 69
Is used as a means for displaying the read data and inputting the data to be written.

DSP61により信号処理が施されるデータは、入力側のF
IFO60から供給され、FIFO60に格納されたデータが先入
れ先出し形式で読み出され、プログロムデータバス621
を介してRAM63に転送される。RAM63に格納されたデータ
に対してプログラムによる演算処理が行われて、処理結
果はプログラムデータバス621を介して出力側のFIFO65
に転送される。
The data processed by DSP61 is F
The data supplied from the IFO60 and stored in the FIFO60 is read out in the first-in first-out format, and the program data bus 621
Is transferred to the RAM 63 via. The data stored in the RAM 63 is subjected to arithmetic processing by a program, and the processing result is output to the FIFO 65 on the output side via the program data bus 621.
Transferred to.

MPU62は実行中のデータの処理を終了して、FIFO65へ
転送を行うと、FIFO60に対して読み取り制御信号(反転
R1で表示)として“0"を出力する。これに対し、FIFO60
に読み出すデータが格納されていると、エンプティフラ
グ(反転EF1)が“1"となる。するとアンド回路613の出
力がある入力側レディ信号RDY1が“1"となり、ノア(NO
R)回路614から反転レディ(反転RDY1)信号“0"となっ
て、MPU62は読み取り命令の実行が可能となり、FIFO60
からデータを読み取って、プログラムデータバス621を
通ってRAM63に転送する。第7図に以上に説明した従来
例の読出しフロー図に示す。第7図のMDOはFIFO60に格
納された出力データを表す。
When the MPU62 finishes processing the data being executed and transfers it to the FIFO65, the read control signal (inverted) is sent to the FIFO60.
"0" is output as (displayed by R1). In contrast, FIFO60
When the data to be read is stored in, the empty flag (inversion EF1) becomes "1". Then, the input side ready signal RDY1 with the output of the AND circuit 613 becomes “1”, and the NOR (NO
The R) circuit 614 outputs the inverted ready (inverted RDY1) signal “0”, and the MPU 62 can execute the read instruction.
The data is read from and transferred to the RAM 63 through the program data bus 621. FIG. 7 is a read flow chart of the conventional example described above. MDO in FIG. 7 represents the output data stored in the FIFO 60.

第6図に戻って、書き込みついて説明すると、RAM63
に転送されたデータに対して演算処理を行った後MPU62
からFIFO65にデータを転送する場合、書き込み制御信号
(反転W1で表示)として“0"を発生する。このときFIFO
65からデータを格納する余裕があるとフルフラグ(反転
FF1)として“1"が出力される。この場合は、アンド回
路612の出力である出力レディ信号RDYO1が“1"となり、
ノア回路614から反転レディ(反転RDY1)信号が“0"と
なって、MPU62は書き込み命令の実行が可能となり、RAM
63のデータをFIFO65へ転送する。第8図に以上に説明し
た従来例の書込みフロー図を示す。第8図においてMDI
はFIFO65に書込まれる入力データである。
Returning to FIG. 6, to explain the writing, RAM63
After performing arithmetic processing on the data transferred to the MPU62
When transferring data from the FIFO to the FIFO 65, "0" is generated as the write control signal (displayed by W1 inversion). FIFO at this time
65 full flag (inverted if there is room to store data from
"1" is output as FF1). In this case, the output ready signal RDYO1 which is the output of the AND circuit 612 becomes “1”,
When the inverted ready (inverted RDY1) signal from the NOR circuit 614 becomes “0”, the MPU62 can execute the write instruction and the RAM
Transfers 63 data to FIFO65. FIG. 8 shows a writing flow chart of the conventional example described above. In Figure 8 MDI
Is the input data written to the FIFO65.

プログラムの動作中に、FIFO60にデータが無くなって
エンプティフラグ(反転EF1)が“0"となる場合またはF
IFO65にデータが全部格納されて新たに書き込む余地が
無くなってフルフラグ(反転FF1)が“0"となると、ア
ンド回路612または613の出力が“0"となり、ノア回路61
4からの反転レディ(反転RDY1)信号は“1"となる。こ
の状態ではMPU62はレディ信号が発生(反転RDY1が
“0")するのを待機する状態となり、命令実行が行われ
ない。
When there is no data in the FIFO60 and the empty flag (inverted EF1) is "0" during the program operation, or F
When all the data is stored in the IFO65 and there is no room for new writing and the full flag (inversion FF1) becomes "0", the output of the AND circuit 612 or 613 becomes "0" and the NOR circuit 61.
The inverted ready (inverted RDY1) signal from 4 becomes "1". In this state, the MPU 62 waits for the ready signal to be generated (inversion RDY1 is "0"), and instruction execution is not performed.

[発明が解決しようとする課題] 上記の従来のデバッグ動作において、ホルト要求信号
をICE66から送出した時、FIFO60のデータがエンプティ
(空)の場合、またはFIFO65がフル(充満)の場合で、
読み取りまたは書き込みの命令実行を待機していると、
そのホルト要求信号に対してホルト許可信号は、命令実
行が終了しないので規定時間以内に応答されない。その
ためタイムアウトエラーとなり、DSP61のRAM63、MPU62
内のレジスタ等に対しリード・ライトができないという
問題があった。すなわち、エンプティ状態やフル状態の
場合、そのような状態がどのプログラムの処理で、どの
ようなデータの処理において行われたか等、その各種の
データを知って、それに対処するためのデータを入力す
ること等が出来ないことになる。
[Problems to be Solved by the Invention] In the above conventional debug operation, when a halt request signal is sent from the ICE66, when the data in the FIFO60 is empty (empty), or when the FIFO65 is full (full),
Waiting for a read or write instruction to execute
In response to the halt request signal, the halt enable signal is not responded within the specified time because the instruction execution is not completed. Therefore, a time-out error occurs, and the RAM63 of DSP61, MPU62
There was a problem that it was not possible to read or write to the registers inside. That is, in the case of an empty state or a full state, knowing various kinds of data such as what program processing and what kind of data processing has performed such a state, and input data for coping with it. You will not be able to do things.

本発明は、DSPのデバッグの際先入れ先出しメモリが
エンプティまたはフルの状態の時にホルト要求を発した
場合に、それらの状態信号を無効化してDSP内を各部に
アクセス可能にするDSPのデバッグ方式を提供すること
を目的とする。
INDUSTRIAL APPLICABILITY The present invention provides a DSP debugging method in which, when a first-in first-out memory is empty or full, a halt request is issued when the DSP is debugged, these status signals are invalidated and each part in the DSP can be accessed. The purpose is to do.

[課題を解決するための手段] 第1図は本発明の基本的構成図を示す。[Means for Solving the Problems] FIG. 1 shows a basic configuration of the present invention.

第1図の10は制御入力手段、11は入力側の先入れ先出
しメモリ(FIFO)、12はディジタルシグナルプロセッサ
(DSP)、121は転送指示回路、122はマイクロプロセッ
サ(MPU)、123はRAM、124はROM、13は出力側の光入れ
先出しメモリ(FIFO)、14はインサーキットエミュレー
タ(ICE)を表す。
In FIG. 1, 10 is control input means, 11 is first-in first-out memory (FIFO) on the input side, 12 is a digital signal processor (DSP), 121 is a transfer instruction circuit, 122 is a microprocessor (MPU), 123 is RAM, and 124 is ROM, 13 is a light-in first-out memory (FIFO) on the output side, and 14 is an in-circuit emulator (ICE).

本発明はDSPにおいて入力側のFIFOからデータを読出
す際、または出力側のFIFOへデータを書込む際に、入力
側FIFOのエンプティ状態または出力側FIFOのフル状態の
発生した場合に、転送の実行を指示する転送指示回路が
エンプティ信号またはフル信号を無効化する制御入力に
より実行指示を発生可能にすることにより、デバッグ時
のホルト要求に対しホルト許可を発生できるようにする
ものである。
The present invention, when reading data from the input side FIFO in the DSP, or writing data to the output side FIFO, when the input side FIFO empty state or the output side FIFO full state occurs, the transfer A transfer instruction circuit for instructing execution can generate an execution instruction by a control input for invalidating an empty signal or a full signal so that a halt permission can be generated for a halt request at the time of debugging.

[作用] 第1図の入力側FIFO11は前段から供給されたデータが
格納され、DSP12のMPU122によりRAM123に転送されて、R
AM123においてICEのRAM141に格納されたプログラムによ
り処理された後、出力側FIFO13にRAM123のデータが転送
される。
[Operation] The data supplied from the previous stage is stored in the input side FIFO 11 of FIG. 1, and the data is transferred to the RAM 123 by the MPU 122 of the DSP 12 and R
After being processed by the program stored in the RAM 141 of the ICE in the AM 123, the data in the RAM 123 is transferred to the output FIFO 13.

DSP12の転送指示回路121は、MPU122からの読み出し制
御信号R、書込み制御信号Wのそれぞれを受け入れて、
その時の入力側FIFO11または出力側FIFO13からのエンプ
ティフラグE、フルフラグFの状態を判別して、条件が
合えばレディ(RDY)信号をMPU122に出力する。この場
合、入力側FIFO11にデータが有る場合(エンプティ状態
でない時)は読み出し制御信号Rに対しRDY信号が発生
し読出しが実行され、同様に出力側FIFO13にデータを格
納する領域が有れば(フル状態でない時)書き込み制御
信号Wに対しRDY信号が発生し書込みが実行される。
The transfer instruction circuit 121 of the DSP 12 receives each of the read control signal R and the write control signal W from the MPU 122,
At that time, the states of the empty flag E and the full flag F from the input side FIFO 11 or the output side FIFO 13 are discriminated, and if the conditions are satisfied, a ready (RDY) signal is output to the MPU 122. In this case, when there is data in the input side FIFO 11 (when not in the empty state), the RDY signal is generated in response to the read control signal R and reading is executed. Similarly, if there is an area for storing data in the output side FIFO 13 ( When not in the full state) The RDY signal is generated in response to the write control signal W and writing is executed.

入力側FIFO11がエンプティ状態から、出力側FIFO13が
フル状態である時に、読出しまたは書込み制御が行われ
る場合は、通常の場合転送指示回路121はRDY信号を発生
できないので、デバッグのためにホルト要求がICE14か
ら発生してもホルト許可が出力できない。そこで、制御
入力手段10から入力側の制御信号WAITOまたは出力側の
制御信号WAITIを入力する。この入力により転送指示回
路はその時のエンプティフラグEまたはフルフラグFを
無効化して、RDY信号を出力するものである。このRDY信
号によりMPU122はその読出しまたは書込みの命令を実行
して終了すると、ICE14からのホルト要求を受付けてホ
ルト許可を出力する。そうすると、ICE14からDSP12内の
MPU122またはRAM123の内部のデータをアドレス指定して
読み出し可能となる。
When read or write control is performed when the input side FIFO 11 is in the empty state and the output side FIFO 13 is in the full state, the transfer instruction circuit 121 cannot normally generate the RDY signal, so a halt request is issued for debugging. Even if it occurs from ICE14, the halt permission cannot be output. Therefore, the control signal WAITO on the input side or the control signal WAITI on the output side is input from the control input means 10. By this input, the transfer instruction circuit invalidates the empty flag E or the full flag F at that time and outputs the RDY signal. When the RPU signal causes the MPU 122 to execute the read or write command and end, the MPU 122 receives the halt request from the ICE 14 and outputs the halt permission. Then, from ICE14 to DSP12
Data in the MPU122 or RAM123 can be addressed and read.

[実施例] 本発明の実施例構成図を第2図に示す。[Embodiment] FIG. 2 shows a block diagram of an embodiment of the present invention.

第2図の20〜29は第6図の従来例の構成における60〜
69に対応して、20は入力側のFIFO、21はDSP、22はMUP、
220はプログラムアドレスバス、221はプログラムデータ
バス、23はRAM、24はROM、25は出力側のFIFO、26はIC
E、27は代行命令を保持する命令メモリ、28は制御部、2
9はパソコンを表す。
20 to 29 of FIG. 2 are 60 to 60 in the configuration of the conventional example of FIG.
Corresponding to 69, 20 is input FIFO, 21 is DSP, 22 is MUP,
220 is a program address bus, 221 is a program data bus, 23 is RAM, 24 is ROM, 25 is an output FIFO, 26 is an IC
E and 27 are instruction memories holding proxy instructions, 28 is a control unit, 2
9 indicates a personal computer.

実施例の構成において、通常のデバッグの動作は従来
例の構成(第6図)について説明した動作と変わらない
ので省略する。第1図の転送指示回路121の具体的構成
例がDSP21内の回路210〜216の部分であり、第1図の制
御入力手段は図示しないが、周知のスイッチ回路(手動
またはソフトウェアにより切換えられる)を用いて発生
可能であり、スイッチから発生する制御信号WAITO1、WA
ITI1がそれぞれ信号線200,201から供給される。
In the configuration of the embodiment, the normal debugging operation is the same as the operation described for the configuration of the conventional example (FIG. 6), and therefore will be omitted. A specific configuration example of the transfer instruction circuit 121 in FIG. 1 is the circuits 210 to 216 in the DSP 21, and the control input means in FIG. 1 is not shown, but a well-known switch circuit (switched manually or by software). Control signals WAITO1 and WA generated from the switch.
ITI1 is supplied from the signal lines 200 and 201, respectively.

第2図の転送指示回路の構成図を第3図(a)に示
し、その真理値を表す図を第3図(b)に示す。
A block diagram of the transfer instruction circuit of FIG. 2 is shown in FIG. 3 (a), and a diagram showing its truth value is shown in FIG. 3 (b).

第3図(a)のイ.において、反転EFは入力側FIFO20
(第2図)のエンプティフラグの反転信号であり、FIFO
20が空の状態の時この信号は“0"になり、空きでない時
“1"となる。RはMPU22からの読出し制御信号である反
転R1をインバータ回路210でさらに反転した信号であ
り、読出しを行う時に“1"となる。
FIG. 3 (a) a. EF is the input FIFO20
This is the inverted signal of the empty flag (Fig. 2), and the FIFO
This signal is "0" when 20 is empty and "1" when it is not empty. R is a signal obtained by further inverting R1 which is a read control signal from the MPU 22 in the inverter circuit 210, and becomes "1" when reading is performed.

また、第3図(a)のロ.において反転FFは出力側FI
FO25(第2図)のフルフラグの反転信号であり、FIFO25
がフル状態の時この信号は“0"になる、フル状態でない
と“1"となる。WはMPU22からの書込み制御信号である
反転W1をインバータ回路211でさらに反転した信号であ
り、書込みを行う時に“1"となる。
In addition, FIG. FF is the output FI
This is the inverted signal of the full flag of FO25 (Fig. 2), and FIFO25
This signal becomes "0" when is in the full state, and becomes "1" when not in the full state. W is a signal obtained by further inverting the inversion W1 which is the write control signal from the MPU 22 in the inverter circuit 211, and becomes "1" when writing is performed.

第3図(a)イ.とロ.のR/Wの各制御信号の各状
態、反転EF/反転FF信号の各状態の組み合わせに対し
て、制御信号WAITIとWAITOの“1"および“0"に対してRD
YI(読出し実行のレディ信号)およびDYO(書込み実行
のレディ信号)の出力が第3図(b)に示されている。
FIG. 3 (a) a. And b. RD for control signals WAITI and WAITO “1” and “0” for each combination of R / W control signals and each state of inverted EF / inverted FF signals
Outputs of YI (read execution ready signal) and DYO (write execution ready signal) are shown in FIG. 3 (b).

これによれば、WAITIまたはWAITOを“0"にすることに
より、エンプティ状態(反転FE=“0")またはフル状態
(反転FF=“0")における読出し(R=“1")または書
込み(W=“1")に対し、レディ出力(RDYI,RDYO)が
“1"となり、命令を実行でき、エンプティフラグやフル
フラグを無効化する。
According to this, by setting WAITI or WAITO to "0", reading (R = "1") or writing (Empty FE = "0") or full (Inversion FF = "0") or write ( For W = "1", the ready output (RDYI, RDYO) becomes "1", the instruction can be executed, and the empty flag and full flag are invalidated.

即ち、読出し(R=“1")時にFIFO20が空(反転EF=
“0")の場合に、制御信号をWAITI=“0"、即ちノーWAI
Tに設定することにより、RDYI=“1"(レディ状態)と
することができ、MPU22は命令の実行(読出し)が可能
となる。この場合、FIFO20にはデータが入ってないのに
読出すことになるが、それ以前にICE26からホルト要求
信号280が出ていると、その命令実行直後にMPU22はその
ホルト要求に対してホルト許可信号281が出力され、ICE
26からDSP21の各部にアクセスして、FIFO20が空き状態
となった時の状況を知るための各部のデータを得ること
ができる。
That is, when reading (R = “1”), the FIFO 20 is empty (inversion EF =
In case of "0"), the control signal is WAITI = "0", that is, no WAI
By setting it to T, RDYI = "1" (ready state), and the MPU22 can execute (read) instructions. In this case, the FIFO20 does not contain any data, but it will be read.However, if the halt request signal 280 is output from the ICE26 before that, the MPU22 will grant the halt request to that halt request immediately after the execution of that instruction. Signal 281 is output and ICE
From 26, it is possible to access each part of the DSP 21 and obtain data of each part for knowing the situation when the FIFO 20 becomes empty.

また、WAITI=“1"、即ちWAITに設定すると、反転EF
=“1"(空きでない状態)かつ読出し(R=“1")の場
合にだけRDYIが“1"となり、状態信号(反転EF)を有効
化する。
If WAITI = "1", that is, WAIT is set, inversion EF
RDYI becomes "1" only when = 1 (not empty) and read (R = "1"), and the status signal (inversion EF) is validated.

同様に、WAITO=“0"、即にノーWAITに設定すると、
書込み(W=“1")でフル状態(反転FF=“0")であっ
てもRDY=“1"(レディ状態)となり、MPU22は命令を実
行可能となる。
Similarly, if WAITO = "0", immediately set to no WAIT,
Even if the write (W = "1") is in the full state (reverse FF = "0"), RDY = "1" (ready state), and the MPU22 can execute the instruction.

この場合、ICE26からホルト要求信号280が出力されて
いると、FIFO25への転送(フル状態の中にデータを書込
む)が行われるが、その後にホルト許可信号281が入力
されて、DSP21内に各部のアクセスすることができる。
In this case, when the halt request signal 280 is output from the ICE26, transfer to the FIFO25 (writing data in the full state) is performed, but after that, the halt enable signal 281 is input and the DSP21 is You can access each part.

また、WAITO=“1"、即ちWAITの設定をする場合は、
反転FF=“1"かつ書込み(W=“1"の時RDY=“1"とな
り、状態信号を有効化する。
If WAITO = "1", that is, WAIT is set,
Inversion FF = "1" and write (when W = "1", RDY = "1", enabling the status signal).

第4図に本発明の他の実施例1の構成図を示し、第5
図に本発明の他の実施例2の構成図を示す。
FIG. 4 shows a block diagram of another embodiment 1 of the present invention, and FIG.
FIG. 9 shows a block diagram of another embodiment 2 of the present invention.

第4図と第5図のいずれの場合も、FIFO−DSP−FIFO
−DSP−FIFOの複数段のディジタルシグナルプロセッサ
(DSP)により、入力データを順次に処理する構成とな
っている。そして、DSP1とDSP2のそれぞれにおいて、本
発明による制御信号WAITI,WAITOが供給され、それぞれI
CE1,ICE2からのホルト要求に対しホルト許可がMPUから
得られると、対応するDSP1またはDSP2にアクセスするこ
とができる。
In both cases of FIG. 4 and FIG. 5, FIFO-DSP-FIFO
-DSP-FIFO has multiple stages of digital signal processor (DSP) to process input data sequentially. Then, the control signals WAITI and WAITO according to the present invention are supplied to the DSP1 and the DSP2, respectively.
When the halt permission is obtained from the MPU in response to the halt request from CE1 and ICE2, the corresponding DSP1 or DSP2 can be accessed.

第4図の構成では、デバッグを実行する場合のデー
タ,プログラムの入出力を行う手段であるパソコンを、
各インサーキットエミュレータICE1とICE2に対応して別
々に設けて個別に操作される。これに対し第5図の構成
では、各インサーキットエミュレータICE1とICE2に対し
一台のパソコンを共用して操作するものである。
In the configuration shown in FIG. 4, a personal computer, which is a means for inputting / outputting data and programs when executing debugging,
Each in-circuit emulator ICE1 and ICE2 is provided separately and operated individually. On the other hand, in the configuration shown in FIG. 5, a single personal computer is shared by the in-circuit emulators ICE1 and ICE2 for operation.

[発明の効果] 本発明によれば、ディジタルシグナルプロセッサのデ
バッグの際、作入れ先出しメモリがエンプティまたはフ
ルの状態であってもディジタルシグナルプロセッサ内の
レジスタ等のリード、ライトを行ってデバッグすること
が可能となる。
[Effects of the Invention] According to the present invention, at the time of debugging a digital signal processor, it is possible to perform debugging by reading and writing registers and the like in the digital signal processor even when the write-in first-out memory is empty or full. Is possible.

特に次の〜のような条件下でのデバッグを可能と
することができる。
In particular, it is possible to debug under the following conditions.

FIFOからMPUにウエイトがかかっている状態でブレー
クコマンド(ホルト要求)を実行して、ホルト要求信号
の出力に対しホルト許可信号が規定時間以内に応答され
ないでタイムアウトエラーとなった場合。
When a break command (a halt request) is executed while the MPU is waiting from the FIFO and the halt enable signal is not responded within the specified time to the output of the halt request signal, resulting in a timeout error.

DSPのプログラムの作成ミスで入力用FIFOがエンプテ
ィまたは出力用FIFOがフルでMPUにウエイトがかかって
いる状態の時ブレークコマンドを実行し、以下と同様
になる場合。
When the break command is executed when the input FIFO is empty or the output FIFO is full and the MPU is waiting due to a DSP program creation error, and the following occurs.

ICEを複数台接続し、複数台にホルト要求を出し、そ
の中でエンプティまたはフルの状態でホルト要求がかか
り、以下と同様になる場合。
When multiple ICEs are connected and a halt request is issued to multiple units, and a halt request is applied in the empty or full state, and the same as the following cases.

【図面の簡単な説明】 第1図は本発明の基本構成図、第2図は本発明の実施例
構成図、第3図(a)は転送指示部の構成図、第3図
(b)は動作真理値を表す図、第4図は他の実施例の1
の構成図、第5図は他の実施例2の構成図、第6図は従
来例の構成図、第7図は従来例の読出しフロー図、第8
図は従来例の書込みフロー図である。 第1図中、 10:制御入力手段 11,13:先入れ先出しメモリ(FIFO) 12:ディジタルシグナルプロセッサ(DSP) 121:転送指示回路 122:マイクロプロセッサ(MPU) 123:RAM 124:ROM 14:インサーキットエミュレータ(ICE)
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is a configuration diagram of an embodiment of the present invention, FIG. 3 (a) is a configuration diagram of a transfer instruction unit, and FIG. 3 (b). Shows a motion truth value, and FIG. 4 shows 1 of another embodiment.
5 is a block diagram of another embodiment 2, FIG. 6 is a block diagram of a conventional example, FIG. 7 is a read flow chart of the conventional example, and FIG.
The figure is a conventional writing flow chart. In FIG. 1, 10: control input means 11, 13: first-in first-out memory (FIFO) 12: digital signal processor (DSP) 121: transfer instruction circuit 122: microprocessor (MPU) 123: RAM 124: ROM 14: in-circuit emulator (ICE)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力側の先入れ先出しメモリからデータを
内部メモリへ転送して処理を行い出力側の先入れ先出し
メモリへ転送するディジタルシグナルプロセッサのイン
サーキットエミュレータによるデバッグ方式において, 前記ディジタルシグナルプロセッサは,マイクロプロセ
ッサと,前記各先入れ先出しメモリからのエンプティ信
号またはフル信号およびマイクロプロセッサからの書き
込み信号または読み出し信号を受けて転送を行うための
レディ信号を発生する転送指示回路を備え, 前記エンプティ信号またはフル信号を有効化または無効
化する制御入力手段を設け, 前記転送指示回路は,前記インサーキットエミュレータ
によるホルト要求に対しレディ信号が発生できない時に
前記制御入力手段からの制御入力を受け取ると前記エン
プティ信号またはフル信号を無効化してレディ信号を発
生し, 前記ディジタルシグナルプロセッサは前記レディー信号
により処理を実行して前記ホルト要求を許可する制御を
行うことを特徴とするディジタルシグナルプロセッサの
デバッグ方式。
1. A debugging method by an in-circuit emulator of a digital signal processor for transferring data from a first-in first-out memory on an input side to an internal memory for processing and transferring the data to a first-in first-out memory on an output side, wherein the digital signal processor is a microprocessor. And a transfer instruction circuit that generates an empty signal or a full signal from each of the first-in first-out memory and a ready signal for performing a transfer in response to a write signal or a read signal from the microprocessor, and the empty signal or the full signal is enabled. Control input means for enabling or disabling is provided, and the transfer instruction circuit receives the control input from the control input means when a ready signal cannot be generated in response to a halt request by the in-circuit emulator. The ready signal is generated to disable the Petit signal or full signal, wherein the digital signal processor debugging system of the digital signal processor and performing control to permit the halt request executes processing by the ready signal.
JP63235176A 1988-09-20 1988-09-20 Debugging method of digital signal processor Expired - Fee Related JP2520158B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63235176A JP2520158B2 (en) 1988-09-20 1988-09-20 Debugging method of digital signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63235176A JP2520158B2 (en) 1988-09-20 1988-09-20 Debugging method of digital signal processor

Publications (2)

Publication Number Publication Date
JPH0282323A JPH0282323A (en) 1990-03-22
JP2520158B2 true JP2520158B2 (en) 1996-07-31

Family

ID=16982194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63235176A Expired - Fee Related JP2520158B2 (en) 1988-09-20 1988-09-20 Debugging method of digital signal processor

Country Status (1)

Country Link
JP (1) JP2520158B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5375228A (en) * 1991-02-04 1994-12-20 Analog Devices, Inc. Real-time signal analysis apparatus and method for digital signal processor emulation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62214441A (en) * 1986-03-17 1987-09-21 Fujitsu Ltd Processor halt control system
JPS63118648U (en) * 1987-01-26 1988-08-01

Also Published As

Publication number Publication date
JPH0282323A (en) 1990-03-22

Similar Documents

Publication Publication Date Title
JP3105223B2 (en) Debug peripherals for microcomputers, microprocessors and core processor integrated circuits
US4879646A (en) Data processing system with a pipelined structure for editing trace memory contents and tracing operations during system debugging
US5345580A (en) Microprocessor device and emulator device thereof
JP2539199B2 (en) Digital processor controller
US5109333A (en) Data transfer control method and apparatus for co-processor system
US20030196146A1 (en) Systems and methods for testing processors
US20100153786A1 (en) Processor, multiprocessor, and debugging method
JPH0689201A (en) Microprocessor having run/stop pin for accessing idle mode and operating method thereof
US20030100133A1 (en) System-on-chip breakpoint synchronization
US6594741B1 (en) Versatile write buffer for a microprocessor and method using same
US7100027B1 (en) System and method for reproducing system executions using a replay handler
JP2520158B2 (en) Debugging method of digital signal processor
US5287522A (en) External procedure invocation apparatus utilizing internal branch vector interrupts and vector address generation, in a RISC chip
KR100223096B1 (en) Method and apparatus for observing internal memory-mapped registers
JPH08272770A (en) Microcontroller development system
WO1994016391A1 (en) Bus to bus interface with address translation
JPH0581087A (en) Processor monitoring system
JPS6316350A (en) Microprocessor control system
KR100658485B1 (en) Microprocessor development system
JPH096641A (en) Information processor
JP3366235B2 (en) Data read control device
JP2954006B2 (en) Emulation device and emulation method
JPH07175661A (en) User program load system
JPS62269237A (en) Data processor
JPH02112054A (en) Data processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees