JP3177131B2 - Electronic circuit analyzer - Google Patents

Electronic circuit analyzer

Info

Publication number
JP3177131B2
JP3177131B2 JP23232795A JP23232795A JP3177131B2 JP 3177131 B2 JP3177131 B2 JP 3177131B2 JP 23232795 A JP23232795 A JP 23232795A JP 23232795 A JP23232795 A JP 23232795A JP 3177131 B2 JP3177131 B2 JP 3177131B2
Authority
JP
Japan
Prior art keywords
electronic circuit
target
computer
program
interface unit
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
JP23232795A
Other languages
Japanese (ja)
Other versions
JPH0981412A (en
Inventor
高洋 千葉
Original Assignee
帝人製機株式会社
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 帝人製機株式会社 filed Critical 帝人製機株式会社
Priority to JP23232795A priority Critical patent/JP3177131B2/en
Publication of JPH0981412A publication Critical patent/JPH0981412A/en
Application granted granted Critical
Publication of JP3177131B2 publication Critical patent/JP3177131B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロプロセッ
サ(MPU)を搭載した電子回路の動作解析装置に関
し、詳しくは、複数の電子回路の動作解析、又は、複数
のMPUを搭載する一つの電子回路の動作解析に適用で
きる新規な装置に関する。近年、様々な分野でMPUを
搭載した高機能な電子機器が作られるようになってき
た。ソフトを書き込んだROM(read only memory)を
交換するだけで、容易にシステムの改修や機能変更等を
行なうことができ、きわめて柔軟性にすぐれたシステム
を開発できるからである。ところで、こうした電子回路
にあっては、その高機能さゆえに、ハードウエア及びソ
フトウエアのデバッグが相当に困難であり、何らかのデ
バック支援装置が不可欠である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an operation analysis apparatus for an electronic circuit equipped with a microprocessor (MPU), and more particularly, to an operation analysis of a plurality of electronic circuits or one electronic circuit equipped with a plurality of MPUs. The present invention relates to a novel device that can be applied to motion analysis. In recent years, high-performance electronic devices equipped with an MPU have been produced in various fields. This is because, simply by replacing the ROM (read only memory) in which the software is written, the system can be easily modified or the functions can be changed, and a highly flexible system can be developed. By the way, in such an electronic circuit, debugging of hardware and software is considerably difficult due to its high functionality, and some kind of debugging support device is indispensable.

【0002】[0002]

【従来の技術】この種の支援装置としては、従来から、
デバッグ対象の電子回路(以下「ターゲット」と言う)
を擬似的に実行するインサーキットエミュレータ(以下
「ICE」)や、ROMインサーキットデバッガーなど
が知られている。例えば、ICEは、ターゲット側のM
PUの代わりにICE側のMPUを動作させ、このMP
Uの動作内容を逐一エミュレータソフトウエアで追跡・
監視することによって、ターゲットの動作状態を総合的
に判定する。
2. Description of the Related Art As this kind of support device, conventionally,
Electronic circuit to be debugged (hereinafter referred to as "target")
An in-circuit emulator (hereinafter referred to as "ICE") that simulates the execution of a program, a ROM in-circuit debugger, and the like are known. For example, ICE is the target side M
The MPU on the ICE side operates instead of the PU, and this MP
The operation of U is traced by emulator software one by one.
By monitoring, the operating state of the target is comprehensively determined.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、かかる
従来の支援装置にあっては、ターゲット側のMPUと支
援装置側のMPUとが一対一で対応しているため、例え
ば、複数のターゲット(電子回路)の動作解析を同時・
並行的に行う場合には、ターゲットと同数の支援装置を
必要とし、又は、一つのターゲットであっても、そのタ
ーゲットに複数のMPU(マルチMPU)が搭載されて
いる場合には、すべてのMPUに対する動作解析を行う
ことができないという問題点があった。
However, in such a conventional support device, since the MPU on the target side and the MPU on the support device correspond one-to-one, for example, a plurality of targets (electronic circuits) are required. )
In the case of performing the processing in parallel, the same number of support devices as the target is required, or when a single target is equipped with a plurality of MPUs (multi-MPU), all the MPUs are required. There is a problem that the motion analysis cannot be performed for the

【0004】そこで、本発明は、複数の電子回路の動作
解析、又は、複数のMPUを搭載する一つの電子回路の
動作解析に適用できる新規な装置の提供を目的とする。
[0004] Therefore, an object of the present invention is to provide a novel apparatus which can be applied to the operation analysis of a plurality of electronic circuits or the operation analysis of one electronic circuit having a plurality of MPUs.

【0005】[0005]

【課題を解決するための手段】本発明は、ターゲットM
PUを搭載した動作解析対象の電子回路を接続するn個
のインターフェイス部と、前記インターフェイス部にア
クセスする制御手段と、前記インターフェイス部と前記
制御手段とを直接接続するシステムバスと、を備え、前
記インターフェイス部は、前記制御手段が前記システム
バスを介してアクセスすると共に前記ターゲットMPU
がアクセスしターゲットMPUで実行するプログラム及
び該プログラムの実行に必要な各種データ並びに前記タ
ーゲットMPUの実行結果を更新可能に記憶する記憶手
段と、前記制御手段がセットすると共に前記ターゲット
MPUがリセットするフラグを含むモードレジスタとを
有し、前記制御手段は、前記インターフェイス部の前記
記憶手段に前記プログラム及び前記データを転送すると
共に、前記フラグをセットすることによって前記ターゲ
ットMPUによる各転送プログラムの実行開始を指令
し、かつ、前記ターゲットMPUが前記フラグをリセッ
トするまで待機し、前記フラグがリセットされた前記イ
ンターフェイス部の前記記憶手段から前記実行結果を読
み込んで評価することを特徴とする。
According to the present invention, a target M
N units for connecting electronic circuits to be analyzed with PU
Interface section and the interface section
Access means, the interface unit and the
A system bus directly connected to the control means.
The interface unit may be configured such that the control unit is configured to control the
Access via a bus and the target MPU
And the programs that are accessed and executed by the target MPU
And various data necessary to execute the program and the
A storage device that stores the result of execution of a target MPU in an updatable manner
A step and the target set by the control means.
A mode register including a flag reset by the MPU;
And the control unit includes the interface unit.
When the program and the data are transferred to storage means
Together, the target is set by setting the flag.
Command to start execution of each transfer program by MPU
And the target MPU resets the flag.
Wait for the flag to reset and the flag is reset.
The execution result is read from the storage unit of the interface unit.
It is characterized by including and evaluating .

【0006】これによれば、n個のインターフェイス部
に所要のプログラムやデータを転送し、該プログラムの
実行開始を指令するだけで、n個のインターフェイス部
を介してn個のターゲットMPUを同時・並行的に動作
させることができ、各実行結果を制御手段に読み込んで
評価解析することができる。したがって、複数の電子回
路の動作解析は勿論のこと、複数のMPUを搭載する一
つの電子回路の動作解析も可能になる。
[0006] According to this, by simply transferring a required program or data to the n interface units, and instructing the start of the execution of the program, n target MPUs can be simultaneously and simultaneously transmitted through the n interface units. They can be operated in parallel, and each execution result can be read into the control means and evaluated and analyzed. Therefore, it is possible to analyze not only the operation of a plurality of electronic circuits but also the operation of one electronic circuit having a plurality of MPUs.

【0007】又は、ネットワークを介して複数のコンピ
ュータを接続し、該複数のコンピュータのうちの少なく
とも一つのコンピュータをリモートマシンとし、該リモ
ートマシンを除く他のコンピュータをローカルマシンと
し、各ローカルマシンに動作解析対象の電子回路の通信
を接続するとともに、前記ローカルマシンが有する記
憶手段を前記リモートマシンの仮想ドライブに割り付
け、前記リモートマシンから各ローカルマシンをアクセ
スすることにより、前記電子回路の動作解析を遠隔制御
するようにすれば、遠く離れた場所から動作解析を行う
ことができるから好ましい。
Alternatively, a plurality of computers are connected via a network, at least one of the plurality of computers is used as a remote machine, and other computers except the remote machine are used as local machines, and each local machine operates. Communication of the electronic circuit to be analyzed
With connecting parts, allocates memory means the local machine has a virtual drive of the remote machine, by accessing the respective local machine from the remote machine, if the operation analysis of said electronic circuit so as to remotely control This is preferable because the motion analysis can be performed from a remote place.

【0008】[0008]

【発明の実施の形態】以下、本発明の実施例を図面に基
づいて説明する。図1〜図3は本発明に係る電子回路解
析装置の一実施例を示す図である。まず、構成を説明す
る。図1において、1はホストコンピュータ(マッピン
グ手段及び制御手段)、2はホストコンピュータのシス
テムバス、3はシステムバスに接続された外部スロット
(接続部)である。
Embodiments of the present invention will be described below with reference to the drawings. 1 to 3 are views showing an embodiment of an electronic circuit analysis device according to the present invention. First, the configuration will be described. In FIG. 1, 1 is a host computer (mapping unit and control unit), 2 is a system bus of the host computer, and 3 is an external slot (connection unit) connected to the system bus.

【0009】ホストコンピュータ1は、少なくともディ
ジタルコンピュータの4要素(演算部、主記憶部、入出
力部及び制御部)を備え、アーキテクチャに対応したO
S(オペレーティングシステム)の元で、任意のアプリ
ケーションプログラムを実行するもの(パーソナルコン
ピュータやワークステーション等)である。なお、本実
施例のアプリケーションプログラムは、n個の電子回路
の動作解析、又は、n個のMPUを搭載する一つの電子
回路の動作解析を行う「電子回路解析プログラム」であ
る。但し、nは1又は1以上の整数であるが、その最大
値は外部スロット3のスロット数でハード的に制限され
る。
The host computer 1 has at least four elements of a digital computer (arithmetic unit, main storage unit, input / output unit, and control unit), and is compatible with an architecture.
It executes an arbitrary application program under S (operating system) (such as a personal computer or a workstation). Note that the application program of the present embodiment is an “electronic circuit analysis program” that analyzes the operation of n electronic circuits or the operation of one electronic circuit equipped with n MPUs. Here, n is 1 or an integer of 1 or more, but the maximum value is limited by the number of external slots 3 in terms of hardware.

【0010】システムバス2は、ホストコンピュータ1
のCPUに接続された内部バスであり、複数本のアドレ
ス線2A、複数本のデータ線2D及び複数本のコントロ
ール線2Cから構成された、例えば、ISAバス、PC
Iバス、VLバス、Cバス等である。各線の本数はホス
トコンピュータ1のアーキテクチャによって決まる。な
お、本実施例ではシステムバス2を使用しているが、こ
れは、使いやすいからである。システムバス2は、図1
に示すように、外部スロット3によって実装されたオプ
ションボード(インターフェイス部)4、5とホストコ
ンピュータ1とを直接接続する。
The system bus 2 is connected to the host computer 1
, An internal bus connected to the CPU, and composed of a plurality of address lines 2A, a plurality of data lines 2D, and a plurality of control lines 2C, for example, an ISA bus, a PC
An I bus, a VL bus, a C bus and the like. The number of each line is determined by the architecture of the host computer 1. In the present embodiment, the system bus 2 is used, because it is easy to use . The system bus 2 is shown in FIG.
As shown in the figure, the option
Board (interface part) 4, 5 and host
Computer 1 directly.

【0011】外部スロット3は、システムバス2を利用
する様々なオプションボードを実装するための拡張スロ
ットであり、本実施例では、動作解析の対象となる電子
回路とのインターフェース部として機能するn個(簡単
化のためにn=2)のオプションボード(以下「第1の
ボード4、第2のボード5」と言う)を実装する。な
お、ボードとは、一般に、サイズやコネクタが規格化さ
れたプリント基板状のものを指すが、本明細書ではこれ
に限定されない。カードタイプ(典型的にはPCMCI
Aカード)のものであってもよい。
The external slot 3 is an expansion slot for mounting various option boards using the system bus 2. In the present embodiment, the external slot 3 functions as an interface with an electronic circuit to be analyzed. (N = 2 for simplicity) optional boards (hereinafter, referred to as “first board 4 and second board 5”) are mounted. Note that a board generally refers to a printed board having a standardized size and connector, but is not limited to this in the present specification. Card type (typically PCMCI
A card).

【0012】ボードの実装数は、外部スロット3の物理
的なスロット数で決まる。スロット数は、動作解析の電
子回路の数を制限するから、また、動作解析以外の他の
用途(例えば増設メモリボード)にも使用されるから、
できるだけ多くするのが望ましい。第1のボード4は、
モードレジスタ4aとエミュレーションラム(記憶手
段)4bを含むと共に、複数本のアドレス線6A、複数
本のデータ線6D及び複数本のコントロール線6Cから
なる第1のケーブル6を介して第1の電子回路7に接続
されており、同様に、第2のボード5は、モードレジス
タ5aとエミュレーションラム(記憶手段)5bを含む
と共に、複数本のアドレス線8A、複数本のデータ線8
D及び複数本のコントロール線8Cからなる第2のケー
ブル8を介して第2の電子回路9に接続されている。
The number of boards mounted is determined by the number of physical external slots 3. Since the number of slots limits the number of electronic circuits for operation analysis, and is used for other purposes other than operation analysis (for example, an additional memory board),
It is desirable to do as much as possible. The first board 4
A first electronic circuit includes a mode register 4a and an emulation ram (storage means) 4b, and a first electronic circuit via a first cable 6 including a plurality of address lines 6A, a plurality of data lines 6D, and a plurality of control lines 6C. Similarly, the second board 5 includes a mode register 5a and an emulation ram (storage means) 5b, a plurality of address lines 8A, and a plurality of data lines 8a.
It is connected to a second electronic circuit 9 via a second cable 8 composed of D and a plurality of control lines 8C.

【0013】エミュレーションラム4b(5b)は、R
AM(random access memory)であり、通常は、システ
ムバス2を介してホストコンピュータ1からアクセスさ
れるが、モードレジスタ4a(5a)内の「解析モード
フラグ」がセットされている間は、第1のケーブル6
(第2のケーブル8)を介して第1の電子回路7(第2
の電子回路9)からアクセスされるようになっている。
なお、解析モードフラグのセットは、ホストコンピュー
タ1によって行われ、リセットは、一連の解析シーケン
スを終了した第1の電子回路7(第2の電子回路9)に
よって行われる。
The emulation ram 4b (5b)
This is an AM (random access memory), which is normally accessed from the host computer 1 via the system bus 2. However, while the "analysis mode flag" in the mode register 4a (5a) is set, the first Cable 6
(Second cable 8) through the first electronic circuit 7 (second
From the electronic circuit 9).
The setting of the analysis mode flag is performed by the host computer 1, and the reset is performed by the first electronic circuit 7 (second electronic circuit 9) that has completed a series of analysis sequences.

【0014】図2は本実施例の電子回路解析装置におけ
るメモリマップである。10はホストコンピュータ1の
メモリマップ(以下「ホストマップ」と言う)、11は
第1の電子回路7のメモリマップ(以下「第1のマッ
プ」)、12は第2の電子回路9のメモリマップ(以下
「第2のマップ」と言う)である。ホストマップ10
は、OSやアプリケーションプログラム(電子回路解析
プログラム)のためのシステム・ユーザ領域10aと、
複数のターゲット領域10b、10cに分けられてお
り、ターゲット領域10b、10cの数は、外部スロッ
ト3に実装されたボードの数(ここでは2個)に対応
し、各ターゲット領域10b、10cのサイズはエミュ
レーションラム4b(5b)の容量に対応する。一のタ
ーゲット領域10cは第1のボード4のエミュレーショ
ンラム4aをマッピングしたもの、また、二のターゲッ
ト領域10bは第2のボード5のエミュレーションラム
5bをマッピングしたものである。なお、図では、各タ
ーゲット領域10b、10cのサイズ(エミュレーショ
ンラム4b、5bの容量)を便宜的に1Mバイトとして
いる。すなわち、特に限定しないが、500000
(H)からの1Mバイトと、600000(H)からの
1Mバイトを、各ターゲット領域10b、10cに割当
てている。
FIG. 2 is a memory map in the electronic circuit analyzer of this embodiment. 10 is a memory map of the host computer 1 (hereinafter, referred to as “host map”), 11 is a memory map of the first electronic circuit 7 (hereinafter, “first map”), and 12 is a memory map of the second electronic circuit 9 (Hereinafter referred to as “second map”). Host Map 10
Is a system user area 10a for an OS and an application program (electronic circuit analysis program),
The target areas 10b and 10c are divided into a plurality of target areas 10b and 10c, and the number of target areas 10b and 10c corresponds to the number of boards mounted in the external slot 3 (here, two), and the size of each target area 10b and 10c Corresponds to the capacity of the emulation ram 4b (5b). One target area 10c maps the emulation ram 4a of the first board 4, and the second target area 10b maps the emulation ram 5b of the second board 5. In the figure, the size of each of the target areas 10b and 10c (the capacity of the emulation rams 4b and 5b) is set to 1 Mbyte for convenience. That is, although not particularly limited, 500,000
One megabyte from (H) and one megabyte from 600,000 (H) are allocated to each target area 10b, 10c.

【0015】一方、第1のマップ11や第2のマップ1
2の構造は、第1及び第2の電子回路7、9のアーキテ
クチャによって決まるが、ここでは、第1の電子回路7
のターゲットMPUを「8086」、第2の電子回路9
のターゲットMPUを「68000」と仮定し、図示の
ようなマップ構造を想定する。すなわち、第1のマップ
11は、デュアルポートラム領域、スタティックラム
(S−RAM)領域及びEPROM領域を有し、また、
第2のマップ12は、EPROM領域、S−RAM領域
及びI/O領域を有しているが、これに限定されない。
なお、第1のマップ11のEPROM領域の開始アドレ
スは、8086タイプのMPUのスタートアドレス(F
FFF:0(H))に一致し、また、第2のマップ12
のEPROM領域の開始アドレスは、68000タイプ
のMPUのスタートアドレス(0(H))に一致してい
る。
On the other hand, the first map 11 and the second map 1
2 is determined by the architecture of the first and second electronic circuits 7, 9, but here, the first electronic circuit 7,
Target MPU of “8086”, the second electronic circuit 9
Is assumed to be “68000”, and a map structure as shown in the figure is assumed. That is, the first map 11 has a dual port ram area, a static ram (S-RAM) area, and an EPROM area,
The second map 12 has an EPROM area, an S-RAM area, and an I / O area, but is not limited thereto.
The start address of the EPROM area of the first map 11 is the start address (F
FFF: 0 (H)) and the second map 12
The start address of the EPROM area is the same as the start address (0 (H)) of the 68000 type MPU.

【0016】図3は電子回路解析プログラムの概略フロ
ーである。このフローでは、以下の処理を逐次に実行す
る。すなわち、第1のケーブル6を介して第1の電子回
路7を接続した第1のボード4を外部スロット3に実装
すると共に、第2のケーブル8を介して第2の電子回路
9を接続した第2のボード5を外部スロット3に実装
し、ホストコンピュータ1の主記憶部にOSや電子回路
解析プログラムなどをロードした後、この電子解析プロ
グラムを実行すると、まず、外部スロット3に実装され
たオプションボードを認識し、その中から電子回路解析
用のボード(ここでは第1のボード4と第2のボード
5)を識別する(ステップ20)。次いで、識別した第
1のボード4と第2のボード5の各エミュレーションラ
ム4b、5bを、ホストマップ10(図2参照)に重複
なくマッピングし(ステップ21)、第1のボード4の
エミュレーションラム4bに所要のプログラムとデータ
を転送する(ステップ22)。ここで、第1のボード4
のエミュレーションラム4bに転送する所要のプログラ
ムとデータは、第1の電子回路7のターゲットMPUで
実行するプログラム及び該プログラムの実行に必要な各
種データである。所要のプログラムとデータを転送する
と、次に、第1のボード4のモードレジスタ4aの「解
析モードフラグ」をセットし(ステップ23)、第1の
電子回路7からエミュレーションラム4bをアクセスで
きるようにした後、転送プログラムの実行開始を指令し
て待機状態に入る(ステップ24)。
FIG. 3 is a schematic flow chart of the electronic circuit analysis program. In this flow, the following processes are sequentially executed. That is, the first board 4 to which the first electronic circuit 7 was connected via the first cable 6 was mounted on the external slot 3, and the second electronic circuit 9 was connected via the second cable 8. After mounting the second board 5 in the external slot 3 and loading the OS and the electronic circuit analysis program into the main memory of the host computer 1 and then executing the electronic analysis program, first, the second board 5 is mounted in the external slot 3. The option boards are recognized, and a board for electronic circuit analysis (here, the first board 4 and the second board 5) is identified from the option boards (step 20). Then, the identified emulation rams 4b and 5b of the first board 4 and the second board 5 are mapped on the host map 10 (see FIG. 2) without duplication (step 21), and the emulation ram of the first board 4 is obtained. The required program and data are transferred to 4b (step 22). Here, the first board 4
The required programs and data to be transferred to the emulation ram 4b are programs to be executed by the target MPU of the first electronic circuit 7 and various data necessary for executing the programs. After transferring the required program and data, the "analysis mode flag" of the mode register 4a of the first board 4 is set (step 23) so that the emulation ram 4b can be accessed from the first electronic circuit 7. After that, the execution of the transfer program is instructed to enter a standby state (step 24).

【0017】待機状態に入ると、第1の電子回路7のタ
ーゲットMPUは、エミュレーションラム4bに転送さ
れたプログラムを実行し、その実行結果を逐一エミュレ
ーションラム4bに書き込むと共に、プログラムの終了
(正常終了又は異常終了)に伴って、モードレジスタ4
aの「解析モードフラグ」をリセットする。電子回路解
析プログラムは、このリセットに応答して待機状態を解
き、エミュレーションラム4b内の実行結果を読み込ん
で解析(ステップ25)した後、以下の読み替えを行
い、上述のステップ22〜25を繰り返す(繰り返し回
数はボードの実装数)。
In the standby state, the target MPU of the first electronic circuit 7 executes the program transferred to the emulation ram 4b, writes the execution result one by one into the emulation ram 4b, and terminates the program (normal termination). Or abnormal termination), the mode register 4
The “analysis mode flag” of a is reset. In response to this reset, the electronic circuit analysis program releases the standby state, reads the execution result in the emulation ram 4b, analyzes it (step 25), reads the following, and repeats the above steps 22 to 25 ( The number of repetitions is the number of boards mounted).

【0018】第1のボード4→第2のボード5 モードレジスタ4a→モードレジスタ5a エミュレーションメモリ4a→エミュレーションメモリ
5b 第1の電子回路7→第2の電子回路9 このように、本実施例では、ホストコンピュータ1から
各ボード4、5のエミュレーションメモリ4b、5bに
所要のプログラム及びデータを転送し、同プログラムの
実行開始を指令するだけで、第1及び第2の電子回路
7、9の動作解析をホストコンピュータ1で行うことが
でき、しかも、解析の対象となる電子回路は、ボードの
最大実装数(n)まで容易に増やすことができるから、
複数の電子回路の動作解析に用いて好適な装置を実現で
きる。
First board 4 → second board 5 Mode register 4a → mode register 5a Emulation memory 4a → emulation memory 5b First electronic circuit 7 → second electronic circuit 9 Thus, in this embodiment, The required programs and data are transferred from the host computer 1 to the emulation memories 4b and 5b of the boards 4 and 5 and the operation of the first and second electronic circuits 7 and 9 is analyzed simply by instructing the execution of the programs. Can be performed by the host computer 1, and the number of electronic circuits to be analyzed can be easily increased to the maximum number (n) of mounted boards.
A device suitable for use in analyzing the operation of a plurality of electronic circuits can be realized.

【0019】なお、図3のフローでは、第1の電子回路
7の動作解析を行った後、第2の電子回路9の動作解析
を行っているが、これに限らない。例えば、すべてのボ
ードのエミュレーションラムに所要のプログラム及びデ
ータを転送した後、各々の電子回路に対して転送プログ
ラムの実行開始を指令するようにすれば、各電子回路が
リンクして相互に通信しながら動作するシステムにも適
用できるほか、一つの電子回路に複数のMPUを搭載し
た、いわゆるマルチMPUのシステムにも適用できる。
Although the operation of the first electronic circuit 7 is analyzed and then the operation of the second electronic circuit 9 is analyzed in the flow of FIG. 3, the present invention is not limited to this. For example, if the required programs and data are transferred to the emulation rams of all the boards and then the execution of the transfer program is instructed to each electronic circuit, the electronic circuits link and communicate with each other. In addition, the present invention can be applied to a system that operates while operating, and also to a so-called multi-MPU system in which a plurality of MPUs are mounted on one electronic circuit.

【0020】また、上記実施例では、ホストコンピュー
タ1のシステムバス2に、動作解析用のオプションボー
ド(ボード4、5)を直接接続しているが、これはスタ
ンドアロンで用いる場合の構成例であり、ネットワーク
環境で用いる場合には、例えば、以下のように構成すれ
ばよい。図4〜図8は本発明に係る電子回路解析装置の
他の実施例を示す図であり、ネットワーク環境を考慮し
て構成した例である。
In the above embodiment, the option boards for operation analysis (boards 4 and 5) are directly connected to the system bus 2 of the host computer 1, but this is an example of a configuration in a case where the system is used stand-alone. When used in a network environment, for example, the following configuration may be used. 4 to 8 show another embodiment of the electronic circuit analyzing apparatus according to the present invention, which is an example configured in consideration of a network environment.

【0021】図4において、30はLANやWAN等の
ネットワークであり、ネットワーク30には、ネットワ
ークボード31a〜33aを介して、複数台(図では便
宜的に3台)のコンピュータ31〜33が接続されてい
る。すべてのコンピュータ31〜33には、サーバー及
びクライアント双方のネットワークOSがインストール
されており、いわゆるピアToピア型のネットワーク環
境を実現している。なお、「サーバー」とは自己のハー
ド資産を他のコンピュータに提供するコンピュータを言
い、「クライアント」とはサーバーの資産を利用するコ
ンピュータを言う。一般に、ピアToピア型のネットワ
ークOSでは、特定のコマンドを実行してサーバープロ
グラムをメインメモリにロードするとそのコンピュータ
はサーバマシンになり、クライアントプログラムをロー
ドするとそのコンピュータはクライアントマシンにな
り、両方をロードするとサーバー/クライアント兼用マ
シンになる(本実施例の3台のコンピュータ31〜33
は、サーバー/クライアント兼用マシンとして動作す
る)。なお、以下では、識別のために、左のコンピュー
タ31を第1のコンピュータ、右上のコンピュータ32
を第2のコンピュータ、右下のコンピュータ33を第3
のコンピュータと呼称することにする。
In FIG. 4, reference numeral 30 denotes a network such as a LAN or WAN, and a plurality of (three in FIG. 3) computers 31 to 33 are connected to the network 30 via network boards 31a to 33a. Have been. In all the computers 31 to 33, a network OS for both a server and a client is installed, and a so-called peer-to-peer network environment is realized. Note that the “server” refers to a computer that provides its own hardware assets to another computer, and the “client” refers to a computer that uses the server assets. Generally, in a peer-to-peer network OS, when a specific command is executed to load a server program into main memory, the computer becomes a server machine, and when a client program is loaded, the computer becomes a client machine, and both are loaded. Then, it becomes a server / client dual-purpose machine (the three computers 31 to 33 of the present embodiment).
Works as a server / client machine). In the following, for the sake of identification, the left computer 31 is referred to as a first computer, and the upper right computer 32 is referred to.
To the second computer, and the lower right computer 33 to the third computer.
Computer.

【0022】第2及び第3のコンピュータ32、33に
は、RS−232C等の通信ボード32b、33bが実
装されている。第2及び第3のコンピュータ32、33
は、これらの通信ボード32b、33b、ケーブル3
4、35、及び、電子回路36に実装された通信ボード
36a、36b(電子回路の通信部)を介し、電子回路
36の動作を制御すると共に、その動作結果に関する情
報を収集する。
Communication boards 32b and 33b such as RS-232C are mounted on the second and third computers 32 and 33, respectively. Second and third computers 32, 33
Are the communication boards 32b and 33b and the cable 3
4, 35, and via the communication boards 36a, 36b (communication units of the electronic circuit ) mounted on the electronic circuit 36, control the operation of the electronic circuit 36 and collect information on the operation results.

【0023】図5は第2のコンピュータ32のメモリマ
ップ37、第3のコンピュータ33のメモリマップ3
8、及び、第1のコンピュータ31のドライブマップ3
9を示す図である。特に限定しないが、第2のコンピュ
ータ32のメモリマップ37は、デュアルポートラム領
域37a、S−RAM領域37b及びEPROM領域3
7cからなり(但し、電子回路36に搭載されたターゲ
ットMPUが「8086」の場合)、第3のコンピュー
タ33のメモリマップ38は、サンプリング領域38
a、表示データ領域38b及びI/Oデータ領域38c
からなっている。一方、ドライブマップ39は、第1の
コンピュータ31に接続されたローカルドライブ領域3
1aと、ネットワーク30を介して仮想的に接続された
リモートドライブ領域31bとからなり、特に、リモー
トドライブ領域31bは、第2のコンピュータ32のメ
モリマップ37に対応した第1のリモートドライブ領域
31cと、第3のコンピュータ33のメモリマップ38
に対応した第2のリモートドライブ領域31dとに分け
られている。すなわち、ローカルマシンが有する記憶手
段をリモートマシンの仮想ドライブに割り付けるように
なっている。なお、「ドライブ」は、フロッピィディス
クやRAMディスク及びハードディスク等の個別ドライ
ブ、又は、ハードディスク内のパーティション領域、若
しくは、個別ドライブやパーティション内のディレクト
リのいずれであっても構わない。
FIG. 5 shows a memory map 37 of the second computer 32 and a memory map 3 of the third computer 33.
8 and the drive map 3 of the first computer 31
FIG. Although not particularly limited, the memory map 37 of the second computer 32 includes a dual port RAM area 37a, an S-RAM area 37b, and an EPROM area 3.
7c (when the target MPU mounted on the electronic circuit 36 is “8086”), and the memory map 38 of the third computer 33 has a sampling area 38
a, display data area 38b and I / O data area 38c
Consists of On the other hand, the drive map 39 indicates the local drive area 3 connected to the first computer 31.
1a, and a remote drive area 31b virtually connected via the network 30. In particular, the remote drive area 31b has a first remote drive area 31c corresponding to the memory map 37 of the second computer 32. , The memory map 38 of the third computer 33
And a second remote drive area 31d corresponding to the above. In other words, the local computer has
Map columns to virtual drives on remote machines
Has become. The “drive” may be an individual drive such as a floppy disk, a RAM disk, or a hard disk, a partition area in the hard disk, or a directory in an individual drive or a partition.

【0024】図6は図4の構成例における全体の概略フ
ローである。このフローにおいて、まず、第1〜第3の
コンピュータ31〜33にそれぞれサーバー用及びクラ
イアント用のネットワークOSをロードする(ステップ
40)。第2及び第3のコンピュータ32、33は、そ
れぞれにつながる電子回路36を認識して基本情報の授
受を行い、メモリマップ37、38上に電子回路36の
情報を含むデータの展開を行う(ステップ41)。次
に、第1のコンピュータ31をクライアントマシンとし
て操作し、第2及び第3のコンピュータ32、33をア
クセスして、それぞれのメモリマップ37、38を第1
のコンピュータ31の第1及び第2のリモートドライブ
領域31c、32dに割り付ける(ステップ42)。次
に、第1及び第2のリモートドライブ領域31c、31
dに………すなわち第2及び第3のコンピュータ32、
33のメモリマップ37、38に………電子回路36の
動作解析に必要なプログラムや各種データ等を転送し
(ステップ43)、同転送プログラムの実行コマンドを
第1のコンピュータ31から第2及び第3のコンピュー
タ32、33に転送する(ステップ44)。第2及び第
3のコンピュータ32、33は、同実行コマンドを受け
て所要の動作解析プログラムを実行し、電子回路36の
動作を制御すると共に、その動作結果を収集してメモリ
マップ37、38の所定領域に格納する(ステップ4
5)。そして、第2及び第3のコンピュータ32、33
は、動作解析プログラムの実行完了を第1のコンピュー
タ31に通知し、第1のコンピュータ31は、この通知
を受けて、第1及び第2のリモートドライブ領域31
c、31dの内容………すなわち第2及び第3のコンピ
ュータ32、33のメモリマップ37、38の内容……
…を評価し、若しくは、プリンタやディスプレイに出力
する(ステップ46)。
FIG. 6 is an overall schematic flow in the configuration example of FIG. In this flow, first, a network OS for a server and a network OS for a client are loaded on the first to third computers 31 to 33, respectively (step 40). The second and third computers 32 and 33 recognize the electronic circuit 36 connected to each of them, exchange basic information, and develop data including the information of the electronic circuit 36 on the memory maps 37 and 38 (step). 41). Next, the first computer 31 is operated as a client machine, the second and third computers 32 and 33 are accessed, and the respective memory maps 37 and 38 are stored in the first computer 31.
Are assigned to the first and second remote drive areas 31c and 32d of the computer 31 (step 42). Next, the first and second remote drive areas 31c, 31
d: the second and third computers 32,
The program and various data necessary for the operation analysis of the electronic circuit 36 are transferred to the memory maps 37 and 38 of the 33 (step 43), and the execution command of the transfer program is transmitted from the first computer 31 to the second and second memories. 3 (step 44). The second and third computers 32, 33 execute the required operation analysis program in response to the execution command, control the operation of the electronic circuit 36, collect the operation results, and read the memory maps 37, 38. Store in a predetermined area (Step 4
5). Then, the second and third computers 32, 33
Notifies the first computer 31 of the completion of the execution of the operation analysis program, and the first computer 31 receives the notification and sends the first and second remote drive areas 31
Contents of c and 31d, that is, contents of the memory maps 37 and 38 of the second and third computers 32 and 33.
Are evaluated or output to a printer or a display (step 46).

【0025】以上のように、この実施例によれば、第2
及び第3のコンピュータ32、33のメモリマップ3
7、38を、第1のコンピュータ31のリモートドライ
ブ領域31c、31dとして扱うことができるため、例
えば、遠隔地に設置した第1のコンピュータ31から、
電子回路36の動作解析を行うことができるという有利
な効果が得られる。
As described above, according to this embodiment, the second
And the memory map 3 of the third computer 32, 33
7 and 38 can be handled as the remote drive areas 31c and 31d of the first computer 31, for example, from the first computer 31 installed in a remote place,
The advantageous effect that the operation analysis of the electronic circuit 36 can be performed is obtained.

【0026】又は、第1〜第3のコンピュータ31〜3
3にある種のリモートコントロールソフトをロードし、
第1のコンピュータをマスター、第2及び第3のコンピ
ュータ32、33をスレーブ動作させると、第1のコン
ピュータ31のキーボードとディスプレイを、あたかも
第2のコンピュータ32又は第3のコンピュータ33の
キーボード及びディスプレイと同等に扱うことができ
る。これによれば、マスター側(第1のコンピュータ3
1)のディスプレイに、例えば、所定のメモリデバッグ
コマンド(図7参照)を打ち込むと、同じコマンドがス
レーブ側の第2のコンピュータ32又は第3のコンピュ
ータ33で実行され、その実行結果(この場合メモリダ
ンプリスト)がスレーブ側と同時にマスター側のディス
プレイにも表示(図8参照)されるから、マスター側の
コンピュータ(第1のコンピュータ31)によってスレ
ーブ側のコンピュータ(第2又は第3のコンピュータ3
2、33)を遠隔制御することができ、リモートデバッ
グ環境を容易に構築することができる。
Alternatively, the first to third computers 31 to 3
Load some kind of remote control software in 3,
When the first computer is the master and the second and third computers 32 and 33 are operated as slaves, the keyboard and the display of the first computer 31 are used as if the keyboard and the display of the second computer 32 or the third computer 33 were provided. Can be treated the same as According to this, the master side (the first computer 3)
For example, when a predetermined memory debug command (see FIG. 7) is input to the display of 1), the same command is executed by the second computer 32 or the third computer 33 on the slave side, and the execution result (in this case, the memory Since the dump list) is also displayed on the display of the master side simultaneously with the slave side (see FIG. 8), the computer on the master side (first computer 31) is used by the computer on the slave side (second or third computer 3).
2, 33) can be remotely controlled, and a remote debugging environment can be easily constructed.

【0027】[0027]

【発明の効果】本発明によれば、以上のように構成した
ので、複数の電子回路の動作解析は勿論のこと、複数の
MPUを搭載する一つの電子回路の動作解析も行うこと
ができ、又は、動作解析を遠隔地から行うことができ
る。
According to the present invention, with the above-described configuration, not only the operation analysis of a plurality of electronic circuits but also the operation analysis of one electronic circuit having a plurality of MPUs can be performed. Alternatively, the motion analysis can be performed from a remote location.

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

【図1】一実施例の概略構成図である。FIG. 1 is a schematic configuration diagram of one embodiment.

【図2】一実施例のメモリマップ図である。FIG. 2 is a memory map diagram of one embodiment.

【図3】一実施例の概略フロー図である。FIG. 3 is a schematic flowchart of one embodiment.

【図4】他の実施例の概略構成図である。FIG. 4 is a schematic configuration diagram of another embodiment.

【図5】他の実施例のメモリマップ及びドライブマップ
図である。
FIG. 5 is a memory map and drive map diagram of another embodiment.

【図6】他の実施例の概略フロー図である。FIG. 6 is a schematic flowchart of another embodiment.

【図7】他の実施例のコマンド入力画面図である。FIG. 7 is a command input screen diagram of another embodiment.

【図8】他の実施例の実行画面図である。FIG. 8 is an execution screen diagram of another embodiment.

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

1:ホストコンピュータ(マッピング手段、制御手段) 3:外部スロット(接続部) 4:第1のボード(インターフェイス部) 4b、5b:エミュレーションラム(記憶手段) 5:第2のボード(インターフェイス部) 30:ネットワーク 31:第1のコンピュータ(リモートマシン) 32:第2のコンピュータ(ローカルマシン) 33:第3のコンピュータ(ローカルマシン) 36:電子回路 1: host computer (mapping unit, control unit) 3: external slot (connection unit) 4: first board (interface unit) 4b, 5b: emulation ram (storage unit) 5: second board (interface unit) 30 : Network 31: first computer (remote machine) 32: second computer (local machine) 33: third computer (local machine) 36: electronic circuit

フロントページの続き (56)参考文献 特開 平2−3836(JP,A) 特開 平7−234805(JP,A) 特開 平5−342038(JP,A) 特開 平1−111238(JP,A) 特開 昭63−4346(JP,A) 特開 平6−103106(JP,A) 特開 平5−282471(JP,A) 特開 平3−313954(JP,A) 特開 平6−202901(JP,A) 特開 平3−269735(JP,A) 特開 昭62−203238(JP,A) 実開 昭59−53457(JP,U) (58)調査した分野(Int.Cl.7,DB名) G06F 11/22 - 11/36 Continuation of front page (56) References JP-A-2-3836 (JP, A) JP-A-7-234805 (JP, A) JP-A-5-342038 (JP, A) JP-A-1-111238 (JP) JP-A-63-4346 (JP, A) JP-A-6-103106 (JP, A) JP-A-5-282471 (JP, A) JP-A-3-313954 (JP, A) 6-202901 (JP, A) JP-A-3-269735 (JP, A) JP-A-62-203238 (JP, A) JP-A-59-53457 (JP, U) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 11/22-11/36

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ターゲットMPUを搭載した動作解析対象
の電子回路を接続するn個のインターフェイス部と、 前記インターフェイス部にアクセスする制御手段と、 前記インターフェイス部と前記制御手段とを直接接続す
るシステムバスと、 を備え、 前記インターフェイス部は、前記制御手段が前記システ
ムバスを介してアクセスすると共に前記ターゲットMP
UがアクセスしターゲットMPUで実行するプログラム
及び該プログラムの実行に必要な各種データ並びに前記
ターゲットMPUの実行結果を更新可能に記憶する記憶
手段と、前記制御手段がセットすると共に前記ターゲッ
トMPUがリセットするフラグを含むモードレジスタと
を有し、 前記制御手段は、前記インターフェイス部の前記記憶手
段に前記プログラム及び前記データを転送すると共に、
前記フラグをセットすることによって前記ターゲットM
PUによる各転送プログラムの実行開始を指令し、か
つ、前記ターゲットMPUが前記フラグをリセットする
まで待機し、前記フラグがリセットされた前記インター
フェイス部の前記記憶手段から前記実行結果を読み込ん
で評価することを特徴とする電子回路解析装置。
1. An interface unit for connecting an electronic circuit to be analyzed for operation on which a target MPU is mounted, a control unit for accessing the interface unit, and a system bus for directly connecting the interface unit and the control unit And the interface unit, wherein the control unit accesses the target MP via the system bus.
A program to be accessed by the U and executed by the target MPU, various data necessary for the execution of the program, and storage means for storing the execution result of the target MPU in an updatable manner; the control means being set and the target MPU being reset A mode register including a flag, wherein the control unit transfers the program and the data to the storage unit of the interface unit,
By setting the flag, the target M
Commanding the start of execution of each transfer program by a PU, and waiting until the target MPU resets the flag; reading and evaluating the execution result from the storage means of the interface unit in which the flag has been reset; An electronic circuit analysis device characterized by the following.
【請求項2】ネットワークを介して複数のコンピュータ
を接続し、該複数のコンピュータのうちの少なくとも一
つのコンピュータをリモートマシンとし、該リモートマ
シンを除く他のコンピュータをローカルマシンとし、各
ローカルマシンに動作解析対象の電子回路の通信部を接
続するとともに、前記ローカルマシンが有する記憶手段
を前記リモートマシンの仮想ドライブに割り付け、前記
リモートマシンから各ローカルマシンをアクセスするこ
とにより、前記電子回路の動作解析を遠隔制御すること
を特徴とする電子回路解析装置。
2. A plurality of computers are connected via a network, at least one of the plurality of computers is a remote machine, and other computers except the remote machine are local machines. By connecting the communication unit of the electronic circuit to be analyzed, allocating storage means of the local machine to a virtual drive of the remote machine, and accessing each local machine from the remote machine, to analyze the operation of the electronic circuit. An electronic circuit analysis device characterized by remote control.
【請求項3】前記ローカルマシンが、請求項1記載の前
記インターフェイス部と前記システムバスと前記制御手
段とを備えたことを特徴とする請求項2記載の電子回路
解析装置。
3. The electronic circuit analyzer according to claim 2, wherein said local machine includes said interface unit, said system bus, and said control means.
JP23232795A 1995-09-11 1995-09-11 Electronic circuit analyzer Expired - Fee Related JP3177131B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23232795A JP3177131B2 (en) 1995-09-11 1995-09-11 Electronic circuit analyzer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23232795A JP3177131B2 (en) 1995-09-11 1995-09-11 Electronic circuit analyzer

Publications (2)

Publication Number Publication Date
JPH0981412A JPH0981412A (en) 1997-03-28
JP3177131B2 true JP3177131B2 (en) 2001-06-18

Family

ID=16937464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23232795A Expired - Fee Related JP3177131B2 (en) 1995-09-11 1995-09-11 Electronic circuit analyzer

Country Status (1)

Country Link
JP (1) JP3177131B2 (en)

Also Published As

Publication number Publication date
JPH0981412A (en) 1997-03-28

Similar Documents

Publication Publication Date Title
US5113500A (en) Multiple cooperating and concurrently operating processors using individually dedicated memories
US4920481A (en) Emulation with display update trapping
US5790881A (en) Computer system including coprocessor devices simulating memory interfaces
US6539500B1 (en) System and method for tracing
KR100764921B1 (en) Virtual rom for device enumeration
US5062042A (en) System for managing data which is accessible by file address or disk address via a disk track map
JPH0773046A (en) Method and equipment for emulation of circuit in computer system
JP6916340B2 (en) Systems and methods for testing simulated devices using memory-based communication protocols
CN103092810A (en) Processor with programmable virtual ports
US7627464B2 (en) Bootable solid state floppy disk drive
US4813009A (en) Method and apparatus for determining internal status of a processor
JP3177131B2 (en) Electronic circuit analyzer
JP4762207B2 (en) DSP card testing equipment
EP0543607B1 (en) Image processing system
US10657076B2 (en) Electronic apparatus and method of extending peripheral device
JP2728002B2 (en) Embedded software debug support device
JPH1083318A (en) Electronic circuit analyzing device
US7529864B2 (en) Method and system for testing remote I/O functionality
JP2001318805A (en) Test method for built-in system and test system
JP3085730B2 (en) Parallel simulation method for complex CPU system
CA1245772A (en) Logical arrangement for controlling use of different system displays by main processor and co-processor
Mink et al. Operating principles of the PCI bus MultiKron interface board
JPH0462648A (en) Storage device
JP2876909B2 (en) Interrupt emulator
JP3434771B2 (en) Lower device facing test method

Legal Events

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