JPS61169943A - Stack tracer circuit - Google Patents

Stack tracer circuit

Info

Publication number
JPS61169943A
JPS61169943A JP60009832A JP983285A JPS61169943A JP S61169943 A JPS61169943 A JP S61169943A JP 60009832 A JP60009832 A JP 60009832A JP 983285 A JP983285 A JP 983285A JP S61169943 A JPS61169943 A JP S61169943A
Authority
JP
Japan
Prior art keywords
stack
memory
data
instruction
circuit
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
JP60009832A
Other languages
Japanese (ja)
Inventor
Yuji Uchida
雄二 内田
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 JP60009832A priority Critical patent/JPS61169943A/en
Publication of JPS61169943A publication Critical patent/JPS61169943A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Abstract

PURPOSE:To supervise the overlap of an area by the small number of parts by distributing the function of a stack tracer circuit into a circuit for storing an area using a RAM as a memory and a circuit for controlling program execution on the basis of the operation of a stack pointer. CONSTITUTION:The data output of a latch circuit 15 is inhibited through a latch control line 5, data which are the address data of a writable/readable memory 13 are inputted from a stack tracer control part 19 to a latch circuit 16 and the data are latched by the latch circuit 16 through a latch control line 6. The contents of the memory 13 which are obtained through a memory read control line 10 are inputted to the control part 19 through a data I/O line 4. When the input data is '1', the area indicates that the internal RAM of a program evaluating microcomputer 11 is used as a memory. The data reading operation is repeated the whole areas of the memory 13 and the overlap between the area used as a memory and a stack area can be tested by the reading operation.

Description

【発明の詳細な説明】 (産業上の利用分IF) この発明は、マイクロコンピュータ用プログラム・デバ
ッグ装置におけるスタックトレーサ回路に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application IF) The present invention relates to a stack tracer circuit in a program debugging device for a microcomputer.

(従来の技術) スタックトレーサ回路とは、マイクロコンビュ−夕内部
のスタック (RAMエリアの一部で、CA、LL命令
を実行する際に戻り先の番地を記憶する所)のレベル(
何重にCALL命令が行われたか)を追跡する回路であ
る。スタックトレーサ回路の機能は後述するこの発明の
あらかじめ設定したレベルに達すると、プログラムの実
行を禁止するものである。
(Prior art) A stack tracer circuit is a stack tracer circuit that traces the level (a part of the RAM area and stores the return destination address when executing CA and LL instructions) inside a microcomputer.
This is a circuit that tracks how many CALL commands have been executed. The function of the stack tracer circuit is to inhibit program execution when a preset level of the present invention, which will be described later, is reached.

通常、マイクロコンピュータ用のプログラムデバッグ装
置に使われている評価用マイクロコンピュータ内部のR
AMに対する命令としては、スタックとして使用する命
令と、メモリ (RAM)として使用する命令があり、
さらにメモリとして使用する命令としては、直接アドレ
ッシングする命令と間接アドレッシングする命令がある
Normally, R inside the evaluation microcomputer used in program debugging equipment for microcomputers.
There are two types of instructions for AM: instructions to use it as a stack and instructions to use it as memory (RAM).
Furthermore, instructions for use as memory include direct addressing instructions and indirect addressing instructions.

このうち、間接アドレッシングする命令というのは、指
定したアドレスのRAM (通常レジスタという)の内
容が示すアドレスのRAMをアクセスする命令である。
Among these, the indirect addressing instruction is an instruction that accesses the RAM at the address indicated by the contents of the RAM (usually referred to as a register) at the specified address.

そこで、リアルタイムで評価用マイクロコンピュータの
内部のRAMの使用状況をスタックとして使用した領域
とメモリとして使用した領域とに分けて記憶させるには
、まず、実行する命令を解析し、その命令がスタックに
関する命令の場合には、どのようにスタックポインタが
動くかを管理し、さらにスタックポインタの値によりプ
ログラムの実行の継続/中止を評価用チップに指示する
必要がある。
Therefore, in order to store the usage status of the internal RAM of the evaluation microcomputer in real time separately in the area used as a stack and the area used as memory, first analyze the instruction to be executed and determine whether the instruction is related to the stack. In the case of instructions, it is necessary to manage how the stack pointer moves and further instruct the evaluation chip to continue or stop program execution based on the value of the stack pointer.

メモリとして使用する命令の場合には、直接アドレッシ
ングする命令か、間接アドレッシングする命令かを判断
し、直接アドレッシングする命令の場合には、そのアド
レスをメモリとして使用した領域として記憶する。
In the case of an instruction to be used as a memory, it is determined whether the instruction is a direct addressing instruction or an indirect addressing instruction, and in the case of a direct addressing instruction, the address is stored as an area used as a memory.

間接アドレッシングする命令の場合には、指定された評
価用マイクロコンピュータ内部のRAMの内容がメモリ
として使用されるアドレスとなるため、指定されたRA
Mの内容がわからなければメモリとして使用した領域と
して記憶することができない。
In the case of an indirect addressing instruction, the contents of the RAM inside the specified evaluation microcomputer will be the address used as memory, so the specified RA
If the contents of M are not known, it cannot be stored as an area used as memory.

そのため、実行した命令によりどのように評価用マイク
ロコンピュータ内部のRAMが変化したかを、命令の実
行の度に把握する必要がある。そして、間接アドレッシ
ングする命令を実行する場合に、まず指定されたRAM
の内容を調べ、その後、その内容が示すアドレスをメモ
リとして使用した領域として記憶する。上記の動作をそ
の命令の実行が終わるまでに終了しなければならない。
Therefore, it is necessary to understand how the RAM inside the evaluation microcomputer has changed due to the executed instruction each time the instruction is executed. When executing an indirect addressing instruction, first the specified RAM
The contents are checked, and the address indicated by the contents is then stored as an area used as memory. The above operation must be completed before the execution of the instruction is completed.

(発明が解決しようとする問題点) しかしながら、上記の方法では、命令を実行する時間の
間に命令を解析し、その結果に基づき評価用マイクロコ
ンピュータ内部の状態を把握し、さらに、指定された評
価用マイクロコンピュータ内部のRAMの内容をメモリ
として使用した領域のアドレスとして記憶するのは、時
間的に難しく、また部品点数が多く、複雑になるという
問題がある。
(Problem to be Solved by the Invention) However, in the above method, the instruction is analyzed during the instruction execution time, the internal state of the evaluation microcomputer is grasped based on the result, and the specified Storing the contents of the RAM inside the evaluation microcomputer as an address of an area used as a memory is difficult in terms of time and requires a large number of parts, making it complicated.

この発明は、前記従来技術がもっている欠点のうち、リ
アルタイムで評価用マイクロコンピュータ内部のRAM
の使用状態を感知することが難しい点と、部品点数が多
く複雑となる点について解決したスタックトレーサ回路
を提供するものである。
This invention solves the drawbacks of the prior art described above, and solves the problems of the RAM inside the evaluation microcomputer in real time.
The present invention provides a stack tracer circuit that solves the problems of difficulty in sensing the usage status of the device and complexity due to the large number of components.

(問題点を解決するための手段) この発明は、スタックトレーサ回路において、プログラ
ム評価用マイクロコンピュータ内部のRAMをアクセス
した場合のアドレスを表わすデータポインタの値をプロ
グラム評価用マイクロコンピュータの外部に出力する出
力端子を持つプログラム評価用マイクロコンピュータを
用い、プログラム評価用マイクロコンピュータ内部のR
A Mをメモリとして使用した領域を記憶する回路と、
スタックポインタの動きによりプログラムを制御する制
御手段を設けたものである。
(Means for Solving the Problems) The present invention, in a stack tracer circuit, outputs the value of a data pointer representing an address when a RAM inside a program evaluation microcomputer is accessed to the outside of the program evaluation microcomputer. Using a program evaluation microcomputer with an output terminal, R inside the program evaluation microcomputer is
A circuit that stores an area using A as a memory;
A control means is provided for controlling the program by the movement of the stack pointer.

(作 用) この発明によれば、以上のようにスタックトレーサ回路
を構成したので、プログラム評価用マイクロコンピュー
タ内部のRAMをアクセスした場合に、アドレスを表わ
すデータポインタの値をプログラム評価用マイクロコン
ピュータの外部に導出するために記憶する回路に記憶し
、スタックポインタの動きにより制御手段でプログラム
の実行を制御するようにし、したがって、前記問題点を
除去できるのである。
(Function) According to the present invention, since the stack tracer circuit is configured as described above, when the RAM inside the program evaluation microcomputer is accessed, the value of the data pointer representing the address can be changed to the value of the data pointer in the program evaluation microcomputer. The program is stored in a storage circuit for external extraction, and the execution of the program is controlled by the control means by the movement of the stack pointer, thereby eliminating the above-mentioned problem.

(実施例) 以下、この発明のスタックトレーサ回路の実施例につい
て図面に基づき説明する。第1図はその一実施例の構成
を示すブロック図である。
(Example) Hereinafter, an example of the stack tracer circuit of the present invention will be described based on the drawings. FIG. 1 is a block diagram showing the configuration of one embodiment.

この第1図において、まず通常のプログラムデパック装
置に見られるように、プログラム格納用メモリJ2とプ
ログラム評価用マイクロコンピュータ(以下、マイコン
という)11の間は、アドレス線1とデータバス線2に
よって接続されている。
In FIG. 1, first, as seen in a normal program depacking device, an address line 1 and a data bus line 2 are connected between a program storage memory J2 and a program evaluation microcomputer (hereinafter referred to as microcomputer) 11. It is connected.

書込み/読出し可能メモリ13のアドレス端子は、ラッ
チ回#515の出力端子と、ラッチ回路16の出力端子
と、ラッチ回路17の入力端子と、ラッチ回路18の入
力端子に接続されている。この書込み/読出し可能メモ
リ13のデータ端子はラッチ回路16の入力端子とスタ
ックトレーサ制御部19にデータ入出力線4全通して接
続されている。
The address terminal of the writable/readable memory 13 is connected to the output terminal of the latch circuit #515, the output terminal of the latch circuit 16, the input terminal of the latch circuit 17, and the input terminal of the latch circuit 18. The data terminal of this writable/readable memory 13 is connected to the input terminal of the latch circuit 16 and the stack tracer control section 19 through the entire data input/output line 4.

比較器14のデータ端子はラッチ回路17の出力端子に
接続され、もう一方のデータ端子はラッチ回路18の出
力端子に接続されている。
The data terminal of the comparator 14 is connected to the output terminal of the latch circuit 17, and the other data terminal is connected to the output terminal of the latch circuit 18.

比較器14の比較結果をあられす出力端子は、スタック
トレーサ制御部19と比較結果線21により接続されて
いる。
The output terminal of the comparator 14 for receiving the comparison result is connected to the stack tracer control section 19 by a comparison result line 21.

前記ラッチ回路15はデータポインタ線3によりプログ
ラム評価用マイコン11と接続されている。このラッチ
回路15はスタックトレーサ制御部19とラッチ制御線
5により接続され、ラッチ   ゛回路16とラッチ制
御線6により接続され、ラッチ回路17とラッチ制御線
7により接続され、ラッチ回路18とラッチ制御線8に
より接続され、書込み/読出し可能メモリ13とメモリ
ライト制御綿9、メモリリード制御線10により接続さ
れ、プログラム評価用マイコン11と実行制御線20に
より接続されている。
The latch circuit 15 is connected to the program evaluation microcomputer 11 via the data pointer line 3. This latch circuit 15 is connected to a stack tracer control section 19 by a latch control line 5, connected to a latch circuit 16 by a latch control line 6, connected to a latch circuit 17 by a latch control line 7, and connected to a latch circuit 18 by a latch control line 6. They are connected by a line 8, a writable/readable memory 13, a memory write control line 9, a memory read control line 10, and a program evaluation microcomputer 11 via an execution control line 20.

次に、動作について説明する。まずプログラム評価用マ
イコン11にプログラム(命令)を実行させる前に次の
ような回路の初期化を行う。
Next, the operation will be explained. First, before the program evaluation microcomputer 11 executes a program (instruction), the following circuit is initialized.

すなわち、ラッチ制御1s5を用いてラッチ回路15の
出力を禁止する。次に、ラッチ回路16にスタックトレ
ーサ制御部19のデータ入出力4114からプログラム
評価用マイコン11のスタックポインタの初期値を入力
し、ラッチ制御s6を用いてラッチ回lll116にデ
ータをラッチし、次にラッチ制御、1117を用いてラ
ッチ回$16の出力データをラッチ回1117にラッチ
する。
That is, the latch control 1s5 is used to inhibit the output of the latch circuit 15. Next, input the initial value of the stack pointer of the program evaluation microcomputer 11 to the latch circuit 16 from the data input/output 4114 of the stack tracer control unit 19, latch the data to the latch circuit 116 using the latch control s6, and then Using the latch control 1117, the output data of the latch circuit $16 is latched into the latch circuit 1117.

次に、ラッチ回路16にスタックトレーサ制御部19の
データ入出力1s4からプログラムの実行を中止させる
場合のスタックポインタの値を入力し、ラッチ制御w4
6を用いてラッチ回路16にデータをラッチした後、ラ
ッチ制御線7を用いて、ラッチ回路16の出力データを
ラッチ゛回路17にラッチする。
Next, the value of the stack pointer for stopping program execution is input to the latch circuit 16 from the data input/output 1s4 of the stack tracer control unit 19, and the latch control w4
After data is latched into the latch circuit 16 using the latch circuit 6, the output data of the latch circuit 16 is latched into the latch circuit 17 using the latch control line 7.

次に、書込み/読出し可能メモリ13の初期化を行う。Next, the writable/readable memory 13 is initialized.

この場合、ラッチ回路16にスタックトレーサ制御部1
9のデータ入出力$4から書込み/読出し可能メモリ1
3のアドレスデータとなるデータを入力し、ラッチ制御
!JJ6を用いてラッチ回路16にデータをラッチする
In this case, the latch circuit 16 includes the stack tracer control unit 1
9 data input/output $4 writable/readable memory 1
Input the data that becomes the address data in step 3 and control the latch! Data is latched into the latch circuit 16 using JJ6.

また、データ入出力$4に書込み/読出し可能メモリ1
3の初期化データ(たとえば、0)を出力し、メモリラ
イト制御is9を用いて、書込み/読出し可能メモリ1
3に初期値を書き込む。この書込みは書込み/読出し可
能メモリ13の全域に対して行う。
In addition, data input/output $4 can be written to/readable from memory 1.
3 initialization data (for example, 0) and uses the memory write control is9 to write/read the write/readable memory 1.
Write the initial value to 3. This writing is performed over the entire area of the writable/readable memory 13.

次に、以上のような回路の初期化が終了すると、ラッチ
制御線6を用いてラッチ回路16の出力を禁止し、スタ
ックトレーサ制御部19のデータ入出力s4に初期化デ
ータ以外のデータ (たとえば1)を出した後プログラ
ムの実行を行う。
Next, when the above circuit initialization is completed, the output of the latch circuit 16 is prohibited using the latch control line 6, and data other than the initialization data (for example, After issuing 1), execute the program.

この発明のスタックトレーサ回路は、実行する命令がプ
ログラム格納用メモリ12からデータバスis2を通し
てプログラム評価用マイコン11に取り込まれる際に、
その命令をスタックトレーサ制御部19で解析し、解析
結果にしたがって、スタックトレーサ制御部19の制御
により次の三種類の動作を行う。
The stack tracer circuit of the present invention, when an instruction to be executed is fetched from the program storage memory 12 to the program evaluation microcomputer 11 through the data bus is2,
The command is analyzed by the stack tracer control unit 19, and the following three types of operations are performed under the control of the stack tracer control unit 19 according to the analysis result.

(1)(モード1)ニブログラム評価用マイコン11内
部のRAMをメモリとして使用する命令(たとえばMO
V RO,A)を実行する場合には、第2図(a)に示
すように、ラッチ制御線5を用いてスタックトレーサ制
御部19によりプログラム評価用マイコン11のデータ
ポインタの値をデータポインタ線3を通してラッチ回路
15にラッチし、次に、メモリライト制@綿9を用いて
スタックトレーサ制御部19により書込み/読出し可能
メモリ13に前記データ「1」を共通バス!s22を通
して書き込む。
(1) (Mode 1) Instructions (for example, MO
When executing V RO, A), as shown in FIG. 3 to the latch circuit 15, and then the stack tracer control unit 19 sends the data "1" to the writable/readable memory 13 using the memory write system @ cotton 9 through the common bus! Write through s22.

(2)(モード2)ニスタックに関する命令を実行する
場合には、ラッチ制御$5を用いてプログラム評価用マ
イコン11のデータポインタの値をデータポインタ!s
3を通してラッチ回路15にラッチし、次に第2図(b
)に示すように、ラッチ制御線7を用いてラッチ回路1
5からの入力データをラッチ回路17にラッチするとと
もに、ラッチ制御線8を用いてラッチ回路1日にラッチ
回路15からの入力データをラッチする。
(2) (Mode 2) When executing an instruction related to the NISTACK, use the latch control $5 to set the value of the data pointer of the program evaluation microcomputer 11 to the data pointer! s
3 to the latch circuit 15, and then
), the latch circuit 1 is connected using the latch control line 7.
The input data from the latch circuit 15 is latched into the latch circuit 17, and the input data from the latch circuit 15 is latched on the latch circuit 1 using the latch control line 8.

次に、比較N14はラッチ回路17.ラッチ回路18か
らの入力データを比較し、その比較結果(大、小など)
は比較結果線21を通してスタックトレーサ制御部19
へ入力する。
Next, comparison N14 is applied to latch circuit 17. Compare the input data from the latch circuit 18 and the comparison result (large, small, etc.)
is the stack tracer control unit 19 through the comparison result line 21.
Enter.

スタックトレーサ制御部19は入力されたこの比較結果
にしたがって、プログラム評価用マイコン11のプログ
ラムの実行を実行制御線20を通して継続または中止さ
せる制御を行う。
The stack tracer control unit 19 controls the program evaluation microcomputer 11 to continue or stop the execution of the program through the execution control line 20 in accordance with the input comparison result.

(3)(モード3):前記モード1.モード2以外の命
令(たとえばNoP)の場合には何の処理も行わず、次
の命令を実行させる。
(3) (Mode 3): Mode 1. In the case of an instruction other than mode 2 (for example, NoP), no processing is performed and the next instruction is executed.

プログラムの実行が中止した後、次の動作を行うことに
より、プログラム評価用マイコン11の内部のRAMを
メモリとして使用した領域がわかる。
After the execution of the program is stopped, the area in which the internal RAM of the program evaluation microcomputer 11 is used as memory can be determined by performing the following operation.

すなわち、ラッチ制御線5を用いてラッチ回路15のデ
ータ出力を禁止した後、ラッチ回路16にスタックトレ
ーサ制御部から書込み/読出し可能メモリ13のアドレ
スデータとなるデータを入力し、ラッチ制御$6を用い
てラッチ回路16にデータをラッチする。
That is, after inhibiting the data output of the latch circuit 15 using the latch control line 5, data that becomes the address data of the writable/readable memory 13 is input from the stack tracer control section to the latch circuit 16, and the latch control $6 is activated. data is latched into the latch circuit 16 using

次に、メモリリード制御!1!J10を用いて書込み/
読出し可能メモリ13の内容をデータ入出力線4全通し
てスタックトレーサ制御部19に取り込む。この取込み
データが「1」の場合には、メモリとして使用した領域
であることを示す。
Next, memory read control! 1! Write using J10/
The contents of the readable memory 13 are taken into the stack tracer control unit 19 through the entire data input/output line 4. When this captured data is "1", it indicates that the area is used as memory.

前記データ読出し動作を書込み/読出し可能メモリ13
の全領域に対して行う。この読出し動作により、メモリ
として使用した領域およびスタック領域との重複を検査
することができる。
Memory 13 capable of writing/reading the data read operation
Perform for all areas. This read operation allows checking for overlap with the area used as memory and the stack area.

なお、スタックトレーサ制御部19は外部から条件を設
定するためのキーボードのごとき操作装置(図示なし)
を具備するものとする。そして、書込み/読出し可能メ
モリ13より読み出したデータはスクリーン表示または
プリンタ表示される。
Note that the stack tracer control unit 19 includes an operating device (not shown) such as a keyboard for setting conditions from the outside.
shall be equipped with the following. The data read from the writable/readable memory 13 is displayed on a screen or on a printer.

(発明の効果) 以上説明したようにこの発明によれば、プログラム評価
用マイコン内部のRAMをアクセスした場合のアドレス
を表わすデータポインタの値をプログラム評価用マイコ
ンの外部に出力し、実行するプログラムの内容によや出
力信号をメモリとして使用した領域を記憶する回路とス
タックポインタの動きによりプログラムの実行を制御す
る回路にふりわけるようにしたので、プログラムをリア
ルタイムで実行させながら、スタック領域とメモリとし
て使用した領域とのオーバラップを監視することができ
る。
(Effects of the Invention) As explained above, according to the present invention, the value of the data pointer representing the address when the RAM inside the program evaluation microcomputer is accessed is output to the outside of the program evaluation microcomputer, and the program to be executed is The content is divided into a circuit that stores the area used as memory for the output signal, and a circuit that controls program execution by the movement of the stack pointer, so the program can be executed in real time while the stack area and memory are stored. The overlap with the used area can be monitored.

また、スタックポインタの値によりプログラムの実行の
制細かできるとともにプログラム評価用マイコンよりデ
ータポインタの値が評価用マイコン外部に出力されるの
で、従来の回路と比べ部品が少なくてすむことが期待で
きる。
In addition, program execution can be finely controlled by the value of the stack pointer, and the value of the data pointer is output from the program evaluation microcomputer to the outside of the evaluation microcomputer, so it can be expected that the number of parts will be reduced compared to conventional circuits.

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

第1図はこの発明のスタックトレーサ回路の一実施例を
示すブロック図、第2図[,1は同上スタックトレーサ
回路におけるプログラム評価用マイコン内部のRAMを
メモリとして使用する命令を実行する場合の主要部の動
作時の構成を示すブロック図、第2図(blは同上スタ
ックトレーサ回路におけるスタックに関する命令を実行
する場合の主要部の動作時の構成を示すブロック図であ
る。 11・・・プログラム評価用マイコン、12・・・フロ
グラム格納用メモリ、13・・・書込み/読出し可能メ
モリ、14・・比較器、15〜18・・・ラッチ回路、
19・・スタックトレーサ制御部。 第2図 (a) fべ (b)
FIG. 1 is a block diagram showing an embodiment of the stack tracer circuit of the present invention, and FIG. FIG. 2 is a block diagram showing the configuration of the main part during operation when executing instructions regarding the stack in the same stack tracer circuit as above. 11...Program evaluation microcomputer, 12... memory for program storage, 13... writable/readable memory, 14... comparator, 15-18... latch circuit,
19...Stack tracer control unit. Figure 2 (a) fbe (b)

Claims (1)

【特許請求の範囲】[Claims] プログラム評価用マイクロコンピユータ内部のRAMを
メモリとして使用する命令を実行する場合およびスタツ
クに関する命令を実行する場合にはこのプログラム評価
用マイクロコンピユータのデータポインタの値を取り込
む第1のラツチ回路と、上記RAMをメモリとして使用
する命令を実行する場合に上記第1のラツチ回路でラツ
チしたデータの書込みを行う書込み/読出し可能メモリ
と、上記スタツクに関する命令を実行する場合に上記第
1のラツチ回路でラツチされたデータポインタの値をラ
ツチする第2のラツチ回路と、上記プログラム評価用マ
イクロコンピユータにプログラムの命令を実行させる前
に初期化されるときにプログラムの実行を中止させる場
合のスタツクポインタの値をラツチする第3のラツチ回
路と、上記スタツクに関する命令を実行する場合に上記
第2および第3のラツチ回路にラツチされたデータを比
較する比較器と、プログラム格納メモリから上記プログ
ラム評価用マイクロコンピユータに転送される実行する
命令を取り込んで上記RAMをメモリとして使用する命
令を実行する場合と上記スタツクに関する命令を実行す
る場合との解析を行うとともに上記比較器の比較結果に
基づき上記プログラム評価用マイクロコンピユータのプ
ログラムの継続または中止の制御を行いかつこの中止の
制御時に上記書込み/読出し可能メモリの内容を読み出
して上記RAMをメモリとして使用する命令であるか否
かの判定を行うスタツクトレーサ制御部とよりなるスタ
ツクトレーサ回路。
A first latch circuit that takes in the value of the data pointer of the program evaluation microcomputer when executing an instruction that uses the RAM inside the program evaluation microcomputer as a memory or when executing a stack-related instruction; a writable/readable memory for writing data latched by the first latch circuit when executing an instruction to use the stack as a memory; a second latch circuit that latches the value of the data pointer, and a stack pointer value that is used to stop program execution when the program evaluation microcomputer is initialized before executing program instructions. a third latch circuit for latching, a comparator for comparing the data latched in the second and third latch circuits when executing an instruction related to the stack, and a comparator for comparing the data latched in the second and third latch circuits when executing an instruction related to the stack; The microcomputer for program evaluation takes in the transferred instruction to be executed and analyzes the case of executing an instruction that uses the RAM as a memory and the case of executing an instruction related to the stack, and based on the comparison result of the comparator. a stack tracer control unit that controls the continuation or abort of the program and, when controlling the abort, reads the contents of the writable/readable memory and determines whether or not the instruction is to use the RAM as a memory; A stack tracer circuit consisting of:
JP60009832A 1985-01-24 1985-01-24 Stack tracer circuit Pending JPS61169943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60009832A JPS61169943A (en) 1985-01-24 1985-01-24 Stack tracer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60009832A JPS61169943A (en) 1985-01-24 1985-01-24 Stack tracer circuit

Publications (1)

Publication Number Publication Date
JPS61169943A true JPS61169943A (en) 1986-07-31

Family

ID=11731100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60009832A Pending JPS61169943A (en) 1985-01-24 1985-01-24 Stack tracer circuit

Country Status (1)

Country Link
JP (1) JPS61169943A (en)

Similar Documents

Publication Publication Date Title
JPH02133834A (en) In-circuit emulator
KR940001146B1 (en) System for checking comparision check function of information processing apparatus
JP4778577B2 (en) Computer function inspection device
US6766510B2 (en) Application program developing system, application program developing method, and recording medium in which application program developing program is stored
JPS60159951A (en) Tracing system in information processing device
JPS61169943A (en) Stack tracer circuit
JPH0581087A (en) Processor monitoring system
JPH06289913A (en) Simulator for programmable controller
JPH0512071A (en) Trace circuit
JPH01175646A (en) Storage device with history function
JPS6238746B2 (en)
JP2677043B2 (en) Program development support device
JPH02163842A (en) Program evaluating device for microcomputer
JP2005327175A (en) Incircuit emulator device and stack access abnormality detection method
JPH03223938A (en) Return address monitoring circuit for debugging device
JPS60132249A (en) Data processor
JPS6227421B2 (en)
JPS59167766A (en) Memory access system
JPH06103471B2 (en) Program evaluation device
JPH03214328A (en) Memory testing system
JPH01237846A (en) Processor system with debugging function
JPH096685A (en) Memory device and its error test method
JPH06332696A (en) Microcomputer
JPH02105230A (en) Semiconductor integrated circuit
JPH0588946A (en) History memory write system