JPH04309139A - Semiconductor integrated circuit device - Google Patents

Semiconductor integrated circuit device

Info

Publication number
JPH04309139A
JPH04309139A JP3075242A JP7524291A JPH04309139A JP H04309139 A JPH04309139 A JP H04309139A JP 3075242 A JP3075242 A JP 3075242A JP 7524291 A JP7524291 A JP 7524291A JP H04309139 A JPH04309139 A JP H04309139A
Authority
JP
Japan
Prior art keywords
ice
circuit
data
program
address
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
JP3075242A
Other languages
Japanese (ja)
Inventor
Masaru Sawada
勝 澤田
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 VLSI Ltd
Fujitsu Ltd
Original Assignee
Fujitsu VLSI Ltd
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 VLSI Ltd, Fujitsu Ltd filed Critical Fujitsu VLSI Ltd
Priority to JP3075242A priority Critical patent/JPH04309139A/en
Publication of JPH04309139A publication Critical patent/JPH04309139A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Read Only Memory (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

PURPOSE:To form a non-volatile memory, which can reload a program, and an ICE circuit on a chip and to change the contents of the non-volatile memory by the ICE circuit. CONSTITUTION:A non-volatile memory 1 stores the program so as to reload it, and a central processing unit(CPU) 2 is composed of an address generation circuit 2a equipped with a program counter 2b to perform access to the prescribed address of the memory 1 and a program execution part 2c for the read- out program. A RAM 3 stores data used for executing the program. An ICE circuit 4 controls and supervises the operation of the CPU 2, a first stop control means 5 stops the operation of the program execution part 2c based on a write control signal inputted from an outside ICE device and a write control means 6 inputs address data inputted from the outside ICE device to the address generation circuit 2a and writes program data in the prescribed address of the memory 1 accessed by the address generation circuit 2a.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はチップ上にICE(イン
サーキット・エミュレータ)回路を搭載した半導体集積
回路装置に関する。近年、DSP(デジタル・シグナル
・プロセッサ)、RISC(リドュースト・インストラ
クション・セット・コンピュータ)等の高速動作するプ
ロセッサを実動作させながらプログラムのデバッグ等を
行う際に、プログラムを実際に使用する動作周波数でプ
ロセッサ上で実行する必要がある。このため、より高速
な動作周波数に追従可能なICE回路が必要となってき
た。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor integrated circuit device having an ICE (in-circuit emulator) circuit mounted on a chip. In recent years, when debugging a program while actually running a high-speed processor such as a DSP (digital signal processor) or RISC (reduced instruction set computer), the operating frequency at which the program is actually used is Must run on the processor. For this reason, an ICE circuit that can follow higher operating frequencies has become necessary.

【0002】0002

【従来の技術】従来、高速動作するRISCチップでは
ICE回路を搭載しており、このICE回路にて動作中
のプロセッサのステータス及びプログラムの実行アドレ
スのトレース、プログラムを停止させるためのブレーク
ポイントの設定等を行う。又、プロセッサは内部にプロ
グラムメモリを持たず、全て外部バスによる外部メモリ
のアクセスのみを行う。
[Background Art] Conventionally, high-speed operating RISC chips are equipped with an ICE circuit, and this ICE circuit traces the status of the processor in operation and the execution address of the program, and sets breakpoints to stop the program. etc. Furthermore, the processor does not have an internal program memory, and only accesses external memory through an external bus.

【0003】一方、高速動作するDSPにおいてもチッ
プ上にICE回路を形成することが必要となるが、この
DSPではより高速化するためにCPUが実行するプロ
グラムをチップ上に形成したEPROMに蓄えており、
又、データもチップ上に形成したRAM等を使用して処
理するようになっている。特に、ワンチップ化されたD
SPの場合、入出力インタフェース関連の外部端子数が
多くなり、チップ上のICE回路に割り当て可能な外部
インタフェース端子数も制限されるといった問題点があ
った。
On the other hand, it is also necessary to form an ICE circuit on the chip in a DSP that operates at high speed, but in order to achieve higher speed, this DSP stores the program executed by the CPU in an EPROM formed on the chip. Ori,
Furthermore, data is also processed using a RAM or the like formed on the chip. In particular, one-chip D
In the case of SP, there are problems in that the number of external terminals related to input/output interfaces increases, and the number of external interface terminals that can be assigned to the ICE circuit on the chip is also limited.

【0004】従って、チップ上にEPROMを形成した
半導体集積回路装置においてICE回路を形成する場合
、このチップ上のEPROMの内容を書き換えられるこ
とが必要となる。又、チップ上に形成したRAM上のデ
ータのトレースを行うことができるICE回路が必要と
なる。更に、チップ上のICE回路に割り当てられる外
部インタフェース端子数を低減することが必要となる。
Therefore, when an ICE circuit is formed in a semiconductor integrated circuit device in which an EPROM is formed on a chip, it is necessary to be able to rewrite the contents of the EPROM on the chip. Furthermore, an ICE circuit that can trace data on a RAM formed on a chip is required. Furthermore, it is necessary to reduce the number of external interface terminals allocated to the ICE circuit on the chip.

【0005】[0005]

【発明が解決しようとする課題】本発明は上記事情を鑑
みてなされたものであって、チップ上にプログラムを書
き換え可能な不揮発性メモリを形成した半導体集積回路
装置において、チップ上に形成したICE回路にて不揮
発性メモリの内容を変更できることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and provides a semiconductor integrated circuit device in which a programmable non-volatile memory is formed on a chip. The purpose is to be able to change the contents of nonvolatile memory using a circuit.

【0006】又、本発明はプログラムの実行アドレスを
トレースできるとともに、チップ上に形成したRAMの
データトレースを行うことができることを目的とする。 又、本発明はチップ上のICE回路に割り当てられる外
部インタフェース端子数を低減することができることを
目的とする。又、本発明は半導体集積回路装置の中央処
理装置を外部ICE装置のモニタープログラムにて動作
させることができることを目的とする。
Another object of the present invention is to be able to trace the execution address of a program and also trace data of a RAM formed on a chip. Another object of the present invention is to be able to reduce the number of external interface terminals allocated to the ICE circuit on the chip. Another object of the present invention is to enable the central processing unit of a semiconductor integrated circuit device to be operated by a monitor program of an external ICE device.

【0007】更に、本発明はICE停止時にはICE回
路の機能を停止できることを目的とする。
A further object of the present invention is to be able to stop the function of the ICE circuit when the ICE is stopped.

【0008】[0008]

【課題を解決するための手段】図1は本発明の原理説明
図である。不揮発性メモリ1はプログラムを記憶してお
り、書き換え可能である。中央処理装置2は不揮発性メ
モリ1の所定アドレスをアクセスするプログラムカウン
タ2bを含むアドレス発生回路2aと、読み出されたプ
ログラムデータを高速で実行するプログラム実行部2c
とを備えている。RAM3にはプログラムの実行に使用
するデータが記憶されている。
[Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention. The nonvolatile memory 1 stores programs and is rewritable. The central processing unit 2 includes an address generation circuit 2a including a program counter 2b that accesses a predetermined address of the nonvolatile memory 1, and a program execution unit 2c that executes read program data at high speed.
It is equipped with The RAM 3 stores data used to execute programs.

【0009】そして、ICE回路4は外部からの命令に
より中央処理装置2の動作を制御監視するものであり、
同ICE回路4に備えられた第1の停止制御手段5は外
部ICE装置から入力される書込み制御信号に基づいて
プログラム実行部2cの動作を停止させ、書込み制御手
段6は外部ICE装置から入力されるアドレスデータを
アドレス発生回路2aに入力し、アドレス発生回路2a
にてアクセスされた不揮発性メモリ1の所定アドレスに
プログラムデータを書き込む。
The ICE circuit 4 controls and monitors the operation of the central processing unit 2 based on instructions from the outside.
The first stop control means 5 provided in the ICE circuit 4 stops the operation of the program execution section 2c based on the write control signal input from the external ICE device, and the write control means 6 stops the operation of the program execution section 2c based on the write control signal input from the external ICE device. address data is input to the address generation circuit 2a, and the address data is input to the address generation circuit 2a.
The program data is written to the predetermined address of the nonvolatile memory 1 accessed by.

【0010】又、ICE回路は、半導体集積回路装置内
のパラレル信号データを入力してシリアル信号データに
変換するデータ形式変換手段と、データ形式変換手段に
て変換されたシリアル信号データと中央処理装置の他の
ステータス情報を外部ICE装置に出力する複数のシリ
アルインタフェースポートとを備えている。又、ICE
回路は、外部ICE装置のICE本体とシリアルでデー
タ転送を行うための同期用クロックの発生部をICE回
路内に備えるとともに、クロック信号に基づいていずれ
か1つのシリアルインタフェースポートのシリアル信号
データを符号化する変調回路を備え、シリアル信号デー
タと同期クロックとを同時にICE本体へ送出するよう
にしている。
The ICE circuit also includes a data format conversion means for inputting parallel signal data in a semiconductor integrated circuit device and converting it into serial signal data, and a central processing unit that converts the serial signal data converted by the data format conversion means. and a plurality of serial interface ports for outputting other status information to an external ICE device. Also, ICE
The circuit includes a synchronization clock generator in the ICE circuit for serial data transfer with the ICE main body of an external ICE device, and encodes serial signal data of any one serial interface port based on the clock signal. The ICE is equipped with a modulation circuit that simultaneously transmits serial signal data and a synchronized clock to the ICE main body.

【0011】又、ICE回路は、RAMに記憶されてい
るデータをトレースするための複数のレジスタを備え、
各レジスタのデータに識別コードを付加して順次データ
形式変換手段に転送するようにしている。又、ICE回
路は、外部ICE装置からのブレーク制御信号に基づい
て不揮発性メモリのプログラムによる中央処理装置の動
作を一時的に停止させる第2の停止制御手段と、第2の
停止制御手段による中央処理装置の動作停止に基づいて
プログラムカウンタ及びステータスレジスタの内容をI
CE本体内のメモリへ退避させ、以後、プログラムのア
クセスを不揮発性メモリからICE本体のメモリへ切換
えて中央処理装置に外部ICE装置のモニタープログラ
ムを実行させる切換制御手段とを備えている。
The ICE circuit also includes a plurality of registers for tracing data stored in the RAM,
An identification code is added to the data in each register and the data is sequentially transferred to the data format conversion means. The ICE circuit also includes a second stop control means for temporarily stopping the operation of the central processing unit according to a program in the nonvolatile memory based on a break control signal from an external ICE device; The contents of the program counter and status register are changed based on the stoppage of the processing unit.
A switching control means is provided for saving the program to a memory within the ICE main body, and thereafter switching access of the program from the nonvolatile memory to the memory of the ICE main body to cause the central processing unit to execute the monitor program of the external ICE device.

【0012】更に、ICE回路は、外部ICE装置から
の機能停止信号に基づいてICE回路の機能を停止させ
る機能停止手段を備えている。
Furthermore, the ICE circuit includes a function stop means for stopping the function of the ICE circuit based on a function stop signal from an external ICE device.

【0013】[0013]

【作用】従って、第1発明によれば、ICE回路4に備
えられた第1の停止制御手段5は外部ICE装置から入
力される書込み制御信号に基づいてプログラム実行部2
cの動作を停止させるので、アドレス発生回路2aによ
り不揮発性メモリ1の所定アドレスがアクセスされてプ
ログラムが読み出されても実行されず、アクセスされた
不揮発性メモリ1の所定アドレスに書込み制御手段6に
よりプログラムデータが書き込まれる。
[Operation] Therefore, according to the first invention, the first stop control means 5 provided in the ICE circuit 4 controls the program execution unit 5 based on the write control signal input from the external ICE device.
Since the operation of c is stopped, even if a predetermined address of the nonvolatile memory 1 is accessed by the address generation circuit 2a and the program is read, it is not executed, and the write control means 6 writes to the predetermined address of the accessed nonvolatile memory 1. The program data is written.

【0014】又、ICE回路を、半導体集積回路装置内
のパラレル信号データを入力してシリアル信号データに
変換するデータ形式変換手段と、データ形式変換手段に
て変換されたシリアル信号データと中央処理装置の他の
ステータス情報を外部ICE装置に出力する複数のシリ
アルインタフェースポートとを備えたものとすることに
より、パラレルでデータを転送するものと比較してIC
E回路に割り当てられるポート数が削減される。
The ICE circuit also includes a data format conversion means for inputting parallel signal data in the semiconductor integrated circuit device and converting it into serial signal data, and a central processing unit and the serial signal data converted by the data format conversion means. By equipping the IC with multiple serial interface ports that output other status information to an external ICE device, the IC
The number of ports allocated to the E circuit is reduced.

【0015】又、ICE回路を、外部ICE装置のIC
E本体とシリアルでデータ転送を行うための同期用クロ
ックの発生部をICE回路内に備えるとともに、クロッ
ク信号に基づいていずれか1つのシリアルインタフェー
スポートのシリアル信号データを符号化する変調回路を
備え、シリアル信号データと同期クロックとを同時にI
CE本体へ送出するものとすることにより、同期のため
にのみ使用されるポートを設ける必要がなく、ICE回
路に割り当てられるポート数がより削減される。
[0015] Furthermore, the ICE circuit can be connected to an IC of an external ICE device.
The ICE circuit includes a synchronization clock generator for serial data transfer with the E main body, and a modulation circuit that encodes the serial signal data of any one serial interface port based on the clock signal. Serial signal data and synchronized clock at the same time
By sending the signal to the CE main body, there is no need to provide a port used only for synchronization, and the number of ports allocated to the ICE circuit can be further reduced.

【0016】又、ICE回路を、RAMに記憶されてい
るデータをトレースするための複数のレジスタを備え、
各レジスタのデータに識別コードを付加して順次データ
形式変換手段に転送するようにすることにより、複数の
データをほぼ同時にトレースすることが可能となる。 又、ICE回路を、外部ICE装置からのブレーク制御
信号に基づいて不揮発性メモリのプログラムによる中央
処理装置の動作を一時的に停止させる第2の停止制御手
段と、第2の停止制御手段による中央処理装置の動作停
止に基づいてプログラムカウンタ及びステータスレジス
タの内容をICE本体内のメモリへ退避させ、以後、プ
ログラムのアクセスを不揮発性メモリからICE本体の
メモリへ切換えて中央処理装置に外部ICE装置のモニ
タープログラムを実行させる切換制御手段とを備えたも
のとすることにより、不揮発性メモリの任意のアドレス
にて中央処理装置を外部ICE装置の支配下におくこと
が可能となる。
[0016] Furthermore, the ICE circuit is provided with a plurality of registers for tracing data stored in the RAM,
By adding an identification code to the data in each register and sequentially transferring the data to the data format conversion means, it becomes possible to trace a plurality of data almost simultaneously. The ICE circuit also includes a second stop control means for temporarily stopping the operation of the central processing unit according to a program in the nonvolatile memory based on a break control signal from an external ICE device; When the processing unit stops operating, the contents of the program counter and status register are saved to the memory within the ICE main unit, and thereafter, program access is switched from non-volatile memory to the memory within the ICE main unit, and the central processing unit is accessed from the external ICE device. By providing a switching control means for executing a monitor program, it becomes possible to place the central processing unit under the control of an external ICE device at an arbitrary address in the nonvolatile memory.

【0017】更に、ICE回路を、外部ICE装置から
の機能停止信号に基づいてICE回路の機能を停止させ
る機能停止手段を備えたものとすることにより、ICE
回路の不使用時には半導体集積回路装置の動作において
、障害を発生させることはない。
Furthermore, by providing the ICE circuit with a function stop means for stopping the function of the ICE circuit based on a function stop signal from an external ICE device, the ICE circuit can be stopped.
When the circuit is not in use, no trouble occurs in the operation of the semiconductor integrated circuit device.

【0018】[0018]

【実施例】以下、本発明をDSPに具体化した一実施例
を図2〜図5に従って説明する。図2に示すように、ユ
ーザボード10上にはDSP11と周辺回路12とが搭
載されている。DSP11には図示しないバッファボッ
クスを介してICE本体13及びターミナルパソコン1
4からなる外部ICE装置15を接続できるようになっ
ている。
[Embodiment] An embodiment in which the present invention is embodied in a DSP will be described below with reference to FIGS. 2 to 5. As shown in FIG. 2, a DSP 11 and a peripheral circuit 12 are mounted on the user board 10. The DSP 11 is connected to the ICE main body 13 and the terminal computer 1 via a buffer box (not shown).
4 external ICE devices 15 can be connected.

【0019】DSP11は1つの半導体チップ16上に
形成された中央処理装置(CPU)17、Eメモリ部1
8、入出力回路(I/O)群19及びICE回路20を
備えて構成されている。図3に示すように、メモリ部1
8には不揮発性メモリとしてのEPROM21、第1,
第2のRAM22,23、前記I/O群19の各I/O
に対応するレジスタ24,25、複数(本実施例では8
つ)のデータトレース用レジスタ26a〜26h、IC
E回路20のコントロール用レジスタ27、ICE回路
20のステータス用レジスタ28及びブレークポイント
用レジスタ29a,29b等が備えられ、これらはデー
タバス30を介してCPU17を構成する演算ユニット
33と接続されている。
The DSP 11 includes a central processing unit (CPU) 17 and an E memory section 1 formed on one semiconductor chip 16.
8, an input/output circuit (I/O) group 19 and an ICE circuit 20. As shown in FIG.
8 has an EPROM 21 as a non-volatile memory, the first,
Second RAM 22, 23, each I/O of the I/O group 19
A plurality of registers 24 and 25 (8 in this embodiment) corresponding to
) data trace registers 26a to 26h, IC
A control register 27 for the E circuit 20, a status register 28 for the ICE circuit 20, breakpoint registers 29a, 29b, etc. are provided, and these are connected via a data bus 30 to an arithmetic unit 33 constituting the CPU 17. .

【0020】EPROM21には前記CPU17が実行
する単純命令プログラムが記憶され、その内容を書き換
えることができる。第1,第2のRAM22,23には
プログラムの実行に使用するデータが記憶されている。 データトレース用レジスタ26a〜26hには前記EP
ROM21に予め記憶されたトレースプログラムに基づ
いてRAM22又は23におけるアドレスが連続した8
つのデータがそれぞれ格納されるようになっている。コ
ントロール用レジスタ27にはICE回路20をコント
ロールするためのデータが逐次書き換えられるようにな
っており、ステータス用レジスタ28にはそのときどき
のICE回路20の状態が書き込まれるようなっている
。又、各ブレークポイント用レジスタ29a,29bに
はCPU17を停止させるためのプログラム停止アドレ
スが予め格納される。
A simple instruction program executed by the CPU 17 is stored in the EPROM 21, and its contents can be rewritten. The first and second RAMs 22 and 23 store data used to execute programs. The data trace registers 26a to 26h contain the EP data.
8 consecutive addresses in RAM 22 or 23 based on the trace program stored in advance in ROM 21
Each data is stored separately. Data for controlling the ICE circuit 20 is sequentially rewritten in the control register 27, and the current state of the ICE circuit 20 is written in the status register 28. Further, a program stop address for stopping the CPU 17 is stored in advance in each of the breakpoint registers 29a and 29b.

【0021】図3に示すように、CPU17は命令デコ
ーダ31、制御回路32、演算ユニット33、アドレス
発生回路としてのアドレス演算ユニット34、及びクロ
ック発生部35等を備えて構成されている。命令デコー
ダ31はアドレス演算ユニット34に備えられたプログ
ラムカウンタ(PC)36のカウント値に基づいて前記
EPROM21から読み出されたプログラムデータをデ
コードし、そのデコード結果を制御回路32に出力する
とともに、デコード結果を演算ユニット33又はアドレ
ス演算ユニット34に出力する。
As shown in FIG. 3, the CPU 17 includes an instruction decoder 31, a control circuit 32, an arithmetic unit 33, an address arithmetic unit 34 as an address generating circuit, a clock generator 35, and the like. The instruction decoder 31 decodes the program data read from the EPROM 21 based on the count value of a program counter (PC) 36 provided in the address calculation unit 34, outputs the decoding result to the control circuit 32, and also decodes The result is output to the arithmetic unit 33 or address arithmetic unit 34.

【0022】制御回路32は命令デコーダ31のデコー
ド結果に基づいて、演算ユニット33及びアドレス演算
ユニット34を制御するとともに、CPU17の複数ビ
ットからなるステータス信号STをICE回路20のイ
ンタフェース回路部38に出力するようになっている。 又、制御回路32は前記ICE本体13の接続状態にお
いて、同ICE本体13からリセット信号が入力される
と、全ての処理を中断するようになっている。
The control circuit 32 controls the arithmetic unit 33 and the address arithmetic unit 34 based on the decoding result of the instruction decoder 31, and also outputs the status signal ST consisting of a plurality of bits of the CPU 17 to the interface circuit section 38 of the ICE circuit 20. It is supposed to be done. Further, when the control circuit 32 receives a reset signal from the ICE main body 13 while the ICE main body 13 is connected, all processing is interrupted.

【0023】演算ユニット33はキャリー,零,オーバ
ーフロー及びノット零フラグ等のステータスレジスタ3
3aを備え、前記命令デコーダ31の制御信号に基づい
て各RAM22,23からデータを読み出し、読み出し
たデータに基づいて所定の演算を実行する。又、アドレ
ス演算ユニット34は前記EPROM21、RAM22
,23、レジスタ24,25、データトレース用レジス
タ26a〜26h、コントロール用レジスタ27、ステ
ータス用レジスタ28及びブレークポイント用レジスタ
29a,29b等にアドレス信号を出力するようになっ
ている。
The arithmetic unit 33 stores status registers 3 such as carry, zero, overflow, and not-zero flags.
3a, reads data from each RAM 22, 23 based on a control signal from the instruction decoder 31, and executes a predetermined operation based on the read data. Further, the address calculation unit 34 includes the EPROM 21 and the RAM 22.
, 23, registers 24 and 25, data trace registers 26a to 26h, control register 27, status register 28, breakpoint registers 29a and 29b, and the like.

【0024】図3に示すように、ICE回路20は書込
み制御手段、第1,第2の停止制御手段、切換制御手段
及び機能停止手段としてのICE制御回路部37、イン
タフェース回路部38、データ形式変換手段としてのシ
フトレジスタ39、ブレーク判定コンパレータ40等を
備えて構成されている。シフトレジスタ39はICE用
内部バス41を介して前記データトレース用レジスタ2
6a〜26h、命令デコーダ31、及びプログラムカウ
ンタ36に接続されている。そして、シフトレジスタ3
9はデータトレース用レジスタ26a〜26h、命令デ
コーダ31、又はプログラムカウンタ36のいずれか1
つから入力した複数ビットのパラレル信号データを、イ
ンタフェース回路部38からのシフトクロックCKに基
づいて2ビットのシリアル信号データに変換してインタ
フェース回路部38に出力するようになっている。又、
シフトレジスタ39はインタフェース回路部38からの
2ビットのシリアル信号データを、前記シフトクロック
CKに基づいてパラレル信号データに変換し、データト
レース用レジスタ26a〜26h、命令デコーダ31、
又はプログラムカウンタ36のいずれか1つに出力する
ようになっている。
As shown in FIG. 3, the ICE circuit 20 includes a write control means, first and second stop control means, an ICE control circuit section 37 as a switching control means and a function stop means, an interface circuit section 38, and a data format. It is configured to include a shift register 39 as a conversion means, a break determination comparator 40, and the like. The shift register 39 connects to the data trace register 2 via the ICE internal bus 41.
6a to 26h, an instruction decoder 31, and a program counter 36. And shift register 3
9 is any one of the data trace registers 26a to 26h, the instruction decoder 31, or the program counter 36;
The plurality of bits of parallel signal data inputted from the interface circuit section 38 is converted into 2-bit serial signal data based on the shift clock CK from the interface circuit section 38, and is output to the interface circuit section 38. or,
The shift register 39 converts the 2-bit serial signal data from the interface circuit section 38 into parallel signal data based on the shift clock CK, and transfers the data trace registers 26a to 26h, the instruction decoder 31,
Alternatively, it is output to one of the program counters 36.

【0025】ブレーク判定コンパレータ40は前記ブレ
ークポイント用レジスタ29a,29bに格納された各
プログラム停止アドレスと、プログラムカウンタ(PC
)36のカウント値とを入力し、このカウント値がブレ
ークポイント用レジスタ29a又は29bのプログラム
停止アドレスに達すると、ICE制御回路部37にブレ
ーク制御信号BC1を出力する。
A break judgment comparator 40 compares each program stop address stored in the breakpoint registers 29a and 29b with the program counter (PC
) 36, and when this count value reaches the program stop address of the breakpoint register 29a or 29b, a break control signal BC1 is output to the ICE control circuit section 37.

【0026】又、ICE回路20はICE制御回路部3
7に備えられたブレーク用シリアルインタフェースポー
ト42と、インタフェース回路部38に備えられたデー
タ転送用シリアルインタフェースポート43,44及び
ステータス転送用シリアルインタフェースポート45〜
47との6つのシリアルインタフェースポート(以下、
単にポートという)を介して前記ICE本体13に接続
されるようになっている。
The ICE circuit 20 also includes an ICE control circuit section 3.
7, serial interface ports 43 and 44 for data transfer, and serial interface ports 45 for status transfer provided in the interface circuit section 38.
47 and six serial interface ports (hereinafter referred to as
It is connected to the ICE main body 13 via a port (simply referred to as a port).

【0027】インタフェース回路部38には前記ステー
タス転送用ポート45に対応して変調回路48が設けら
れ、同変調回路48は前記クロック発生部35で発生さ
れるDSP11のクロック信号に基づいて前記制御回路
32からのステータス信号STの1ビットを符号化する
ようになっている。一方、前記ICE本体13には図5
に示すように前記ステータス転送用ポート45に対応し
て復合器49が設けられるとともに、クロック抽出部5
0が設けられている。クロック抽出部50は前記変調回
路48にて符号化された1ビットのステータス信号ST
からクロック信号を抽出して制御回路51に出力するよ
うになっている。制御回路51はこのクロック信号が安
定すると、このクロックに同期して全てのポート42〜
47を介してICE回路20との間でデータ通信を行う
ようになっている。
A modulation circuit 48 is provided in the interface circuit section 38 in correspondence with the status transfer port 45, and the modulation circuit 48 controls the control circuit based on the clock signal of the DSP 11 generated by the clock generation section 35. 1 bit of the status signal ST from 32 is encoded. On the other hand, the ICE main body 13 has a
As shown in FIG. 2, a decoder 49 is provided corresponding to the status transfer port 45, and a clock extractor 5
0 is set. The clock extraction unit 50 receives the 1-bit status signal ST encoded by the modulation circuit 48.
A clock signal is extracted from the control circuit 51 and output to the control circuit 51. When this clock signal becomes stable, the control circuit 51 controls all ports 42 to 42 in synchronization with this clock.
Data communication is performed with the ICE circuit 20 via 47.

【0028】尚、ICE回路20はICE本体13との
同期を確立するために、通信開始時に、符号化方式に応
じた同期がとり易いデータパターンを繰り返し送り続け
る。そして、一定時間後、ICE回路20は符号化を行
わずに通常のシリアル通信でデータを送信しているポー
ト、例えばステータス転送用ポート46が「H」から「
L」(又は「H」から「L」)に変化し、ステータス転
送用ポート47の出力レベルが予め定められた値になっ
ていると、ICE本体13は同期が完了したことを確認
するようになっている。
In order to establish synchronization with the ICE main body 13, the ICE circuit 20 repeatedly sends a data pattern that is easy to synchronize according to the encoding method at the start of communication. Then, after a certain period of time, the ICE circuit 20 changes the port that is transmitting data through normal serial communication without encoding, for example the status transfer port 46, from "H" to "
When the output level of the status transfer port 47 reaches a predetermined value, the ICE main unit 13 confirms that synchronization has been completed. It has become.

【0029】そして、ICE回路20が前記ICE本体
13に接続された状態において、ICE本体13から前
記制御回路32にリセット信号が入力されると、図4(
a)に示すようにICE回路20はリセット入力となり
、ブレーク用及びデータ転送用ポート42,43のみが
入力状態となり、他のポート44〜47はLレベルの出
力状態となる。この状態において、ICE本体13から
ブレーク用及びデータ転送用ポート42,43に入力さ
れる信号値の組合わせに応じて、ICE回路20はIC
E停止モード、トレースモード、ICEモード、又は書
込みモードのいずれかのモードとなる。
When the ICE circuit 20 is connected to the ICE main body 13 and a reset signal is input from the ICE main body 13 to the control circuit 32, the state shown in FIG.
As shown in a), the ICE circuit 20 becomes a reset input, only the break and data transfer ports 42 and 43 are in the input state, and the other ports 44 to 47 are in the L level output state. In this state, the ICE circuit 20 controls the IC according to the combination of signal values input from the ICE main body 13 to the break and data transfer ports 42 and 43.
The mode is E-stop mode, trace mode, ICE mode, or write mode.

【0030】即ち、図4(a)に示す状態において、ブ
レーク用及びデータ転送用ポート42,43の信号値の
組合わせが「L,L」になると、図4(b)に示すよう
にICE停止モードとなる。このICE停止モードでは
全てのポート42〜47が入力状態となり、ICE回路
20はその内部に設けた図示しないプルダウン抵抗によ
って「0」が入力される。この結果、ICE回路20の
機能は停止され、DSP11は通常動作となる。
That is, in the state shown in FIG. 4(a), when the combination of signal values of the break and data transfer ports 42 and 43 becomes "L, L", the ICE is activated as shown in FIG. 4(b). It enters stop mode. In this ICE stop mode, all ports 42 to 47 are in the input state, and "0" is input to the ICE circuit 20 by a pull-down resistor (not shown) provided inside the ICE circuit 20. As a result, the function of the ICE circuit 20 is stopped and the DSP 11 returns to normal operation.

【0031】図4(a)に示す状態において、ブレーク
用及びデータ転送用ポート42,43の信号値の組合わ
せが「L,H」になると、図4(c)に示すようにトレ
ースモードとなる。このトレースモードではブレーク用
ポート42のみが入力状態となり、他のポート43〜4
7は出力状態となる。又、図4(a)に示す状態におい
て、ブレーク用及びデータ転送用ポート42,43の信
号値の組合わせが「H,L」になると、図4(d)に示
すようにICEモードとなる。このICEモードではブ
レーク用ポート42が入力状態で、ステータス転送用ポ
ート45〜47が出力状態となる。又、ICEスモード
ではデータ転送用ポート43,44は入出力可能なバス
状態となる。
In the state shown in FIG. 4(a), when the combination of signal values of the break and data transfer ports 42 and 43 becomes "L, H", the trace mode is activated as shown in FIG. 4(c). Become. In this trace mode, only the break port 42 is in the input state, and the other ports 43 to 4 are in the input state.
7 is in the output state. In addition, in the state shown in FIG. 4(a), when the combination of signal values of the break and data transfer ports 42 and 43 becomes "H, L", the ICE mode is entered as shown in FIG. 4(d). . In this ICE mode, the break port 42 is in the input state, and the status transfer ports 45 to 47 are in the output state. Further, in the ICE mode, the data transfer ports 43 and 44 are in a bus state in which input and output are possible.

【0032】更に、図4(a)に示す状態において、ブ
レーク用及びデータ転送用ポート42,43の信号値の
組合わせが「H,H」になると、図4(e)に示すよう
に書込みモードとなる。この書込みモードではブレーク
用及びデータ転送用ポート42,43は入力状態で、ス
テータス転送用ポート45〜47はLレベルの出力状態
となり、データ転送用ポート44は書込み電圧が印加さ
れる。
Furthermore, in the state shown in FIG. 4(a), when the combination of signal values of the break and data transfer ports 42 and 43 becomes "H, H", a write operation is performed as shown in FIG. 4(e). mode. In this write mode, the break and data transfer ports 42 and 43 are in an input state, the status transfer ports 45 to 47 are in an L level output state, and a write voltage is applied to the data transfer port 44.

【0033】図4(c)に示すトレースモードにおいて
、インタフェース回路部38は前記制御回路32から入
力される複数ビットのステータス信号STをステータス
転送用ポート45〜47を介してICE本体13に出力
するようになっている。又、このトレースモードにおい
てシフトレジスタ39にはプログラムカウンタ36から
プログラムの実行アドレスが入力されており、インタフ
ェース回路部38はシフトレジスタ39にシフトクロッ
クCKを出力して2ビットのシリアル信号データを入力
し、データ転送用ポート43,44を介してICE本体
13に出力するようになっている。
In the trace mode shown in FIG. 4(c), the interface circuit section 38 outputs the multi-bit status signal ST inputted from the control circuit 32 to the ICE main body 13 via the status transfer ports 45 to 47. It looks like this. In addition, in this trace mode, the program execution address is input from the program counter 36 to the shift register 39, and the interface circuit unit 38 outputs a shift clock CK to the shift register 39 and inputs 2-bit serial signal data. , and is output to the ICE main body 13 via data transfer ports 43 and 44.

【0034】又、このトレースモードにおいて、命令デ
コーダ31にてEPROM21に記憶されたトレースプ
ログラムが実行されてRAM22又は23における連続
した8つのデータがデータトレース用レジスタ26a〜
26hに格納されると、ICE制御回路部37はアドレ
ス演算ユニット34からのデータ格納信号DSに基づい
てデータトレース用レジスタ26a〜26hの各データ
に識別コードATRを付加し、順次、シフトレジスタ3
9に転送する。そして、インタフェース回路部38はシ
フトクロックCKを出力してシフトレジスタ39から2
ビットのシリアル信号データを入力し、データ転送用ポ
ート43,44を介してICE本体13に出力し、デー
タトレースを行うようになっている。従って、このデー
タトレース時には、プログラムの実行アドレスのトレー
スは行われない。
In this trace mode, the trace program stored in the EPROM 21 is executed by the instruction decoder 31, and eight consecutive pieces of data in the RAM 22 or 23 are stored in the data trace registers 26a to 26.
26h, the ICE control circuit unit 37 adds an identification code ATR to each data in the data trace registers 26a to 26h based on the data storage signal DS from the address calculation unit 34, and sequentially stores the data in the shift register 3.
Transfer to 9. Then, the interface circuit section 38 outputs the shift clock CK and inputs the shift clock CK from the shift register 39 to 2.
Bit serial signal data is input and output to the ICE main body 13 via data transfer ports 43 and 44 to perform data tracing. Therefore, during this data tracing, the execution address of the program is not traced.

【0035】更に、トレースモードにおいて、ICE制
御回路部37にブレーク判定コンパレータ40からブレ
ーク制御信号BC1が入力されるか、又はICE本体1
3からブレーク用ポート42を介してブレーク制御信号
BC2が入力されると、ICE制御回路部37はICE
回路20をICEモードにする。図4(d)に示すIC
Eモードにおいて、ICE制御回路部37は前記制御回
路32にブレーク信号SBを出力して制御回路32、命
令デコーダ31、演算ユニット33及びアドレス演算ユ
ニット34を停止状態にする。
Furthermore, in the trace mode, the break control signal BC1 is input from the break judgment comparator 40 to the ICE control circuit section 37, or the ICE main body 1
When the break control signal BC2 is input from the break port 42 from the break port 42, the ICE control circuit section 37
Put the circuit 20 into ICE mode. IC shown in Figure 4(d)
In the E mode, the ICE control circuit unit 37 outputs a break signal SB to the control circuit 32 to stop the control circuit 32, instruction decoder 31, arithmetic unit 33, and address arithmetic unit 34.

【0036】又、ICE制御回路部37はそのときのプ
ログラムカウンタ36の実行アドレスをICE用内部バ
ス41を介してシフトレジスタ39に転送し、インタフ
ェース回路部38はシフトクロックCKに基づいてその
ときの実行アドレスをデータ転送用ポート43,44を
介してICE本体13のメモリ52に退避させる。又、
ICE制御回路部37はそのときのステータスレジスタ
33aの内容をデータバス30を介して例えばデータト
レース用レジスタ26aに格納した後、同レジスタ26
aの内容をICE用内部バス41を介してシフトレジス
タ39に転送する。インタフェース回路部38はシフト
クロックCKに基づいてステータスレジスタ33aの内
容をデータ転送用ポート43,44を介してICE本体
13のメモリ52に退避させる。
Furthermore, the ICE control circuit unit 37 transfers the current execution address of the program counter 36 to the shift register 39 via the ICE internal bus 41, and the interface circuit unit 38 transfers the current execution address of the program counter 36 to the shift register 39 based on the shift clock CK. The execution address is saved in the memory 52 of the ICE main body 13 via the data transfer ports 43 and 44. or,
The ICE control circuit unit 37 stores the contents of the status register 33a at that time in, for example, the data trace register 26a via the data bus 30, and then stores the contents of the status register 33a at that time in the data trace register 26a.
The contents of a are transferred to the shift register 39 via the ICE internal bus 41. The interface circuit section 38 saves the contents of the status register 33a to the memory 52 of the ICE main body 13 via the data transfer ports 43 and 44 based on the shift clock CK.

【0037】次に、ICE制御回路部37はICE本体
13に備えられたメモリ52におけるモニタープログラ
ムの先頭アドレスをデータ転送用ポート43,44を介
して入力し、シフトレジスタ39にてパラレル信号デー
タに変換してプログラムカウンタ36に格納した後、C
PU17の停止を解除する。これにより、プログラムカ
ウンタ36のカウント値はシフトレジスタ39及びデー
タ転送用ポート43,44を介してICE本体13に転
送され、メモリ52におけるモニタープログラムが読み
出される。メモリ52から読み出されたプログラムデー
タはデータ転送用ポート43,44及びシフトレジスタ
39を介して命令デコーダ31に転送され、デコードさ
れて演算ユニット33にて実行される。
Next, the ICE control circuit section 37 inputs the start address of the monitor program in the memory 52 provided in the ICE main body 13 via the data transfer ports 43 and 44, and converts it into parallel signal data in the shift register 39. After converting and storing in the program counter 36, C
Release the stoppage of PU17. As a result, the count value of the program counter 36 is transferred to the ICE main body 13 via the shift register 39 and the data transfer ports 43 and 44, and the monitor program in the memory 52 is read out. The program data read from the memory 52 is transferred to the instruction decoder 31 via the data transfer ports 43 and 44 and the shift register 39, decoded, and executed by the arithmetic unit 33.

【0038】従って、このICEモードにおいては、D
SP11は外部ICE装置15の支配下に置かれる。即
ち、ターミナルパソコン14のキーボードを操作し、I
CE制御回路部37を制御するための命令をデータ転送
用ポート43,44、シフトレジスタ39、データトレ
ース用レジスタ26a及びデータバス30を介してコン
トロール用レジスタ27に転送することにより、ICE
制御回路部37によってCPU17を制御することが可
能となり、所要のデバッグを実施することが可能となる
Therefore, in this ICE mode, D
SP11 is placed under the control of external ICE device 15. That is, by operating the keyboard of the terminal computer 14,
By transferring a command for controlling the CE control circuit unit 37 to the control register 27 via the data transfer ports 43 and 44, the shift register 39, the data trace register 26a, and the data bus 30, the ICE
It becomes possible to control the CPU 17 by the control circuit section 37, and it becomes possible to perform necessary debugging.

【0039】又、このICEモードの解除は、ターミナ
ルパソコン14のキーボードを操作し、解除命令をコン
トロール用レジスタ27に格納すると、ICE制御回路
部37が制御回路32にブレーク信号SBを出力して制
御回路32、命令デコーダ31、演算ユニット33及び
アドレス演算ユニット34を停止状態にする。次に、I
CE制御回路部37は前記メモリ52に退避させたプロ
グラムカウンタ36の実行アドレスをデータ転送用ポー
ト43,44を介して入力し、シフトレジスタ39にて
パラレル信号データに変換してプログラムカウンタ36
に格納する。又、ICE制御回路部37は前記メモリ5
2に退避させたステータスレジスタ33aの内容をデー
タ転送用ポート43,44を介して入力し、シフトレジ
スタ39にてパラレル信号データに変換してデータトレ
ース用レジスタ26aに格納した後、同レジスタ26a
の内容をデータバス33aを介してステータスレジスタ
33aに格納する。
To cancel the ICE mode, operate the keyboard of the terminal personal computer 14 and store a cancellation command in the control register 27, and then the ICE control circuit section 37 outputs a break signal SB to the control circuit 32 to control the ICE mode. The circuit 32, instruction decoder 31, arithmetic unit 33, and address arithmetic unit 34 are brought to a halt state. Next, I
The CE control circuit unit 37 inputs the execution address of the program counter 36 saved in the memory 52 via the data transfer ports 43 and 44, converts it into parallel signal data in the shift register 39, and transfers the execution address to the program counter 36.
Store in. Further, the ICE control circuit section 37 is connected to the memory 5.
The contents of the status register 33a saved in 2 are input via the data transfer ports 43 and 44, converted into parallel signal data by the shift register 39, and stored in the data trace register 26a.
The contents of are stored in the status register 33a via the data bus 33a.

【0040】この後、ICE制御回路部37は制御回路
32に解除信号を出力してCPU17の停止を解除する
。これにより、CPU17のプログラムアクセスは前記
EPROM21に移り、DSP11はEPROM21の
プログラムに基づく本来の動作を実行する。更に、図4
(e)に示す書込みモードにおいて、ICE制御回路部
37は前記制御回路32にブレーク信号SBを出力して
制御回路32、命令デコーダ31、及び演算ユニット3
3を停止状態にする。そして、外部ICE装置15から
データ転送用ポート43,44を介してアドレスデータ
を入力し、シフトレジスタ39にてパラレル信号データ
に変換してプログラムカウンタ36に格納してEPRO
M21の所定アドレスをアクセスする。
After that, the ICE control circuit section 37 outputs a release signal to the control circuit 32 to release the stoppage of the CPU 17. Thereby, the program access of the CPU 17 is transferred to the EPROM 21, and the DSP 11 executes the original operation based on the program in the EPROM 21. Furthermore, Figure 4
In the write mode shown in FIG.
3 is stopped. Then, address data is inputted from the external ICE device 15 via the data transfer ports 43 and 44, converted into parallel signal data by the shift register 39, stored in the program counter 36, and sent to the EPRO.
Access the predetermined address of M21.

【0041】この後、外部ICE装置15からデータ転
送用ポート43,44を介してプログラムデータを入力
し、シフトレジスタ39にてパラレル信号データに変換
してデータトレース用レジスタ26a〜26hのいずれ
かを介してデータバス30に出力しておく。そして、外
部ICE装置15からデータ転送用ポート44に書込み
電圧を印加すると、EPROM21の所定アドレスにプ
ログラムデータが書き込まれる。上記の処理を繰り返し
実行することにより、EPROM21の内容が書き換え
られる。
After that, program data is inputted from the external ICE device 15 through the data transfer ports 43 and 44, converted into parallel signal data by the shift register 39, and sent to one of the data trace registers 26a to 26h. It is output to the data bus 30 via the data bus 30. Then, when a write voltage is applied from the external ICE device 15 to the data transfer port 44, program data is written to a predetermined address of the EPROM 21. By repeatedly executing the above process, the contents of the EPROM 21 are rewritten.

【0042】このように、本実施例ではICE本体13
から制御回路32にリセット信号が入力されてブレーク
用及びデータ転送用ポート42,43のみが入力状態と
なり、他のポート43〜47はLレベルの出力状態とな
ったとき、ICE本体13からブレーク用及びデータ転
送用ポート42,43に入力される信号値の組合わせに
応じて、ICE回路20をICE停止モード、トレース
モード、ICEモード、又は書込みモードのいずれかの
モードとなるようにしている。そして、書込みモードに
おいては制御回路32、命令デコーダ31、及び演算ユ
ニット33を停止状態にし、外部ICE装置15からデ
ータ転送用ポート43,44及びシフトレジスタ39を
介してアドレスデータ及びプログラムデータを入力し、
アドレスデータをプログラムカウンタ36に格納してE
PROM21の所定アドレスをアクセスさせ、データ転
送用ポート44に書込み電圧を印加するようにしている
ので、ICE回路20によってDSP11に形成したE
PROM21の内容を書き換えることができる。
In this way, in this embodiment, the ICE main body 13
When a reset signal is input to the control circuit 32 from the ICE main body 13 and only the break and data transfer ports 42 and 43 are in the input state, and the other ports 43 to 47 are in the L level output state, the break signal is input from the ICE main body 13 to the control circuit 32. The ICE circuit 20 is set to one of the following modes: ICE stop mode, trace mode, ICE mode, or write mode, depending on the combination of signal values input to the data transfer ports 42 and 43. In the write mode, the control circuit 32, instruction decoder 31, and arithmetic unit 33 are stopped, and address data and program data are input from the external ICE device 15 through the data transfer ports 43, 44 and the shift register 39. ,
Store the address data in the program counter 36 and
Since a predetermined address of the PROM 21 is accessed and a write voltage is applied to the data transfer port 44, the E formed in the DSP 11 by the ICE circuit 20 is
The contents of PROM 21 can be rewritten.

【0043】又、本実施例ではICE回路20にパラレ
ル信号データをシリアル信号データに変換するシフトレ
ジスタ39を設けるとともに、データ転送用ポートをシ
リアルインタフェースポート42〜47としているので
、パラレルでデータを転送するものと比較してICE回
路に割り当てられるポート数を削減することができる。
Furthermore, in this embodiment, the ICE circuit 20 is provided with a shift register 39 for converting parallel signal data into serial signal data, and the data transfer ports are serial interface ports 42 to 47, so data can be transferred in parallel. It is possible to reduce the number of ports allocated to the ICE circuit compared to the conventional ICE circuit.

【0044】又、本実施例ではICE回路20に、同期
をとるためのクロック信号に基づいてステータス信号S
Tの1ビットを符号化する変調回路48を設けたので、
同期のためだけに使用するポートを設ける必要がなく、
ICE回路20に割り当てられるポート数をより確実に
削減できる。又、本実施例ではICE回路20を、RA
M22,23に記憶されているデータをトレースするた
めの複数のデータトレース用レジスタ26a〜26hを
設け、データトレース時には一度に8個のデータを各レ
ジスタ26a〜26hに格納して順次識別コードを付加
して出力するようにしたので、複数のデータをほぼ同時
にトレースすることができる。
Further, in this embodiment, the ICE circuit 20 receives a status signal S based on a clock signal for synchronization.
Since a modulation circuit 48 is provided to encode one bit of T,
There is no need to provide a port used only for synchronization,
The number of ports allocated to the ICE circuit 20 can be reduced more reliably. Further, in this embodiment, the ICE circuit 20 is
A plurality of data trace registers 26a to 26h are provided to trace the data stored in M22 and M23, and during data tracing, eight pieces of data are stored in each register 26a to 26h at a time and identification codes are sequentially added. Since the data is output as follows, multiple pieces of data can be traced almost simultaneously.

【0045】又、本実施例ではICE停止モードでは全
てのICE回路20の全てのポート42〜47が入力状
態となり、ICE回路20はその内部に設けた図示しな
いプルダウン抵抗によって「0」が入力されて機能停止
状態となる。これによって、ICE回路20の不使用時
においてDSP11の動作に障害を与えるのを防止でき
る。
Further, in this embodiment, in the ICE stop mode, all ports 42 to 47 of all ICE circuits 20 are in the input state, and "0" is input to the ICE circuit 20 by a pull-down resistor (not shown) provided inside the ICE circuit 20. The system will stop functioning. This can prevent the ICE circuit 20 from interfering with the operation of the DSP 11 when it is not in use.

【0046】又、本実施例ではICE回路20のICE
モードにおいて、制御回路32、命令デコーダ31、演
算ユニット33及びアドレス演算ユニット34を一時的
に停止状態にし、そのときのプログラムカウンタ36の
実行アドレスとステータスレジスタ33aの内容とをI
CE本体13のメモリ52に退避させ、メモリ52にお
けるモニタープログラムのアドレスをプログラムカウン
タ36に格納した後、CPU17の停止を解除するよう
にしているので、DSP11を外部ICE装置15の支
配下に置くことができ、ターミナルパソコン14を操作
することにより所要のデバッグを実施することが可能と
なる。
Furthermore, in this embodiment, the ICE of the ICE circuit 20
In this mode, the control circuit 32, instruction decoder 31, arithmetic unit 33, and address arithmetic unit 34 are temporarily stopped, and the execution address of the program counter 36 and the contents of the status register 33a at that time are
After saving the monitor program to the memory 52 of the CE main body 13 and storing the address of the monitor program in the memory 52 in the program counter 36, the stoppage of the CPU 17 is released, so the DSP 11 can be placed under the control of the external ICE device 15. It becomes possible to perform necessary debugging by operating the terminal personal computer 14.

【0047】尚、ICE回路20のリセット状態からの
ICE停止モード、トレースモード、ICEモード、又
は書込みモードへの移行を行うための各シリアルインタ
フェースポート42〜47の状態設定は上記実施例に限
定されるものではなく、任意に変更して実施することが
可能である。
Note that the state setting of each serial interface port 42 to 47 for transitioning the ICE circuit 20 from the reset state to the ICE stop mode, trace mode, ICE mode, or write mode is limited to the above embodiment. It is not a complete set of guidelines and can be modified and implemented as desired.

【0048】[0048]

【発明の効果】以上詳述したように第1発明によれば、
チップ上にプログラムを書き換え可能な不揮発性メモリ
を形成した半導体集積回路装置において、チップ上に形
成したICE回路にて不揮発性メモリの内容を変更する
ことができる。又、本発明はプログラムの実行アドレス
をトレースできるとともに、チップ上に形成したRAM
のデータトレースを行うことができる。
[Effects of the Invention] As detailed above, according to the first invention,
In a semiconductor integrated circuit device in which a programmable nonvolatile memory is formed on a chip, the contents of the nonvolatile memory can be changed by an ICE circuit formed on the chip. In addition, the present invention can trace the execution address of a program, and can also trace the execution address of a program.
Data tracing can be performed.

【0049】又、ICE回路を、半導体集積回路装置内
のパラレル信号データを複数のシリアル信号データに変
換するデータ形式変換手段と、データ形式変換手段にて
変換されたシリアル信号データを外部ICE装置に出力
する複数のシリアルインタフェースポートとを備えたも
のとすることにより、パラレルでデータを転送するもの
と比較してICE回路に割り当てられるポート数を削減
することができる。
The ICE circuit also includes a data format conversion means for converting parallel signal data within the semiconductor integrated circuit device into a plurality of serial signal data, and a data format conversion means for converting the serial signal data converted by the data format conversion means to an external ICE device. By providing a plurality of output serial interface ports, the number of ports allocated to the ICE circuit can be reduced compared to a device that transfers data in parallel.

【0050】又、ICE回路を、外部ICE装置と同期
をとるためのクロック信号に基づいていずれか1つのシ
リアルインタフェースポートのシリアル信号データを符
号化する変調回路を備たものとすることにより、同期の
ためのポートを設ける必要がなく、ICE回路に割り当
てられるポート数をより確実に削減できる。又、ICE
回路を、RAMに記憶されているデータをトレースする
ための複数のレジスタを設けたので、複数のデータをほ
ぼ同時にトレースすることができる。
Furthermore, by providing the ICE circuit with a modulation circuit that encodes the serial signal data of any one serial interface port based on a clock signal for synchronizing with an external ICE device, synchronization can be achieved. There is no need to provide a port for the ICE circuit, and the number of ports allocated to the ICE circuit can be reduced more reliably. Also, ICE
Since the circuit is provided with a plurality of registers for tracing data stored in the RAM, a plurality of data can be traced almost simultaneously.

【0051】又、ICE回路を、外部ICE装置からの
ブレーク制御信号に基づいて不揮発性メモリのプログラ
ムによる中央処理装置の動作を停止させる第2の停止制
御手段と、第2の停止制御手段による中央処理装置の動
作停止に基づいて中央処理装置の動作を外部ICE装置
のモニタープログラムによる動作に切換える切換制御手
段とを備えたものとすることにより、不揮発性メモリの
任意のアドレスにて中央処理装置を外部ICE装置の支
配下におくことが可能となる。
The ICE circuit also includes a second stop control means for stopping the operation of the central processing unit according to a program in the nonvolatile memory based on a break control signal from an external ICE device; By including a switching control means for switching the operation of the central processing unit to the operation according to the monitor program of the external ICE device based on the stoppage of the operation of the processing unit, the central processing unit can be switched to an arbitrary address in the non-volatile memory. It becomes possible to place it under the control of an external ICE device.

【0052】更に、ICE回路を、外部ICE装置から
の機能停止信号に基づいてICE回路の機能を停止させ
る機能停止手段を備えたものとすることにより、ICE
回路の不使用時には半導体集積回路装置の動作に障害を
与えるのを防止できる。
Furthermore, by providing the ICE circuit with a function stop means for stopping the function of the ICE circuit based on a function stop signal from an external ICE device, the ICE circuit can be
When the circuit is not in use, it is possible to prevent interference with the operation of the semiconductor integrated circuit device.

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

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

【図2】本発明をDSPに具体化した一実施例を示す概
略構成図である。
FIG. 2 is a schematic configuration diagram showing an example in which the present invention is embodied in a DSP.

【図3】一実施例のDSPの詳細を示すブロック回路図
である。
FIG. 3 is a block circuit diagram showing details of a DSP in one embodiment.

【図4】(a)はリセット状態の各ポートの属性を示す
図、(b)はICE停止モードの各ポートの属性を示す
図、(c)はトレースモードの各ポートの属性を示す図
、(d)はICEモードの各ポートの属性を示す図、(
e)は書込みモードの各ポートの属性を示す図である。
4(a) is a diagram showing the attributes of each port in reset state, (b) is a diagram showing the attributes of each port in ICE stop mode, (c) is a diagram showing the attributes of each port in trace mode, (d) is a diagram showing the attributes of each port in ICE mode, (
e) is a diagram showing the attributes of each port in write mode.

【図5】ICE回路とICE本体との接続を示す図であ
る。
FIG. 5 is a diagram showing the connection between the ICE circuit and the ICE main body.

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

1  不揮発性メモリ 2  中央処理装置 2a  アドレス発生回路 2b  プログラムカウンタ 2c  プログラム実行部 3,22,23  RAM 4  ICE回路 5  第1の停止制御手段 6  書込み制御手段 13  ICE本体 15  外部ICE装置 26a〜26h  データトレース用レジスタ37  
書込み制御手段、第1,第2の停止制御手段、切換制御
手段及び機能停止手段としてのICE制御回路部39 
 データ形式変換手段としてのシフトレジスタ42〜4
7  シリアルインタフェースポート48  変調回路 52  メモリ
1 Nonvolatile memory 2 Central processing unit 2a Address generation circuit 2b Program counter 2c Program execution section 3, 22, 23 RAM 4 ICE circuit 5 First stop control means 6 Write control means 13 ICE main body 15 External ICE devices 26a to 26h Data Trace register 37
ICE control circuit unit 39 as a write control means, first and second stop control means, switching control means, and function stop means
Shift registers 42 to 4 as data format conversion means
7 Serial interface port 48 Modulation circuit 52 Memory

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】  プログラムを書き換え可能な不揮発性
メモリ(1)と、不揮発性メモリ(1)の所定アドレス
をアクセスするプログラムカウンタ(2b)を含むアド
レス発生回路(2a)と、読み出されたプログラムデー
タを高速で実行するプログラム実行部(2c)とを備え
た中央処理装置(2)と、プログラムの実行に使用する
データを記憶したRAM(3)と、前記中央処理装置(
2)の動作を外部からの命令により制御監視するICE
(インサーキット・エミュレータ)回路(4)とを1つ
の半導体チップ上に形成した半導体集積回路装置であっ
て、ICE回路(4)は、外部ICE装置から入力され
る書込み制御信号に基づいて前記プログラム実行部(2
b)の動作を停止させる第1の停止制御手段(5)と、
外部ICE装置から入力されるアドレスデータをアドレ
ス発生回路(2a)に入力し、アドレス発生回路(2a
)にてアクセスされた不揮発性メモリ(1)の所定アド
レスにプログラムデータを書き込む書込み制御手段(6
)を備えたことを特徴とする半導体集積回路装置。
1. A non-volatile memory (1) in which a program can be rewritten, an address generation circuit (2a) including a program counter (2b) for accessing a predetermined address of the non-volatile memory (1), and a read program. A central processing unit (2) equipped with a program execution unit (2c) that executes data at high speed, a RAM (3) that stores data used for program execution, and a central processing unit (
2) ICE that controls and monitors the operation based on external commands.
(in-circuit emulator) circuit (4) formed on one semiconductor chip, the ICE circuit (4) is configured to program the program based on a write control signal input from an external ICE device. Execution part (2
a first stop control means (5) for stopping the operation of b);
Address data input from an external ICE device is input to the address generation circuit (2a),
) Write control means (6) writes program data to a predetermined address of the nonvolatile memory (1) accessed by
) A semiconductor integrated circuit device characterized by comprising:
【請求項2】  前記ICE回路(4)は、半導体集積
回路装置内のパラレル信号データを入力してシリアル信
号データに変換するデータ形式変換手段(39)と、デ
ータ形式変換手段(39)にて変換されたシリアル信号
データと中央処理装置(2)の他のステータス情報を外
部ICE装置(15)に出力する複数のシリアルインタ
フェースポート(42〜47)とを備えることを特徴と
する請求項1記載の半導体集積回路装置。
2. The ICE circuit (4) includes a data format conversion means (39) for inputting parallel signal data in a semiconductor integrated circuit device and converting it into serial signal data; 2. The device according to claim 1, further comprising a plurality of serial interface ports (42-47) for outputting the converted serial signal data and other status information of the central processing unit (2) to an external ICE device (15). semiconductor integrated circuit devices.
【請求項3】  前記ICE回路(4)は、外部ICE
装置(15)のICE本体(13)とシリアルでデータ
転送を行うための同期用クロックの発生部をICE回路
(4)内に備えるとともに、クロック信号に基づいてい
ずれか1つのシリアルインタフェースポートのシリアル
信号データを符号化する変調回路(48)を備え、シリ
アル信号データと同期クロックとを同時にICE本体(
13)へ送出することを特徴とする請求項2記載の半導
体集積回路装置。
[Claim 3] The ICE circuit (4) is an external ICE circuit.
The ICE circuit (4) is equipped with a synchronization clock generator for serial data transfer with the ICE main body (13) of the device (15), and the serial clock of any one serial interface port is provided based on the clock signal. It is equipped with a modulation circuit (48) that encodes signal data, and simultaneously transmits serial signal data and a synchronized clock to the ICE main body (
13) The semiconductor integrated circuit device according to claim 2, wherein
【請求項4】  前記ICE回路(4)は、RAM(2
2,23)に記憶されているデータをトレースするため
の複数のレジスタ(26a〜26h)を備え、各レジス
タ(26a〜26h)のデータに識別コードを付加して
順次データ形式変換手段(39)に転送するものである
ことを特徴とする請求項2記載の半導体集積回路装置。
4. The ICE circuit (4) includes a RAM (2).
A data format conversion means (39) includes a plurality of registers (26a to 26h) for tracing the data stored in the registers (2, 23), and sequentially adds an identification code to the data in each register (26a to 26h). 3. The semiconductor integrated circuit device according to claim 2, wherein the semiconductor integrated circuit device is configured to transfer data to .
【請求項5】  前記ICE回路(4)は、外部ICE
装置(15)からのブレーク制御信号に基づいて前記不
揮発性メモリ(1)のプログラムによる中央処理装置(
2)の動作を一時的に停止させる第2の停止制御手段(
37)と、前記第2の停止制御手段(37)による前記
中央処理装置(2)の動作停止に基づいてプログラムカ
ウンタ(2b)及びステータスレジスタ(33a)の内
容をICE本体(13)内のメモリへ退避させ、以後、
プログラムのアクセスを前記不揮発性メモリ(1)から
ICE本体(13)のメモリへ切換えて中央処理装置(
2)に前記外部ICE装置のモニタープログラムを実行
させる切換制御手段(37)とを備えることを特徴とす
る請求項1記載の半導体集積回路装置。
5. The ICE circuit (4) is an external ICE circuit.
The central processing unit (
2) second stop control means (
37), and the contents of the program counter (2b) and status register (33a) are stored in the memory in the ICE main body (13) based on the suspension of the operation of the central processing unit (2) by the second halt control means (37). After that,
Program access is switched from the non-volatile memory (1) to the memory of the ICE main body (13) and the central processing unit (
2. The semiconductor integrated circuit device according to claim 1, further comprising switching control means (37) for causing said external ICE device to execute a monitor program in said external ICE device.
【請求項6】  前記ICE回路(4)は、外部ICE
装置(15)からの機能停止信号に基づいてICE回路
(4)の機能を停止させる機能停止手段(37)を備え
ることを特徴とする請求項1記載の半導体集積回路装置
6. The ICE circuit (4) is an external ICE circuit.
2. The semiconductor integrated circuit device according to claim 1, further comprising a function stop means (37) for stopping the function of the ICE circuit (4) based on a function stop signal from the device (15).
JP3075242A 1991-04-08 1991-04-08 Semiconductor integrated circuit device Withdrawn JPH04309139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3075242A JPH04309139A (en) 1991-04-08 1991-04-08 Semiconductor integrated circuit device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3075242A JPH04309139A (en) 1991-04-08 1991-04-08 Semiconductor integrated circuit device

Publications (1)

Publication Number Publication Date
JPH04309139A true JPH04309139A (en) 1992-10-30

Family

ID=13570560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3075242A Withdrawn JPH04309139A (en) 1991-04-08 1991-04-08 Semiconductor integrated circuit device

Country Status (1)

Country Link
JP (1) JPH04309139A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10269101A (en) * 1997-03-27 1998-10-09 Nec Corp Method for developing program of microcomputer, and microcomputer and debugging device used for the same method
US6275923B1 (en) 1996-06-28 2001-08-14 Nec Corporation Data processing method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275923B1 (en) 1996-06-28 2001-08-14 Nec Corporation Data processing method and apparatus
JPH10269101A (en) * 1997-03-27 1998-10-09 Nec Corp Method for developing program of microcomputer, and microcomputer and debugging device used for the same method

Similar Documents

Publication Publication Date Title
US5109333A (en) Data transfer control method and apparatus for co-processor system
JPH02287635A (en) Debugging peripheral equipment for microcomputer,microprocessor and core processor integrated circuit
US4005391A (en) Peripheral interrupt priority resolution in a micro program data processor having plural levels of subinstruction sets
JPS63301339A (en) Computer device
JPS61241841A (en) Emulator
KR890010673A (en) Data processor and its processing control method
JP2002323995A (en) Trace circuit
US4667285A (en) Microcomputer unit
US4947478A (en) Switching control system for multipersonality computer system
JPH04309139A (en) Semiconductor integrated circuit device
JPH0776932B2 (en) Data transmission method
JPS5965310A (en) Arithmetic processor of programmable controller
JP2581080B2 (en) Microprocessor for debugging
JP2808757B2 (en) Microprocessor for debugging
JPS642177Y2 (en)
JP3547012B2 (en) Microcomputer
KR0153537B1 (en) Signal processing structure preselecting memory address data
KR960010921B1 (en) Data processor
JPH02226352A (en) System lsi
JPH0411895B2 (en)
JPH0212436A (en) Semiconductor device
JPH06103106A (en) Program debug device
JPS63307543A (en) Debug device
JPH01140349A (en) Single chip microcomputer for evaluation
JPH04101263A (en) Clock equipment

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980711