JPS6362049A - Tracing circuit - Google Patents

Tracing circuit

Info

Publication number
JPS6362049A
JPS6362049A JP61207122A JP20712286A JPS6362049A JP S6362049 A JPS6362049 A JP S6362049A JP 61207122 A JP61207122 A JP 61207122A JP 20712286 A JP20712286 A JP 20712286A JP S6362049 A JPS6362049 A JP S6362049A
Authority
JP
Japan
Prior art keywords
trace
instruction
circuit
address
information
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
JP61207122A
Other languages
Japanese (ja)
Inventor
Toru Kawaguchi
徹 川口
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61207122A priority Critical patent/JPS6362049A/en
Publication of JPS6362049A publication Critical patent/JPS6362049A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To perform the debug with no increase of the trace capacity by storing the address of a read instruction (FPS read instruction) for a control information memory set in an execution mode of a trace-on instruction and the information read out by said read instruction. CONSTITUTION:When a trace-on instruction is stored in a microprogram instruction register MIR3, this instruction is decoded and a trace-on instruction circuit 14 is started to secure a trace enable state. When an FPS read instruction is stored in the MIR3, the reception of this instruction is stored in an instruction memory circuit 11. At the same time, the address value of an address register 2 is stored in an address memory circuit 10. A tracing circuit 13 writes the information on the circuit 10 and the information on a control information memory circuit 8 into a due position of a trace memory address control circuit 12 in the form of a single piece of information.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロプログラム制御方式の処理装置に於
けるマイクロプログラム実行アドレスや内部状態を示す
情報の軌跡をスタックして記録するトレース回路に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a trace circuit that stacks and records the trajectory of information indicating microprogram execution addresses and internal states in a microprogram control type processing device.

〔従来の技術〕[Conventional technology]

従来、この種の処理装置のトレース回路は、工2−が発
生した時やマイクロプログラムアドレスと所定のアドレ
スとの比較が一致した時を契機に、マイクロプログラム
の実行を停止するとともにトレースも停止させその事象
以前をたどって解析するものであった。
Conventionally, the trace circuit of this type of processing device stops the execution of the microprogram and also stops tracing when an error occurs or when the microprogram address matches a predetermined address. The purpose was to trace and analyze the events before the event.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のトレース回路は、%に情報の書込み/読
出しが頻繁な制御情報がトレース情報として記憶されな
いため、マイクロプログラムが制御情報格納メモリエリ
アに情報の書込み/読出しを行い、その情報で判断し、
再度次の情報を同一箇所に書込み/読出しそして判断す
る等を繰返し実行した場合、エラーストップした時の制
御情報格納メモIJ 2見ても誤判断した情報がどうい
う値だったかわからないあるいは限られたトレースメそ
リエリアでは必要な情報が格納できないという欠点があ
った。
In the conventional trace circuit described above, since control information for which information is frequently written/read is not stored as trace information, the microprogram writes/reads information in the control information storage memory area and makes decisions based on that information. ,
If you repeatedly write/read the next information to the same location and then make a decision, you may not be able to tell what value the misjudged information was even if you look at the control information storage memo IJ 2 when the error stops, or you may have limited trace information. The disadvantage was that the necessary information could not be stored in the sled area.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のトレース回路はマイクロプログラム制御方式の
処理装置に於けるマイクロプログラム実行アドレスや内
部状態を示す情報の軌跡をスタックして記録するトレー
ス回路に於いてマイクロプログラムから特定の命令によ
多制御情報格納メモリからの読出しを行いその内容を記
憶する制御情報記憶回路とその特定の命令が格納されて
いるアドレスを記憶するアドレス記憶回路とその特定の
命令が出たことを記憶する命令記憶回路とこれら既記憶
回路を有効/無効にすることが出来るトレースオン命令
回路と前記命令記憶回路によ)トレースメモリアドレス
を制御するトレースメモリアドレス制御回路と制御情報
記憶回路とアドレス記憶回路の記憶情報を一つのトレー
ス情報として記憶するトレースメモリ回路とを有してい
る。
The trace circuit of the present invention is a trace circuit that stacks and records the trajectory of information indicating the microprogram execution address and internal state in a microprogram control type processing device. A control information storage circuit that reads data from a storage memory and stores its contents; an address storage circuit that stores the address where the specific instruction is stored; and an instruction storage circuit that remembers that the specific instruction has been issued. The trace memory address control circuit that controls the trace memory address, the control information storage circuit, and the address storage circuit are unified by the trace-on command circuit that can enable/disable these stored circuits and the command storage circuit. The trace memory circuit stores trace information as one piece of trace information.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

図面は本発明の一実施例のブロック図である。The drawing is a block diagram of one embodiment of the present invention.

1はマイクロプログラム命令群′t−格納しているコン
トロールストレージ(以降C8とする)回路、2はその
マイクロプログラム命令のシーケンスを決めるアドレス
レジスタ(以降MARとする)である。3はそのMAR
で指定された位置のマイクロプログラム命令を格納する
マイクロプログラム命令レジスタ(以降MIRとする)
、4はそのMIRのオペレージ璽ンコードを判断する命
令テコード回路、5はその命令デコード回路で判別され
た制御情報格納メモリ読出し命令(以降FPSリード命
令とする)である。6はそのF P S IJ −ド命
令で格納情報を読出される制御情報格納メモリ回路、7
は前記F P S 17−ド命令と共に前記MIRから
送出された制御情報格納メモリのどの位置から情報を出
すか判別せしめるFPSアドレスレジスタ(以降FAR
とする)、8はその制御情報格納メモリから読出された
情報をトレースオン命令が実行されていれば記憶する制
御情報記憶回路、9は前記メモリから読出された情報を
マイクロプログラムで判断させるため格納する汎用レジ
スタ回路、10は前記FPSリード命令が出された時の
MARの内容をトレースオン命令が実行されていれば記
憶するアドレス記憶回路である。
1 is a control storage (hereinafter referred to as C8) circuit which stores a group of microprogram instructions 't-, and 2 is an address register (hereinafter referred to as MAR) that determines the sequence of the microprogram instructions. 3 is that MAR
Microprogram instruction register (hereinafter referred to as MIR) that stores the microprogram instruction at the location specified by
, 4 is an instruction decoding circuit for determining the operating code of the MIR, and 5 is a control information storage memory read instruction (hereinafter referred to as FPS read instruction) determined by the instruction decoding circuit. 6 is a control information storage memory circuit from which stored information is read by the FPS IJ-code instruction; 7
is an FPS address register (hereinafter referred to as FAR
), 8 is a control information storage circuit that stores the information read from the control information storage memory if the trace-on instruction is executed, and 9 is a control information storage circuit that stores the information read from the memory to be determined by the microprogram. 10 is an address storage circuit that stores the contents of MAR when the FPS read command is issued if the trace-on command is executed.

11は前記FPSリード命令が出たことをトレースオン
命令が実行されていれば記憶する命令記憶回路、12は
前記命令記憶回路の指示によ、D)レースメモリのアド
レスを制御するトレースメモリアドレス制御回路(以降
TACとする)、13は前記アドレス記憶回路の情報と
前記制御情報回路の情報を一つのトレース情報として前
記TACの書込み位置指定に合わせて書込まれるトレー
スメモリ回路である。トレースオン命令回路14はトレ
ース実行の可能状態を指定するトレースオン命令回路と
し、MAR2で指定されるアドレスのマイクロプログラ
ムコードをC81から取出しその情報1MlR3に入力
し記憶する。次にマイクロプログラムコードの内オペレ
ーションコード部ヲ命令デコード回路4で判断しその内
容に沿って実行する。
Reference numeral 11 indicates an instruction memory circuit that stores the fact that the FPS read instruction has been issued if a trace-on instruction is executed; 12 indicates a trace memory address control that controls the address of the race memory according to instructions from the instruction memory circuit; A circuit (hereinafter referred to as TAC) 13 is a trace memory circuit in which information in the address storage circuit and information in the control information circuit are written as one trace information in accordance with the writing position designation of the TAC. The trace-on instruction circuit 14 is a trace-on instruction circuit that specifies a state in which trace execution is possible, and extracts the microprogram code at the address specified by MAR2 from the C81, inputs the information to 1MlR3, and stores it. Next, the operation code portion of the microprogram code is judged by the instruction decoding circuit 4 and executed according to its contents.

トレースオン命令がMIR3に格納されると命令をデコ
ードしてトレースオン命令回路を設定しトレース可能状
態にする。FPSリード命令がMIR3に格納されると
命令をデコードしてFPSリード命令5で認識し、まず
この命令が聚た挙を命令記憶回路11に記憶させ、同時
にこの命令がC81から取出されたMAR2の内容をア
ドレス記憶回路10で記憶し同時にMIR3から出力さ
れているFAR7のアドレスで示される。制御情報格納
メモリ6の情報を読出すと同時に前記情報の格納を制御
情報記憶回路8に行い、これによりF P S IJ−
ド命令で読出された制御情報格納メモリの情報とマイク
ロプログラムのアドレスの情報とでトレース情報を用意
する。
When the trace-on command is stored in the MIR 3, the command is decoded and the trace-on command circuit is set to enable tracing. When the FPS read command is stored in the MIR3, the command is decoded and recognized by the FPS read command 5. First, the occurrence of this command is stored in the command storage circuit 11, and at the same time, this command is stored in the MAR2 taken out from the C81. The contents are stored in the address storage circuit 10 and are simultaneously indicated by the address of the FAR 7 output from the MIR 3. At the same time as the information in the control information storage memory 6 is read out, the information is stored in the control information storage circuit 8, whereby the FPS IJ-
Trace information is prepared using the information of the control information storage memory read by the code command and the address information of the microprogram.

一方、制御情報格納メそりからの情報全汎用レジスタ回
路9に格納することによりマイクロプログラムがその後
演算に使ったシ条件判断に使用したシしてマイクロプロ
グラムの流れ(アドレス)が変って処理されるのでトレ
ース情報として前記命令記憶回路11が記憶されるとT
ACl 2のアドレスを+1してトレースメモリ回路1
3への1込み位置(アドレス)を指定して前記トレース
情報を書込む。但し、トレースオフ命令がMI R3に
格納され命令をデコードするとトレースオン命令回路を
リセットしトレース動作を休止出来る。
On the other hand, by storing the information from the control information storage memory in the all-purpose register circuit 9, the flow (address) of the microprogram is changed and processed based on the information used for condition judgment in the microprogram. Therefore, when the instruction storage circuit 11 is stored as trace information, T
Add 1 address to ACl 2 to trace memory circuit 1
The trace information is written by specifying the 1 write position (address) to 3. However, when the trace-off command is stored in MI R3 and the command is decoded, the trace-on command circuit can be reset and the trace operation can be stopped.

これら一連の動作により、マイクロプログラムの軌跡に
合わせて制御情報格納メモリ内の情報をトレースするこ
とが出来る。
Through these series of operations, the information in the control information storage memory can be traced in accordance with the trajectory of the microprogram.

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

以上説明したように本発明は、トレースオン命令が実行
されている時のFPSリード命令のアドレスとその命令
で読出された情報t−1つのトレース情報として格納す
ることによ、D)レースメモリ容量の増加なしに必要な
情報音トレースしマイクロプログラムのデバッグが容易
に行える効果かめる。
As explained above, the present invention stores the address of the FPS read command when the trace-on command is executed and the information read by that command as t - 1 piece of trace information.D) Race memory capacity You can easily debug microprograms by tracing the necessary information without increasing the amount of information.

る。Ru.

Claims (1)

【特許請求の範囲】[Claims] マイクロプログナム制御方式の処理装置におけるマイク
ロプログラム実行アドレスや内部状態を示す情報の軌跡
をスタックして記録するトレース回路において、前記マ
イクロプログラムから特定の命令により制御情報格納メ
モリから読出しを行いその内容を記憶する制御情報記憶
回路と、前記特定の命令が格納されているアドレスを記
憶するアドレス記憶回路と、前記特定の命令が出たこと
を記憶する命令記憶回路と、前記記憶回路を有効/無効
にするトレースオン命令回路と、前記命令記憶回路によ
りトレースメモリアドレスを制御するトレースメモリア
ドレス制御回路と、制御情報記憶回路とアドレス記憶回
路との記憶情報を一つのトレース情報として記憶するト
レースメモリ回路とを有し、トレースオン命令が設定さ
れて前記特定命令が出された時前記特定命令が格納され
ていたアドレスとその時制御情報格納メモリから読出さ
れた情報を一つのトレース情報として連続的に格納を行
うことを特徴とするトレース回路。
In a trace circuit that stacks and records the locus of information indicating the microprogram execution address and internal state in a microprogram control system processing device, the microprogram reads out the control information storage memory in accordance with a specific command and stores its contents. a control information storage circuit for storing; an address storage circuit for storing the address where the specific instruction is stored; an instruction storage circuit for storing the fact that the specific instruction has been issued; and enabling/disabling of the storage circuit. a trace memory address control circuit that controls a trace memory address by the instruction storage circuit; and a trace memory circuit that stores information stored in the control information storage circuit and the address storage circuit as one trace information. and when the trace-on instruction is set and the specific instruction is issued, the address where the specific instruction was stored and the information read from the control information storage memory at that time are continuously stored as one trace information. A trace circuit characterized by:
JP61207122A 1986-09-02 1986-09-02 Tracing circuit Pending JPS6362049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61207122A JPS6362049A (en) 1986-09-02 1986-09-02 Tracing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61207122A JPS6362049A (en) 1986-09-02 1986-09-02 Tracing circuit

Publications (1)

Publication Number Publication Date
JPS6362049A true JPS6362049A (en) 1988-03-18

Family

ID=16534558

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61207122A Pending JPS6362049A (en) 1986-09-02 1986-09-02 Tracing circuit

Country Status (1)

Country Link
JP (1) JPS6362049A (en)

Similar Documents

Publication Publication Date Title
EP0098172B1 (en) Register control processing system
JPS6362049A (en) Tracing circuit
JPS63170752A (en) Trace circuit
JPH06342397A (en) Circuit device for mapping of logical address space
JPH0581087A (en) Processor monitoring system
JPS59119449A (en) Repetitive instruction processing device
JP2679603B2 (en) Microcomputer
JPH01201741A (en) Trace circuit
JPS626341A (en) Information processor
JPS63111546A (en) Tracing circuit
JPS6020769B2 (en) Microprogram control method
JPH0724030B2 (en) Debug device
JPS60193046A (en) Detecting system for instruction exception
JPH0264828A (en) Address trace circuit
JPS63103330A (en) Detecting system for misuse of address stack
JPH01169639A (en) Memory
JPS6310247A (en) Tracing circuit
JPH04367902A (en) Programmable controller
JPS6371740A (en) Method for tracing memory data
JPS62264338A (en) Single chip microcomputer for evaluation
JPS62182942A (en) Program debugger
JPH02103642A (en) History information storing system
JPS6168648A (en) Method for storing branch trace address
JPH04130917A (en) Electronic disk device
JPH01283635A (en) Buffer control circuit