JPS63318643A - Address display system - Google Patents

Address display system

Info

Publication number
JPS63318643A
JPS63318643A JP62156229A JP15622987A JPS63318643A JP S63318643 A JPS63318643 A JP S63318643A JP 62156229 A JP62156229 A JP 62156229A JP 15622987 A JP15622987 A JP 15622987A JP S63318643 A JPS63318643 A JP S63318643A
Authority
JP
Japan
Prior art keywords
address
logical address
logical
physical
base
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
JP62156229A
Other languages
Japanese (ja)
Inventor
Masayuki Fukazawa
正行 深澤
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.)
Hewlett Packard Japan Inc
Original Assignee
Yokogawa Hewlett Packard 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 Yokogawa Hewlett Packard Ltd filed Critical Yokogawa Hewlett Packard Ltd
Priority to JP62156229A priority Critical patent/JPS63318643A/en
Publication of JPS63318643A publication Critical patent/JPS63318643A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To unify an expression of an address to a logical address display and to observe, etc., information obtained by an emulator, by the logical address display, by providing a means for converting a physical address on a bus, to a logical address. CONSTITUTION:A given physical address P is checked by using adders 103-109, comparators 101, 111-117, and AND gates 119, 121. Subsequently, based on its result, by a logical address computer 123, the corresponding logical address L is obtained by using the physical address P and the contents bs1, bs2 of a base register. Also, the content (base address) BASE of the base register which has been used for generating its physical address are also outputted. Next, by comparing the address L with a logical address which has been stored in an emulator or a register in a host, an instruction is executed and an address of load/store of a data is monitored and various debugs can be executed. That is, an expression format of the address can be unified to a logical address display, and the debug work efficiency can be improved.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はマイクロプロセッサ・システム等のデバッグ時
におけるトレース結果表示中のアドレス表示方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an address display method during display of trace results during debugging of a microprocessor system or the like.

〔発明の技術的¥!?景及びその問題点〕近年、マイク
ロプロセッサのチップ内に論理アドレスを物理アドレス
に変換するためのメモリ・マネージメント・ユニット(
MMU)を設けることが多くなっている。このようなマ
イクロプロセッサを組込んだシステムのソフトウェア/
ハードウェアのデバッグ筈を行なう節にも、従来と同様
、ターゲット・システム中のマイクロプロセッサをエミ
ュレータと置換することにより、このターゲット・シス
テムの動作状態情報を収集したり、また指定したτψが
動作中に生起したU)点でシステムの動作を中断してそ
こに致るまでの過程を調べることは極めて有効である。
[Technical ¥ of invention! ? In recent years, memory management units (memory management units) for converting logical addresses into physical addresses have been developed in microprocessor chips.
MMU) is increasingly being installed. Software/software for systems incorporating such microprocessors
In the section where hardware is supposed to be debugged, as in the past, by replacing the microprocessor in the target system with an emulator, information on the operating status of this target system can be collected, and if the specified τψ is running. It is extremely effective to interrupt the operation of the system at point U), which occurs at point U, and examine the process leading up to that point.

従来方式によりエミュレータを用いてターゲット・シス
テムのプログラムの動作をトレースする際には、MMU
によってアドレス変換が行なわれるため、使用するアド
レス(たとえばブレーク・ポイントを指定するアドレス
等)は、実際にパス1:に現れるアドレスで・ある物理
アドレスとする必要があった。また、アセンブラが生成
するシンボル・テーブルを用い、アセンブラのソース・
コード1:に現れるシンボルを用いて命令やデータを指
定してトレース″!iを行なう所、inシンボリック・
デバッグにおいても、シンボル・テーブル中に登録され
る谷シンボルの表示を実アドレスとしておく必要があっ
た。あるいは、シンボル・テーブル中では論理アドレス
表示としておいても、トレース動作笠を開始する+li
lに必りなシンボルのアドレスの表示形式をソフトウェ
アで物理アドレス表示に変換しておく必要があった。
When tracing the operation of a target system program using an emulator using the conventional method, MMU
Since address translation is performed by , the address used (for example, an address specifying a break point, etc.) had to be an address that actually appears in path 1:, or a certain physical address. Also, by using the symbol table generated by the assembler, the assembler source
Code 1: where the in symbolic
Even during debugging, it was necessary to display the valley symbols registered in the symbol table as real addresses. Alternatively, start the trace operation even if it is displayed as a logical address in the symbol table.
It was necessary to use software to convert the display format of the symbol address necessary for l into a physical address display.

しかしながら、このようにして物理アドレス表示を用い
てトレース動作を行なわせた)1合には、トレース結果
が解りにくくなってしまうという問題がある。すなわち
、トレース結果の逆アセンブル表示においては、そのオ
ペランド部分がアドレスである場合その表現形式は当然
論理アドレス表示になるのに対して、バス上に現れたデ
ータ・アドレスや実行されたQI令のアドレス等の表現
形式はMMUによって変換されてバス上に実際に出力さ
れた物理アドレス表示になってしまう。このように、オ
ペランド部分のアドレスの表現形式と、それ以外の部分
のアドレスの表現形式が異なるため、両者が同じアドレ
スを指しているのかあるいはそうでないのかは一見した
だけではわからず、このため、デバッグ作叉の効率に悪
*Vを与えていた。
However, when a trace operation is performed using a physical address display in this manner, there is a problem that the trace result becomes difficult to understand. In other words, when displaying a disassembled trace result, if the operand part is an address, the expression format is naturally a logical address display, whereas the data address appearing on the bus or the address of an executed QI instruction is displayed as a logical address. Expression formats such as the following are converted by the MMU to represent the physical address actually output on the bus. In this way, since the expression format of the address in the operand part and the expression format of the address in the other parts are different, it is difficult to tell at first glance whether they both point to the same address or not. It gave a bad *V to the efficiency of debugging.

〔発明の目的〕 本発明はに述した従来技術の問題点を解消し、エミュレ
ータによって得られる情報を論理アドレス表示で観測等
できるようにすることを目的とする。
[Object of the Invention] It is an object of the present invention to solve the problems of the prior art described above, and to make it possible to observe information obtained by an emulator by displaying logical addresses.

〔発明の4!要〕 本発明の一実施例によれば、バス上の物理アドレスを論
理アドレスに変換する手段を設けることにより、トレー
ス笠のデバッグ動作を指示しまたその結果を出力する際
に、論理アドレス表示を用いることができるようにして
いる。
[Invention 4! Summary According to an embodiment of the present invention, by providing a means for converting a physical address on a bus into a logical address, it is possible to display a logical address when instructing a debugging operation of a trace cap and outputting the result. I am making it available for use.

〔発明の実施例] 本発明の実施例でトレースの対象となるマイクロプロセ
ッサ(以下、?iにマイクロプロセッサと称する)の論
理アドレス−物理アドレス変換は以ドのようにして行な
われる。
[Embodiment of the Invention] In the embodiment of the present invention, logical address-physical address conversion of a microprocessor (hereinafter referred to as microprocessor) to be traced is performed as follows.

マイクロプロセッサのプログラム・カウンタ(PC)は
16ビツトであるため、論理アドレス空間は64にバイ
トである。4ビツトの境界レジスタBRI、BR2を用
いてこの論理アドレス空間を3つの領域AO1AI%A
2に分割する。すなわち、論理アドレスLが与えられた
として・L(brl      4  領域AObrl
≦L<br2 +  領域AI b「2≦L     → 領域A2 (brl、br2は夫々境界レジスタ BRI、BH3
の内容を12ビツト左シフトしたものである) 一力、物理アドレスは20ビツトであるため、物理アド
レス空間は1024にバイトである。論理アドレスを領
域AO1AI、A2毎に物理アドレス空間にマツピング
するために、8ビツトのベース・レジスタBS1.BS
2が設けられる。
Since the microprocessor's program counter (PC) is 16 bits, the logical address space is 64 bytes. This logical address space is divided into three areas AO1AI%A using 4-bit boundary registers BRI and BR2.
Divide into 2. That is, given a logical address L, L(brl 4 area AObrl
≦L<br2 + area AI b ``2≦L → area A2 (brl and br2 are boundary registers BRI and BH3, respectively)
(The contents of the address are shifted to the left by 12 bits.) Since the physical address is 20 bits, the physical address space is 1024 bytes. In order to map the logical address to the physical address space for each area AO1AI, A2, 8-bit base registers BS1. B.S.
2 is provided.

す−えられた論理アドレスLが屈する領域に応じて以ド
のようなマツピングが行なわれるニー理アドレスL 物
理アドレスP 領域AO→ L    (領域AO゛)11域AI  
+ L+bsl(領域A1′)領域A2  → L+b
s2(領域A2°)(bsl、bs2は夫々ベース・レ
ジスタBSI、BS2の内容を12ビツト左シフトした
ものである)このマツピングを図式的に表現すれば第2
図に示す通りになる。
The following mapping is performed according to the area to which the selected logical address L falls. Physical address L Physical address P Area AO → L (Area AO゛) 11 area AI
+ L+bsl (area A1') area A2 → L+b
s2 (area A2°) (bsl and bs2 are the contents of base registers BSI and BS2 shifted to the left by 12 bits, respectively) If this mapping is expressed graphically, the second
The result will be as shown in the figure.

マイクロプロセッサ内で上述のようなアドレス変換が行
なわれるため、命令フェッチやデータのロード/ストア
のためにバス上に恨えられるアドレスは物理アドレス表
示となっている0本実施例においては、論理アドレスで
トレースを行なうため、バスLのこのような物理アドレ
スを論理アドレスに変換する回路を設ける。このような
回路の構成例の概念的ブロック図を第1図に示す。
Since the above-mentioned address conversion is performed within the microprocessor, addresses that are stored on the bus for instruction fetches and data loads/stores are represented as physical addresses.In this embodiment, logical addresses are In order to perform tracing on the bus L, a circuit is provided to convert such a physical address of the bus L into a logical address. A conceptual block diagram of an example of the configuration of such a circuit is shown in FIG.

第1図においては、与えられた物理アドレスPが第2図
に示すような物理アドレス空間中のいずれの領域に入っ
ているかを加算冨103〜109、比較器101.11
1〜117、ANDゲートl19.121を用いて調べ
る。その結果に基き論理アドレス計H′JA123は、
物理アドレスP、ベース・レジスタの内容bsl、bs
2を用いて対応する論理アドレスLを得る。また、その
物理アドレスを生成するのに用いられたベース・レジス
タの内容(ベース・アドレス)BASEも出力される。
In FIG. 1, additions 103 to 109 and comparators 101 to 11 determine which area in the physical address space a given physical address P falls in as shown in FIG.
1 to 117, check using AND gate 119.121. Based on the result, the logical address meter H'JA123
Physical address P, base register contents bsl, bs
2 to obtain the corresponding logical address L. The contents of the base register (base address) BASE used to generate the physical address are also output.

なお、境界レジスタやベース・レジスタに一二込みが行
な才〕れると、そのレジスタのアドレスや;り込みデー
タがチップ外にも同時に出力されるので、これをチップ
外に設けたアドレス・デコーダで検出してラッチしてお
く。上述のbrl、b「2、bsl、bs2は実際には
このようにしてラッチされたデータである。また、境界
レジスタやベース・レジスタの内容によっては、物理ア
ドレスPから論理アドレスLへの逆変換が一意に定まら
ない場合があるが、そのような場合に備えて領域間に優
先順位を定めておく。また、与えられた物理アドレスP
がいずれの領域にも属さない場合(第2図の物理アドレ
ス空間の斜FA部)には、エラーを通知するようになっ
ている。また、DRAMのリフレッシュやDMA用にパ
スLにIj、えられるアドレスは無視するように構成し
ても良い。
Note that when a boundary register or base register is loaded, the address of that register and data loaded are simultaneously output outside the chip. Detect and latch it. The above brl, b'2, bsl, and bs2 are actually data latched in this way. Also, depending on the contents of the boundary register and base register, the physical address P is inversely converted to the logical address L. may not be determined uniquely, but in preparation for such cases, priorities are established between areas.Also, given physical address P
If it does not belong to any area (the diagonal FA portion of the physical address space in FIG. 2), an error is notified. Further, the configuration may be such that the address Ij, which is provided to the path L for DRAM refresh or DMA, is ignored.

このようにして(ツられた論理アドレスLをエミュレー
タあるいはホスト内のレジスタに格納しておいた論理ア
ドレスと比較することにより、命令実行やデータのロー
ド/ストアのアドレスを監視してマイクロプロセッサ開
発システムで周知の各種のデバッグ動作をさせることが
できる。
In this way, the microprocessor development system can monitor the addresses for instruction execution and data load/store by comparing the logical address L that has been extracted with the logical address stored in a register in the emulator or host. You can perform various well-known debugging operations.

さて、本実施例で用いられるアセンブラは、シンボリッ
ク・デバッグ用等に用いられるシンボル・テーブルをシ
ンボルとそれに対応する論理アドレス(およびベース・
アドレス)の対の形で生成する。たとえば、表1に示す
アセンブル・リストに対応して、表2に示す内容を含む
シンボル・テーブルが得られる。
The assembler used in this example stores symbols and their corresponding logical addresses (and base addresses) in a symbol table used for symbolic debugging.
address) in the form of a pair. For example, corresponding to the assemble list shown in Table 1, a symbol table including the contents shown in Table 2 is obtained.

表  1 1 sample 3  0Rに oooω0H 0000C31ω0 4LABELI JP LABE
L27  0RC101■OH 10003AFOOO9L^8EL2 LD A、(L
ABEL3)10Q3C3100010JP LABE
L212       0RG  31FOOOHFO
OD 55      13 L^8EL3    D
EFB 551(表  2 LABELI 0OOOOOH LABEL2101000H LABEL331FOOOH (ただし、表1中のORG疑似命令、表2中のアドレス
部における6桁の16進数の上位2桁がベース・アドレ
ス、下位4桁が論理アドレスである。また、境界レジス
タBRI、BR2、ベース・レジスタBS1.BS2の
設定のためのコードは表1中には示していないが、別途
行なう。〕、表1に示したプログラムについて、シンボ
ルLABEL2近傍での実行情況を調べるためのトレー
スの指示 trace  about  LABEL2をマイクロ
プロセッサ開発システムに与えた場合のトレース結果の
出力のリストを表3に示す。表3で最も左のカラムはこ
のリスト上で、指定されたシンボルに対応する行からの
相対行番号、次の2つのカラムはパス上の物理アドレス
からの逆変換で′tNjられたベース・アドレスおよび
論理アドレス、次はパス上のデータ、次はパス上のデー
タの種類(opコード、オペランド、書込み/読出しデ
ータ)に応じた適切な表示である。
Table 1 1 sample 3 0R oooω0H 0000C31ω0 4LABELI JP LABE
L27 0RC101■OH 10003AFOOO9L^8EL2 LD A, (L
ABEL3) 10Q3C3100010JP LABE
L212 0RG 31FOOOHFO
OD 55 13 L^8EL3 D
EFB 551 (Table 2 LABELI 0OOOOOH LABEL2101000H LABEL331FOOOH (However, the upper two digits of the 6-digit hexadecimal number in the ORG pseudo-instruction in Table 1 and the address field in Table 2 are the base address, and the lower four digits are the logical address. In addition, the code for setting the boundary registers BRI, BR2, and base registers BS1 and BS2 is not shown in Table 1, but is performed separately.], Executing the program shown in Table 1 near symbol LABEL2 Table 3 shows a list of output trace results when the trace instruction trace about LABEL2 is given to the microprocessor development system to investigate the situation. Relative line number from the line corresponding to , the next two columns are the base address and logical address converted by 'tNj from the physical address on the path, next is the data on the path, next is the data on the path This is an appropriate display depending on the type (op code, operand, write/read data).

表  3 1ine#   address  ape/data
  mnenonic  opcode  or  5
tatus   time、窒■撃≠■奄魔■ −OQ3ω0000C3JP1ωO1,us−0020
0000100operand  1. uS()01
00000210    operand  1. u
Sabout 101ω03A  LDA、(FOOD
I    1. uS4()01101ωl QQ  
  opcrand  1. uS4002101ω2
 FQ    operand  1. us4003
31FOO055datarcad  1. uS40
04101ω3C3JPlooO1、uS$00510
100400    operand  1. us4
00610100510    operand  1
. uS表3において、たとえばaboutと表示され
た行ではAレジスタへの論理アドレスFOOOからのバ
イト・ロードを行なっているが、このアドレシング動作
はバスt;でも相対行番号+003でFoooという形
で論理アドレス表示されていることによって極めて容易
に確認できる。このアドレスは実際には物理アドレス4
0000)(とじてバストに現れているが、これをその
まま表示したのでは対応関係がわかりにくくなる。
Table 3 1ine# address ape/data
mneonic opcode or 5
tatus time, nit ■geki≠■Amma■ -OQ3ω0000C3JP1ωO1, us-0020
0000100operand 1. uS()01
00000210 operand 1. u
Sabout 101ω03A LDA, (FOOD
I 1. uS4()01101ωl QQ
opcrand 1. uS4002101ω2
FQ operand 1. us4003
31FOO055datarcad 1. uS40
04101ω3C3JPlooO1, uS$00510
100400 operand 1. us4
00610100510 operand 1
.. In uS Table 3, for example, in the line labeled about, a byte is loaded from the logical address FOOO to the A register, but this addressing operation is performed on the bus t; It can be confirmed very easily by the fact that it is displayed. This address is actually physical address 4
0000) (appears on the bust, but if this is displayed as is, the correspondence will be difficult to understand.

当然ながら、本発明は上述の実施例には限定されるもの
ではなく、各種の変形を包含する。たとえばアドレスの
逆変換のための第1図に示す回路は、速度向−1:や部
品数低減等のために池の形式としても良い。また、アド
レス変換の方式も第2図に示すもの以外にも多t1なも
のがある。また、マイクロプロセッサ開発システム算を
用いたデバッグ動作には]:で述べた以外にも各種の手
法がある。
Naturally, the present invention is not limited to the above-described embodiments, but includes various modifications. For example, the circuit shown in FIG. 1 for inverse address conversion may be in the form of a circuit for speed direction -1: and for reducing the number of parts. Furthermore, there are many address conversion methods other than the one shown in FIG. 2. In addition, there are various methods for debugging operations using microprocessor development system calculations other than those described above.

このような多様な変形に対しても本発明はその有効性を
失なわない。
Even with such various modifications, the present invention does not lose its effectiveness.

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

以上説明した様に、本発明によれば、デバッグ作業中に
用いるアドレスの表現形式を論理アドレス表示に統一す
ることができるので、使用者が物理・論理アドレス表示
間の対応に注意をはらう必要がなくμす、デバッグ作業
の効率が大きく向上する。たとえば、トレース結果のリ
スト中の逆アセンブル部分とパス上に現れたアドレスを
示す部分がともに論理アドレス表示になるため、これら
の対応をとりやすくなる。
As explained above, according to the present invention, the address expression format used during debugging can be unified to the logical address display, so the user does not have to pay attention to the correspondence between the physical and logical address displays. This greatly improves the efficiency of debugging. For example, since both the disassembled part in the trace result list and the part indicating addresses appearing on the path are displayed as logical addresses, it becomes easier to correspond between them.

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

第1図は本発明の一実施例における、論理アドレスを物
理アドレスに変換する部分の構成例を説明するための図
、m2図は論理アドレスと物理アドレスの対応関係の例
を説明する図である。 103〜109:加算器
Figure 1 is a diagram for explaining an example of the configuration of a part that converts a logical address into a physical address in an embodiment of the present invention, and Figure m2 is a diagram for explaining an example of the correspondence between logical addresses and physical addresses. . 103-109: Adder

Claims (1)

【特許請求の範囲】[Claims] ターゲット・システムの動作に基いて獲得された物理ア
ドレスを論理アドレス表示に変換する手段を設けて成る
マイクロプロセッサ開発装置のアドレス表示方式。
An address display method for a microprocessor development device comprising means for converting a physical address obtained based on the operation of a target system into a logical address display.
JP62156229A 1987-06-22 1987-06-22 Address display system Pending JPS63318643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62156229A JPS63318643A (en) 1987-06-22 1987-06-22 Address display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62156229A JPS63318643A (en) 1987-06-22 1987-06-22 Address display system

Publications (1)

Publication Number Publication Date
JPS63318643A true JPS63318643A (en) 1988-12-27

Family

ID=15623184

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62156229A Pending JPS63318643A (en) 1987-06-22 1987-06-22 Address display system

Country Status (1)

Country Link
JP (1) JPS63318643A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01134636A (en) * 1987-11-20 1989-05-26 Hitachi Ltd Data processing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52130532A (en) * 1976-04-27 1977-11-01 Fujitsu Ltd Address conversion system
JPS5311536A (en) * 1976-07-20 1978-02-02 Fujitsu Ltd Memory table index control system
JPS57100545A (en) * 1980-12-15 1982-06-22 Mitsubishi Electric Corp Debug device
JPS59154554A (en) * 1983-02-24 1984-09-03 Omron Tateisi Electronics Co Debugging device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52130532A (en) * 1976-04-27 1977-11-01 Fujitsu Ltd Address conversion system
JPS5311536A (en) * 1976-07-20 1978-02-02 Fujitsu Ltd Memory table index control system
JPS57100545A (en) * 1980-12-15 1982-06-22 Mitsubishi Electric Corp Debug device
JPS59154554A (en) * 1983-02-24 1984-09-03 Omron Tateisi Electronics Co Debugging device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01134636A (en) * 1987-11-20 1989-05-26 Hitachi Ltd Data processing device

Similar Documents

Publication Publication Date Title
US4205370A (en) Trace method and apparatus for use in a data processing system
US4954942A (en) Software debugging system for writing a logical address conversion data into a trace memory of an emulator
US4347565A (en) Address control system for software simulation
US7996686B2 (en) Branch trace methodology
JP5376509B2 (en) Execution history trace method
JP6195572B2 (en) Computer program, method and system for determining the status of runtime instrumentation control
KR960011613A (en) Data processing device
JP2015515654A (en) Converting program event recording events to runtime instrumentation events
JPH0689200A (en) Debug system and method
JP2005317023A (en) Breakpoint logic unit, debug logic, and breakpoint method for data processing apparatus
KR900004291B1 (en) A method and apparatus for coordinating exceution of an instruction by a processor
BR112013031826B1 (en) method and system of processing a start command in a computing environment
CN111367742A (en) Method, device, terminal and computer readable storage medium for debugging MVP processor
US7043717B2 (en) Debugging apparatus and method
JPS63318643A (en) Address display system
Bass et al. A perspective on microcomputer software
JP2557366B2 (en) Input / output procedure converter
WO2024069772A1 (en) Analysis device, analysis method, and analysis program
JP2915944B2 (en) Coverage measurement method and microcomputer
JP3398178B2 (en) Simulator
JPS62279438A (en) Tracking circuit
JP2923570B2 (en) In-circuit emulator and microprocessor
Lai et al. Fast race detection and profiling framework for heterogeneous system
US7406406B2 (en) Instructions to load and store containing words in a computer system emulator with host word size larger than that of emulated machine
JPH01145740A (en) Emulator for multi-process