JPS6246352A - Microprocessor operation analysis method and device - Google Patents

Microprocessor operation analysis method and device

Info

Publication number
JPS6246352A
JPS6246352A JP60186463A JP18646385A JPS6246352A JP S6246352 A JPS6246352 A JP S6246352A JP 60186463 A JP60186463 A JP 60186463A JP 18646385 A JP18646385 A JP 18646385A JP S6246352 A JPS6246352 A JP S6246352A
Authority
JP
Japan
Prior art keywords
address
signal
instruction
read
write 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
Application number
JP60186463A
Other languages
Japanese (ja)
Inventor
Minoru Fukuda
実 福田
Noriyuki Matsushima
松島 紀之
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.)
Iwatsu Electric Co Ltd
Original Assignee
Iwatsu Electric 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 Iwatsu Electric Co Ltd filed Critical Iwatsu Electric Co Ltd
Priority to JP60186463A priority Critical patent/JPS6246352A/en
Publication of JPS6246352A publication Critical patent/JPS6246352A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はマイクロプロセッサの動作を解析するための方
法および装置に関する。ざらに具体的には、マイクロプ
ロセッサのデバッグを行うためのエミュレータに関する
。とくに、ブリフェッチ動作をするマイクロプロセッサ
のハードウェアおよびソフトウェアのデバッグのために
使用されるエミュレータに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method and apparatus for analyzing the operation of a microprocessor. More specifically, it relates to an emulator for debugging microprocessors. In particular, the present invention relates to an emulator used for debugging the hardware and software of a microprocessor that performs a brief fetch operation.

[従来の技術]、11 ・・1゜ ?−107°t ′V”i:*G H@L b Gf 
6” K 9   f、10ブロセツナのハードウェア
およびソフトウェア     ttlのデバッグをす′
るためにエミュレータが用いられ     、:11: 10゛6・                    
    1.1このエミュレータは、デバッグされる被
測定マイクロプロセッサが接続されたアドレス・バス。
[Prior art], 11...1°? −107°t ′V”i: *G H@L b Gf
6” K 9 f, 10 Brosetuna hardware and software TTL debugging.
An emulator is used to
1.1 This emulator has an address bus connected to the microprocessor under test to be debugged.

データ・バスおよびコントロール・バス(以下、バスと
いう。)の信号をエミュレータ本体部にある記憶装置に
記憶し、その記憶した内容を表示して動作解析を行なっ
ている。
Signals from a data bus and a control bus (hereinafter referred to as bus) are stored in a storage device in the main body of the emulator, and the stored contents are displayed for operation analysis.

、:(Dt<l(。、、211IIオ、イウ。ア。ヤツ
ヶ5ア   ;1□−夕やプログラムを被測定マイクロ
プロセッサに     :1′付属するメモリから読出
したり書込んだりする信号が伝送されており、その信号
の伝送される順序     )□にしたがって順次その
信号をエミュレータにとり込み、動作解析を行なってい
る。            、1しかし、被測定マイ
クロプロセッサが、プリフェッチ動作をする場合には、
被測定マイクロプロセッサが命令の読出しと、その命令
を実行したことによって生ずるメモリの読出しあるいは
書込みのサイクルとの間に、その次の命令の読出しサイ
クルが入る。
, :(Dt<l(.,, 211 II O, IU. A. Yatsuga 5A; 1□-Input the program to the microprocessor under test. :1' The signal to read or write from the attached memory is transmitted. The signals are sequentially fetched into the emulator and analyzed according to the order in which the signals are transmitted. , 1 However, if the microprocessor under test performs prefetch operation,
A read cycle of the next instruction is inserted between the read of an instruction by the microprocessor under test and the memory read or write cycle caused by executing that instruction.

さらに命令の読出す番地が連続でないものの場合には、
ブリフェッチ動作のため(実行する必要のない命令の読
出しも行ってしまうから、これもバス上にあられれ、エ
ミュレータの本体部に送られていた。
Furthermore, if the addresses read by the instruction are not consecutive,
Because of the brief fetch operation (instructions that do not need to be executed are also read, this is also carried on the bus and sent to the main body of the emulator).

ここで、ブリフェッチ動作とは、マイクロプロセッサが
、命令を読出しそのつぎにその命令を実行したことによ
って生ずるメモリの読出しあるいは書込み動作をすると
いうように、シリーズに動作をするのではなく、この命
令の実行をしている間に、つぎの命令を読出す動作を並
行して行うことをいう。
Here, a briftetch operation refers to a microprocessor not performing a series of operations, such as reading or writing a memory resulting from reading an instruction and then executing that instruction. This refers to performing the operation of reading the next instruction in parallel while the instruction is being executed.

したがって、ブリフェッチ動作により、処理スピードが
上がる。とくに、16ビツトのマイクロプロセッサでは
、ブリフェッチ動作をすることができるものが多い。
Therefore, the briefetch operation increases processing speed. In particular, many 16-bit microprocessors are capable of performing briefetch operations.

[発明が解決しようとする問題点] このようなブリフェッチ動作をするマイクロブOf?ッ
+、□8□□7、ユ93.よ、R1’?= (7)Hm
 I−&    ・□”・その命令の実行により生じた
メモリの読出しあるいは書込みの間に、次の命令の読出
しが入るために、バスに伝送されるままの順序でバスの
状態を表示する従来のエミュレータ(おいては、命令の
読出しと、その命令の実行により生じたメモリの読出し
あるいは書込みの相互関係が把握しにくいものとなって
いた。
[Problems to be solved by the invention] Microbuf Of? that performs such a briefetch operation +, □8□□7, Yu93. Yo, R1'? = (7)Hm
I-&・□”・The conventional method of displaying the state of the bus in the order in which it is transmitted on the bus because the read of the next instruction occurs between the memory read or write caused by the execution of that instruction. In emulators, it is difficult to understand the interrelationship between reading an instruction and reading or writing to memory caused by the execution of that instruction.

また、命令の読出す番地が連続でないものの場 ′合に
は、ブリフェッチ動作のために実行する必要のない命令
の読出しも行ってしまい、これもバス     j・上
にあられれエミュレータの本体部に送られるか    
 ′5゜ら・1ミ゛′−夕0本体部1は必要0ないデー
′、1′も含めて収集し、表示するために、ざらに動作
解析を困難にしていた。
Furthermore, if the addresses to be read by the instructions are not consecutive, instructions that do not need to be executed due to the brief fetch operation will also be read, and this will also be sent to the main body of the emulator on the bus j. Can it be done?
Since the main unit 1 collects and displays data including unnecessary data ' and 1', it is difficult to perform a rough analysis of the operation.

[問題点を解決するための手段] 本発明はこのような問題点を解決するためになされたも
ので、被測定マイクロプロセッサがブリフェッチ動作を
する場合でも、命令の読出しとその実行により生じたメ
モリの読出しあるいは書込みの間に入った、次の命令の
読出しは、順序を入れ替えることによって、命令の読出
しとその実行により生じたメモリの読出しあるいは書込
みの次にもってくるようにした。
[Means for Solving the Problems] The present invention has been made to solve these problems, and even when the microprocessor under test performs a brief fetch operation, the memory generated by reading and executing instructions is By changing the order, the reading of the next instruction entered between the reading or writing of the instruction comes after the reading or writing of the memory caused by the reading and execution of the instruction.

また、命令の読出す番地が連続でないものの場合には、
実行する必要のない命令の読出しがエミュレータの本体
部に送られることのないようにした。それを実現するた
めに2つの番地を有する記憶回路にバス上の信号を制御
信号によって書込みし、読出すようにした。
Also, if the addresses read by the instruction are not consecutive,
Prevents reading of instructions that do not need to be executed from being sent to the main body of the emulator. In order to achieve this, signals on a bus are written into and read out from a memory circuit having two addresses using control signals.

[作用] これによって、エミュレータの本体部には、命令の順序
にしたがって情報が送られ、実行する必要のない命令は
送られないから、エミュレータの本体部には、必要な情
報のみが命令の順序通りに表示されることとなり、迅速
で正確な動作解析が可能となった。
[Operation] As a result, information is sent to the main body of the emulator in the order of instructions, and instructions that do not need to be executed are not sent. Therefore, only the necessary information is sent to the main body of the emulator in the order of instructions. This enables quick and accurate operation analysis.

[実施例] 第1図は本発明の一実施例を示す構成図であり、これに
よって説明する。
[Embodiment] FIG. 1 is a block diagram showing an embodiment of the present invention, and will be explained using this diagram.

第1図において、5は被測定システムに含まれる測定対
象である被測定マイクロプロセッサ、6I:は被測定マ
イクロプロセッサ5のアクセスによって実行すべき命令
や実行した結果生ずるデータを読出したり書込んだりす
るためのメモリである。
In FIG. 1, reference numeral 5 denotes a microprocessor under test which is a measurement target included in the system under test, and 6I: reads and writes instructions to be executed and data resulting from execution upon access by the microprocessor under test 5. This is the memory for.

11は被測定マイクロプロセッサ5が接続された   
  ゛□アドレス・バス、データ・バスおよびコントロ
ール・バス(以下、バスという。)のアクセス信号およ
びデータ信号(以下、バスの内容という。)を取り出す
ための入力回路、12は被測定マイクロプロセッサ5が
メモリ6の読出しを行うとき、その読出しが、命令を読
出しているのか(これを、プログラム・リファレンスと
呼ぶ。)、その命令を実行した結果生じたデータのメモ
リ6からの読出しまたはメモリ6への書込み(これを、
データ・リファレンスと呼ぶ)なのかを区別して、プロ
     ・、1グラ6°す7 y Ii>2(D場合
1プ0グラ6°す7     、。
11 is connected to the microprocessor 5 to be measured.
゛□An input circuit for extracting access signals and data signals (hereinafter referred to as bus contents) of the address bus, data bus, and control bus (hereinafter referred to as buses); When reading from the memory 6, it is important to know whether the reading is reading an instruction (this is called a program reference), and whether the data generated as a result of executing that instruction is being read from the memory 6 or transferred to the memory 6. Write (this,
Pro ・, 1 graph 6° 7 y Ii>2 (D case 1 graph 6° 7 y).

アクセス信号Pを出力するためのプログラム・リファレ
ンス分離回路、13はマイクロプロセッサ5が実行する
命令、たとえば3ワードからなる命令のうち第1ワード
目(オペコード)を検出し、検出の有無を出力するオペ
コード検出回路、14はマイクロプロセッサ5がメモリ
6から命令を読出すとき(プログラム・リファレンス)
、プログラム・リファレンス信号Pを受けると同時にそ
の命令の入った番地が前に読出した命令の入っていた番
地と連続するものであるか否かを検出する連続検出回路
、15Aはプログラム・リファレンス分離回路12から
のプログラム・リファレンス信号Pが出力された場合、
入力回路11から出力されるバスの内容のうち、オペコ
ードとオペランド(命令の第2ワード目以降)を一方の
番地に書込み、プログラム・リファレンス信号Pが出力
されない場合にはデータ信号を他方の番地に書込んで記
憶するための2つの番地を有する記憶回路、18Aはプ
ログラム・リファレンス信@Pとオペコード検出回路1
3の出力と連続検出回路14の出力を受けて、記憶回路
15Aの書込アドレスWAと読出アドレスRAを出力す
るための記憶制御回路、19は11〜14.T5A、1
8Aを含む本     1□)′′、1′ 発明に係わる動作解析装置を特徴づけるエミュレ   
  ]i::′ −タ・ユニット部である。20は被測定マイクロ   
  ”゛プロセッサ5の動作状態をトレースするために
、エミュレータ・ユニット部19の2次記憶回路1..
17から送られてくるバスの内容を表示することに  
   11・よって監視し、メモリ6に代えて内蔵する
メモリ1カ、よえ1.□□□い、%’e’)6(Dr’
M(D   I計バグを修正するための表示部を有する
エミュレータ本体部(参考資料:たとえば岩通技報1.
パーソナル エミュレータ5L−4802、発行所 岩
崎通信機株式会社、発行 昭和59年6月30日、Vo
l、23、No、1.11〜19頁)であり、    
[1エミユレータ・ユニット部19とともに一体とな 
    [i□14゜ って動作解析装置を構成している。         
  [1・(、; [11・ ここで、メモリ6の内部構成の一例は第5図に    
 (II示されるようになっている。各命令が、たとえ
ば、     l>13ワードカ、らなつ工いるおき1
.よ1ワード目がオ     パ・□。
A program/reference separation circuit 13 is used to output the access signal P, and 13 is an operation code that detects the first word (opcode) of an instruction executed by the microprocessor 5, such as an instruction consisting of three words, and outputs whether or not it has been detected. Detection circuit 14 is used when the microprocessor 5 reads an instruction from the memory 6 (program reference)
, a continuity detection circuit that detects whether the address containing the instruction is consecutive to the address containing the previously read instruction upon receiving the program reference signal P; 15A is a program reference separation circuit; When the program reference signal P from 12 is output,
Of the contents of the bus output from the input circuit 11, the opcode and operand (from the second word of the instruction) are written to one address, and if the program reference signal P is not output, the data signal is written to the other address. Memory circuit with two addresses for writing and storing, 18A is program reference signal @P and opcode detection circuit 1
A memory control circuit 19 receives the outputs of 11 to 14.3 and the output of the continuity detection circuit 14 and outputs the write address WA and read address RA of the memory circuit 15A. T5A, 1
Book containing 8A 1□)'', 1' Emulator characterizing the motion analysis device according to the invention
]i::' -ta unit part. 20 is the micro to be measured
``In order to trace the operating state of the processor 5, the secondary storage circuit 1 .
To display the contents of the bus sent from 17
11. Therefore, one built-in memory is used instead of the memory 6 for monitoring. □□□I,%'e')6(Dr'
M (DI) Emulator main body with a display section for correcting I meter bugs (Reference materials: For example, Iwatsu Technical Report 1.
Personal Emulator 5L-4802, Publisher: Iwasaki Tsushinki Co., Ltd., June 30, 1980, Vo
l, 23, No. 1.11-19),
[Integrated with 1 emulator unit section 19]
[i□14° constitutes a motion analysis device.
[1. (,; [11. Here, an example of the internal configuration of the memory 6 is shown in FIG.
(II). Each instruction has, for example, l>13 words,
.. The first word is opa・□.

[;、i 6°−1・ 2aci−ff3’7−Fill “、t
 < 7 ”、/ t’ t h          
f、)っている。多くの種類の命令(・・・・・・M−
1,M、       1M+1・・・・・・)の各オ
ペコードや各オペランドは図示された順序でメモリ6の
連続する各番地に格納されている。
[;, i 6°-1・2aci-ff3'7-Fill ", t
< 7 ”, / t' t h
f,). Many types of instructions (...M-
1, M, 1M+1...) and each operand are stored at successive addresses in the memory 6 in the order shown.

第2図は被測定マイクロプロセッサ5がブリフェッチ動
作をし命−令が連続している場合の一例であり、読出し
命令がメモリ6から読出されそれが実行されるとき、マ
イクロプロセッサ5に接続されたバスの内容がどのよう
にしてエミュレータ・ユニット部19からエミュレータ
本体部20に送られるかを示している。
FIG. 2 shows an example where the microprocessor 5 under test performs a brief fetch operation and the instructions are consecutive. When a read instruction is read from the memory 6 and executed, the microprocessor 5 connected to the It shows how the contents of the bus are sent from the emulator unit section 19 to the emulator body section 20.

第2図(a)において、記憶回路15Aの入力は、被測
定マイクロプロセッサ5の接続されたバスの内容がその
まま入力回路11を介して送られてくるため、期間T1
において命令1の第1ワード目(オペコード)である“
′命令1のオベコードパと、期間T3に示した命令1の
第2ワード目以降(オペランド)である“命令1のオペ
ランド″との間に、ブリフェッチ動作によって、命令1
より以前に読出された命令を実行したために発生したメ
モリ6からの読出したデータ(またはメモリ6への書込
みデータ)である“前の命令によるメモ     ′□
1gel・ す・リード″が期間T2において挿入されている。  
   “″ざらに、期間T5において、命令1を実行し
ただめに生ずる“命令1によるメモリ・リード゛が被測
定マイクロプロセッサ5の接続されたバスにあ    
 ;、1゜られれる以前に、期間T4において、命令1
の次     )ゝ;ト・) に実行されるべき命令2のオペコードの読出し状態“命
令2のオペ1−ド″があられれる・期間T、i6におい
て、゛命令2のオペランド゛°があられれ     賢
・1″。
In FIG. 2(a), the input to the memory circuit 15A is for a period T1 because the contents of the bus to which the microprocessor under test 5 is connected are directly sent via the input circuit 11.
The first word (opcode) of instruction 1 is “
'A brief fetch operation is performed between the obe code of instruction 1 and the "operand of instruction 1" which is the second word (operand) of instruction 1 shown in period T3.
“Memo from previous instruction” which is data read from memory 6 (or data written to memory 6) that occurred due to execution of an instruction read earlier
1gel-su-read'' is inserted in period T2.
In general, during period T5, a memory read by instruction 1, which occurs after executing instruction 1, is on the bus connected to microprocessor 5 under test.
;, 1°, in period T4, before the instruction 1
The read state of the opcode of instruction 2 to be executed next )ゝ;・1″.

る。                       
  、、、;この第2図(a)に示した記憶回路15A
の八     ″“□も\ 力が、もしも、そのままの順序でエミュレータ本   
  □′i:1 ’(、II 体部20に送られ表示されるならば、それらは、   
   ;2゜ブリフェッチ動作のために、命令の順序通
りにな     I゛□っていないために、動作解析が
困難である。        、′ここで、第2図(a
)に示した順序を入れ替えて命令の順序通りに並べ替え
て、被測定マイクロ     □、。
Ru.
,,, ;The memory circuit 15A shown in FIG. 2(a)
No.8 ``“□also\ If the power is, the emulator book will be in the same order.
□′i:1′(,II If sent to the body 20 and displayed, they are
;Due to the 2° briefetch operation, the instructions are not in the correct order, making it difficult to analyze the operation. , 'Here, Figure 2 (a
), rearrange the instructions according to the order of the instructions, and then install the micro-meter to be measured □.

プロセッサ5の接続されたバスの内容がエミュレータ本
体部20に:、m6fする様子を第2図(b)〜   
  。
Figures 2(b) to 2(b) show how the contents of the bus connected to the processor 5 are transferred to the emulator main unit 20.
.

(h)により説明する。This will be explained using (h).

期間T1において、被測定マイクロプロセッサ5の接続
されたバスは、“命令1のオペコード”を読出す状態に
なっており、この命令1のオペコードは、入力回路11
を通して記憶回路15A、プログラム・リファレンス分
離回路12、オペコード検出回路13および連続検出回
路14に送られている。
During period T1, the bus to which the microprocessor under test 5 is connected is in a state where the "opcode of instruction 1" is read out, and the opcode of instruction 1 is read out from the input circuit 11.
The signal is sent to a storage circuit 15A, a program/reference separation circuit 12, an operation code detection circuit 13, and a continuity detection circuit 14 through the memory circuit 15A.

プログラム・リファレンス分離回路12はオペコードま
たはオペランドを検出してプログラム・リファレンス信
号“P” (第2図(b))を出力し、または命令によ
るメモリ・リードを検出してデータ・リファレンスと判
断したときは、プログラム・リファレンス信号゛P”を
出力しないが(第2図(b)にはDと表示)、期間T1
は“命令1のオペコード”を読出す状態であるからプロ
グラム・リファレンス状態にあり、(b)に示すように
プログラム・リファレンス信号“P″を出力する。これ
によって“命令1のオペコード″は、すでに書込まれて
記憶回路15Aの内容となっている“前の命令のオペコ
ード゛′に替えて、記憶口(・ 路15Ak−書込まれる。             
    1lilオペコ一ド検出回路13はオペコード
を検出すると、その出力が“’H”(レベル)となり、
オペコードを検出しないときはその出力が“L”(レベ
ル)となる。期間T1においては、オペコード検出回路
13の出力は“H”となる(第2図(C))。
The program reference separation circuit 12 detects an opcode or operand and outputs a program reference signal "P" (Fig. 2 (b)), or detects a memory read by an instruction and determines that it is a data reference. does not output the program reference signal ``P'' (indicated by D in FIG. 2(b)), but during the period T1
is in the program reference state since it is in the state of reading the "opcode of instruction 1", and outputs the program reference signal "P" as shown in (b). As a result, the "operation code of instruction 1" is written into the memory port (path 15Ak-) in place of the "operation code of the previous instruction" which has already been written and is the content of the memory circuit 15A.
When the 1lil opcode detection circuit 13 detects the opcode, its output becomes "'H" (level),
When no opcode is detected, the output becomes "L" (level). During period T1, the output of the operation code detection circuit 13 becomes "H" (FIG. 2(C)).

連続検出0路116令0人°1番地0連続性     
illを調べる回路で・10グラム°リファレンス信号
     、1“P”の存在下において命令の入ってい
たメモリ     −i′:・。
Continuous detection 0 path 116 years 0 people ° 1 address 0 continuity
In the circuit that examines ill, the memory containing the instruction in the presence of 10g° reference signal, 1 "P"-i':.

6における番地(第5図参照)が連続であるとき   
  1;、:は“連続″の信号を出力し・不連続のとき
は“不     シ・。
When the addresses in 6 (see Figure 5) are consecutive
1;, : outputs a "continuous"signal; when discontinuous, it outputs a "discrete" signal.

連続”の信号を出力し、データリファレンス(命   
  1・:il: 令8実”″′結1生Ut;:9−1(7)%f!J6′
”) (7)      Ill読出しまたはメモリ6
への書込み)のときには出     i″′l=、′:
5 力しない。したがって期間T1においては期間T   
   l。
Continuous” signal output and data reference (instruction)
1・:il:Rei 8 fruit”″′Rui 1st grade Ut;:9-1(7)%f! J6′
”) (7) Ill read or memory 6
i″′l=,′:
5. Don't force yourself. Therefore, in period T1, period T
l.

1の前の期間には命令1の前の命令のオペランド   
  □(図示されてはいない)があるから、命令1のオ
     :、、[)□゛ ぺ1−ドとは連続しており(第5図参照)・連続   
  1.I:検出回路14の出力は(d)に示すように
“連続9m     +、:。
The period before instruction 1 is the operand of the instruction before instruction 1.
Since there is □ (not shown), the instruction 1 o :,, [) □ ped 1- is continuous (see Figure 5).
1. I: As shown in (d), the output of the detection circuit 14 is "continuous 9m +,:.

となる。becomes.

プログラム・リファレンス信号“P″が出力されている
ときには記憶制御回路18Aは記憶回路15Aへの書込
アドレスと読出アドレスを前回゛P″が出力された状態
から変更する。その結果T1の前の期間とは両アドレス
は入れ替り、書込アドレスは0番地となり、読出アドレ
スは1番地となるため(第2図(e))、記憶回路15
Aの入力は0番地に書込まれ(第2図(f))、1番地
に記憶されていた“前の命令のオペランド”(第2図(
g))が読出されて記憶回路15Aの出力となる(第2
図(h))。
When the program reference signal "P" is being output, the memory control circuit 18A changes the write address and read address to the memory circuit 15A from the state in which "P" was previously output.As a result, the period before T1 The two addresses are exchanged, the write address becomes address 0, and the read address becomes address 1 (FIG. 2(e)).
The input of A is written to address 0 (Fig. 2 (f)), and the "operand of the previous instruction" stored at address 1 (Fig. 2 (f)) is written to address 0 (Fig. 2 (f)).
g)) is read out and becomes the output of the memory circuit 15A (second
Figure (h)).

同様にして、期間T2においては、プログラム・リファ
レンス分離回路12からはデータ・リファレンスが検出
されるため、プログラム・リファレンス信号“P″は出
力されず(第2図(b)には“D″と表示)、オペコー
ド検出回路13の出力はL゛′である。プログラム・リ
ファレンスではないために連続検出回路14の出力はな
い。データ・リファレンスが検出されたために、記憶制
御回路18Aはその出力である読出アドレスRAを変更
せず、書込アドレスWA@読出アドレスRA&1″′]
L;l′jl!IC!!16 (@2’$ (eゝゝ・
Z (D    、、!。
Similarly, during period T2, the data reference is detected from the program/reference separation circuit 12, so the program reference signal "P" is not output ("D" and "D" are not output in FIG. 2(b)). ), the output of the opcode detection circuit 13 is L'. Since it is not a program reference, there is no output from the continuity detection circuit 14. Since the data reference has been detected, the storage control circuit 18A does not change its output read address RA and writes write address WA@read address RA&1''']
L;l'jl! IC! ! 16 (@2'$ (eゝゝ・
Z (D,,!.

t−9・1′!“[lf′15A17)A”ゞ1”0−
1“#(7)    t:1sec、ha″t−+>−
t>−b” *1mtacw−n゛H・21同時に1番
地から読出されて、記憶回路15Aから出力される。
t-9・1′! “[lf'15A17)A”ゞ1”0-
1"#(7) t: 1sec, ha"t-+>-
t>-b'' *1mtacw-n゛H・21 are simultaneously read from address 1 and output from the memory circuit 15A.

期間T3においても、同様にして、プログラム・リファ
レンス分離回路12からはプログラム・リファレンス信
号“P”が出力され、オペコード     !へ検出回
路13の出力は“し”であり、連続検出回     1
イ路14の出力は“連続パであり、プログラム・す1y
L/>14MN“2″“出”’;an−cri゛;bt
=a・8己     晴、1憶制御回路18Aは第2図
(e)に示すように書     II。
Similarly, during period T3, the program reference signal "P" is output from the program reference separation circuit 12, and the operation code ! The output of the detection circuit 13 is “Yes”, and the continuous detection time 1
The output of path 14 is "continuous" and the program path 14 is
L/>14MN"2""out"';an-cri゛;bt
=a・8self Clear, memory control circuit 18A is written as shown in FIG. 2(e).

込アドレスWAと読出アドレスRAを前のプログラム・
リファレンスのときく期間T1)と反対の値1変ゞv6
・001・記憶0路1590人力     iliに印
加された“命令1のオペランド″が1番地に書込ま0・
期間T1′″′0番地1込−zat:’“命令    
 ′1.′1のオペコード″が読出されて記憶回路15
Aから出力される。
Save the read address WA and read address RA from the previous program.
1 change v6 of the opposite value to the reference period T1)
・001・Memory 0 path 1590 manual input “operand of instruction 1” applied to ili is written to address 1 and 0・
Period T1''''0 address 1-zat:''' command
'1. The operation code '1' is read out and stored in the memory circuit 15.
Output from A.

期間T4においては、プログラム・リファレンス分離回
路12からはプログラム・リファレンス信号“P″が出
力され、オペコード検出回路13の出力は“Httであ
り、連続検出回路14の出力は“連続゛′である。プロ
グラム・リファレンス信号“P″が出力されているため
に、記憶制御回路18Aは書込アドレスWAと読出アド
レスRAを前回のプログラム・リファレンス時(期間T
3)とは反対の値にしく第2図(e))、0番地には記
憶回路15Aに印加された“命令2のオペツードパを書
込み、期間T3で1番地に書込まれた゛命令1のオペラ
ンド″を読出し、記憶回路15Aの出力とする(第2図
(h))。
During period T4, the program reference signal "P" is output from the program reference separation circuit 12, the output of the operation code detection circuit 13 is "Htt", and the output of the continuity detection circuit 14 is "continuous". Since the program reference signal "P" is being output, the storage control circuit 18A changes the write address WA and read address RA from the previous program reference time (period T
3), the operand of instruction 2 applied to the memory circuit 15A is written to address 0, and the operand of instruction 1 written to address 1 in period T3 is written to address 0 (Fig. 2(e)). '' is read out and used as the output of the memory circuit 15A (FIG. 2(h)).

期間T5においては、プログラム・リファレンス分離回
路12からはデータ・リファレンスであるため、プログ
ラム・リファレンス信号“P″は出力されない。オペコ
ード検出回路13の出力は″“L fTであり、プログ
ラム・リファレンスではないために、連続検出回路14
の出力はない。プログラム・リファレンス信号“Pパは
出力されてい     [・0°゛b゛6゛i;t!f
f1u[]tlj18A°’imA7t’L/IW  
 、。
During the period T5, the program reference signal "P" is not output from the program reference separation circuit 12 because it is a data reference. The output of the operation code detection circuit 13 is "L fT" and is not a program reference, so the continuous detection circuit 14
There is no output. Program reference signal “P is not output [・0°゛b゛6゛i;t!f
f1u[]tlj18A°'imA7t'L/IW
,.

A(Drip@ ’az L/ T、 ram 7 t
’ L/ 2 RA hno CV    1;。
A(Drip@'az L/T, ram 7t
'L/2 RA hno CV 1;.

る。この結果、記憶回路15Aに印加された“命   
  1.1令1によるメモリ・リード゛は1番地に書込
まれ、     1′□同時に1番地から読出されて、
記憶回路15Aの出力となる。
Ru. As a result, the "instruction" applied to the memory circuit 15A
1.1 Memory read by instruction 1 is written to address 1, 1'□ is read from address 1 at the same time,
This becomes the output of the memory circuit 15A.

期間T6においては、プログラム・リファレンス分離回
路12からはプログラム・リファレンス信号“P”が出
力ざる。オペコード検出回路13″1°゛“1″T″″
′・!1ull 14 (7)l)    li。
During the period T6, the program reference separation circuit 12 does not output the program reference signal "P". Opcode detection circuit 13″1°゛“1″T″″
′・! 1ull 14 (7)l) li.

′a″1″″r′y′a・7’0″>Ao“) 7 ?
 L/> 2 ’r    1ぺあるために、記憶制御
回路18Aは書込アドレス     l1WA & @
m 7 t’ L/:l、RA 8@0 (7)7 D
 ’j7 A 、’)    l”i′□ 1゛ニ 7702時(期間T4)と(よ反対にしく第2図   
  tlj(e))、記憶回路15Aに印加された“命
令2のオペランド”を1番地に書込み・期間T4で01
.1番地に書込まれた“命令2のオペコード”を読出 
    1j11.1 し、記憶回路15Aの出力とする。         
   1・1以上の動作から明らかなように、第2図(
a )      11(4゜ と(h>を比較するならば、ブリフェッチ動作によって
(a)の期間T1において“命令1のオペコード″が“
前の命令によるメモリ・リード゛′の前に入っていたも
のが、第2図(h)の期間T3において“前の命令によ
るメモリ・リード゛′と順序を入れ替えて記憶回路15
Aの出力とされてエミュレータ本体部20に命令の順序
に従った信号が送られている。
'a''1''''r'y'a・7'0''>Ao") 7?
L/> 2 'r Since there is 1 page, the memory control circuit 18A writes the write address l1WA &@
m 7 t' L/:l, RA 8@0 (7) 7 D
'j7 A,') l”i'□ 1゛2702 hours (period T4) and (in contrast to Fig. 2)
tlj(e)), writes the "operand of instruction 2" applied to the memory circuit 15A to address 1, and writes 01 in period T4.
.. Read the “opcode of instruction 2” written at address 1
1j11.1 and output from the memory circuit 15A.
1. As is clear from the above operations, Fig. 2 (
a) Comparing 11(4° and (h>), the “opcode of instruction 1” becomes “instruction 1” in period T1 of (a) due to the brief fetch operation
What was entered before the memory read '' by the previous instruction is switched in order with the 'memory read ' by the previous instruction in the period T3 of FIG. 2(h) and is transferred to the memory circuit 15.
A signal is sent to the emulator main unit 20 in accordance with the order of the commands.

。同様にして、第2図(a)の期間T4において“命令
1によるメモリ・リード゛の前に現われた“命令2のオ
ペコード″は(h)の期間T6において、15A記憶回
路の出力とされ、命令の順序通りに信号がエミュレータ
本体20に送られる。
. Similarly, the "opcode of instruction 2" that appeared before the "memory read by instruction 1" in period T4 of FIG. 2(a) is output from the 15A storage circuit in period T6 of FIG. 2(h), Signals are sent to the emulator main body 20 in the order of the instructions.

エミュレータ本体部20における表示は、命令の読出し
から実行まで連続したものであるから動作解析が容易と
なる。
The display on the emulator main unit 20 is continuous from the reading of an instruction to its execution, making it easy to analyze the operation.

つぎに、第3図(a)は1ワードのジャンプ系の命令の
うちBRA(Branch  AlwaySの略、マイ
クロプロセッサのジャンプ系動作の内の1つ。参考文献
:モートローラ M68000 16/32−BIT 
 MICROPROCE      ’U′1、。
Next, FIG. 3(a) shows BRA (abbreviation for Branch AlwaysS, one of the jump-related operations of a microprocessor) among the one-word jump-related instructions.Reference: Motorola M68000 16/32-BIT
MICROPROCE 'U'1,.

11・ 5SOR,Proqrammers  Refe   
  、。
11. 5SOR, Proqrammers Refe
,.

rence  Manual  771  第4版、1
111・゛ 9844−E−・1°−7?fR’r”rゝ“*58n
 6jii    71゜合の被測定マイクロプロセッ
サ5の接続されたバ     −:、:′□。
rence Manual 771 4th edition, 1
111・゛9844-E-・1°-7? fR'r"rゝ"*58n
6jii Connected bar of the microprocessor 5 under test at 71°: -:,:'□.

スの内容の1例を示しており、ジャンプされた実   
  1・□i・1 行不要の命令を除いてエミュレータ本体部20に   
  ijl送られる様子を第3図(b)〜(h)に示す
もの     1[(である。           
            j:!;1 第3図において、ジャンプ命令とは、指定した    
 (、:メモリ6の番地へ飛べという命令であり、ジャ
ン     1″[・ニ ブ先命令とはジャンプ命令で指定したメモリ6の   
  ;:j・: 番地に格納された命令をいう。           
   ト□3□a ) kニー q jよう1、被測¥
、イ、。ア     1ニトロセッサ5の接続されたバ
スの内容が入力回路11を介して記憶回路15Aに入力
されており、期間T1においては“ジャンプ命令1のオ
ペコード°゛が、期間T2においては“前の命令による
メモリ     i’・リード”がある。期間T3には
、実際には“実     i;11・: 行されない命令2のオベコードパすなわち、ジャ   
  −。
An example of the content of the jump is shown below.
1・□i・1 Lines are written to the emulator main unit 20, excluding unnecessary instructions.
Figures 3 (b) to (h) show how ijl is sent.
J:! ;1 In Figure 3, a jump command is a specified
(,: This is an instruction to jump to the address of memory 6, jump 1'' [・The nib destination instruction is the instruction to jump to the address of memory 6 specified by the jump instruction.
;:j・: Refers to the instruction stored at the address.
g□3□a) k knee q j yo 1, measured ¥
,stomach,. A. The contents of the bus to which the 1 nitrocessor 5 is connected are input to the memory circuit 15A via the input circuit 11, and in period T1, the operation code of jump instruction 1 is input, and in period T2, the operation code of jump instruction 1 is input to the storage circuit 15A. There is a "memory i'read".In period T3, there is actually an "actual i;11 read".
−.

ンプしで飛び越された実行不要の命令がメモリー6にお
いてジャンプ命令1の直後に書かれているために、プリ
フェッチ動作によって記憶回路15△の入力に印加され
ている。期間T4においては、“ジャンプ先命令3のオ
ペコード″が印加され、期間T5においては、そのジャ
ンプ先命令3のオペランドである“命令3のオペランド
゛が印加され、期間T6においては“命令4のオペコー
ド゛′が印加されている。
Since the instruction that is skipped by the jump and does not need to be executed is written in the memory 6 immediately after the jump instruction 1, it is applied to the input of the storage circuit 15Δ by the prefetch operation. In period T4, the "operand of instruction 3" is applied, in period T5, the operand of instruction 3, which is the operand of the jump destination instruction 3, is applied, and in period T6, the "opcode of instruction 4" is applied.゛′ is applied.

期間T1において、プログラム・リファレンス分離回路
12は“ジャンプ命令1のオペコード″が印加されてい
るから、第2図の場合と同様に、第3図(b)に示すよ
うにプログラム・リファレンス信号“P″を出力する。
During the period T1, since the "operation code of jump instruction 1" is applied to the program reference separation circuit 12, the program reference signal "P" is applied as shown in FIG. 3(b), as in the case of FIG. ” is output.

オペコード検出回路13は期間T1において、オペコー
ドを検出すると、(C)に示すようにH99を出力する
。(a)の“′ジャンプ命令1のオペコードパは期間T
1の前の期間の図示されてはいない“前の命令のオペラ
ンド゛”((q)の期間T1を参照)とメモリ6におい
て格納された番地が連続であるため、連続検出回路14
は(d)に示すように“連続゛の信     11号を
出力する。プログラム・リファレンス信号′“P”が出
力されているときは、記憶制御回路18Aは、書込アド
レスWAおよび読出アドレスR[。
When the operation code detection circuit 13 detects an operation code during period T1, it outputs H99 as shown in (C). The operation code of jump instruction 1 in (a) is period T.
Since the "operand of the previous instruction" (not shown) in the period before 1 (see period T1 in (q)) and the address stored in the memory 6 are consecutive, the continuity detection circuit 14
outputs the "continuous" signal No. 11 as shown in (d). When the program reference signal 'P' is output, the storage control circuit 18A outputs the write address WA and the read address R[ .

Aを前回のプログラム・リファレンス時とは反対   
  ;1・1 の値とし、記憶回路15Aの入力゛ジャンプ命令   
  11のオペコードパは0番地に書込まれ、1番地か
、1よ・・ゎ(7)* @ (7)オ、ウラ、・・5□
8.211:;1 回路15Aの出力とされる(第3図(h))。    
  111QfDT2 cabzxo“・7°″6°”
) 7 ? 17 ”、/   1.□ス分離回路12
からは、データ・リファレンスが     ・′:@ヵ
。わ。、ア。ツウA 、’) ’7 ?ウアユ143 
  ′1゛P″は出力されない。オペコード検出回路1
3     °1の出力′1“L″′ある・データ゛リ
ファレンスが     5゜検出されているために、連
続検出回路14の出力はなく、データ・リファレンスで
あるために、書込アドレスWAのみが反転して読出アド
レスと同     □、。。、1,1□15AO11f
t!!1カ。8−1“前の命令によるメモリ・リード″
が書込まれ出     ;1力される。
A is the opposite of the previous program reference.
; The value is 1.1, and the input of the memory circuit 15A is the jump command.
Opcode number 11 is written to address 0, then address 1, or 1...ゎ(7)* @ (7) O, Ura...5□
8.211:;1 This is the output of the circuit 15A (Fig. 3(h)).
111QfDT2 cabzxo"・7°"6°"
) 7? 17 ”, / 1.□ Space separation circuit 12
The data reference is ・′:@ka. circle. ,a. Tsu A,') '7? Uayu 143
'1゛P'' is not output.Opcode detection circuit 1
3°1 output '1"L"' is present. Since the data reference is detected at 5°, there is no output from the continuous detection circuit 14, and since it is a data reference, only the write address WA is inverted. Same as read address □,. . ,1,1□15AO11f
T! ! 1 car. 8-1 “Memory read by previous instruction”
is written and output;

期間T3においては、プログラム・リファレンス分離回
路12からはプログラム・リファレンス信号゛P”が出
力され、オペコード検出回路13の出力はH”である。
During period T3, the program reference signal "P" is output from the program reference separation circuit 12, and the output of the operation code detection circuit 13 is H".

ジャンプ命令1と実行されない命令2とはメモリ6にお
いて連続した番地に記憶されているから、連続検出回路
14の出力は“連続゛′である。プログラム・リファレ
ンスであるために、記憶制御回路18Aは、書込アドレ
スWAと読出アドレスRAを前回のプログラム・リファ
レンス時(期間T1)とは反対の値に変更しく第3図(
e))、記憶回路15Aに印加されている“実行されな
い命令2のオペコード°゛を1番地に書込み、期間T1
で0番地に書込まれた“ジャンプ命令1のオペコード”
を記憶回路15Aは出力する。
Since the jump instruction 1 and the unexecuted instruction 2 are stored in consecutive addresses in the memory 6, the output of the continuity detection circuit 14 is "continuous".Since it is a program reference, the storage control circuit 18A , change the write address WA and read address RA to values opposite to those at the previous program reference time (period T1).
e)), writes the operation code of “unexecuted instruction 2” applied to the memory circuit 15A to address 1, and continues for a period T1.
“Jump instruction 1 opcode” written to address 0 in
The memory circuit 15A outputs.

期間T4においては、プログラム・リファレンス分離回
路12からは、プログラム・リファレンス信号゛P″が
出力ざる。オペコード検出回路13の出力はH°′であ
る。ジャンプ先命令3は、メモリ6に記憶されている番
地が実行されない命令2の番地とは連続したものとなっ
ていないため     1::に、連続検出回路14は
“不連続′°を出力する。     j・1:: プログラム・リファレンス信号“p toを受けても、
それと同時に“不連続″が印加された記憶制御回路18
A“前の命令(期間T3G″印加された命    、]
、1・令、すなわち、“実行されない命令2のオペコー
ド”)を調べ、それがオペコードであった場合は、書込
アドレスWAと読出アドレスRAを変更しな    l
’、l・い。このため期間T3で1番地に書込まれた“
実””;! t’L%(/’′″’?s 2 (7):
t<°−H”t“tiHi6n”  1.・“ジャンプ
先命令3のオペコードパとなり、記憶    11回路
15Aの出力は、期間T3にひきつづいて     :
1“ジャンプ命令1のオペコード”を出力する。   
   :1“不連続”であっても、かりに前の命令(期
間     ]:3に印加された命令)がオペコードで
ない場合、     ;1あるいは“連続”な場合には
記憶制御回路1白Aは動作して、書込アドレスWAと読
出アドレスロケc、tゎ。ア。、j56.、ワア、ツユ
。お、よヮ、。  II□・1 値に変更される。
During period T4, the program reference signal 'P'' is not output from the program reference separation circuit 12. The output of the operation code detection circuit 13 is H°'. The jump destination instruction 3 is stored in the memory 6. Since the current address is not continuous with the address of instruction 2 which is not executed, the continuity detection circuit 14 outputs "discontinuous" at 1::. j・1:: Even if the program reference signal “pto” is received,
At the same time, the memory control circuit 18 to which “discontinuity” was applied
A “Previous command (order applied during period T3G”)
, 1/instruction (i.e., "opcode of instruction 2 that is not executed"), and if it is an opcode, do not change the write address WA and read address RA.
', l・i. Therefore, “” written at address 1 during period T3
fruit"";! t'L%(/'''''?s 2 (7):
t<°-H"t"tiHi6n"1.・"This becomes the opcode of the jump destination instruction 3, and the output of the memory 11 circuit 15A continues from period T3:
1 "Operation code of jump instruction 1" is output.
:1 Even if it is "discontinuous", if the previous instruction (instruction applied in period :3) is not an opcode, ;If it is 1 or "continuous", memory control circuit 1 white A will not operate. Then write address WA and read address locations c and t. a. , j56. , wow, tsuyu. Oh, yo. II□・1 Value is changed.

この動作によって“実行されない命令2のオペ]−ドは
記憶回路15Aの出力とはならない。
Due to this operation, the "operation of instruction 2 which is not executed" does not become an output of the memory circuit 15A.

期間T5においては、プログラム・リファレンス分離回
路12からはプログラム・リファレンス信号“′P°゛
が出力さる。オペコード検出回路13の出力は“L”で
ある。“命令3のオペランド゛′は゛ジャンプ先命令3
のオペコードパとメモリ6における番地が連続であるか
ら(第5図参照)連続検出回路14は゛連続”を出力し
、プログラム・リファレンス信号“P”が出力されてい
るために記憶¥1i111回路18Aは、書込アドレス
WAと読出アドレスRAを前回のプログラム・リファレ
ンス時(期間T4)とは反対の値に変更し、0番地に“
命令3のオペランド″を書込み、1番地からは期間T4
において書込まれた“ジャンプ先命令3のオペコード″
を読出し出力する。
During period T5, the program reference signal "'P°" is output from the program reference separation circuit 12. The output of the operation code detection circuit 13 is "L". 3
Since the opcode and the address in the memory 6 are consecutive (see FIG. 5), the continuity detection circuit 14 outputs "continuous", and since the program reference signal "P" is output, the memory \1i111 circuit 18A Change the write address WA and read address RA to the opposite values from the previous program reference (period T4), and write “
Writes the operand of instruction 3, and from address 1, period T4
“Operation code of jump destination instruction 3” written in
Read and output.

期間T6においては、プログラム・リファレンス分離回
路12からはプログラム・リファレンス信号“P′′が
出力される。オペコード検出回路13の出力は“H′′
である。命令4は命令3と連続しているから連続検出回
路14の出力は“連続°′である。期間T5と同様にし
て、入力された“命令4のオペコード” h< 1番地
に書込まれ、0番地からは期間T5で書込まれた“命令
3のオペランド″が出力される。
During period T6, the program reference signal "P'' is output from the program reference separation circuit 12. The output of the operation code detection circuit 13 is "H''
It is. Since instruction 4 is continuous with instruction 3, the output of the continuity detection circuit 14 is "continuous".Similarly to period T5, the input "operation code of instruction 4" is written to address h<1, From address 0, the "operand of instruction 3" written in period T5 is output.

このようにして、被測定マイクロプロセッサ5の接続さ
れたバスにブリフェッチ動作におけるBRA動作によっ
て生じた“実行されない命令2のオペコード″は記憶回
路15Aの出力とはならずエミュレータ本体部20には
送られないから、動作解析が容易となる。
In this way, the "opcode of unexecuted instruction 2" generated by the BRA operation in the brief fetch operation on the bus connected to the microprocessor 5 under test is not outputted from the storage circuit 15A, but is sent to the emulator main unit 20. Since there is no such thing, operation analysis becomes easy.

以上、第2図および第3図に示した動作を第4図のフロ
ーチャートにより、説明する。
The operations shown in FIGS. 2 and 3 will now be explained with reference to the flowchart in FIG. 4.

記憶回路15Aの入力である被測定マイクロプロセッサ
5の接続されたバスの信号は、命令のオペコードまたは
オペランドであるプログラム・リファレンスか否かをプ
ログラム・リファレンス分離回路12が判断する(ST
EP91)。
The program reference separation circuit 12 determines whether the signal on the bus connected to the microprocessor under test 5, which is an input to the storage circuit 15A, is a program reference that is an opcode or an operand of an instruction (ST
EP91).

プログラム・リファレンスであると判断されると(ST
EP91Y) 、プログラム・リファレンス信号Pがプ
ログラム・リファレンス分離回路12から出力される。
If it is determined that it is a program reference (ST
EP91Y), the program reference signal P is output from the program reference separation circuit 12.

プログラム・リファレンスでない場合には(STEP9
1N>、データ・リファレンスと判断し、プログラム・
リファレンス信号Pはプログラム・リファレンス分離回
路12から出力されない。
If it is not a program reference (STEP 9)
1N>, it is determined to be a data reference, and the program
Reference signal P is not output from program/reference separation circuit 12.

プログラム・リファレンスと判断されると(STEP9
1Y)、プログラム・リファレンスが連続か否かを連続
検出回路14が判断しく5TEP92)、連続な6 (
STEP92Y)、m込7ドレスWAと読出アドレスR
Aの前回のプログラム・リファレンス時からの変更を記
憶制御回路18Aが行なう。(STEP95)。不連続
ならば(STEP92N)、前の命令がオペコードか否
かを判断しく5TEP94)、オペコードでないなら(
STEP94N)書込アドレスWAと読出アドレスRA
を前回プログラム・リファレンスを検出した時とは反対
の値に変更する(STEP95)。
If it is determined to be a program reference (STEP 9)
1Y), the continuity detection circuit 14 determines whether the program reference is continuous or not. 5TEP92), continuous 6 (
STEP92Y), m-7 address WA and read address R
The storage control circuit 18A makes changes to A from the previous program reference. (STEP 95). If it is discontinuous (STEP92N), determine whether the previous instruction is an opcode (5TEP94), and if it is not an opcode (
STEP94N) Write address WA and read address RA
is changed to a value opposite to that when the program reference was detected last time (STEP 95).

前の命令を調べて、それがオペコードであったならば(
STEP94Y) 、書込アドレスWAおよび読出アド
レスRAは変更しない(STEP96)。
Examine the previous instruction and if it was an opcode (
STEP94Y), write address WA and read address RA are not changed (STEP96).

デー9°’J7yL、t″′1ffi“検出a h t
= s合11      :(STEP91響)、書込
アドレスWAのみを変更して読出アドレスRAと同じ値
とする(STEP93)・             
   :つぎに書込アドレスWAが示す記憶回路15A
      :、)。いヵ、ゎえい8゜い、8工、、9
□、   1し 、読出アドレスRAが示す記憶回路15Aの番地の内容
を読出し出力する(STEP98)。
Day 9°'J7yL, t'''1ffi'' detection a h t
= s match 11: (STEP 91 Symphony), change only the write address WA and make it the same value as the read address RA (STEP 93).
:Next, the memory circuit 15A indicated by the write address WA
:,). 8 degrees, 8 degrees, 9
□, 1, and reads and outputs the contents of the address of the memory circuit 15A indicated by the read address RA (STEP 98).

8′!1”15A、?)”Jj”antt<)、(Dr
@G“6   :令の順序通りにエミュレータ本体部2
0へ送出される(STEP99)。
8′! 1”15A,?)”Jj”antt<),(Dr
@G“6: Emulator main unit 2 in the order of commands
0 (STEP 99).

そこで次のバスの内容の分析に入り、以上に説    
 :明した動作がくり返される           
     :□ [発明の効果] 以上の説明から明らかなようにブリフェッチ動作によっ
てバス上の信号の順序が命令の順序通りF h < i
’ 6 、 * t;−・’Rh”f’*’)*@tf
i @ * hT°゛   [でも、不要な命令を排除
して、命令通りの順序に     1入れ替えてエミュ
レータ・ユニット部からエミュレータ本体部に信号を送
り表示するもので、不要な命令によって誤った処理作業
が開始されてしまうこともなくなり動作解析が容易とな
り、マイクロプロセッサのハードウェアおよびソフトウ
ェアの迅速なデバッグが可能となるので、本発明の効果
は極めて大きい。
Therefore, we will analyze the contents of the next bus and explain the above.
: The specified action is repeated.
:□ [Effect of the invention] As is clear from the above explanation, the order of signals on the bus is adjusted to the order of instructions by the brief fetch operation, so that F h < i
'6, *t;-・'Rh"f'*')*@tf
i @ * hT° The effects of the present invention are extremely large, since the operation analysis is facilitated and the hardware and software of the microprocessor can be quickly debugged.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の装匠の構成を示すブロック図、第2図
および第3図は第1図に示した本装置の動作説明図、第
4図は本装置における信号の処理される手順を示すフロ
ーチャート、第5図はメモリ6の内部構成を示す図であ
る。 5・・・被測定マイクロプロセッサ 6・・・メモリ      11・・・入力回路12・
・・プログラム・リファレンス分離回路13・・・オペ
コード検出回路 14・・・連続検出回路  15A・・・記憶回路18
A・・・記憶制御回路 19・・・エミュレータ・ユニット部 20・・・エミュレータ本体部。
Fig. 1 is a block diagram showing the configuration of the design of the present invention, Figs. 2 and 3 are explanatory diagrams of the operation of the device shown in Fig. 1, and Fig. 4 is a procedure for processing signals in the device. FIG. 5 is a flowchart showing the internal structure of the memory 6. 5... Microprocessor under test 6... Memory 11... Input circuit 12.
・Program/reference separation circuit 13 ・Operation code detection circuit 14 ・Continuity detection circuit 15A ・Storage circuit 18
A...Storage control circuit 19...Emulator unit section 20...Emulator main body.

Claims (2)

【特許請求の範囲】[Claims] (1)被測定マイクロプロセッサの接続されたバスから
、前記被測定マイクロプロセッサのアクセス対象となる
メモリをアクセスするアクセス信号およびデータ信号で
あるバス信号のうち、命令を書込んであるオペコードと
オペランドのいずれかを検出するためのプログラム・リ
ファレンスにより前記オペコードとオペランドのいずれ
かを検出したときには、その検出されたオペコードとオ
ペランドのいずれかを書込んである前記メモリにおける
番地が、前記命令の前の命令を書込んである前記メモリ
における番地に連続であるか否かを判断し、連続である
場合には、書込みをすべき書込番地と、読出番地のいず
れにも使用可能な2つの番地を有する記憶回路の書込番
地と読出番地を、前にプログラム・リファレンスによっ
てオペコードとオペランドのいずれかを検出したときの
書込番地と読出番地を入れ替えたものに変更し、前記バ
ス信号を前記変更後の書込番地に書込み、すでに書込ん
である情報を前記変更後の読出番地から読出し、 前記プログラム・リファレンスによってオペコードとオ
ペランドのいずれをも検出しなかったときには、前記記
憶回路の書込番地を変更して読出番地と同じくし、この
変更後の書込番地に前記バス信号を書込み、この書込番
地と同じである読出番地からこの書込まれた情報を読出
し、 前記連続であるか否かの判断において、不連続と判断し
た場合には、前の命令がオペコードであったか、オペラ
ンドであったかを調べ、オペコードであったなら、前記
記憶回路における書込番地と読出番地を変更せずに、書
込番地に書込みをし、読出番地からすでに書込まれてい
る情報を読出し、前記前の命令がオペコードであったか
オペランドであったかを調べた結果がオペランドであっ
た場合には、前記記憶回路の書込番地と読出番地を変更
して変更後の書込番地に印加されている前記バス信号を
書込み、変更後の読出し番地からすでに書込まれた情報
を読出すことを特徴とするマイクロプロセッサの動作解
析方法。
(1) Among bus signals that are access signals and data signals that access the memory to be accessed by the microprocessor under test from the bus connected to the microprocessor under test, the operation code and operand in which instructions are written are When either the opcode or operand is detected by the program reference for detecting either, the address in the memory where the detected opcode and operand are written is the instruction before the instruction. It is determined whether or not the addresses in the memory to which the data is written are consecutive, and if they are consecutive, there are two addresses that can be used as both the write address and the read address. The write address and read address of the memory circuit are changed to those obtained by swapping the write address and read address when either the opcode or operand was previously detected by the program reference, and the bus signal is changed to the one after the change. writes to the write address, reads the already written information from the changed read address, and when neither an opcode nor an operand is detected by the program reference, changes the write address of the memory circuit; Write the bus signal to the changed write address, making it the same as the read address, read the written information from the read address, which is the same as the write address, and determine whether or not it is continuous. If it is determined that the instruction is discontinuous, it is checked whether the previous instruction was an opcode or an operand, and if it is an opcode, the write address is changed without changing the write address and read address in the memory circuit. , reads the information already written from the read address, checks whether the previous instruction was an opcode or an operand, and if the result is an operand, the write address of the memory circuit and A microprocessor operation analysis method comprising changing a read address, writing the bus signal applied to the changed write address, and reading already written information from the changed read address.
(2)被測定マイクロプロセッサの接続されたバスから
、前記被測定マイクロプロセッサのアクセス対象となる
メモリをアクセスするための命令を書込まれたオペコー
ドとオペランドとデータ信号を含むバス信号をとり出す
ための入力手段と、前記オペコードとオペランドのいず
れかを検出したときにプログラム・リファレンス信号を
出力するためのプログラム・リファレンス分離手段と、
前記オペコードを検出するためのオペコード検出手段と
、 前記命令を書込んである前記メモリにおける番地が、前
記命令の前の命令を書込んである前記メモリにおける番
地に連続しているか不連続であるかを検出し連続信号お
よび不連続信号を出力するための連続検出手段と、 書込番地信号によって指示された書込番地に前記入力手
段の出力を書込み、読出番地信号によって指示された読
出番地に書込まれている情報を読出すための、前記書込
番地および前記読出番地のいずれにも使用可能な2つの
番地を有する記憶手段と、 前記プログラム・リファレンス信号と前記連続信号を受
けた場合は前記書込番地および読出番地を前回のプログ
ラム・リファレンスを検出したときとは反対に変更する
ための前記書込番地信号および読出し番地信号を出力し
、前記プログラム・リファレンス信号を受けない場合は
、前記書込番地を変更して前記読出番地と同一とするた
めの前記書込番地信号と読出番地信号を出力し、前記プ
ログラム・リファレンス信号と前記不連続信号とを受け
、前記オペコード検出手段が前の命令においてオペコー
ドを検出していた場合は、前記書込番地と読出番地を変
更しないための前記書込番地信号と読出番地信号を出力
し、前記プログラム・リファレンス信号と前記不連続信
号とを受け、前記オペコード検出手段が前の命令におい
てオペコードを検出していなかった場合は前記書込番地
と読出番地を前回のプログラム・リファレンスを検出し
たときとは反対に変更するための前記書込番地信号と読
出番地信号を出力する記憶制御手段とを含むエミュレー
タ・ユニット部と、 前記エミュレータ・ユニット部に含まれた前記記憶手段
の出力を受けて表示するためのエミュレータ本体部とを
具備することを特徴とするマイクロプロセッサの動作解
析装置。
(2) To extract, from the bus connected to the microprocessor under test, a bus signal containing an operation code, an operand, and a data signal in which an instruction for accessing the memory to be accessed by the microprocessor under test is written. input means, and program reference separation means for outputting a program reference signal when detecting either the opcode or the operand;
an operation code detection means for detecting the operation code; and whether the address in the memory where the instruction is written is continuous or discontinuous with the address in the memory where the instruction before the instruction is written. continuous detection means for detecting continuous signals and outputting continuous signals and discontinuous signals; and writing the output of the input means to the write address specified by the write address signal and to the read address specified by the read address signal. a storage means having two addresses that can be used as both the write address and the read address for reading the stored information; and when receiving the program reference signal and the continuous signal, The write address signal and the read address signal for changing the write address and read address in the opposite direction from when the previous program reference was detected are output, and when the program reference signal is not received, the write address signal and the read address signal are output. outputting the write address signal and read address signal for changing the write address to make it the same as the read address; receiving the program reference signal and the discontinuous signal; If an operation code is detected at , the write address signal and the read address signal are outputted so as not to change the write address and the read address, the program reference signal and the discontinuous signal are received, and the program reference signal and the discontinuous signal are received. If the opcode detection means has not detected an opcode in the previous instruction, the write address signal and the read address are used to change the write address and read address to the opposite from when the previous program reference was detected. A microcomputer comprising: an emulator unit section including a storage control means for outputting a signal; and an emulator main body section for receiving and displaying an output of the storage means included in the emulator unit section. Processor behavior analysis device.
JP60186463A 1985-08-24 1985-08-24 Microprocessor operation analysis method and device Pending JPS6246352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60186463A JPS6246352A (en) 1985-08-24 1985-08-24 Microprocessor operation analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60186463A JPS6246352A (en) 1985-08-24 1985-08-24 Microprocessor operation analysis method and device

Publications (1)

Publication Number Publication Date
JPS6246352A true JPS6246352A (en) 1987-02-28

Family

ID=16188907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60186463A Pending JPS6246352A (en) 1985-08-24 1985-08-24 Microprocessor operation analysis method and device

Country Status (1)

Country Link
JP (1) JPS6246352A (en)

Similar Documents

Publication Publication Date Title
JPS60159951A (en) Tracing system in information processing device
JPH0444973B2 (en)
JP2760228B2 (en) Microprocessor with built-in cache memory and its trace analyzer
JPH0581087A (en) Processor monitoring system
JPH0283749A (en) Microprocessor internal interrupt control method
JPS6246350A (en) Method and device for analyzing action of microprocessor
GB2258063A (en) Monitoring execution of a computer program to provide profile analysis
JPS63313244A (en) data processing equipment
JPS61290546A (en) Tracing system for microprogram controller
JPS6246351A (en) Method and device for analyzing action of microprocessor
JPH02281341A (en) Write data confirming method for debugging
JP2022015197A (en) In-circuit emulator device for debugging
JPH01253043A (en) Input/output controller
JPS63282533A (en) In-circuit emulator
JPH04213125A (en) Program debug method
JPS61123942A (en) Debug device for microprocessor
JPS605355A (en) Program route recording device
JPS6053892B2 (en) processing equipment
JPS5850051A (en) Program execution tracing system for debugging
JPS59202546A (en) Debugging device
JPS58134338A (en) Controlling system of digital computer
JPS6170644A (en) Program debugging system
JPS59161747A (en) Program analyzer
JPS62109139A (en) Method and device for analyzing working of microprocessor
JPH04284543A (en) Microcomputer program tracing device