JPS6037043A - Display device for program state - Google Patents
Display device for program stateInfo
- Publication number
- JPS6037043A JPS6037043A JP58145938A JP14593883A JPS6037043A JP S6037043 A JPS6037043 A JP S6037043A JP 58145938 A JP58145938 A JP 58145938A JP 14593883 A JP14593883 A JP 14593883A JP S6037043 A JPS6037043 A JP S6037043A
- Authority
- JP
- Japan
- Prior art keywords
- task
- program
- address
- memory
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
Abstract
Description
【発明の詳細な説明】
本発明は、マイクロコンピュータシステム上で実行され
るプログラムの実行状態を実時間で表示する装置に関す
るものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a device that displays the execution status of a program executed on a microcomputer system in real time.
マイクロコンピュータを応用したシステムでは、マイク
ロコンピュータ上で実行されるプログラムは、割込みな
どによって通知されるイベントの種類ごとに異なった働
きをする複数のタスクプログラムや、タスクプログラム
の動作制御およびハードウェアの制御などを行なうモニ
タプログラムなど、プログラムの役割に従がって分割さ
れているのが一般的である。In a system that uses a microcomputer, the programs executed on the microcomputer include multiple task programs that perform different functions depending on the type of event notified by an interrupt, etc., as well as task program operation control and hardware control. Generally, programs are divided according to their role, such as a monitor program that performs various tasks.
従来このようなプログラムの正しさを検証したシ、プロ
グラムの不具合個所を発見したシする場合には、システ
ムアナライザあるいはインサーキットエミーレータなど
と一般的に呼ばれている装置ヲマイクロコンピュータシ
ステムに接続し、主メモリ上の特定のアドレスや条件な
どを人間があらかじめ設定しておくことによシ、プログ
ラムの特定範囲内で実行された命令コード群をトレース
した)、ある命令コードが実行された時点における主メ
モリやレジスタの内容を表示させたりしていた。Conventionally, when verifying the correctness of such a program or discovering a malfunction in the program, a device commonly called a system analyzer or in-circuit emulator is connected to the microcomputer system. , a group of instruction codes executed within a specific range of a program was traced by humans setting specific addresses and conditions in main memory in advance) It displayed the contents of main memory and registers.
このような方式は命令コードの集合がプログラムである
との認識に立っているため、命令コードレベルでの動作
状態を把握することは可能であるが、役割に従がって分
割されているタスクなどプログラムの部分の状態を人間
が大局的に把握することは難しく、プログラムテストの
ために多大な時間と労力を必要としていた。This method is based on the recognition that a collection of instruction codes is a program, so it is possible to understand the operating status at the instruction code level, but it is difficult to understand the operating status at the instruction code level. It is difficult for humans to get a broad picture of the state of program parts, and program testing requires a great deal of time and effort.
本発明はプログラムを命令コードの集合ととらえるので
はなく、タスクというある役割を行なう機能の集tbと
してとらえ、これらタスクの実行状態を表示することに
よってプログラム全体の大局的な動きを人間に認識させ
ることを可能とする。The present invention does not regard a program as a collection of instruction codes, but rather as a collection of functions (tb) that perform a certain role called tasks, and displays the execution status of these tasks to allow humans to recognize the overall movement of the entire program. make it possible.
すなわち本発明は、中央処理装置と主メモリとから成る
マイクロコンピユータフステムにおいて、主メモリの任
意のアドレスを複数個入力する回路とアドレス比較回路
と表示回路とを付加することによシ、プログラムの実行
状態f、災待時間表示するO
次に本発明の実施例について図面を参照して説明する。That is, the present invention provides a microcomputer system consisting of a central processing unit and a main memory, by adding a circuit for inputting a plurality of arbitrary addresses of the main memory, an address comparison circuit, and a display circuit. Execution status f, disaster time display O Next, embodiments of the present invention will be described with reference to the drawings.
主メモリの任意のアドレスを入力する入力回路lによシ
、プログラム内のタスク状態語のアドレスをタスク番号
と共にタスクの数だけ人間が入力しておく。その後、中
央処理装置4を起動することによシ主メモリ5に格納さ
れているプログラムが実行される。アドレス比較回路2
はメモリ書込制御線6とアドレスバス7の信号を常時傍
受しておシ、メモリ書込制御線6の制御信号がONにな
る度にアドレスバス7を流れるアドレスを取シ込み、こ
れを前記タスク状態語のアドレスと比較する。一致する
アドレスを検出した場合にはそのタスク番号を表示回路
3に通知し、表示回路3は通知を受けた時点でメモリバ
ス8上を流れているデータすなわちタスク状態語を取シ
込み、タスク状態語の内容に応じた表示を行なう。タス
ク状態語の内容は例えば、タスクが生成されていない状
態、タスク実行中状態、タスクウェイト状態、タスクレ
ディ状態などがある。A human inputs the addresses of the task status words in the program along with the task numbers by the number of tasks into the input circuit 1 for inputting arbitrary addresses of the main memory. Thereafter, by activating the central processing unit 4, the program stored in the main memory 5 is executed. Address comparison circuit 2
constantly intercepts the signals on the memory write control line 6 and address bus 7, receives the address flowing through the address bus 7 every time the control signal on the memory write control line 6 turns ON, and transfers it to the address bus 7. Compare with the address of the task state word. If a matching address is detected, the task number is notified to the display circuit 3, and the display circuit 3 receives the data flowing on the memory bus 8, that is, the task status word at the time of receiving the notification, and displays the task status. Display according to the content of the word. The contents of the task state word include, for example, a state in which no task has been generated, a task in execution state, a task wait state, a task ready state, and the like.
中央処理装置4を起動後の動作を上記のように繰シ返し
実行することによりタスクの実行状態を実時間で表示す
ることが可能となる0
本発明は以上説明したように中央処理装置と主メ% I
J (!:からなるマイクロコンピユータフステムにお
いて、入力回路、アドレス比較回路、表示回路を付加す
ることによシ、タスクすなわち、プログラムの実行状態
ヲ実時間で表示できるため、人間がプログラム全体の動
きを大局的に認識可能となシ、プログラムに不具合点が
存在する場合には不具合個所を短時間で絞シ込めるため
、プログラムテストの時間や労力を削減することが出来
る。By repeatedly performing the operations after starting the central processing unit 4 as described above, it is possible to display the task execution status in real time. Me% I
By adding an input circuit, an address comparison circuit, and a display circuit to a microcomputer system consisting of J It is possible to recognize the problem from a global perspective, and if there is a defect in the program, the problem can be narrowed down in a short time, so the time and effort for program testing can be reduced.
図は本発明の実施例を示す図でめるO
l・・・・・・入力回路、2・・・・・・アドレス比較
回路、3・・・・・・表示回路、4・・・・・・中央処
理装置、5・・・・・・主メモリ、6・・・・・・メモ
リ書込制御線、7・・・・・・アドレスバス、8・・・
・・・メモリバス・The figure shows an embodiment of the present invention. ... Central processing unit, 5 ... Main memory, 6 ... Memory write control line, 7 ... Address bus, 8 ...
・・・Memory bus・
Claims (1)
タシステムにおいて、プログラム内のタスク状態語のア
ドレスを複数個前記主メモリに入力する回路と、プログ
ラム実行中にアトシスバ荷流れるアドレスを数カ込み、
前記入力されたアドレスと比較し、両者が一致したとき
出力を生ずるアドレス比較回路と、この出力を受けた時
点でメモリバス上を流れるデータの内容を表示する表示
回路を備えることによシ、プログラムの実行状態を実時
間で表示することを特徴とするプログラム状態表示装置
。In a microcomputer system consisting of a central processing unit and a main memory, a circuit that inputs a plurality of addresses of task state words in a program into the main memory, and a number of addresses flowing during execution of the program,
The program includes an address comparison circuit that compares the input address and produces an output when the two match, and a display circuit that displays the content of data flowing on the memory bus at the time the output is received. A program status display device characterized by displaying the execution status of a program in real time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58145938A JPS6037043A (en) | 1983-08-10 | 1983-08-10 | Display device for program state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58145938A JPS6037043A (en) | 1983-08-10 | 1983-08-10 | Display device for program state |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6037043A true JPS6037043A (en) | 1985-02-26 |
Family
ID=15396531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58145938A Pending JPS6037043A (en) | 1983-08-10 | 1983-08-10 | Display device for program state |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6037043A (en) |
-
1983
- 1983-08-10 JP JP58145938A patent/JPS6037043A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7178135B2 (en) | Scope-based breakpoint selection and operation | |
JPH11110254A (en) | Exception identification device and method for software debugging | |
US20100153786A1 (en) | Processor, multiprocessor, and debugging method | |
JPH11110255A (en) | Software debugging device and method | |
JP2003508864A (en) | Thread-oriented debugging | |
JPS6037043A (en) | Display device for program state | |
JP2525492B2 (en) | Programmable controller | |
JP2520158B2 (en) | Debugging method of digital signal processor | |
JPH03294934A (en) | Debugger for high level program lenguage | |
JPS59183443A (en) | Debug device | |
JP2967741B2 (en) | CPU compatibility test equipment | |
JPH0566961A (en) | Software debug system for information processor | |
JPS621041A (en) | Diagnosis circuit of information processor | |
JPS62109140A (en) | Tracing circuit for program processor | |
JPS6140648A (en) | Break point setting device | |
JPH0772874B2 (en) | Interrupt receiving device | |
JPH0468446A (en) | Debugging supporting device | |
JPH0444973B2 (en) | ||
JPH04174034A (en) | Step execution operation system of program development assisting device | |
JPS6385940A (en) | Testing system for information processor | |
JPH0322146A (en) | Microprogram control device | |
JPH04310138A (en) | Debugging method for data transmitter | |
JPS6246350A (en) | Method and device for analyzing action of microprocessor | |
JPS59163654A (en) | Debug device | |
JPH02235150A (en) | Information processor |