JPS61151752A - Microcomputer program development support device - Google Patents
Microcomputer program development support deviceInfo
- Publication number
- JPS61151752A JPS61151752A JP59277252A JP27725284A JPS61151752A JP S61151752 A JPS61151752 A JP S61151752A JP 59277252 A JP59277252 A JP 59277252A JP 27725284 A JP27725284 A JP 27725284A JP S61151752 A JPS61151752 A JP S61151752A
- Authority
- JP
- Japan
- Prior art keywords
- address
- memory
- circuit
- signal
- program
- 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
- 230000015654 memory Effects 0.000 claims abstract description 29
- 238000009825 accumulation Methods 0.000 claims description 5
- 239000013256 coordination polymer Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 5
- 101100086716 Caenorhabditis elegans ran-3 gene Proteins 0.000 description 2
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はマイクロコンピュータによるプログラムの実行
履歴を蓄積するプログラム開発支援装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program development support device that accumulates a history of program execution by a microcomputer.
第3図は従来のマイクロコンピュータプログラム開発支
援装置の構成図である。FIG. 3 is a block diagram of a conventional microcomputer program development support device.
この装置ではプログラムの実行履歴の蓄積は次のように
行なわれる。まずcpu tからプログラムメモリ2に
リード信号Slあるいはライト信号Swが出力されると
、オア回路6を介してこれらの信号S跪、 SvがRA
M制御回路4に書込み指示信号として入力される。そし
て、 RAM制御回路4はRAM3に対する書込みア
ドレスと書込みタイミングを指示する制御信号ScをR
AN 3に出力し、リード信号Ss、ライト信号Sw、
アドレスバス7およびデータバス8の各情報がRAM3
に書込まれる。この後。In this device, the program execution history is accumulated as follows. First, when a read signal Sl or a write signal Sw is output from the CPU t to the program memory 2, these signals S and Sv are output to RA via the OR circuit 6.
The signal is input to the M control circuit 4 as a write instruction signal. Then, the RAM control circuit 4 sends a control signal Sc that instructs the write address and write timing to the RAM 3 to R.
Output to AN 3, read signal Ss, write signal Sw,
Each information of address bus 7 and data bus 8 is stored in RAM 3.
written to. After this.
RAM制御回路4はRAN 3に対する書込みアドレス
をインクリメントして次の書込みを待つ、このようにし
て、 cputからリード信号SRとライト信号Sw
のいずれかが出力されたときの各情報が順次RAM 3
に蓄積される。The RAM control circuit 4 increments the write address for the RAN 3 and waits for the next write. In this way, the read signal SR and write signal Sw are transmitted from cput.
When any of the information is output, each information is sequentially stored in RAM 3.
is accumulated in
次に、オペレータによって読出し指令が入出力回路5か
ら入力されると、まず停止信号5丁が入出力回路5から
CPU lへ送出されてcpu tが停止し、さらに読
出し要求信号Srsが入出力回路5からRAM制御回路
4へ送出されてRAM制御回路4はRAM 3に対する
読出しアドレスを指示する制御信号Sc t−RAN
3に出力し、 RAM3に蓄積されていた各情報がデ
ータバス9を介して入出力回路5に送られ、ここで表示
される。このようにして、プログラムの実行履歴が出力
されていた。Next, when a read command is input from the input/output circuit 5 by the operator, a stop signal of 5 signals is first sent from the input/output circuit 5 to the CPU l to stop the CPU t, and then a read request signal Srs is sent to the input/output circuit. 5 to the RAM control circuit 4, and the RAM control circuit 4 instructs the read address for the RAM 3.
3, and each piece of information stored in the RAM 3 is sent to the input/output circuit 5 via the data bus 9, where it is displayed. In this way, the program execution history was output.
しかしながらこの従来の装置では、cpu tからリー
ド信号S*、ライト信号Swが出力される毎にプログラ
ムの実行結果が蓄積されるので、 RAM 3には不要
な情報まで蓄積されていた。特に、高級言語のように、
ユーザが作成したプログラムの一つの文と機械語の命令
数が一致しないプログラムトレースでは、一つの文に対
応する機械語の先頭アドレスの結果のみが必要であるが
、不要な実行結果がRAM 3に書込まれてしまうとい
う問題点があった。However, in this conventional device, program execution results are accumulated every time a read signal S* or a write signal Sw is output from the CPU t, so that even unnecessary information is accumulated in the RAM 3. In particular, like high-level languages,
In a program trace where the number of machine language instructions does not match one statement of a program created by the user, only the result of the start address of the machine language corresponding to one statement is required, but unnecessary execution results are stored in RAM 3. There was a problem that it was written.
本発明の目的は、プログラムメモリ2の任意のアドレス
の実行結果のみを蓄積することができるマイクロコンピ
ュータプログラム開発支援装置を提供することにある。An object of the present invention is to provide a microcomputer program development support device that can store only the execution results of arbitrary addresses in the program memory 2.
本発明のマイクロコンピュータプログラム開発支援装置
はプログラムメモリの所望のアドレスの実行結果のみを
蓄積するものであり、プログラムメモリの各アドレスに
対応してこのアドレスのプログラムの実行結果を蓄積手
段に蓄積するか否かの情報が予め書込まれた蓄積指示メ
モリと、この蓄積指示メモリの内容に基づいて蓄積手段
に書込み指令を出力する指示手段とを有している。The microcomputer program development support device of the present invention stores only the execution result of a desired address of the program memory, and stores the execution result of the program at this address in the storage means corresponding to each address of the program memory. The storage device includes an accumulation instruction memory in which information indicating whether or not to use the storage device is written in advance, and an instruction device that outputs a write instruction to the storage device based on the contents of the accumulation instruction memory.
本発明の実施例について図面を参照して説明する。 Embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例に係るマイクロコンピュータ
プログラム開発支援装置の構成図である0本実施例は第
3図の従来例においてオア回路6を排して指示回路!O
を設けたものである。指示回路10は第2図に示される
ようにプログラムメモリ2の各アドレスに対応するアド
レスを有するメモリ11 、12.アンド回路13.1
4およびオア回路15から構成され、ライト結果を蓄積
したいプログラムメモリ2のアドレスに対応するメモリ
11のアドレスに1”が、他のアドレスに“0”が予め
書込まれ、またリード結果を蓄積したいプログラムメモ
リ2のアドレスに対応するメモリ12のアドレスに“1
″が、他のアドレスに0″が予め書込まれる。したがっ
て、ライト信号Svあるいはリード信号SRが指示回路
10に入力されたとき、アドレスバス7で指定されるメ
モリ11.12のアドレスの内容が“1″ならばアンド
回路14.13の出力がそれぞれ“1”となリオア回路
15を介して書込み指示信号SPが出力され、指定され
たメモリ11 、12のアドレスの内容が0”ならば書
込み指示信号Spは出力されない。FIG. 1 is a block diagram of a microcomputer program development support device according to an embodiment of the present invention.This embodiment eliminates the OR circuit 6 in the conventional example of FIG. 3 and uses an instruction circuit instead. O
It has been established. The instruction circuit 10 has memories 11, 12 . . . having addresses corresponding to each address of the program memory 2, as shown in FIG. AND circuit 13.1
4 and an OR circuit 15, "1" is written in advance to the address of the memory 11 corresponding to the address of the program memory 2 where the write result is to be stored, "0" is written to the other addresses, and the read result is to be stored. “1” at the address of memory 12 corresponding to the address of program memory 2
'', and 0'' is written in advance to other addresses. Therefore, when the write signal Sv or read signal SR is input to the instruction circuit 10, if the content of the address of the memory 11.12 specified by the address bus 7 is "1", the output of the AND circuit 14.13 is "1". If the contents of the specified addresses of the memories 11 and 12 are 0'', the write instruction signal SP is outputted via the REOR circuit 15.
次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.
まスCPU1からリード信号SRあるいはライト信号S
wが出力されると、指示回路lOはこのときのアドレス
バス7で指定されるメモリ12.11のアドレスの内容
が“1″のときにのみ書込み指示信号spをRAM制御
回路4に出力する。この後のRAN 3への情報の書込
み動作および蓄積された実行履歴の読出し動作は従来例
の動作と同様である。Read signal SR or write signal S from the main CPU1
When w is output, the instruction circuit 1O outputs a write instruction signal sp to the RAM control circuit 4 only when the content of the address of the memory 12.11 specified by the address bus 7 at this time is "1". The subsequent operation of writing information to the RAN 3 and the operation of reading the accumulated execution history are similar to those of the conventional example.
すなわち、予め“1”を書込んだメモリ11.12のア
ドレスに対応するプログラムメモリ2のアドレスの実行
結果のみがRAM 3に蓄積される。That is, only the execution result of the address of the program memory 2 corresponding to the address of the memory 11, 12 in which "1" has been written in advance is stored in the RAM 3.
以上説明したように本発明によれば、蓄積指示メモリで
指定されたアドレスのみプログラムの実行結果がRAM
3に蓄積されるので、2バイト以上ある命令の初めの部
分のみの蓄積や、任意の範囲のプログラムが実行された
ときのみ実行結果を蓄積でき、また、高級言語のプログ
ラムの一つの文に対応する機械語の先頭アドレスのみを
蓄積することにより、高級言語の文の流れの履歴もみる
ことができるという効果もある。As explained above, according to the present invention, only the program execution result is stored in the RAM at the address specified by the storage instruction memory.
3, it is possible to store only the first part of an instruction that is 2 bytes or more, or to store the execution results only when an arbitrary range of programs is executed, and it is also possible to store the execution results for a single statement in a high-level language program. By storing only the first address of the machine language to be used, it is also possible to see the history of the flow of sentences in the high-level language.
第1図は本発明の一実施例に係るマイクロコンピユータ
プログラム開発支援装置の構成図、第2図は第1図の指
示回路10の構成図、第3図は従来例の構成図である。
1・・・CPu、
2・・・プログラムメモリ、
3・・・RAM、
4・・・RAM制御回路、
5・・・入出力回路。
7・・・アドレスバス、
8.9・・・データバス、
10・・・指示回路、
11.12・・・メモリ。
13.14・・・アンド回路、
15・・・オア回路、
SR・・・リード信号、
Sw・・・ライト信号、
Sc・・・制御信号。
ST・・・停止信号、
Sp・・・書込み指示信号、
Sl)・・・読出し要求信号。FIG. 1 is a block diagram of a microcomputer program development support apparatus according to an embodiment of the present invention, FIG. 2 is a block diagram of the instruction circuit 10 of FIG. 1, and FIG. 3 is a block diagram of a conventional example. DESCRIPTION OF SYMBOLS 1... CPU, 2... Program memory, 3... RAM, 4... RAM control circuit, 5... Input/output circuit. 7...Address bus, 8.9...Data bus, 10...Instruction circuit, 11.12...Memory. 13.14...AND circuit, 15...OR circuit, SR...read signal, Sw...write signal, Sc...control signal. ST...Stop signal, Sp...Write instruction signal, Sl)...Read request signal.
Claims (1)
Uによるプログラムの実行結果を蓄積する蓄積手段を有
するマイクロコンピュータプログラム開発支援装置にお
いて、 前記プログラムメモリの各アドレスに対応して該アドレ
スのプログラムの実行結果を前記蓄積手段に蓄積するか
否かの情報が予め書込まれた蓄積指示メモリと、 該蓄積指示メモリの内容に基づいて前記蓄積手段に書込
み指令を出力する指示手段とを有することを特徴とする
マイクロコンピュータプログラム開発支援装置。[Claims] A program memory in which a program is stored, and a CP
In a microcomputer program development support device having a storage means for storing program execution results by U, information indicating whether or not the program execution result at the address is to be stored in the storage means corresponding to each address of the program memory. A microcomputer program development support device comprising: an accumulation instruction memory in which is written in advance; and instruction means for outputting a write instruction to the accumulation means based on the contents of the accumulation instruction memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59277252A JPS61151752A (en) | 1984-12-26 | 1984-12-26 | Microcomputer program development support device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59277252A JPS61151752A (en) | 1984-12-26 | 1984-12-26 | Microcomputer program development support device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61151752A true JPS61151752A (en) | 1986-07-10 |
Family
ID=17580934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59277252A Pending JPS61151752A (en) | 1984-12-26 | 1984-12-26 | Microcomputer program development support device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61151752A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05285169A (en) * | 1992-04-06 | 1993-11-02 | Nobutaka Tanaka | Adhesive plaster |
-
1984
- 1984-12-26 JP JP59277252A patent/JPS61151752A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05285169A (en) * | 1992-04-06 | 1993-11-02 | Nobutaka Tanaka | Adhesive plaster |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4780819A (en) | Emulator system utilizing a program counter and a latch coupled to an emulator memory for reducing fletch line of instructions stored in the emulator memory | |
KR860007589A (en) | Data processing device | |
KR930002935A (en) | Information processing device | |
KR880014761A (en) | Data transfer controller for direct memory access | |
JPS61151752A (en) | Microcomputer program development support device | |
KR900005306A (en) | Computer system and method for setting recovery time | |
JPS6126686B2 (en) | ||
JP2793447B2 (en) | Controller access control method | |
KR890008681A (en) | Processor control unit | |
KR970059915A (en) | Microprocessor interrupt handler | |
JPH0795288B2 (en) | Microcomputer | |
KR970007644A (en) | DRAM data access control method with 16-bit data bus and its circuit | |
KR980004030A (en) | The number of execution times of command | |
JPS60132249A (en) | Data processor | |
JPS61296431A (en) | Data processor | |
JPH0264828A (en) | Address trace circuit | |
JPS63104156A (en) | Information processor | |
JPS63241636A (en) | Data processor | |
JPH04102143A (en) | Compare and swap control system | |
JPS61276029A (en) | Stack control method | |
JPS6266333A (en) | Indirect address register control method | |
JPS6249454A (en) | Debug supporting circuit for microprogram | |
JPS6234238A (en) | Microprocessor | |
JPH0635694A (en) | Microprogram running stoppage controller and method | |
JPS60114937A (en) | Microprogram processing unit |