JP2792351B2 - Program development support device - Google Patents

Program development support device

Info

Publication number
JP2792351B2
JP2792351B2 JP4183394A JP18339492A JP2792351B2 JP 2792351 B2 JP2792351 B2 JP 2792351B2 JP 4183394 A JP4183394 A JP 4183394A JP 18339492 A JP18339492 A JP 18339492A JP 2792351 B2 JP2792351 B2 JP 2792351B2
Authority
JP
Japan
Prior art keywords
address
instruction
information
output
input
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 - Fee Related
Application number
JP4183394A
Other languages
Japanese (ja)
Other versions
JPH0628217A (en
Inventor
俊則 前田
佳人 西道
明 三好
和貴 二宮
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4183394A priority Critical patent/JP2792351B2/en
Publication of JPH0628217A publication Critical patent/JPH0628217A/en
Application granted granted Critical
Publication of JP2792351B2 publication Critical patent/JP2792351B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、プログラム開発支援装
置に関するもので、特に命令アドレスをトレースするも
のに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program development support device, and more particularly to a device for tracing an instruction address.

【0002】[0002]

【従来の技術】近年、プログラムの規模が益々大きくな
ってきているとともに、ターゲットとするマイクロプロ
セッサは高性能化のため、動作周波数が高くなってきて
いる。例えばクロックダブラ方式では、外部バスサイク
ルは従来のままでマイクロプロセッサの内部処理を前記
バスサイクルの2倍の周波数で行なわせている。ICE(In
-Circuit Emulator)と呼ばれるプログラム開発支援装置
では、この高周波数で動作するマイクロプロセッサから
出力されるアドレス情報を、観察したい全バスサイクル
にわたりアドレス格納用メモリに格納し、プログラム動
作解析時には、格納された命令アドレス情報を読み出
し、その遷移が所望の変化をしているかどうかを調べる
ものである。
2. Description of the Related Art In recent years, the scale of programs has been increasing, and the operating frequency of target microprocessors has been increasing in order to achieve higher performance. For example, in the clock doubler system, the internal processing of the microprocessor is performed at twice the frequency of the bus cycle while the external bus cycle remains unchanged. ICE (In
-Circuit Emulator) stores the address information output from the microprocessor operating at this high frequency in the address storage memory over the entire bus cycle to be observed. The instruction address information is read, and it is checked whether or not the transition has a desired change.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記のよ
うな構成では、高速なマイクロプロセッサに対応するた
めアドレス格納メモリに高速なメモリ素子を多量に使用
することから、安価なマイクロプロセッサ評価装置の提
供が困難であった。
However, in the above configuration, since a large number of high-speed memory elements are used for an address storage memory in order to cope with a high-speed microprocessor, an inexpensive microprocessor evaluation device is provided. It was difficult.

【0004】従って本発明は上記問題点に鑑み、アドレ
ス格納メモリに格納すべきアドレス情報を限定すること
でメモリ容量を減少させ、アドレスの格納をマイクロプ
ロセッサの動作周波数より遅くし低速メモリを使用可能
にすることで、高速なマイクロプロセッサに対応する安
価なプログラム開発支援装置を提供するものである。
In view of the above problems, the present invention limits the address information to be stored in the address storage memory, thereby reducing the memory capacity, making the address storage slower than the operating frequency of the microprocessor and using a low-speed memory. Thus, an inexpensive program development support device corresponding to a high-speed microprocessor is provided.

【0005】[0005]

【課題を解決するための手段】上記問題点を解決するた
めに本発明のプログラム開発支援装置は、マイクロプロ
セッサの出力する命令アドレスと加算制御信号とを入力
とし、前記命令アドレスと前記加算制御信号とを格納す
るアドレス格納部と、前記アドレス格納部に格納された
情報を基に命令アドレスを再生するアドレス再生部とい
う構成を備えたものである。
In order to solve the above-mentioned problems, a program development support apparatus according to the present invention receives an instruction address and an addition control signal output from a microprocessor, and inputs the instruction address and the addition control signal. And an address reproducing unit for reproducing an instruction address based on the information stored in the address storing unit.

【0006】[0006]

【作用】本発明は上記した構成によって、命令アドレス
格納時にはマイクロプロセッサより出力された命令アド
レスと加算制御信号はアドレス格納部のアドレス格納メ
モリに格納される。これら情報の格納はマイクロプロセ
ッサの動作、例えば外部バスサイクルに同期して一定の
間隔毎に行なわれる。このように、バスサイクル毎にア
ドレスを取り込むのではなく一定の間隔毎に取り込むこ
とでアドレス格納メモリに低速なメモリ素子の使用が可
能になると共に、アドレス格納に要するメモリ容量を削
減することができる。プログラム動作解析のための命令
アドレス再生時、アドレス格納部よりアドレス情報、加
算制御情報が読み出される。マイクロプロセッサ動作に
同期した一定の間隔で格納された命令アドレスを用い、
格納されたサイクルの命令アドレスはそのまま、再生ア
ドレスとして出力される。
According to the present invention, the instruction address and the addition control signal output from the microprocessor are stored in the address storage memory of the address storage unit when the instruction address is stored. The storage of this information is performed at regular intervals in synchronization with the operation of the microprocessor, for example, an external bus cycle. In this way, by taking in addresses at fixed intervals instead of taking in addresses in every bus cycle, a low-speed memory element can be used as an address storage memory, and the memory capacity required for address storage can be reduced. . At the time of reproducing the instruction address for analyzing the program operation, the address information and the addition control information are read from the address storage unit. Using instruction addresses stored at regular intervals synchronized with microprocessor operation,
The stored instruction address of the cycle is output as a reproduction address as it is.

【0007】格納されなかったサイクルの命令アドレス
は、(1)加算制御情報がアクティブであれば前命令ア
ドレスに命令サイズの加算を行ない、(2)アクティブ
でなければ次命令アドレスより命令サイズの減算を行な
うことで、再生することができる。
The instruction address of the cycle not stored is: (1) If the addition control information is active, add the instruction size to the previous instruction address; if not, (2) If the addition control information is not active, subtract the instruction size from the next instruction address By performing the above, reproduction can be performed.

【0008】[0008]

【実施例】 (実施例1)以下本発明の一実施例のプログラム開発支
援装置について、図面を参照しながら説明する。以下の
説明で用いる図面中の同一の数字および記号は、全図面
を通じて同じ要素を示す。また、説明に用いるターゲッ
トプロセッサは高速な処理が可能なRISC(Reduced Instr
uction Set Computer)型のものとし、具体的には、The
SPARC Architecture Manual Version 8 (1990 Dec 11)
に記載のSun Micro Systems社のSPARCアーキテクチャを
用いて説明する。
(Embodiment 1) A program development support apparatus according to one embodiment of the present invention will be described below with reference to the drawings. The same numbers and symbols in the drawings used in the following description indicate the same elements throughout the drawings. The target processor used in the explanation is a RISC (Reduced Instr.
uction Set Computer) type, specifically, The
SPARC Architecture Manual Version 8 (1990 Dec 11)
The description is made using the SPARC architecture of Sun Micro Systems, Inc.

【0009】図1は本発明の第1の実施例を示すプログ
ラム開発支援装置の構成図である。同図において、1は
マイクロプロセッサであり、命令アドレス100と加算
制御信号102とアドレス無効信号103を出力する。
2はプログラム開発支援装置であって、アドレス格納部
3とアドレス再生部4と制御部5とから構成されてい
る。マイクロプロセッサ1の出力した前記3つの信号
は、アドレス格納部3の第1の入力ラッチ34に入力さ
れる。この第1の入力ラッチ34は、マイクロプロセッ
サ動作に同期した一定の間隔で前記3つの信号を格納す
るが、ここではマイクロプロセッサ1のバスサイクルの
2倍の周期で格納することとする。この第1の入力ラッ
チ34より出力されたアドレス情報305、加算制御情
報306、アドレス無効情報307はアドレス格納メモ
リ33に格納される。
FIG. 1 is a configuration diagram of a program development support apparatus according to a first embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a microprocessor, which outputs an instruction address 100, an addition control signal 102, and an address invalid signal 103.
Reference numeral 2 denotes a program development support device, which comprises an address storage unit 3, an address reproduction unit 4, and a control unit 5. The three signals output from the microprocessor 1 are input to a first input latch 34 of the address storage unit 3. The first input latch 34 stores the three signals at fixed intervals synchronized with the operation of the microprocessor. In this case, the first input latch 34 stores the three signals at a cycle twice as long as the bus cycle of the microprocessor 1. The address information 305, the addition control information 306, and the address invalid information 307 output from the first input latch 34 are stored in the address storage memory 33.

【0010】アドレス再生部4は、アドレス格納メモリ
33の出力の1つであるアドレス情報300を入力とす
るフリップフロップ43と、フリップフロップ43の出
力403かアドレス情報300のいずれかを第1の入力
404とし命令サイズ(命令1ワードは4[byte]であ
る。)の加減算を行なうため4または-4を第2の入力
405とする加算器40と、加算器40の出力402か
フリップフロップ43の出力403かのいずれかを選択
するセレクタ44とで構成される。セレクタ44の出力
407はスイッチ45に入力されその出力は再生アドレ
ス400としてプログラム開発支援装置2から出力され
る。加算器40の第1の入力404および第2の入力4
05は制御部5の出力する選択信号505、506によ
ってそれぞれ選択される。セレクタ44は、制御部5の
出力するアドレス選択信号507によって選択され、ス
イッチ45は制御部5の出力する出力制御信号508に
より制御される。これら制御信号は、制御部5に入力さ
れた加算制御情報303、アドレス無効情報304によ
って生成される。
The address reproducing section 4 receives a flip-flop 43 which receives address information 300 which is one of the outputs of the address storage memory 33, and outputs either the output 403 of the flip-flop 43 or the address information 300 to a first input terminal. An adder 40 having a second input 405 of 4 or -4 for performing addition and subtraction of an instruction size (an instruction 1 word is 4 [bytes]), and an output 402 of the adder 40 or a flip-flop 43 And a selector 44 for selecting one of the outputs 403. The output 407 of the selector 44 is input to the switch 45, and the output is output from the program development support device 2 as a reproduction address 400. First input 404 and second input 4 of adder 40
05 is selected by the selection signals 505 and 506 output from the control unit 5, respectively. The selector 44 is selected by an address selection signal 507 output from the control unit 5, and the switch 45 is controlled by an output control signal 508 output from the control unit 5. These control signals are generated based on the addition control information 303 and the address invalid information 304 input to the control unit 5.

【0011】次に図2は、3種類の命令列における命令
アドレス100と加算制御信号102とアドレス無効信
号103との変化を示す図である。ここで、プログラム
がアドレス順に実行されない制御遷移命令について述べ
る。SPARCアーキテクチャにおいて、プログラム制御の
遷移を起こす命令を制御遷移命令(CTI:Control Transf
er Instruction)と呼び、その中でも制御遷移命令実行
の直後にプログラム制御の遷移が起こるのではなく、制
御遷移命令の直後に続く命令(遅延命令と呼ぶ)の実行
後にプログラム制御の遷移が起こるものを遅延制御遷移
命令(DCTI:Delayed Control Transfer Instruction)
と呼ぶ。この遅延制御遷移命令が2回連続する場合を特
に、遅延制御遷移対(Delayed Control Transfer Coup
les)として定義している。(表1)に、この遅延制御
遷移対を説明する命令列を示す。アドレス12番地と1
6番地にどのような制御遷移命令が置かれるかによって
命令アドレスの遷移が変わる。
FIG. 2 is a diagram showing changes in the instruction address 100, the addition control signal 102, and the address invalid signal 103 in three types of instruction strings. Here, a control transition instruction in which a program is not executed in address order will be described. In the SPARC architecture, an instruction causing a program control transition is called a control transition instruction (CTI: Control Transf
er Instruction), in which the program control transition does not occur immediately after the execution of the control transition instruction but occurs after the execution of the instruction immediately following the control transition instruction (called the delay instruction). Delayed control transfer instruction (DCTI)
Call. In particular, the case where the delay control transition instruction is performed twice consecutively is a delay control transition pair (Delayed Control Transfer Coupling).
les). Table 1 shows an instruction sequence for explaining the delay control transition pair. Address 12 and 1
The transition of the instruction address changes depending on what kind of control transition instruction is placed at address 6.

【0012】[0012]

【表1】 [Table 1]

【0013】SPARCアーキテクチャでは、プログラム制
御の遷移は3種類に分類される。以下図2を用いてこの
3種類のプログラム制御の遷移について説明する。この
説明の中で用いられる記号は、以下の通りである。
In the SPARC architecture, program control transitions are classified into three types. The transition of these three types of program control will be described below with reference to FIG. The symbols used in this description are as follows.

【0014】B*ccは、Bicc,Bfcc,またはBcccを示し、そ
れぞれ整数ユニット、浮動小数点ユニット、コプロセッ
サユニットの条件分岐命令(以下で説明するB*Aも含
む)である。また、B*cc untakenは、これら条件分岐命
令において分岐条件を満足せずプログラム制御が遷移し
ないことを示す。
B * cc indicates Bicc, Bfcc, or Bccc, and is a conditional branch instruction (including B * A described below) for an integer unit, a floating point unit, and a coprocessor unit, respectively. B * cc untaken indicates that the branch condition is not satisfied in these conditional branch instructions and the program control does not shift.

【0015】B*Aは、BA,FBAまたはCBAを示し、コンディ
ションコードの内容にかかわらず、常に分岐先にプログ
ラムの制御が遷移する遅延制御遷移命令である。また、
aはアナルビットであってB*A(a=0)の遅延命令は常に実
行され、B*A(a=1)の遅延命令は実行されない。ただ、マ
イクロプロセッサ1への命令の読み込みは行われるため
アナルビットによる命令アドレスの遷移には差異はな
い。
B * A indicates BA, FBA or CBA, and is a delay control transition instruction in which program control always transitions to the branch destination regardless of the contents of the condition code. Also,
a is an anal bit, and the delay instruction of B * A (a = 0) is always executed, and the delay instruction of B * A (a = 1) is not executed. However, since the instruction is read into the microprocessor 1, there is no difference in the transition of the instruction address by the anal bit.

【0016】DCTI unconditionalは、CALL,JMPL,RETTま
たはB*A(a=0)を示し、遅延命令を実行した後無条件にプ
ログラム制御が遷移する遅延制御遷移命令である。
DCTI unconditional indicates a CALL, JMPL, RETT or B * A (a = 0), and is a delay control transition instruction to which program control transits unconditionally after executing the delay instruction.

【0017】DCTI Takenは、CALL,JMPL,RETT,B*cc take
nまたはB*A(a=0)を示し、遅延命令を実行した後プログ
ラムの制御が遷移する遅延制御遷移命令である。
DCTI Taken is CALL, JMPL, RETT, B * cc take
n or B * A (a = 0), which is a delay control transition instruction to which the control of the program transits after executing the delay instruction.

【0018】図2(a)に示す第1の命令列では、命令
の読み込みは、アドレス順に行なわれ、アドレス無効信
号103のみがシステムリセット直後の第1サイクルで
のみアクティブとなる。これは、アドレス0番地から2
4番地までの命令がいずれも制御遷移命令でないか、単
独の制御遷移命令が実行されても分岐条件の不成立のよ
うにプログラム制御が遷移しなかったことを示す。
In the first instruction sequence shown in FIG. 2A, instructions are read in the order of addresses, and only the address invalid signal 103 becomes active only in the first cycle immediately after the system reset. This is from address 0 to 2
This indicates that none of the instructions up to address 4 are control transition instructions, or that program control has not transitioned even if a single control transition instruction has been executed, such as the branch condition not being satisfied.

【0019】図2(b)に示す第2の命令列では、第1
の命令列と同様アドレス無効信号はシステムリセット直
後の第1サイクルでアクティブとなる。プログラムの制
御は、第6サイクルで40番地に遷移し、このサイクル
で加算制御信号102がアクティブとなる。これは、ア
ドレス12番地の命令がDCTI Takenで、アドレス16番
地の命令が制御遷移命令でないか、あるいは、(表1)
の命令列のようにアドレス12番地と16番地の命令が
共に遅延制御遷移命令であって、アドレス12番地の命
令がB*A(a=1)で、アドレス16番地の命令がいずれかの
制御遷移命令であるか、または、アドレス12番地の命
令がDCTI unconditionalで、アドレス16番地の命令が
B*cc untakenとなっている場合にこのようなプログラム
制御の遷移をする。
In the second instruction sequence shown in FIG.
The address invalid signal becomes active in the first cycle immediately after the system reset, as in the case of the instruction sequence. The control of the program transits to address 40 in the sixth cycle, and the addition control signal 102 becomes active in this cycle. This is because the instruction at address 12 is DCTI Taken and the instruction at address 16 is not a control transition instruction, or (Table 1)
The instruction at address 12 and address 16 are both delay control transition instructions as shown in the instruction sequence, the instruction at address 12 is B * A (a = 1), and the instruction at address 16 is either Either a transition instruction or the instruction at address 12 is DCTI unconditional and the instruction at address 16 is
When B * cc untaken, such program control transition is performed.

【0020】図2(c)に示す第3の命令列では、40
番地に続き第7サイクルで60番地にプログラムの制御
が遷移している。加算制御信号102はプログラム制御
が40番地へ遷移したサイクルでアクティブとなり、ア
ドレス無効信号103は、システムリセット直後と60
番地にプログラム制御が遷移したサイクルとの2回アク
ティブとなる。これは、(表1)の命令列のようにアド
レス12番地と16番地の命令が共に遅延制御遷移命令
であって、アドレス12番地の命令がDCTI uncondition
alで、アドレス16番地の命令がDCTI TakenまたはB*A
(a=1)の場合にこのようなプログラム制御の遷移をす
る。
In the third instruction sequence shown in FIG.
After the address, the control of the program is shifted to the address 60 in the seventh cycle. The addition control signal 102 becomes active in the cycle in which the program control transitions to address 40, and the address invalidation signal 103 becomes active immediately after the system reset.
It becomes active twice in the cycle in which the program control is shifted to the address. This is because the instructions at addresses 12 and 16 are both delay control transition instructions as shown in the instruction sequence in Table 1, and the instruction at address 12 is a DCTI uncondition instruction.
al, the instruction at address 16 is DCTI Taken or B * A
In the case of (a = 1), such program control transition is performed.

【0021】図3は第3の命令列における第1の入力ラ
ッチ34の出力305と306と307とがアドレス格
納メモリ33に格納される様子を説明した図である。
FIG. 3 is a diagram for explaining how the outputs 305, 306 and 307 of the first input latch 34 in the third instruction sequence are stored in the address storage memory 33.

【0022】図4は、アドレス格納メモリ33に格納さ
れた情報を基に再生アドレス400の生成を説明した図
である。
FIG. 4 is a view for explaining the generation of the reproduction address 400 based on the information stored in the address storage memory 33.

【0023】ここでは、最も命令のプログラム制御の遷
移が複雑な第3の命令列の場合について図1と図2と図
3と図4とを用いて説明する。
Here, the case of the third instruction sequence in which the transition of the program control of the instruction is the most complicated will be described with reference to FIGS. 1, 2, 3 and 4.

【0024】命令アドレス格納時には、マイクロプロセ
ッサ1より出力された命令アドレス100と加算制御信
号102とアドレス無効信号103は第1の入力ラッチ
34に格納される。格納は、マイクロプロセッサ1の外
部バスサイクルの2倍の周期で行なわれるため、同一の
命令列が実行されていても第1の入力ラッチ34に格納
され出力される情報には図3(b)、図3(c)に示すよ
うに2つの場合がある。この入力ラッチ34より出力さ
れたアドレス情報305、加算制御情報306、アドレ
ス無効情報307は図3(d)のようにアドレス格納メ
モリ33に格納される。このように、バスサイクル毎に
アドレスを取り込むのではなくバスサイクルの2倍の周
期で取り込むことでアドレス格納メモリ33に低速なメ
モリ素子の使用が可能になると共に、格納に要するメモ
リ容量をほぼ半減させることができる。
When the instruction address is stored, the instruction address 100, the addition control signal 102, and the address invalid signal 103 output from the microprocessor 1 are stored in the first input latch 34. Since the storage is performed in a cycle twice as long as the external bus cycle of the microprocessor 1, even if the same instruction sequence is executed, the information stored and output in the first input latch 34 includes the information shown in FIG. , There are two cases, as shown in FIG. The address information 305, the addition control information 306, and the address invalid information 307 output from the input latch 34 are stored in the address storage memory 33 as shown in FIG. In this way, by taking in the address twice in the bus cycle instead of taking in the address every bus cycle, a low-speed memory element can be used for the address storage memory 33 and the memory capacity required for storage is reduced by almost half. Can be done.

【0025】プログラム解析のためのアドレス再生時、
図4のようにアドレス格納部3よりアドレス情報30
0、加算制御情報303、アドレス無効情報304が読
み出される。このアドレス情報300は、フリップフロ
ップ43に入力され、1サイクル後にフリップフロップ
出力403として出力される。
At the time of address reproduction for program analysis,
As shown in FIG. 4, the address information 30 is stored in the address storage unit 3.
0, addition control information 303, and address invalid information 304 are read. The address information 300 is input to the flip-flop 43 and output as a flip-flop output 403 one cycle later.

【0026】以下、各サイクルでの再生アドレス400
の生成方法について説明する。第1サイクルでは加算器
40の第1の入力404としてアドレス情報300を選
択し、第2の入力405として-4を選択する。セレクタ
44は、加算器40の出力402を選択し、セレクタ4
4の出力407はスイッチ45に入力される。ただし、
図4(a)ではアドレス無効情報304がアクティブと
なっている。このため、出力制御信号508もアクティ
ブとなり再生アドレス400は出力されない。図4
(b)では、セレクタ44の出力407がスイッチ45
よりそのまま出力され再生アドレス400となる。
Hereinafter, the reproduction address 400 in each cycle will be described.
The method of generating the will be described. In the first cycle, the address information 300 is selected as the first input 404 of the adder 40, and -4 is selected as the second input 405. The selector 44 selects the output 402 of the adder 40, and
4 is input to the switch 45. However,
In FIG. 4A, the address invalid information 304 is active. Therefore, the output control signal 508 is also activated and the reproduction address 400 is not output. FIG.
In (b), the output 407 of the selector 44 is the switch 45
It is output as it is and becomes the reproduction address 400.

【0027】第2サイクルでは、セレクタ44はこのフ
リップフロップ43の出力403を選択して出力し、ス
イッチ45より再生アドレス400として出力する。
In the second cycle, the selector 44 selects and outputs the output 403 of the flip-flop 43, and outputs it as the reproduction address 400 from the switch 45.

【0028】第3サイクルでも第1サイクル同様、加算
器40の第1の入力404としてアドレス情報300を
選択し、第2の入力405として-4を選択する。セレク
タ44は、加算器40の出力402を選択し出力し、ス
イッチ45より再生アドレス400として出力する。
In the third cycle, as in the first cycle, the address information 300 is selected as the first input 404 of the adder 40, and -4 is selected as the second input 405. The selector 44 selects and outputs the output 402 of the adder 40, and outputs it as the reproduction address 400 from the switch 45.

【0029】第4サイクルでも第2サイクル同様、セレ
クタ44はこのフリップフロップ43の出力403を選
択し、スイッチ45より再生アドレス400として出力
する。
In the fourth cycle, as in the second cycle, the selector 44 selects the output 403 of the flip-flop 43 and outputs it as the reproduction address 400 from the switch 45.

【0030】第5サイクルにおいて、図4(a)では、
第1、第3サイクル同様の振舞いをする。図4(b)で
は、加算制御情報303がアクティブとなり加算器4の
第1の入力404としてフリップフロップ43の出力4
03を選択し第2の入力405として+4を選択する。セ
レクタ44は、加算器40の出力402を選択し、セレ
クタ44の出力407はスイッチ45に入力される。セ
レクタ44の出力407がスイッチ45よりそのまま出
力され再生アドレス400となる。
In the fifth cycle, in FIG.
The behavior is the same as the first and third cycles. In FIG. 4B, the addition control information 303 becomes active and the output 4 of the flip-flop 43 becomes the first input 404 of the adder 4.
03 is selected, and +4 is selected as the second input 405. The selector 44 selects the output 402 of the adder 40, and the output 407 of the selector 44 is input to the switch 45. The output 407 of the selector 44 is directly output from the switch 45 and becomes the reproduction address 400.

【0031】第6のサイクルでは、第2、第4サイクル
と同様の振舞いをする。第7サイクルにおいて、図4
(a)ではアドレス無効情報304がアクティブとなる
ことで、出力制御信号508がアクティブとなる。これ
により、再生アドレスは出力されず再生アドレスが無効
であることを外部に通知できる。図4(b)では、第
1、第3サイクルと同様の振舞いをする。
In the sixth cycle, the same behavior as in the second and fourth cycles is performed. In the seventh cycle, FIG.
In (a), the output control signal 508 becomes active because the address invalid information 304 becomes active. As a result, the reproduction address is not output, and it can be notified to the outside that the reproduction address is invalid. In FIG. 4B, the behavior is the same as in the first and third cycles.

【0032】第8サイクルでは、第2、第4、第6サイ
クルと同様の振舞いをする。このように、バスサイクル
の2倍の周期で命令アドレスを格納するため格納された
サイクルの命令アドレスはそのまま、格納されなかった
サイクルの命令アドレスは、加算制御情報303がアク
ティブであれば前命令アドレスに命令サイズの加算を行
ない、アクティブでなければ次命令アドレスより命令サ
イズの減算を行なうことで再生することができる。ただ
し、第3の命令列のようにプログラム制御の遷移が2回
連続で発生する場合には、最初のプログラム制御の遷移
アドレスの再生は図4で示したように2分の1の確率で
再生できない。この場合においても、プログラム制御の
遷移が発生していることは分かるのでプログラムのデバ
ッグには何ら支障はきたさない。また、プログラム制御
の遷移が2回連続する第3の命令列が存在しないアーキ
テクチャにおいてはアドレス無効信号103は不要であ
る。
In the eighth cycle, the same behavior as in the second, fourth and sixth cycles is performed. As described above, the instruction address of the stored cycle is stored as it is in order to store the instruction address in a cycle twice as long as the bus cycle. If the instruction size is not active, the instruction size is subtracted from the next instruction address to reproduce the instruction. However, when the transition of the program control occurs twice consecutively as in the third instruction sequence, the reproduction of the transition address of the first program control is reproduced with a half probability as shown in FIG. Can not. Even in this case, since it is known that the transition of the program control has occurred, there is no problem in debugging the program. Further, in an architecture in which there is no third instruction sequence in which the transition of the program control is performed twice consecutively, the address invalid signal 103 is unnecessary.

【0033】以上の説明は、マイクロプロセッサ1でパ
イプライン動作が乱れることなく実行されている場合に
ついて述べている。ここでは、図5を用いてパイプライ
ン動作が乱れ、命令の実行が停止した場合について説明
する。
The above description has been made on the case where the pipeline operation is executed by the microprocessor 1 without being disturbed. Here, a case where the pipeline operation is disturbed and the execution of the instruction is stopped will be described with reference to FIG.

【0034】図5は、第1の実施例における命令アドレ
スと加算制御信号とアドレス無効信号の格納を説明する
プログラム開発支援装置の構成図である。図1と異なる
のは、第1の入力ラッチ34とアドレス格納メモリ33
との格納の制御を、マイクロプロセッサ1から出力され
るアドレス格納制御信号104により行わせていること
である。
FIG. 5 is a block diagram of a program development support device for explaining the storage of an instruction address, an addition control signal, and an address invalid signal in the first embodiment. 1 is different from the first input latch 34 and the address storage memory 33 in FIG.
Is controlled by the address storage control signal 104 output from the microprocessor 1.

【0035】命令の実行が停止すると、外部に出力され
る命令アドレス100は変化せず、命令の実行が再開さ
れるまで同一の命令アドレス100が出力される。アド
レス格納信号104は命令の実行ステップ数に応じて出
力されるが、アドレス情報の格納がバスサイクルの2倍
の周期で行われているため、実行ステップ数2に対して
1回アクティブとなる。このアドレス格納制御信号10
4により、第1の入力ラッチ34とアドレス格納メモリ
33の格納を制御する。
When the execution of the instruction is stopped, the instruction address 100 output to the outside does not change, and the same instruction address 100 is output until the execution of the instruction is restarted. The address storage signal 104 is output according to the number of execution steps of the instruction. However, since the storage of the address information is performed twice as long as the bus cycle, the address storage signal 104 becomes active once for two execution steps. This address storage control signal 10
4 controls the storage of the first input latch 34 and the address storage memory 33.

【0036】これにより、命令実行が停止している際
に、アドレス格納メモリ33への変化しない命令アドレ
スの格納がなくなることから、アドレス格納に要するメ
モリ容量の削減をより効果的に行うことが可能となる。
As a result, when instruction execution is stopped, there is no need to store an unchanged instruction address in the address storage memory 33, so that the memory capacity required for address storage can be reduced more effectively. Becomes

【0037】以上のように、マイクロプロセッサの出力
する命令アドレス100と加算制御信号102とアドレ
ス無効信号103とを入力とし、前記命令アドレスと前
記加算制御信号と前記アドレス無効信号を格納するアド
レス格納部3と、前記アドレス格納部に格納された情報
を基に命令アドレスを再生するアドレス再生部4とを設
けることにより、バスサイクルの2倍の周期でアドレス
情報を取り込むため、アドレス格納メモリに高速なメモ
リ素子を必要とせず、メモリ容量も削減することができ
る。
As described above, the address storage unit which receives the instruction address 100, the addition control signal 102, and the address invalid signal 103 output from the microprocessor and stores the instruction address, the addition control signal, and the address invalid signal. 3 and an address reproducing unit 4 for reproducing an instruction address based on the information stored in the address storing unit, the address information is fetched at twice the cycle of the bus cycle. No memory element is required, and the memory capacity can be reduced.

【0038】(実施例2)以下本発明の第2の実施例に
ついて図面を参照しながら説明する。
(Embodiment 2) Hereinafter, a second embodiment of the present invention will be described with reference to the drawings.

【0039】図6は本発明の第2の実施例を示すプログ
ラム開発支援装置の構成図である。同図において、1は
マイクロプロセッサであり、命令アドレス100と加算
制御信号102とアドレス無効信号103を出力する。
2はプログラム開発支援装置であって、アドレス格納部
3とアドレス再生部4と制御部5とから構成されてい
る。マイクロプロセッサ1の出力した前記3つの信号
は、アドレス格納部3の第1の入力ラッチ34に入力さ
れる。また、命令アドレス100は第2の入力ラッチ3
6にも入力される。第1の入力ラッチ34は、マイクロ
プロセッサ1のバスサイクルの2倍の周期で前記3つの
信号を格納する。また同様に第2の入力ラッチ36もバ
スサイクルの2倍の周期で命令アドレス100を格納す
る。第1の入力ラッチ34より出力されたアドレス情報
305、加算制御情報306、アドレス無効情報307
はアドレス格納メモリ33に格納される。第2の入力ラ
ッチ36より出力されたアドレス情報308は、ターゲ
ットアドレス格納メモリ35に入力されアドレス無効信
号103により格納される。ただし、システムリセット
直後に実行される第1サイクル目の格納は行なわず第2
サイクル以降のターゲットアドレスのみ格納される。
FIG. 6 is a block diagram of a program development support apparatus according to a second embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a microprocessor, which outputs an instruction address 100, an addition control signal 102, and an address invalid signal 103.
Reference numeral 2 denotes a program development support device, which comprises an address storage unit 3, an address reproduction unit 4, and a control unit 5. The three signals output from the microprocessor 1 are input to a first input latch 34 of the address storage unit 3. The instruction address 100 is the second input latch 3
6 is also input. The first input latch 34 stores the three signals in a cycle twice as long as the bus cycle of the microprocessor 1. Similarly, the second input latch 36 stores the instruction address 100 at twice the cycle of the bus cycle. Address information 305, addition control information 306, and address invalid information 307 output from the first input latch 34
Are stored in the address storage memory 33. The address information 308 output from the second input latch 36 is input to the target address storage memory 35 and stored by the address invalid signal 103. However, the first cycle executed immediately after the system reset is not stored and the second cycle is not executed.
Only the target address after the cycle is stored.

【0040】アドレス再生部4は、アドレス格納メモリ
33の出力の1つであるアドレス情報300を入力とす
るフリップフロップ43と、フリップフロップ43の出
力403かアドレス情報300のいずれかを第1の入力
404とし命令サイズの加減算を行なうため4または-
4を第2の入力405とする加算器40と、加算器40
の出力402かフリップフロップ43の出力403かタ
ーゲットアドレス格納メモリ35の出力309かのいず
れかを選択するセレクタ44と、セレクタ44の出力を
制御するセレクタ45で構成される。
The address reproducing unit 4 receives the address information 300 which is one of the outputs of the address storage memory 33 as an input, and outputs either the output 403 of the flip-flop 43 or the address information 300 to the first input. 4 or-to make 404 the instruction size
4 as a second input 405;
The selector 44 selects either the output 402 of the flip-flop 43, the output 403 of the flip-flop 43, or the output 309 of the target address storage memory 35, and the selector 45 that controls the output of the selector 44.

【0041】セレクタ44の出力は再生アドレス400
としてプログラム開発支援装置2から出力される。加算
器40の第1の入力404および第2の入力405は制
御部5の出力する選択信号505、506によってそれ
ぞれ選択される。セレクタ44は、制御部5の出力する
アドレス選択信号507によって選択される。セレクタ
45は、制御部5の出力する出力制御信号508によっ
て制御される。これら制御信号は、制御部5に入力され
た加算制御情報303、アドレス無効情報304によっ
て生成される。図1と異なるのは、第2の入力ラッチ3
6とターゲットアドレス格納メモリ35を設けたことで
ある。
The output of the selector 44 is a reproduction address 400
Is output from the program development support device 2. The first input 404 and the second input 405 of the adder 40 are selected by selection signals 505 and 506 output from the control unit 5, respectively. The selector 44 is selected by an address selection signal 507 output from the control unit 5. The selector 45 is controlled by an output control signal 508 output from the control unit 5. These control signals are generated based on the addition control information 303 and the address invalid information 304 input to the control unit 5. The difference from FIG. 1 is that the second input latch 3
6 and a target address storage memory 35 are provided.

【0042】図7は、第3の命令列を説明する図4
(a)の場合に相当するもので再生アドレスの生成につ
いて説明している。ここでは、第1の実施例で命令アド
レスが再生できなかった図4(a)の第7サイクルの場
合について図6と図7とを用いてアドレス再生の方法に
ついて説明する。
FIG. 7 is a diagram for explaining the third instruction sequence in FIG.
This corresponds to the case (a) and describes generation of a reproduction address. Here, the method of address reproduction in the case of the seventh cycle in FIG. 4A in which the instruction address cannot be reproduced in the first embodiment will be described with reference to FIGS.

【0043】命令アドレス格納時には、マイクロプロセ
ッサ1より出力された命令アドレス100と加算制御信
号102とアドレス無効信号103は第1の入力ラッチ
34に格納される。格納は、マイクロプロセッサ1のバ
スサイクルの2倍の周期で行なわれる。第2の入力ラッ
チ36も同様にバスサイクルの2倍の周期で行なわれる
が、格納の周期は図6に示すように入力ラッチ34とは
1サイクルずれている。入力ラッチ34より出力された
アドレス情報305、加算制御情報306、アドレス無
効情報307はアドレス格納メモリ33に格納される。
また、入力ラッチ36より出力されたアドレス情報30
8はアドレス無効信号103により格納される。
When storing the instruction address, the instruction address 100, the addition control signal 102, and the address invalid signal 103 output from the microprocessor 1 are stored in the first input latch 34. The storage is performed in a cycle twice as long as the bus cycle of the microprocessor 1. The second input latch 36 is also performed at twice the cycle of the bus cycle, but the storage cycle is shifted by one cycle from the input latch 34 as shown in FIG. The address information 305, the addition control information 306, and the address invalid information 307 output from the input latch 34 are stored in the address storage memory 33.
Also, the address information 30 output from the input latch 36 is output.
8 is stored by the address invalid signal 103.

【0044】プログラム解析のためのアドレス再生時、
図7(b)のようにアドレス格納部3よりアドレス情報3
00、加算制御情報303、アドレス無効情報304が
読み出される。このアドレス情報300は、フリップフ
ロップ43に入力され、1サイクル後にフリップフロッ
プ出力403として出力される。
At the time of address reproduction for program analysis,
As shown in FIG. 7 (b), the address information 3
00, addition control information 303, and address invalid information 304 are read. The address information 300 is input to the flip-flop 43 and output as a flip-flop output 403 one cycle later.

【0045】以下、プログラム制御の遷移が2回連続す
る場合の最初のサイクルである第7サイクルの、再生ア
ドレス400の生成方法について説明する。第7サイク
ル以外は、第1の実施例と同様の方法で命令アドレスが
再生される。
Hereinafter, a method of generating the reproduction address 400 in the seventh cycle, which is the first cycle when the transition of the program control is performed twice, will be described. Except for the seventh cycle, the instruction address is reproduced in the same manner as in the first embodiment.

【0046】第7サイクルにおいて、アドレス無効情報
304がアクティブとなることで、セレクタ44は加算
器出力402を選択せずターゲットアドレス情報309
を選択するようアドレス選択信号507により制御され
る。このことにより、ターゲットアドレス40番地が再
生アドレス400として出力される。このように、プロ
グラム制御の遷移が2回連続して発生する場合において
も常に正しいターゲットアドレスが再生できる。
In the seventh cycle, when the address invalid information 304 becomes active, the selector 44 does not select the adder output 402 and the target address information 309 is not selected.
Is controlled by an address selection signal 507. As a result, the target address 40 is output as the reproduction address 400. As described above, even when the transition of the program control occurs twice consecutively, the correct target address can always be reproduced.

【0047】以上のように、アドレス格納部は、前記命
令アドレス100と前記加算制御信号102とアドレス
無効信号103とを入力としこれら情報を一定の間隔で
格納する第1の入力ラッチ34と、前記第1の入力ラッ
チの出力を格納しアドレス情報と加算制御情報とアドレ
ス無効情報を出力するアドレス情報格納メモリ33と、
前記命令アドレスを前記第1の入力ラッチと同一の間隔
で格納し出力する第2の入力ラッチ36と、前記第2の
入力ラッチの出力を前記アドレス無効信号により格納す
るターゲットアドレス格納メモリ35を備えたことによ
り、プロセッサのバスサイクルの2倍の周期でアドレス
を格納するのみで、全ての場合において命令アドレスの
再生が可能である。
As described above, the address storage unit receives the instruction address 100, the addition control signal 102, and the address invalid signal 103, and stores the information at a constant interval. An address information storage memory 33 that stores an output of the first input latch and outputs address information, addition control information, and address invalid information;
A second input latch for storing and outputting the instruction address at the same interval as the first input latch; and a target address storage memory for storing the output of the second input latch by the address invalid signal. Thus, the instruction address can be reproduced in all cases only by storing the address twice as long as the bus cycle of the processor.

【0048】(実施例3)以下本発明の第3の実施例に
ついて図面を参照しながら説明する。
(Embodiment 3) A third embodiment of the present invention will be described below with reference to the drawings.

【0049】図8は本発明の第3の実施例を示すプログ
ラム開発支援装置の構成図である。図6と異なるのは、
第2の入力ラッチ36を除き、ターゲットアドレス格納
メモリ35の入力としてターゲットアドレス入力310
と、アドレス格納を制御するアドレス格納制御入力31
1とを設けていることである。図3と図8を用いて命令
アドレスを再生する方法について説明する。
FIG. 8 is a block diagram of a program development support apparatus according to a third embodiment of the present invention. The difference from FIG.
Except for the second input latch 36, a target address input 310
And an address storage control input 31 for controlling address storage
1 is provided. A method of reproducing an instruction address will be described with reference to FIGS.

【0050】命令アドレス格納終了後、アドレス格納メ
モリ33を降順に読みだしアドレス無効情報304が1
となっているエントリの1つ前のエントリのアドレスを
読み出す。このアドレス(図3(d)では16番地)か
ら4を減じたアドレスである12番地の命令が、遅延制
御遷移命令対の最初の命令であり、この命令のターゲッ
トアドレスが生成できない命令アドレスである。この命
令のターゲットアドレスを逆アセンブル結果より抽出し
(例えば(表1)の12番地のターゲットアドレス40
番地)、ターゲットアドレス入力310を介してターゲ
ットアドレスバッファ35に格納する。再生アドレス4
00の生成方法は第2の実施例と同様であり、プログラ
ム制御の遷移が2回連続して発生する場合においても常
に正しいターゲットアドレスが再生できる。
After the instruction address storage is completed, the address storage memory 33 is read out in descending order and the address invalid information 304 is set to 1
The address of the entry immediately before the entry that is described is read. The instruction at address 12, which is the address obtained by subtracting 4 from this address (address 16 in FIG. 3D), is the first instruction of the delay control transition instruction pair, and is the instruction address for which the target address of this instruction cannot be generated. . The target address of this instruction is extracted from the disassembly result (for example, target address 40 at address 12 in Table 1).
Address) and stored in the target address buffer 35 via the target address input 310. Play address 4
The method of generating 00 is the same as that of the second embodiment, and the correct target address can always be reproduced even when the transition of the program control occurs twice consecutively.

【0051】以上のように、アドレス格納部は、前記命
令アドレス100と前記加算制御信号102とアドレス
無効信号103とを入力としこれら情報を一定の間隔で
格納する入力ラッチ34と、前記入力ラッチの出力を格
納するアドレス情報格納メモリ33と、遅延制御遷移命
令対の出現する命令列において、逆アセンブルによって
得られる最初の遅延制御遷移命令のターゲットアドレス
を格納しこれをターゲットアドレス情報として出力する
ターゲットアドレス格納メモリ35を備えたことによ
り、プロセッサのバスサイクルの2倍の周期でアドレス
を格納するのみで、全ての場合において命令アドレスの
再生が可能である。
As described above, the address storage unit receives the instruction address 100, the addition control signal 102, and the address invalid signal 103 as inputs, and stores the information at regular intervals. An address information storage memory 33 for storing the output, and a target address for storing the target address of the first delay control transition instruction obtained by disassembling in the instruction sequence in which the delay control transition instruction pair appears, and outputting this as target address information Since the storage memory 35 is provided, the instruction address can be reproduced in all cases only by storing the address twice as long as the bus cycle of the processor.

【0052】なお、本実施例においては、SPARCアーキ
テクチャを例に説明したため命令サイズと命令アドレス
はそれぞれ4バイトであったが、命令サイズと命令アド
レスのサイズはいかなるものであってもよい。また、第
1および第2の入力ラッチへの格納の間隔をバスサイク
ルの2倍の周期としたが、プロセッサの動作周波数とバ
スサイクルが一致しないクロックダブラ方式のマイクロ
プロセッサにおいては、プロセッサ動作周波数の2倍の
周期で格納すべきである。
In the present embodiment, the instruction size and the instruction address are 4 bytes each for the description of the SPARC architecture as an example, but the instruction size and the instruction address may be of any size. Also, the interval between storages in the first and second input latches is twice as long as the bus cycle. However, in a clock doubler type microprocessor in which the bus cycle does not match the operating frequency of the processor, the processor operating frequency is Should be stored twice as often.

【0053】[0053]

【発明の効果】以上のように本発明は、マイクロプロセ
ッサの出力する命令アドレスと加算制御信号とを入力と
し、前記命令アドレスと前記加算制御信号とを格納する
アドレス格納部と、前記アドレス格納部に格納された情
報を基に命令アドレスを再生するアドレス再生部とを設
けることにより、アドレスの格納をバスサイクルより遅
くできることから安価な低速メモリ素子の使用が可能と
なり益々高速化するマイクロプロセッサにも容易に対応
できる。
As described above, according to the present invention, an address storage unit that receives an instruction address and an addition control signal output from a microprocessor and stores the instruction address and the addition control signal is provided. By providing an address reproducing unit that reproduces the instruction address based on the information stored in the memory, the address can be stored later than the bus cycle. Can be easily handled.

【0054】また、格納すべきアドレス情報が少なくて
すむことから、使用するメモリ素子数の減少が可能とな
り、さらに安価なプログラム開発支援装置を提供でき
る。
Also, since less address information needs to be stored, the number of memory elements to be used can be reduced, and a more inexpensive program development support device can be provided.

【0055】また、格納すべきアドレス情報が少なくな
った分多くのアドレス情報を格納できることから、同一
容量のアドレス格納メモリで長時間のアドレストレース
が可能となる。これにより、大規模プログラムのデバッ
グなどプログラム開発の効率を飛躍的に向上させること
ができる。
Further, since more address information can be stored as the address information to be stored is reduced, it is possible to trace address for a long time with an address storage memory having the same capacity. As a result, the efficiency of program development such as debugging of a large-scale program can be dramatically improved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施例におけるプログラム開発
支援装置の構成図
FIG. 1 is a configuration diagram of a program development support device according to a first embodiment of the present invention;

【図2】同実施例における命令アドレスと加算制御信号
とアドレス無効信号との変化をタイミングチャートで示
した図
FIG. 2 is a timing chart showing changes in an instruction address, an addition control signal, and an address invalid signal in the embodiment.

【図3】同実施例におけるアドレス格納メモリへの情報
の格納をタイミングチャートで示した図
FIG. 3 is a timing chart showing storage of information in an address storage memory in the embodiment.

【図4】同実施例における格納された情報によるアドレ
ス再生をタイミングチャートで示した図
FIG. 4 is a timing chart showing address reproduction based on stored information in the embodiment.

【図5】同実施例における命令アドレスと加算制御信号
とアドレス無効信号の格納を説明するプログラム開発支
援装置の構成図
FIG. 5 is a configuration diagram of a program development support device for explaining storage of an instruction address, an addition control signal, and an address invalid signal in the embodiment;

【図6】本発明の第2の実施例におけるプログラム開発
支援装置の構成図
FIG. 6 is a configuration diagram of a program development support device according to a second embodiment of the present invention.

【図7】同実施例における格納された情報によるアドレ
ス再生をタイミングチャートで示した図
FIG. 7 is a timing chart showing address reproduction based on stored information in the embodiment.

【図8】本発明の第3の実施例におけるプログラム開発
支援装置の構成図
FIG. 8 is a configuration diagram of a program development support device according to a third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 マイクロプロセッサ装置 2 プログラム開発支援装置 3 アドレス格納部 4 アドレス再生部 5 制御部 DESCRIPTION OF SYMBOLS 1 Microprocessor device 2 Program development support device 3 Address storage unit 4 Address reproduction unit 5 Control unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 二宮 和貴 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (56)参考文献 特開 平4−130932(JP,A) 実開 平1−102936(JP,U) (58)調査した分野(Int.Cl.6,DB名) G06F 11/28 - 11/34──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Kazuki Ninomiya 1006 Kazuma Kadoma, Kadoma City, Osaka Inside Matsushita Electric Industrial Co., Ltd. (56) References JP-A-4-130932 (JP, A) 102936 (JP, U) (58) Field surveyed (Int. Cl. 6 , DB name) G06F 11/28-11/34

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】マイクロプロセッサの出力する命令アドレ
スと加算制御信号とを入力とし、前記命令アドレスと前
記加算制御信号とを格納するアドレス格納部と、前記ア
ドレス格納部に格納された情報を基に命令アドレスを再
生するアドレス再生部とを備えたプログラム開発支援装
置。
1. An address storage unit for receiving an instruction address and an addition control signal output from a microprocessor and storing the instruction address and the addition control signal, based on information stored in the address storage unit. A program development support device comprising an address reproducing unit for reproducing an instruction address.
【請求項2】請求項1記載のアドレス格納部は、前記命
令アドレスと前記加算制御信号とを入力とし、これら情
報を一定の間隔で格納する入力ラッチと、前記入力ラッ
チの出力を前記一定の間隔と同一間隔で格納しアドレス
情報と加算制御情報とを出力するアドレス情報格納メモ
リとを有することを特徴とするプログラム開発支援装
置。
2. The address storage unit according to claim 1, wherein said instruction address and said addition control signal are input and said input latch stores said information at a constant interval, and said output of said input latch is said constant. An apparatus for supporting program development, comprising: an address information storage memory that stores address information and addition control information at the same interval as the interval.
【請求項3】請求項1記載のアドレス再生部は、前記ア
ドレス格納部の出力するアドレス情報を入力とするフリ
ップフロップと、前記アドレス情報か前記フリップフロ
ップの出力を第1の入力とし、命令サイズを第2の入力
とする加減算器とを備え、それぞれの入力の選択および
加減算操作の選択とを前記アドレス格納部の出力する加
算制御情報により制御し、再生アドレスとして前記加減
算器の出力か前記フリップフロップの出力のいずれかを
加算制御情報により選択し出力することを特徴とするプ
ログラム開発支援装置。
3. The address reproducing unit according to claim 1, wherein the flip-flop receives the address information output from the address storage unit as an input, and receives the address information or the output of the flip-flop as a first input. And a selection of each input and addition / subtraction operation are controlled by addition control information output from the address storage unit, and the output of the addition / subtraction unit or the flip-flop is used as a reproduction address. A program development support device for selecting and outputting any one of the outputs of a loop based on addition control information.
【請求項4】請求項1記載のアドレス格納部は、前記命
令アドレスと前記加算制御信号と共に命令実行ステップ
数に応じてマイクロプロセッサより出力されるアドレス
格納制御信号とを入力とし、前記命令アドレスと前記加
算制御信号とを格納する入力ラッチと、前記入力ラッチ
の出力を格納しアドレス情報と加算制御情報とを出力す
るアドレス情報格納メモリとを備え、前記入力ラッチと
前記アドレス情報格納メモリとは前記アドレス格納制御
信号により格納を制御されることを特徴とするプログラ
ム開発支援装置。
4. An address storage unit according to claim 1, wherein said instruction address and said addition control signal are input together with an address storage control signal output from a microprocessor in accordance with the number of instruction execution steps. An input latch for storing the addition control signal, and an address information storage memory for storing an output of the input latch and outputting address information and addition control information, wherein the input latch and the address information storage memory are A program development support device characterized in that storage is controlled by an address storage control signal.
【請求項5】マイクロプロセッサの出力する命令アドレ
スと加算制御信号とアドレス無効信号を入力とし、前記
命令アドレスと前記加算制御信号と前記アドレス無効信
号を格納するアドレス格納部と、前記アドレス格納部に
格納された情報を基に命令アドレスを再生するアドレス
再生部とを備え、前記アドレス格納部より出力されるア
ドレス無効情報を基に再生アドレスが無効であることを
通知することを特徴とするプログラム開発支援装置。
5. An address storage unit for receiving an instruction address, an addition control signal, and an address invalid signal output from a microprocessor, and storing the instruction address, the addition control signal, and the address invalid signal in the address storage unit. An address reproducing unit for reproducing an instruction address based on the stored information, and notifying that the reproduction address is invalid based on the address invalidation information output from the address storing unit. Support equipment.
【請求項6】請求項5記載のアドレス格納部は、前記命
令アドレスと前記加算制御信号と前記アドレス無効信号
を入力とし、これら情報を一定の間隔で格納する入力ラ
ッチと、前記入力ラッチの出力を前記一定の間隔と同一
間隔で格納しアドレス情報と加算制御情報とアドレス無
効情報を出力するアドレス情報格納メモリとを有するこ
とを特徴とするプログラム開発支援装置。
6. An address storage unit according to claim 5, wherein said instruction address, said addition control signal, and said address invalid signal are input, and an input latch for storing these information at regular intervals, and an output of said input latch. And an address information storage memory for storing address information, addition control information and address invalid information at the same interval as the predetermined interval.
【請求項7】請求項6記載のアドレス格納部は、命令ア
ドレスを前記第1の入力ラッチと同一の間隔で格納し出
力する第2の入力ラッチと、前記第2の入力ラッチの出
力を前記アドレス無効信号により格納しターゲットアド
レスとして出力するターゲットアドレス格納メモリを付
加したことを特徴とするプログラム開発支援装置。
7. The address storage unit according to claim 6, wherein the second input latch stores and outputs an instruction address at the same interval as the first input latch, and outputs the output of the second input latch to the second input latch. A program development support device characterized by adding a target address storage memory for storing a target address according to an address invalid signal and outputting the target address.
【請求項8】請求項6記載のアドレス格納部は、遅延制
御遷移命令が2回連続するような命令列において、逆ア
センブルによって得られる最初の遅延制御遷移命令のタ
ーゲットアドレスを格納しこれをターゲットアドレス情
報として出力するターゲットアドレス格納メモリを備え
たことを特徴とするプログラム開発支援装置。
8. An address storage unit according to claim 6, wherein, in an instruction sequence in which the delay control transition instruction is repeated twice, the target address of the first delay control transition instruction obtained by disassembling is stored and the target address is stored. A program development support device comprising a target address storage memory for outputting as address information.
【請求項9】請求項8記載のアドレス再生部は、再生ア
ドレスとして前記加減算器の出力と前記フリップフロッ
プの出力に加え前記ターゲットアドレス格納メモリの出
力するターゲットアドレス情報の3つのうちのいずれか
を前記加算制御情報と前記アドレス無効情報とにより選
択し出力することを特徴とするプログラム開発支援装
置。
9. An address reproducing unit according to claim 8, wherein any one of three of the output of said adder / subtractor and the output of said flip-flop as well as the target address information output from said target address storage memory is used as a reproduction address. A program development support device for selecting and outputting based on the addition control information and the address invalid information.
JP4183394A 1992-07-10 1992-07-10 Program development support device Expired - Fee Related JP2792351B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4183394A JP2792351B2 (en) 1992-07-10 1992-07-10 Program development support device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4183394A JP2792351B2 (en) 1992-07-10 1992-07-10 Program development support device

Publications (2)

Publication Number Publication Date
JPH0628217A JPH0628217A (en) 1994-02-04
JP2792351B2 true JP2792351B2 (en) 1998-09-03

Family

ID=16135013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4183394A Expired - Fee Related JP2792351B2 (en) 1992-07-10 1992-07-10 Program development support device

Country Status (1)

Country Link
JP (1) JP2792351B2 (en)

Also Published As

Publication number Publication date
JPH0628217A (en) 1994-02-04

Similar Documents

Publication Publication Date Title
US4409654A (en) Data processor adapted for interruption to an instruction stream
KR930008686B1 (en) Data processor
JP2001516920A (en) Digital signal processor with variable width instructions
US5689694A (en) Data processing apparatus providing bus attribute information for system debugging
US6839869B2 (en) Trace control circuit for tracing CPU operation in real time
KR100309860B1 (en) Simulator for processor and simulation method
US5276822A (en) System with enhanced execution of address-conflicting instructions using immediate data latch for holding immediate data of a preceding instruction
JP2792351B2 (en) Program development support device
US5142630A (en) System for calculating branch destination address based upon address mode bit in operand before executing an instruction which changes the address mode and branching
US5566338A (en) Interrupt control method and interrupt control circuit in a processor
KR19990037404A (en) Pre-decoded stack pointer with post increment / decrement operations
US5819081A (en) Method of executing a branch instruction of jumping to a subroutine in a pipeline control system
JPH0544049B2 (en)
JP2758624B2 (en) Speed control method of micro program
JP2838939B2 (en) Parallel instruction execution method
JPH05143447A (en) Digital processor and control method for the processor
JP3488815B2 (en) Address storage circuit
JP2667585B2 (en) Digital processor
JP2004355477A (en) Microprocessor
JPH0855027A (en) Pipeline processor with register file
JP3366235B2 (en) Data read control device
JP2005182690A (en) Processor and command specification address generation method
JPH05173779A (en) Digital arithmetic integrated circuit
JPH05250156A (en) Risc processor
JPS6376015A (en) Instruction fetching system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees