JPS5917468B2 - Program counter trajectory storage device - Google Patents
Program counter trajectory storage deviceInfo
- Publication number
- JPS5917468B2 JPS5917468B2 JP51100527A JP10052776A JPS5917468B2 JP S5917468 B2 JPS5917468 B2 JP S5917468B2 JP 51100527 A JP51100527 A JP 51100527A JP 10052776 A JP10052776 A JP 10052776A JP S5917468 B2 JPS5917468 B2 JP S5917468B2
- Authority
- JP
- Japan
- Prior art keywords
- program counter
- address
- storage device
- microprogram
- common bus
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明はプログラムカウンタ軌跡記憶装置に係り、特に
、マイクロプログラム制御される計算機のプログラムカ
ウンタ軌跡記憶装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a program counter trajectory storage device, and more particularly to a program counter trajectory storage device for a computer controlled by a microprogram.
〔発明の背景〕従来のプログラムカウンタ軌跡記憶装置
では、第1図に示すように、計算機本体6内のトレース
の対象となるプログラムカウンタ1の出力信号線2を別
に用意した記憶装置3に接続し、プログラムカウンタ1
から記憶装置3へのデータ転送は、マイクロプログラム
制御と専用回路4とで行なうか、あるいは専用回路4の
みにより行なつてい!このうちマイクロプログラム制御
と専用回路4とによる方法は、プログラムカウンタの出
力信号線2およびマイクロプログラム制御用信号線5が
標準的に計算機本体6から出力されているときに用いら
れるが、この方法では第2図に示すように、命令内の複
数ステップのマイクロプログラムTが実行された後に、
さらにトレース用の複数ステップのマイクロプログラム
8が各命令ごとに実行され、こうしてプログラムカウン
タ1の内容が記憶装置3に転送される。[Background of the Invention] In a conventional program counter trajectory storage device, as shown in FIG. , program counter 1
Data transfer from the storage device 3 to the storage device 3 is performed by microprogram control and the dedicated circuit 4, or by the dedicated circuit 4 alone! Among these methods, the method using microprogram control and the dedicated circuit 4 is used when the program counter output signal line 2 and the microprogram control signal line 5 are output from the computer main body 6 as standard. As shown in FIG. 2, after a multi-step microprogram T within an instruction is executed,
Further, a multi-step trace microprogram 8 is executed for each instruction, and the contents of the program counter 1 are thus transferred to the storage device 3.
したがつて、この方法によると、トレース用のマイクロ
プログラムの分だけ命令の実行時間が長くなり、特にオ
ンラインでトレースを行う場合には著しいデータの処理
遅れが生じ、又正しいデバッグも困難になるという欠点
があつた。一方専用回路のみによる場合は、命令の実行
時間には影響を与えないが、プログラムカウンタ1の出
力信号線2に加えてトレース制御用の特殊な信号線9を
特に外部に引出す必要があり、特にトレース機能のため
だけに多くの標準でない特殊な信号線を計算機本体6の
外へ引出さねばならないという欠点があつた。〔発明の
目的〕
本発明の目的は、上記した従来技術の欠点をなくし、計
算機内のプログラムカウンタのトレースを行うにあたり
、特にこの目的だけのために多くの特殊な信号線を外部
に出力することなしに、また命令実行時間にも影響を全
く与えることなくトレースができるプログラムカウンタ
軌跡記憶装置を提供するにある。Therefore, according to this method, the execution time of instructions increases by the amount of the trace microprogram, and especially when tracing is performed online, there is a significant delay in data processing, and correct debugging becomes difficult. There were flaws. On the other hand, if only a dedicated circuit is used, it does not affect the instruction execution time, but in addition to the output signal line 2 of the program counter 1, it is necessary to draw out a special signal line 9 for trace control. There was a drawback that many non-standard and special signal lines had to be drawn out of the computer main body 6 just for the trace function. [Object of the Invention] An object of the present invention is to eliminate the drawbacks of the above-mentioned prior art, and to output a large number of special signal lines to the outside especially for this purpose when tracing a program counter inside a computer. To provide a program counter locus storage device capable of tracing without having to use the program and without affecting instruction execution time at all.
上記の目的を達成するために、本発明に訃いては第3図
のプロツク図に示すように、マイクロプログラムで制御
される計算機が通常、データ共通母線10、メモリアド
レス共通母線11、マイクロプログラムアドレス共通母
線12を標準信号線として外部に出力していること、お
よびトレースの対象となるプログラムカウンタはマイク
ロプログラムアドレス共通母線上のマイクロプログラム
アドレスによつて指定され、しかも1命令実行毎に必ず
1回は指定され、その時のプログラムカウンタの内容が
メモリアドレス共通母線に出力されることに着目し、マ
イクロプログラムアドレス共通母線12上のプログラム
カウンタ指定アドレスを検出する毎に、メモリアドレス
共通母線11の内容を別に用意した記憶装置3に順次書
込んでゆくことにより、該プログラムカウンタの軌跡を
記憶するようにしたことを特徴とするものである〇〔発
明の実施例〕以下、本発明の詳細を実施例を用いて説明
する。In order to achieve the above object, according to the present invention, as shown in the block diagram of FIG. The common bus line 12 is output to the outside as a standard signal line, and the program counter to be traced is specified by the micro program address on the common bus line, and moreover, it is output once every instruction execution. is specified, and the contents of the program counter at that time are output to the memory address common bus line.Every time a program counter specified address on the micro program address common bus line 12 is detected, the contents of the memory address common bus line 11 are output. It is characterized in that the trajectory of the program counter is memorized by sequentially writing to a storage device 3 prepared separately.〇 [Embodiments of the Invention] The details of the present invention will be described below as examples. Explain using.
第4図は本発明になるプログラムカウンタ軌跡記憶装置
の1実施例を示す図であり、特にデバツグ時等に重要な
プログラムをトレースするためにプログラムの命令のア
ドレスを示すプログラムカウンタの内容をトレースする
場合の実施例である〇第4図において、プログラムカウ
ンタ軌跡記憶装置21は、例えばプラグイン一枚で構成
され、データ共通母線10、メモリアドレス共通母線1
1、マイクロプログラムアドレス共通母線12、メモリ
駆動信号線20、および主記憶装置出力禁止信号線19
のいずれも標準信号線として計算機本体と接続されてい
る。アドレス共通母線11には、記憶装置としての16
ビツト・1キロワードのシフトレジスタ3が接続され、
マイクロプログラムアドレス共通母線12には、プログ
ラムカウンタを指定するマイクロプログラムアドレスを
検出する検出器13が接続され、該検出器13の出力線
は遅延回路16を通つてシフトレジスタ3に接続されて
いる。シフトレジスタ3の出力線は、一時記憶用レジス
タ14に接続され、本レジスタ14の出力はデータ共通
母線10に出力するための駆動回路15に接続されてい
る。メモリアドレス共通母線11にはさらに、本記憶装
置の内容を読み出すときに用いるメモリアドレス検出器
17が接続され、この出力はアンドゲート18を通りデ
ータ共通母線駆動回路15に接続されている。このよう
な構成の回路の動作タイムチヤートを第5図および第6
図に示す。ただし第5図はプログラムカウンタの内容を
シフトレジスタ3に格納する場合を示し、第6図はシフ
トレジスタ3に記憶づれた内容を読み出す場合を示して
いる。一般に計算機で命令を実行する場合、その実行は
、その命令を主記憶装置から取出してくる段階(命令フ
エツチ段階)と、そのあとの命令実行段階とに分けられ
る。命令フエツチ段階では、命令の格納されている主記
憶装置のアドレスを示すプログラムカウンタの゛内容が
、メモリアドレス共通母線11に出力されるが、これを
実行するマイクロプログラムのアドレスは特定のものに
限られているOそこで、マイクロプログラムアドレス共
通母線12に接続されたアドレス検出器13でこのアド
レス22を検出し、一定時間後このマイクロプログラム
が実行される、すなわちプログラムカウンタの内容23
がメモリアドレス共通母線11に出力されるときに、本
共通母線11に接続されたシフトレジスタ3に書込みか
つシフトさせるための信号24を出力する。遅延回路1
6は、この時間関係を調節するためのもので、例えば、
1マイクロプログラム実行に要する時間を遅延させる0
本マイクロプログラム以外のマイクロプログラムが動作
しているときは、検出器13が検出しないのでシフトレ
ジスタ3は動作しない。次の命令を実行するときは、や
はり同じ動作で、シフトレジスタ3の次の行にプログラ
ムカウンタの内容が記憶?れる。このようにして、この
場合は1キロステツプ分の命令のアドレスの軌跡が格納
されることになる。そして1キロステツプを超えると、
また元に戻り、新しくプログラムカウンタの内容を格納
することになるので、絶えず、最新の1キロステツプの
軌跡が格納されていることになる〇次に、このシフトレ
ジスタ3の内容を読出すときは、あらかじめ固定アドレ
スを決めて卦き、メモリアドレス検出器17をそのよう
に設定しておく。この設定したメモリアドレスを読出す
命令を実行するとき、まずフエツチ段階で1キロステツ
プ前の命令のアドレス27が一時記憶用レジスタ14に
シフトづれ、次に実行段階で本メモリアドレスがメモリ
アドレス共通母線11に出力され、メモリアドレス検出
器17により検出づれ、メモリ駆動信号25が来るとア
ンド・ゲート18が開かれ、1駆動回路15が開き、一
時記憶レジスタ14の内容がデータ共通母線10に出力
され読出される。このとき、主記憶装置の同一メモリア
ドレスの内容が読出されないように、主記憶装置出力禁
止信号線19に信号26を出力する。この動作を1キロ
回続ければ、1キロステツプの命令の軌跡がわかる。以
上のようにして、本実施例によれば、プラグイン1枚を
計算機本体の入出力装置用標準スロツトに挿入するだけ
で、システムに全く影響を与えずにプログラムカウンタ
のトレースができる。FIG. 4 is a diagram showing one embodiment of the program counter trajectory storage device according to the present invention, which traces the contents of a program counter indicating the address of a program instruction in order to trace an important program especially during debugging. In FIG. 4, which is an example of a case, the program counter locus storage device 21 is composed of, for example, one plug-in, and includes a data common bus 10 and a memory address common bus 1.
1. Microprogram address common bus line 12, memory drive signal line 20, and main memory output inhibition signal line 19
Both are connected to the computer main body as standard signal lines. The address common bus 11 has 16
A bit/1 kiloword shift register 3 is connected.
A detector 13 for detecting a microprogram address specifying a program counter is connected to the microprogram address common bus 12, and an output line of the detector 13 is connected to the shift register 3 through a delay circuit 16. The output line of the shift register 3 is connected to a temporary storage register 14, and the output of this register 14 is connected to a drive circuit 15 for outputting to the data common bus 10. The memory address common bus 11 is further connected to a memory address detector 17 used when reading out the contents of the storage device, and its output is connected to the data common bus drive circuit 15 through an AND gate 18 . Figures 5 and 6 show the operation time charts of a circuit with such a configuration.
As shown in the figure. However, FIG. 5 shows the case where the contents of the program counter are stored in the shift register 3, and FIG. 6 shows the case where the contents stored in the shift register 3 are read out. Generally, when a computer executes an instruction, the execution is divided into a step in which the instruction is fetched from the main memory (instruction fetch step) and a subsequent instruction execution step. At the instruction fetch stage, the contents of the program counter indicating the address of the main memory where the instruction is stored are output to the memory address common bus 11, but the address of the microprogram that executes this is limited to a specific one. Therefore, the address detector 13 connected to the microprogram address common bus 12 detects this address 22, and after a certain period of time this microprogram is executed, that is, the contents of the program counter 23 are detected.
When the memory address is output to the common bus 11, a signal 24 for writing and shifting the shift register 3 connected to the common bus 11 is output. Delay circuit 1
6 is for adjusting this time relationship, for example,
1 Delays the time required for microprogram execution 0
When a microprogram other than this microprogram is operating, the shift register 3 does not operate because the detector 13 does not detect it. When executing the next instruction, the contents of the program counter are stored in the next line of shift register 3 using the same operation. It will be done. In this way, in this case, the locus of the address of the instruction for one kilostep is stored. And beyond 1 kilostep,
Since it returns to the original state and stores the new contents of the program counter, the latest 1 kilostep trajectory is always stored.Next, when reading the contents of this shift register 3, A fixed address is determined in advance and the memory address detector 17 is set accordingly. When executing the instruction to read the set memory address, first, in the fetch stage, the address 27 of the previous instruction one kilostep is shifted to the temporary storage register 14, and then in the execution stage, the main memory address is shifted to the memory address common bus 11. When the memory drive signal 25 is detected by the memory address detector 17, the AND gate 18 is opened, the 1 drive circuit 15 is opened, and the contents of the temporary storage register 14 are output to the data common bus 10 and read out. be done. At this time, a signal 26 is output to the main memory output prohibition signal line 19 so that the contents of the same memory address in the main memory are not read out. If you continue this operation for 1 kilometer, you will know the trajectory of the command in 1 kilometer steps. As described above, according to this embodiment, the program counter can be traced without affecting the system at all by simply inserting one plug-in into the standard input/output device slot of the computer main body.
トレース内容を読出すときは、データタイプライタで主
記憶装置の内容を読出すときと全く同じ方法で行なえる
。すなわち、特定1メモリアドレスの内容を続けて10
00回読出せばよい。〔発明の効果〕
以上の説明から明らかなように、本発明によれぱ、計算
機本体から標準信号線として出力されている以外に特に
外部へ線を引き出すことなく、また命令の処理時間に全
く影響することなく必要なプログラムカウンタの内容を
トレースすることが可能となる。Reading the trace contents can be done in exactly the same way as reading the contents of main memory in a data typewriter. In other words, the contents of one specific memory address are sequentially stored 10 times.
It is sufficient to read it 00 times. [Effects of the Invention] As is clear from the above description, according to the present invention, there is no need to draw out any lines other than those outputted from the computer main body as standard signal lines, and there is no effect on the processing time of instructions. This makes it possible to trace the contents of the program counter without having to do so.
第1図は従来のプログラムカウンタ軌跡記憶装置の構成
を示すプロツク図、第2図は第1図の装置の動作説明図
、第3図は本発明になるプログラムカウンタ軌跡記憶装
置の原理的構成を示す図、第4図は本発明になるプログ
ラムカウンタ軌跡記憶装置の1実施例を示す図、第5図
}よび第6図は第4図の装置の動作説明用タイムチヤー
ト軌跡記憶装置である。
3・・・・・・記憶装置、10・・・・・・データ共通
母線、11・・・・・・メモリアドレス共通母線、12
・・・・・・マイクロプログラムアドレス共通母線、1
3・・・・・・マイクロプログラムアドレス検出器、2
1・・・・・・プログラムカウンタ軌跡記憶装置。FIG. 1 is a block diagram showing the configuration of a conventional program counter trajectory storage device, FIG. 2 is an explanatory diagram of the operation of the device shown in FIG. FIG. 4 is a diagram showing an embodiment of the program counter trajectory storage device according to the present invention, and FIGS. 5 and 6 are time chart trajectory storage devices for explaining the operation of the device shown in FIG. 4. 3...Storage device, 10...Data common bus, 11...Memory address common bus, 12
...Microprogram address common bus line, 1
3...Microprogram address detector, 2
1...Program counter trajectory storage device.
Claims (1)
プログラムアドレスによつてプログラムカウンタが指定
され、プログラムカウンタの内容がメモリアドレス共通
母線に出力される計算機のプログラムカウンタ軌跡記憶
装置において、マイクロプログラムアドレス共通母線上
のプログラムカウンタ指定アドレスを検出するマイクロ
プログラムアドレス検出器と、該マイクロプログラムア
ドレス検出器がプログラムカウンタ指定アドレスを検出
する毎にメモリアドレス共通母線上の内容を順次記憶す
る記憶装置を設け、1命令実行毎のプログラムカウンタ
の内容をトレース用として記憶するようにしたことを特
徴とするプログラムカウンタ軌跡装置。1. In a program counter trajectory storage device of a computer in which a program counter is specified by a microprogram address on a common microprogram address bus and the contents of the program counter are output to a memory address common bus, the program on the microprogram address common bus A microprogram address detector for detecting a counter-specified address and a storage device for sequentially storing the contents on the memory address common bus each time the microprogram address detector detects a program counter-specified address are provided. A program counter trajectory device characterized in that the contents of a program counter are stored for tracing purposes.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP51100527A JPS5917468B2 (en) | 1976-08-25 | 1976-08-25 | Program counter trajectory storage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP51100527A JPS5917468B2 (en) | 1976-08-25 | 1976-08-25 | Program counter trajectory storage device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5326547A JPS5326547A (en) | 1978-03-11 |
| JPS5917468B2 true JPS5917468B2 (en) | 1984-04-21 |
Family
ID=14276424
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP51100527A Expired JPS5917468B2 (en) | 1976-08-25 | 1976-08-25 | Program counter trajectory storage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5917468B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2574029Y2 (en) * | 1992-11-27 | 1998-06-11 | 有限会社憲進製函 | Detection device of folded wing pieces in automatic box making machine |
| JP3542463B2 (en) | 1997-07-29 | 2004-07-14 | Necエレクトロニクス株式会社 | Integrated circuit device and operation control method thereof |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5537030B2 (en) * | 1972-08-30 | 1980-09-25 | ||
| JPS50120529A (en) * | 1974-03-08 | 1975-09-20 |
-
1976
- 1976-08-25 JP JP51100527A patent/JPS5917468B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5326547A (en) | 1978-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3673573A (en) | Computer with program tracing facility | |
| US4747045A (en) | Information processing apparatus having an instruction prefetch circuit | |
| KR880014761A (en) | Data transfer controller for direct memory access | |
| US5287483A (en) | Prefetched operand storing system for an information processor | |
| JPS5917468B2 (en) | Program counter trajectory storage device | |
| KR910001708B1 (en) | Central processing unit | |
| JPS5939783B2 (en) | logical state tracker | |
| JP2758624B2 (en) | Speed control method of micro program | |
| JPH0654505B2 (en) | Parallel processor | |
| JPS62279438A (en) | Tracking circuit | |
| JPS6242301B2 (en) | ||
| JP2536238B2 (en) | Information processing device | |
| JPS63129432A (en) | Program address tracing device | |
| JPH01166144A (en) | Debugging system for firmware program | |
| JPS62130436A (en) | Trace controller | |
| JPS6052449B2 (en) | Interrupt processing method | |
| JP3366235B2 (en) | Data read control device | |
| JPS6014335A (en) | information processing equipment | |
| JPS5936853A (en) | Operation processor | |
| JPS6158049A (en) | Error detection | |
| JPS60193046A (en) | Instruction exception detection method | |
| JPS626341A (en) | Information processor | |
| JPS58166454A (en) | data processing equipment | |
| JPH0561803A (en) | Information processor | |
| JPH07200349A (en) | Address trace system |