JPH0667931A - Single-chip microcomputer simulator - Google Patents
Single-chip microcomputer simulatorInfo
- Publication number
- JPH0667931A JPH0667931A JP4221210A JP22121092A JPH0667931A JP H0667931 A JPH0667931 A JP H0667931A JP 4221210 A JP4221210 A JP 4221210A JP 22121092 A JP22121092 A JP 22121092A JP H0667931 A JPH0667931 A JP H0667931A
- Authority
- JP
- Japan
- Prior art keywords
- chip microcomputer
- simulator
- external event
- port
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】
【目的】図1の4に示すデバッグ対象プログラムと連動
させて、シングルチップマイコンのI/Oポートへ発生
させる外部事象情報の定義を容易にするツールを、図1
の7に示すシミュレータ本体に付加し、前記プログラム
のデバッグ効率向上を図る。
【構成】本発明は図1に示すシミュレータの一機能であ
る。特徴づけるのは、図1に示すシミュレータがI/O
をシミュレーションする時に参照する事象情報定義ファ
イル5の作成に際し、タイミングチャートデータをグラ
フィカルに定義出来るウインドウ画面を具備した編集手
段と、指定I/Oポートを監視することで入出力情報を
リアルタイムに表示出来るウインドウ画面を具備した表
示手段を設けたことにある。
【効果】
(1)該ソフトウエアの生産性向上と開発期間の短縮を
図ることが可能となる。
(2)該ソフトウエアの信頼性向上を図ることが可能と
なる。
(57) [Abstract] [Purpose] A tool that facilitates the definition of external event information generated in the I / O port of a single-chip microcomputer in conjunction with the debug target program shown in 4 of FIG.
It is added to the simulator body shown in 7 to improve the debugging efficiency of the program. [Structure] The present invention is one function of the simulator shown in FIG. Characteristically, the simulator shown in FIG.
Input / output information can be displayed in real time by creating an event information definition file 5 that is referred to when simulating the data, and by editing the editing means equipped with a window screen that can graphically define the timing chart data and the specified I / O port. The reason is that a display means having a window screen is provided. [Effect] (1) It is possible to improve the productivity of the software and shorten the development period. (2) It is possible to improve the reliability of the software.
Description
【0001】[0001]
【産業上の利用分野】本発明は、シングルチップマイコ
ンにより制御される機器を開発する際に使用されるシミ
ュレータに関し、特にシングルチップマイコン制御用ア
プリケーションプログラムのテストをハードウエアなし
に行なうためのデバッグ環境を提供するシングルチップ
マイコンのシミュレータに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a simulator used when developing a device controlled by a single-chip microcomputer, and more particularly to a debugging environment for testing an application program for controlling a single-chip microcomputer without hardware. The present invention relates to a simulator for a single-chip microcomputer that provides.
【0002】[0002]
【従来の技術】従来、シングルチップマイコン制御用ア
プリケーションプログラムのデバッグを行なう際の方法
としては、ターゲットとなるシングルチップマイコンの
CPUとメモリのみをシミュレーションする方法、シン
グルチップマイコンの全機能をエミュレートできるイン
サーキットエミュレータをターゲットとなるシングルチ
ップマイコンの代わりにハードウエア(治具)に接続す
る方法などが上げられる。2. Description of the Related Art Conventionally, as a method for debugging an application program for controlling a single-chip microcomputer, a method of simulating only a CPU and a memory of a target single-chip microcomputer, and emulating all functions of the single-chip microcomputer can be emulated. There is a way to connect the in-circuit emulator to the hardware (jig) instead of the target single-chip microcomputer.
【0003】以下、本発明の前提条件となっている前記
従来技術の詳細を記述する。The details of the prior art, which is a prerequisite for the present invention, will be described below.
【0004】図2に従来技術の実行環境である電子計算
機の構成を示す。本図において6はソフトウエアである
シングルチップマイコンシミュレータが動作する中央処
理装置であり、ディスプレイ1,キーボード2,主記憶
装置21,ディスク装置3が接続されている。FIG. 2 shows the configuration of an electronic computer which is a conventional execution environment. In the figure, reference numeral 6 is a central processing unit in which a single-chip microcomputer simulator, which is software, operates, and a display 1, a keyboard 2, a main storage unit 21, and a disk unit 3 are connected.
【0005】また、図1にシミュレータの構成を示す。
本図における波形入力手段10及び波形表示手段11以
外の構成が従来のシミュレータを表わす。マイコンシミ
ュレータ本体7は、シミュレータカーネル12,コマン
ド制御手段8,マイコンシミュレータ9,割込みシミュ
レータ20,I/Oシミュレータ15の各ソフトウエア
にて構成し、デバッグ対象プログラム4と共にソフトウ
エア開発時のホストマシンとなる電子計算機の主メモリ
上に読み上げ、ターゲットとなるシングルチップマイコ
ンのCPU,メモリ、及び各種割込み(外部・タイマ・
シリアル通信・A/D変換器)をシミュレーションする
ことで、前記デバッグ対象プログラムのデバッグに際
し、実際のシングルチップマイコン環境と同等の動作環
境を実現し、加えて、前記シングルチップマイコンの各
I/Oポートに供給する外部事象情報を前記電子計算機
のエディタ上にて簡単に作成/修正出来る独立したプロ
グラムファイルとして扱える機能と、当該情報を論理式
にて定義出来る機能を有する。FIG. 1 shows the structure of the simulator.
The configuration other than the waveform input means 10 and the waveform display means 11 in this figure represents a conventional simulator. The microcomputer simulator main body 7 is composed of each software of the simulator kernel 12, the command control means 8, the microcomputer simulator 9, the interrupt simulator 20, and the I / O simulator 15, and together with the debug target program 4, a host machine at the time of software development. It is read into the main memory of the electronic computer that becomes a target, the CPU of the target single-chip microcomputer, the memory, and various interrupts (external, timer,
By simulating the serial communication / A / D converter), an operating environment equivalent to an actual single-chip microcomputer environment is realized when debugging the program to be debugged, and in addition, each I / O of the single-chip microcomputer is realized. It has a function of handling external event information supplied to the port as an independent program file that can be easily created / modified on the editor of the electronic computer, and a function of defining the information by a logical expression.
【0006】次に、当該シミュレータの詳細機能を記
す。図3に事象情報定義ファイルのフォーマットを示
し、図4に事象情報定義ファイルの詳細構成、監視する
事象情報と発生させる外部事象情報の関連を示す。Next, detailed functions of the simulator will be described. FIG. 3 shows the format of the event information definition file, and FIG. 4 shows the detailed structure of the event information definition file and the relationship between the monitored event information and the external event information to be generated.
【0007】図3に示す事象情報定義ファイル22はホ
ストコンピュータとなる電子計算機上のエディタにて作
成/修正できるアスキーファイルであり、図4に示す複
合監視事象チェック情報25(図3では[LG]項)、
単監視事象チェック情報26(図3では[WT]項)、
複合外部事象情報27(図3では[PN]項)と単外部
事象情報28(図3では[SG]項)にて構成されてい
る。また、当該事象情報定義ファイルは主メモリ上に読
み上げられ、図4に示すような紐付けにて管理される。The event information definition file 22 shown in FIG. 3 is an ASCII file that can be created / corrected by an editor on an electronic computer which is a host computer, and the composite monitoring event check information 25 ([LG] in FIG. 3) shown in FIG. ),
Single monitoring event check information 26 ([WT] item in FIG. 3),
It is composed of composite external event information 27 ([PN] item in FIG. 3) and single external event information 28 ([SG] item in FIG. 3). The event information definition file is read aloud on the main memory and managed by linking as shown in FIG.
【0008】ここで、利用者が定義した事象情報定義フ
ァイルをシミュレータがその内部に読み込んだ時の管理
情報を、図4にて説明する。The management information when the simulator reads the event information definition file defined by the user will be described with reference to FIG.
【0009】先ず、図4の複合監視事象チェック情報2
5は、単監視情報数と当該にて定義されたLケースの監
視情報から構成され、監視情報は監視事象区分、監視条
件1,監視条件2,監視データ,条件成立回数,条件成
立時の複合外部事象ケースNOから構成されている。次
に、複合監視事象チェック情報26は複合監視式数と当
該にて定義されたWケースの監視式から構成され、監視
式はそれに紐付けされた複数個の各単監視事象チェック
情報にて条件成立を監視している。尚、前記の単監視事
象チェック情報26の条件成立監視の為の論理式は、単
監視事象チェック情報中のケースNOを論理積(AN
D)と論理和(OR)の組み合わせにて定義する。ま
た、論理積(AND)は‘&’、論理和(OR)は
‘|’にて記述される。最後に、単外部事象発生情報と
実際のタイミングチャートの関係を図5に示す。本図で
は利用者が定義した事象情報定義ファイル23が電子計
算機内部では単外部事象発生情報28に示す情報として
認識され、ポートNOの10と11へタイミングチャー
ト30の信号が生成されることを示す。First, the composite monitoring event check information 2 in FIG.
Reference numeral 5 is composed of the number of single monitoring information and the monitoring information of the L case defined by the monitoring information. The monitoring information is monitoring event classification, monitoring condition 1, monitoring condition 2, monitoring data, the number of times the condition is satisfied, and a composite when the condition is satisfied. It consists of an external event case number. Next, the composite monitoring event check information 26 is composed of the number of composite monitoring expressions and the monitoring expression of the W case defined by the above, and the monitoring expression is a condition with a plurality of single monitoring event check information associated with it. The establishment is being monitored. The logical expression for the condition satisfaction monitoring of the single monitoring event check information 26 is the logical product (AN) of the case NOs in the single monitoring event check information.
It is defined by the combination of D) and the logical sum (OR). Further, a logical product (AND) is described by “&”, and a logical sum (OR) is described by “|”. Finally, FIG. 5 shows the relationship between the single external event occurrence information and the actual timing chart. This figure shows that the event information definition file 23 defined by the user is recognized as the information shown in the external event occurrence information 28 inside the computer, and the signals of the timing chart 30 are generated to the port numbers 10 and 11. .
【0010】[0010]
【発明が解決しようとする課題】しかしながら、従来技
術では、ターゲットとなるシングルチップマイコンのI
/Oポートに供給する外部事象情報を使用者が電子計算
機のエディタにて定義するに先立ち、事前にシミュレー
ションする信号を定義したタイミングチャートから数値
データを算出しておかなければならないため、エディタ
上での作業と合わせ工数が掛かっていた。However, in the prior art, the I of the target single-chip microcomputer is used.
Before the user can define the external event information to be supplied to the / O port using the editor of the computer, numerical data must be calculated from the timing chart that defines the signals to be simulated in advance. It took a lot of man-hours to work with.
【0011】また、ターゲットとなるI/Oポートの監
視はマイコンからの出力信号とシミュレータからの入力
信号に区別し、トリガーの有無のみをキャラクターベー
スにて画面表示していたため、利用者にとっては多少理
解しにくいと言う問題点が発生していた。Further, since the target I / O port is monitored by distinguishing the output signal from the microcomputer and the input signal from the simulator and displaying only the presence or absence of the trigger on the screen based on the character, the user may have a slight difference. There was a problem that it was difficult to understand.
【0012】本発明は従来の方式における上記問題点を
解消するため、図1の波形入力手段10と波形表示手段
11を付加することで、より使いやすく、効率の良い外
部事象データの定義方法及び、I/Oポート入出力デー
タ表示方法を提供することを目的とする。In order to solve the above-mentioned problems in the conventional system, the present invention adds the waveform input means 10 and the waveform display means 11 of FIG. 1 to make it easier to use and more efficient in defining the external event data. , I / O port input / output data display method is provided.
【0013】[0013]
【課題を解決するための手段】本発明のシングルチップ
マイコンシミュレータは、各I/Oポートに供給する外
部事象情報の定義をグラフィカルに行なうことが出来る
ウインドウ画面を具備したことにより、シミュレーショ
ンする信号の定義を詳細な時間計算なしで、前記ウイン
ドウ上で他の信号との関係を確認しながらタイミングチ
ャートを書く要領で行なうことが出来る。また、修正の
場合はマウスによりタイミングチャートのエッジ自体を
移動させることで、視覚的な判断、編集を可能としたこ
とを特徴とする。The single-chip microcomputer simulator of the present invention has a window screen capable of graphically defining the external event information supplied to each I / O port. The definition can be performed without a detailed time calculation by writing a timing chart while checking the relationship with other signals on the window. Further, in the case of correction, it is possible to visually judge and edit by moving the edge itself of the timing chart with a mouse.
【0014】また、前記シングルチップマイコンの指定
I/Oポートを監視する機能を設け、該I/Oポートへ
の入出力信号をリアルタイムに表示出来るウインドウ画
面を具備したことにより、タイミングを視覚的に、且
つ、リアルタイムにとらえることを可能としたことを特
徴とする。Further, the function of monitoring the designated I / O port of the single-chip microcomputer is provided, and the window screen capable of displaying the input / output signal to the I / O port in real time is provided to visually check the timing. In addition, it is possible to capture in real time.
【0015】[0015]
【作用】前述の如く、外部事象情報定義の環境におい
て、グラフィカルなウインドウを採用したことで、視覚
的イメージを加えた判断にて、編集および確認を行なえ
る。なお且つ、外部事象情報定義がタイミングチャート
表示と同一画面で行なえることにより、効率の良い外部
事象情報定義環境を実現した。As described above, by adopting the graphical window in the environment for defining the external event information, the editing and confirmation can be performed by the judgment including the visual image. In addition, the external event information definition can be performed on the same screen as the timing chart display, thereby realizing an efficient external event information definition environment.
【0016】また、I/Oポートへの入出力信号をリア
ルタイムに表示出来るウインドウ画面にて、綿密で高効
率なデバッグ環境を実現したことで、前記アプリケーシ
ョンソフトのデバッグ工数低減が図れる。Further, by implementing a thorough and highly efficient debugging environment on the window screen capable of displaying the input / output signals to the I / O port in real time, the debugging man-hours of the application software can be reduced.
【0017】[0017]
【実施例】以下、本発明の実施例について、添付の図面
を参照しながら詳細に説明する。図1は本発明を実施し
たシミュレータの構成を示す。波形入力手段10及び波
形表示手段11について以下詳述する。図6に波形入力
手段(初期値作成例)を示す。Embodiments of the present invention will now be described in detail with reference to the accompanying drawings. FIG. 1 shows the configuration of a simulator embodying the present invention. The waveform input means 10 and the waveform display means 11 will be described in detail below. FIG. 6 shows waveform input means (an example of initial value creation).
【0018】本図では指定I/Oポートへの治具からの
信号をシミュレーションする為のタイミングチャート
(初期値)を作成する場合の例を示し、本発明の第一の
特徴となる外部事象の条件定義を独立したウィンドウに
てグラフィカルに処理出来る波形入力手段の一例を示し
ている。ここで、31はシミュレーション用にI/Oへ
出力するデータの初期値を入力するためのダイアログで
あり、32は31のダイアログにて入力されたデータを
基に本シミュレータがタイミングチャートを表示するウ
インドウである。オペレータは32のウインドウにグラ
フィック表示されるタイミングチャートを確認しなが
ら、31のダイアログからデータ入力を行ない、外部事
象情報を定義することが出来る。In this figure, an example of a case of creating a timing chart (initial value) for simulating a signal from a jig to a designated I / O port is shown, showing the external event which is the first feature of the present invention. An example of a waveform input means capable of graphically processing the condition definition in an independent window is shown. Here, 31 is a dialog for inputting an initial value of data to be output to I / O for simulation, and 32 is a window in which the simulator displays a timing chart based on the data input in the dialog of 31. Is. While confirming the timing chart graphically displayed in the 32 window, the operator can input data from the 31 dialog and define the external event information.
【0019】以下、図6の2−SWINP1(I/Oポ
ート)の破線にて示す波形34の生成手順を図7の外部
事象情報入力処理フローチャートを用いて説明する。The procedure for generating the waveform 34 shown by the broken line of 2-SWINP1 (I / O port) in FIG. 6 will be described below with reference to the external event information input processing flowchart in FIG.
【0020】図7において、先ず、I/Oポートを指定
し(ステップ:S36)、次にシミュレーション開始時
間(S37),継続時間(S38),High又はLow の指
定(S39)を行なう。波形を形成する場合、すなわ
ち、HighからLow 、又はLowからHighのレベル切り換え
が行なわれる場合は、少なくとも2パターンの情報が必
要なので、開始時間,継続時間の設定、及びHigh又はLo
w の指定の入力を複数回行ない、繰り返し回数を設定
(S41)すれば、入力パターンに従い自動的に図6の
2−SWINP1の破線33に示すタイミングチャート
が繰り返し表示される。この時に、2の波形表示用ウィ
ンドウにてタイミングチャートを確認し、修正があれば
再入力することも可能である。また、マウスによる単純
修正も可能であり、当該修正の詳細については、図8に
て後ほど説明する。In FIG. 7, first, an I / O port is designated (step: S36), and then a simulation start time (S37), a continuation time (S38), and High or Low are designated (S39). When forming a waveform, that is, when switching the level from High to Low or from Low to High, at least two patterns of information are required.
When the designation of w is input a plurality of times and the number of repetitions is set (S41), the timing chart shown by the broken line 33 of 2-SWINP1 in FIG. 6 is automatically repeated according to the input pattern. At this time, it is also possible to confirm the timing chart in the waveform display window 2 and re-input if there is a correction. Further, simple correction with a mouse is also possible, and the details of the correction will be described later with reference to FIG.
【0021】また、図6の3−SWINP2の部分の破
線にて示す波形35は、上の1−SWINP0の波形3
3をコピーしたものである。当該の様に他ポートへ定義
したデータと同じ波形を作成したい場合は新規に編集を
行なわなくとも、容易にコピー出来ることは言うまでも
ない。The waveform 35 indicated by the broken line in the 3-SWINP2 portion in FIG. 6 is the waveform 1-SWINP0 above.
It is a copy of 3. Needless to say, if you want to create the same waveform as the data defined for other ports as described above, you can easily copy the data without newly editing it.
【0022】次に、前記にて作成済のデータを修正する
場合の例を示す。Next, an example of modifying the data already created will be shown.
【0023】図8に、波形入力手段(マウスでの修正
例)を示す。FIG. 8 shows a waveform input means (example of correction with a mouse).
【0024】本図の42は既作成の波形データ表示ウィ
ンドウの一部を示し、45はマウスにて修正する前の波
形データ、46はマウスにて修正した後の波形データを
示す。修正前の波形45を修正後の波形46のように、
1ms時点からHigh信号を出力する様に修正したい場
合、波形データ表示ウィンドウ中で移動したい部分の先
頭のエッジ(右側の矢印(マウス)の指してるところ)
43をクリックしながら目的の位置である左側の矢印の
ところ44までマウスを動かす。それにより、エッジ以
降の波形はそのまま左に移動する。また、修正完了とと
もに、入力又は修正情報は下記に述べる形式にて図3に
示す事象情報定義ファイル22に反映される。Reference numeral 42 in the figure shows a part of the already created waveform data display window, reference numeral 45 shows the waveform data before correction with the mouse, and reference numeral 46 shows the waveform data after correction with the mouse. The waveform 45 before the correction is changed to the waveform 46 after the correction,
If you want to modify so that the High signal is output from the 1 ms point, the leading edge of the part you want to move in the waveform data display window (where the right arrow (mouse) points)
While clicking 43, move the mouse to 44 at the left-side arrow at the desired position. As a result, the waveform after the edge moves to the left as it is. When the correction is completed, the input or correction information is reflected in the event information definition file 22 shown in FIG. 3 in the format described below.
【0025】次に、前記波形データにて実際にデータを
定義した例を2パターン紹介する。図9にタイミングチ
ャートと外部事象情報(その1)を示す。タイミングチャ
ート47は繰り返しの無い波形を生成する場合の一例で
ある。タイミングチャート47に示すポート10へのシ
ミュレーションは、Highを5msec,Lowを8msec,Hig
hを5msec,Lowを12ms出力する例であり、前記の
外部事象情報入力により事象生成情報情報([PN])
と単外部事象生成情報([SG])49を含んだ事象情
報定義ファイル48が生成される。以下にその詳細を示
す。Next, two patterns in which data is actually defined by the waveform data will be introduced. FIG. 9 shows a timing chart and external event information (No. 1). The timing chart 47 is an example of the case of generating a non-repeating waveform. The simulation for the port 10 shown in the timing chart 47 shows that High is 5 msec, Low is 8 msec, and Hig is
This is an example in which h is output for 5 msec and Low is output for 12 ms. Event generation information information ([PN]) by inputting the above-mentioned external event information.
An event information definition file 48 including the external event generation information ([SG]) 49 is generated. The details are shown below.
【0026】a)複合外部事象P1は、S1,S2,S
3,S4に示す4個の単外部事象と紐付けられており、
その繰返し回数は1回を示す。A) The composite external event P1 is S1, S2, S
It is associated with four single external events shown in S3 and S4,
The number of repetitions is one.
【0027】b)単外部事象S1,S2,S3,S4
は、ポートNo.10に対し指定のスタート時間が経過し
た後、継続時間分High又はLow データを出力する。特
に、*1の様に前回シーケンスが存在する場合、スター
ト時間は前回シーケンスNOを指定することで自動計算
される。B) Single external event S1, S2, S3, S4
Outputs High or Low data for the continuous time after the specified start time has passed to port No.10. In particular, when the previous sequence exists as in * 1, the start time is automatically calculated by designating the previous sequence NO.
【0028】図10に、タイミングチャートと外部事象
情報(その2)を示す。FIG. 10 shows a timing chart and external event information (No. 2).
【0029】本図は、タイミングチャート50のように
繰り返しの多い規則的な波形を生成する場合の一例であ
る。タイミングチャート50に示すポート10のデータ
は、Highから始まりHighを5ms、Low を10msの繰
り返しによって生成される波形であり、前記の外部事象
情報入力により、事象情報定義ファイル51を生成す
る。以下にその詳細を示す。This drawing is an example of the case where a regular waveform having a large number of repetitions is generated as in the timing chart 50. The data of the port 10 shown in the timing chart 50 is a waveform generated by repeating High for 5 ms and Low for 10 ms starting from High, and the event information definition file 51 is generated by the external event information input. The details are shown below.
【0030】a)複合外部事象P1は、S1とS2に示
す2個の単外部事象と紐付けられており、その繰返し回
数は20回を示す。A) The composite external event P1 is associated with the two single external events S1 and S2, and the number of repetitions is 20.
【0031】b)単外部事象S1は、10番のI/Oポ
ートへ事象発生時から、5ms間High信号を生成させ
る。B) The single external event S1 causes the 10th I / O port to generate a high signal for 5 ms from the time of occurrence of the event.
【0032】c)単外部事象S2は、10番のI/Oポ
ートへS1の終了時間後(S1のスタート時間+5ms
後)、10ms間Low 信号を生成させる。C) A single external event S2 is sent to the 10th I / O port after the end time of S1 (start time of S1 + 5 ms).
After) Generate a Low signal for 10 ms.
【0033】以上、規則的な波形は入力データをパター
ン化できるので、少しの入力(マンマシン処理)で広域
な波形を生成できるが、不規則な波形は入力データのパ
ターン化が不可能なため入力回数が多くなり、広域な波
形生成には向かず、部分的な生成や修正等に適してい
る。As described above, since a regular waveform can pattern input data, a wide waveform can be generated with a small amount of input (man-machine processing), but an irregular waveform cannot pattern input data. Since the number of inputs is large, it is not suitable for wide-area waveform generation, and is suitable for partial generation and correction.
【0034】最後に、波形入力手段の動作を図11のフ
ローチャートを用いて説明する。Finally, the operation of the waveform input means will be described with reference to the flowchart of FIG.
【0035】先ず、タイミングチャートにて生成させた
い外部事象を確認し(S54)、外部事象情報を入力す
る(S55)。次に、当該にて生成された波形を確認す
る(S56)。この時点で、修正が必要と判断した場合
には再入力、もしくは、マウスでの修正を行なうことに
なる。当該が外部事象として定義され(S58)、シミ
ュレータの起動・動作指示にて主メモリへ読み上げら
れ、I/Oポートへのシミュレーションが実行される。First, the external event to be generated is confirmed in the timing chart (S54), and external event information is input (S55). Next, the waveform generated in this is confirmed (S56). At this point, if it is determined that correction is necessary, re-input or correction with the mouse will be performed. This is defined as an external event (S58), read to the main memory by the simulator start / operation instruction, and the simulation to the I / O port is executed.
【0036】以上、本発明によりタイミングチャートの
作成,修正をホストマシンである電子計算機の画面上
で、より視覚的に、グラフィカルに処理できる。As described above, according to the present invention, the creation and modification of the timing chart can be processed more visually and graphically on the screen of the electronic computer which is the host machine.
【0037】次に、本発明の第二の特徴である波形表示
手段について説明する。Next, the waveform display means which is the second feature of the present invention will be described.
【0038】図12に波形表示手段例を示す。本図にお
いて、59は実行環境構成を示している。60は、シン
グルチップマイコンを示しており、その中に、デバック
対応プログラム62が組み込まれたマイコンのCPU6
3があり、61はシングルマイコンチップを代用するシ
ミュレータである。このことにより、実際のシングルマ
イコンチップなしでも、デバック時にはデバック対応プ
ログラムを用いてシミュレートできる。FIG. 12 shows an example of the waveform display means. In the figure, reference numeral 59 indicates an execution environment configuration. Reference numeral 60 denotes a single-chip microcomputer, in which the CPU 6 of the microcomputer in which the debug compatible program 62 is incorporated.
There are 3 and 61 is a simulator which substitutes a single microcomputer chip. As a result, a debug-compatible program can be used for debugging when debugging without using an actual single microcomputer chip.
【0039】また、本図中段は、シングルチップマイコ
ン60とハードウエア64間の関係を示し、シングルチ
ップマイコン60とハードウエア64間はI/Oポート
P1〜P3がマイコン側の収集情報(入力情報)、P4〜
P6が制御情報(出力情報)端子となっている。本発明
は当該入出力情報をとらえ、ホストマシンである電子計
算機の画面上にリアルタイムに、且つグラフィカルに表
示することで、一目で状況が把握できるデバッグ環境を
実現させた。The middle part of the figure shows the relationship between the single-chip microcomputer 60 and the hardware 64. Between the single-chip microcomputer 60 and the hardware 64, I / O ports P1 to P3 are collected information (input information) on the microcomputer side. ), P4 ~
P6 is a control information (output information) terminal. The present invention realizes a debug environment in which the situation can be grasped at a glance by capturing the input / output information and displaying it graphically in real time on the screen of an electronic computer which is a host machine.
【0040】次に、波形表示手段の動作を図13のフロ
ーチャートを用いて説明する。Next, the operation of the waveform display means will be described with reference to the flowchart of FIG.
【0041】本波形表示手段の動作は当該処理が画面上
に表示されている場合にかぎり行なわれ、当該条件該当
時に本シミュレータがデバッグ対応プログラムの1命令
シミュレートの直後、図13の処理をコールする。該処
理ではシミュレータが内部で発生させる入力用全I/O
ポートの情報を読み込み(S66,S67)、必要な波
形情報を保存する。また、マイコン側が生成する出力用
全I/Oポートの情報を読み込み(S68,S69)、
必要な波形情報を保存する。最後に保存されている各I
/Oポートの入出力情報をタイミングチャートとして画
面に表示する(S70)。The operation of the waveform display means is performed only when the process is displayed on the screen. When the condition is met, the simulator calls the process of FIG. 13 immediately after simulating one instruction of the debug-compatible program. To do. In this processing, all I / O for input generated internally by the simulator
The port information is read (S66, S67) and the necessary waveform information is saved. Also, the information of all output I / O ports generated by the microcomputer is read (S68, S69),
Save the required waveform information. Last saved I
Input / output information of the / O port is displayed on the screen as a timing chart (S70).
【0042】以上の処理をプログラムの1命令をシミュ
レーション(実行)するたびに実行するため、リアルタ
イムな表示が可能となる。また、シミュレーション実行
時に波形表示手段はリアルタイムな表示とともに、該情
報を自動的にファイルに記録しておくので、再表示する
こと(再生表示)も可能となっている。そして、該再生
表示機能にはスクロール機能はもちろんのこと、拡大や
縮小の可能なズーム機能、変化位置の自動検索のできる
トリガー機能等を備えていることは言うまでもない。Since the above processing is executed every time one instruction of the program is simulated (executed), real-time display is possible. Further, since the waveform display means automatically records the information in a file when the simulation is executed, the waveform display means can display the information again (replay display). Needless to say, the reproduction / display function is provided with a scroll function, a zoom function capable of enlarging and reducing, a trigger function capable of automatically searching for a changed position, and the like.
【0043】[0043]
【発明の効果】本発明の波形入力手段により、外部事象
情報定義の設定,編集をホストマシンである電子計算機
の画面上でタイミングチャートとしてグラフィカルに処
理できる事、外部事象情報定義とその確認を同時に、複
雑な計算無しで、より視覚的に判断できる事、また、メ
ニュー選択形式にてコピー,移動,削除,ズームアップ
等の機能を選択できる事で、シミュレーション用の波形
データ作成・修正工数の大幅削減が可能となる。With the waveform input means of the present invention, the setting and editing of the external event information definition can be graphically processed as a timing chart on the screen of the computer which is the host machine, and the external event information definition and its confirmation can be performed at the same time. In addition, it is possible to make more visual judgments without complicated calculations, and select functions such as copy, move, delete, and zoom up in the menu selection format, which greatly increases the number of man-hours required to create and modify waveform data for simulation. Reduction is possible.
【0044】また、マウスにて外部事象定義の微調整も
容易に行なえるため、多種多様なデバッグ条件の設定が
可能となり、デバッグプログラムの品質向上が図れる。Further, since the fine adjustment of the external event definition can be easily performed with the mouse, various debug conditions can be set, and the quality of the debug program can be improved.
【0045】また、波形表示手段により、指定I/Oポ
ートの入出力情報をリアルタイムに表示できる事で、よ
り高品質なデバッグが可能となる。Further, since the input / output information of the designated I / O port can be displayed in real time by the waveform display means, higher quality debugging becomes possible.
【図1】シミュレータ構成図である。FIG. 1 is a simulator configuration diagram.
【図2】実行環境である電子計算機の構成図である。FIG. 2 is a configuration diagram of an electronic computer that is an execution environment.
【図3】事象情報定義ファイルのフォーマットである。FIG. 3 is a format of an event information definition file.
【図4】監視事象と発生させる外部事象の関連図であ
る。FIG. 4 is a diagram showing a relationship between a monitoring event and an external event to be generated.
【図5】単外部事象発生情報とタイミングチャートの関
係図である。FIG. 5 is a relationship diagram of single external event occurrence information and a timing chart.
【図6】波形入力手段(初期値作成例)の図である。FIG. 6 is a diagram of waveform input means (an example of creating initial values).
【図7】外部事象情報入力処理のフローチャートであ
る。FIG. 7 is a flowchart of an external event information input process.
【図8】波形入力手段(マウスでの修正例)の図であ
る。FIG. 8 is a diagram of waveform input means (a modification example with a mouse).
【図9】タイミングチャートと外部事象情報(その1)
の図である。FIG. 9: Timing chart and external event information (1)
FIG.
【図10】タイミングチャートと外部事象情報(その
2)の図である。FIG. 10 is a diagram of a timing chart and external event information (No. 2).
【図11】波形入力手段処理フローチャートである。FIG. 11 is a flowchart of waveform input means processing.
【図12】波形表示手段例の図である。FIG. 12 is a diagram of an example of waveform display means.
【図13】波形表示手段のフローチャートである。FIG. 13 is a flowchart of waveform display means.
1…ディスプレイ、2…キーボード、3…ディスク装
置、4…デバッグ対応プログラム、5…事象情報定義フ
ァイル、6…中央処理装置、7…シミュレータ本体、8
…コマンド制御手段、9…マイコンシミュレータ、10
…波形入力手段、11…波形表示手段、12…シミュレ
ータカーネル、13…外部事象発生開始タイミング監視
手段、14…外部事象発生手段、15…I/Oシミュレ
ータ、16…I/Oポートシミュレータ、17…タイマ
シミュレータ、18…SCIシミュレータ、19…A/
D変換器シミュレータ、20…割込みシミュレータ、2
1…主記憶装置、22…事象情報定義ファイル、23,
48,51…事象情報定義ファイル例、24…外部事象
発生開始タイミング監視処理、25…複合監視事象チェ
ック情報、26…単監視事象チェック情報、27,52
…複合外部事象発生情報、28…単外部事象発生情報、
29…外部事象発生待ち行列、30,32,47,50
…タイミングチャート、31…波形入力処理、33…波
形(コピー元)、34…波形(初期値入力)、35…波形
(コピー先)、42…修正過程タイミングチャート、4
3…修正前エッジ位置、44…修正後エッジ位置、45
…修正前波形、46…修正後波形、49,53…単外部
事象生成情報、53…単外部事象生成情報、59…構
成、60…シングルチップマイコン、61…シミュレー
タ、62…デバッグ対応プログラム、63…CPU、6
4…ハードウエア、65…情報内容(タイミングチャー
ト)例。1 ... Display, 2 ... Keyboard, 3 ... Disk device, 4 ... Debug support program, 5 ... Event information definition file, 6 ... Central processing unit, 7 ... Simulator main body, 8
... Command control means, 9 ... Microcomputer simulator, 10
... Waveform input means, 11 ... Waveform display means, 12 ... Simulator kernel, 13 ... External event occurrence start timing monitoring means, 14 ... External event occurrence means, 15 ... I / O simulator, 16 ... I / O port simulator, 17 ... Timer simulator, 18 ... SCI simulator, 19 ... A /
D converter simulator, 20 ... Interrupt simulator, 2
1 ... Main storage device, 22 ... Event information definition file, 23,
48, 51 ... Event information definition file example, 24 ... External event occurrence start timing monitoring process, 25 ... Composite monitoring event check information, 26 ... Single monitoring event check information, 27, 52
... Composite external event occurrence information, 28 ... Single external event occurrence information,
29 ... External event occurrence queue, 30, 32, 47, 50
... Timing chart, 31 ... Waveform input processing, 33 ... Waveform (copy source), 34 ... Waveform (initial value input), 35 ... Waveform (copy destination), 42 ... Correction process timing chart, 4
3 ... Edge position before correction, 44 ... Edge position after correction, 45
Waveforms before correction, 46 ... Waveforms after correction, 49, 53 ... Single external event generation information, 53 ... Single external event generation information, 59 ... Configuration, 60 ... Single chip microcomputer, 61 ... Simulator, 62 ... Debug support program, 63 … CPU, 6
4 ... Hardware, 65 ... Information content (timing chart) example.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 塩入 喜敬 茨城県日立市幸町三丁目2番1号 日立エ ンジニアリング株式会社内 (72)発明者 中里 敏行 茨城県日立市幸町三丁目2番1号 日立エ ンジニアリング株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yoshitaka Shioiri 3-2-1, Saiwaicho, Hitachi City, Ibaraki Prefecture Hitachi Engineering Co., Ltd. (72) Inventor Toshiyuki Nakazato 2-chome, Saiwaicho, Hitachi City, Ibaraki No. 1 within Hitachi Engineering Co., Ltd.
Claims (3)
のシミュレータ本体とデバッグ対象プログラムとシング
ルチップマイコンのI/Oポートに供給する外部事象情
報をデータファイルとしてメモリ上に読み込み、これら
のデータに基づいて、電子計算機内で、ターゲットシン
グルチップマイコンにおけるデバッグ対象プログラムの
動作をシミュレーションするシミュレーション方式であ
り、さらに、前記シングルチップマイコンのI/Oポー
トに供給する外部事象の生成を開始するタイミングと当
該外部事象の信号を前記シミュレータとは独立したプロ
グラム形式とし、且つ、論理式にて前記外部事象情報フ
ァイルへ定義できるシミュレーション方式において、 前記外部事象情報の定義をグラフィカルに行なうことが
出来るウインドウ画面を具備した編集手段を設けたこと
を特徴とするシングルチップマイコンシミュレータ。1. A simulator main body of a target single-chip microcomputer, a program to be debugged, and external event information to be supplied to an I / O port of the single-chip microcomputer is read as a data file on a memory, and based on these data, electronic data is read. This is a simulation method for simulating the operation of the debug target program in the target single-chip microcomputer in the computer, and the timing of starting the generation of the external event to be supplied to the I / O port of the single-chip microcomputer and the signal of the external event. In a program format independent of the simulator, and in a simulation method in which the external event information file can be defined by a logical expression, a window image in which the external event information can be defined graphically A single-chip microcomputer simulator characterized by having an editing means having a surface.
らに、前記シングルチップマイコンの指定I/Oポート
を監視する機能を設け、該I/Oポートへの入出力信号
をリアルタイムに表示出来るウインドウ画面を具備した
表示手段を設けたことを特徴とするシングルチップマイ
コンシミュレータ。2. The simulator according to claim 1, further comprising a function of monitoring a designated I / O port of the single-chip microcomputer, and displaying a window screen capable of displaying an input / output signal to the I / O port in real time. A single-chip microcomputer simulator, which is provided with a display means provided.
ィスプレイ及びキーボードを有する電子計算機から構成
され、ターゲットとなるシングルチップマイコン制御用
プログラムをデバッグするシングルチップマイコンのシ
ミュレーションを行なうシングルチップマイコンのシミ
ュレータにおいて、前記処理装置は、前記ターゲットシ
ングルチップマイコンのシミュレーションを実行するマ
イコンシミュレータ機能と、前記ターゲットシングルチ
ップマイコンのI/OをシミュレーションするI/Oシ
ミュレータ機能と、割込処理をシミュレーションする割
込シミュレータと、前記シングルチップマイコンのI/
Oポートに供給する外部事象の生成を開始するタイミン
グと当該外部事象の信号を前記シミュレータとは独立し
たプログラム形式とし、且つ、論理式にて前記外部事象
情報ファイルへ定義できる機能と、前記外部事象情報の
生成をグラフィックイメージで容易に行なうことが出来
るウインドウ画面を具備した編集手段と、前記シングル
チップマイコンの指定I/Oポートへの入出力信号をリ
アルタイムに表示出来るウインドウ画面を具備した表示
手段を設けたことを特徴とするシングルチップマイコン
シミュレータ。3. A simulator for a single-chip microcomputer, which comprises a processing unit, a main memory unit, a disk unit, an electronic computer having a display and a keyboard, and which simulates a single-chip microcomputer for debugging a target single-chip microcomputer control program. In the processing device, the processing device includes a microcomputer simulator function for simulating the target single-chip microcomputer, an I / O simulator function for simulating I / O of the target single-chip microcomputer, and an interrupt simulator for simulating interrupt processing. And I / of the single chip microcomputer
The function of defining the timing of starting the generation of an external event to be supplied to the O port and the signal of the external event in a program format independent of the simulator, and defining it in the external event information file by a logical expression, and the external event. An editing means having a window screen capable of easily generating information with a graphic image and a display means having a window screen capable of displaying an input / output signal to a designated I / O port of the single chip microcomputer in real time are provided. A single-chip microcomputer simulator characterized by being provided.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4221210A JPH0667931A (en) | 1992-08-20 | 1992-08-20 | Single-chip microcomputer simulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4221210A JPH0667931A (en) | 1992-08-20 | 1992-08-20 | Single-chip microcomputer simulator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0667931A true JPH0667931A (en) | 1994-03-11 |
Family
ID=16763193
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4221210A Pending JPH0667931A (en) | 1992-08-20 | 1992-08-20 | Single-chip microcomputer simulator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0667931A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8250545B2 (en) | 2002-06-25 | 2012-08-21 | Fujitsu Semiconductor Limited | Associated apparatus and method for supporting development of semiconductor device |
| US8386228B2 (en) | 2007-02-15 | 2013-02-26 | Fujitsu Ten Limited | Microcomputer simulator |
-
1992
- 1992-08-20 JP JP4221210A patent/JPH0667931A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8250545B2 (en) | 2002-06-25 | 2012-08-21 | Fujitsu Semiconductor Limited | Associated apparatus and method for supporting development of semiconductor device |
| US8386228B2 (en) | 2007-02-15 | 2013-02-26 | Fujitsu Ten Limited | Microcomputer simulator |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5615356A (en) | Method and apparatus for interactively displaying signal information during computer simulation of an electrical circuit | |
| JPH02232152A (en) | Production system simulator forming device | |
| Zettlemoyer et al. | IBOTS: Agent control through the user interface | |
| WO1988007719A3 (en) | Apparatus for iconographically representing and executing a program | |
| JPH0667931A (en) | Single-chip microcomputer simulator | |
| JPH07168709A (en) | Method and device for simulating program generator utilization specification | |
| JPH02275539A (en) | Debugging system | |
| JPH08263130A (en) | Simulation method | |
| JP2619487B2 (en) | File operation method | |
| JP2003140714A (en) | Graphic language program preparing program and its device | |
| JP2000132295A (en) | GUI operation specification description device, GUI control device, and GUI system | |
| JPH01191269A (en) | Image controller | |
| JPH06124288A (en) | Simulation device based on petrinet | |
| JPH09237204A (en) | Programmable controller debug system and method thereof | |
| JPH052477A (en) | Graphical user interface creation method | |
| JPS62204328A (en) | Man-machine interface control system | |
| JPH05289901A (en) | Method and device for simulating single chip microcomputer | |
| JP2855835B2 (en) | Simulation device based on Petri net | |
| JP2689701B2 (en) | Robot offline teaching device | |
| JPH05266120A (en) | Design assisting device with simulation function | |
| JPH03116275A (en) | Test pattern production method and its processing system | |
| Baeg et al. | A development strategy of user navigation systems and GUI applications | |
| JPH0367370A (en) | Interactive circuit simulation device | |
| JPH04113424A (en) | Simple program test system | |
| JPH04233605A (en) | Robot language editor |