JP2833933B2 - In-circuit emulator - Google Patents
In-circuit emulatorInfo
- Publication number
- JP2833933B2 JP2833933B2 JP4177851A JP17785192A JP2833933B2 JP 2833933 B2 JP2833933 B2 JP 2833933B2 JP 4177851 A JP4177851 A JP 4177851A JP 17785192 A JP17785192 A JP 17785192A JP 2833933 B2 JP2833933 B2 JP 2833933B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- variable
- program
- microcomputer
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 230000015654 memory Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 5
- 238000000605 extraction Methods 0.000 description 4
- 239000012467 final product Substances 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 239000000470 constituent Substances 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明はインサーキット・エミュ
レータに関し、特に高級言語における変数の内容確認回
路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an in-circuit emulator, and more particularly to a circuit for confirming the contents of variables in a high-level language.
【0002】[0002]
【従来の技術】従来のインサーキット・エミュレータ
は、図3に示すように、エミュレータ用マイクロコンピ
ュータ(マイコン)1,アドレス・バス情報を抽出する
アドレス・バス情報抽出回路15と、指定変数の格納番
地を記憶している指定変数格納番地記憶回路16と、ア
ドレス・バス情報抽出回路15のアドレス・バス情報と
指定変数格納番地記憶回路16の格納番地を比較する比
較回路4と、比較回路4で一致した場合の変数内容を記
録する変数内容記録回路5と、変数内容記録回路5の変
数内容と比較する条件が納められ比較する変数内容比較
回路6と、変数内容比較回路6の条件結果をエミュレー
ト用マイコン1のプログラム実行制御の条件の一部と判
断するエミュレート用マイコン・プログラム実行制御回
路7と、変数内容比較回路6の条件結果を入力してエミ
ュレート用マイコン1に関係する情報の一つとして記録
するエミュレート用マイコン関係情報記録回路8を備え
ている。2. Description of the Related Art As shown in FIG. 3, a conventional in-circuit emulator includes an emulator microcomputer (microcomputer) 1, an address bus information extraction circuit 15 for extracting address bus information, and a storage address of a designated variable. And the comparison circuit 4 for comparing the address / bus information of the address / bus information extraction circuit 15 with the storage address of the designated variable storage address storage circuit 16, and the comparison circuit 4 A variable content recording circuit 5 for recording the content of the variable in the case of performing the operation, a variable content comparison circuit 6 for storing and comparing conditions for comparison with the variable content of the variable content recording circuit 5, and an emulation of the condition result of the variable content comparison circuit 6. Emulation microcomputer program execution control circuit 7 which is determined to be part of the program execution control conditions of microcomputer 1, and variable content ratio And a emulating microcomputer relation information recording circuit 8 which records as one of information relating to emulate microcomputer 1 by entering the conditions result in the circuit 6.
【0003】[0003]
【発明が解決しようとする課題】高級言語では、アセン
ブラ言語のようにプログラム作成者が直接メモリに変数
を割り当てることは少なく、コンパイル時またはプログ
ラム実行時に変数はメモリ上に割り当てられる。なかで
も、プログラム実行時に変数がメモリ上に割り当てる場
合は、プログラムの実行する内容によって変数のメモリ
番地が決定する。このため、プログラム実行前にメモリ
番地が特定できなかった。そのために、調べたい変数だ
けを特定番地にしたり、変数のメモリ番地を指定する処
理直後に、プログラムを停止してメモリ番地情報をとっ
てすぐにプログラムを実行することで従来のインサーキ
ット・エミュレータで対応していた。これでは、アルゴ
リズムの確認はどれでも、プログラムが最終製品と異な
る等の保証上問題点や、実行時間の差異が生じてしまう
等の問題点があった。In a high-level language, a program creator rarely assigns variables directly to a memory as in an assembler language, and variables are assigned to a memory at the time of compilation or program execution. In particular, when a variable is assigned to a memory at the time of executing a program, the memory address of the variable is determined according to the contents executed by the program. Therefore, the memory address could not be specified before the program was executed. For this purpose, a conventional in-circuit emulator can be used by stopping the program and immediately executing the program by taking the memory address information immediately after the process of specifying only the variable to be examined to a specific address or specifying the memory address of the variable. Was compatible. In this case, any check of the algorithm has a problem in assurance that the program is different from the final product and a problem in that a difference in execution time occurs.
【0004】また、高級言語で使用する変数の構成ビッ
ト数がマイコンで一度に扱える数を越えた場合には、高
級言語では1命令であってもコンパイルした機械語では
複数命令になり、メモリに割り当てられる変数も複数番
地にわたってしまう。もし、この変数のメモリ番地が特
定であっても、複数のメモリで一つの変数で示す場合
は、従来のインサーキット・エミュレータを使用すると
複数のメモリの処理をする途中に実際には条件が成立し
ていないのに、変数の確認条件が成立してしまう問題点
が発生してしまった。If the number of bits constituting a variable used in a high-level language exceeds the number that can be handled at a time by a microcomputer, even a single instruction in a high-level language becomes a plurality of instructions in a compiled machine language, and is stored in a memory. Variables to be assigned also span multiple addresses. Even if the memory address of this variable is specified, if a single variable is used for multiple memories, the condition is actually satisfied while processing multiple memories using a conventional in-circuit emulator. However, the problem that the condition for confirming the variable is satisfied has occurred.
【0005】本発明の目的は、前記問題点を解決し、プ
ログラムが最終製品と異なることなく、実行時間の差異
が生じなく、誤って変数の確認条件が成立しないように
したインサーキット・エミュレータを提供することにあ
る。SUMMARY OF THE INVENTION An object of the present invention is to provide an in-circuit emulator which solves the above-mentioned problems and which prevents a program from differing from a final product, does not cause a difference in execution time, and does not erroneously satisfy a variable checking condition. To provide.
【0006】[0006]
【課題を解決するための手段】本発明のインサーキット
・エミュレータの構成は、エミュレート用マイコンのプ
ログラム・カウンタと、指定した変数がプログラム上の
どこで使用されているかを示す指定変数プログラム上使
用一覧表記憶回路と、該指定変数プログラム上使用一覧
表記憶回路の指定変数が書き込まれているプログラム番
地と一致したかを比較する比較回路と、該比較回路で一
致した場合の変数内容を記録する変数内容記録回路と、
該変数内容記録回路の変数内容と比較する条件が納めら
れ比較する変数内容比較回路と、該変数内容比較回路の
条件結果をエミュレート用マイコンのプログラム実行制
御を条件の一部と判断するエミュレート用マイコン・プ
ログラム実行制御回路と、該変数内容比較回路の条件結
果を入力してエミュレート用マイコンに関係する情報の
一つとして記録するエミュレート用マイコン関係情報記
録回路とを備えることを特徴とする。According to the present invention, there is provided an in-circuit emulator comprising: a program counter of an emulating microcomputer; and a list of specified variables used in a program, which indicates where the specified variable is used in the program. A table storage circuit, a comparison circuit for comparing whether the specified variable of the specified variable program use list storage circuit matches the program address in which the program is written, and a variable for recording the content of the variable when the comparison circuit matches the program address A content recording circuit,
A variable content comparing circuit in which a condition to be compared with the variable content of the variable content recording circuit is stored and compared; and an emulator for judging a program execution control of a microcomputer for emulating the condition result of the variable content comparing circuit as a part of the condition. And an emulation microcomputer-related information recording circuit for inputting a condition result of the variable content comparison circuit and recording as one of information relating to the emulation microcomputer. I do.
【0007】[0007]
【実施例】図1は本発明の第1の実施例のインサーキッ
ト・エミュレータを示すブロック図である。図1におい
て、本実施例は、従来の抽出回路15がなく、エミュレ
ート用マイコン1内のプログラム・カウンタ2が利用さ
れる。FIG. 1 is a block diagram showing an in-circuit emulator according to a first embodiment of the present invention. In FIG. 1, the present embodiment does not include the conventional extraction circuit 15, and uses a program counter 2 in the emulation microcomputer 1.
【0008】変数の内容を抽出する方法としては、エミ
ュレート用マイコン1のブログラム・カウンタ2と、調
べたい変数のプログラム上での使用者番地を一覧してあ
る指定変数プログラム上使用一覧表記憶回路3の内容と
を比較する比較回路4とがある。プログラムが指定変数
を含む命令を実行するごとに、変数内容記録回路5に変
数の内容が記録され、エミュレート用マイコン・プログ
ラム実行制御回路7や、エミュレート用マイコン関係情
報記録回路の条件であるかどうかを変数内容比較回路6
で行っている。As a method of extracting the contents of the variables, a program counter 2 of the emulating microcomputer 1 and a specified variable program use list storing the user addresses of the variables to be examined in the program are stored. There is a comparison circuit 4 that compares the contents of the circuit 3 with the contents of the circuit 3. Each time the program executes an instruction including a designated variable, the contents of the variable are recorded in the variable content recording circuit 5, which is the condition of the emulation microcomputer / program execution control circuit 7 and the emulation microcomputer related information recording circuit. Whether or not the variable content comparison circuit 6
It is done in.
【0009】図2は本発明の第2の実施例のインサーキ
ット・エミュレータを示すブロック図である。図2にお
いて、本実施例は、高級言語で使用する変数の構成ビッ
ト数がマイコンで一度に扱えるビット数を越えた場合の
対応のものであり、エミュレート用マイコン1のプログ
ラム・カウンタ2を指定変数処理先頭箇所比較回路10
と、指定変数処理後尾箇所比較回路12とに入力してい
る。調べたい変数の処理の先頭と後尾を示す指定変数処
理先頭箇所プログラム上使用一覧表記憶回路9と指定変
数後尾箇所プログラム上使用一覧表記憶回路11で行っ
ている。FIG. 2 is a block diagram showing an in-circuit emulator according to a second embodiment of the present invention. In FIG. 2, this embodiment corresponds to a case where the number of constituent bits of a variable used in a high-level language exceeds the number of bits that can be handled by the microcomputer at one time, and designates the program counter 2 of the emulating microcomputer 1. Variable processing head comparison circuit 10
, And the tail position comparison circuit 12 after the designated variable processing. This is performed by the specified variable processing head location program use list storage circuit 9 and the specified variable tail location program use list storage circuit 11 indicating the beginning and end of the processing of the variable to be checked.
【0010】プログラムは指定変数の処理が開始した時
点で変数(複数メモリ構成)内容記録回路13で内容が
記録され、指定変数の処理が終了した時点で変数内容の
記録は終了する。この変数の内容は、エミュレート用マ
イコン・プログラム実行制御回路7やエミュレート用マ
イコン関係情報記録回路8の判断条件として変数(複数
メモリ構成)内容比較回路14で使用される。When the processing of the designated variable is started, the contents are recorded in the variable (multiple memory configuration) contents recording circuit 13, and when the processing of the designated variable ends, the recording of the contents of the variables ends. The content of this variable is used by the variable (multiple memory configuration) content comparison circuit 14 as a judgment condition of the emulation microcomputer program execution control circuit 7 and the emulation microcomputer related information recording circuit 8.
【0011】本実施例は、記憶回路9,11と、比較回
路10,12とを備え、図1の2倍数となっている。This embodiment has storage circuits 9 and 11 and comparison circuits 10 and 12, which are twice as many as those in FIG.
【0012】[0012]
【発明の効果】以上説明したように、本発明は、プログ
ラム実行時に変数がメモリ上に割り当てる場合も、変数
の内容を記録し、エミュレート用マイコンのプログラム
実行制御や、エミュレート用マイコン関係情報の記録等
に利用できるという効果があり、特に図2のように、指
定変数プログラム上使用一覧表記憶回路と比較回路とを
複数メモリに対応することで、高級言語で使用する変数
の構成ビット数がマイコンで一度に扱えるビット数を越
えた場合の対応も行なわれているという効果を有する。As described above, according to the present invention, even when a variable is allocated to the memory at the time of executing the program, the contents of the variable are recorded, the program execution control of the emulation microcomputer and the emulation microcomputer-related information are performed. In particular, as shown in FIG. 2, the number of configuration bits of a variable used in a high-level language can be obtained by using a plurality of memories as a storage circuit and a comparison circuit in a specified variable program as shown in FIG. Has an effect that the case where the number of bits which can be handled by the microcomputer at a time is exceeded is also taken.
【図1】本発明の第1の実施例のインサーキット・エミ
ュレータのブロック図である。FIG. 1 is a block diagram of an in-circuit emulator according to a first embodiment of the present invention.
【図2】本発明の第2の実施例のブロック図である。FIG. 2 is a block diagram of a second embodiment of the present invention.
【図3】従来のインサーキット・エミュレータのブロッ
ク図である。FIG. 3 is a block diagram of a conventional in-circuit emulator.
1 エミュレート用マイコン 2 プログラム・カウンタ 3 指定変数プログラム上使用一覧表記憶回路 4 比較回路 5 変数内容記録回路 6 変数内容比較回路 7 エミュレート用マイコン・プログラム実行制御回
路 8 エミュレート用マイコン関係情報記録回路 9 指定変数処理先頭箇所プログラム上使用一覧表記
憶回路 10 指定変数処理先頭箇所比較回路 11 指定変数処理後尾箇所プログラム上使用一覧表
記憶回路 12 指定変数処理後尾箇所比較回路 13 変数(複数メモリ構成)内容記録回路 14 変数(複数メモリ構成)内容比較回路 15 アドレス・バス情報抽出回路 16 指定変数格納番地記憶回路1 Emulator microcomputer 2 Program counter 3 Specified variable program use list storage circuit 4 Comparison circuit 5 Variable content recording circuit 6 Variable content comparison circuit 7 Emulation microcomputer / program execution control circuit 8 Emulation microcomputer related information recording Circuit 9 Specified variable processing head location program use list storage circuit 10 Specified variable processing head location comparison circuit 11 Specified variable processing tail location program usage list storage circuit 12 Specified variable processing tail location comparison circuit 13 Variable (multiple memory configuration) Content recording circuit 14 Variable (multiple memory configuration) content comparison circuit 15 Address / bus information extraction circuit 16 Specified variable storage address storage circuit
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 11/22 - 11/34 G06F 9/06 - 9/06 550──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 11/22-11/34 G06F 9/06-9/06 550
Claims (2)
カウンタと、指定した変数がプログラム上のどこで使用
されているかを示す指定変数プログラム上使用一覧表記
憶回路と、前記プログラム・カウンタが前記指定変数プ
ログラム上使用一覧表記憶回路の指定変数が書き込まれ
ているプログラム番地と一致したかを比較する比較回路
と、前記比較回路で一致した場合の変数内容を記録する
変数内容記録回路と、前記変数内容記録回路の変数内容
と比較する条件が納められ比較する変数内容比較回路
と、前記変数内容比較回路の条件結果を前記エミュレー
ト用マイコンのプログラム実行制御を条件の一部と判断
するエミュレート用マイコン・プログラム実行制御回路
と、前記変数内容比較回路の条件結果を入力して前記エ
ミュレート用マイコンに関係する情報の一つとして記録
するエミュレート用マイコン関係情報記録回路とを備え
ることを特徴とするインサーキット・エミュレータ。1. An emulation microcomputer program
A counter, a designated variable program use list storage circuit indicating where the designated variable is used in the program, and the program counter is written with the designated variable of the designated variable program use list storage circuit. A comparison circuit that compares whether the program address matches the program address, a variable content recording circuit that records the variable content when the comparison circuit matches, and a condition for comparison with the variable content of the variable content recording circuit. A variable content comparison circuit, an emulation microcomputer program execution control circuit for judging the condition result of the variable content comparison circuit as a part of the program execution control of the emulation microcomputer, and a condition of the variable content comparison circuit. For emulation which inputs the result and records it as one of the information related to the emulation microcomputer In-circuit emulator, characterized in that it comprises a icon relationship information recording circuit.
を超えた場合には、指定変数処理の先頭箇所と後尾箇所
とに分割して、各々について比較回路を通す請求項1に
記載のインサーキット・エミュレータ。2. The in-circuit circuit according to claim 1, wherein when the variable exceeds the number of bits that can be handled by the microcomputer at one time, the designated variable processing is divided into a head part and a tail part, and each of them is passed through a comparison circuit. ·emulator.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4177851A JP2833933B2 (en) | 1992-07-06 | 1992-07-06 | In-circuit emulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4177851A JP2833933B2 (en) | 1992-07-06 | 1992-07-06 | In-circuit emulator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0619734A JPH0619734A (en) | 1994-01-28 |
| JP2833933B2 true JP2833933B2 (en) | 1998-12-09 |
Family
ID=16038213
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4177851A Expired - Fee Related JP2833933B2 (en) | 1992-07-06 | 1992-07-06 | In-circuit emulator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2833933B2 (en) |
-
1992
- 1992-07-06 JP JP4177851A patent/JP2833933B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0619734A (en) | 1994-01-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6415436B1 (en) | Mechanism for cross validating emulated states between different emulation technologies in a dynamic compiler | |
| US4862351A (en) | Method of executing called activities via depictor-linked low level language microcode, hardware logic, and high level language commands; and apparatus for same | |
| JP2833933B2 (en) | In-circuit emulator | |
| GB2539657A (en) | Tracing Processing Activity | |
| KR20010076275A (en) | Semiconductor memory device and program discrimination system | |
| JPS6049352B2 (en) | data processing equipment | |
| JP7779237B2 (en) | Information processing device | |
| JP2954666B2 (en) | Memory check method | |
| JP3037012B2 (en) | Database monitoring mechanism | |
| JPH08249206A (en) | Calculator with stack area destruction detection function | |
| JP3140028B2 (en) | Subroutine argument passing method | |
| JPH06309236A (en) | Illegal write detecting circuit for memory | |
| DE102023205579A1 (en) | Method for testing a computer program | |
| JPS59202547A (en) | Debugging device | |
| JP2767818B2 (en) | Sequencer numerical simulation operation method | |
| JPS59153247A (en) | Debugging device | |
| JPS5968067A (en) | Specifying system for number of run steps | |
| JPS5822765B2 (en) | Program loading method in electronic computer system | |
| JPS59151250A (en) | Debugging device | |
| JPS6292033A (en) | Program debugging device | |
| JPS60215250A (en) | data processing equipment | |
| JPH01191238A (en) | Memory dump system | |
| JPH05334118A (en) | Preceding detection system for program step to be cause of program interruption | |
| JPH01300352A (en) | Dump area instruction control system | |
| JPH05341820A (en) | Arithmetic processing method for programmable controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19980901 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081002 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091002 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |