JPS60241142A - Monitor for program running route - Google Patents

Monitor for program running route

Info

Publication number
JPS60241142A
JPS60241142A JP59098162A JP9816284A JPS60241142A JP S60241142 A JPS60241142 A JP S60241142A JP 59098162 A JP59098162 A JP 59098162A JP 9816284 A JP9816284 A JP 9816284A JP S60241142 A JPS60241142 A JP S60241142A
Authority
JP
Japan
Prior art keywords
address
memory
contents
microprocessor
monitor
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
JP59098162A
Other languages
Japanese (ja)
Inventor
Kazuaki Sakurai
桜井 和明
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Hokushin Electric Corp
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 Yokogawa Hokushin Electric Corp filed Critical Yokogawa Hokushin Electric Corp
Priority to JP59098162A priority Critical patent/JPS60241142A/en
Publication of JPS60241142A publication Critical patent/JPS60241142A/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 monitor the unrun area of a program by writing the level ''1'' previously to a memory and the level ''0'' to the memory at the rear edge of the execution bus cycle of a microprocessor. CONSTITUTION:A memory 5 is reset and receives an access from a microprocessor mup2 in a running monitor mode of the mup2 by selecting the A side input through multiplexers 4 and 7. Then the contents of a memory corresponding to the address executed by the mup2 are set at ''0''. When the running monitor is through, the multiplexers 4 and 7 select the B side input. Thus the memory contents can be read out by a control circuit 10. The contents of the memory 5 read out in such a way are monitored to confirm the run address (contents: ''0'') and the unrun address (contents: ''1'') of the mup2.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ロジックアナライザなどにおいてプログラム
走行径路を監視するモニターに関し、特にプログラムの
中で未走行部分の有無を見極めることのできるモニター
の実現に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a monitor that monitors a program running path in a logic analyzer or the like, and particularly relates to the realization of a monitor that can determine whether or not there are untraveled portions in a program. .

[従来の技vF1] 従来より、ロジックアナライザでは、解析結果を表示装
置に表示することができるようになっており、ステート
表示やタイミング表示の他に、マイクロプロセッサ〈以
下μPという)の動作状態に付いて、そのアドレス情報
に着目してサージプルし、アドレス情報の動きをX−Y
軸(例えばアドレスビットを2分し、X軸はその上位ビ
ットで表されるアドレス軸、Y軸はその下位ビットで表
されるアドレス軸とする。いずれの軸も時間軸ではない
。)で指示される表示画面DSP上に第2図のようなト
レースTとして表示させる方法があった。
[Conventional technique vF1] Conventionally, logic analyzers have been able to display the analysis results on a display device, and in addition to displaying the state and timing, it has also been possible to display the operating status of the microprocessor (hereinafter referred to as μP). Then, focus on the address information, perform a surge pull, and check the movement of the address information in X-Y.
Specify by axis (for example, divide the address bit into two, and the X-axis is the address axis represented by its upper bits, and the Y-axis is the address axis represented by its lower bits. Neither axis is a time axis.) There is a method of displaying the trace T on the display screen DSP as shown in FIG.

しかしながら、この様な方法ではμPの径路について、
パターン的に認識できるメリットはあったが、プログラ
ムの中で未走行部分があるか否かを見極めるのは極めて
難しいという欠点があった。
However, in such a method, regarding the path of μP,
Although it had the advantage of being able to recognize patterns, it had the disadvantage that it was extremely difficult to determine whether there were unrun portions of the program.

[発明の目的] 本発明の目的は、この様な欠点を除去するで、簡単な構
成により、プログラムの未走行部分をモニターすること
ができ、プログラム・デバッグの効率向上が期待できる
プログラム走行径路監視モニターを提供することにある
[Object of the Invention] The object of the present invention is to eliminate such drawbacks, and to provide a program running route monitoring system that can monitor unrun portions of a program with a simple configuration and is expected to improve the efficiency of program debugging. The purpose is to provide a monitor.

[発明の概要] この様な目的を達成するために本発明では、被試験マイ
クロプロセッサシステムからのアドレスとメモリ読出し
アドレスとを入力とし、いずれかを選択するアドレス選
択手段と、このアドレス選択手段からのアドレスでアク
セスされるメモリと、事前に前記メモリに゛1″レベル
を書き込みリセット状態にすると共に前記被試験マイク
ロプロセッサシステムのマイクロプロセッサの実行バス
サイクルの後縁で前記メモリに1101ルベルを書き込
む手段とを具備し、前記メモリの内容により前記マイク
ロプロセッサの走行部分および未走行部分を検知できる
ようにしたことを特徴とするものである。
[Summary of the Invention] In order to achieve such an object, the present invention includes an address selection means for inputting an address from a microprocessor system under test and a memory read address and selecting one of them; a memory accessed at an address of , and means for writing a "1" level into the memory in advance to set it in a reset state and writing 1101 level into the memory at the trailing edge of an execution bus cycle of the microprocessor of the microprocessor system under test. The present invention is characterized in that a running portion and a non-running portion of the microprocessor can be detected based on the contents of the memory.

[実施例] 以下図面を用いて本発明の詳細な説明する。第1図は本
発明の実施例図である。同図において、1はマイクロプ
ロセッサ2を組込んだ被試験μPシステム、3はアドレ
スバス、4はアドレス用マルチプレクサ、5はメモリ、
6はゲート、7は制御信号用マルチプレクサ、8はスイ
ッチ、10はコントロール回路である。
[Example] The present invention will be described in detail below with reference to the drawings. FIG. 1 shows an embodiment of the present invention. In the figure, 1 is a μP system under test incorporating a microprocessor 2, 3 is an address bus, 4 is an address multiplexer, 5 is a memory,
6 is a gate, 7 is a control signal multiplexer, 8 is a switch, and 10 is a control circuit.

アドレス用マルチプレクサ4は、μP2からのアドレス
を一方の入力とし、外部より指定される読み出しアドレ
スを他方の入力として、いずれかの入力を選択し出力す
るアドレス選択手段である。
The address multiplexer 4 is an address selection means that takes the address from μP 2 as one input, takes the externally specified read address as the other input, and selects and outputs one of the inputs.

メモリ5は、リード・ライト信号WRに応じてデータの
書込みまたは読出しが可能なメモリで、WR倍信号書込
みを指示するライト信号のときにはアドレス用マルチプ
レクサ4で指定されるアドレスにスイッチ8より与えら
れる“1″または“0°゛のデータが書込まれ、WR倍
信号読出しを指示するリード信号のときにはアドレス用
マルチプレクサ4で指定されるアドレスのデりが読出さ
れる。
The memory 5 is a memory in which data can be written or read in accordance with the read/write signal WR, and when the write signal instructs to write the WR multiplied signal, the switch 8 applies "" to the address specified by the address multiplexer 4. Data of 1" or "0°" is written, and when the read signal instructs to read the WR multiplied signal, the address specified by the address multiplexer 4 is read out.

WR倍信号制御信号用゛蒙ルチプレクサ7より出力され
るが、このマルチプレクサ7はμP2のメモリ・リード
またはメモリ・ライト信号の論理和をとるゲート6の出
力か、または外部より与えられるリセットレベル書込み
信号かの、いずれか一方を選択しWR倍信号して出力す
る。
The WR multiplier signal is output from the multiplexer 7 for the control signal, and this multiplexer 7 receives the output of the gate 6 that takes the logical sum of the memory read or memory write signals of μP2, or the reset level write signal given from the outside. Select one of them and output it as a WR multiplied signal.

コントロール回路10は、外部からの指令に基づきマル
チプレクサ4.7およびスイッチの動作を制御するため
の制御信号を出力するものである。
The control circuit 10 outputs control signals for controlling the operations of the multiplexer 4.7 and the switches based on commands from the outside.

この様な構成における動作を次に説明する。The operation in such a configuration will be explained next.

■まずメモリ5をリセットする。■First, reset memory 5.

コントロール回路1′Oの制御により、マルチプレクサ
4ではバス9のアドレスが選択されるようにすると共に
、マルチプレクサ7ではリセットレベル書込み信号が選
択されるように設定した上で、順次アドレス指定してメ
モリ5内の全アドレスにスイッチ8で選択した信号゛1
″を書き込み、メモリをリセット状態にする。
Under the control of the control circuit 1'O, the multiplexer 4 is set to select the address of the bus 9, and the multiplexer 7 is set to select the reset level write signal. Signal ゛1 selected by switch 8 to all addresses in
” to reset the memory.

■μPの走行モニター中は、マルチプレクサ4゜7にお
いて図示のようにA個入力を選択することでメモリ5が
μP2によりアクセスされ、μP2の実行するアドレス
に対応したメモリ内容が′0°゛になる。
■While the running of μP is being monitored, the memory 5 is accessed by μP2 by selecting A inputs as shown in the diagram at multiplexer 4゜7, and the memory contents corresponding to the address executed by μP2 become '0°゛. .

■走行モニターが終了すると、マルチプレクサ4゜7に
おいて図示のようにB個入力を選択することで、コント
ロール回路10によりメモリ内容が読出し可能となる。
(2) When the running monitor is finished, the memory contents can be read out by the control circuit 10 by selecting B inputs as shown in the figure at the multiplexer 4.7.

このようにして読み出されるメモリ5の内容をモニター
することにより、μPの走行アドレス(内容が“’0”
)と未走行アドレス(内容が11111)を確認するこ
とができる。
By monitoring the contents of the memory 5 read out in this way, it is possible to determine whether the μP running address (content is “'0”)
) and the unused address (content is 11111).

また、予め与えられたアドレス範囲で読出しメモリの1
ilZ1“0″の領域の比を算出すれば未走行径路部が
明示できる。
Also, read memory 1 in a pre-given address range.
By calculating the ratio of the area of ilZ1 "0", the untraveled route portion can be clearly identified.

また、ii 1 u、“0′′の情報をもとに未走行径
路部分のみを引出して明示することもできる。
Also, based on the information of ii 1 u, "0'', only the untraveled route portion can be extracted and clearly displayed.

なお、μP2より与えられるアドレスのビット幅を圧縮
するアドレス変換器を設け、この出力をアドレスマルチ
プレクサ4に入力するようにしても良い。
Note that an address converter may be provided to compress the bit width of the address given by μP2, and its output may be input to the address multiplexer 4.

μP2より与えられるアドレスは通常20〜24ピット
幅であるが、アドレス変換器はこれを、デバッグプログ
ラムで許容されるビット幅(通常16〜20ビット幅)
に圧縮する。これにより、メモリ5を経済的に構成する
ことができる。
The address given by μP2 is usually 20 to 24 bits wide, but the address converter converts it to the bit width allowed by the debug program (usually 16 to 20 bits wide).
Compress it into Thereby, the memory 5 can be constructed economically.

[発明の効果コ 以上説明したように、本発明によれば、μPのプログラ
ムの未走行部分および走行部分を容易に見付は出ずこと
ができ、プログラムのデバッグ効率の向上が期待できる
[Effects of the Invention] As explained above, according to the present invention, it is possible to easily find unrun portions and running portions of a μP program, and an improvement in program debugging efficiency can be expected.

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

第1図は本発明の一実施例を示す構成図、第2図は従来
のトレース表示を説明するための図である。 1・・・被試験μPシステム、2・・・マイクロプロセ
ッサ、3・・・アドレスバス、4・・・アドレス用マル
チプレクサ、5・・・メモリ、6・・・ゲート、7・・
・制御信号用マルチプレクサ、8・・・スイッチ、1o
・・・コントロール回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a diagram for explaining a conventional trace display. DESCRIPTION OF SYMBOLS 1... μP system under test, 2... Microprocessor, 3... Address bus, 4... Address multiplexer, 5... Memory, 6... Gate, 7...
・Control signal multiplexer, 8...switch, 1o
...Control circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)被試験マイクロプロセッサシステムからのアドレ
スとメモリ読出しアドレスとを入力とし、いずれかを選
択するアドレス選択手段と、このアドレス選択手段から
のアドレスでアクセスされるメモリと、事前に前記メモ
リに“I IIレベルを書き込みリセット状態にすると
共に前記被試験マイクロプロセッサシステムのマイクロ
プロセッサの実行バスサイクルの後縁で前記メモリに゛
′0″レベルを書き込む手段とを具備し、前記メモリの
内容により前記マイクロプロセッサの走行部分および未
走行部分を検知できるようにしたことを特徴とするプロ
グラム走行径路監視モニター。 (2>#記アドレス選択手段は、被試験マイクロプロセ
ッサシステムからのアドレスを圧縮するアドレス変換器
を備えてなることを特徴とする特許請求の範囲第1項記
載のプログラム走行径路監視モニター。
(1) Address selection means that receives an address from the microprocessor system under test and a memory read address and selects one of them, a memory that is accessed by the address from this address selection means, and a means for setting the I II level to a write reset state and writing a ``0'' level to the memory at the trailing edge of an execution bus cycle of the microprocessor of the microprocessor system under test; A program travel route monitoring monitor characterized by being able to detect running portions and non-running portions of a processor. 2. The program execution path monitoring monitor according to claim 1, wherein the address selection means marked # comprises an address converter for compressing addresses from the microprocessor system under test.
JP59098162A 1984-05-16 1984-05-16 Monitor for program running route Pending JPS60241142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59098162A JPS60241142A (en) 1984-05-16 1984-05-16 Monitor for program running route

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59098162A JPS60241142A (en) 1984-05-16 1984-05-16 Monitor for program running route

Publications (1)

Publication Number Publication Date
JPS60241142A true JPS60241142A (en) 1985-11-30

Family

ID=14212402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59098162A Pending JPS60241142A (en) 1984-05-16 1984-05-16 Monitor for program running route

Country Status (1)

Country Link
JP (1) JPS60241142A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5472909A (en) * 1977-11-22 1979-06-11 Nippon Telegr & Teleph Corp <Ntt> Recording method for program passing trace of electronic switchboard

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5472909A (en) * 1977-11-22 1979-06-11 Nippon Telegr & Teleph Corp <Ntt> Recording method for program passing trace of electronic switchboard

Similar Documents

Publication Publication Date Title
JPH02297228A (en) Fault information storing system
JPH0752202B2 (en) Spectrum analyzer
JPH0627749B2 (en) Spectrum analyzer
JPH0863374A (en) Tracing function incorporated type lsi
JPS60241142A (en) Monitor for program running route
JPH1040130A (en) Microcomputer
JPH04145544A (en) Debugging device
JPH0283749A (en) Internal interruption control system for microprocessor
JP2760228B2 (en) Microprocessor with built-in cache memory and its trace analyzer
JP2007080292A (en) Debugging system
JPH0535547A (en) Tracer memory capable of designation of trace information
JPH05173846A (en) Fault analysis information tracing method
JPH10240571A (en) Address tracing circuit
JPH08161196A (en) Instruction tracing device
JPS6336327A (en) Sequence display device
JPH0229833A (en) Maintenance diagnostic system
JPS61279951A (en) Instrumentation system for program including factor
JPS6175440A (en) Program quality evaluating device
JPS63289654A (en) Program branching instruction monitoring system
JPH0131215B2 (en)
JPH02242344A (en) In-circuit emulator device
JPH03266246A (en) Magnetic recording and reproducing device
JPH03241436A (en) Testing device and memory writing method for information processor
JPS59161747A (en) Program analyzer
JPH05210469A (en) System for externally storing latch data