JPH05113902A - Microprogram controller - Google Patents
Microprogram controllerInfo
- Publication number
- JPH05113902A JPH05113902A JP3302606A JP30260691A JPH05113902A JP H05113902 A JPH05113902 A JP H05113902A JP 3302606 A JP3302606 A JP 3302606A JP 30260691 A JP30260691 A JP 30260691A JP H05113902 A JPH05113902 A JP H05113902A
- Authority
- JP
- Japan
- Prior art keywords
- microprogram
- return address
- rta
- stack
- address
- 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
- 239000000700 radioactive tracer Substances 0.000 claims abstract description 18
- 101150033666 RTA1 gene Proteins 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、マイクロプログラム制
御装置のマイクロプログラムアドレスのリターンアドレ
スのトレースに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a trace return address of a microprogram address of a microprogram controller.
【0002】[0002]
【従来の技術】従来のマイクロプログラム制御装置のマ
イクロアドレスのトレース情報は、マイクロアドレスを
全てトレースするやり方が広くとられてきた。2. Description of the Related Art For trace information of a micro address of a conventional micro program controller, a method of tracing all micro addresses has been widely adopted.
【0003】[0003]
【発明が解決しようとする課題】このような方式では、
マイクロプログラムの流れを捉えるにはトレースメモリ
の容量を大きくしなければ、マイクロプログラムのフロ
ーを追えないと云う問題点があった。特にサブルーチン
をコールし、リターンすると云う方式が一般によく使わ
れているが、マイクロプログラムの評価時マイクロプロ
グラムのミスのためマイクロプログラムが暴走してしま
うことがおきたりするが、このときリターンアドレスの
スタックファイル(RTA)のスタックポインタ及びリ
ターンアドレスのプシュー、ポップアップの流れが捉え
られないと、ミスの原因追求に時間を要するという問題
が発生していた。本発明の目的はこのような問題点を除
去するべく、RTAのアドレス及びスタックポインタの
トレース情報を提供しマイクロプログラムのバグの原因
追求を容易にするマイクロプログラム制御装置を提供す
ることにある。SUMMARY OF THE INVENTION In such a system,
To catch the flow of the microprogram, there is a problem that the flow of the microprogram cannot be followed unless the capacity of the trace memory is increased. In particular, the method of calling a subroutine and then returning is generally used, but when a microprogram is evaluated, it sometimes happens that the microprogram runs out of control due to a mistake in the microprogram. If the push pointer and pop-up flow of the file (RTA) stack pointer and return address cannot be captured, there is a problem that it takes time to find the cause of the mistake. SUMMARY OF THE INVENTION An object of the present invention is to provide a microprogram control device that eliminates such problems by providing RTA address and stack pointer trace information and facilitating the search for the cause of a microprogram bug.
【0004】[0004]
【課題を解決するための手段】本発明の第1はマイクロ
プログラムのリターンアドレスを格納するスタックファ
イル(RTA)と、該スタックファイルのスタックポイ
ンタ(STP)と、マイクロプログラムシーケンス制御
部(SEQ)と、該RTAにサブルーチンコールにおけ
るリターンアドレスを格納するのと同時にリターンアド
レスとスタックポインタを格納するトレーサメモリ(T
RC)とを備えるマイクロプログラム制御装置である。The first aspect of the present invention is to provide a stack file (RTA) for storing a return address of a microprogram, a stack pointer (STP) for the stack file, and a microprogram sequence control section (SEQ). , A tracer memory (T that stores the return address and the stack pointer at the same time as storing the return address in the subroutine call in the RTA.
RC) and a microprogram controller.
【0005】又、本発明の第2はマイクロプログラム制
御方式のマイクロプログラム制御装置において、マイク
ロプログラムのリターンアドレスを格納するスタックフ
ァイル(RTA)と、該スタックファイルのスタックポ
インタ(STP)と、マイクロプログラムシーケンス制
御部(SEQ)と、該RTAにリターンアドレスを格納
するか又はRTAよりリターンアドレスを読み出す(ポ
ップアップ)すると同時にリターンアドレスとスタック
ポインタを格納するトレーサメモリ(TRC)とを備え
るマイクロプログラム制御装置である。A second aspect of the present invention is, in a microprogram control apparatus of a microprogram control system, a stack file (RTA) for storing a return address of a microprogram, a stack pointer (STP) of the stack file, and a microprogram. A microprogram controller including a sequence control unit (SEQ) and a tracer memory (TRC) that stores a return address in the RTA or reads (pops up) the return address from the RTA and stores a return address and a stack pointer at the same time. is there.
【0006】[0006]
【実施例】次に本発明について図を参照して説明する。
図1において、マイクロプログラムのリターンアドレス
を格納するスタックファイル(RTA)1は、サブルー
チンコール時マイクロプログラムアドレス(MA)6を
RTAに格納(プシュダウン)し、リターン(ポップア
ップ)する時RTAよりリターンアドレスをポップアッ
プし、シーケンス制御部(SEQ)3に入力する。The present invention will be described below with reference to the drawings.
In FIG. 1, the stack file (RTA) 1 storing the return address of the micro program stores (push down) the micro program address (MA) 6 at the time of a subroutine call and pushes the return address from the RTA when returning (popup). Is popped up and input to the sequence control unit (SEQ) 3.
【0007】SEQ3はマイクロプログラムアドレスを
生成する手段でマイクロプロセッサ(PC)5、RTA
1、マルチプレクサ(MPX)に接続される。スタック
ポインタ(STP)2はRTAのポインタの生成手段で
ある。トレーサ(TRC)4はRTA出力とマイクロプ
ログラムアドレスとを切替えるマルチプレクサ(MP
X)出力とSTP出力を入力としRTA1のプシュダウ
ン時MPXはMAを選択し、ポップアップ時RTA出力
を選択する。トレーサ(TRC)4はプシュダウン又は
ポップアップ時MPX出力及びSTP出力を取り込みT
RCに格納する。TRC出力はマイクロプロセッサ(P
C)へ接続され、PCからTRCの内容を読み出すこと
ができる。SEQ 3 is a means for generating a microprogram address, which is a microprocessor (PC) 5, RTA.
1, connected to a multiplexer (MPX). The stack pointer (STP) 2 is an RTA pointer generation means. The tracer (TRC) 4 is a multiplexer (MP) that switches between the RTA output and the microprogram address.
X) output and STP output are input, and MA is selected for MPX when RTA1 is pushed down, and RTA output is selected for pop-up. The tracer (TRC) 4 takes in MPX output and STP output at the time of push-down or pop-up.
Store in RC. The TRC output is a microprocessor (P
C), and the contents of TRC can be read from the PC.
【0008】マイクロプログラムのサブルーチンをコー
ルする際の動作について説明する。マイクロプロセッサ
(PC)5がサブルーチンコールを実行するとマイクロ
プログラムアドレス(MA)6はプシュダウンされRT
A1に格納される。さらにSTP出力とともにTRC4
にも格納される。リターン実行時は、RTA1からポッ
プアップされたリターンアドレスがシーケンス制御部S
EQ3に入力されるとRTA出力とSTP出力がTRC
4に格納される。マイクロプロセッサ(PC)5はトレ
ーサ(TRC)4の内容を読み出しトレース情報を取り
出す事ができる。マイクロプロセッサはトレーサのトレ
ース開始及びトレースの停止の制御を行う。The operation when calling a subroutine of a microprogram will be described. When the microprocessor (PC) 5 executes a subroutine call, the micro program address (MA) 6 is pushed down and RT
It is stored in A1. Furthermore, TRC4 with STP output
Also stored in. When executing a return, the return address popped up from RTA1 is the sequence control unit S.
When input to EQ3, RTA output and STP output are TRC
Stored in 4. The microprocessor (PC) 5 can read the contents of the tracer (TRC) 4 and take out the trace information. The microprocessor controls the tracer trace start and trace stop.
【0009】SEQはマイクロプロセッサに制御されマ
イクロプログラムアドレスを生成するとともにRTAに
入力されている。The SEQ is controlled by the microprocessor to generate a microprogram address and is input to the RTA.
【0010】[0010]
【発明の効果】以上説明したように本発明は、RTAへ
リターンアドレスのプシュダウン又はポップアップされ
たマイクロプログラムアドレスをトレースメモリに格納
する事によりサブルーチンのコール/リターンの状況を
正確に把握できる事によりマイクロプログラムの評価に
おいて問題点を迅速に究明できるだけでなくスタックポ
インタのトレースをも同時にチェックできる事によりマ
イクロプログラムのサブルーチンのコール/リターンの
ミスを即時に判断できるだけでなく、マイクロプログラ
ムのフローをトレースメモリの容量を増やさずともフロ
ーを把握できるという効果を有する。As described above, according to the present invention, it is possible to accurately grasp the call / return status of the subroutine by storing the microprogram address that is pushed down or popped up in the RTA in the trace memory. Not only can problems be quickly identified in microprogram evaluation, but stack pointer traces can also be checked at the same time, so that it is possible to immediately determine a microprogram subroutine call / return error, and also trace the microprogram flow. It has an effect that the flow can be grasped without increasing the capacity of.
【図1】本発明のブロック図FIG. 1 is a block diagram of the present invention.
1 スタックファイル(RTA) 2 スタックポインタ(STP) 3 マイクロプログラムシーケンス制御部(SEQ) 4 トレーサ(TRC) 5 マイクロプロセッサ(PC) 6 マイクロプログラムアドレス(MA) 1 Stack File (RTA) 2 Stack Pointer (STP) 3 Micro Program Sequence Controller (SEQ) 4 Tracer (TRC) 5 Micro Processor (PC) 6 Micro Program Address (MA)
Claims (2)
を格納するスタックファイル(RTA)と、該スタック
ファイルのスタックポインタ(STP)と、マイクロプ
ログラムシーケンス制御部(SEQ)と、該RTAにサ
ブルーチンコールにおけるリターンアドレスを格納する
のと同時にリターンアドレスとスタックポインタを格納
するトレーサメモリ(TRC)とを備えるマイクロプロ
グラム制御装置。1. A stack file (RTA) for storing a return address of a micro program, a stack pointer (STP) of the stack file, a micro program sequence control section (SEQ), and a return address in a subroutine call to the RTA. A microprogram controller having a tracer memory (TRC) for storing a return address and a stack pointer at the same time as storing.
プログラム制御装置において、マイクロプログラムのリ
ターンアドレスを格納するスタックファイル(RTA)
と、該スタックファイルのスタックポインタ(STP)
と、マイクロプログラムシーケンス制御部(SEQ)
と、該RTAにリターンアドレスを格納するか又はRT
Aよりリターンアドレスを読み出す(ポップアップ)す
ると同時にリターンアドレスとスタックポインタを格納
するトレーサメモリ(TRC)とを備えるマイクロプロ
グラム制御装置。2. A stack file (RTA) for storing a return address of a micro program in a micro program controller of a micro program control system.
And the stack pointer (STP) of the stack file
And a micro program sequence controller (SEQ)
And store the return address in the RTA, or
A microprogram control device equipped with a tracer memory (TRC) which stores a return address and a stack pointer at the same time when the return address is read (popped up) from A.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3302606A JPH05113902A (en) | 1991-10-23 | 1991-10-23 | Microprogram controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3302606A JPH05113902A (en) | 1991-10-23 | 1991-10-23 | Microprogram controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05113902A true JPH05113902A (en) | 1993-05-07 |
Family
ID=17911011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3302606A Pending JPH05113902A (en) | 1991-10-23 | 1991-10-23 | Microprogram controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05113902A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07141222A (en) * | 1993-11-17 | 1995-06-02 | Nec Corp | Data processor tracing history of subroutine |
| JPH11203166A (en) * | 1998-01-19 | 1999-07-30 | Nec Corp | Stack pointer tracing device and its method, and recording medium |
-
1991
- 1991-10-23 JP JP3302606A patent/JPH05113902A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07141222A (en) * | 1993-11-17 | 1995-06-02 | Nec Corp | Data processor tracing history of subroutine |
| JPH11203166A (en) * | 1998-01-19 | 1999-07-30 | Nec Corp | Stack pointer tracing device and its method, and recording medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR970012203A (en) | Data processing system for executing trace functions and their methods | |
| KR930002935A (en) | Information processing device | |
| JPH05113902A (en) | Microprogram controller | |
| JPS60147849A (en) | Method for debugging microprograms | |
| JPS5953942A (en) | Microprogram control system | |
| JPH0652013A (en) | Tracing circuit | |
| KR890002758A (en) | Data processing system | |
| JPH01201741A (en) | Trace circuit | |
| JPS63170752A (en) | Trace circuit | |
| JPS5960657A (en) | Device for analyzing execution bus | |
| JPH05165672A (en) | Processor | |
| JP3235316B2 (en) | IC tester pattern control method | |
| JPS6125172B2 (en) | ||
| CN118672813A (en) | Vehicle controller program abnormality monitoring method, electronic equipment, device and storage medium | |
| JPH01287486A (en) | Test pattern program generating device | |
| JPH01177644A (en) | Debugging device | |
| JPH0335696B2 (en) | ||
| JPH05181702A (en) | Soft debugger | |
| JPS5839343A (en) | Initial starting device for plural systems | |
| JPH03282835A (en) | Transaction trace information gathering system | |
| JPH0573347A (en) | Emulation device | |
| JPH02242445A (en) | Debugging mechanism for information processor | |
| JPH04140852A (en) | Diagnostic system for information processor | |
| JPH08263324A (en) | Debug facilitation device | |
| JPS5783851A (en) | Condition code generating system |