JPH05342378A - Evaluation chip - Google Patents

Evaluation chip

Info

Publication number
JPH05342378A
JPH05342378A JP4149638A JP14963892A JPH05342378A JP H05342378 A JPH05342378 A JP H05342378A JP 4149638 A JP4149638 A JP 4149638A JP 14963892 A JP14963892 A JP 14963892A JP H05342378 A JPH05342378 A JP H05342378A
Authority
JP
Japan
Prior art keywords
instruction
output
address
control
monitor rom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4149638A
Other languages
Japanese (ja)
Inventor
Takao Nakamura
孝雄 中村
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP4149638A priority Critical patent/JPH05342378A/en
Publication of JPH05342378A publication Critical patent/JPH05342378A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To easily perform the external control by providing a monitor ROM where specific instructions are stored and control bits are provided. CONSTITUTION:A NOP instruction which executes nothing, a jump (JMP) instruction, a transfer instruction group for internal register read, and a transfer instruction group for internal register write are stored in an output instruction part (INSTRUCTION) of a monitor ROM 1. Control bit parts M0 to M3 of the monitor ROM 1 are connected to a latch 2. The latch output M0 controls reset of a program counter 12. The output M1 controls selection of the instruction part of the monitor ROM 1 and an address register 11 at the time of execution of the JMP instruction in the monitor ROM 1. Outputs M2 and M3 control a flip flop 7. Thus, only address designation of the monitor ROM 1 is fundamentally performed as the control from the outside to realize the debugging function.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は大規模集積回路(LS
I)におけるエバリエーションチップ、より具体的には
1チップマイクロコンピュータやディジタル信号処理プ
ロセッサ等に有利に適用され、プログラム・メモリをチ
ップの内部あるいは外部に有するLSIの評価用チップ
(エバリエーションチップ)に関する。
BACKGROUND OF THE INVENTION The present invention relates to a large scale integrated circuit (LS).
I) Variation chip in I), more specifically, it is advantageously applied to a one-chip microcomputer, a digital signal processor, etc., and relates to an LSI evaluation chip (variation chip) having a program memory inside or outside the chip. ..

【0002】[0002]

【従来の技術】従来、この種のエバリエーションチップ
は、プログラムのデバッグが行えるように、外部からの
命令の挿入、実行制御、内部レジスタの表示・変更等の
機能を専用ロジックにて実現していた。
2. Description of the Related Art Conventionally, this kind of variation chip has realized functions such as instruction insertion from the outside, execution control, display / change of internal registers, etc. with dedicated logic so that a program can be debugged. It was

【0003】[0003]

【発明が解決しようとする課題】しかしながらこのよう
な従来技術では、マイクロコンピュータ等の内部タイミ
ングに合わせ、専用ロジックにてデバッグを行うように
していたため、その開発に多大な労力を要し、また本来
のチップと異った動作をしてしまう等のバグが発生しや
すかった。
However, in such a conventional technique, since the dedicated logic is used for debugging in accordance with the internal timing of the microcomputer or the like, a great deal of labor is required for its development, and it is originally necessary. It was easy to cause bugs such as different operation from the chips of.

【0004】また、従来のエバリエーションチップとし
ての機能設計は、実際にはたとえばマイクロコンピュー
タとして機能する本チップと比べて軽視される傾向にあ
り、チップ外で多くの制御をするというアプローチが一
般的であった。その結果、命令の挿入や実行制御、内部
レジスタの表示という複雑なインタフェースをエバリエ
ーションチップに持たせていた。このため、外部インタ
ーフェースが複雑となり、非常に使いづらいと言う欠点
があった。
Further, the conventional functional design as the variation chip tends to be neglected in comparison with, for example, the present chip functioning as a microcomputer in practice, and an approach of performing a lot of control outside the chip is generally used. Met. As a result, the variation chip had a complicated interface for instruction insertion, execution control, and internal register display. As a result, the external interface becomes complicated and it is very difficult to use.

【0005】本発明はこのような従来技術の欠点を解消
し、より汎用的な制御を行うモニタROMをエバリエー
ションチップに持たせることにより、外部制御が容易な
エバリエーションチップを提供することを目的とする。
It is an object of the present invention to solve the above-mentioned drawbacks of the prior art and to provide an variation chip which allows easy external control by providing the variation chip with a monitor ROM for performing more general-purpose control. And

【0006】[0006]

【課題を解決するための手段および作用】本発明は上述
の課題を解決するために、大規模集積回路のデバックの
際に使用されるエバリエーションチップは、特定命令を
実行させるための複数の命令が格納されているととも
に、数ビットの制御ビットが設けられている記憶手段
と、制御ビットにより制御されるレジスタおよびカウン
タとを有し、デバックの際には、記憶手段の命令および
制御ビットにより、記憶手段の命令および大規模集積回
路のプログラムメモリが選択的に実行されることにより
デバック処理が行われる。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention provides a variation chip used for debugging a large scale integrated circuit, which has a plurality of instructions for executing a specific instruction. Is stored and has a storage means provided with several control bits, a register and a counter controlled by the control bit, and at the time of debugging, by the instruction and the control bit of the storage means, Debug processing is performed by selectively executing the instructions of the storage means and the program memory of the large scale integrated circuit.

【0007】[0007]

【実施例】次に添付図面を参照して本発明によるエバリ
エーションチップの実施例を詳細に説明する。
Embodiments of the variation chip according to the present invention will now be described in detail with reference to the accompanying drawings.

【0008】図1は、本発明の実施例を示すブロック図
であり、符号1は特定命令を格納しておくモニタRO
M、符号3,4はセレクタ、符号5はインストラクショ
ンレジスタ(IR)、符号6はプログラムカウンタ(P
C)、符号10はブレークポインタ(BP)、符号11
はアドレスレジスタ(ADR)、符号12はモニタRO
M用プログラムカウンタ(PC0)、符号13は入出力
レジスタ(I/O)である。
FIG. 1 is a block diagram showing an embodiment of the present invention. Reference numeral 1 is a monitor RO for storing a specific instruction.
M, reference numerals 3 and 4 are selectors, reference numeral 5 is an instruction register (IR), reference numeral 6 is a program counter (P
C), reference numeral 10 is a break pointer (BP), reference numeral 11
Is an address register (ADR), reference numeral 12 is a monitor RO
An M program counter (PC0), reference numeral 13 is an input / output register (I / O).

【0009】モニタROM1の出力・インストラクショ
ン部(INSTRUCTION)は、何も実行しないN
OP命令や、ジャンプ命令、内部レジスタ・リード用転
送命令群および内部レジスタ・ライト用転送命令群等が
格納されている。モニタROM1の出力・インストラク
ション部において、アドレス部等、その一部はセレクタ
3に入力され、それ以外の部分はセレクタ3の出力とと
もにセレクタ4に入力される。
The output / instruction section (INSTRUTION) of the monitor ROM 1 executes N
An OP instruction, a jump instruction, an internal register / read transfer instruction group, an internal register / write transfer instruction group, and the like are stored. In the output / instruction section of the monitor ROM 1, a part of the address section or the like is input to the selector 3, and the other part is input to the selector 4 together with the output of the selector 3.

【0010】一方、セレクタ3の他方の入力端子には、
プログラムを実行させる場合のスタートアドレスを設定
するアドレスレジスタ11の出力端子と接続され、また
セレクタ4の他方の入力端子には、プログラムカウンタ
6によりアドレス指定されるプログラムメモリ15の出
力端子が接続される。さらに、モニタROM1の制御用
ビット部(M0 ,M1 ,M2 ,M3 )はラッチ2に接続
され、これにその時の制御用ビットM0 ,M1 ,M2
3 が入力される。
On the other hand, at the other input terminal of the selector 3,
It is connected to the output terminal of the address register 11 for setting the start address when executing the program, and the other input terminal of the selector 4 is connected to the output terminal of the program memory 15 addressed by the program counter 6. .. Further, the control bit parts (M 0 , M 1 , M 2 , M 3 ) of the monitor ROM 1 are connected to the latch 2, and the control bits M 0 , M 1 , M 2 ,
M 3 is input.

【0011】デバッグ用データ・バスDBi端子は、デ
バックレジスタ10,11,12,13に接続され、デ
ータのリード/ライトを行う。バーRD、バーWR、D
Ai端子は、非同期インターフェース制御回路14に入
力され、内部タイミングに同期された後、デバックレジ
スタ10〜13のリード/ライトを行う。なお、図面に
おいてその符号上に“ ̄”のあるものは、“バーRD”
のように本明細書ではその前に“バー”を付与して示
す。
The debug data bus DBi terminal is connected to the debug registers 10, 11, 12, and 13 to read / write data. Bar RD, Bar WR, D
The Ai terminal is input to the asynchronous interface control circuit 14 and, after being synchronized with the internal timing, reads / writes the debug registers 10 to 13. It should be noted that, in the drawings, the symbol with a "|" in the symbol indicates "bar RD".
As described above, in the present specification, a "bar" is added before it.

【0012】入出力レジスタ13は、内部データ・バス
に接続され、マイクロコンピュータ等が本来持っている
レジスタ、すなわち入力レジスタ、出力レジスタ、テン
ポラリレジスタまたはアキュムレータなどのリード/ラ
イトを行う。プログラムカウンタ12は、モニタROM
1のアドレスを指定するカウンタである。
The input / output register 13 is connected to the internal data bus and performs reading / writing of the register originally possessed by the microcomputer or the like, that is, the input register, the output register, the temporary register or the accumulator. The program counter 12 is a monitor ROM
This is a counter for designating an address of 1.

【0013】ブレーク・ポインタ10は、プログラムを
実行する場合のストップアドレスが設定されるポインタ
であり、その出力端子は比較器9に接続されている。ま
た、比較器9の他方の入力端子には、プログラムカウン
タ6の出力が接続されている。比較器9は、これら両ア
ドレスが一致した場合にその出力が“1”となり、オア
回路8の入力端子に出力される。
The break pointer 10 is a pointer to which a stop address for executing a program is set, and its output terminal is connected to the comparator 9. The output of the program counter 6 is connected to the other input terminal of the comparator 9. The output of the comparator 9 becomes "1" when these two addresses match, and is output to the input terminal of the OR circuit 8.

【0014】オア回路8の他方の入力端子には、外部リ
セット(RESET)およびラッチ回路2からのラッチ
出力M3 が入力される。オア回路7の出力端子は、セッ
ト・リセット端子を有するフリップフロップ7のセット
側に接続されている。また、このフリップフロップ7の
リセット側には、ラッチ回路2のラッチ出力M2 が入力
される。
An external reset (RESET) and the latch output M 3 from the latch circuit 2 are input to the other input terminal of the OR circuit 8. The output terminal of the OR circuit 7 is connected to the set side of the flip-flop 7 having a set / reset terminal. The latch output M 2 of the latch circuit 2 is input to the reset side of the flip-flop 7.

【0015】フリップフロップ7の出力端子Qは、外部
FLAG端子、プログラム・カウンタ6のインクリメン
ト禁止制御端子INHおよびセレクタ4の制御端子に接
続されている。セレクタ4はフリップフロップ7の出力
Qにより制御される。
The output terminal Q of the flip-flop 7 is connected to the external FLAG terminal, the increment prohibition control terminal INH of the program counter 6 and the control terminal of the selector 4. The selector 4 is controlled by the output Q of the flip-flop 7.

【0016】ラッチ回路2のラッチ出力Mφは、プラグ
ラムカウンタ12のリセット端子Rに入力され、このカ
ウンタPC0のリセット制御を行う。ラッチ出力M
1 は、セレクタ3の制御端子に出力されこのセレクタ3
の制御を行う。
The latch output Mφ of the latch circuit 2 is input to the reset terminal R of the program counter 12 to control the reset of the counter PC0. Latch output M
1 is output to the control terminal of the selector 3
Control.

【0017】ここでラッチ出力M0 〜M3 の意味を説明
する。出力M0 は、プログラムカウンタ12のリセット
制御を行う出力であり、“1”の場合にカウンタ12が
“0”にリセットされる。出力M1 は、モニタROM1
のJMP命令実行時にモニタROM1のインストラクシ
ョン部とアドレスレジスタ11との選択制御を行う出力
であり、この信号が“1”の場合はアドレスレジスタ1
1の内容がジャンプ・アドレスとして選択される。
Here, the meaning of the latch outputs M 0 to M 3 will be described. The output M 0 is an output for performing the reset control of the program counter 12, and when it is “1”, the counter 12 is reset to “0”. Output M 1 is monitor ROM 1
Is an output for performing selection control between the instruction section of the monitor ROM 1 and the address register 11 when the JMP instruction is executed. When this signal is "1", the address register 1
The content of 1 is selected as the jump address.

【0018】出力M2 は、フリップフロップ7の制御を
行う。この信号が“1”の場合、フリップフロップ7の
出力が“0”となり、プログラム・カウンタ6のインク
リメントが実行される。また、フリップフロップの出力
はセレクタ4にも入力され、プログラムメモリ15の出
力がインストラクションとして選択される。出力M
3は、オア回路8を通しフリップフロップ7のセット信
号を制御する。この信号が“1”の場合、フリップフロ
ップ7の出力が“1”となり、プログラム・カウンタ1
5のインクリメントが抑止され、さらにモニタROM1
の出力がセレクタ4によりインストラクションとして選
択される。
The output M 2 controls the flip-flop 7. When this signal is "1", the output of the flip-flop 7 becomes "0", and the program counter 6 is incremented. The output of the flip-flop is also input to the selector 4, and the output of the program memory 15 is selected as an instruction. Output M
Reference numeral 3 controls the set signal of the flip-flop 7 through the OR circuit 8. When this signal is "1", the output of the flip-flop 7 becomes "1" and the program counter 1
Increment of 5 is suppressed, and monitor ROM1
Is output as an instruction by the selector 4.

【0019】次に、図1および図2を用いて本実施例の
動作を説明する。
Next, the operation of this embodiment will be described with reference to FIGS.

【0020】RESET信号解除後、PCおよびPC0
は“0”にリセットされ、さらに7のS−RFFは、
“1”にセットされている。従って前述したように、P
Cインクリメントは抑止され、インストラクションはモ
ニタROMの0番地を実行する。次に、図2のタイムチ
ャートよりプログラムカウンタ12(PC0)は、ラッ
チ出力M0 によりセットされ、0番地、すなわちNOP
命令を実行し続ける。
After releasing the RESET signal, PC and PC0
Is reset to “0”, and the S-RFF of 7 is
It is set to "1". Therefore, as mentioned above, P
The C increment is suppressed, and the instruction executes address 0 in the monitor ROM. Next, from the time chart of FIG. 2, the program counter 12 (PC0) is set by the latch output M 0 and the address 0, that is, NOP.
Continue executing instructions.

【0021】次に、ある特定番地からある特定番地まで
を実行させる場合について説明する。このとき、あらか
じめアドレス11にはスタート番地(n番地)が、ブレ
ークポインタ10にはストップ番地(m番地)がそれぞ
れ書込まれているものとする。
Next, the case of executing from a specific address to a specific address will be described. At this time, it is assumed that the start address (n address) is written in the address 11 and the stop address (m address) is written in the break pointer 10, respectively.

【0022】バーWR端子よりプログラムカウンタPC
0に2番地を書込む。このPC0の出力によりモニタR
OM1の2番地が読出され、インストラクションレジス
タ(IR)5にはJMP命令がセットされる。この時、
ラッチ出力M1 によりジャンプアドレスとしては、アド
レス11の出力が選択される。
From the bar WR terminal to the program counter PC
Write address 2 to 0. Monitor R by the output of this PC0
The address 2 of OM1 is read and the JMP instruction is set in the instruction register (IR) 5. At this time,
The output of the address 11 is selected as the jump address by the latch output M 1 .

【0023】このJMP命令が実行され、プログラムカ
ウンタ6(PC)がn番地となるとともに、ラッチ出力
2 によりフリップフロップ7が“0”にリセットさ
れ、プログラムカウンタPCのインクリメント禁止が解
除される。さらに、セレクタ4は、プログラム・メモリ
15の出力を選択し、制御がプログラム・メモリ15側
に移る。従ってプログラム・メモリのn番地より実行が
開始される。
When this JMP instruction is executed, the program counter 6 (PC) becomes the address n, the flip-flop 7 is reset to "0" by the latch output M 2 , and the prohibition of increment of the program counter PC is released. Further, the selector 4 selects the output of the program memory 15, and the control is transferred to the program memory 15 side. Therefore, the execution is started from the address n of the program memory.

【0024】プログラムカウンタPC0はラッチ出力M
0 信号により0番地を指定し続ける。プログラムカウン
タPCがm番地になった時点で比較器9の出力が“1”
となり、フリップフロップ7が“1”にセットされ、制
御がモニタROM1に戻り0番地のNOP命令を実行し
続ける。以上でプログラムのn番地からm番地までの実
行が完了する。
The program counter PC0 has a latch output M.
Continue to specify 0 address by 0 signal. When the program counter PC reaches the address m, the output of the comparator 9 is "1".
Then, the flip-flop 7 is set to "1", the control returns to the monitor ROM 1, and the NOP instruction at the address 0 continues to be executed. This completes the execution of the program from addresses n to m.

【0025】次にプログラムカウンタPC0に3番地を
書込むことによりMOV命令を実行し、内部レジスタの
値を入出力レジスタ13に転送する。この時、ラッチ出
力M3 に関係なく、フリップフロップの出力は“1”を
維持する。この入出力レジスタ13を外部バーRD信号
によりエバチップ外に読出す。以降、4番地,5番地,
…n−1番地を繰り返すことにより、全レジスタの内容
を読み出すことができる。なお、モニタROM1の1番
地は、プログラム暴走時の強制ブレークの際に用いる番
地である。
Next, the MOV instruction is executed by writing the address 3 to the program counter PC0, and the value of the internal register is transferred to the input / output register 13. In this case, regardless of the latch output M 3, the output of the flip-flop maintains "1". This input / output register 13 is read out of the evaluation chip by the external bar RD signal. From address 4, address 5,
The contents of all the registers can be read by repeating the address n-1. Note that the 1st address of the monitor ROM 1 is an address used for a forced break at the time of program runaway.

【0026】[0026]

【発明の効果】このように本発明のエバリエーションチ
ップによれば、モニタROMとその制御回路を内蔵する
ことにより、従来複雑であったエバチップの構成を非常
に簡略化できる。更に外部からの制御が基本的にモニタ
ROMのアドレス指定だけでデバック機能を実現できる
ためインターフェースが非常に簡単にできる。従って本
発明によるエバリエーションチップをマイクロコンピュ
ータやディジタル・シグナル・プロセッサ等に適用する
ことにより、速く、正確にデバックを行うことが可能と
なる。
As described above, according to the variation chip of the present invention, by incorporating the monitor ROM and its control circuit, it is possible to greatly simplify the structure of the ever-evaluating chip. Further, since the control from the outside can basically realize the debug function only by specifying the address of the monitor ROM, the interface can be made very simple. Therefore, by applying the variation chip according to the present invention to a microcomputer, a digital signal processor or the like, it becomes possible to perform debugging quickly and accurately.

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

【図1】本発明によるエバリエーションチップの実施例
を示す機能ブロック図、
FIG. 1 is a functional block diagram showing an embodiment of an variation chip according to the present invention,

【図2】図1に示した実施例における動作シーケンスを
示すタイムチャートである。
FIG. 2 is a time chart showing an operation sequence in the embodiment shown in FIG.

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

1 モニタROM 3,4 セレクタ 5 インストラクションレジスタ 6 プログラムカウンタ 10 ブレークポインタ 11 アドレスレジスタ 12 モニタROM用プログラムカウンタ 13 入出力レジスタ 1 Monitor ROM 3, 4 Selector 5 Instruction Register 6 Program Counter 10 Break Pointer 11 Address Register 12 Monitor ROM Program Counter 13 Input / Output Register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 大規模集積回路のデバックの際に使用さ
れるエバリエーションチップにおいて、 特定命令を実行させるための複数の命令が格納されてい
るとともに、数ビットの制御ビットが設けられている記
憶手段と、 前記制御ビットにより制御されるレジスタおよびカウン
タとを有し、 デバックの際には、前記記憶手段の命令および制御ビッ
トにより、前記記憶手段の命令および前記大規模集積回
路のプログラムメモリに格納された所定の命令のいずれ
かが選択的に実行されることにより、デバック処理が行
われることを特徴とするエバリエーションチップ。
1. A memory in which a plurality of instructions for executing a specific instruction are stored and a few control bits are provided in an variation chip used for debugging a large-scale integrated circuit. Means and a register and a counter controlled by the control bit, and when debugging, store the instruction of the storage means and the program memory of the large scale integrated circuit by the instruction and control bit of the storage means. The variation chip is characterized in that debug processing is performed by selectively executing any of the predetermined instructions that have been executed.
JP4149638A 1992-06-09 1992-06-09 Evaluation chip Pending JPH05342378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4149638A JPH05342378A (en) 1992-06-09 1992-06-09 Evaluation chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4149638A JPH05342378A (en) 1992-06-09 1992-06-09 Evaluation chip

Publications (1)

Publication Number Publication Date
JPH05342378A true JPH05342378A (en) 1993-12-24

Family

ID=15479607

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4149638A Pending JPH05342378A (en) 1992-06-09 1992-06-09 Evaluation chip

Country Status (1)

Country Link
JP (1) JPH05342378A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008008711A1 (en) * 2008-02-11 2009-08-13 Atmel Germany Gmbh Method for testing microcontroller, involves calling command for moving bit values of register of microcontroller as indirect jump address in test mode over interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008008711A1 (en) * 2008-02-11 2009-08-13 Atmel Germany Gmbh Method for testing microcontroller, involves calling command for moving bit values of register of microcontroller as indirect jump address in test mode over interface

Similar Documents

Publication Publication Date Title
JPH0248931B2 (en)
JPH0414385B2 (en)
JPH05342378A (en) Evaluation chip
US6721937B2 (en) Method and system for automated processor register instantiation
JPH03271829A (en) Information processor
JPH0222413B2 (en)
JPS6410854B2 (en)
JPS5987562A (en) Debugging device
JPS642177Y2 (en)
JP2883488B2 (en) Instruction processing unit
CN115374027A (en) Method for realizing any IO port line operation of single chip microcomputer by using C program pointer and function parameter
JPS6230453B2 (en)
JP2000029508A (en) Programmable controller
JP2707256B2 (en) Micro computer
JPS6218934B2 (en)
JPS647520Y2 (en)
JPS5936853A (en) Operation processor
JPH09106359A (en) Semiconductor integrated circuit
JPS63163634A (en) Instruction fetch system
JPS60193046A (en) Detecting system for instruction exception
JPH06175883A (en) Program debugger
JPS6146531A (en) Microprocessor
JPS6250854B2 (en)
JP2006318172A (en) Microcomputer
JPS61217833A (en) Arithmetic processor