JPH0652009A - In-circuit emulator - Google Patents

In-circuit emulator

Info

Publication number
JPH0652009A
JPH0652009A JP4223617A JP22361792A JPH0652009A JP H0652009 A JPH0652009 A JP H0652009A JP 4223617 A JP4223617 A JP 4223617A JP 22361792 A JP22361792 A JP 22361792A JP H0652009 A JPH0652009 A JP H0652009A
Authority
JP
Japan
Prior art keywords
host computer
data
dac
direct access
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.)
Granted
Application number
JP4223617A
Other languages
Japanese (ja)
Other versions
JP2962498B2 (en
Inventor
Kazuhiro Hosaka
一宏 保坂
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.)
SOFUIA SYST KK
Original Assignee
SOFUIA SYST KK
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 SOFUIA SYST KK filed Critical SOFUIA SYST KK
Priority to JP4223617A priority Critical patent/JP2962498B2/en
Publication of JPH0652009A publication Critical patent/JPH0652009A/en
Application granted granted Critical
Publication of JP2962498B2 publication Critical patent/JP2962498B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To execute down-load and up-load at a high speed, and also, to efficiently operate a system. CONSTITUTION:In the in-circuit emulator having a direct access controller part 16 for executing up-load and down-load of a program between a host computer 11 and a target system 15, this in-circuit emulator is provided with a direct access controller control circuit 17 which is provided between the host computer 11 and the direct access controller part 16, converts a command sent from the host computer 11 to a command of the direct access controller part 16 and sends it therein, and also, controls a mutual waiting time caused by a speed difference of the host computer 11 and the direct access controller part 16.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、インサーキット・エミ
ュレータの代表的な一機能であるプログラムのダウンロ
ード及びアップロードを行うダイレクト・アクセス・コ
ントローラの制御を改良したインサーキット・エミュレ
ータに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an in-circuit emulator having improved control of a direct access controller for downloading and uploading a program, which is a typical function of the in-circuit emulator.

【0002】[0002]

【従来の技術】従来より、インサーキット・エミュレー
タは、マイクロプロセッサの代わりにターゲット・シス
テムに接続することで、プログラムの任意の実行/停
止、メモリ等の資源の読み/書き、実行のトレース機能
等を有するマイクロプロセッサ開発支援装置として知ら
れている。
2. Description of the Related Art Conventionally, an in-circuit emulator is connected to a target system instead of a microprocessor to arbitrarily execute / stop a program, read / write a resource such as memory, trace a function of execution, etc. Is known as a microprocessor development support device having

【0003】図8は従来のインサーキット・エミュレー
タにおけるダイレクト・アクセス・コントローラの制御
を説明するブロック図である。
FIG. 8 is a block diagram for explaining control of a direct access controller in a conventional in-circuit emulator.

【0004】同図において、中間制御マイクロプロセッ
サ1は、ホスト・コンピュータ2から与えられたプログ
ラムのダウンロードまたはアップロード等のコマンドを
インサーキット・エミュレータに適したコマンドにコー
ド化し、またその逆を行うとともに、インサーキット・
エミュレータの各部を制御し、エミュレーションCPU
3のバス開放により、ダイレクト・アクセス・コントロ
ーラ(以下DACという)4を介して、ターゲット・シ
ステム5に直結し、ダイレクト・メモリ・アクセス(以
下DMAという)を行う。なお、本出願人は、特開昭6
4−13640号公報に、エミュレーションCPUの機
種の多様化に柔軟に対処できるとともに、アクセス処理
の多様化と迅速化を図ることができるインサーキット・
エミュレータに関する技術を開示している。
In FIG. 1, the intermediate control microprocessor 1 encodes a command for downloading or uploading a program given from the host computer 2 into a command suitable for an in-circuit emulator, and vice versa. In-circuit
Emulator CPU that controls each part of the emulator
When the bus 3 is released, it is directly connected to the target system 5 via a direct access controller (hereinafter referred to as DAC) 4 and direct memory access (hereinafter referred to as DMA) is performed. In addition, the applicant of the present invention,
JP-A-4-13640 discloses an in-circuit capable of flexibly coping with diversification of models of emulation CPUs and diversifying and speeding up access processing.
The technology related to the emulator is disclosed.

【0005】[0005]

【発明が解決しようとする課題】すなわち、従来のイン
サーキット・エミュレータでは、DAC4におけるダウ
ンロード及びアップロードは、全て中間制御プロセッサ
1が途中に関与していたため、その分処理が遅くなり、
また、システムの効率化を図ることができなかった。近
年、大容量のプログラムをデバッグする上で、ダウンロ
ード及びアップロードの遅延は、無視できないものとな
ってきており、この遅延を効率よく少なくすることが要
求されていた。
That is, in the conventional in-circuit emulator, the intermediate control processor 1 is involved in the downloading and uploading in the DAC 4, so the processing becomes slower accordingly.
Moreover, the efficiency of the system could not be improved. In recent years, delays in downloading and uploading have become non-negligible in debugging a large-capacity program, and it has been required to efficiently reduce the delay.

【0006】そこで本発明は、ダウンロード及びアップ
ロードの高速化ができるとともに、システムの効率化を
図ることができるインサーキット・エミュレータを提供
することを目的とする。
Therefore, an object of the present invention is to provide an in-circuit emulator capable of speeding up download and upload and improving the efficiency of the system.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明のインサーキット・エミュレータは、ホスト
・コンピュータとターゲット・システムとの間でプログ
ラムのアップロード及びダウンロードを行うダイレクト
・アクセス・コントローラ部を有するインサーキット・
エミュレータにおいて、前記ホスト・コンピュータとダ
イレクト・アクセス・コントローラ部との間に設けら
れ、前記ホスト・コンピュータから送られるコマンド
を、ダイレクト・アクセス・コントローラ部のコマンド
に変換し送り込むとともに、該ホスト・コンピュータと
ダイレクト・アクセス・コントローラ部の速度差によ
る、お互いの待ち時間を制御するダイレクト・アクセス
・コントローラ制御回路を設けたものである。
In order to achieve the above object, the in-circuit emulator of the present invention is a direct access controller section for uploading and downloading a program between a host computer and a target system. In-circuit with
In the emulator, provided between the host computer and the direct access controller unit, converts a command sent from the host computer into a command of the direct access controller unit, and sends the command. A direct access controller control circuit for controlling the mutual waiting time due to the speed difference of the direct access controller is provided.

【0008】[0008]

【作用】本発明によれば、ホスト・コンピュータから送
られるコマンドを、ダウンロードとアップロードを行う
DAC部のコマンドに変換し送り込むとともに、ホスト
・コンピュータの速度とDAC部の速度の差によるお互
いの待ち時間を省くように構成したことで、高速化を図
ることができ、また、ダウンロード及びアップロードの
コマンドに対してECPが関与する必要がなくなったた
め、システムとしての効率化が図られる。
According to the present invention, the command sent from the host computer is converted into the command of the DAC section for downloading and uploading and is sent, and the waiting time due to the difference between the speed of the host computer and the speed of the DAC section. By omitting the above, the speed can be increased, and since the ECP does not need to be involved in the download and upload commands, the efficiency of the system can be improved.

【0009】[0009]

【実施例】以下、本発明を図示の一実施例により具体的
に説明する。図1は本発明実施例のインサーキット・エ
ミュレータを説明する全体ブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to an embodiment shown in the drawings. FIG. 1 is an overall block diagram illustrating an in-circuit emulator according to an embodiment of the present invention.

【0010】同図において、本実施例のインサーキット
・エミュレータは、ホスト・コンピュータ11からホス
ト・インターフェースを構成するファースト・イン・フ
ァースト・アウト部(以下FIFO部という)12を介
して送受信されるコマンドやデータに基づき、エミュレ
ータの各機能を制御するためのエミュレータ・コントロ
ール・プロセッサ(以下ECPという)13と、エミュ
レーションCPU14のバスを制御してターゲット・シ
ステム15に直結しダイレクト・メモリ・アクセスを行
うDAC部16との間にあって、ダウンロード及びアッ
プロードのコマンドの変換を行うとともに、ホスト・コ
ンピュータ11とDAC部16の速度差によるお互いの
待ち時間を省くためのDAC制御回路17を備えてい
る。
In the figure, the in-circuit emulator of this embodiment is a command transmitted and received from a host computer 11 via a first-in-first-out section (hereinafter referred to as a FIFO section) 12 constituting a host interface. An emulator control processor (hereinafter referred to as ECP) 13 for controlling each function of the emulator based on data and data, and a DAC for controlling the bus of the emulation CPU 14 to directly connect to the target system 15 for direct memory access. A DAC control circuit 17 is provided between the host computer 11 and the unit 16 for converting download and upload commands, and for eliminating waiting time due to a speed difference between the host computer 11 and the DAC unit 16.

【0011】上記ホスト・コンピュータ11は、例え
ば、市販されているパーソナル・コンピュータであり、
デバッガ(プログラム)が駆動し、また、オペレータに
よるコマンドをECP13へ通知(通信)するためのパ
ケットに変換するためのプログラムも備えている。
The host computer 11 is, for example, a commercially available personal computer,
A debugger (program) is driven, and a program for converting a command by an operator into a packet for notifying (communication) to the ECP 13 is also provided.

【0012】上記ECP13は、エミュレータに代表さ
れる機能を制御するためのマイクロ・プロセッサであ
り、例えば、エミュレーションCPU14の制御、トレ
ース制御、主に割り付けを行うエミュレーション・メモ
リ(図示せず)の制御、及びこれらの機能をホスト・コ
ンピュータ11と通信するための制御等を行うものであ
る。
The ECP 13 is a microprocessor for controlling functions typified by an emulator. For example, control of the emulation CPU 14 and trace control, control of an emulation memory (not shown) mainly for allocation, And controls for communicating these functions with the host computer 11.

【0013】ここでホスト・コンピュータ11とECP
13がデータの送受信を行うための通信パケットは、デ
ータ構造体として予め定義されている。ホスト・コンピ
ュータ11からのダウンロード及びアップロードに関す
るデータ長が1バイトのコマンドは、FIFO部12よ
りECP13がリードする。このようなコマンドは、予
め通信上のフォーマットに沿った形で定義されており、
例えば、「40」であれば、ECP13が制御するター
ゲット・システム15上のデータリード・コマンド、
「41」であれば、ECP13が制御するターゲット・
システム15上のデータライト・コマンド、「42」で
あれば、ECP13が介在しないターゲット・システム
15上のデータリード・コマンド、「43」であれば、
ECP13が介在しないターゲット・システム15上の
単一データファイルアップ・コマンドである。なお、上
記コマンドの通信ソフトパケットの構造例の詳細につい
ては、後に説明する。
Here, the host computer 11 and the ECP
A communication packet for the 13 to send and receive data is defined in advance as a data structure. A command having a data length of 1 byte related to download and upload from the host computer 11 is read by the ECP 13 from the FIFO unit 12. Such commands are defined in advance according to the format of communication,
For example, if it is “40”, a data read command on the target system 15 controlled by the ECP 13,
If it is "41", the target controlled by ECP13
If the data write command on the system 15 is “42”, the data read command on the target system 15 without the ECP 13 is “43”.
It is a single data file up command on the target system 15 without the ECP 13 intervening. Details of the structure example of the communication soft packet of the above command will be described later.

【0014】上記DAC制御回路17は、ホスト・コン
ピュータ11とDAC部16との間で高速通信を実現す
るためにダウンロード(ライト)方向で使用するDFI
FO部21と、DAC部16を制御するためのDAC制
御部22と、ECP13の処理を軽減するために設けら
れたダイレクト・FIFO・アクセス・コントローラ
(以下DFACという)23と、アップロード(リー
ド)方向で使用するDACデータ・リードレジスタ24
と、DAC部16を制御するタイミング信号を発生する
ためのタイミング制御部25等を備えている。DFAC
24は、DAC制御部22等の内部に設けられたコント
ロール・レジスタへの設定により、その使用が可能にな
り、ECP13とはメインバス開放要求信号(MHOL
D)とそのアクノリッジ信号(MHLDA)でつなが
り、ホスト・コンピュータ11上に組み込まれた通信ソ
フトのFIFO部12間でDMAを行うよう構成されて
いる。また、DAC制御部22は、ホスト・コンピュー
タ11側から送られてくるデータの配列に関して、アド
レスに対してシフトさせる処理も行う。なお、本実施例
では、上記コントロール・レジスタへの設定により、D
FAC23を使用せずに、ECP13がダウンロードに
関わる処理を行うことができるように構成されている。
このとき、DFIFO部21は、FIFO構造をなした
ままであり、データの書き込みは、16ビット長のDF
IFOレジスタの窓口一つに順次設定されていくように
なっている。ただし、DFIFO部21のリード・アウ
トは、それ専用の領域が確保されており、アドレス指定
により必要とするデータの読み取りができるようになっ
ている。なお、この領域への書き込みは禁止されてお
り、ハード的にマスクされている。また、本実施例にお
いて、ホスト・コンピュータ11とDAC部16との通
信は、DAC制御回路17のDFAC23を使用して直
接通信する方式と、ECP13が通信データを読み、D
AC部16に送り込むあるいはその逆の方式、つまり通
信に逐次ECP13が介在する2通りの方式が用意され
ている。DFAC23による方式は、ダウンロード・コ
マンドにのみ使用される。
The DAC control circuit 17 is used in the download (write) direction in order to realize high-speed communication between the host computer 11 and the DAC unit 16.
FO unit 21, DAC control unit 22 for controlling DAC unit 16, direct FIFO access controller (hereinafter referred to as DFAC) 23 provided to reduce the processing of ECP 13, and upload (read) direction DAC data read register 24 used in
And a timing control unit 25 for generating a timing signal for controlling the DAC unit 16 and the like. DFAC
24 can be used by setting in a control register provided inside the DAC control unit 22 and the like, and can be used with the ECP 13 with a main bus release request signal (MHOL).
D) and its acknowledge signal (MHLDA), and DMA is performed between the FIFO units 12 of the communication software installed on the host computer 11. Further, the DAC control unit 22 also performs a process of shifting an array of data sent from the host computer 11 side with respect to an address. In this embodiment, D is set by setting the above control register.
The ECP 13 is configured to be able to perform processing related to download without using the FAC 23.
At this time, the DFIFO unit 21 still has the FIFO structure, and the writing of data is performed by the DF having a 16-bit length.
The number of IFO registers is set one by one. However, the read-out of the DFIFO unit 21 has a dedicated area reserved for reading out the required data by addressing. Note that writing to this area is prohibited and is masked in hardware. Further, in the present embodiment, the host computer 11 and the DAC unit 16 communicate with each other by directly using the DFAC 23 of the DAC control circuit 17, and the ECP 13 reads the communication data and
There are two methods for sending data to the AC unit 16 or vice versa, that is, two methods in which the ECP 13 sequentially intervenes in communication. The DFAC23 method is used only for download commands.

【0015】図2は本発明実施例のダウンロードに関わ
るDAC制御回路部分を説明するブロック図である。な
お、図1に対応する部分は同一の符号を記す。
FIG. 2 is a block diagram for explaining the DAC control circuit portion related to the download according to the embodiment of the present invention. The parts corresponding to those in FIG. 1 are designated by the same reference numerals.

【0016】同図において、DFIFO部21は、ホス
ト・コンピュータ11側から送られるデータを一時的に
記録する6個の16ビット長のデータ・レジスタから構
成されており、それぞれ内部バスでDAC部16に接続
されている。これらのデータ・レジスタは、DAC制御
部22の一部を構成するリード/ライトDFIFOセレ
クタ26から与えられる信号により、いずれかが選択さ
れリードまたはライトが制御される。このリード/ライ
トDFIFOセレクタ26は、DFAC23からのDF
IFOライト信号(DFIFO WR−)、DAC部1
6からのDFIFOリード要求信号(DFIFO RD
−)が入力され、DAC部16に対してアクノリッジ信
号(DFIFO RDY)を出力する。また、DFAC
23は、ホスト・コンピュータ11側のFIFO部12
に対してリード要求信号(FIFO RD−)を出力す
る。
In the figure, the DFIFO unit 21 is composed of six 16-bit data registers for temporarily recording the data sent from the host computer 11 side. It is connected to the. One of these data registers is selected and read or write is controlled by a signal supplied from a read / write DFIFO selector 26 which constitutes a part of the DAC control unit 22. The read / write DFIFO selector 26 uses the DF from the DFA C 23.
IFO write signal (DFIFO WR-), DAC unit 1
DFIFO read request signal (DFIFO RD
-) Is input and an acknowledge signal (DFIFO RDY) is output to the DAC unit 16. Also, DFAC
23 is a FIFO unit 12 on the host computer 11 side
To the read request signal (FIFO RD-).

【0017】図3は本発明実施例のダイレクト・アクセ
ス・コントローラの構成を示すブロック図である。
FIG. 3 is a block diagram showing the configuration of the direct access controller according to the embodiment of the present invention.

【0018】同図において、DAC部16は、ダウンロ
ード時にDFIFO部21から送られたきたデータをD
AC用に変換し、またアップロード時にDACデータ・
リード・レジスタへ出力するためにデータを用意するD
FIFO窓口部31と、このDFIFO窓口部31から
与えられるデータに基づきアドレスを生成しバス・コン
トローラに出力するアドレス生成部32と、DFIFO
窓口部31とバス・コントローラとの間でデータの制御
を行うデータ部33と、DFIFO窓口部31から与え
られる継続/終了及びレングス等のデータに基づき、エ
ミュレーションCPU14側にバス開放要求信号(DH
OLD)を出力しそのアクノリッジ信号(DHLDA)
を受信し、またDFIFOアクセス信号を出力してその
アクノリッジ信号(DFIFO RDY)を受信し、さ
らにDAC部16の各部を制御する信号を出力するコン
トロール部34と、クロック信号(ECLK)とROM
アドレスを入力してタイミング信号を生成しコントロー
ル部34に出力するタイミング生成部35等から構成さ
れている。なお、このようなダイレクト・アクセス・コ
ントローラに関する構成及びその動作の詳細について
は、前述の特開昭64−13640号公報に開示されて
いるため、詳細な説明を省略する。
In the figure, the DAC unit 16 stores the data sent from the DFIFO unit 21 at the time of download.
Converted for AC, and also DAC data when uploading.
D prepares the data for output to the read register
A FIFO window section 31, an address generation section 32 that generates an address based on the data given from the DFIFO window section 31, and outputs it to the bus controller, and a DFIFO.
A bus release request signal (DH) is sent to the emulation CPU 14 based on the data section 33 that controls data between the window section 31 and the bus controller, and the data such as continuation / end and length given from the DFIFO window section 31.
OLD) and outputs its acknowledge signal (DHLDA)
, A DFIFO access signal to output the acknowledge signal (DFIFO RDY), and a signal to control each unit of the DAC unit 16, and a clock signal (ECLK) and a ROM.
It is composed of a timing generation unit 35 which inputs an address, generates a timing signal, and outputs it to the control unit 34. The details of the configuration and operation of such a direct access controller are disclosed in the above-mentioned Japanese Patent Laid-Open No. 64-13640, so detailed description thereof will be omitted.

【0019】図4は本発明実施例のパケットの構造例を
説明する図、図5は本発明実施例のパケットのスタート
アドレスの構造例を説明する図である。
FIG. 4 is a diagram for explaining an example of the structure of the packet of the embodiment of the present invention, and FIG. 5 is a diagram for explaining an example of the structure of the start address of the packet of the embodiment of the present invention.

【0020】本実施例のパケット構造例は、前述のコマ
ンドが「42」のダウンロードのプロトコルタイプであ
り、図4に示すように、ホスト・コンピュータ11側か
ら送られるパケットのフォーマットは、継続コード(1
6ビット)、スタートアドレス(32ビット)、レング
ス(32ビット)に、転送する任意のデータ(レングス
分)が後続し、また、終了コード(16ビット)に、5
ワードのダミーが後続する。スタートアドレスは、転送
先のベースアドレス、レングスは、転送データ長、デー
タは転送する任意のデータである。継続コードは、同一
のコマンドであることを認識し、再度新しい転送先のア
ドレスとレングスに従いダウンロードを行うコード、終
了コードは、データ転送の終了を行うコードである。ま
た、スタートアドレスの構造は、例えば、図5に示すよ
うに、5ワードから構成されており、ダミー、下位16
ビット、上位16ビットに、ダミー、ダミーが後続す
る。なお、その他のアップロードタイプのパケット構
造、及びECP13が通信データを読み、DAC部16
に送り込んだりあるいはその逆を行うパケット構造例の
説明は省略する。
In the packet structure example of this embodiment, the above-mentioned command is the download protocol type of "42", and as shown in FIG. 4, the format of the packet sent from the host computer 11 side is the continuation code ( 1
6 bits), start address (32 bits), length (32 bits), followed by arbitrary data to be transferred (length), and end code (16 bits) with 5
A word dummy follows. The start address is the base address of the transfer destination, the length is the transfer data length, and the data is any data to be transferred. The continuation code is a code for recognizing the same command and downloading again according to the new transfer destination address and length, and the end code is a code for ending the data transfer. The structure of the start address is, for example, composed of 5 words as shown in FIG.
A dummy and a dummy follow the bit and the upper 16 bits. Note that other upload type packet structures and the ECP 13 read communication data, and the DAC unit 16
The description of an example packet structure for sending to or from the packet is omitted.

【0021】次に、上記構成のインサーキット・エミュ
レータの動作をタイミング図により説明する。図6は本
発明実施例のDFACにおけるダウンロードの動作を説
明するタイミング図である。なお、このタイミング図
は、アドレス及びレングスに関するサイクルを除外して
いる。
Next, the operation of the in-circuit emulator having the above configuration will be described with reference to timing charts. FIG. 6 is a timing diagram for explaining the download operation in the DFAC according to the embodiment of the present invention. It should be noted that this timing diagram excludes cycles related to addresses and lengths.

【0022】ホスト・コンピュータ11から出力される
FIFO部12への書き込みのタイミング信号(FIF
O WR−)と、リード可能信号(FIFO RDY)
に基づきFIFO12へのコマンドまたはデータの書き
込みが行われる。次に、最初のコマンドがECP13で
認識されると、DAC制御回路17へ通知され、そのコ
ントロール・レジスタに設定されると、スタート信号
(START−)が出力され、その使用が可能になる。
A timing signal (FIF for writing to the FIFO unit 12 output from the host computer 11
OWR-) and readable signal (FIFO RDY)
A command or data is written to the FIFO 12 based on the above. Next, when the first command is recognized by the ECP 13, it is notified to the DAC control circuit 17, and when it is set in the control register, a start signal (START-) is output, and its use becomes possible.

【0023】次に、DAC制御回路17では、FIFO
部12がリード可能(FIFO RDYが「ハイレベ
ル」)となってからバス開放要求信号(MHOLDが
「ハイレベル」で図のa)を発生し、DFIFO部21
の全てのレジスタにデータが満たされていないとき(D
FIFO FULL−またはDAC RDYが「ローレ
ベル」で図のb)、もしくはFIFO部12がリード可
能でなくなったとき(FIFO RDYが「ローレベ
ル」で図のc)に、ECP13にバス開放要求信号を出
力する(MHOLDが「ローレベル」)。すなわち、F
IFO部12に送信するデータが存在し、かつDFIF
O部21に書き込むことができる状態の場合に、ECP
13に対してバス開放要求信号が出力され、続いてEC
P13からそのアクノリッジ信号(MHLDAが「ハイ
レベル」)が出力され、続いてバスが解放されてFIF
O部12にデータが書き込まれる。
Next, in the DAC control circuit 17, the FIFO
After the section 12 becomes readable (FIFO RDY is “high level”), a bus release request signal (MHOLD is “high level” and a in the figure) is generated, and the DFIFO section 21
When data is not filled in all registers of (D
When the FIFO FULL- or DAC RDY is "low level", b) in the figure, or when the FIFO unit 12 becomes unreadable (FIFO RDY is "low level", c in the figure), a bus release request signal is sent to the ECP 13. Output (MHOLD is "low level"). That is, F
There is data to be transmitted to the IFO unit 12, and the DFIF
When it is possible to write to O section 21, ECP
A bus release request signal is output to 13 and then EC
The acknowledge signal (MHLDA is “high level”) is output from P13, and then the bus is released and the FIF
Data is written in the O section 12.

【0024】次に、DAC部16では、DFIFO部2
1のリード要求信号(DFIFORD−が「ローレベ
ル」)は、DFIFO部21がリード可能信号(DFI
FORDYが「ハイレベル」で図のd)となって発生
し、続いて、同様にエミュレーションCPU14に対す
るバス開放要求サイクル(DHOLD及びDHLDA)
が発生する。すなわち、DFIFO部21に送信するデ
ータが存在し、かつDAC部16がリード可能の場合
に、エミュレーションCPU14に対してバス開放要求
信号(DHOLDが「ハイレベル」)が出力され、続い
てエミュレーションCPU14からそのアクノリッジ信
号(DHLDAが「ハイレベル」)が出力され、続いて
バスが解放されてターゲット・システム15にライト可
能(USER WR−が「ローレベル」)になる。ま
た、DFIFO部21のリード要求信号(DFIFO
RD−が「ローレベル」)を出力したときには、DAC
制御回路17は、DFIFO部21に書き込み可能の状
態(DFIFO FULL−の「ローレベル」を「ハイ
レベル」で図のe)にする。
Next, in the DAC section 16, the DFIFO section 2
The read request signal of 1 (DFIFORD- is “low level”) is read by the DFIFO unit 21 as a read enable signal (DFI).
This occurs when FORDY is "high level" as shown in d) of the figure, and subsequently, similarly, a bus release request cycle (DHOLD and DHLDA) to the emulation CPU 14 is generated.
Occurs. That is, when there is data to be transmitted to the DFIFO section 21 and the DAC section 16 is readable, a bus release request signal (DHOLD is “high level”) is output to the emulation CPU 14, and then the emulation CPU 14 outputs. The acknowledge signal (DHLDA is “high level”) is output, the bus is released, and the target system 15 can be written (USER WR− is “low level”). Further, the read request signal (DFIFO of the DFIFO unit 21
When RD- outputs "low level", the DAC
The control circuit 17 puts the DFIFO unit 21 in a writable state (“low level” of DFIFO FULL− is “high level” e in the figure).

【0025】図7は本発明実施例のDAC部の状態遷移
を説明する図である。
FIG. 7 is a diagram for explaining the state transition of the DAC section according to the embodiment of the present invention.

【0026】まず、リセット信号によりスタンバイ状態
(A)からスタートすると、DAC制御回路17または
ECP13からのアドレス待ちの状態(B)に移り、ア
ドレスに相当するデータが全てセットされたときに、次
のDAC制御回路17またはECP13からのレングス
待ちの状態(C)に移る。次に、レングスに相当するデ
ータが全てセットされたときに、予め所定のレジスタに
設定されたアップロードまたはダウンロードに基づい
て、データライトまたはデータリードの状態(Dまたは
E)に移り、この状態で所定のアドレスに対しレングス
で与えられた長さのデータのライトまたはリードが行わ
れる。次に、DAC制御回路17またはECP13から
与えられる継続または終了の分岐状態(E)に移り、継
続の場合には、再びアドレス待ち(B)及びレングス待
ち(C)に移り、データのライトまたはリードが行われ
る。また、終了の場合には、エンドの状態(G)に移
り、割り込みを発生し、最初の状態に戻る。データライ
トまたはデータリードの状態(DまたはE)において、
ストップのときには、エンドの状態に移る。なお、スタ
ートまたはストップは、DAC部16のスタートレジス
タまたはストップレジスタで行われる。次に、データラ
イトまたはデータリードの状態(DまたはE)におい
て、何らかのエラーが発生したときには、緊急を要する
エラーの状態(H)に移り割り込みを発生するか、また
は、ホルトの状態(I)に移り、エラーが発生したこと
を通知し、DAC制御回路17またはECP13からの
指示で再び、データライトの状態(D)、データリード
の状態(E)またはエンドの状態(G)に移る。
First, when starting from the standby state (A) by the reset signal, it shifts to the state (B) of waiting for an address from the DAC control circuit 17 or ECP 13, and when all the data corresponding to the address is set, The state shifts to the length waiting state (C) from the DAC control circuit 17 or the ECP 13. Next, when all the data corresponding to the length has been set, the state is changed to the data write or data read state (D or E) based on the upload or download set in the predetermined register in advance, and in this state the predetermined The data of the length given by the length is written to or read from the address. Next, the branch state (E) given from the DAC control circuit 17 or the ECP 13 is passed, and in the case of the continuation, the address wait (B) and the length wait (C) are moved again to write or read data. Is done. In the case of the end, the state moves to the end state (G), an interrupt is generated, and the state returns to the initial state. In the data write or data read state (D or E),
When it is a stop, it moves to the end state. The start or stop is performed by the start register or the stop register of the DAC unit 16. Next, when an error occurs in the data write or data read state (D or E), the state moves to an urgent error state (H) and an interrupt occurs, or the halt state (I) is set. Then, the fact that an error has occurred is notified, and the state of data write (D), the state of data read (E), or the state of end (G) is entered again by an instruction from the DAC control circuit 17 or ECP 13.

【0027】以上のように上記構成では、ホスト・コン
ピュータ11からターゲット・システム15にプログラ
ムデータをダウンロードさせるときには、図4に示すフ
ォーマットのパケットになり、最初のコマンドをECP
13が認識し、DAC制御回路17に通知する。この通
知により、DAC制御回路17は、ECP13に対して
バス開放要求を行い、ECP13のバス開放とともに、
ホスト・コンピュータ11とDAC制御回路17とが直
結される。DAC制御回路17は、ホスト・コンピュー
タ11から与えられるコマンドをDAC部16に合った
ものに変換し、DAC部16へコマンドとデータの送り
込みを行う。パケットには、継続及び終了コードがあ
り、継続のときには同一のコマンドであることを認識
し、再度新しい転送先のアドレスとレングスに従い、ダ
ウンロードを行う。また、終了のときにはDAC部16
が最終のデータ転送が終了した時点で、ECP13にバ
スの明け渡しを行い終了する。また、アップロードにつ
いては、データの方向がDAC部16からホスト・コン
ピュータ11側に向くだけで同じ原理となる。従って、
コマンドによりDAC制御回路17の使用が可能にな
り、ECP13の処理を軽減することができ、ダウンロ
ード及びアップロードの高速化ができるとともに、シス
テムの効率化を図ることができる。
As described above, in the above configuration, when the program data is downloaded from the host computer 11 to the target system 15, the packet has the format shown in FIG. 4, and the first command is ECP.
13 recognizes and notifies the DAC control circuit 17. With this notification, the DAC control circuit 17 makes a bus release request to the ECP 13, and when the ECP 13 bus is released,
The host computer 11 and the DAC control circuit 17 are directly connected. The DAC control circuit 17 converts a command given from the host computer 11 into one suitable for the DAC unit 16 and sends the command and data to the DAC unit 16. The packet has a continuation code and an end code. When the packet is continued, it is recognized that the command is the same, and the download is performed again according to the address and length of the new transfer destination. In addition, when ending, the DAC unit 16
When the final data transfer is completed, the bus is released to the ECP 13 and the process is completed. The same principle applies to uploading, only that the data direction is from the DAC unit 16 to the host computer 11 side. Therefore,
The command enables the DAC control circuit 17 to be used, the processing of the ECP 13 can be reduced, the download and upload can be speeded up, and the efficiency of the system can be improved.

【0028】[0028]

【発明の効果】以上詳細に説明したように、本発明によ
れば、ホスト・コンピュータから送られるコマンドを、
ダウンロードとアップロードを行うDAC部のコマンド
に変換し送り込むとともに、ホスト・コンピュータの速
度とDAC部の速度の差によるお互いの待ち時間を省く
ように構成したことで、高速化を図ることができ、ま
た、ダウンロード及びアップロードのコマンドに対して
ECPが関与する必要がなくなったため、システムとし
ての効率化が図られる効果がある。
As described in detail above, according to the present invention, the command sent from the host computer is
By converting and sending to the command of the DAC unit for downloading and uploading, and by eliminating the waiting time due to the difference between the speed of the host computer and the speed of the DAC unit, it is possible to achieve higher speed. Since there is no need for the ECP to be involved in the download and upload commands, the efficiency of the system can be improved.

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

【図1】本発明実施例のインサーキット・エミュレータ
を説明する全体ブロック図である。
FIG. 1 is an overall block diagram illustrating an in-circuit emulator according to an embodiment of the present invention.

【図2】本発明実施例のダウンロードに関わるDAC制
御回路部分を説明するブロック図である。
FIG. 2 is a block diagram illustrating a DAC control circuit portion related to downloading according to an embodiment of the present invention.

【図3】本発明実施例のダイレクト・アクセス・コント
ローラの構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a direct access controller according to an embodiment of the present invention.

【図4】本発明実施例のパケットの構造例を説明する図
である。
FIG. 4 is a diagram illustrating an example of a packet structure according to an embodiment of the present invention.

【図5】本発明実施例のパケットのスタートアドレスの
構造例を説明する図である。
FIG. 5 is a diagram illustrating an example of the structure of a start address of a packet according to the embodiment of this invention.

【図6】本発明実施例のDFACにおけるダウンロード
の動作を説明するタイミング図である。
FIG. 6 is a timing diagram illustrating a download operation in the DFAC according to the embodiment of this invention.

【図7】本発明実施例のDAC部の状態遷移を説明する
図である。
FIG. 7 is a diagram illustrating state transition of the DAC unit according to the embodiment of this invention.

【図8】従来のインサーキット・エミュレータにおける
ダイレクト・アクセス・コントローラの制御を説明する
ブロック図である。
FIG. 8 is a block diagram illustrating control of a direct access controller in a conventional in-circuit emulator.

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

11 ホスト・コンピュータ 12 FIFO部 13 ECP 14 エミュレーションCPU 15 ターゲト・システム 16 DAC部 17 DAC制御回路 21 DFIFO部 22 DAC制御部 23 DFAC 24 DACデータ・リードレジスタ 25 タイミング制御部 11 host computer 12 FIFO unit 13 ECP 14 emulation CPU 15 target system 16 DAC unit 17 DAC control circuit 21 DFIFO unit 22 DAC control unit 23 DFAC 24 DAC data read register 25 timing control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ホスト・コンピュータとターゲット・シ
ステムとの間でプログラムのアップロード及びダウンロ
ードを行うダイレクト・アクセス・コントローラ部を有
するインサーキット・エミュレータにおいて、 前記ホスト・コンピュータとダイレクト・アクセス・コ
ントローラ部との間に設けられ、前記ホスト・コンピュ
ータから送られるコマンドを、ダイレクト・アクセス・
コントローラ部のコマンドに変換し送り込むとともに、
該ホスト・コンピュータとダイレクト・アクセス・コン
トローラ部の速度差による、お互いの待ち時間を制御す
るダイレクト・アクセス・コントローラ制御回路を設け
たことを特徴とするインサーキット・エミュレータ。
1. An in-circuit emulator having a direct access controller section for uploading and downloading a program between a host computer and a target system, wherein the host computer and the direct access controller section are connected to each other. Direct access commands sent from the host computer provided between
While converting into a command of the controller part and sending it,
An in-circuit emulator comprising a direct access controller control circuit for controlling a waiting time of each other depending on a speed difference between the host computer and the direct access controller section.
JP4223617A 1992-07-31 1992-07-31 In-circuit emulator Expired - Lifetime JP2962498B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4223617A JP2962498B2 (en) 1992-07-31 1992-07-31 In-circuit emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4223617A JP2962498B2 (en) 1992-07-31 1992-07-31 In-circuit emulator

Publications (2)

Publication Number Publication Date
JPH0652009A true JPH0652009A (en) 1994-02-25
JP2962498B2 JP2962498B2 (en) 1999-10-12

Family

ID=16801013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4223617A Expired - Lifetime JP2962498B2 (en) 1992-07-31 1992-07-31 In-circuit emulator

Country Status (1)

Country Link
JP (1) JP2962498B2 (en)

Also Published As

Publication number Publication date
JP2962498B2 (en) 1999-10-12

Similar Documents

Publication Publication Date Title
US4851990A (en) High performance processor interface between a single chip processor and off chip memory means having a dedicated and shared bus structure
TW409204B (en) Expansion interface conversion device and conversion method therefor
KR100708266B1 (en) Direct memory access control method, direct memory access controller, information processing system, and computer readable media comprising program
EP1058189B1 (en) Microcomputer with debugging system
JP2962498B2 (en) In-circuit emulator
US5163135A (en) Computer system and method for setting recovery time upon execution of an I/O command
KR100306596B1 (en) VLSI Emulator Using Processors and Reconfigurable Chips
US4630194A (en) Apparatus for expediting sub-unit and memory communications in a microprocessor implemented data processing system having a multibyte system bus that utilizes a bus command byte
JPS5938827A (en) Microprocessor ipl system
JP2002149626A (en) Microcomputer
JPS61175834A (en) Data processor provided with microprogram debug function
JPS588366A (en) Memory module system
JP2954006B2 (en) Emulation device and emulation method
JPH10312307A (en) Emulator applied to computer system
JPS5858632A (en) Controlling method of input/output interface
JP2667285B2 (en) Interrupt control device
JPH05334234A (en) High speed dma transferring device
JPS58225421A (en) Data processor
JPH03225551A (en) Input and output device access control system
JPH02272955A (en) Interruption system for arbitrary received data
JPS63182764A (en) Memory control system
JPS62147545A (en) Transfer command processing method in information processing equipment
KR19990058631A (en) DM Controller
JPH08307586A (en) Facsimile apparatus and control method thereof
JPH0352041A (en) Local memory control circuit