JPH0716189Y2 - Break circuit - Google Patents

Break circuit

Info

Publication number
JPH0716189Y2
JPH0716189Y2 JP2965989U JP2965989U JPH0716189Y2 JP H0716189 Y2 JPH0716189 Y2 JP H0716189Y2 JP 2965989 U JP2965989 U JP 2965989U JP 2965989 U JP2965989 U JP 2965989U JP H0716189 Y2 JPH0716189 Y2 JP H0716189Y2
Authority
JP
Japan
Prior art keywords
output
instruction code
instruction
break
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.)
Expired - Lifetime
Application number
JP2965989U
Other languages
Japanese (ja)
Other versions
JPH02123636U (en
Inventor
雄二 内田
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 JP2965989U priority Critical patent/JPH0716189Y2/en
Publication of JPH02123636U publication Critical patent/JPH02123636U/ja
Application granted granted Critical
Publication of JPH0716189Y2 publication Critical patent/JPH0716189Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【考案の詳細な説明】 (産業上の利用分野) 本考案は、ソフトウェアプログラムのデバッグ等を行う
ためのプログラム評価装置において、実行命令コードを
解析してブレーク指示信号(停止指示信号)またはトレ
ース指示信号(実行追跡指示信号)を出力するブレーク
回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial field of application) The present invention is a program evaluation device for debugging a software program, etc., and analyzes an execution instruction code to determine a break instruction signal (stop instruction signal) or a trace instruction. The present invention relates to a break circuit that outputs a signal (execution trace instruction signal).

(従来の技術) 従来、このような分野の技術としては、例えば第2図及
び第3図のようなものがあった。以下、その構成を図を
用いて説明する。
(Prior Art) Conventionally, as a technology in such a field, there is, for example, one as shown in FIG. 2 and FIG. The configuration will be described below with reference to the drawings.

第2図及び第3図は、従来のプログラム評価装置におけ
るブレーク回路の構成図である。
2 and 3 are block diagrams of the break circuit in the conventional program evaluation apparatus.

第2図のブレーク回路は、ラッチ回路1と、命令コード
解析用の論理回路2とを備え、その論理回路2が例えば
インバータ3,4及びANDゲート5で構成されている。この
ブレーク回路では、ラッチ信号LCによりラッチ回路1で
実行命令コードCDを取込み、そのラッチ回路1の出力Q
を論理回路2で解析し、ブレーク指定信号BKやトレース
指示信号TCを図示しないブレーク発生回路へ出力する。
The break circuit of FIG. 2 includes a latch circuit 1 and a logic circuit 2 for analyzing an instruction code, and the logic circuit 2 is composed of, for example, inverters 3 and 4 and an AND gate 5. In this break circuit, the latch circuit 1 takes in the execution instruction code CD by the latch signal LC, and the output Q of the latch circuit 1
Is analyzed by the logic circuit 2 and the break designating signal BK and the trace designating signal TC are output to a break generating circuit (not shown).

第3図のブレーク回路では、第2図の論理回路2に代え
て、読出し/書込み制御信号R/Wにより動作するメモリ
6を備えている。実行命令コードCDをラッチ回路1でラ
ッチし、そのラッチ回路出力Qをメモリ6のアドレスA0
〜A7としてそのメモリ6に入力することにより、実行命
令コードCDに従ってメモリ内容を読出す。これにより、
実行命令コードCDにより、メモリ6の読出し内容D0,D1
が変化し、その読出し内容D0,D1がブレーク指示信号BK
やトレース指示信号TCの形で出力される。
The break circuit shown in FIG. 3 includes a memory 6 which operates in response to a read / write control signal R / W, instead of the logic circuit 2 shown in FIG. The execution instruction code CD is latched by the latch circuit 1, and the latch circuit output Q is set to the address A0 of the memory 6.
By inputting to the memory 6 as .about.A7, the memory contents are read according to the execution instruction code CD. This allows
Read contents D0, D1 of memory 6 by execution instruction code CD
Changes, and the read contents D0 and D1 change to the break instruction signal BK.
Is output in the form of a trace instruction signal TC.

(考案が解決しようとする課題) しかしながら、上記構成のブレーク回路では、次のよう
な課題があった。
(Problems to be Solved by the Invention) However, the break circuit having the above configuration has the following problems.

第2図の回路では、論理回路2の論理状態が固定してい
るため、内容の異なる複数の実行命令コードCDを解析す
ることができない。そのため、複数の実行命令コードCD
の解析を行う場合、それに応じた数の論理回路2が必要
となり、部品点数の増大と、それによるデバック効率の
低下という問題があった。
In the circuit of FIG. 2, since the logic state of the logic circuit 2 is fixed, a plurality of execution instruction codes CD having different contents cannot be analyzed. Therefore, multiple execution instruction codes CD
When the analysis is performed, the number of logic circuits 2 corresponding to that is required, and there is a problem that the number of parts increases and the debug efficiency decreases accordingly.

第3図の回路では、メモリ6を用いているため、内容の
異なる複数の実行命令コードCDの解析を行うことができ
る。しかし、実行命令コードCDの第1バイト(但し、バ
イトはデータの任意の1単位で、通常8ビットを指すこ
とが多い)、第2バイト、…、第nバイトをそれぞれ解
析し、すべての実行命令コードCDが指定コードに一致し
たら、ブレーク指示信号BKまたはトレース指示信号TCを
出力するような場合、ラッチ回路1及びメモリ6を最大
命令コード数分設け、それら各ラッチ回路1及びメモリ
6から読出された内容を判定手段で判定し、ブレーク指
示信号BKまたはトレース指示信号TCを生成しなければな
らない。そのため、部品点数の増大と、それによるデバ
ック効率の低下という問題があり、技術的に満足のゆく
ものが得られなかった。
Since the memory 6 is used in the circuit of FIG. 3, it is possible to analyze a plurality of execution instruction codes CD having different contents. However, the first byte of the execution instruction code CD (however, the byte is an arbitrary unit of data and usually points to 8 bits), the second byte, ... When the break instruction signal BK or the trace instruction signal TC is output when the instruction code CD matches the designated code, the latch circuits 1 and the memories 6 are provided for the maximum number of instruction codes, and read from each of the latch circuits 1 and the memory 6. The determined contents must be judged by the judging means to generate the break instruction signal BK or the trace instruction signal TC. Therefore, there is a problem that the number of parts is increased and the debug efficiency is reduced, which is not technically satisfactory.

本考案は、前記従来技術が持っていた課題として、少な
い部品点数で、複数の命令コード、あるいは複数の命令
コードからなる命令の解析が効率良く行えない点につい
て解決したブレーク回路を提供するものである。
The present invention provides a break circuit, which has been solved as a problem that the above-mentioned conventional technology has, by solving a problem that a plurality of instruction codes or an instruction composed of a plurality of instruction codes cannot be efficiently analyzed with a small number of parts. is there.

(課題を解決するための手段) 第1図は、本考案のプログラム評価装置におけるブレー
ク回路の構成図である。このブレーク回路は、例えば取
込み制御信号LCにより実行命令コードCDを取込む命令コ
ード取込み部10を備え、その命令コード取込み部10の出
力側には、読出し/書込み制御信号R/Wにより書込み/
読出し可能なメモリを有し、前記実行命令コードCDをそ
のメモリの下位アドレス入力とする命令コード解析部20
と、カウント信号CKにより動作し前記メモリから出力さ
れる第1の読出しデータにより計数動作が制御される第
1の計数手段を有し、その第1の計数手段の出力を前記
メモリの上位アドレスとするページ更新回路部30と、カ
ウント信号CKにより動作し一命令当りのマシンコード数
(実行した命令のマシンコード数)を計数する第2の計
数手段を有し、その第2の計数手段の出力と前記第1の
計数手段の出力とを比較し両者が一致した場合に前記メ
モリから出力される第2の読出しデータを有効にしてブ
レーク指示信号BKまたはトレース指示信号TCを出力する
バイト数比較部40とを、設けたものである。
(Means for Solving the Problem) FIG. 1 is a block diagram of a break circuit in the program evaluation device of the present invention. The break circuit includes, for example, an instruction code fetching unit 10 that fetches an execution instruction code CD by a fetching control signal LC, and the output side of the instruction code fetching unit 10 writes / writes by a read / write control signal R / W.
An instruction code analysis unit 20 having a readable memory and using the execution instruction code CD as a lower address input of the memory
And a first counting means which is operated by a count signal CK and whose counting operation is controlled by the first read data output from the memory, and the output of the first counting means is set to an upper address of the memory. And a page updating circuit unit 30 which operates according to the count signal CK, and second counting means for counting the number of machine codes per instruction (the number of machine codes of executed instructions), and the output of the second counting means. And the output of the first counting means are compared with each other, and if the two coincide with each other, the second read data output from the memory is validated to output the break instruction signal BK or the trace instruction signal TC. 40 and 40 are provided.

(作用) 本考案によれば、以上のようにブレーク回路を構成した
ので、実行命令コードCDは例えば命令コード取込み部10
でラッチされ、そのラッチ出力が下位アドレスとして命
令コード解析部20に与えられる。命令コード解析部20か
ら出力される第1の読出しデータにより、ページ更新回
路部30内において計数動作が行われ、その計数結果が、
上位アドレスの形で命令コード解析部20に与えられる。
これにより、同一のメモリで実行命令コードCDの1バイ
ト(ワード)目から最終バイト(ワード)目までの実行
命令コードの解析や、あるいは複数バイト(ワード)命
令の実行命令コードの解析が行える。さらに、バイト数
比較部40において、実行した命令コード数を計数し、そ
の計数値と命令コード解析部20の計数値とを比較し、両
者が一致した時に命令コード解析部20から出力される第
2の読出しデータを有効状態にしてブレーク指示信号ま
たはトレース指示信号を出力するので、少ない部品点数
で的確に命令コードの監視等が行える。従って、前記課
題を解決できるのである。
(Operation) According to the present invention, since the break circuit is configured as described above, the execution instruction code CD is, for example, the instruction code fetching unit 10
Are latched by, and the latch output is given to the instruction code analysis unit 20 as a lower address. The counting operation is performed in the page update circuit unit 30 by the first read data output from the instruction code analysis unit 20, and the counting result is
It is given to the instruction code analysis unit 20 in the form of a high-order address.
As a result, the execution instruction code from the first byte (word) to the last byte (word) of the execution instruction code CD or the execution instruction code of a plurality of byte (word) instructions can be analyzed in the same memory. Further, in the byte number comparison unit 40, the number of executed instruction codes is counted, the count value is compared with the count value of the instruction code analysis unit 20, and when the two match, the instruction code analysis unit 20 outputs Since the read data of No. 2 is valid and the break instruction signal or the trace instruction signal is output, the instruction code can be monitored accurately with a small number of parts. Therefore, the above problem can be solved.

(実施例) 第4図は、本考案の第1図の実施例を示すもので、最大
マシンコード数が3バイト、コードビット長が8ビット
のブレーク回路の回路図である。
(Embodiment) FIG. 4 shows an embodiment of FIG. 1 of the present invention and is a circuit diagram of a break circuit having a maximum machine code number of 3 bytes and a code bit length of 8 bits.

このブレーク回路において、命令コード取込み部10がラ
ッチ回路11で、命令コード解析部20が書込み/読出し可
能なメモリ(以下、RAMという)21で、ページ更新回路
部30が2入力ANDゲート31及びバイナリ・アップカウン
タ32で、それぞれ構成されている。さらに、バイト数比
較部40はバイナリ・アップカウンタ41及び論理回路42を
備え、その論理回路42が、2入力EORゲート(排他的論
理和ゲート)43,44、2入力NORゲート45及び2入力AND
ゲート46で構成されている。
In this break circuit, the instruction code acquisition unit 10 is a latch circuit 11, the instruction code analysis unit 20 is a writable / readable memory (hereinafter referred to as RAM) 21, and the page update circuit unit 30 is a 2-input AND gate 31 and a binary. -It is composed of the up counter 32. Furthermore, the byte number comparison unit 40 includes a binary up counter 41 and a logic circuit 42, and the logic circuit 42 has a 2-input EOR gate (exclusive OR gate) 43, 44, a 2-input NOR gate 45, and a 2-input AND gate.
It consists of a gate 46.

命令コード取込み部10を構成するラッチ回路11は、取込
み制御信号LCにより実行命令コードCDをラッチし、それ
を出力端子QからRAM21へ出力する回路である。なお、
ラッチ回路11の出力制御端子OEは、接地されている。RA
M21は、読出し/書込み制御信号R/Wにより、ラッチ回路
出力を下位アドレスとして入力端子ADRLから読込んだ
り、ページ更新回路部30内のバイナリ・アップカウンタ
出力を上位アドレスとして入力端子ADRHから読込んだ
り、あるいは読出した第1、第2の読出しデータを出力
端子D0,D1からページ更新回路部30内のANDゲート31及び
論理回路42内のANDゲート46へそれぞれ出力する機能を
有している。RAM21の第1の読出しデータ出力用の出力
端子D0と、カウントアップタイミング制御信号であるカ
ウント信号CKとは、ページ更新回路部30内のANDゲート3
1を介してバイナリ・アップカウンタ30のクロック端子
に接続され、そのバイナリ・アップカウンタ32の出力端
子QA,QBがRAM21の入力端子ADRHに接続されると共に、マ
シンコード数と比較するために論理回路42内のEOR43,44
に接続されている。
The latch circuit 11 which constitutes the instruction code fetching section 10 is a circuit which latches the execution instruction code CD by the fetch control signal LC and outputs it from the output terminal Q to the RAM 21. In addition,
The output control terminal OE of the latch circuit 11 is grounded. RA
In response to the read / write control signal R / W, M21 reads the latch circuit output as a lower address from the input terminal ADR L , and the binary up counter output in the page update circuit section 30 as an upper address from the input terminal ADR H. It has a function of outputting the first and second read data read or read from the output terminals D0 and D1 to the AND gate 31 in the page update circuit unit 30 and the AND gate 46 in the logic circuit 42, respectively. There is. The output terminal D0 for outputting the first read data of the RAM 21 and the count signal CK which is the count-up timing control signal are used in the AND gate 3 in the page update circuit unit 30.
It is connected to the clock terminal of the binary up counter 30 via 1, the output terminals QA and QB of the binary up counter 32 are connected to the input terminal ADR H of the RAM21, and it is logically compared with the machine code number. EOR 43,44 in circuit 42
It is connected to the.

バイト数比較部40において、バイナリ・アップカウンタ
41のクロック端子はカウント信号CKに接続され、その出
力端子QA,QBが、論理回路42内のEOR43,44に接続されて
いる。EOR43、44の出力はNORゲート45を介してANDゲー
ト46の一方の入力側に接続され、その他方の入力側が、
RAM21の第2の読出しデータ出力用の出力端子D1に接続
され、そのANDゲート46からブロック信号BKまたはトレ
ース信号TCが出力されて図示しないブレーク発生回路へ
供給される構成になっている。
In the byte count comparison unit 40, a binary up counter
The clock terminal of 41 is connected to the count signal CK, and its output terminals QA and QB are connected to the EORs 43 and 44 in the logic circuit 42. The outputs of the EORs 43 and 44 are connected to one input side of the AND gate 46 via the NOR gate 45, and the other input side is
The RAM 21 is connected to the output terminal D1 for outputting the second read data, and the AND gate 46 outputs the block signal BK or the trace signal TC to supply it to a break generation circuit (not shown).

なお、RAM21は、コンソール等からの入力に従ってデー
タの読出し/書込みが可能であり、さらにバイナリ・ア
ップカウンタ32,41は、一命令実行終了直後にクリア信
号CLにより出力が“L"レベルに初期化される構造になっ
ている。
The RAM21 can read / write data according to the input from the console, etc., and the binary up counters 32 and 41 are initialized to the "L" level by the clear signal CL immediately after the execution of one instruction. The structure is such that

次に、動作を説明する。Next, the operation will be described.

プログラムの評価(実行)を開始する前に、実行時にお
けるブレークさせたい命令コードの組合わせをRAM21に
書込む。例えば、分岐命令JUMPでアドレス2OOH〜2FFH
分岐した時に、ブレークさせる場合を説明する。ここ
で、命令コードは、O4H,nn,O2H(但し、nn=O〜FFH
とする。
Before starting the evaluation (execution) of the program, write the combination of instruction codes that you want to break during execution to RAM21. For example, when the branch to the address 2OO H ~2FF H a branch instruction JUMP, illustrating the case of a break. Here, the instruction code is O4 H , nn, O2 H (however, nn = O to FF H ).
And

先ず、RAM21のアドレスO4Hにデータ「1」を書込み、次
にアドレス100H〜1FFH(RAM内の記憶領域の1ページ目
の領域)にすべて「1」を書込む。さらにアドレス2O2H
にデータ「3」または「2」を書込む。また、その他の
アドレスにはデータ「0」を書込んでおく。そしてクリ
ア信号CLを用いて各カウンタ32,41の出力を論理“0
“に設定する。
First of all, writing the data "1" to the address O4 H of RAM21, then writes all "1" to the address 100 H ~1FF H (1 page of the area of the storage area in the RAM). Further address 2O2 H
Write data “3” or “2” to Data "0" is written in the other addresses. Then, the clear signal CL is used to output the outputs of the counters 32 and 41 to the logic "0".
Set to ".

以上のような設定を終えた後、プログラムの評価を開始
させる。ここで、実行命令コードCDとしてO4H,22H,O2
Hを実行した場合を説明する。
After finishing the above settings, the evaluation of the program is started. Here, as the execution instruction code CD O4 H, 22 H, O2
The case where H is executed will be described.

カウンタ32は、命令コードO4Hを実行した時に、RAM21の
出力端子D0が“H“レベルとなり、カウント信号CKに同
期してカウントアップされ、その出力QAが“H“レベル
となる。これにより、RAM21はアドレス100H〜1FFH(1
ページ目)がセレクトされるようになる。またカウンタ
41はカウント信号CKによりカウントアップされる。そし
てRAM21の100H〜1FFHにはすべてデータ「1」が書込ま
れているため、実行命令コードCDに関わらず、カウント
信号CKに同期してカウンタ32がカウントアップされ、そ
の出力端子QA,QBがそれぞれ“L“レベル、“H“レベ
ルとなり、RAM21にはアドレス200H〜2FFHがセレクト
(選択)される。他方のカウンタ41も同様にカウントア
ップされ、その出力端子QA,QBは一方のカウンタ32の出
力と同一となる。
Counter 32, when executing the instruction code O4 H, as the output terminal D0 is "H" level of the RAM 21, is counted up in synchronization with the count signal CK, the output QA becomes "H" level. Thus, RAM 21 is the address 100 H ~1FF H (1
Page) will be selected. Also counter
41 is counted up by the count signal CK. And since all the 100 H ~1FF H of RAM21 data "1" is written, regardless of the execution instruction code CD, the counter 32 in synchronization with the count signal CK is counted up, the output terminal QA, QB respectively "L" level, becomes "H" level, the RAM21 address 200 H ~2FF H is select (select). The other counter 41 is also counted up, and its output terminals QA and QB become the same as the output of one counter 32.

ラッチ回路11が命令コードO2Hをラッチすると、RAM21の
アドレス2O2Hの内容が読出され、そのRAM21の出力端子D
1が“H“レベルとなる。この時、両カウンタ32、41の
出力は一致しているため、ANDゲート46により、RAM21の
出力端子D1の出力は有効となり、そのANDゲート46から
出力されるブレーク信号BKまたはトレース信号TCが“H
“レベルとなり、それが図示しないブレーク発生回路へ
供給される。
When the latch circuit 11 latches the instruction code O2 H, the contents of the address 2O2 H of RAM21 is read, the output terminal D of the RAM21
1 becomes "H" level. At this time, since the outputs of both counters 32 and 41 match, the output of the output terminal D1 of the RAM 21 becomes valid by the AND gate 46, and the break signal BK or trace signal TC output from the AND gate 46 becomes " H
It becomes "level and is supplied to a break generation circuit (not shown).

次に、指定したコードが21H,OOHであり、実行した命令
コードが14H,21H,OOHであった時の動作を説明する。
Next, the specified code is 21 H, an OO H, illustrating the operation when an instruction code executed was 14 H, 21 H, OO H .

先ず、プログラムの評価を開始する前に、前記と同様に
RAM21のアドレス21Hにデータ「1」を、アドレス100H
データ「3」または「2」を書込み、他のアドレスには
データ「0」を書込む。そしてクリア信号CLにより、カ
ウンタ32,41の出力を“L“レベルにした後、プログラ
ムの評価を開始する。
First, before starting the evaluation of the program,
The data "1" to the address 21 H of the RAM 21, writing data "0" data "3" or "2" to the address 100 H write, to another address. Then, the clear signal CL sets the outputs of the counters 32 and 41 to the "L" level, and then the evaluation of the program is started.

ラッチ回路11が命令コード14Hをラッチすると、そのラ
ッチ出力により、RAM21のアドレス14Hの内容が読出され
る。この読出しデータは「0」であるため、一方のカウ
ンタ32はカウントアップされず、他方のカウンタ41のみ
がカウント信号CKに同期してカウントアップされ、その
出力端子QAが“H“レベルとなる。
When the latch circuit 11 latches the instruction code 14 H , the content of the address 14 H of the RAM 21 is read by the latch output. Since this read data is "0", one counter 32 is not counted up, only the other counter 41 is counted up in synchronization with the count signal CK, and its output terminal QA becomes "H" level.

命令コード21Hがラッチ回路11にラッチされると、その
ラッチ出力により、RAM21のアドレス21Hの内容が読出さ
れ、その出力端子D0が“H“レベルとなる。すると、AN
Dゲート31が開き、カウント信号CKに同期してカウンタ3
2,41がカウントアップされ、一方のカウンタ32の出力端
子QAが“H“レベル、他方のカウンタ41の出力端子QAが
“L“レベルとなり、カウンタ41の出力端子QBが“H
“レベルとなる。
When the instruction code 21 H is latched by the latch circuit 11, by the latch output, is read the contents of the address 21 H of the RAM 21, the output terminal D0 is "H" level. Then AN
The D gate 31 opens and the counter 3 synchronizes with the count signal CK.
2, 41 are counted up, the output terminal QA of one counter 32 becomes “H” level, the output terminal QA of the other counter 41 becomes “L” level, and the output terminal QB of counter 41 becomes “H” level.
"It becomes a level.

次いで、命令コードOOHがラッチ回路11にラッチされ、R
AM21のアドレス100Hの内容が読出されて出力端子D1が
“H“レベルとなる。しかし、カウンタ32と41の両出力
値が異なるため、EORゲート43,44及びNORゲート45を介
してANDゲート46が閉じ、そのANDゲート46の出力は“L
“レベルのままとなる。
Then, the instruction code OO H is latched by the latch circuit 11, and R
The contents of the address 100 H of AM21 output terminal D1 is read becomes "H" level. However, since the output values of the counters 32 and 41 are different, the AND gate 46 is closed via the EOR gates 43 and 44 and the NOR gate 45, and the output of the AND gate 46 is "L".
“It remains at the level.

本実施例では、次のような利点を有している。The present embodiment has the following advantages.

(a)命令コード解析部20をRAM21で構成し、そのRAM21
の下位アドレスとして実行命令コードCDを入力し、RAM2
1の読出しデータによりカウント動作が制御されるカウ
ンタ32を設け、そのカウンタ32の出力をRAM21の上位ア
ドレスとして利用することにより、同一RAM21で実行命
令コードCDの1バイト(ワード)目から最終バイト(ワ
ード)目までの命令コード解析を行う。
(A) The instruction code analysis unit 20 is composed of a RAM 21, and the RAM 21
Enter the execution instruction code CD as the lower address of RAM2
By providing a counter 32 whose count operation is controlled by the read data of 1 and using the output of the counter 32 as a higher address of the RAM 21, the same byte from the first byte (word) of the execution instruction code CD to the last byte (word) (Word) Analyze instruction code up to eye.

(b)実行した命令コード数をカウントするカウンタ41
を設け、前記カウンタ32の出力値と比較し、両カウンタ
値が一致した時にRAM21の出力データを有効状態にする
ようにしたので、少ない部品点数で1バイト(ワード)
命令から複数バイト(ワード)命令まで、すべての実行
命令コードCDを監視することができる。その上、複数バ
イト(ワード)命令の場合に、その一部命令コードを複
数指定することができ、それによってデバック効率を高
めることができる。例えば、ブレーク条件またはトレー
ス条件として、MOV,20H,nnH(評価チップの内部RAMのn
nHの内容をアドレス20Hに格納する)命令を指定し、評
価チップの内部RAMのアドレス20Hの状態を監視したり、
PUSH/POP(レジスタ退避/復帰)命令のみをトレースし
てスタック領域の使用状態の確認をすることが可能にな
る。
(B) Counter 41 that counts the number of executed instruction codes
Is provided and the output value of the RAM 32 is compared with the output value of the counter 32, and the output data of the RAM 21 is validated when both counter values match. Therefore, 1 byte (word) can be obtained with a small number of parts.
It is possible to monitor all execution instruction codes CD, from instructions to multi-byte (word) instructions. In addition, in the case of a multi-byte (word) instruction, a plurality of partial instruction codes can be designated, thereby improving the debugging efficiency. For example, as a break condition or trace condition, MOV, 20 H, the internal RAM nn H (Evaluation Chip n
store the contents of n H at address 20 H ) to monitor the status of address 20 H of the internal RAM of the evaluation chip,
Only the PUSH / POP (register save / restore) instructions can be traced to check the usage status of the stack area.

なお、本考案は図示の実施例に限定されず、例えば命令
コード取込み部10をレジスタ等で構成したり、命令コー
ド解析部20をRAM以外のメモリで構成したり、バイナリ
・アップカウンタ32,41をダウンカウンタ等で置き換え
たり、論理回路42を他のゲート回路等で構成する等、種
々の変形が可能である。
The present invention is not limited to the illustrated embodiment, and for example, the instruction code fetching unit 10 may be configured by a register or the like, the instruction code analysis unit 20 may be configured by a memory other than RAM, or the binary up counters 32, 41. Can be replaced by a down counter or the like, or the logic circuit 42 can be configured by another gate circuit or the like, and various modifications can be made.

(考案の効果) 以上詳細に説明したように、本考案によれば、実行命令
コードを下位アドレスとして命令コード解析部に入力
し、その命令コード解析部の出力により、ページ更新回
路部を介して該命令コード解析部への上位アドレスを変
化させて実行命令コードの解析を行うと共に、その命令
コード解析部の出力と実行した命令コード数とを、バイ
ト数比較部40で比較し、その両者が一致した時に命令コ
ード解析部の出力を有効状態にするようにしたので、少
ない部品点数で、同時に複数命令コードからなる命令を
複数のトレースやブレーク条件として指定でき、デバッ
ク等の効率を向上できる。
(Effects of the Invention) As described in detail above, according to the present invention, the execution instruction code is input to the instruction code analysis unit as a lower address, and the output of the instruction code analysis unit causes the page update circuit unit to output the same. While changing the upper address to the instruction code analysis unit to analyze the executed instruction code, the output of the instruction code analysis unit and the number of executed instruction codes are compared by the byte number comparison unit 40, and both are compared. Since the output of the instruction code analysis unit is enabled when they match, it is possible to simultaneously specify an instruction consisting of a plurality of instruction codes as a plurality of traces or break conditions with a small number of parts, and improve the efficiency of debugging and the like.

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

第1図は本考案のブレーク回路の構成図、第2図及び第
3図は従来のブレーク回路の構成図、第4図は第1図の
実施例を示すブレーク回路の回路図である。 10……命令コード取込み部、11……ラッチ回路、20……
命令コード解析部、21……RAM、30……ページ更新回路
部、32、41……バイナリ・アップカウンタ、40……バイ
ト数比較部、42……論理回路。
FIG. 1 is a block diagram of the break circuit of the present invention, FIGS. 2 and 3 are block diagrams of a conventional break circuit, and FIG. 4 is a circuit diagram of the break circuit showing the embodiment of FIG. 10 …… Instruction code capture part, 11 …… Latch circuit, 20 ……
Instruction code analysis unit, 21 ... RAM, 30 ... Page update circuit unit, 32,41 ... Binary up counter, 40 ... Byte number comparison unit, 42 ... Logic circuit.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】第1,第2の読出しデータを出力する書込み
/読出し可能なメモリを有し、実行命令コードをそのメ
モリの下位アドレス入力とする命令コード解析部と、 前記メモリから出力される第1の読出しデータにより計
数動作が制御される第1の計数手段を有し、その第1の
計数手段の出力を前記メモリの上位アドレスとするペー
ジ更新回路部と、 一命令当りのマシンコード数を計数する第2の計数手段
を有し、その第2の計数手段の出力と前記第1の計数手
段の出力とを比較し両者が一致した場合に前記メモリか
ら出力される第2の読出しデータを有効にしてブレーク
指示信号またはトレース指示信号を出力するバイト数比
較部とを備え、 前記実行命令コードを解析して前記ブレーク指示信号ま
たは前記トレース指示信号を出力することを特徴とする
ブレーク回路。
1. An instruction code analysis unit having a writable / readable memory for outputting first and second read data, and having an execution instruction code as a lower address input to the memory, and an output from the memory. A page updating circuit section having a first counting means whose counting operation is controlled by the first read data, the output of the first counting means being the upper address of the memory, and the number of machine codes per instruction Second read data which is output from the memory when the output of the second count means and the output of the first count means are compared and the two coincide with each other. And a byte number comparison unit for outputting a break instruction signal or a trace instruction signal, and analyzing the execution instruction code to output the break instruction signal or the trace instruction signal. Break circuit according to claim.
JP2965989U 1989-03-15 1989-03-15 Break circuit Expired - Lifetime JPH0716189Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2965989U JPH0716189Y2 (en) 1989-03-15 1989-03-15 Break circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2965989U JPH0716189Y2 (en) 1989-03-15 1989-03-15 Break circuit

Publications (2)

Publication Number Publication Date
JPH02123636U JPH02123636U (en) 1990-10-11
JPH0716189Y2 true JPH0716189Y2 (en) 1995-04-12

Family

ID=31254061

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2965989U Expired - Lifetime JPH0716189Y2 (en) 1989-03-15 1989-03-15 Break circuit

Country Status (1)

Country Link
JP (1) JPH0716189Y2 (en)

Also Published As

Publication number Publication date
JPH02123636U (en) 1990-10-11

Similar Documents

Publication Publication Date Title
US5056013A (en) In-circuit emulator
JP2591825B2 (en) Logic circuit testing method and apparatus using compressed data
US3618042A (en) Error detection and instruction reexecution device in a data-processing apparatus
JPH0716189Y2 (en) Break circuit
JP2611491B2 (en) Microprocessor
JPS6130301B2 (en)
JPS60262251A (en) Backup device for development of microprocessor
KR0163726B1 (en) Multiple RAM brake condition setting circuit using external memory
JPS62279438A (en) Tracking circuit
JP2536238B2 (en) Information processing device
KR100542699B1 (en) Device to support ROM dump mode of microcontroller
JP2581214B2 (en) Logic simulator
JPH05224989A (en) Microprocessor containing cache memory and its trace analyzer
SU1397922A1 (en) Device for shaping interrupt signal in program debugging
JPH01142948A (en) Symbolic debugger for microcomputer
KR100212264B1 (en) Rom data test circuit
SU1511750A1 (en) Program debugging device
JPS626341A (en) Information processor
JPH0683986A (en) Single chip microcomputer
JPH0679278B2 (en) Microcomputer development equipment
JPS5838879B2 (en) fail memory
JPS58115516A (en) Bus tracer
JPH0512071A (en) Trace circuit
JPH05151014A (en) Evaluation chip
JPH06175883A (en) Program debug device