JPS59191660A - Program debugging device - Google Patents

Program debugging device

Info

Publication number
JPS59191660A
JPS59191660A JP58067265A JP6726583A JPS59191660A JP S59191660 A JPS59191660 A JP S59191660A JP 58067265 A JP58067265 A JP 58067265A JP 6726583 A JP6726583 A JP 6726583A JP S59191660 A JPS59191660 A JP S59191660A
Authority
JP
Japan
Prior art keywords
address
output
signal
trace
memr
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
JP58067265A
Other languages
Japanese (ja)
Inventor
Masami Ono
大野 正已
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP58067265A priority Critical patent/JPS59191660A/en
Publication of JPS59191660A publication Critical patent/JPS59191660A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To recognize both the process and rate of task execution and to improve the program debugging efficiency by writing the address of a branching destination into a trace memory when the control right is shifted from a monitor to a prescribed program. CONSTITUTION:The output of a comparator 14 is set at H when the coincidence is obtained between the address data on an address bus 15 and the address obtained when a branching instruction latched previously by an address latch 13 is executed. Then an FF17 sets the output of the comparator 14 when the inverse MEMR of a memory read signal is produced during the generation of an instruction fetch signal M1. Then the output of the comparator 14 is set at L. The output of a gate 19 is set at L with the inverse MEMR when a task start address is delivered from a CPU during generation of the next signal M1. The MEMR is turned into the write signal of a trace memory 2 and writes the task start address on the bus 15 via a buffer 22.

Description

【発明の詳細な説明】 〔技術分野〕 本発明はマイクロコンピュータシステムにおけるつ0グ
ラムヂバツジ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a zero-gram badge device in a microcomputer system.

〔背景技術〕[Background technology]

マイクロコンピュータシステムのヂバッジにはCPUの
代りにインサー+ットエ三ユレータを用いてづ0クラム
をデバッグする方法が従来あった。しかし実際にCPU
を接続して実行させ、何らかの原因でCPUが暴走した
場合、どこで暴走したのかを確認することができなかっ
た。またインサーキットエミュレータを用いた場合はイ
ンサー牛ットエ三ユレータにはトレース機能があって暴
走しないが、実際にCPUを接続して実行させてデバッ
グする場合、暴走が生じると、ヂバ1リクに費やする時
間が長くなるという問題があった。
Conventionally, there has been a method for debugging microcomputer systems by using an insert editor instead of a CPU. However, actually the CPU
If you connect and run the CPU and the CPU goes out of control for some reason, it is not possible to confirm where it went out of control. Also, when using an in-circuit emulator, the in-circuit emulator has a trace function and will not run out of control, but when you actually connect a CPU and run it for debugging, if a runaway occurs, it will cost you a lot of money. The problem was that it took a long time to clean.

そこで実際にCPUを接続してヂバtリジを行なうこと
ができ、かつトし−ス機能を備えたつ0ジラムデバtソ
ジ装置を本発明者達は提案している。
Therefore, the present inventors have proposed a zero-jiram device that can actually connect a CPU to perform the conversion and is also equipped with a toss function.

第1図は提案しているところのづ0ジラムヂバツジ装置
の全体概略構成図を示しており、図中111はCPU、
+21はトレースメtす、fa+l、t CRT 、 
f4+は牛−ボード、(5)はシステムパスライン、(
6)はパラレル入力インターフェイスであって、これら
構成要素によってjoジラムヂバ・ソゲ装置を構成し、
ターゲtソト側のシステムバス(7)とは前記パラレル
入力インターフェイス(6)を介して接続されている。
Figure 1 shows the overall schematic configuration of the proposed Nozuji Ramji Baduji device, in which 111 is the CPU;
+21 is trace method, fa+l, t CRT,
f4+ is the cow board, (5) is the system path line, (
6) is a parallel input interface, these components constitute a jojiramjiba soge device,
It is connected to the system bus (7) on the target side via the parallel input interface (6).

そしてターゲット側のシステムバス(7)上のデータを
ターゲット側のマイクロコンピュータシステム側のタイ
ミンクでトレースメモリ(2)へ書込むようになってお
り、トレースメモ1月2)の書込み内容は牛−ボード(
4)の操作によって読み出してCRT(3)に表示させ
るのである。第2図は第1図構成の具体的回路を示して
おり、ターゲtソト側からのデータのトレースメモ1月
2)への書込みはCPU1l+からの切換信号をフリツ
づフ0・ソづ(図示せず)にセットし、このセットされ
た切換信号によって卜しスヂータを与える。同時にバッ
ファ(91)・・・をヂイセーづルとするとともにパラ
レル入力インターフェイス(6)を構成するパラレルイ
ンっット回路(61)・・・の出力をイネーブルにし、
各RAM(21)・・・に接続されるデータバスをCP
 U fi+側からのデータバス(51)からターゲッ
ト側のシステムパスライン(7)に切換えるのである。
The data on the target side system bus (7) is written to the trace memory (2) at the timing of the target side microcomputer system side, and the written contents of the trace memo (January 2) are written on the cow-board. (
The data is read out by the operation 4) and displayed on the CRT (3). Figure 2 shows a specific circuit of the configuration shown in Figure 1. Writing data from the target side to the trace memo 1/2) requires a switching signal from the CPU 1l+ (Fig. (not shown), and the set switching signal provides a switch. At the same time, it disables the buffer (91) and enables the output of the parallel input circuit (61) that constitutes the parallel input interface (6),
The data bus connected to each RAM (21)...
The data bus (51) from the Ufi+ side is switched to the system path line (7) on the target side.

また各RAM(21)  ・のチツづセレクトの切換え
及びアトしスカウントバ゛リフヱ(8)のり0ツク及び
RA M (21)・・・のライト信号をイネ−づルに
する。つまりターゲット側のIOR,40W、MEMR
・・・等の信号線上の信号をORゲート(10)で論理
和し、このゲート出力と、切換信号との論理積をA N
 D )f −) (12)でとり、そのゲート出力を
上記のり0ツク及びライト信号として夫々に対応する回
路に入力するのである。またCPU1l+からの千ツづ
セしクト信号と、切換信号とのORゲー) (11口こ
よる論理和出力は上述のRAM(2t)・・・のチ・ソ
づセレクト信号となる。そしてI10コント0−ル信号
によってアドレスカウントバッファ(8)ff:インク
リメント動作させて、これによって順次タープもリド側
からのり一夕をRA M (21)・・・に格納するの
である。そしてこの格納、つまりトレースは切換信号を
反転させることによって終了する。そしてトレースした
データはアドレスカウントバッファ(8)にI10コン
ト0−ル信号によってアドレスをセットし、ノ智リファ
(91)・・・を介してRAM(21)・・・から読み
出すのである。
It also enables the selection switching and attenuation of each RAM (21), the count bias (8), and the write signal of the RAM (21). In other words, target side IOR, 40W, MEMR
. . . are logically summed by the OR gate (10), and the logical product of this gate output and the switching signal is
D)f-) (12), and the gate outputs thereof are inputted to the corresponding circuits as the above-mentioned gate and write signals. Also, the OR game of the 1000 select signal from the CPU1l+ and the switching signal) (The logical sum output from 11 gates becomes the 10 select signal for the RAM (2t) mentioned above.And I10 The address count buffer (8) ff: is incremented by the control signal, and as a result, the data from the lid side of the tarp is sequentially stored in the RAM (21)... and this storage, i.e. Tracing is terminated by inverting the switching signal.Then, the traced data is stored in the address count buffer (8) by setting the address by the I10 control signal, and is transferred to the RAM ( 21)...

このように第1図、第2図回路によれば、タープ・リド
側のCPUの動作状態をトレースすることができてイン
サー十っトエ三ユレータを用いなくてもよく、またイン
サー牛唱シトエ三ユレータのタイミンクと実際にCPU
を接続したときのタイミングの差によって、実際にCP
Uを実装したときに生じる暴走の原因を追求することが
容易にできるわけである。
In this way, according to the circuits shown in FIGS. 1 and 2, it is possible to trace the operating state of the CPU on the tarp/lid side, eliminating the need to use an inserter unit, and also making it possible to trace the operating state of the CPU on the tarp/lid side. Urator timing and actual CPU
Depending on the timing difference when connecting the CP
This means that it is easy to investigate the cause of the runaway that occurs when U is implemented.

ところでこの場合一つの処理をするづ0ジラム(以下タ
スクと称する)が複数からなる場合、処理の効率を上げ
るため、時分割で処理するような場合、夫々のタスクの
実行の割合を知るためには、上記構成の場合トレースメ
モリ(21に大容量のメ七りを必要とし、また割合を知
るには手間がかかり不便である。
By the way, in this case, when one process consists of multiple tasks (hereinafter referred to as tasks), in order to increase processing efficiency, when processing is done in time division, in order to know the execution rate of each task, In the case of the above configuration, a large capacity memory is required in the trace memory (21), and it is troublesome and inconvenient to know the ratio.

〔発明の目的〕[Purpose of the invention]

本発明は上述の問題点に鑑みて為されたもので、その目
的とするところはタスクの実行過程を容易に認識でき、
タスクの実行割合を認識でき、づ0グラムのダハ1リク
効率が向上するつo’Jラムイバツジ装置を提供するに
ある。
The present invention has been made in view of the above-mentioned problems, and its purpose is to easily recognize the task execution process.
To provide an O'J RAM exchange device which can recognize the execution rate of a task and improves the efficiency of one requisition.

〔発明の開示〕[Disclosure of the invention]

第3図は本発明の一実施例を示しており、図中031は
アドレスラッチで、このアトしスラッチ03)は1リア
ルタイム処理を司どるモニタがタスクへ制御権を渡すた
めの分岐命令を実行すると、この分岐命令時のアドレス
を■10]ント0−ル信号によってデータバス(国より
入力してラッチするためのものである。(14)はコン
パレータで、このコンパ1ノータ04)はアドレスラッ
チ予(13)でう・ソチされたアドレスデータを入力端
Bに入力し、アトしスバス(15)上のアトしスヂータ
を入力端Aに入力し、両入力端A、Bに入力したアドレ
スデータを比較するためのもので、アトしスラ゛ソ予0
31と共に命令フェッチ時のアドレスを検出する手段を
構成するものであ−る。0ηはD型フリッづフ0ツうで
、このD型フリッづフ0ツづ(I7)は上記コンパし一
タ(圓の出力を、前記命令が読み出されたときにセット
するためのもので、コンパレータ04)に入力するアド
レスヂータが一致した場合にはこのD型フリ1ソづフ0
・ソづ0乃のQ出力はL“となるようになっている。更
に該り型クリアつフロラつθηはCPU(図示せず)か
らの命令フエ・す子信号M1と、メモリリード信号ME
MRの反転信号との否定論理積をNANDゲート(I8
)でとって得られたゲート出力をりDツクとし、該クロ
ックの立上がりによって入力ヂータをセ1す卜する。ト
レースメ’tl: l f2(はメモリライト信号入力
端子WRと千ツづセレクタ信号入力端子C8とを共通接
続しており、上述のNAND)f−ト08)の出力と、
上記り型クリアづフロラづθ乃のQ出力との論理和をO
Rゲート09)によって得られ7.m ’f−ト出力を
夫々の入力信号としている。つまりD型フリッづフD・
ソづ07)とORゲート19)は書込む手段を構成する
。@)はアトしスカウンタで、このアトしスカウンタ(
20)は上記ORゲート(則のゲート信号をインバータ
(21)で反転せる信号をりDツクとするもので、カウ
ントデータをトレースメ七り(2)ヘアドレス苧−夕と
して出力するようになっている。
Figure 3 shows an embodiment of the present invention. In the figure, 031 is an address latch, and this address latch 03) executes a branch instruction for the monitor in charge of real-time processing to pass control to a task. Then, the address at the time of this branch instruction is input to the data bus (input from the country and latched by the ■10] node signal. (14) is a comparator, and this comparator 1 node 04) is the address latch. Input the address data inputted in step (13) to input terminal B, input the reset data on the at-speed bus (15) to input terminal A, and input the address data inputted to both input terminals A and B. This is for comparison purposes only.
Together with 31, this constitutes a means for detecting an address at the time of fetching an instruction. 0η is a D-type flip-flop (I7), and this D-type flip-flop (I7) is used to set the output of the above-mentioned comparator (round) when the above-mentioned instruction is read. Then, if the address data input to comparator 04) match, this D type free 1 software 0
・The Q output of Sozu0no is set to be L".Furthermore, the matching type clear signal θη is output from the CPU (not shown) by the command signal M1 and the memory read signal ME.
The NAND gate (I8
) is used as the gate output, and the input data is selected at the rising edge of the clock. Traceme'tl: l f2 (is a memory write signal input terminal WR and a chitsuzu selector signal input terminal C8 are commonly connected, and the output of the above-mentioned NAND) f-to08),
The above type clears the logical sum with the Q output of Florazu θno.
R gate 09) obtained by 7. The m'f-t output is used as the respective input signal. In other words, D-type flip-up D.
Sod07) and OR gate 19) constitute a writing means. @) is the attoshi counter, and this attoshi counter (
20) is a signal that inverts the gate signal of the above-mentioned OR gate with an inverter (21), and outputs the count data as a trace head address (2). There is.

しかして、今第4図(a)の、アドレスバス(I5)上
のアドレスバスタと、アドレスカウンタ(13)で予め
ラッチしである分岐命令の実行時のアドレスとが一致す
ると、第4図(d)に示すようにコンl−レータ(14
jの出力は” Hl/となる。そして第4図(b)に示
す命令つ工1ソチ信号M 1の発生時にメfす11−ド
信号MEM Rが発生すると、NANDゲート(18)
の出力、つまりD型フリツつフ01lJつ(17)の9
0ツクが第4図(e)のように発生し、このりD・リフ
の立上がりにおいて、D型フリッつフロラつ(1ηは]
ンへレータ04)の出力をセーリトし、Q出力は第4図
(f)のように−L〃となる。さて次の命令フエ・す子
信号M1の発生時においては第4図(a)の斜線で示す
タスクの開始アドレスがCPU(図示せず)から出力さ
れている。このときのメモリリード信号MEMRによっ
て、ORゲートQ91の出力は1L“となり、この$L
“となった信号がアドレスカウンタ120)のり0ツク
となり、またO R)f−) 09)の出力が第4図(
g)に示すトレースメモリ(2)のチップセレクト信号
と、トレースメ七り(2)の書き込み信号となって、ト
レースメF IJ +21はバーソファ(nを介してア
ドレスバス(16)上の上記のタスクの開始アドレスを
書込むのである。そして、アドレスカウンタ(2[1)
においてはりO゛リク立上がりでアドレスカウンタ(2
0)はカウント内容に1を加えることとなり、その結果
トし一スメ七り(2)のアドレスがインクリメントされ
る。このときコンJ\レータ(14)は一致信号を出し
ていないためD型フリッづフロラっ(17)の◇出力は
1Hlとなり、再び“L#となるまでトレースメ七り(
2)にはデータは書込まれなくなるのである。尚、第4
図(C)はCPU(図示せず)のり0ツク出方信号であ
る。また第3図中TR0Mはトレースオン信号で、この
トレースオン信号はアクティブになるまで、D型フリ1
すづフO1りつ(17)及びアドレスカウンタ(社)を
クリアするものである。
Therefore, if the address buster on the address bus (I5) shown in FIG. 4(a) matches the address at the time of execution of the branch instruction, which is latched in advance by the address counter (13), then the address shown in FIG. d), the converter (14
The output of j becomes "Hl/. Then, when the instruction signal MEM1 is generated at the time when the instruction signal MEM1 shown in FIG. 4(b) is generated, the NAND gate (18)
The output of
0tsu occurs as shown in Fig. 4(e), and at the rise of the D-riff, a D-type flip occurs (1η is]
The output of the converter 04) is discharged, and the Q output becomes -L as shown in FIG. 4(f). Now, when the next instruction flag/subsignal M1 is generated, the start address of the task shown by diagonal lines in FIG. 4(a) is output from the CPU (not shown). Due to the memory read signal MEMR at this time, the output of the OR gate Q91 becomes 1L", and this $L
The signal that becomes `` becomes 0 in the address counter 120), and the output of OR)f-)09) in Figure 4 (
The trace memory F IJ +21 serves as the chip select signal of the trace memory (2) shown in g) and the write signal of the trace memory (2). The start address is written.Then, the address counter (2[1)
At the rising edge of O, the address counter (2
0) will add 1 to the count contents, and as a result, the address of (2) will be incremented. At this time, the controller (14) is not outputting a matching signal, so the ◇ output of the D-type flip-flop (17) becomes 1Hl, and the trace mode continues until it becomes "L#" again.
No data is written to 2). Furthermore, the fourth
Figure (C) shows the output signal from the CPU (not shown). In addition, TR0M in Fig. 3 is a trace-on signal, and this trace-on signal continues until the D type free 1
This clears the Suzufu O1 Ritsu (17) and address counter (company).

尚また上記実施例ではトし一スメモリ(2)からのデー
タ読み出し回路は省略しであるが、適宜回路を用いて読
み出すのは言うまでもない。
Furthermore, although the circuit for reading data from the storage memory (2) is omitted in the above embodiment, it goes without saying that the data may be read using an appropriate circuit.

ところで第3図々示実施例は開始アドレスをトレースメ
モ1月2)に書き込むものであるが、タイマー割込み、
その他の外部割込みによりタスク実行中断の場所によっ
ては割込みがかかると動作がうまくいかない場合がある
。この場合予め分っているときには割込みをディ七−づ
ルすればよいが、分っていない場合、正常動作していな
いときには、どこが不具合なのかわからなくなる。
By the way, the embodiment shown in Figure 3 writes the start address in the trace memo 2), but the timer interrupt,
Depending on the location where task execution is interrupted by other external interrupts, operations may not work properly if an interrupt occurs. In this case, if it is known in advance, it is sufficient to disable the interrupt, but if it is not known and the system is not operating normally, it is difficult to determine where the problem is.

そこでタスクの開始アドレスと、割込みが発生する直前
に実行されたアトlラスをI−L、−スメモリ(2)に
書込むようにしたものが第5図々示の実施例である。
Therefore, the embodiment shown in FIG. 5 is such that the start address of the task and the atlas executed immediately before the occurrence of the interrupt are written into the I-L memory (2).

この実施例は第3図々示回路を基本としたもので、新ら
たにう・ソチ瞥、D型フリッづフロラづシ4)、ρ(へ
)等を追加しており、う・リチ(23)は通常CPU(
図示せず)からの第6図(b)に示すアドレスラッチ信
号ALEの立上がりがあると、NANDゲート−1(ハ
)を介して第6図(i)に示すラッチイネ−づL信号と
して入力し、第6図(a)に示すアドレスバス06)上
のアトしスダータをラッチするものである。
This embodiment is based on the circuit shown in FIG. (23) is usually a CPU (
When the address latch signal ALE shown in FIG. 6(b) rises from the source (not shown), it is input as the latch enable signal ALE shown in FIG. 6(i) via the NAND gate 1(c). , and latches the data on the address bus 06) shown in FIG. 6(a).

D型フリ・すつフロラづ動)は第6図(e)に示す割込
みリクエスト信号lNTRが立上がると、Q出力を第6
図(0のように% Hlとし、この’ Hl出力によっ
てう・ソ千(23′lが次のアドレスラッチ信号ALE
が立上がってもうtす予しないようにするものである。
When the interrupt request signal lNTR shown in Fig. 6(e) rises, the D type
(23'l is the next address latch signal ALE)
This is to prevent any further delay when the voltage rises.

すなわち第6図(a)に示す斜線で示した割込み直前の
実行アドレスをう・リチしたままにするのである。D型
っリッつフロ・りづ2151はアドレスラッチ信号AL
Eの立上り時にD型フリツつフロラづ嬶)のQ出力をt
%ソトし、自己のQ出力をゝH#に、Q出力を1LIに
するものである。またD型フリッづフロ・りづり(へ)
のQ出力はANDゲートe26)によってD型フリツプ
フOツー′J(I乃のQ出力と論理積をとられ、またこ
の論理積出力はORゲート(19)によってNANDゲ
ート08)からのゲート出力と論理和がとられるように
なっている。従って第6m6(d)に示すメモリリード
信号MEMRはD型フリツづフロラづ(2[51のQ出
力が1L〃となると、トレースメモ1月2)のメモリリ
ード信号として有効となる。また同時にD型フリ・ソづ
フロラづ□□□のQ出力カ” H#となると、バ1リフ
ァ翰のゲートが閉じられ、またQ出力によってラッチ(
支))のOE端子が1L“となってう・リチ匈)からの
データつまり第6図(a)の斜線で示す割込み前のアド
レスがト1ノースメ七り(2)に取込まれ、前記メモリ
リード信号ME M Rが第6図(j)に示すように有
効となることによって取込まれたデータが書き込まれる
ことになるわけである。同時にD型フリ・ソづフ0・ソ
づ(24)のCLR端子にはANDゲートレ9)を介し
て第6図(h)に示すD型フリッつフ0・す’l t2
5)のQ出力が入力しD型フリツづフロ1ソづ(24)
はクリアされ、またう・υ子(3)はラッチ可能になり
、次のアドレス5ツ予信号ALEではトレースメfす(
2)のデータ入力がバ・リファ(4)側に切換わるので
ある。そしてタスクの開始アドレスをトレースする場合
においては第3図実施例と同様に行なわれるのである。
That is, the execution address immediately before the interrupt indicated by diagonal lines in FIG. 6(a) is left unretched. The D-type Ritsu Flo-Rizu 2151 uses the address latch signal AL.
At the rising edge of E, the Q output of the D-type frits flora is t.
%, and sets its own Q output to H# and Q output to 1LI. Also, D-type Frizz-Flo Rizuri (to)
The Q output of is logically ANDed with the Q output of the D-type flip-flop O2'J (I) by AND gate e26), and this AND output is logically ANDed with the gate output from NAND gate 08) by OR gate (19). A logical sum is calculated. Therefore, the memory read signal MEMR shown in the 6th m6(d) becomes effective as a memory read signal for the D-type fritz Florazu (when the Q output of 2[51 becomes 1L, trace memo January 2). At the same time, when the Q output of the D-type Furi Sozu Florazu becomes H#, the gate of the barrier wire is closed, and the Q output latches (
When the OE terminal of the main part) becomes 1L", the data from the main part), that is, the address before the interrupt shown by the diagonal line in FIG. The captured data is written when the memory read signal MEMR becomes valid as shown in FIG. The CLR terminal of 24) is connected via an AND gate 9) to the D-type flip flop shown in FIG. 6(h).
The Q output of 5) is input and the D-type fritz flow 1 sozu (24)
is cleared, the straddle υ child (3) becomes latchable, and the next address 5 prediction signal ALE causes the trace function f(
The data input in step 2) is switched to the buffer (4) side. When tracing the start address of a task, it is carried out in the same manner as in the embodiment of FIG.

尚第6図(C)は命令フェッチ信号M1を、また同図(
g)はD型フリッづフロラづ□□□のりo1リクを示す
Note that FIG. 6(C) shows the instruction fetch signal M1, and FIG.
g) indicates D-type frizz florazu□□□ glue o1riku.

〔発明の効果〕〔Effect of the invention〕

本発明は上述のように複数のつDグラムをリアルタイム
で処理するマイクロコンヒュータシステムにおいて、′
joグラムを管理するtニタから、106ラムへ分岐す
る命令フェッチ時のアドレスを検出する手段と、該検出
後分岐先のアドレスをそのアドレスの命令フェッチ時に
トレースメtりに書き込む手段とを備え、モニタから所
定のづOグラムへ制御権が移行時に分岐先のアドレスを
トレースメモリに書き込むようにしであるので、タスク
の実行過程をト1ノースメ七りに書込んだアドレスデー
タを読み出すだけで容易に認識でき、またタスクの実行
割合も認識できるからプログラムのヂバツジ効率が向上
するのである。
As described above, the present invention provides a microcomputer system that processes a plurality of D-grams in real time.
The monitor is equipped with means for detecting an address at the time of fetching an instruction to branch to the 106 RAM from a t monitor that manages the jogram, and means for writing the address of the branch destination after the detection into the trace meter at the time of fetching the instruction at that address. Since the branch destination address is written in the trace memory when control is transferred from the Ogram to a predetermined Ogram, the execution process of the task can be easily recognized by simply reading the address data written in the trace memory. It is also possible to recognize the execution rate of tasks, which improves the efficiency of program batching.

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

第1図は従来例の概略構成図、第2図は同上の要部具体
回路図、第3図は本発明の一実施例の回路図、第4図は
同上の各部のタイムチャート、第5図は本発明の別の実
施例の回路図、第6図は同上の各部のタイムチャートで
あり、(2)はトレースメ七り1Q(至)はアドレスラ
ッチ、(141はコンl\レータ、(1ηはD型っりt
すづつ0ツつ、(ホ)はアドレスカウンタ、Mlは命令
フエツヂ信13 、MEM Rはメモリリード信号であ
る。 l+−cni:二、=
Fig. 1 is a schematic configuration diagram of the conventional example, Fig. 2 is a specific circuit diagram of the main parts of the same as above, Fig. 3 is a circuit diagram of an embodiment of the present invention, Fig. 4 is a time chart of each part of the same as above, and Fig. 5 The figure is a circuit diagram of another embodiment of the present invention, and FIG. 6 is a time chart of each part of the same. 1η is D-shaped
(e) is an address counter, Ml is an instruction feed signal 13, and MEMR is a memory read signal. l+-cni: two, =

Claims (1)

【特許請求の範囲】[Claims] fi+複数のづ0ジラムをリアルタイムで処理するマイ
ク0コンピユータシステムにおいて、づ0ジラムを管理
するモニタから、つ0ジラムヘ分岐する命令フェッチ時
のアドレスを検出する手段と、該検出後分岐先のアドレ
スをそのアドレスの命令フェッチ時にトレースメモリに
書き込む手段とを備え、モニタから所定のづ0タラムへ
制御権が移行時に分岐先のアドレスをトし−スメ七りに
書き込むようにして成ることを特徴とするづ0ジラムヂ
バツジ装置。
In a microphone computer system that processes fi + multiple zu0jirams in real time, there is a means for detecting an address at the time of fetching an instruction to branch to zu0jiram from a monitor that manages zu0jirams, and a means for detecting the address of the branch destination after the detection. and a means for writing to the trace memory when an instruction at that address is fetched, and the branch destination address is written to the trace memory when control is transferred from the monitor to a predetermined column. zu0jiramjibatsuji device.
JP58067265A 1983-04-15 1983-04-15 Program debugging device Pending JPS59191660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58067265A JPS59191660A (en) 1983-04-15 1983-04-15 Program debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58067265A JPS59191660A (en) 1983-04-15 1983-04-15 Program debugging device

Publications (1)

Publication Number Publication Date
JPS59191660A true JPS59191660A (en) 1984-10-30

Family

ID=13339953

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58067265A Pending JPS59191660A (en) 1983-04-15 1983-04-15 Program debugging device

Country Status (1)

Country Link
JP (1) JPS59191660A (en)

Similar Documents

Publication Publication Date Title
JP3105223B2 (en) Debug peripherals for microcomputers, microprocessors and core processor integrated circuits
US4271466A (en) Direct memory access control system with byte/word control of data bus
US3789365A (en) Processor interrupt system
US4056847A (en) Priority vector interrupt system
US4348722A (en) Bus error recognition for microprogrammed data processor
CA1171968A (en) Microprocessor architecture having internal access means
US5497459A (en) System for testing instruction queue circuit and central processing unit having the system
US6968410B2 (en) Multi-threaded processing of system management interrupts
JPS59191660A (en) Program debugging device
US6957370B2 (en) Digital signal processor including an interface therein capable of allowing direct access to registers from an external device
JP2520158B2 (en) Debugging method of digital signal processor
JPS60262251A (en) Backup device for development of microprocessor
JP2940000B2 (en) Single chip microcomputer
SU1425687A1 (en) Program debugging device
SU1239723A1 (en) Device for generating interruption interrogations in case of debugging programs
JPS6212540B2 (en)
JPH06324907A (en) Input/output simulator connector
JPH01169639A (en) Memory
JPS608951A (en) Data processor
JPS59167764A (en) Memory access system
JPH0235342B2 (en) WARIKOMISEIGYOKAIRO
JPS63642A (en) Program debugging system
JPS6327933A (en) Tracing memory constitution system
JPS63197245A (en) Microprogram controller
JPH01120634A (en) Interruption controller