JPH07262045A - Dsp firmware debugging device - Google Patents

Dsp firmware debugging device

Info

Publication number
JPH07262045A
JPH07262045A JP6046264A JP4626494A JPH07262045A JP H07262045 A JPH07262045 A JP H07262045A JP 6046264 A JP6046264 A JP 6046264A JP 4626494 A JP4626494 A JP 4626494A JP H07262045 A JPH07262045 A JP H07262045A
Authority
JP
Japan
Prior art keywords
data
parallel
serial
personal computer
dsp
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.)
Withdrawn
Application number
JP6046264A
Other languages
Japanese (ja)
Inventor
Hiroaki Miyamoto
博明 宮本
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 JP6046264A priority Critical patent/JPH07262045A/en
Publication of JPH07262045A publication Critical patent/JPH07262045A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To provide a DSP firmware debugging device with which data can be easily inputted/outputted between the host personal computer of the debugging device and a DSP to debug an incorporated program and the fetching of first data from the host personal computer into the DSP can be prevented from being missed just after the DSP program execution start. CONSTITUTION:The debugging device is composed of a host personal computer 2, data register 11 for writing parallel data for program debugging from the host personal computer, parallel/serial converter 12 for reading the parallel data written in the data register 11, converting them to serial data and transmitting those data to the DSP, and a serial/parallel converter 22 for parallel- converting the serial data from the DSP 1. Further, this device is composed of a data register 23 for writing the parallel-converted data and a parallel data bus 3 for exchanging data between the host personal computer 2 and two registers 11 and 23.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル信号制御装
置(Digital Signal Processo
r,以下、DSPと称する)のプログラムのデバッグを
行うファームウェアデバッグ装置のホストパソコンと、
プログラムのデバッグを行うDSPとの間のデータの入
出力に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital signal processor (Digital Signal Process).
r, hereinafter referred to as DSP), a host personal computer of a firmware debug device for debugging a program,
It relates to input / output of data to / from a DSP for debugging a program.

【0002】DSPのファームウェアデバッグ装置に
は、DSPに内蔵するプログラムをデバッグするため
に、デバッグ装置のホストパソコンからデバッグ用のパ
ラレルデータを、シリアルデータに変換してDSPに入
力し、かつ、DSPから出力する応答シリアル出力デー
タをパラレルデータに変換してホストパソコンに入力す
る機能が提供されている。しかし、メモリサイズの制
限、入力開始、出力開始を任意に行うことができないた
め、先頭の入力データは、DSPの初期設定処理のため
にDSPに取り込めない等の問題がある。
In order to debug a program built in the DSP, a DSP firmware debug device converts parallel data for debugging from a host personal computer of the debug device into serial data and inputs the serial data to the DSP, and the DSP A function to convert the response serial output data to parallel data and input it to the host PC is provided. However, since it is not possible to arbitrarily limit the memory size, start input, and start output, there is a problem that the first input data cannot be taken into the DSP due to the initialization processing of the DSP.

【0003】このため、メモリサイズの制限がなく、シ
リアル入出力が任意のタイミングで開始できるファーム
ウェア開発装置が必要となる。
Therefore, there is a need for a firmware development apparatus which has no memory size limitation and can start serial input / output at arbitrary timing.

【0004】[0004]

【従来の技術】図5〜図7を用いて従来技術について説
明する。図5は従来例を示す図で、図6は従来例におけ
るシリアル入力タイミングを示す図で、図7は従来例に
おけるシリアル出力タイミングを示す図である。
2. Description of the Related Art A conventional technique will be described with reference to FIGS. 5 is a diagram showing a conventional example, FIG. 6 is a diagram showing serial input timing in the conventional example, and FIG. 7 is a diagram showing serial output timing in the conventional example.

【0005】従来のDSPファームウェアデバッグ装置
で、DSP1にシリアルデータの入出力を行う場合は、
ホストパソコン2からのパラレルデータをパラレルデー
タバス3に出力し、バス切替え回路17を介してパラレ
ル入力メモリ16に書き込むようにしていた。
In the conventional DSP firmware debug device, when inputting / outputting serial data to / from the DSP 1,
The parallel data from the host personal computer 2 is output to the parallel data bus 3 and written in the parallel input memory 16 via the bus switching circuit 17.

【0006】このパラレル入力メモリ16のデータをD
SP1に入力する方法を図6のシリアル入力タイミング
を示す図を用いて説明する。なお、図6の例は8ビット
のシリアルデータの場合である。
The data of the parallel input memory 16 is set to D
A method of inputting to SP1 will be described with reference to FIG. 6 showing the serial input timing. The example of FIG. 6 is for 8-bit serial data.

【0007】いま、アドレスカウンタ15の値がn−1
であったとすると、パラレル入力メモリ16のn−1番
地のパラレルデータ(n−1)は、クロック発生回路6
からのシリアル同期クロックに同期して、パラレルリ
ード信号により、のタイミングで出力され、バス切
替え回路17を介してパラレル/シリアル変換器12に
入力される。
Now, the value of the address counter 15 is n-1.
Then, the parallel data (n-1) at the address n-1 of the parallel input memory 16 is the clock generation circuit 6
In synchronization with the serial synchronous clock from the parallel read signal, the parallel output signal is output at the timing of and is input to the parallel / serial converter 12 via the bus switching circuit 17.

【0008】パラレルリード信号は、アドレスカウン
タ15のカウントアップクロックとしても使用され、
のタイミングでアドレスカウンタ15の値がnにカウン
トアップする。パラレル/シリアル変換器12に入力さ
れたパラレルデータ(n−1)は、シリアルビットク
ロックにより、のタイミングで、ビット8,ビット
7,・・・・,ビット1のようにシリアルデータに変換
され、シリアル入力データ13としてDSP1に入力さ
れる。
The parallel read signal is also used as a count-up clock of the address counter 15,
The value of the address counter 15 is incremented to n at the timing. The parallel data (n-1) input to the parallel / serial converter 12 is converted into serial data such as bit 8, bit 7, ..., Bit 1 at the timing of by the serial bit clock, The serial input data 13 is input to the DSP 1.

【0009】次に、DSP1からのシリアル出力データ
21をパラレル出力メモリ26に書き込む方法を図7の
シリアル出力タイミングを示す図を用いて説明する。こ
こで、アドレスカウンタ25の値はn−1とする。
Next, a method of writing the serial output data 21 from the DSP 1 into the parallel output memory 26 will be described with reference to the diagram showing the serial output timing of FIG. Here, the value of the address counter 25 is n-1.

【0010】DSP1からのシリアル出力データ21は
シリアル同期クロックに同期してシリアルビットクロ
ックによりのタイミングで、DSP1からシリアル
/パラレル変換器22へ出力される。このシリアルデー
タがシリアル/パラレル変換器22により、のタイミ
ングでパラレルデータに変換される。このパラレルデー
タはバス切替え回路27を介して、パラレルライト信号
により、パラレル出力メモリ26のn−1番地に書き
込まれる。パラレルライト信号は、アドレスカウンタ
25のカウントアップクロックとしても使用され、の
タイミングでアドレスカウンタ25の値がnにカウント
アップする。
The serial output data 21 from the DSP 1 is output from the DSP 1 to the serial / parallel converter 22 at the timing of the serial bit clock in synchronization with the serial synchronization clock. This serial data is converted into parallel data by the serial / parallel converter 22 at the timing of. This parallel data is written to the address n-1 of the parallel output memory 26 by the parallel write signal via the bus switching circuit 27. The parallel write signal is also used as a count-up clock of the address counter 25, and the value of the address counter 25 counts up to n at the timing.

【0011】このようにしてDSP1から出力したシリ
アルデータはシリアル/パラレル変換器22でパラレル
データに変換されてパラレル出力メモリ26に書き込ま
れ、バス切替え回路27を介してパラレルデータバス3
に出力され、ホストパソコン2に読み込まれる。
The serial data thus output from the DSP 1 is converted into parallel data by the serial / parallel converter 22 and written in the parallel output memory 26, and the parallel data bus 3 is sent via the bus switching circuit 27.
Output to the host personal computer 2.

【0012】[0012]

【発明が解決しようとする課題】しかし、このような従
来技術では、ホストパソコン2からのパラレルデータの
入出力にメモリを使用され、メモリはデバッグ装置のホ
ストパソコン2とDSP1の双方がともに読み書きを行
っているため、次のような問題があった。 (1)ホストパソコン2からの制御が、下記のの順番に
行わねばならず、操作が複雑になる。
However, in such a conventional technique, a memory is used for input / output of parallel data from the host personal computer 2, and the memory is read and written by both the host personal computer 2 and the DSP 1 of the debug device. Because of this, there were the following problems. (1) The control from the host personal computer 2 must be performed in the following order, which complicates the operation.

【0013】・ホストパソコン2からパラレル入力メモ
リへのデータの設定、 ・DSP1の実行、 ・DSP1からパラレル出力メモリ26に書き込まれた
データをホストパソコン1に読み込む、 (2)メモリの入出力は双方向バスになっているので、
ホストパソコン2からの読み書きとDSP1からの読み
書きを切替える回路が必要となる。 (3)メモリの入出力用のメモリサイズが固定なので、
メモリサイズよりも大きいデータを入出力する場合は、
データを分割して何回かに分けて実行しなければならな
い。 (4)DSP1のプログラムの実行開始直後は、初期化
処理のため、DSP1において、シリアルデータの入出
力が正常に行われないので、パラレル入力メモリに書き
込まれた最初のデータがDSP1に取り込まれない場合
がある。
Setting of data from the host personal computer 2 to the parallel input memory, execution of the DSP 1, reading of data written from the DSP 1 to the parallel output memory 26 into the host personal computer 1, (2) both input and output of the memory Because it is a bus for
A circuit for switching between reading and writing from the host personal computer 2 and reading and writing from the DSP 1 is required. (3) Since the memory size for memory input / output is fixed,
When inputting / outputting data larger than the memory size,
The data must be divided and executed several times. (4) Immediately after the start of the execution of the program of the DSP1, serial data is not input / output normally in the DSP1 due to the initialization process, so that the first data written in the parallel input memory is not taken into the DSP1. There are cases.

【0014】本発明は、係る問題を解決するもので、デ
バッグ装置のホストパソコンとDSPとの間のデータの
入出力が容易で、かつ、DSPプログラム実行開始直後
のホストパソコンからの最初のデータがDSPに取り込
み洩れとなることのないDSPファームウェアデバッグ
装置を提供することを目的とする。
The present invention solves the above-mentioned problem. Data input / output between the host personal computer of the debug device and the DSP is easy, and the first data from the host personal computer immediately after the DSP program execution is started. An object of the present invention is to provide a DSP firmware debug device which is not missed by a DSP.

【0015】[0015]

【課題を解決するための手段】図1は本発明の原理構成
図である。図中、1はDSP、2はホストパソコン、3
はホストパソコンからのパラレルデータバス、11は入
力データレジスタ、12はパラレル/シリアル変換器、
13はDSP1へのシリアル入力データ、21はDSP
1からのシリアル出力データ、22はシリアル/パラレ
ル変換器、23は出力データレジスタである。
FIG. 1 is a block diagram showing the principle of the present invention. In the figure, 1 is a DSP, 2 is a host personal computer, 3
Is a parallel data bus from the host personal computer, 11 is an input data register, 12 is a parallel / serial converter,
13 is serial input data to DSP 1, 21 is DSP
1 is serial output data from 1, 22 is a serial / parallel converter, and 23 is an output data register.

【0016】本発明は、ホストパソコン2と、該ホスト
パソコン2からのパラレルデータを、DSP1へのシリ
アル入力データ13に変換するパラレル/シリアル変換
器12と、該DSP1からのシリアル出力データ21を
該ホストパソコン2へのパラレルデータに変換するシリ
アル/パラレル変換器22を有し、パラレルバス3を介
して該DSPとの間のデータの入出力を行うDSPファ
ームウェアデバッグ装置において、該ホストパソコン2
と該パラレル/シリアル変換器12との間に、該ホスト
パソコン2からのパラレルデータを一時的に書き込む入
力データレジスタ11を設ける。
The present invention includes a host personal computer 2, a parallel / serial converter 12 for converting parallel data from the host personal computer 2 into serial input data 13 for the DSP 1, and serial output data 21 from the DSP 1. In a DSP firmware debug device having a serial / parallel converter 22 for converting parallel data to the host personal computer 2 and inputting / outputting data to / from the DSP via the parallel bus 3, the host personal computer 2
And an input data register 11 for temporarily writing parallel data from the host personal computer 2 between the parallel / serial converter 12 and the parallel / serial converter 12.

【0017】また、該シリアル/パラレル変換器22と
該ホストパソコン2との間に、該シリアル/パラレル変
換器22が出力するパラレルデータを一時的に書き込む
出力データレジスタ23を設けることにより、目的を達
成することができる。
Further, between the serial / parallel converter 22 and the host personal computer 2, an output data register 23 for temporarily writing the parallel data output by the serial / parallel converter 22 is provided to achieve the purpose. Can be achieved.

【0018】更に、前記入力データレジスタ11に書き
込んた前記パラレルデータが前記パラレル/シリアル変
換器12に読み出されたことを検出して、該ホストパソ
コン2に通知する入力状態検出回路14を設ける。
Further, an input state detection circuit 14 for detecting that the parallel data written in the input data register 11 has been read by the parallel / serial converter 12 and notifying the host personal computer 2 is provided.

【0019】また、前記シリアル/パラレル変換器22
でシリアル/パラレル変換されたパラレルデータが前記
出力データレジスタ23に書き込まれたことを検出し
て、該ホストパソコン2に通知する出力状態検出回路2
4を設け、該ホストパソコン2は該通知により、次のパ
ラレルデータの出力、又は、入力を行うようにしてもよ
い。
The serial / parallel converter 22 is also provided.
An output state detection circuit 2 which detects that the parallel data serially / parallel-converted by the above has been written in the output data register 23 and notifies the host personal computer 2 of it.
4, the host personal computer 2 may output or input the next parallel data according to the notification.

【0020】[0020]

【作用】本発明は、ホストパソコン2からパラレルデー
タを出力し、パラレル/シリアル変換器12でパラレル
データをパラレル/シリアル変換してDSP1へシリア
ルデータを送出するのに、ホストパソコン2とパラレル
/シリアル変換器12の間に入力データレジスタ11を
設け、パラレルデータの書き込みと読み出しができるよ
うにしたので、ホストパソコン2はデータの書き込みが
でき、パラレル/シリアル変換器12は書き込まれたデ
ータを読み出してパラレル/シリアル変換することがで
きる。
According to the present invention, parallel data is output from the host personal computer 2, parallel data is converted into parallel data by the parallel / serial converter 12, and serial data is sent to the DSP 1. Since the input data register 11 is provided between the converters 12 so that parallel data can be written and read, the host personal computer 2 can write data and the parallel / serial converter 12 can read the written data. Parallel / serial conversion is possible.

【0021】また、DSP1でプログラムを実行した結
果データとしてシリアルデータをシリアル/パラレル変
換器22に出力し、シリアル/パラレル変換器22でシ
リアルデータをパラレルデータに変換してホストパソコ
ン2に送出するのに、シリアル/パラレル変換器22と
ホストパソコン2との間に出力データレジスタ23を設
け、パラレルデータの書き込みと読み出しができるよう
にしたので、シリアル/パラレル変換器22はデータの
書き込みができ、ホストパソコン2は書き込まれたデー
タを読み出して入力するができる。
Further, serial data is output to the serial / parallel converter 22 as result data of executing the program by the DSP 1, the serial data is converted into parallel data by the serial / parallel converter 22 and sent to the host personal computer 2. In addition, since the output data register 23 is provided between the serial / parallel converter 22 and the host personal computer 2 so that parallel data can be written and read, the serial / parallel converter 22 can write data and the host The personal computer 2 can read and input the written data.

【0022】そして、DSP1がパラレル/シリアル変
換器12からシリアルデータを1回入力すると、ホスト
パソコン2からは入力データレジスタ11を介してパラ
レル/シリアル変換器12に次のデータを設定する。
When the DSP 1 inputs serial data once from the parallel / serial converter 12, the host PC 2 sets the next data in the parallel / serial converter 12 via the input data register 11.

【0023】また、DSP1がシリアル/パラレル変換
器22にシリアルデータを1回出力すると、ホストパソ
コン2からの制御で、シリアル/パラレル変換器22に
出力されたデータを出力データレジスタ23を介して読
み出す。
When the DSP 1 outputs the serial data to the serial / parallel converter 22 once, the data output to the serial / parallel converter 22 is read out via the output data register 23 under the control of the host personal computer 2. .

【0024】このように、ホストパソコン2とDSP1
との間のデータの入出力において、ホストパソコン2の
制御で、順番にデータレジスタ11,23を介してパラ
レルデータの読み書きを行うので、メモリを使用するこ
となく、また、データの大きさに関係なくデータの入出
力を行うことができる。
As described above, the host personal computer 2 and the DSP 1
In inputting / outputting data to and from, since parallel data is read and written via the data registers 11 and 23 in order under the control of the host personal computer 2, there is no need to use a memory and there is no relation to the size of the data. Data can be input and output without

【0025】また、入力状態検出回路14を設けること
により、ホストパソコン2は入力状態検出回路14の出
力の変化で入力データレジスタ11にデータが書き込ま
れたか、或いは、書き込まれたデータが読み出されたか
を検出することができるので、入力データレジスタ11
へのデータの読み書きを円滑にすることができる。
Further, by providing the input state detection circuit 14, the host personal computer 2 writes data to the input data register 11 or changes the output of the input state detection circuit 14 to read the written data. Since it is possible to detect whether the input data register 11
The reading and writing of data to and from can be facilitated.

【0026】同様に、出力状態検出回路24について
も、入力状態検出回路14の場合と同じである。
Similarly, the output state detection circuit 24 is the same as the input state detection circuit 14.

【0027】[0027]

【実施例】図2は本発明の実施例、図3は本実施例にお
けるシリアル入力タイミングを示す図、図4は本実施例
におけるシリアル出力タイミングを示す図である。
2 is a diagram showing a serial input timing in the present embodiment, and FIG. 4 is a diagram showing a serial output timing in the present embodiment.

【0028】図中、図1と同じ符号は同じものを示し、
4はホストパソコン2からのパソコンリード信号、5は
ホストパソコン2からのパソコンライト信号、7はシリ
アル同期クロック、8はシリアルビットクロック、9は
パラレルリード信号、10はパラレルライト信号、11
はホストパソコン2からDSP1へのパラレル入力デー
タを保持する入力データレジスタ、12は入力レジスタ
11のパラレルデータをシリアルデータに変換するパラ
レル/シリアル変換器、14は入力データレジスタ11
のパラレルデータがパラレル/シリアル変換器12に読
み出されたことを検出する入力状態検出回路、22はシ
リアル出力データ21をパラレルデータに変換するシリ
アル/パラレル変換器、23はシリアル/パラレル変換
器22から出力されたパラレルデータを保持する出力デ
ータレジスタ、24はシリアル/パラレル変換されたパ
ラレルデータが出力データレジスタ23に書き込まれた
ことを検出する出力状態検出回路、6はDSP1とパラ
レル/シリアル変換器12とシリアル/パラレル変換器
22にシリアルビットクロックを供給するとともに、D
SP1に同期クロックを供給し、また、パラレル/シリ
アル変換器12と入力状態検出回路14にパラレルリー
ド信号9を供給し、シリアル/パラレル変換器22と出
力状態検出回路24にパラレルライト信号10を供給す
るクロック発生回路である。
In the figure, the same reference numerals as those in FIG.
4 is a personal computer read signal from the host personal computer 2, 5 is a personal computer write signal from the host personal computer 2, 7 is a serial synchronous clock, 8 is a serial bit clock, 9 is a parallel read signal, 10 is a parallel write signal, 11
Is an input data register for holding parallel input data from the host personal computer 2 to the DSP 1, 12 is a parallel / serial converter for converting the parallel data of the input register 11 into serial data, and 14 is the input data register 11
Input state detection circuit for detecting that the parallel data of is read by the parallel / serial converter 12, 22 is a serial / parallel converter for converting the serial output data 21 into parallel data, and 23 is a serial / parallel converter 22. Output data register for holding the parallel data output from the device 24, an output state detection circuit 24 for detecting that the serial data converted into the parallel data is written in the output data register 23, and the DSP 1 and the parallel / serial converter 12 and the serial / parallel converter 22 are supplied with a serial bit clock, and D
The synchronous clock is supplied to SP1, the parallel read signal 9 is supplied to the parallel / serial converter 12 and the input state detection circuit 14, and the parallel write signal 10 is supplied to the serial / parallel converter 22 and the output state detection circuit 24. It is a clock generating circuit.

【0029】本実施例のDSP1へシリアル入力する方
法について、図3の本実施例におけるシリアル入力タイ
ミングを示す図を用いて説明する。図3の例は8ビット
のシリアルデータの場合を示す。
A method of serially inputting to the DSP 1 of this embodiment will be described with reference to FIG. 3 showing the serial input timing in this embodiment. The example of FIG. 3 shows the case of 8-bit serial data.

【0030】いま、入力データレジスタ11に、に示
すように、n−1番目のデータ(n−1)が設定されて
いるとすると、このデータはシリアル同期クロック7に
同期して、パラレルリード信号9により、のタイミン
グでパラレル/シリアル変換器12に読み込まれる。そ
して、このデータがシリアルビットクロック8により、
のタイミングで、ビット8,ビット7,・・・,ビッ
ト1の順にシリアル入力データ13としてDSP1に入
力される。
Now, assuming that the (n-1) th data (n-1) is set in the input data register 11, this data is synchronized with the serial synchronization clock 7 and the parallel read signal is output. 9, the data is read into the parallel / serial converter 12 at the timing of. Then, this data is converted by the serial bit clock 8.
, Bit 1, is input to the DSP 1 as serial input data 13 in this order.

【0031】パラレルリード信号9は入力状態検出回路
14のクロックにも使用され、パラレルリード信号9
の立上りエッジで入力状態検出回路14の出力が
“1”から“0”に変化して、入力データレジスタ11
のパラレルデータがパラレル/シリアル変換器12に読
み出されたことを示す。
The parallel read signal 9 is also used for the clock of the input state detection circuit 14, and the parallel read signal 9 is used.
The output of the input state detection circuit 14 changes from "1" to "0" at the rising edge of the input data register 11
Indicates that the parallel data of is read by the parallel / serial converter 12.

【0032】ホストパソコン2は入力状態検出回路14
の出力をパラレルバス3を介して読み込み、“0”にな
ったことを確認すると、n番目のデータ(n)をのタ
イミングでパラレルデータバス3に出力し、のタイミ
ングでパソコンライト信号5により、入力データレジス
タ11に書き込む。
The host personal computer 2 has an input state detection circuit 14
When the output of is read through the parallel bus 3 and it is confirmed that it has become “0”, the nth data (n) is output to the parallel data bus 3 at the timing of Write to the input data register 11.

【0033】パソコンライト信号5は、入力状態検出回
路14のセット信号にも使用され、パソコンライト信号
5の立下りエッジで、入力状態検出回路14の出力が
“0”から“1”に変化することで、入力データレジス
タ11にデータが設定され、かつ、そのデータがパラレ
ル/シリアル変換器12に読み出されていないことを示
す。
The personal computer write signal 5 is also used as a set signal for the input state detection circuit 14, and the output of the input state detection circuit 14 changes from "0" to "1" at the falling edge of the personal computer write signal 5. This indicates that data is set in the input data register 11 and that data has not been read by the parallel / serial converter 12.

【0034】以上の処理を繰り返すことにより、ホスト
パソコン2からDSP1にシリアル入力データが入力さ
れる。次に、本実施例のDSP1からシリアル出力する
方法を、図4の本実施例におけるシリアル出力タイミン
グを示す図を用いて説明する。
By repeating the above processing, the serial input data is input from the host personal computer 2 to the DSP 1. Next, a method for serial output from the DSP 1 of this embodiment will be described with reference to the diagram of FIG. 4 showing the serial output timing in this embodiment.

【0035】図4の例は8ビットのシリアルデータの場
合である。DSP1からのシリアル出力データ21は、
シリアル同期クロック7に同期して、シリアルビットク
ロック8により、のタイミングで出力される。このデ
ータがシリアル/パラレル変換器22により、のタイ
ミングでパラレルデータに変換され、このパラレルデー
タがパラレルライト信号10により出力データレジスタ
23にのタイミングで書込まれる。
The example of FIG. 4 is for 8-bit serial data. The serial output data 21 from the DSP 1 is
It is output at the timing of by the serial bit clock 8 in synchronization with the serial synchronization clock 7. This data is converted into parallel data by the serial / parallel converter 22 at the timing of, and this parallel data is written in the output data register 23 by the parallel write signal 10.

【0036】パラレルライト信号10は、出力状態検出
回路24のクロックにも使用され、パラレルライト信
号10の立上りエッジで出力状態検出回路24の出力
が“0”から“1”に変化することで、シリアル/パラ
レル変換器22からパラレルデータが出力データレジス
タ23に書き込まれ、かつ、そのデータがホストパソコ
ン2に読み出されていないことを示す。
The parallel write signal 10 is also used for the clock of the output state detection circuit 24, and the output of the output state detection circuit 24 changes from "0" to "1" at the rising edge of the parallel write signal 10, It indicates that the parallel data is written from the serial / parallel converter 22 to the output data register 23 and the data is not read by the host personal computer 2.

【0037】ホストパソコン2は、出力状態検出回路2
4の出力をパラレルデータバス3を介して読み込み、出
力状態検出回路24の出力が“1”になったことを確認
すると、出力データレジスタ23のデータをパラレルデ
ータバス3から、のタイミングでパソコンリード信号
4により読み込む。
The host personal computer 2 has an output state detection circuit 2
4 is read through the parallel data bus 3 and it is confirmed that the output of the output state detection circuit 24 has become "1", the data of the output data register 23 is read from the parallel data bus 3 to the personal computer at the timing. Read by signal 4.

【0038】パソコンリード信号4は、出力状態検出回
路24のクリア信号にも使用され、のタイミングの立
下りエッジで、出力状態検出回路24の出力が“1”か
ら“0”に変化することにより、シリアル/パラレル変
換器22でパラレルデータに変換されて、出力データレ
ジスタ23に書き込まれたデータがホストパソコン2に
読み出され、出力データレジスタ23には読み出すべき
データがないことを示す。
The personal computer read signal 4 is also used as a clear signal for the output state detection circuit 24, and the output of the output state detection circuit 24 changes from "1" to "0" at the falling edge of the timing. The data converted into parallel data by the serial / parallel converter 22 and written in the output data register 23 is read by the host personal computer 2, and there is no data to be read in the output data register 23.

【0039】以上の処理を繰り返すことにより、DSP
1からホストパソコン2にシリアル出力データが入力さ
れる。
By repeating the above processing, the DSP
Serial output data is input from 1 to the host personal computer 2.

【0040】[0040]

【発明の効果】以上説明したように、本発明によれば、
DSPへのシリアルデータの入出力に、ホストパソコン
からの制御で、順番にホストパソコンから出力するパラ
レルデータをデータレジスタを介して後、シリアルデー
タに変換し、そのシリアルデータをDSPに入力し、ま
た、逆に、DSPからのシリアルデータをパラレルデー
タに変換した後、データレジスタを介して、そのパラレ
ルデータをホストパソコンで入力するので、従来技術に
おけるメモリを使用することによる課題を以下のように
解決することができる。 (1)従来は、ホストパソコンからの制御が、ホストパ
ソコンからパラレル入力メモリへのデータの設定、DS
Pの実行、DSPからのシリアルデータをパラレル変換
してパラレル出力メモリに書き込まれたデータをホスト
パソコンに読み込む、の順番に処理を行わねばならな
ず、操作が複雑であったが、本発明では、DSPの実行
中にホストパソコンからのデータの入出力が行われるの
で、操作が簡単になり、従ってホストパソコンとメモリ
間の転送処理が不要となるので、処理時間が短縮でき
る。 (2)従来は、ホストパソコンからのメモリの読み書き
と、DSPからのメモリの読み書きを切替える回路が必
要であったが、本発明ではパラレルデータの保持にレジ
スタを用い、レジスタの入力端子と出力端子が別々にな
っているので、DSP側からのレジスタへの読み書きと
ホストパソコンからの読み書きとを切替える回路が不要
となる。 (3)メモリを使用しないで、ホストパソコンのデータ
をDSPに入力し、また、DSPのデータをホストパソ
コンに入力するので、データサイズの制限がなくなる。
また、従来装置のようにデータを分割して何回かに入出
力する必要がなくなるので、ファームデバッグの効率が
よくなる。 (4)従来装置では、DSPのプログラムの実行開始直
後の初期化処理ではシリアルデータの入出力が正常に行
われないので、パラレル入力メモリの最初のデータがD
SPに取り込まれないという問題があったが、本発明に
よれば、DSPへのシリアルデータの入出力は、ホスト
パソコンの制御でで行うので、DSPのプログラムの初
期化が終わって、シリアルデータの入出力が正常に行わ
れるようになった後に、シリアルデータの入出力を開始
することにより、DSPプログラムの実行開始直後のデ
ータがDSPに取り込まれない現象を防止できるといっ
た効果がある。
As described above, according to the present invention,
When inputting / outputting serial data to / from the DSP, the parallel data output from the host personal computer is converted through the data register into serial data under the control of the host personal computer, and the serial data is input to the DSP. Conversely, since the serial data from the DSP is converted to parallel data and the parallel data is input to the host personal computer via the data register, the problem caused by using the memory in the conventional technique is solved as follows. can do. (1) Conventionally, the control from the host personal computer is performed by setting the data from the host personal computer to the parallel input memory, DS.
The operation is complicated because the processing must be performed in the order of executing P, converting the serial data from the DSP into parallel, and reading the data written in the parallel output memory into the host personal computer. , The data is input and output from the host personal computer during the execution of the DSP, so that the operation is simplified and the transfer process between the host personal computer and the memory is not required, so that the processing time can be shortened. (2) Conventionally, a circuit for switching between reading and writing of memory from the host personal computer and reading and writing of memory from the DSP was required, but in the present invention, a register is used to hold parallel data, and an input terminal and an output terminal of the register are used. Since they are separate, a circuit for switching between reading and writing from the DSP side to the register and reading and writing from the host personal computer becomes unnecessary. (3) Since the data of the host personal computer is input to the DSP and the data of the DSP is input to the host personal computer without using the memory, there is no limitation on the data size.
In addition, since it is not necessary to divide the data and input / output the data several times as in the conventional device, the efficiency of the firmware debug is improved. (4) In the conventional device, serial data is not input / output normally in the initialization process immediately after the execution of the DSP program, so the first data in the parallel input memory is D.
According to the present invention, since the input / output of serial data to / from the DSP is performed by the control of the host personal computer, the initialization of the DSP program is completed and the serial data By starting the input / output of the serial data after the normal input / output has been performed, it is possible to prevent the phenomenon that the data immediately after the start of the execution of the DSP program is not taken into the DSP.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】本発明の実施例である。FIG. 2 is an example of the present invention.

【図3】本発明におけるシリアル入力タイミングを示す
図である。
FIG. 3 is a diagram showing serial input timing in the present invention.

【図4】本発明におけるシリアル出力タイミングを示す
図である。
FIG. 4 is a diagram showing serial output timing in the present invention.

【図5】従来例を示す図である。FIG. 5 is a diagram showing a conventional example.

【図6】従来例におけるシリアル入力タイミングを示す
図である。
FIG. 6 is a diagram showing serial input timing in a conventional example.

【図7】従来例におけるシリアル出力タイミングを示す
図である。
FIG. 7 is a diagram showing serial output timing in a conventional example.

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

1 DSP 2 ホストパソコン 3 パラレルデータバス 4 パソコンリード信号 5 パソコンライト信号 6 クロック発生回路 7 シリアル同期クロック 8 シリアルビットクロック 9 パラレルリード信号 10 パラレルライト信号 11 入力データレジスタ 12 パラレル/シリアル変換器 13 シリアル入力データ 14 入力状態検出回路 15,25 アドレスカウンタ 16 パラレル入力メモリ 17,27 バス切替え回路 21 シリアル出力データ 22 シリアル/パラレル変換器 23 出力データレジスタ 24 出力状態検出回路 26 パラレル出力メモリ 100 パラレル/シリアル変換手段 200 シリアル/パラレル変換手段 1 DSP 2 Host personal computer 3 Parallel data bus 4 Personal computer read signal 5 Personal computer write signal 6 Clock generation circuit 7 Serial synchronous clock 8 Serial bit clock 9 Parallel read signal 10 Parallel write signal 11 Input data register 12 Parallel / serial converter 13 Serial input Data 14 Input state detection circuit 15, 25 Address counter 16 Parallel input memory 17, 27 Bus switching circuit 21 Serial output data 22 Serial / parallel converter 23 Output data register 24 Output state detection circuit 26 Parallel output memory 100 Parallel / serial conversion means 200 Serial / parallel conversion means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ホストパソコン(2)と、該ホストパソ
コン(2)からのパラレルデータをシリアル入力データ
(13)に変換してDSP(1)へ送出するパラレル/
シリアル変換器(12)と、該DSP(1)からのシリ
アル出力データ(21)を該ホストパソコン(2)への
パラレルデータに変換するシリアル/パラレル変換器
(22)を有し、パラレルデータバス(3)を介して、
該DSP(1)との間のデータの入出力を行うDSPフ
ァームウェアデバッグ装置において、 該ホストパソコン(2)と該パラレル/シリアル変換器
(12)との間に、該ホストパソコン(2)からのパラ
レルデータを一時的に書き込む入力データレジスタ(1
1)を設け、 該シリアル/パラレル変換器(22)と該ホストパソコ
ン(2)との間に、該シリアル/パラレル変換器(2
2)が出力するパラレルデータを一時的に書き込む出力
データレジスタ(23)を設けた、ことを特徴とするD
SPファームウェアデバッグ装置。
1. A host personal computer (2) and parallel / parallel data from the host personal computer (2) are converted into serial input data (13) and sent to the DSP (1).
A parallel data bus having a serial converter (12) and a serial / parallel converter (22) for converting serial output data (21) from the DSP (1) into parallel data to the host personal computer (2). Via (3)
In a DSP firmware debug device for inputting / outputting data to / from the DSP (1), between the host personal computer (2) and the parallel / serial converter (12), Input data register (1
1) is provided, and the serial / parallel converter (2) is provided between the serial / parallel converter (22) and the host personal computer (2).
D), which is provided with an output data register (23) for temporarily writing the parallel data output by 2).
SP firmware debug device.
【請求項2】 請求項1において、 前記入力データレジスタ(11)に書き込まれたパラレ
ルデータが前記パラレル/シリアル変換器(12)に読
出されたことを検出して前記ホストパソコン(2)に通
知する入力状態検出回路(14)と、 前記シリアル/パラレル変換器(22)でパラレル変換
されたパラレルデータが前記出力データレジスタ(2
3)に書き込まれたことを検出して該ホストパソコン
(2)に通知する出力状態検出回路(24)とを設け、 該ホストパソコン(2)は該通知により次のパラレルデ
ータの出力、又は入力を行うようにしたことを特徴とす
るDSPファームウェアデバッグ装置。
2. The host computer (2) according to claim 1, wherein it is detected that the parallel data written in the input data register (11) has been read by the parallel / serial converter (12). Input state detection circuit (14), and the parallel data converted in parallel by the serial / parallel converter (22) into the output data register (2).
3) is provided with an output state detection circuit (24) for detecting the writing to the host personal computer (2), and the host personal computer (2) outputs or inputs the next parallel data by the notification. The DSP firmware debug device is characterized by performing the following.
JP6046264A 1994-03-17 1994-03-17 Dsp firmware debugging device Withdrawn JPH07262045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6046264A JPH07262045A (en) 1994-03-17 1994-03-17 Dsp firmware debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6046264A JPH07262045A (en) 1994-03-17 1994-03-17 Dsp firmware debugging device

Publications (1)

Publication Number Publication Date
JPH07262045A true JPH07262045A (en) 1995-10-13

Family

ID=12742360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6046264A Withdrawn JPH07262045A (en) 1994-03-17 1994-03-17 Dsp firmware debugging device

Country Status (1)

Country Link
JP (1) JPH07262045A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6272454B1 (en) 1998-03-20 2001-08-07 Fujitsu Limited Debugging and cosimulation method for wide band switch firmware

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6272454B1 (en) 1998-03-20 2001-08-07 Fujitsu Limited Debugging and cosimulation method for wide band switch firmware

Similar Documents

Publication Publication Date Title
JPS648374B2 (en)
JPH07262045A (en) Dsp firmware debugging device
JP3592169B2 (en) Asynchronous data transfer control device and asynchronous data transfer control method
JP3246487B2 (en) Semiconductor integrated circuit and control signal generation method thereof
JPH10340596A (en) Data storage device and semiconductor memory
JPS59178667A (en) Memory device
JP2979918B2 (en) Interrupt detection circuit
JPH01142848A (en) Address trapping circuit
JPH04353922A (en) Data conversion method
JP2669028B2 (en) Command register circuit
JPS5917468B2 (en) Program counter trajectory storage device
JPH0659884A (en) Digital signal processing unit
JPH02302855A (en) Memory control system
JPH0535501A (en) Interruption signal control circuit
JPH023822A (en) Data processor
JP2002077118A (en) Synchronizing circuit equipped with synchronization abnormality detecting function, semiconductor integrated circuit, and information processing device
JPH02267623A (en) Variable synchronizing circuit
JPH0215145B2 (en)
JPH05181811A (en) Interruption control signal generator for multi-processor system
JPH0523252U (en) Data protection circuit
JPH02135543A (en) Single chip microcomputer
JP2003283311A (en) Edge detecting circuit
JP2002027017A (en) Signal processor
JPS63298450A (en) Data processor
JPH023853A (en) Interface method for cpu

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010605