[go: up one dir, main page]

JPH11154102A - Emulator having data conversion circuit - Google Patents

Emulator having data conversion circuit

Info

Publication number
JPH11154102A
JPH11154102A JP9319921A JP31992197A JPH11154102A JP H11154102 A JPH11154102 A JP H11154102A JP 9319921 A JP9319921 A JP 9319921A JP 31992197 A JP31992197 A JP 31992197A JP H11154102 A JPH11154102 A JP H11154102A
Authority
JP
Japan
Prior art keywords
data
address
circuit
signal
memory
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.)
Withdrawn
Application number
JP9319921A
Other languages
Japanese (ja)
Inventor
Toshiaki Yanagihara
敏明 柳原
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics Corp
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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP9319921A priority Critical patent/JPH11154102A/en
Publication of JPH11154102A publication Critical patent/JPH11154102A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 評価用CPUの実行を停止させることなく、
デバッグにおけるデータの変更を容易に行い、デバッグ
の効率を向上させることである。 【解決手段】 アドレスバス上のアドレスと、予め設定
された、置き換えの対象とするデータのアドレスとの一
致を検出した場合には、アドレス一致信号S4を出力す
るアドレス検出回路31と、アドレス一致信号S4に基
づいて、メモリ2からデータバスへの出力禁止を要求す
る出力禁止回路32と、評価用CPU1の要求に対応し
て、予め設定された、置き換えを行う変換データをデー
タバスに出力するデータ切換回路34とを少なくとも具
備するデータ変換回路3を備え、評価用CPU1の実行
中にメモリ2からのデータを任意の変換データに置き換
えを行う。
(57) [Summary] [Problem] Without stopping execution of an evaluation CPU,
An object of the present invention is to easily change data in debugging and improve debugging efficiency. An address detection circuit for outputting an address coincidence signal when an coincidence between an address on an address bus and a preset address of data to be replaced is detected; An output prohibition circuit 32 for requesting output prohibition from the memory 2 to the data bus based on S4, and data for outputting preset conversion data to be replaced to the data bus in response to a request from the evaluation CPU 1. A data conversion circuit 3 including at least a switching circuit 34, and replaces data from the memory 2 with arbitrary conversion data during execution of the evaluation CPU 1.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データ変換回路を
有するエミュレータに関し、特に、マイクロコンピュー
タを内蔵するIC製品のデバッグの際に、IC製品のデ
バッグを容易とし、デバッグの効率を向上させるための
技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an emulator having a data conversion circuit, and more particularly, to an IC product having a microcomputer, which facilitates debugging of the IC product and improves debugging efficiency. About technology.

【0002】[0002]

【従来の技術】一般に、マイクロコンピュータを内蔵す
るIC製品の開発においては、エミュレータを用いて、
当該IC製品のハードウェア、ソフトウェア設計の検証
のためのデバッグが行われる。
2. Description of the Related Art Generally, in the development of an IC product incorporating a microcomputer, an emulator is used.
Debugging for verifying the hardware and software design of the IC product is performed.

【0003】即ち、デバッグとは、IC製品の中のマイ
クロコンピュータ及びその周辺回路が、設計時における
機能仕様、タイミング仕様を満たす状態となるまで、実
機環境を用いてパラメータデータを繰り返し調整し、動
作確認を行うことを内容とする。
[0003] That is, debugging means that the microcomputer and its peripheral circuits in an IC product repeatedly adjust parameter data using the actual machine environment until the microcomputer and the peripheral circuits satisfy the functional specifications and timing specifications at the time of design. The content is to confirm.

【0004】そして、エミュレータとは、かかるデバッ
グにおいて、ターゲットとなる対象製品のCPUとメモ
リの動作を代行させて確認することにより、対象製品の
動作確認を行うツールである。
[0004] The emulator is a tool for confirming the operation of the target product by checking the operations of the CPU and the memory of the target product for the target in the debugging.

【0005】かかるエミュレータは、一般に、ターゲッ
トCPUと同等の機能を持つ評価用CPUと書き換え可
能なメモリ、およびエミュレータ全体をコントロールす
る制御CPUとが主な構成要素となり、評価用CPUと
メモリ間は、アドレスバスおよびデータバスにより接続
されている。
In general, such an emulator is mainly composed of an evaluation CPU having the same function as a target CPU, a rewritable memory, and a control CPU for controlling the entire emulator. They are connected by an address bus and a data bus.

【0006】従来における、エミュレータを用いたデバ
ッグの動作につき、以下に説明する。
A conventional debugging operation using an emulator will be described below.

【0007】ターゲットCPU及びその周辺回路のデバ
ッグは、評価用CPUが、パラメータデータを記憶する
メモリを随時アクセスしながら、プログラムを実行して
いき、その際の動作状態を観察しながら、実際のターゲ
ットCPU内に格納するパラメータデータを、所望の動
作が実現されるまで、繰り返し調整していくことによ
り、行われるものである。このプログラム実行中におい
ては、評価用CPUとメモリの間で、アドレスバスおよ
びデータバスは、専有状態となっていた。
[0007] In debugging of the target CPU and its peripheral circuits, the evaluation CPU executes the program while accessing the memory storing the parameter data as needed, and observes the actual operating state at that time while observing the actual target state. This is performed by repeatedly adjusting the parameter data stored in the CPU until a desired operation is realized. During the execution of the program, the address bus and the data bus between the evaluation CPU and the memory are in the exclusive state.

【0008】そして、かかるパラメータデータの調整
は、具体的には、随時、メモリ(RAM、Random
Access Memory)に記憶したデータテー
ブルの内容を、制御用CPUにより、書き換えて変更す
ることで、行われていた。
[0008] More specifically, the adjustment of the parameter data is performed at any time by a memory (RAM, Random).
This is performed by rewriting and changing the contents of the data table stored in the Access Memory) by the control CPU.

【0009】しかしながら、書き換えに必要となるアド
レスバス及びデータバスは、前述のように、その構成
上、評価CPUとメモリ間で専有されていて、制御CP
Uにバスが解放されていないために、プログラム実行中
においては、制御CPUがメモリの内容を書き換えるこ
とができなかった。
However, as described above, the address bus and data bus required for rewriting are exclusively used between the evaluation CPU and the memory due to the configuration, and the control CP
Since the bus was not released to U, the control CPU could not rewrite the contents of the memory during the execution of the program.

【0010】従って、あるパラメータデータを変更し、
かかる変更後のパラメータデータによる動作状態を観察
するためには、以下の一連の手順が、変更を行うたびご
とに必要とされていた。即ち、まず、いったん評価用C
PUのプログラム実行を中止した後に、評価用CPU及
び周辺回路を同時に停止させ、アドレスバス及びデータ
バスの方向を、制御CPUに向けて切り換え、しかる後
に、制御CPUにより、メモリ内のデータテーブルの内
容を書き換えて、再び評価用CPU及び周辺回路を稼働
させ、評価用CPUにプログラムを最初の処理から再実
行させ、周辺回路の動作状態をモニターしていたのであ
る。また、メモリデータの書き換えとは、具体的には、
メモリに格納するデータテーブルの該当部分を書き換
え、再びメモリ上にロードしなければならなかった。
Therefore, when certain parameter data is changed,
In order to observe the operation state based on the parameter data after the change, the following series of procedures was required every time the change was performed. That is, first, the evaluation C
After stopping the program execution of the PU, the evaluation CPU and the peripheral circuits are simultaneously stopped, and the directions of the address bus and the data bus are switched toward the control CPU. Then, the content of the data table in the memory is controlled by the control CPU. Was rewritten, the evaluation CPU and the peripheral circuit were operated again, the evaluation CPU was re-executed from the first processing, and the operation state of the peripheral circuit was monitored. Also, rewriting of memory data is, specifically,
The corresponding portion of the data table stored in the memory had to be rewritten and loaded into the memory again.

【0011】また、上述の構成によるエミュレータとは
別に、OTPマイコン、即ち、OTP(One Tim
e PROM)と、評価用のマイクロコンピュータとを
組み合わせたものも、デバッグ用のツールとして多用さ
れている。かかるOTPマイコンの場合は、評価用のパ
ラメータデータを一回しか書き込めず、メモリの書き換
えが不能であるので、パラメータデータのパターンごと
に、複数のOTPを用意し、これを適宜差し替えること
によって、パラメータデータの調整を行っていた。従っ
て、パラメータデータの変更には、上述のエミュレータ
と同様に、評価用CPUのプログラム実行の中止、評価
用CPU及び周辺回路の停止及び、OTPの差し替え
と、プログラムの最初の処理からの再実行が必要とされ
ていた。
In addition to the emulator having the above configuration, an OTP microcomputer, that is, an OTP (One Time)
A combination of an e-PROM and an evaluation microcomputer is also frequently used as a debugging tool. In the case of such an OTP microcomputer, the parameter data for evaluation can be written only once, and the memory cannot be rewritten. Therefore, a plurality of OTPs are prepared for each parameter data pattern, and the The data was being adjusted. Therefore, the change of the parameter data includes stopping the execution of the program by the evaluation CPU, stopping the evaluation CPU and peripheral circuits, replacing the OTP, and re-executing the program from the first processing, as in the above-described emulator. Was needed.

【0012】[0012]

【発明が解決しようとする課題】このように、前述した
従来のエミュレータには以下の問題点があった。即ち、
マイクロコンピュータにプログラミングするパラメータ
データの調整を行うためには、メモリ上のデータの書き
換えを要し、かかる変更を行うたびごとに、評価用CP
Uのプログラムの実行を中止した上で、評価用CPUと
周辺回路を同時に停止し、再度プログラムの実行を最初
の処理から行っていたので、パラメータ調整に長時間を
要していた。また、前述したように、メモリ上のパラメ
ータデータの変更作業自体にも長時間を要していた。
As described above, the above-mentioned conventional emulator has the following problems. That is,
In order to adjust the parameter data to be programmed in the microcomputer, it is necessary to rewrite the data in the memory. Each time such a change is made, the evaluation CP
After stopping the execution of the program U, the evaluation CPU and the peripheral circuits were simultaneously stopped, and the program was executed again from the first processing, so that it took a long time to adjust the parameters. Further, as described above, the work of changing the parameter data on the memory itself took a long time.

【0013】従って、デバッグ作業そのものが、非効率
的なものであったのである。そして、このことは特に、
表示機能の確認を要する画像表示装置などのように、パ
ラメータの微調整を要するために、パラメータの変更が
頻繁に行われる場合や、ある種の周辺回路などのよう
に、所定の動作ポイントに到達するまでに長時間を要
し、動作比較が困難な場合などにおいて、特に顕著であ
り、デバッグにおけるボトルネックとなって、デバッグ
作業を長期化させ、その迅速化を阻んでいた。即ち、こ
れらの処理においては、特に、データの容易な変更、連
続的な変更などが求められるのであるが、従来のエミュ
レータでは、これを実現することはできなかったのであ
る。
Therefore, the debugging work itself was inefficient. And this is especially
When a parameter is required to be finely adjusted, such as in an image display device that requires confirmation of the display function, the parameter is frequently changed, or when a predetermined operation point is reached, such as in a certain peripheral circuit. This is particularly noticeable in cases where it takes a long time to perform the operations and it is difficult to compare the operations, etc., and has become a bottleneck in debugging, prolonging the debugging work and impeding the speeding up. That is, in these processes, particularly, easy change and continuous change of data are required, but this cannot be realized by the conventional emulator.

【0014】以上のように、本発明は、従来技術におけ
る、デバッグにおいて、パラメータデータの調整に長時
間を要し、デバッグ作業が非効率的であったという問題
点を解決するためになされたものである。そして、その
目的とするところは、プログラム実行中に評価用CPU
が読みとるデータを、任意のデータに置き換えることに
よって、評価用CPUの実行を停止させることなく、デ
バッグにおけるデータの変更を容易に行い、デバッグの
効率を向上させることを可能とするデータ変換回路を有
するエミュレータを提供することにある。
As described above, the present invention has been made in order to solve the problem in the prior art that it takes a long time to adjust parameter data in debugging and debugging work is inefficient. It is. The purpose is to evaluate the CPU during program execution.
Has a data conversion circuit capable of easily changing data in debugging without stopping execution of the evaluation CPU, and improving debugging efficiency by replacing data read by the CPU with arbitrary data. To provide an emulator.

【0015】また、他の目的は、更に、置き換えたデー
タでメモリの内容を書き換えることにより、良い評価の
得られたパラメータデータを残し、更にデバッグの効率
の向上を図ることにある。
Another object of the present invention is to further improve the debugging efficiency by rewriting the contents of the memory with the replaced data, thereby leaving the parameter data obtained with a good evaluation.

【0016】加えて、他の目的は、ビット単位で任意の
データへの置き換えを行うことにより、更に精度の高い
パラメータ調整を図ることにある。
Another object of the present invention is to achieve more accurate parameter adjustment by replacing data with arbitrary data in bit units.

【0017】加えて、他の目的は、任意のデータを始点
として連続的に増減させたデータでの置き換えを行うこ
とによって、当該パラメータデータの近傍における連続
的な動作確認を可能とし、更に、デバッグの効率の向上
を図ることにある。
In addition, another object of the present invention is to make it possible to continuously check the operation in the vicinity of the parameter data by performing replacement with data that has been continuously increased or decreased with arbitrary data as a starting point. To improve the efficiency of the system.

【0018】[0018]

【課題を解決するための手段】要するに、本発明装置
(請求項1)は、評価用CPUと、該評価用CPUとの
間は、少なくとも、アドレスバスと、データバスとによ
り接続されるメモリと、を少なくとも有するエミュレー
タにおいて、前記アドレスバス上のアドレスと、予め設
定された、置き換えの対象とするデータのアドレスとの
一致を検出した際には、前記メモリから前記データバス
への出力禁止を要求するとともに、前記評価用CPUの
要求に対応して、予め設定された、置き換えを行う任意
の変換データを、前記データバスに対して、出力するデ
ータ変換回路を有することを特徴とするものである。か
かる方法によれば、アドレスバス上のアドレスと、予め
設定した置き換え対象データのアドレスとの一致を検出
した場合に、本来メモリから出力されるデータを任意の
データに置き換えることにより、評価用CPUの実行を
停止することなく、評価用CPUの読みとりデータを容
易に変更することが可能となる。
In short, the device of the present invention (claim 1) comprises an evaluation CPU and at least a memory connected by an address bus and a data bus between the evaluation CPU and the evaluation CPU. Requesting output prohibition from the memory to the data bus when the emulator has at least a match between an address on the address bus and a preset address of data to be replaced. A data conversion circuit for outputting, to the data bus, any conversion data set in advance, which is to be replaced, in response to a request from the evaluation CPU. . According to this method, when a match between the address on the address bus and the address of the preset replacement target data is detected, the data originally output from the memory is replaced with arbitrary data. It is possible to easily change the data read by the evaluation CPU without stopping the execution.

【0019】また、請求項2の発明においては、評価用
CPUと、該評価用CPUとの間は、少なくとも、アド
レスバスと、データバスとにより接続されるメモリと、
を少なくとも有するエミュレータにおいて、前記アドレ
スバスに接続され、前記アドレスバス上のアドレスと、
予め設定された、置き換えの対象とするデータのアドレ
スとの一致を検出した場合には、アドレス一致信号を出
力するアドレス検出回路と、前記アドレス一致信号に基
づいて、前記メモリから前記データバスへの出力禁止を
要求する出力禁止回路と、前記データバスに接続され、
前記評価用CPUの要求に対応して、予め設定された、
置き換えを行う変換データを前記データバスに出力する
データ切換回路とを少なくとも具備するデータ変換回路
を有することにより、請求項1の発明装置と同様に、評
価用CPUの実行を停止することなく、その読みとりデ
ータを容易に変更することが可能となる。
According to the second aspect of the present invention, at least a memory connected by an address bus and a data bus is provided between the evaluation CPU and the evaluation CPU.
An emulator having at least: an address connected to the address bus, and an address on the address bus;
When a match with a preset address of data to be replaced is detected, an address detection circuit that outputs an address match signal, and, based on the address match signal, a signal from the memory to the data bus. An output inhibition circuit for requesting output inhibition, connected to the data bus,
In response to the request of the evaluation CPU, a preset
And a data switching circuit for outputting conversion data to be replaced to the data bus, the data switching circuit having at least a data switching circuit. The read data can be easily changed.

【0020】また、請求項3の発明においては、前記メ
モリは、書き換え可能メモリであり、前記データ変換回
路は、更に、予め設定された書き込み要求に従い、前記
アドレス一致信号に基づいて、前記評価用CPUから出
力されるリード信号を、前記メモリに対してライト信号
として変換出力する信号変換回路を有し、前記データ切
換回路から出力される前記変換データを、更に、前記メ
モリに対して書き換え出力を行うことにより、評価用C
PUに対して置き換えを行った任意のデータで、同時に
メモリの内容を書き換えることが可能となる。つまり、
良い評価の得られたパラメータデータをそのままメモリ
上にも残し、その後の動作確認で用いることが可能とな
る。
Further, in the invention according to claim 3, the memory is a rewritable memory, and the data conversion circuit further includes a memory for writing the evaluation data based on the address match signal in accordance with a preset write request. A signal conversion circuit that converts a read signal output from the CPU as a write signal to the memory and outputs the converted data output from the data switching circuit; By doing, C for evaluation
It is possible to simultaneously rewrite the contents of the memory with any data that has been replaced for the PU. That is,
The parameter data with good evaluation can be left on the memory as it is, and can be used for subsequent operation check.

【0021】また、請求項4の発明においては、評価用
CPUと、該評価用CPUとの間は、少なくともアドレ
スバスにより接続されるメモリとを少なくとも有するエ
ミュレータにおいて、前記アドレスバスに接続され、前
記アドレスバス上のアドレスと、予め設定された、置き
換えの対象とするデータのアドレスとの一致を検出した
場合には、アドレス一致信号を出力するアドレス検出回
路と、前記アドレス一致信号に基づいて、予め設定され
た変換のビットパターンデータに従い、前記置き換え対
象データ中の置き換え指定ビットについてのビット切換
許可信号を出力するビットデータ切換判定回路と、前記
評価用CPUおよび前記メモリとの間は、それぞれデー
タバスにより接続され、前記ビット切換許可信号に基づ
いて、入力される前記置き換え対象データを、前記置き
換え指定ビットについてのみ、前記ビットパターンデー
タに従って置き換えを行い、前記データバスに出力する
ビットデータ切換器とを少なくとも具備するデータ変換
回路を有することにより、ビット単位で任意のデータへ
の置き換えを行うことが可能となる。つまり、ビットパ
ターンによるパラメータデータについても、その調整が
容易となる。
According to a fourth aspect of the present invention, there is provided an emulator having at least a memory connected by an address bus between the evaluation CPU and the evaluation CPU, the emulator being connected to the address bus, When a match between an address on the address bus and a preset address of data to be replaced is detected, an address detection circuit that outputs an address match signal, A data bus is provided between the bit data switching determination circuit that outputs a bit switching permission signal for a replacement designation bit in the replacement target data in accordance with the set conversion bit pattern data, and the evaluation CPU and the memory. And input based on the bit switching permission signal. The data to be replaced is replaced only with respect to the replacement designation bit according to the bit pattern data, and a data conversion circuit having at least a bit data switch for outputting to the data bus is provided. Replacement with data can be performed. That is, the adjustment of the parameter data based on the bit pattern is also facilitated.

【0022】更に、請求項5の発明においては、前記デ
ータ切換回路または前記ビットデータ切換器は、さら
に、前記置き換えを行ったデータの出力を行った後に、
データ出力完了信号の出力を行い、前記データ変換回路
は、さらに、前記データ出力完了信号に基づき、予め設
定された置き換えを行う前記変換データについて、予め
設定された値に従って、インクリメントまたはデイクリ
メントのいずれかを行い、前記データ切換回路または前
記ビットデータ切換器に対して出力を行う回路を有する
ことにより、任意のデータを始点として、置き換えデー
タを連続的に増減することが可能となる。つまり、当該
パラメータデータの近傍における連続的な動作確認を行
うことが可能となる。
Further, in the invention according to claim 5, the data switching circuit or the bit data switch further outputs the data after the replacement.
A data output completion signal is output, and the data conversion circuit further performs any one of an increment and a decrement on the conversion data for performing a preset replacement based on the data output completion signal in accordance with a preset value. In this case, the replacement data can be continuously increased / decreased from an arbitrary data as a starting point by providing a circuit for outputting the data to the data switching circuit or the bit data switch. That is, it is possible to continuously confirm the operation near the parameter data.

【0023】[0023]

【発明の実施の形態】第1の実施形態 以下、本発明の第1の実施形態について、図面を参照し
ながら詳細に説明する。本実施形態は、評価用CPUか
らのデータ要求に対して、評価用CPUを停止させずに
任意のデータへの置き換え、および置き換えたデータに
よるメモリの書き換えの機能を実現するものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings. In the present embodiment, in response to a data request from the CPU for evaluation, a function of replacing the arbitrary data without stopping the CPU for evaluation and rewriting the memory with the replaced data is realized.

【0024】図1は、本実施形態に係るエミュレータの
システム構成を示す図である。図1に示すように、本実
施形態に係るエミュレータは、プログラムを実行する評
価用CPU1と、メモリ2とデータ変換回路3とから構
成されている。ここで、評価用CPU1と、メモリ2と
の間は、アドレスバス及びデータバスによって、接続さ
れており、また、データ変換回路3も、また、これらの
バスに接続されている。尚、以下の図中において、AB
USとは、アドレスバスを、DBUSとは、データバス
を各々示すものである。
FIG. 1 is a diagram showing a system configuration of the emulator according to the present embodiment. As shown in FIG. 1, the emulator according to the present embodiment includes an evaluation CPU 1 for executing a program, a memory 2, and a data conversion circuit 3. Here, the evaluation CPU 1 and the memory 2 are connected by an address bus and a data bus, and the data conversion circuit 3 is also connected to these buses. In the following figures, AB
US indicates an address bus, and DBUS indicates a data bus.

【0025】図2は、データ変換回路3の回路構成を示
したブロック図である。データ変換回路3は、本発明の
新規部分を構成する回路であり、図2に示すように、更
に、アドレス検出回路31、DBUS出力禁止回路3
2、RD/WR信号変換回路33、データ切換回路34
により構成されている。
FIG. 2 is a block diagram showing a circuit configuration of the data conversion circuit 3. The data conversion circuit 3 is a circuit constituting a novel part of the present invention. As shown in FIG. 2, the data conversion circuit 3 further includes an address detection circuit 31, a DBUS output inhibition circuit 3,
2. RD / WR signal conversion circuit 33, data switching circuit 34
It consists of.

【0026】アドレス検出回路31は、予め、アドレス
設定レジスタに設定されている、置き換え対象となるデ
ータのアドレスと、ABUS上のアドレスとの比較を行
い、設定アドレスと一致した場合には、アドレス一致信
号の出力を行う。尚、かかるアドレスの設定は、必ずし
もアドレス設定レジスタによる必要はなく、何らかの方
法により、データ変換回路3の外部から与えられればよ
い。これは、他の、データ設定レジスタ、メモリライト
許可レジスタなど、後述する他のレジスタに関しても同
様である。
The address detection circuit 31 compares the address of the data to be replaced, which is set in the address setting register in advance, with the address on the ABUS. Outputs a signal. The setting of the address does not necessarily need to be performed by the address setting register, but may be provided from outside the data conversion circuit 3 by some method. The same applies to other registers described later, such as other data setting registers and memory write permission registers.

【0027】DBUS出力禁止回路32は、アドレス一
致信号が入力された場合には、メモリ2に対してM−O
E(Output Enable)信号を出力すること
により、メモリ2からDBUSへの出力禁止(Hi−
Z)を要求する。
When an address match signal is input, the DBUS output prohibition circuit 32 sends an MO signal to the memory 2.
By outputting an E (Output Enable) signal, output from the memory 2 to DBUS is inhibited (Hi-
Z).

【0028】RD/WR信号変換回路33は、メモリラ
イト許可レジスタに書き込み要求が設定されている場合
には、評価用CPU1から出力されるRD(リード)信
号S1aを強制的にWR(ライト)要求に変換し、これ
をメモリ2に対しては、評価用CPUからの書き出しが
指示された時の動作とするためのM−WR信号S2bを
出力する。
When a write request is set in the memory write enable register, the RD / WR signal conversion circuit 33 forcibly sends an RD (read) signal S1a output from the evaluation CPU 1 to a WR (write) request. , And outputs an M-WR signal S2b to the memory 2 so as to perform an operation when writing from the evaluation CPU is instructed.

【0029】データ切換回路34は、アドレス一致信号
S4が入力された場合には、予めデータ設定レジスタに
設定されているデータを、DBUS上に出力する。
When the address match signal S4 is input, the data switching circuit 34 outputs data set in advance in the data setting register to DBUS.

【0030】本実施形態に係るデータ変換回路を有する
エミュレータは、上記のように構成されており、以下、
その動作につき説明する。
The emulator having the data conversion circuit according to the present embodiment is configured as described above.
The operation will be described.

【0031】(1)第一に、メモリ2からのリードデー
タの置き換えにおける動作を以下に説明する。
(1) First, the operation in replacing read data from the memory 2 will be described below.

【0032】まず、初期設定として、予め、置き換えを
行うデータの設定を行う。具体的には、まず、置き換え
対象となるデータが格納されているアドレスを、アドレ
ス設定レジスタに設定し、置き換えたい任意の内容のデ
ータを、データ設定レジスタに設定する。
First, data to be replaced is set in advance as an initial setting. Specifically, first, an address at which data to be replaced is stored is set in an address setting register, and data having arbitrary contents to be replaced is set in a data setting register.

【0033】次に、実際のデバッグ作業の実施を行うの
であるが、この際に、アドレス設定レジスタの内容と、
ABUS上のアドレスが一致した後に、評価用CPU1
よりRD信号S1aが出力された場合に、本実施形態に
係るデータ変換回路3は動作する。
Next, actual debugging is performed. At this time, the contents of the address setting register and
After the addresses on the ABUS match, the evaluation CPU 1
When the RD signal S1a is output, the data conversion circuit 3 according to the present embodiment operates.

【0034】ここで、アドレス検出回路31は、予めア
ドレス設定レジスタに設定されているアドレスと、AB
US上のアドレスの一致を検出した場合は、DBUS出
力禁止回路32と、RD/WR信号変換回路33、およ
びデータ切換回路34に対してそれぞれ、アドレス一致
信号S4を出力する。
Here, the address detection circuit 31 compares the address preset in the address setting register with the address AB.
When a match between addresses on the US is detected, an address match signal S4 is output to the DBUS output prohibition circuit 32, the RD / WR signal conversion circuit 33, and the data switching circuit 34, respectively.

【0035】かかるアドレス一致信号S4の入力を受け
て、DBUS出力禁止回路32は、その時点のOE信号
S3aの状態に拘わらず、メモリ2に対するM−OE信
号S3bによって、メモリからデータバスへの出力禁止
(Hi−Z)状態を要求する。 また、アドレス一致信
号S4を受けて、データ切換回路34は、評価用CPU
1からRD信号S1aが入力された場合には、予めデー
タ設定レジスタに設定されてるデータをDBUS上に出
力する。
In response to the input of the address match signal S4, the DBUS output inhibition circuit 32 outputs the data from the memory to the data bus by the M-OE signal S3b for the memory 2 regardless of the state of the OE signal S3a at that time. Requests a forbidden (Hi-Z) state. Further, in response to the address match signal S4, the data switching circuit 34 sets the evaluation CPU
When the RD signal S1a is input from No. 1, data set in advance in the data setting register is output to DBUS.

【0036】これにより、評価用CPU1は、RD信号
S1aを出力した後、所定のリードタイミングによっ
て、メモリ2からの出力データではなく、データ切換回
路34から出力されたデータをリードすることとなる。
Thus, after outputting the RD signal S1a, the evaluation CPU 1 reads not the output data from the memory 2 but the data output from the data switching circuit 34 at a predetermined read timing.

【0037】一方、アドレス設定レジスタの内容と、A
BUS上のアドレスが一致した後に、評価用CPU1よ
りWR信号S2aが出力された場合には、通常の動作通
りに、評価用CPU1から出力されたデータがそのまま
メモリ2に書き込まれる。この、評価用CPU1の、メ
モリ2へのライトサイクル時は、データ切換回路34に
対してRD信号S1aが入力されることはないため、デ
ータ切換回路34のデータ出力ポートは出力禁止(Hi
−Z)状態となっている。従って、評価用CPU1より
出力されるデータと、データ設定レジスタに設定されて
いるデータとが、DBUS上で衝突することはないので
ある。
On the other hand, the contents of the address setting register and A
When the WR signal S2a is output from the evaluation CPU 1 after the addresses on the BUS match, the data output from the evaluation CPU 1 is written to the memory 2 as it is in a normal operation. During the write cycle of the evaluation CPU 1 to the memory 2, the RD signal S1a is not input to the data switching circuit 34, so that the data output port of the data switching circuit 34 is output inhibited (Hi
-Z) state. Therefore, the data output from the evaluation CPU 1 does not collide with the data set in the data setting register on the DBUS.

【0038】また、アドレス設定レジスタの内容と、A
BUS上のアドレスが一致していない間は、評価用CP
U1よりRD信号S1aが出力されても、アドレス検出
回路31は、アドレス一致信号S4の出力を行わない。
The contents of the address setting register and A
While the addresses on the BUS do not match, the evaluation CP
Even if the RD signal S1a is output from U1, the address detection circuit 31 does not output the address match signal S4.

【0039】かかるアドレス一致信号S4が入力されな
い場合には、DBUS出力禁止回路32は、OE信号S
3aの状態を、そのままM−OE信号S3bとして、メ
モリ2に対して出力し、また、RD/WR信号変換回路
33も、RD信号S1aの出力の状態を、そのままM−
RD信号S1bとして、メモリ2に出力する。
When the address match signal S4 is not input, the DBUS output inhibition circuit 32 outputs the OE signal S4.
3a is output as it is to the memory 2 as the M-OE signal S3b, and the RD / WR signal conversion circuit 33 also changes the output state of the RD signal S1a to M-OE signal S3b.
Output to the memory 2 as the RD signal S1b.

【0040】更に、データ切換回路34も、アドレス一
致信号S4が入力されない場合には、RD信号S1aが
発生しても、データ設定レジスタのデータの出力は行わ
ない。即ち、評価用CPU1からの各信号は、そのまま
メモリ2に対してスルーされ、通常のメモリ2からのデ
ータの読みとり動作が行われるのである。
Further, when the address match signal S4 is not input, the data switching circuit 34 does not output the data of the data setting register even if the RD signal S1a is generated. That is, each signal from the evaluation CPU 1 is passed through to the memory 2 as it is, and a normal operation of reading data from the memory 2 is performed.

【0041】また、かかる動作は、評価用CPU1から
WR信号S2aが出力された場合でも同様であり、RD
/WR信号変換回路33は、WR信号S2aの状態を、
そのままM−WR信号S2bとして、メモリ2にスルー
して出力されるため、評価用CPU1から出力されたデ
ータが、そのままメモリ2に書き込まれることとなる。
尚、この際、データ切換回路34のデータ出力ポート
は、アドレス一致信号S4が入力されない限り、出力禁
止(Hi−Z)状態となっているため、評価用CPU1
より出力されるデータと、データ設定レジスタに設定さ
れているデータとが、DBUS上で衝突することはな
い。即ち、アドレス一致信号が出力されない場合は、通
常のメモリ2への書き込み動作が可能となるのである。
This operation is the same even when the evaluation CPU 1 outputs the WR signal S2a.
The / WR signal conversion circuit 33 changes the state of the WR signal S2a to
Since the data is output as it is to the memory 2 as the M-WR signal S2b, the data output from the evaluation CPU 1 is written to the memory 2 as it is.
At this time, since the data output port of the data switching circuit 34 is in the output inhibition (Hi-Z) state unless the address match signal S4 is input, the evaluation CPU 1
The output data does not collide with the data set in the data setting register on DBUS. That is, when the address match signal is not output, a normal write operation to the memory 2 becomes possible.

【0042】(2)次に、メモリ2からのリードデータ
の置き換え、及び置き換えたデータの、メモリ2の任意
のアドレスへの書き込みとを、同時に行う動作を以下に
説明する。
(2) Next, an operation of simultaneously replacing read data from the memory 2 and writing the replaced data to an arbitrary address in the memory 2 will be described below.

【0043】まず、初期設定として、予め、置き換え、
及びメモリ2の書き換えを行いたいデータの設定を、
(1)の場合と同様に行う。更にここでは、置き換えた
データをメモリ2に対して書き込むことを指示するため
に、書き込み要求を、メモリライト許可レジスタに設定
する。
First, as an initial setting, replace
And the settings of the data to be rewritten in the memory 2
This is performed in the same manner as in (1). Further, here, a write request is set in the memory write permission register in order to instruct the memory 2 to write the replaced data.

【0044】次に、実際のデバッグ作業中においては、
アドレス設定レジスタの内容と、ABUS上のアドレス
が一致した後に、評価用CPU1よりRD信号S1aが
出力された場合に、本実施形態に係るデータ変換回路3
は、(1)と同様に動作するのであるが、ここで、メモ
リライト許可レジスタで書き込みが要求されているの
で、RD/WR信号変換回路33は、データ切換回路3
4がデータを出力したと同時に、評価用CPU1から出
力されたRD信号S1aを強制的にライト要求に変換
し、メモり2に対してM−WR信号S2bを出力する。
かかる動作によって、評価用CPU1のリードサイクル
が、擬似的にライトサイクルに変換されて、同一サイク
ル内で、更に、データ切換回路34から出力されたデー
タが、メモリ2に書き込まれることとなる。
Next, during the actual debugging work,
When the RD signal S1a is output from the evaluation CPU 1 after the contents of the address setting register match the address on the ABUS, the data conversion circuit 3 according to the present embodiment
Operates in the same manner as (1), but here, since writing is requested by the memory write enable register, the RD / WR signal conversion circuit 33
4 simultaneously outputs the data, the RD signal S1a output from the evaluation CPU 1 is forcibly converted into a write request, and the M-WR signal S2b is output to the memory 2.
With this operation, the read cycle of the evaluation CPU 1 is converted into a write cycle in a pseudo manner, and the data output from the data switching circuit 34 is further written into the memory 2 in the same cycle.

【0045】尚、アドレス設定レジスタの内容と、AB
US上のアドレスが一致した後に、評価用CPU1から
WR信号S2aが出力された場合、及び、アドレス設定
レジスタの内容と、ABUS上のアドレスが一致してい
ない時の動作に関しては、(1)と同様である。
The contents of the address setting register and AB
Regarding the operation when the WR signal S2a is output from the evaluation CPU 1 after the address on the US matches and the operation when the address on the ABUS does not match the contents of the address setting register, see (1). The same is true.

【0046】本実施形態によれば、以下のような効果が
得られる。即ち、評価用CPU1とメモリ2との間のA
BUSを、随時監視して、予めアドレス設定レジスタに
設定したアドレスとの一致を検出した場合に、本来メモ
リから出力されるデータを任意のデータに置き換えるこ
と、即ち読みとりデータの変換を行うことにより、評価
用CPU1のプログラム実行を停止することなく、ラン
タイム中に、評価用CPU1が読み取りを行うデータ
を、容易に、任意の内容のデータに変更することが可能
となった。
According to the present embodiment, the following effects can be obtained. That is, A between the evaluation CPU 1 and the memory 2
BUS is monitored from time to time, and when a match with an address previously set in the address setting register is detected, by replacing data originally output from the memory with arbitrary data, that is, by converting read data, The data read by the evaluation CPU 1 can be easily changed to data of any content during runtime without stopping the program execution of the evaluation CPU 1.

【0047】さらに、評価用CPUに対して置き換えを
行った任意のデータで、同時にメモリの内容を書き換え
ることも併せて可能となった。
Further, it is also possible to simultaneously rewrite the contents of the memory with arbitrary data obtained by replacing the evaluation CPU.

【0048】第2の実施形態 以下、本発明の第2の実施形態について、第1の実施形
態と異なる点についてのみ、図面を参照しながら詳細に
説明する。本実施形態は、評価用CPUからのデータリ
ード要求に対して、評価用CPUを停止させずに任意の
データへのビット毎の置き換え、および評価用CPUか
らの任意アドレスのデータライト要求に対して、同じく
評価用CPUを停止させずにライトデータのビット毎の
置き換え機能を実現するものである。
Second Embodiment Hereinafter, a second embodiment of the present invention will be described in detail with reference to the drawings, focusing only on the differences from the first embodiment. In this embodiment, in response to a data read request from the evaluation CPU, bit-by-bit replacement with arbitrary data without stopping the evaluation CPU and a data write request of an arbitrary address from the evaluation CPU Similarly, a function of replacing write data for each bit is realized without stopping the evaluation CPU.

【0049】図3は、本実施形態に係るエミュレータの
システム構成を示す図である。図3に示すように、本実
施形態に係るエミュレータは、プログラムを実行する評
価用CPU1と、メモリ2と、ビットデータ変換回路4
とから構成されている。ここで、評価用CPU1と、メ
モリ2との間は、アドレスバスによって、接続されてお
り、データバスについては、ビットデータ変換回路4を
介して、評価用CPU1とビットデータ変換回路4との
間のデータバス(DBUS)と、メモリ2とビットデー
タ変換回路4との間のデータバス(M−DBUS)とに
分かれて構成されている。
FIG. 3 is a diagram showing a system configuration of the emulator according to the present embodiment. As shown in FIG. 3, the emulator according to the present embodiment includes an evaluation CPU 1 for executing a program, a memory 2, a bit data conversion circuit 4
It is composed of Here, the evaluation CPU 1 and the memory 2 are connected by an address bus, and the data bus is connected between the evaluation CPU 1 and the bit data conversion circuit 4 via the bit data conversion circuit 4. , And a data bus (M-DBUS) between the memory 2 and the bit data conversion circuit 4.

【0050】図4は、ビットデータ変換回路4の回路構
成を示したブロック図である。ビットデータ変換回路4
は、本発明の新規部分を構成する回路であり、図4に示
すように、更に、アドレス検出回路31、ビットデータ
切換判定回路41、リード用ビットデータ切換用マルチ
プレクサ42、ライト用ビットデータ切換用マルチプレ
クサ43により構成されている。
FIG. 4 is a block diagram showing a circuit configuration of the bit data conversion circuit 4. Bit data conversion circuit 4
Is a circuit constituting a new part of the present invention. As shown in FIG. 4, an address detection circuit 31, a bit data switching determination circuit 41, a read bit data switching multiplexer 42, and a write bit data switching A multiplexer 43 is provided.

【0051】ここで、ビットデータ切換判定回路41
は、アドレス一致信号S4が入力された場合には、デー
タ設定レジスタの内容に従って、置き換えが指定されて
いるビットに対応して、ビット毎に切換の許否を指定す
るビット切換許可信号S5を、ビットデータ切換用マル
チプレクサ42、43に対して出力する。
Here, the bit data switching judgment circuit 41
When an address match signal S4 is input, a bit switching permission signal S5 for designating permission / prohibition of switching for each bit is set according to the content of the data setting register in accordance with the bit designated for replacement. Output to the data switching multiplexers 42 and 43.

【0052】ビットデータ切換用マルチプレクサ42、
43は、それぞれ、入力されたデータのうち、ビット切
換許可信号S5で置き換えが許可されたビットについて
のみ、データ設定レジスタのビットデータの内容によっ
てデータの置き換えを行い、マージして出力を行う。即
ち、リード用ビットデータ切換用マルチプレクサ42の
場合は、M−DBUSから入力されたデータ、つまりメ
モリ2からの出力データを指定ビットについて置き換え
て、DBUSに出力して評価用CPU1の読み取りデー
タとする。また、ライト用ビットデータ切換用マルチプ
レクサ43の場合は、DBUSから入力されたデータ、
つまり評価用CPU1からの出力データを指定ビットに
ついて置き換えて、M−DBUSに出力してメモリ2へ
の書き出しデータとする。
The bit data switching multiplexer 42,
Reference numeral 43 replaces only the bits of the input data which are permitted to be replaced by the bit switching permission signal S5 with the contents of the bit data of the data setting register, and merges and outputs the data. That is, in the case of the read bit data switching multiplexer 42, the data input from the M-DBUS, that is, the output data from the memory 2 is replaced with the designated bit and output to the DBUS to be read data of the evaluation CPU 1. . In the case of the write bit data switching multiplexer 43, data input from DBUS,
That is, the output data from the evaluation CPU 1 is replaced with respect to the designated bit, and is output to the M-DBUS to be written data to the memory 2.

【0053】なお、ビット毎の置き換えはエミュレータ
のDBUSの全ビットが対象となり、指定したビットの
箇所だけを置き換えることも可能であり、また、DBU
Sの全ビットを同時に置き換えることも可能である。
It is to be noted that the replacement for each bit applies to all bits of the DBUS of the emulator, and it is also possible to replace only the designated bits.
It is also possible to replace all bits of S at the same time.

【0054】本実施形態に係るデータ変換回路を有する
エミュレータは、上記のように構成されており、以下、
その動作につき説明する。
The emulator having the data conversion circuit according to the present embodiment is configured as described above.
The operation will be described.

【0055】(1)第一に、リード要求に対する、メモ
リ2からの読み取りデータの指定ビットの置き換えにお
ける動作を以下に説明する。
(1) First, an operation of replacing a designated bit of data read from the memory 2 in response to a read request will be described below.

【0056】まず、初期設定として、予め、置き換えを
行うビットデータの設定を行う。具体的には、まず、置
き換えたいビットデータが格納されているアドレスを、
アドレス設定レジスタに設定し、置き換えたいビットデ
ータを、データ設定レジスタに設定する。この際には、
システムのDBUSの全ビットに対して、置き換えデー
タを設定するが、ただし、データを置き換えないビット
に対しては、ドントケアを設定する。
First, as initial setting, bit data to be replaced is set in advance. Specifically, first, the address at which the bit data to be replaced is stored is
Set in the address setting register, and set the bit data to be replaced in the data setting register. In this case,
Replacement data is set for all bits of DBUS of the system, but don't care is set for bits that do not replace data.

【0057】次に、実際のデバッグ作業の実施を行うの
であるが、この際に、アドレス設定レジスタの内容と、
ABUS上のアドレスが一致した場合に、本実施形態に
係るビットデータ変換回路4は動作する。
Next, the actual debugging work is performed. At this time, the contents of the address setting register and
When the addresses on the ABUS match, the bit data conversion circuit 4 according to the present embodiment operates.

【0058】まず、アドレス検出回路31は、予めアド
レス設定レジスタに設定されているアドレスと、ABU
S上のアドレスの一致を検出した場合は、ビットデータ
切換判定回路41に対して、アドレス一致信号S4を出
力する。
First, the address detection circuit 31 compares the address preset in the address setting register with the ABU
When a match of the address on S is detected, an address match signal S4 is output to the bit data switching determination circuit 41.

【0059】かかるアドレス一致信号S4の入力を受け
て、ビットデータ切換判定回路41は、ビットデータ切
換用マルチプレクサ42、43に対して、ビット切換許
可信号S5をそれぞれ出力する。ビット切換許可信号と
は、データ設定レジスタで予め置き換えが指定されてい
るビットについてのみ切換を許可し、指定されていない
ビットについては切換禁止を指示する信号である。
In response to the input of the address coincidence signal S4, the bit data switching determination circuit 41 outputs a bit switching permission signal S5 to the bit data switching multiplexers 42 and 43, respectively. The bit switching permission signal is a signal that permits switching only for bits for which replacement is specified in advance in the data setting register, and prohibits switching for bits that are not specified.

【0060】ここで、評価用CPU1からRD信号S1
aが出力された場合、リード用ビットデータ切換用マル
チプレクサ42は、DBUSライン側は出力許可状態、
M−DBUSライン側は入力許可状態となる。また、評
価用CPU1から出力されたRD信号S1aは、リード
用ビットデータ切換マルチプレクサ42へとともに、メ
モリ2にも併せて入力されるため、これに従い、メモリ
2より読み取りデータがM−DBUS上に出力される。
Here, the RD signal S1
a is output, the read bit data switching multiplexer 42 outputs the DBUS line,
The M-DBUS line is in an input permission state. The RD signal S1a output from the evaluation CPU 1 is also input to the memory 2 together with the read bit data switching multiplexer 42, and accordingly, the read data is output from the memory 2 to the M-DBUS. Is done.

【0061】リード用ビットデータ切換用マルチプレク
サ42は、M−DBUSから入力された読み取りデータ
を、ビット切換許可信号S5に従い、ビット置き換えが
許可されたビットについてのみ、予めデータ設定レジス
タに設定されている内容のビットパターンでデータの置
き換えを実施し、置き換え後のデータをDBUSへ出力
する。従って、この時、データ設定レジスタでドントケ
アに設定されているビットについては、データの置き換
えを実施せず、M−DBUSより入力されたビット内容
でDBUSへ出力する。
The read bit data switching multiplexer 42 sets the read data input from the M-DBUS in the data setting register in advance only for bits for which bit replacement is permitted according to the bit switching permission signal S5. The data is replaced with the bit pattern of the content, and the replaced data is output to DBUS. Therefore, at this time, the bits set to "don't care" in the data setting register are not replaced, and are output to DBUS with the bit contents input from M-DBUS.

【0062】これにより、評価用CPU1は、RD信号
S1aを出力した後、所定のリードタイミングによっ
て、リード用ビットデータ切換用マルチプレクサ42か
ら出力された、所望するビットのみが置き換えられたデ
ータの読み取りを行うこととなる。尚、ビット毎の置き
換えは、エミュレータのDBUSの全ビットが対象で、
指定したビットの所だけを置き換えることが可能であ
る。また、DBUSの全ビットを同時に置き換えること
も可能である。
Thus, after outputting the RD signal S1a, the evaluation CPU 1 reads the data output from the read bit data switching multiplexer 42 in which only the desired bits have been replaced at a predetermined read timing. Will do. The replacement for each bit is for all bits of the emulator DBUS.
It is possible to replace only specified bits. It is also possible to replace all bits of DBUS at the same time.

【0063】ここで、アドレス設定レジスタの内容と、
ABUS上のアドレスが一致していない間は、評価用C
PU1よりRD信号S1aが出力されても、アドレス検
出回路31は、第1の実施形態と同様、アドレス一致信
号S4の出力を行わない。
Here, the contents of the address setting register,
While the addresses on ABUS do not match, the evaluation C
Even when the RD signal S1a is output from the PU1, the address detection circuit 31 does not output the address match signal S4, as in the first embodiment.

【0064】これにより、ビットデータ切換判定回路4
1は、アドレス一致信号S4に対応するビット切換許可
信号S5の出力を行わず、従って、リード用ビットデー
タ切換用マルチプレクサ42も、前述のデータの置き換
えを実施しない。即ち、評価用CPU1からのRD信号
S1aは、そのままメモリ2に対してスルーされ、通常
のメモリ2からのデータの読みとり動作が行われるので
ある。
Thus, the bit data switching determination circuit 4
1 does not output the bit switching permission signal S5 corresponding to the address coincidence signal S4, and therefore the read bit data switching multiplexer 42 does not perform the above-described data replacement. That is, the RD signal S1a from the evaluation CPU 1 is passed through to the memory 2 as it is, and the normal operation of reading data from the memory 2 is performed.

【0065】(2)次に、ライト要求に対する、評価用
CPU1からのメモリ2への書き出しデータの、指定ビ
ットの置き換えにおける動作を以下に説明する。
(2) Next, the operation of replacing the designated bits of the data written from the evaluation CPU 1 to the memory 2 in response to the write request will be described below.

【0066】まず、初期設定として、予め、メモリ2の
書き換えを行うデータの設定を、(1)の場合と同様
に、ビット毎に行う。
First, as an initial setting, data to be rewritten in the memory 2 is set in advance for each bit as in the case of (1).

【0067】次に、実際のデバッグ作業において、ま
ず、アドレス検出回路31、及び、ビットデータ切換判
定回路41は、(1)の場合と同一の条件において、ア
ドレス一致信号S4、及びビット切換許可信号S5を出
力する。
Next, in an actual debugging operation, first, the address detection circuit 31 and the bit data switching determination circuit 41 perform the address matching signal S4 and the bit switching permission signal under the same conditions as in (1). Output S5.

【0068】ここで、評価用CPU1からWR信号S2
aが出力された場合、ライト用ビットデータ切換用マル
チプレクサ43は、DBUSライン側は入力許可状態、
M−DBUSライン側は出力許可状態となる。
Here, the WR signal S2 from the evaluation CPU 1
a is output, the write bit data switching multiplexer 43 sets the DBUS line to an input enabled state,
The M-DBUS line is in an output enabled state.

【0069】ライト用ビットデータ切換用マルチプレク
サ43は、DBUSから入力された評価用CPU1から
の書き出しデータを、ビット切換許可信号S5に従い、
ビット置き換えが許可されたビットについてのみ、予め
データ設定レジスタに設定されている内容のビットパタ
ーンでデータの置き換えを実施し、置き換え後のデータ
をM−DBUSへ出力する。従って、この時、データ設
定レジスタでドントケアに設定されているビットについ
ては、データの置き換えを実施せず、DBUSより入力
されたビット内容でM−DBUSへ出力する。
The write bit data switching multiplexer 43 converts the write data input from DBUS from the evaluation CPU 1 in accordance with the bit switching permission signal S5.
Only for bits for which bit replacement is permitted, data replacement is performed using the bit pattern of the content set in the data setting register in advance, and the replaced data is output to M-DBUS. Therefore, at this time, the bits set to "don't care" in the data setting register are not replaced, and are output to the M-DBUS with the bit contents input from DBUS.

【0070】評価用CPU1から出力されたWR信号S
2aは、ライト用ビットデータ切換用マルチプレクサ4
3へとともに、メモリ2に対しても入力される。これに
より、評価用CPU1からの書き出しデータは、ライト
用ビットデータ切換用マルチプレクサ43から出力され
た、所望するビットのみが置き換えられたデータに変換
されて、メモリ2に書き出されることとなる。尚、ビッ
ト毎の置き換えは、(1)と同様、エミュレータのDB
USの全ビットが対象で、指定したビットの所だけを置
き換えることが可能である。また、DBUSの全ビット
を同時に置き換えることも可能である。
The WR signal S output from the evaluation CPU 1
2a is a write bit data switching multiplexer 4
3 and also input to the memory 2. As a result, the write data from the evaluation CPU 1 is converted to data output from the write bit data switching multiplexer 43 in which only desired bits are replaced, and is written to the memory 2. The replacement for each bit is performed in the DB of the emulator as in (1).
All bits of the US are targeted, and it is possible to replace only specified bits. It is also possible to replace all bits of DBUS at the same time.

【0071】ここで、アドレス設定レジスタの内容と、
ABUS上のアドレスが一致していない間は、評価用C
PU1よりWR信号S2aが出力されても、アドレス検
出回路31は、第1の実施形態と同様、アドレス一致信
号S4の出力を行わない。
Here, the contents of the address setting register and
While the addresses on ABUS do not match, the evaluation C
Even when the WR signal S2a is output from the PU1, the address detection circuit 31 does not output the address coincidence signal S4 as in the first embodiment.

【0072】これにより、ビットデータ切換判定回路4
1は、アドレス一致信号S4に対応するビット切換許可
信号S5の出力を行わず、従って、ライト用ビットデー
タ切換用マルチプレクサ43も、前述のデータの置き換
えを実施しない。即ち、通常の、評価用CPU1からの
メモリ2へのデータの書き込み動作が行われるのであ
る。
Thus, the bit data switching determination circuit 4
1 does not output the bit switching permission signal S5 corresponding to the address coincidence signal S4, and therefore the write bit data switching multiplexer 43 does not perform the above-described data replacement. That is, a normal operation of writing data from the evaluation CPU 1 to the memory 2 is performed.

【0073】本実施形態によれば、以下のような効果が
得られる。即ち、予めアドレス設定レジスタに設定した
アドレスとの一致を検出した場合に、本来メモリから出
力されるデータを任意のデータにビット単位で置き換え
ること、即ち読みとりデータの変換を行うことにより、
評価用CPU1のプログラム実行を停止することなく、
ランタイム中に、評価用CPU1が読み取りを行うデー
タを、容易に、任意のビットパターンのデータに変換す
ることが可能となった。
According to the present embodiment, the following effects can be obtained. That is, when a match with an address previously set in the address setting register is detected, data originally output from the memory is replaced with arbitrary data in units of bits, that is, by converting read data,
Without stopping the program execution of the evaluation CPU 1,
During runtime, it is possible to easily convert data to be read by the evaluation CPU 1 into data of an arbitrary bit pattern.

【0074】また、評価用CPU1からメモリ2に書き
出されるデータについても同様に、任意のビットパター
ンのデータに変換することが可能となった。
Similarly, data written from the evaluation CPU 1 to the memory 2 can be converted into data having an arbitrary bit pattern.

【0075】第3の実施形態 以下、本発明の第3の実施形態について、第1、第2の
実施形態と異なる点についてのみ、図面を参照しながら
詳細に説明する。本実施形態は、第1の実施形態に係る
データ変換回路を有するエミュレータに、さらに、デー
タの置き換えを行った後に、当該データをインクリメン
トまたはディクリメントすることにより、任意のアドレ
スに格納されているデータを、連続的に置き換えていく
機能を実現するものである。
Third Embodiment Hereinafter, a third embodiment of the present invention will be described in detail only with respect to differences from the first and second embodiments with reference to the drawings. In the present embodiment, the data stored at an arbitrary address is added to the emulator having the data conversion circuit according to the first embodiment by further performing data replacement and then incrementing or decrementing the data. Is realized continuously.

【0076】図5は、本実施形態に係るデータ変換回路
3の回路構成を示したブロック図である。本実施形態に
係るデータ変換回路3は、図5に示すように、第1の実
施形態が有する、アドレス検出回路31、DBUS出力
禁止回路32、RD/WR信号変換回路33、データ切
換回路34の他、更に、インクリメント/ディクリメン
ト回路35により構成されている。
FIG. 5 is a block diagram showing a circuit configuration of the data conversion circuit 3 according to the present embodiment. As shown in FIG. 5, the data conversion circuit 3 according to the present embodiment includes an address detection circuit 31, a DBUS output inhibition circuit 32, an RD / WR signal conversion circuit 33, and a data switching circuit 34, which are included in the first embodiment. In addition, it is configured by an increment / decrement circuit 35.

【0077】ここで、データ切換回路34は、第1の実
施形態における構成に付加して、さらに、DBUSにデ
ータ出力が行われたことを通知するデータ出力完了信号
S6の出力を行う。
Here, the data switching circuit 34, in addition to the configuration of the first embodiment, further outputs a data output completion signal S6 for notifying DBUS that data has been output.

【0078】また、インクリメント/ディクリメント回
路35は、データ出力完了信号S6が入力された場合に
は、予め設定された回路切換レジスタの内容に従って、
データ設定レジスタに設定され、内部に保持した置き換
えデータに対して、+1または−1を加算する。
When the data output completion signal S6 is input, the increment / decrement circuit 35 operates according to the contents of a preset circuit switching register.
+1 or -1 is added to the replacement data set in the data setting register and held internally.

【0079】本実施形態に係るデータ変換回路を有する
エミュレータは、上記のように構成されており、以下、
その動作につき説明する。
The emulator having the data conversion circuit according to the present embodiment is configured as described above.
The operation will be described.

【0080】まず、初期設定として、置き換えを行うデ
ータ及びそのアドレスの設定を、第1の実施形態の
(1)の場合と同様に行う。ここでは、さらに、回路切
換レジスタに、置き換えデータに関し、次に増減、即
ち、インクリメント/ディクリメントのいずれを行って
いくのかについて設定する。
First, as the initial setting, the data to be replaced and its address are set in the same manner as in the case (1) of the first embodiment. Here, further, the replacement data is set in the circuit switching register as to whether the next increase or decrease, that is, whether the increment or the decrement is performed.

【0081】次に、実際のデバッグ作業の実施を行うの
であるが、この際に、アドレス設定レジスタの内容と、
ABUS上のアドレスが一致した場合であって、評価用
CPU1からRD信号S1aが出力された場合、アドレ
ス検出回路31、及びDBUS出力禁止回路32は、第
1の実施形態と同様の条件により、同様に動作する。こ
こで、データ変換回路34も、やはり第1の実施形態の
場合と同様に動作するが、最後に、DBUSに対して置
き換えデータを出力したタイミングで、更に、インクリ
メント/ディクリメント回路35に対して、データ出力
完了信号S6の出力を行う。
Next, the actual debugging work is performed. At this time, the contents of the address setting register and
When the addresses on the ABUS match, and the RD signal S1a is output from the evaluation CPU 1, the address detection circuit 31 and the DBUS output prohibition circuit 32 operate under the same conditions as in the first embodiment. Works. Here, the data conversion circuit 34 also operates in the same manner as in the first embodiment, but finally, at the timing when the replacement data is output to DBUS, the data conversion circuit 34 further operates the increment / decrement circuit 35. , And outputs a data output completion signal S6.

【0082】インクリメント/ディクリメント回路35
は、データ出力完了信号S6が入力されると、回路切換
レジスタの内容に従って、内部に保持している置き換え
データのインクリメント又はディクリメントを行う。即
ち、現在保持している置き換えデータの値に対して、回
路切換レジスタにインクリメントが設定されていた場合
には、+1を加算し、ディクリメントが設定されていた
場合には、逆に、−1を加算する。
Increment / decrement circuit 35
When the data output completion signal S6 is inputted, the replacement data stored therein is incremented or decremented according to the contents of the circuit switching register. That is, +1 is added to the value of the replacement data currently held when the increment is set in the circuit switching register, and -1 is added to the value when the decrement is set. Is added.

【0083】評価用CPU1は、RD信号S1aを出力
した後、所定のリードタイミングによって、データ切換
回路34からDBUSに対して出力された置き換えデー
タの読み取りを行う。従って、次に、アドレス設定レジ
スタの内容と、ABUS上のアドレスとの一致を検出し
たタイミングにおいては、データ設定レジスタに設定し
た置き換えデータが、インクリメント/ディクリメント
回路35において、+1または−1が加算された値の置
き換えデータとなって、データ切換回路34から、DB
US上に出力され、かかる値が評価用CPU1に読み込
まれる。
After outputting the RD signal S1a, the evaluation CPU 1 reads the replacement data output from the data switching circuit 34 to DBUS at a predetermined read timing. Therefore, next, at the timing of detecting the coincidence between the contents of the address setting register and the address on the ABUS, the increment / decrement circuit 35 adds the replacement data set in the data setting register to +1 or -1. Is replaced data, and the data switching circuit 34
The value is output to the US, and the value is read by the evaluation CPU 1.

【0084】以上の処理が繰り返し行われることによ
り、置き換えデータを連続的に、増加、または減少させ
て、パラメータデータの調整が行えることとなる。
By repeating the above process, the replacement data can be continuously increased or decreased to adjust the parameter data.

【0085】尚、インクリメント/ディクリメント回路
35において、置き換えデータが“FF[h]”でイン
クリメント機能が動作した場合は、置き換えデータが
“00[h]”となり、置き換えデータが“00
[h]”でディクリメント機能が動作した場合は、置き
換えデータが“FF[h]”となる。
In the increment / decrement circuit 35, when the replacement data is "FF [h]" and the increment function is operated, the replacement data becomes "00 [h]" and the replacement data becomes "00 [h]".
When the decrement function operates in [h] ”, the replacement data becomes“ FF [h] ”.

【0086】また、連続的に、データの置き換えを行う
本実施形態の機能は、以上に説明した第1の実施形態へ
の付加の形態のみならず、又、第2の実施形態に対して
も、ビットデータ変換回路4の内部に、同様にインクリ
メント/ディクリメント機能を設けることができる。か
かる構成によれば、任意のアドレスに格納されているデ
ータを連続的に置き換え、または書き換えることが可能
となる。
The function of the present embodiment for continuously replacing data is not limited to the addition to the first embodiment described above, but also to the second embodiment. Similarly, an increment / decrement function can be provided inside the bit data conversion circuit 4. According to such a configuration, it is possible to continuously replace or rewrite data stored at an arbitrary address.

【0087】本実施形態によれば、以下のような効果が
得られる。即ち、1回のサイクルにおいて置き換えデー
タがDBUS上に出力された後に、次に、アドレス一致
信号S4がデータ切換回路34に入力される毎に、置き
換えデータの値のインクリメントまたはディクリメント
が行われるので、置き換えデータをさらに連続的に、増
加または減少させて評価用CPU1に読み込ませる、あ
るいは、それとともに、メモリ2に書き込むという、連
続的なデータ変換操作が可能となった。
According to the present embodiment, the following effects can be obtained. That is, after the replacement data is output on DBUS in one cycle, the value of the replacement data is incremented or decremented each time the address match signal S4 is next input to the data switching circuit 34. A continuous data conversion operation, in which the replacement data is further continuously increased or decreased and read into the evaluation CPU 1 or, at the same time, written into the memory 2, has become possible.

【0088】第4の実施形態 以下、本発明の第4の実施形態について、前述の実施形
態と異なる点についてのみ、図面を参照しながら詳細に
説明する。本実施形態は、第3の実施形態に係るデータ
変換回路を有するエミュレータが提供する連続的なデー
タの置き換え機能に、さらに、置き換えデータの繰り返
し設定及び範囲の設定を行うイベント機能を付加するも
のである。
Fourth Embodiment Hereinafter, a fourth embodiment of the present invention will be described in detail only with respect to differences from the above-described embodiment with reference to the drawings. In the present embodiment, an event function for repeatedly setting replacement data and setting a range is added to the continuous data replacement function provided by the emulator having the data conversion circuit according to the third embodiment. is there.

【0089】図6は、本実施形態に係るデータ変換回路
3の回路構成を示したブロック図である。本実施形態に
係るデータ変換回路3は、図6に示すように、第3の実
施形態が有する、アドレス検出回路31、DBUS出力
禁止回路32、RD/WR信号変換回路33、データ切
換回路34、インクリメント/ディクリメント回路35
の他、更に、アドレスイベント回路36、及びデータイ
ベント回路37によりにより構成されている。
FIG. 6 is a block diagram showing a circuit configuration of the data conversion circuit 3 according to the present embodiment. As shown in FIG. 6, the data conversion circuit 3 according to the present embodiment includes an address detection circuit 31, a DBUS output inhibition circuit 32, an RD / WR signal conversion circuit 33, a data switching circuit 34, which are included in the third embodiment. Increment / decrement circuit 35
And an address event circuit 36 and a data event circuit 37.

【0090】ここで、アドレスイベント回路36は、ア
ドレス一致信号S4が入力された場合には、予め、アド
レスイベントレジスタに設定されている、何回該当アド
レスを読んだらデータの置き換えを行うか、の繰り返し
の回数を示す、アドレスの一致回数と、当該アドレス一
致信号S4が、何回目のリードにあたるかの値との比較
を行い、更に、比較結果が一致した場合には、アドレス
イベント一致信号を、DBUS出力禁止回路32、RD
/WR信号変換回路33、データ切換回路34のそれぞ
れに対して出力する。
Here, when the address coincidence signal S4 is input, the address event circuit 36 determines how many times the corresponding address set in the address event register is read before replacing the data. The number of address matches, which indicates the number of repetitions, is compared with the value of the number of times the address match signal S4 corresponds to the read, and if the comparison result matches, the address event match signal is set to DBUS output inhibit circuit 32, RD
/ WR signal conversion circuit 33 and data switching circuit 34.

【0091】また、データイベント回路37は、インク
リメント/ディクリメント回路35と、データ切換回路
34との間に位置し、予め、データイベントレジスタに
設定されている、置き換えデータの最大値又は最小値
と、インクリメント/ディクリメント回路35から入力
されたデータとの比較を行い、更に、比較結果が一致し
た場合には、データ初期化要求信号S8によって、イン
クリメント/ディクリメント回路35に対して、置き換
えデータの値の初期値へのリセットを要求する。
The data event circuit 37 is located between the increment / decrement circuit 35 and the data switching circuit 34 and has a maximum value or a minimum value of the replacement data set in advance in the data event register. Is compared with the data input from the increment / decrement circuit 35, and when the comparison results match, the increment / decrement circuit 35 is instructed to the increment / decrement circuit 35 by the data initialization request signal S8. Requests a reset of the value to its initial value.

【0092】本実施形態に係るデータ変換回路を有する
エミュレータは、上記のように構成されており、以下、
その動作につき説明する。
The emulator having the data conversion circuit according to the present embodiment is configured as described above.
The operation will be described.

【0093】まず、初期設定として、置き換えを行うデ
ータ及びそのアドレスの設定を、第3の実施形態の場合
と同様に行う。ここでは、さらに、アドレスイベントレ
ジスタに、何回該当アドレスを読んだらデータの置き換
えを実施するか、の繰り返し設定として、アドレスの一
致回数を設定する。また、データイベントレジスタに
は、置き換えを行うデータの範囲を設定するものとし
て、連続して置き換えを行うデータの最大値又は最小値
を設定する。
First, as initial settings, data to be replaced and addresses thereof are set in the same manner as in the third embodiment. Here, the number of address matches is set in the address event register as a repetitive setting of how many times the corresponding address is read before data replacement is performed. In the data event register, the maximum value or the minimum value of the data to be continuously replaced is set as the one to set the range of the data to be replaced.

【0094】ここで、例えば、“10[h]”から“1
F[h]”までの連続切換を何度も繰り返したいような
場合には、回路切換レジスタに、インクリメントを設定
し、データイベントレジスタに、最大値である“1F
[h]”を設定し、アドレスイベントレジスタには、毎
回切換を行うべく、1回を設定する。また、100番地
のデータを2回リードした後に、データの置き換えを行
う、等の置き換えを行いたい場合には、データ設定レジ
スタには、100番地を設定した上で、アドレスイベン
トレジスタに、2回と設定するのである。
Here, for example, “10 [h]” to “1”
When it is desired to repeat the continuous switching up to F [h] "many times, an increment is set in the circuit switching register and the maximum value" 1F "is set in the data event register.
[H] ”is set, and once is set in the address event register so as to perform switching every time. In addition, after the data at address 100 is read twice, data replacement is performed. If desired, the address 100 is set in the data setting register, and the address event register is set twice.

【0095】次に、実際のデバッグ作業の実施を行うの
であるが、この際に、アドレス設定レジスタの内容と、
ABUS上のアドレスが一致した場合には、アドレス検
出回路31は、アドレス一致信号S4を、アドレスイベ
ント回路36に対して出力する。
Next, the actual debugging work is performed. At this time, the contents of the address setting register and
If the addresses on the ABUS match, the address detection circuit 31 outputs an address match signal S4 to the address event circuit 36.

【0096】アドレスイベント回路は、かかるアドレス
一致信号S4が入力された場合には、その入力をカウン
トし、予め、アドレスイベントレジスタに設定されたア
ドレスの一致回数との比較を行う。そして、比較結果が
一致した場合には、DBUS出力禁止回路32、RD/
WR変換回路33、及びデータ切換回路34のそれぞれ
に対して、アドレスイベント一致信号S7の出力を行
う。
When the address match signal S4 is input, the address event circuit counts the input and compares it with the number of address matches set in the address event register in advance. If the comparison results match, the DBUS output prohibition circuit 32, RD /
An address event match signal S7 is output to each of the WR conversion circuit 33 and the data switching circuit 34.

【0097】DBUS出力禁止回路32、RD/WR変
換回路33、及びデータ切換回路34は、第3の実施形
態におけるアドレス一致信号S4と等しい機能を果たす
ものとして、アドレスイベント一致信号S7の入力を受
けて、第3の実施形態と同様に動作する。また、インク
リメント/ディクリメント回路35も、第3の実施形態
と同様に、データ切換回路34からの、データ出力完了
信号S6の入力によって、回路切換レジスタの内容に従
って、内部に保持している置き換えデータのインクリメ
ント又はディクリメントを行う。
The DBUS output inhibition circuit 32, the RD / WR conversion circuit 33, and the data switching circuit 34 receive an address event match signal S7 assuming that they perform the same function as the address match signal S4 in the third embodiment. Thus, the operation is performed in the same manner as in the third embodiment. In addition, similarly to the third embodiment, the increment / decrement circuit 35 also receives the replacement data internally held in accordance with the contents of the circuit switching register in response to the input of the data output completion signal S6 from the data switching circuit 34. Is incremented or decremented.

【0098】かかるインクリメント又はディクリメント
のなされた置き換えデータは、ここでは、データイベン
ト回路37に出力される。データイベント回路37で
は、予め、データイベントレジスタに設定されている最
大値又は最小値データとの比較を行う。そして、比較結
果が一致した場合には、置き換えデータの最大値、又は
最小値に達したものとして、インクリメント/ディクリ
メント回路35に対して、データ初期化要求信号S8を
出力し、置き換えデータの初期化を指示する。インクリ
メント/ディクリメント回路35は、かかる、データ初
期化要求信号S8に従って、DBUS上に出力される置
き換えデータの値を、データ設定レジスタに設定されて
いた値にリセットする。
The replacement data thus incremented or decremented is output to the data event circuit 37 here. The data event circuit 37 compares the maximum value or the minimum value data set in the data event register in advance. When the comparison results match, the data initialization request signal S8 is output to the increment / decrement circuit 35 assuming that the maximum value or the minimum value of the replacement data has been reached, and the replacement data is initialized. Instruct The increment / decrement circuit 35 resets the value of the replacement data output on DBUS to the value set in the data setting register according to the data initialization request signal S8.

【0099】評価用CPU1は、RD信号S1aを出力
した後、所定のリードタイミングによって、データ切換
回路34からDBUSに対して出力された置き換えデー
タの読み取りを行う。
After outputting the RD signal S1a, the evaluation CPU 1 reads the replacement data output from the data switching circuit 34 to DBUS at a predetermined read timing.

【0100】以上の処理が繰り返し行われることによ
り、置き換えデータを連続的に、増加、または減少させ
る機能に付加して、さらに、置き換えデータの繰り返し
設定及び範囲設定が行えることとなる。
By repeating the above processing, the function of continuously increasing or decreasing the replacement data can be added, and further, the replacement data can be repeatedly set and the range can be set.

【0101】本実施形態によれば、以下のような効果が
得られる。即ち、予め、置き換えを所望するデータの範
囲と繰り返し回数を設定し、これを用いて、置き換えデ
ータの連続切り換えを制御することにより、置き換えデ
ータの連続切り換えを、所望するデータの範囲内で、何
度も繰り返し行う、柔軟なデバッグが可能となった。
According to the present embodiment, the following effects can be obtained. That is, the range of the data to be replaced and the number of repetitions are set in advance, and the continuous switching of the replacement data is controlled by using the data range. Flexible debugging that can be performed repeatedly is now possible.

【0102】第5の実施形態 以下、本発明の第5の実施形態について、前述の実施形
態と異なる点についてのみ、図面を参照しながら詳細に
説明する。本実施形態は、調整対象のパラメータデータ
が、同時に複数ある場合についての、複数のデータの置
き換え機能を提供するものである。
Fifth Embodiment Hereinafter, a fifth embodiment of the present invention will be described in detail with reference to the drawings, focusing only on the differences from the above-described embodiment. The present embodiment provides a function of replacing a plurality of data when there are a plurality of parameter data to be adjusted at the same time.

【0103】図7は、本実施形態に係るデータ変換回路
3の回路構成を示したブロック図である。本実施形態に
係るデータ変換回路3は、図7に示すように、第1の実
施形態におけるデータ変換回路3が有する、アドレス検
出回路31、DBUS出力禁止回路32、RD/WR信
号変換回路33、データ切換回路34の他、更に、アド
レスセレクタ38、及びデータセレクタ39により構成
されている。
FIG. 7 is a block diagram showing a circuit configuration of the data conversion circuit 3 according to the present embodiment. As shown in FIG. 7, the data conversion circuit 3 according to the present embodiment includes an address detection circuit 31, a DBUS output inhibition circuit 32, an RD / WR signal conversion circuit 33, An address selector 38 and a data selector 39 are provided in addition to the data switching circuit 34.

【0104】ここで、アドレスセレクタ38は、複数の
アドレス設定レジスタの中から、順次、レジスタの選択
を行い、当該アドレス設定レジスタに設定されている置
き換えデータのアドレスを読み取って、かかるアドレス
をアドレス検出回路31に設定する。
Here, the address selector 38 sequentially selects a register from a plurality of address setting registers, reads the address of the replacement data set in the address setting register, and detects the address. Set in the circuit 31.

【0105】また、データセレクタ39も、同様に、複
数のデータ設定レジスタの中から、順次、レジスタの選
択を行い、当該データ設定レジスタに設定されている置
き換えデータを読みとって、かかるデータをデータ切換
回路34に設定する。
Similarly, the data selector 39 sequentially selects a register from a plurality of data setting registers, reads the replacement data set in the data setting register, and switches the data. Set in the circuit 34.

【0106】本実施形態に係るデータ変換回路を有する
エミュレータは、上記のように構成されており、以下、
その動作につき説明する。
The emulator having the data conversion circuit according to the present embodiment is configured as described above.
The operation will be described.

【0107】まず、初期設定として、置き換えを行うデ
ータ及びそのアドレスの設定を、行うのであるが、ここ
では、データの置き換えを行いたい順番に、その複数の
置き換えデータの格納アドレスを、アドレス設定レジス
タ1、アドレス設定レジスタ2、・・・アドレス設定レ
ジスタnの順に設定する。
First, as the initial setting, the data to be replaced and its address are set. Here, the storage addresses of the plurality of replacement data are stored in the address setting register in the order in which the data is to be replaced. 1, the address setting register 2,... Are set in the order of the address setting register n.

【0108】データの内容についても同様に、データの
置き換えを行いたい順番に、複数の置き換えデータの内
容を、データ設定レジスタ1、データ設定レジスタ2、
・・・データ設定レジスタnの順に設定する。
Similarly, regarding the contents of the data, the contents of the plurality of replacement data are written in the data setting register 1, the data setting register 2,
... Set in the order of the data setting register n.

【0109】実際のデバッグ中においては、アドレス設
定レジスタの内容と、ABUS上のアドレスが一致した
場合、アドレス検出回路31は、アドレス一致信号S4
を、DBUS出力禁止回路32、RD/WR信号変換回
路33、データ切換回路34の他、更に、アドレスセレ
クタ38、及びデータセレクタ39に対して出力する。
ここで、DBUS出力禁止回路32、RD/WR信号
変換回路33、データ切換回路34の各々の動作は、第
1の実施形態の場合と同様である。データ切換回路34
は、現在、データセレクタ39により設定されているデ
ータ設定レジスタの内容を、DBUS上に出力する。
During the actual debugging, if the contents of the address setting register and the address on the ABUS match, the address detection circuit 31 outputs the address match signal S4.
Is output to the address selector 38 and the data selector 39 in addition to the DBUS output inhibition circuit 32, the RD / WR signal conversion circuit 33, and the data switching circuit 34.
Here, the operations of the DBUS output inhibition circuit 32, the RD / WR signal conversion circuit 33, and the data switching circuit 34 are the same as those in the first embodiment. Data switching circuit 34
Outputs the contents of the data setting register currently set by the data selector 39 to DBUS.

【0110】一方、アドレスセレクタは、アドレス一致
信号S4、及びRD信号S1aが入力された場合には、
次にポイントされるアドレス設定レジスタから、当該レ
ジスタに設定されている置き換えデータのアドレスを読
み出し、アドレス検出回路31に設定する。
On the other hand, when the address match signal S4 and the RD signal S1a are input, the address selector
Next, the address of the replacement data set in the register is read out from the address setting register pointed to, and set in the address detection circuit 31.

【0111】また、データセレクタ39は、同様に、ア
ドレス一致信号S4、及びRD信号S1aが入力された
場合には、次にポイントされるデータ設定レジスタか
ら、当該レジスタに設定されている置き換えデータの内
容を読み出し、データ切換回路34に設定する。
Similarly, when the address match signal S4 and the RD signal S1a are input, the data selector 39 changes the replacement data set in the register from the data setting register pointed to next. The contents are read out and set in the data switching circuit 34.

【0112】評価用CPU1は、RD信号S1aを出力
した後、所定のリードタイミングによって、データ切換
回路34からDBUS上に出力されたデータの読み取り
を行う。
After outputting the RD signal S1a, the evaluation CPU 1 reads the data output to the DBUS from the data switching circuit 34 at a predetermined read timing.

【0113】以上の処理が繰り返し行われることによ
り、複数の置き換えデータを組み合わせて、同時に置き
換えを行えることとなる。
By repeating the above processing, a plurality of replacement data can be combined and replaced at the same time.

【0114】本実施形態によれば、以下のような効果が
得られる。即ち、複数のレジスタを用いて、複数の置き
換えデータのアドレスと内容を予め設定し、これを順番
に用いて制御することにより、いくつかのデータを組み
合わせて動作している周辺回路のデバッグにおいても、
データ置き換え機能が使用できるようになった。かかる
機能により、例えば、100番地のデータを置き換えた
後に200番地のデータ置き換えによって正常動作する
ような周辺回路に対しても、このデータの置き換え機能
が有効に用いることができるようになった。
According to the present embodiment, the following effects can be obtained. In other words, by setting the addresses and contents of a plurality of replacement data in advance by using a plurality of registers, and controlling the replacement data in order, it is possible to debug a peripheral circuit operating by combining some data. ,
Data replacement function can be used. With this function, for example, this data replacement function can be effectively used even for a peripheral circuit that normally operates by replacing the data at address 100 and then replacing the data at address 200.

【0115】[0115]

【発明の効果】以上説明したように、本発明によれば、
以下に記載されるような効果を奏する。即ち、評価用C
PUとメモリとの間のアドレスバスを、随時監視し、予
め設定したアドレスとの一致を検出した場合に、本来メ
モリから出力されるデータを任意のデータに置き換える
ことにより、評価用CPUの実行を停止することなく、
マイクロコンピュータや周辺回路の動作状態をリアルタ
イムで観察しながら、その読みとりデータを容易に変更
することが可能となる。従って、デバッグにおけるパラ
メータデータの調整を、効率的に行うことができるとい
う効果が得られる。
As described above, according to the present invention,
The following effects are obtained. That is, evaluation C
The address bus between the PU and the memory is monitored as needed, and when a match with a preset address is detected, the data originally output from the memory is replaced with arbitrary data, thereby executing the evaluation CPU. Without stopping,
While observing the operating states of the microcomputer and the peripheral circuits in real time, the read data can be easily changed. Therefore, there is an effect that adjustment of parameter data in debugging can be performed efficiently.

【0116】さらに、評価用CPUに対して置き換えを
行った任意のデータで、同時にメモリの内容を書き換え
る機能を有するので、良い評価の得られたパラメータデ
ータをメモリ上に残し、その後の動作確認でそのまま用
いることが可能となるという効果が得られる。これによ
り、互いに関連を有する複数のパラメータデータについ
ても、その調整を容易に行うことができる。
Furthermore, since there is a function of simultaneously rewriting the contents of the memory with arbitrary data that has been replaced with the evaluation CPU, the parameter data with a good evaluation is left in the memory, and the operation is checked afterwards. The effect that it can be used as it is is obtained. This makes it possible to easily adjust a plurality of parameter data that are related to each other.

【0117】また、ビット単位で任意のデータへの置き
換えを行う機能を有するので、ビットパターンによるパ
ラメータデータについても、その調整が容易となるとい
う効果が得られる。
Also, since the function of replacing data with arbitrary data in bit units is provided, an effect is obtained that adjustment of parameter data based on a bit pattern is facilitated.

【0118】さらに、任意のデータを始点として、置き
換えデータを連続的に増減させる機能を有するので、当
該パラメータデータの近傍における連続的な動作確認を
行うことが可能となるという効果が得られる。これによ
り、未だパラメータの値の範囲が絞り切れていない場合
や、周辺回路における稼働確認などの場合においても、
容易にパラメータデータの調整を行うことができる。
Further, since there is a function of continuously increasing or decreasing replacement data starting from arbitrary data, an effect that continuous operation confirmation in the vicinity of the parameter data can be performed can be obtained. As a result, even when the value range of the parameter has not been narrowed down yet or when the operation of the peripheral circuit is checked,
It is possible to easily adjust the parameter data.

【0119】本発明の応用範囲は広く、例えば、TVの
色調整や、車、ビデオ、CD等のモーターを制御する周
辺回路において、特に有効であるといえる。
The present invention can be applied to a wide range of applications, and can be said to be particularly effective in, for example, color adjustment of TVs and peripheral circuits for controlling motors of cars, videos, CDs and the like.

【0120】例えば、ブラウン管にキャラクターを表示
するオンスクリーンディスプレイにおいて、表示する色
を選ぶとき、基本的に赤のみ、青のみ、緑のみではな
く、それらの合成色を数値で把握する必要がある。この
場合に、本発明装置を使用すれば、実際に色を決定する
データをリアルタイムで置き換え、ディスプレイに現れ
る色の変化を見ながら数値を決定することが容易にでき
る。
For example, when selecting a color to be displayed on an on-screen display for displaying a character on a CRT, it is basically necessary to grasp not only only red, only blue, and green but also their composite colors by numerical values. In this case, if the apparatus of the present invention is used, the data for actually determining the color can be replaced in real time, and the numerical value can be easily determined while observing the color change appearing on the display.

【0121】一方、車の速度の調整においては、アクセ
ルやブレーキの踏み具合、またギア比によってモータが
制御されている。また、車の発進においても、人の安全
確保、乗り心地の快適さの確保、および車重量を考慮し
てモータに負担が掛からないようにする必要がある。こ
れらの条件を満たすために、プログラム開発の際には、
実際に人間が車へ乗車し、予め用意した各種パラメータ
データでモータを制御させ、人の安全確保、乗り心地の
快適さの確保、およびモータに負担が掛かっていないか
を実感しながらプログラムをデバッグしている。特に、
モータの様に段階的に回転数を変化させ速度調整してい
る場合、リアルタイムでデータを変化させることは必須
である。この場合に、本発明装置を使用すれば、データ
をリアルタイムで容易に変化させることができ、プログ
ラムの開発環境と開発効率が向上する。
On the other hand, in adjusting the speed of the vehicle, the motor is controlled by the degree of depression of the accelerator or brake and the gear ratio. Also, when starting the vehicle, it is necessary to ensure the safety of humans, the comfort of ride, and the load on the motor in consideration of the vehicle weight. To satisfy these conditions, when developing a program,
When a person actually gets into a car and controls the motor with various parameter data prepared in advance, debug the program while ensuring human safety, ensuring comfortable riding comfort, and feeling whether there is a load on the motor doing. Especially,
When the speed is adjusted by changing the rotation speed stepwise like a motor, it is essential to change the data in real time. In this case, by using the apparatus of the present invention, data can be easily changed in real time, and the development environment and development efficiency of the program are improved.

【0122】このように、本発明を用いれば、デバッグ
の効率を向上させることによって、マイクロコンピュー
タを内蔵するIC製品のプロトタイプから製品化までの
ターンアラウンドタイムを短縮し、ひいては、製品コス
トの削減という効果を奏することができるのであり、産
業上その効果のきわめて大きい発明である。
As described above, according to the present invention, by improving the efficiency of debugging, the turnaround time from the prototype to the commercialization of an IC product incorporating a microcomputer can be shortened, and the product cost can be reduced. This is an invention that can produce an effect and is extremely effective industrially.

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

【図1】本発明の第1の実施形態に係るデータ変換回路
を有するエミュレータのシステム構成を示すブロック図
である。
FIG. 1 is a block diagram showing a system configuration of an emulator having a data conversion circuit according to a first embodiment of the present invention.

【図2】本発明の第1の実施形態に係るデータ変換回路
中の回路構成を示すブロック図である。
FIG. 2 is a block diagram showing a circuit configuration in the data conversion circuit according to the first embodiment of the present invention.

【図3】本発明の第2の実施形態に係るビットデータ変
換回路を有するエミュレータのシステム構成を示すブロ
ック図である。
FIG. 3 is a block diagram showing a system configuration of an emulator having a bit data conversion circuit according to a second embodiment of the present invention.

【図4】本発明の第2の実施形態に係るビットデータ変
換回路中の回路構成を示すブロック図である。
FIG. 4 is a block diagram illustrating a circuit configuration in a bit data conversion circuit according to a second embodiment of the present invention.

【図5】本発明の第3の実施形態に係るデータ変換回路
中の回路構成を示すブロック図である。
FIG. 5 is a block diagram showing a circuit configuration in a data conversion circuit according to a third embodiment of the present invention.

【図6】本発明の第4の実施形態に係るデータ変換回路
中の回路構成を示すブロック図である。
FIG. 6 is a block diagram illustrating a circuit configuration in a data conversion circuit according to a fourth embodiment of the present invention.

【図7】本発明の第5の実施形態に係るデータ変換回路
中の回路構成を示すブロック図である。
FIG. 7 is a block diagram illustrating a circuit configuration in a data conversion circuit according to a fifth embodiment of the present invention.

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

1 評価用CPU 2 メモリ 3 データ変換回路 4 ビットデータ変換回路 31 アドレス検出回路 32 DBUS出力禁止回路 33 RD/WR信号変換回路 34 データ切換回路 35 インクリメント/ディクリメント回路 36 アドレスイベント回路 37 データイベント回路 38 アドレスセレクタ 39 データセレクタ 41 ビットデータ切換判定回路 42 ビットデータ切換用マルチプレクサ(RD用) 43 ビットデータ切換用マルチプレクサ(WR用) S1a RD信号 S1b M−RD信号 S2a WR信号 S2b M−WR信号 S3a OE信号 S3b M−OE信号 S4 アドレス一致信号 S5 ビット切換許可信号 S6 データ出力完了信号 S7 アドレスイベント一致信号 S8 データ初期化要求信号 Reference Signs List 1 evaluation CPU 2 memory 3 data conversion circuit 4 bit data conversion circuit 31 address detection circuit 32 DBUS output inhibition circuit 33 RD / WR signal conversion circuit 34 data switching circuit 35 increment / decrement circuit 36 address event circuit 37 data event circuit 38 Address selector 39 Data selector 41 Bit data switching determination circuit 42 Bit data switching multiplexer (for RD) 43 Bit data switching multiplexer (for WR) S1a RD signal S1b M-RD signal S2a WR signal S2b M-WR signal S3a OE signal S3b M-OE signal S4 Address match signal S5 Bit switching permission signal S6 Data output completion signal S7 Address event match signal S8 Data initialization request signal

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 評価用CPUと、該評価用CPUとの間
は、少なくともアドレスバスと、データバスとにより接
続されるメモリと、 を少なくとも有するエミュレータにおいて、 前記アドレスバス上のアドレスと、予め設定された、置
き換えの対象とするデータのアドレスとの一致を検出し
た際には、 前記メモリから前記データバスへの出力禁止を要求する
とともに、 前記評価用CPUの要求に対応して、予め設定された、
置き換えを行う任意の変換データを、前記データバスに
対して、出力するデータ変換回路を有することを特徴と
するエミュレータ。
1. An emulator having at least an evaluation bus and a memory connected by an address bus and a data bus between the evaluation CPU and the evaluation CPU, comprising: an address on the address bus; When detecting a match with the address of the data to be replaced, a request is made to prohibit output from the memory to the data bus, and a preset value is set in response to a request from the evaluation CPU. Was
An emulator comprising a data conversion circuit for outputting arbitrary conversion data to be replaced to the data bus.
【請求項2】 評価用CPUと、該評価用CPUとの間
は、少なくともアドレスバスと、データバスとにより接
続されるメモリと、 を少なくとも有するエミュレータにおいて、 前記アドレスバスに接続され、前記アドレスバス上のア
ドレスと、予め設定された、置き換えの対象とするデー
タのアドレスとの一致を検出した場合には、アドレス一
致信号を出力するアドレス検出回路と、 前記アドレス一致信号に基づいて、前記メモリから前記
データバスへの出力禁止を要求する出力禁止回路と、 前記データバスに接続され、前記評価用CPUの要求に
対応して、予め設定された、置き換えを行う変換データ
を前記データバスに出力するデータ切換回路とを少なく
とも具備するデータ変換回路を有することを特徴とする
エミュレータ。
2. An emulator having at least an evaluation bus and a memory connected by an address bus and a data bus between the evaluation CPU and the evaluation CPU, wherein the emulator is connected to the address bus, An address detection circuit that outputs an address match signal when a match between the above address and a preset address of the data to be replaced is detected, based on the address match signal, An output prohibition circuit for requesting output prohibition to the data bus; and an output prohibition circuit connected to the data bus and outputting preset conversion data to be replaced to the data bus in response to a request from the evaluation CPU. An emulator comprising a data conversion circuit including at least a data switching circuit.
【請求項3】 前記メモリは、書き換え可能メモリであ
り、 前記データ変換回路は、更に、予め設定された書き込み
要求に従い、前記アドレス一致信号に基づいて、前記評
価用CPUから出力されるリード信号を、前記メモリに
対してライト信号として変換出力する信号変換回路を有
し、 前記データ切換回路から出力される前記変換データを、
更に、前記メモリに対して書き換え出力を行うことを特
徴とする請求項2記載のエミュレータ。
3. The memory according to claim 2, wherein the memory is a rewritable memory, and the data conversion circuit further outputs a read signal output from the evaluation CPU based on the address match signal in accordance with a preset write request. And a signal conversion circuit that converts and outputs a write signal to the memory, wherein the conversion data output from the data switching circuit is
3. The emulator according to claim 2, further comprising a rewrite output to said memory.
【請求項4】 評価用CPUと、該評価用CPUとの間
は、少なくともアドレスバスにより接続されるメモリと
を少なくとも有するエミュレータにおいて、 前記アドレスバスに接続され、前記アドレスバス上のア
ドレスと、予め設定された、置き換えの対象とするデー
タのアドレスとの一致を検出した場合には、アドレス一
致信号を出力するアドレス検出回路と、 前記アドレス一致信号に基づいて、予め設定された変換
のビットパターンデータに従い、前記置き換え対象デー
タ中の置き換え指定ビットについてのビット切換許可信
号を出力するビットデータ切換判定回路と、 前記評価用CPUおよび前記メモリとの間は、それぞれ
データバスにより接続され、前記ビット切換許可信号に
基づいて、入力される前記置き換え対象データを、前記
置き換え指定ビットについてのみ、前記ビットパターン
データに従って置き換えを行い、前記データバスに出力
するビットデータ切換器とを少なくとも具備するデータ
変換回路を有することを特徴とするエミュレータ。
4. An emulator having at least a memory connected by an address bus between the evaluation CPU and the evaluation CPU, wherein the emulator is connected to the address bus, and an address on the address bus is determined in advance. An address detection circuit that outputs an address match signal when a match with the set address of the data to be replaced is detected; and based on the address match signal, bit pattern data of a preset conversion. And a bit data switching determination circuit that outputs a bit switching permission signal for a replacement designation bit in the replacement target data, and the evaluation CPU and the memory are respectively connected by a data bus, and the bit switching permission Based on the signal, the input replacement target data, An emulator comprising: a data conversion circuit having at least a bit data switch for performing replacement according to the bit pattern data only for replacement designation bits and outputting the data to the data bus.
【請求項5】 前記データ切換回路または前記ビットデ
ータ切換器は、さらに、前記置き換えを行ったデータの
出力を行った後に、データ出力完了信号の出力を行い、 前記データ変換回路は、さらに、前記データ出力完了信
号に基づき、予め設定された置き換えを行う前記変換デ
ータについて、予め設定された値に従って、インクリメ
ントまたはデイクリメントのいずれかを行い、前記デー
タ切換回路または前記ビットデータ切換器に対して出力
を行う回路を有することを特徴とする請求項2乃至4の
いずれか記載のエミュレータ。
5. The data switching circuit or the bit data switch further outputs a data output completion signal after outputting the replaced data, and the data conversion circuit further comprises: Based on the data output completion signal, the conversion data for which a preset replacement is performed, according to a preset value, performs either increment or decrement, and outputs the data to the data switching circuit or the bit data switch. The emulator according to any one of claims 2 to 4, further comprising a circuit for performing:
JP9319921A 1997-11-20 1997-11-20 Emulator having data conversion circuit Withdrawn JPH11154102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9319921A JPH11154102A (en) 1997-11-20 1997-11-20 Emulator having data conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9319921A JPH11154102A (en) 1997-11-20 1997-11-20 Emulator having data conversion circuit

Publications (1)

Publication Number Publication Date
JPH11154102A true JPH11154102A (en) 1999-06-08

Family

ID=18115727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9319921A Withdrawn JPH11154102A (en) 1997-11-20 1997-11-20 Emulator having data conversion circuit

Country Status (1)

Country Link
JP (1) JPH11154102A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007122543A (en) * 2005-10-31 2007-05-17 Nec Electronics Corp Semiconductor integrated circuit device, and debug system and debug method therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007122543A (en) * 2005-10-31 2007-05-17 Nec Electronics Corp Semiconductor integrated circuit device, and debug system and debug method therefor

Similar Documents

Publication Publication Date Title
US5051997A (en) Semiconductor integrated circuit with self-test function
US5042002A (en) Programmable controller with a directed sequencer
JPH0318280B2 (en)
IE50247B1 (en) Data processing system including internal register addressing arrangements
JPH11154102A (en) Emulator having data conversion circuit
US5872961A (en) Microcomputer allowing external monitoring of internal resources
US20060164419A1 (en) Image drawing device and image drawing method
JP3131675B2 (en) Development and evaluation method of one-chip microcomputer and its program
EP0827080B1 (en) Mircrocomputer with selfdiagnostic unit
JP2791193B2 (en) Plant control device
JPH05314248A (en) Register access control system
JPH02311950A (en) Self-diagnostic system for multiprocessor system
JPH04330532A (en) Programmable controller
JP2584903B2 (en) External device control method
JPS6238746B2 (en)
JP2599795B2 (en) Test method for circuits with microprocessor
JPH0217509A (en) Cad cam device
JP2919841B2 (en) Testing method for data processing equipment
JPH0895610A (en) Programmable controller
JPH0792690B2 (en) Programmable controller
JPH0546220A (en) Numerical controller
JPH0546396A (en) Fuzzy reasoning device
JPH0375883B2 (en)
JP2000056818A (en) Programmable logic controller and control method thereof
JPH0916514A (en) Process controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050201