JPS60164849A - Program debugging system - Google Patents

Program debugging system

Info

Publication number
JPS60164849A
JPS60164849A JP59018360A JP1836084A JPS60164849A JP S60164849 A JPS60164849 A JP S60164849A JP 59018360 A JP59018360 A JP 59018360A JP 1836084 A JP1836084 A JP 1836084A JP S60164849 A JPS60164849 A JP S60164849A
Authority
JP
Japan
Prior art keywords
processor
memory
program
interrupt
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP59018360A
Other languages
Japanese (ja)
Inventor
Toshihiro Maruyama
智弘 丸山
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
Fuji Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd, Fuji Facom Corp, Fuji Electric Manufacturing Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP59018360A priority Critical patent/JPS60164849A/en
Publication of JPS60164849A publication Critical patent/JPS60164849A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To debug programs by providing an interrupt generating means which interrupts a processor and preparing a debugging program in the processor. CONSTITUTION:A stop command is sritten from a host computer into a start/ stop register 15 in an interrupt controller 8 through a communication controller 2. Then, a microprocessor 6 is stopped through an OR gate 13 by interrupt, and the address of an instruction step to be traced in set to a memory 7, and the address of an instruction to be executed is set to a register 11. Thereafter, when a start interrupt is transmitted to the processor 6, an address is put on a bus 10 for the purpose of fetching an instruction into the memory 7 after execution of one instruction, and coincidence between this address and the address in the register 11 is detected by a comparator 12 and is sent as an interrupt signal to the processor 6 through an AND gate 14 and the OR gate 13, and the processor 6 is stopped to trace every one instruction.

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 水元明社、通信制御装置を介してホスト計算機と通信す
るマイクルプロセッサ応用装置(コントローラ)におけ
るプロセッサ用メモリのプログラムデバッグ方式に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical field to which the invention pertains] Mizumoto Meisha, relates to a program debugging method for a processor memory in a microprocessor application device (controller) that communicates with a host computer via a communication control device.

近年マイクロプロセッサおよびその周辺デバイスの高機
能化、低価格化により、マイクロプロセッサとそのソフ
トウェアは単なる部品として、様々な装置にくみ込まれ
(ハードウェアのおきかえを行なうソフトウェア唸ファ
ームウェアと呼ばれる)コントローラとして使用される
ことが多くなってきた。この様な使い方食する場合、従
来の1=コレビ二−タ表と4場合と異なり、マイクロプ
ロセッサには、特にコンソール装置は用意しないのが普
通であるから、コンソール装置を用いてのプログラムデ
バッグなどは出来表い。
In recent years, as microprocessors and their peripheral devices have become more sophisticated and their prices have fallen, microprocessors and their software are incorporated into various devices as simple components (called firmware or software that replaces hardware) and are used as controllers. This is becoming more and more common. When using this method, unlike the conventional 1 = collector table and 4 cases, the microprocessor does not usually have a console device, so it is necessary to debug programs using the console device. is the finished table.

又最近の制御技術は、分散形制御が主流となっており、
四−カルウェイ、データウェイと呼ばれ9− る伝送ライン□により制御装置(コントローラ)をホス
ト計算機と結合する例が多い。本分野では、機能の階層
化とコントローラ負荷の軽減という目的からコントロー
ラとホスト計算機との通信のためには、通信制御装置(
サブプロセッサ)を使用するのが一般的となっている。
In addition, recent control technology is dominated by distributed control.
In many cases, a control device (controller) is connected to a host computer by a transmission line called a four-calway or a dataway. In this field, communication control devices (
It is common to use subprocessors.

本発明は、このように通信制御装置を介してホスト計算
機と通信するコントローラなどにおけるプロセッサ用メ
モリのプログラムデパック方式に関するものである。
The present invention relates to a program depacking method for a processor memory in a controller or the like that communicates with a host computer via a communication control device.

〔従来技術とその問題点〕[Prior art and its problems]

第1図は、本発明の適用の対象となる分散形制御方式の
一例を示l−たブロック図である。同図において1はホ
スト計算機、2は通信制御装置、6はコントローラ、4
は制御対象プロセス、5は伝送ライン、Dはディスプレ
イ、Kはキーボードである。
FIG. 1 is a block diagram showing an example of a distributed control system to which the present invention is applied. In the figure, 1 is a host computer, 2 is a communication control device, 6 is a controller, and 4
is a controlled process, 5 is a transmission line, D is a display, and K is a keyboard.

通信制御装置2には比較的機能の低いマイクロプロセッ
サ(サブプロセッサ)を使用し、コントローラ6には高
機能のマイクロプロセッサを使用している。
The communication control device 2 uses a relatively low-function microprocessor (subprocessor), and the controller 6 uses a high-performance microprocessor.

本例では、通信制御装置2にマイクロプロセッサを使用
した例について説明しているが、後述の通信機能を満足
するものであれば、特にプロセッサを使用する必要がな
い事はいうまでもない。また通信制御装置2から通信機
能を分離したケースでは、装置2はきわめて簡単な制御
をくり返し行なうのみであるので、プロセッサを用いた
としてもそのソフトウェアの作成は容易である。
In this example, an example in which a microprocessor is used in the communication control device 2 is explained, but it goes without saying that there is no need to use a processor as long as the device satisfies the communication functions described below. Furthermore, in the case where the communication function is separated from the communication control device 2, since the device 2 only repeatedly performs extremely simple control, it is easy to create the software even if a processor is used.

さて第1図において、各コントローラ3には、はじめに
、ホスト計算機1から通信制御装置2、伝送ライン5、
通信制御装置2等を介してコントルールのためのデータ
とプログラムが初期格納され、後にホスト計算機1から
のスタート指示によりコントローラ6は動作を開始する
。コントローラ3が対象プロセス4を制御した結果得ら
れたデータはまたコントローラ3から通信制御装置2を
介してホスト計算機1へ送られる。
Now, in FIG. 1, each controller 3 includes, first, a host computer 1, a communication control device 2, a transmission line 5,
Data and programs for control are initially stored via the communication control device 2 and the like, and later, the controller 6 starts operating in response to a start instruction from the host computer 1. Data obtained as a result of the controller 3 controlling the target process 4 is also sent from the controller 3 to the host computer 1 via the communication control device 2 .

さて、従来この種のコントμmうのファームウェアまた
はソフトウェア開発時におけるプ四グラムデバッグは、
該コント四−ラのマイクロプロセッサ専用に開発された
外部付加形のデバッグツールを用いるか、あるいは、ホ
スト計算機上でソフトウェアにより実現されたマイク四
プロセッサシミュレータを用いることにより行表っでい
た。このため従来は多くの時間と費用をかけてこれらツ
ールの開発が行まわれていた。
Now, conventionally, programmatic debugging during firmware or software development using this type of control is as follows:
This has been accomplished either by using external debugging tools developed specifically for the controller's microprocessor, or by using a microprocessor simulator implemented by software on the host computer. For this reason, development of these tools has conventionally taken a lot of time and money.

さらに外部付加形のデバッガ(デバッグツール)を用い
て、デバッグ対象の′fqプログラム憶するメモリ上で
デバッグを行なうためには、プロセッサを構成するカー
ド上からマイクルプロセッサチップをとりはずし、その
後にデバッガを取り付けることが必要なため、製品とし
てのコントローラに、デバッガ取付用のソケットを設け
なければならず、するとソケットの性質上、信頼性1価
格の面で問題が発生した。
Furthermore, in order to debug the memory that stores the 'fq program to be debugged using an external debugger (debug tool), remove the microprocessor chip from the card that makes up the processor, and then install the debugger. Therefore, the controller as a product had to be provided with a socket for mounting the debugger, which caused problems in terms of reliability and price due to the nature of the socket.

またホスト計算機上でのソフトウェアによるシュZレー
ションの場合には、ハードウェア部分の手続き、設定デ
ータの準備等が必被で、そのためデバッグ作業はきわめ
て能率の悪いものとならざ 6− るを得なかった。
Furthermore, in the case of simulation using software on a host computer, procedures for the hardware part, preparation of setting data, etc. are required, which inevitably makes debugging extremely inefficient. Ta.

ラグツールに共通する問題 としては、デバッグの対象とするマイク日プロセッサ毎
にツールまたは、テーブルを作成する必要があり、効率
が悪くコスト高になる点があげられる。
A common problem with lag tools is that a tool or table must be created for each microprocessor to be debugged, resulting in inefficiency and high cost.

〔発明の目的〕[Purpose of the invention]

本発明は、上述のような従来技術の欠点、問題点を除去
するためになiれたものであり、従って本発明の目的は
、専用のツールを要せず、またデバッガ取付用のソケー
1も不要であり、しかも能率良くコスト低摩に実施でき
るプロセッサ用メ硲りのプログラムデパック方式を提供
するととkある。 ゛ 〔発明の要点〕 □ ・ 本発明の要点は、通信制御装置を介してホスト計算機と
通信するマイクルプロセッサ応用装置におけるプロセッ
サ用メモリのプログラムデバッグ方式において、通信制
御装置を芥し元ホスト針算機からの指令によって前記プ
ロセッサに割込をか6− ける割込発生手段を設けると共に、該割込によってプロ
セッサの内容を前記メモリに移して記憶させ、または前
記メモリの内容をプロセッサ内に戻す動作を実現するデ
バッグ用プログラムを該プロセッサに用意し、ホスト計
算機から通信制御装置を介して前記プロセッサ用メモリ
にデバッグ対象の制御プログラムを書き込んだ後、前記
割込発生手段によって割込をかけてプロセッサをスター
ト、ストップさせ、前記デバッグ用プログラムを実行し
、ホスト計算機から通信制御装置を介して前記メモリを
読取ることにより、プログラムデバッグを行なうように
した点にある。
The present invention has been made in order to eliminate the drawbacks and problems of the prior art as described above, and an object of the present invention is to eliminate the need for a special tool and to provide a socket for mounting a debugger. It is an object of the present invention to provide a program depacking method for a processor that does not require any additional processing and can be implemented efficiently and at low cost. [Summary of the Invention] □ The main point of the present invention is that in a program debugging method for a processor memory in a microprocessor application device that communicates with a host computer via a communication control device, the communication control device is discarded and the original host computer is Interrupt generation means is provided for interrupting the processor in response to a command from the processor, and the interrupt generates an operation for moving the contents of the processor to the memory to be stored therein or returning the contents of the memory to the processor. After preparing a debugging program to be realized in the processor and writing the control program to be debugged from the host computer to the processor memory via the communication control device, the processor is started by generating an interrupt by the interrupt generating means. , the debugging program is executed, and the program is debugged by reading the memory from the host computer via the communication control device.

〔発明の実施例〕[Embodiments of the invention]

次に図を参照して本発明の詳細な説明する。 The present invention will now be described in detail with reference to the drawings.

第2図は、本発明の実施に必要なコントローラ3内の内
部構成例を示すブロック図である。同図において、第1
図におけるのと同じものに社同じ符号を付しである。そ
のほか、6はマイクロプロセッサ、7はデバッグ対象の
グーダラムを記憶するメモリ、8はプロセッサ6に対し
て割込をかけることのできる割込コントローラ、9はプ
ロセスインターフェース、10はバス、である。
FIG. 2 is a block diagram showing an example of the internal configuration within the controller 3 necessary for implementing the present invention. In the same figure, the first
Components that are the same as those in the figure are designated by the same reference numerals. In addition, numeral 6 is a microprocessor, 7 is a memory for storing the Goodaram to be debugged, 8 is an interrupt controller capable of issuing an interrupt to the processor 6, 9 is a process interface, and 10 is a bus.

ここで通信制御装置2は、ホスト計算機からの指令を受
けて、マイクロプロセッサ60メモリ7に対するリード
/ライトの実行が可能であり、また割込コントローラ8
を介してマイクロプロセッサ6への割込発信、マイクロ
プロセッサ6のリセットを行なうことが可能であり、換
言すれば通信制御装置は、かかる通信機能をもつことが
必要である。
The communication control device 2 is capable of reading/writing the microprocessor 60 and the memory 7 upon receiving instructions from the host computer, and is also capable of reading/writing the microprocessor 60 and the memory 7.
It is possible to issue an interrupt to the microprocessor 6 and reset the microprocessor 6 via the communication control device.In other words, it is necessary for the communication control device to have such a communication function.

メモリ7に記憶されたプロセッサ用プログラムのデバッ
グを行表5のに必要充分な基本機能を挙げれば次の如く
である。
The basic functions necessary and sufficient for debugging the processor program stored in the memory 7 are as follows.

(1) メモリ7の内容のリード/ライトが可能である
こと、 (2)メモリ7の内容を外部媒体にセーブしたり或いは
その逆に四−ドすること、 (3) マイクロプロセッサ乙のスタート/ストップ/
リセットが可能であること、 (4)マイクロプロセッサ6の内容(内部4レジメタに
おける記憶内容)のリード/変更が可能であること、 (5)マイクロプロセッサ6の実行する命令ステップの
トレース機能があること、 (6)イベントトリガ機能(必要に応じて外部からマイ
クロプロセッサ6に対して割込発信を可能とする機能) すなわち上記(1)〜(6)の機能を実現できるもので
あればデバッガとしては通常十分であると云える。
(1) It is possible to read/write the contents of the memory 7, (2) It is possible to save the contents of the memory 7 to an external medium or vice versa, and (3) it is possible to start/write the contents of the microprocessor B. stop/
(4) It is possible to read/change the contents of the microprocessor 6 (memory contents in the internal four registers); (5) There is a trace function for instruction steps executed by the microprocessor 6. , (6) Event trigger function (a function that allows interrupts to be sent from the outside to the microprocessor 6 if necessary) In other words, any device that can realize the functions (1) to (6) above can be used as a debugger. It can be said that this is usually sufficient.

そこでデバッガとして特別に外部から装置を付加するこ
となしに、上記各機能をホスト計算機からの指令によっ
て実現するようにしたものが本発明である。以下、順次
説明する。・ (1) メモリ7のリード/ライト ホスト計算機1から通信制御装置2に対して、指令を出
せば、通信制御装置2がこれを実行することで実現でき
る。これ線通信制御装置2としてもつべき基本機能の一
つであることは先にも述べた。 ・ (2)メモリ7の内容に関する外部媒体との間の9− 一−ド/セーブ 上記(1)の機能を用いて、通信制御装置2を介してメ
モリ7の内容をホスト計算機キのメモリに読取り、これ
を外部媒体たとえばディスク、MT(磁気テープ)等ヘ
セープする。また逆に外部データをホスト計算機−Fの
メモリにロードした後、これを通信制御装置2経由でメ
モリ7に2イトする事で実現できる。
Therefore, the present invention realizes each of the above functions by commands from a host computer without adding a special external device as a debugger. The explanation will be given below. - (1) Reading/writing the memory 7 This can be achieved by issuing a command from the host computer 1 to the communication control device 2 and having the communication control device 2 execute the command. As mentioned above, this is one of the basic functions that the line communication control device 2 should have. - (2) Transfer/save the contents of the memory 7 to an external medium using the function (1) above to transfer the contents of the memory 7 to the memory of the host computer key via the communication control device 2. The data is read and saved on an external medium such as a disk or MT (magnetic tape). Conversely, this can be realized by loading external data into the memory of the host computer-F and then writing it into the memory 7 via the communication control device 2.

(3) マイクロプロセッサ6のスタート/ストップ/
リセット これは諮2図の割込コントローラ8の中にレジスタを用
意し、該レジスタにホスト計算機からの指令により通信
制御装置2が特率のデータを書き込む事により、該コン
トルーラ8を介してマイクロプロセッサ6に対すや割込
が発生する。
(3) Start/stop/start microprocessor 6
Reset This is done by preparing a register in the interrupt controller 8 shown in Figure 2, and by having the communication control device 2 write special data into the register according to a command from the host computer, and then transmitting the data to the microprocessor via the controller 8. 6, an interrupt occurs.

この種の割込は、プロセッサ6のノンマスカブル割込端
子を使用すればきわめて簡単に実現でき、マイクロプロ
セッサ6、は本割込を受けてそのスタート、ストップ処
理を行なえばよい。本機能もこの種の装置では、基本的
に用意されているのが普10− 通である。リセット機能も同じ様に実現できる。
This type of interrupt can be implemented very easily by using the non-maskable interrupt terminal of the processor 6, and the microprocessor 6 only needs to perform start and stop processing upon receiving this interrupt. This function is also generally provided in this type of device. A reset function can also be realized in the same way.

(4)マイクロプロセッサ6の内容(内部レジスタ)の
り−ド/変更 本機能は、上記(3)で説明しfc様に、通信制御装置
2から割込コント四−ラ8を介してストッシ割込信号を
受信したとき、マイクロプロセッサ6は自身のレジスタ
内容をすべてメモリ7にセーブする。またスタート信号
受信時には、メモリ7の内容を自身のレジスタに復元す
るきわめて簡単なプログラムをマイクロプロセッサ6が
もつことにより可能とな慝。
(4) Register/change the contents (internal register) of the microprocessor 6 This function is explained in (3) above. Upon receiving the signal, microprocessor 6 saves all its register contents in memory 7. This is also possible because the microprocessor 6 has an extremely simple program that restores the contents of the memory 7 to its own registers when receiving the start signal.

ホスト計算機1は、通信制御装置2ヘストツプ指令を出
した後、マイクロプロセッサ6のストップを確認して、
メモリ7ヘセーブされたマイクロプロセッサ6の内容を
通信制御装置2経由でリードしたり、或いは夜更したり
することにより実現できる。したがって本発明を実現す
るためにプロセッサ6Fc特別に用意すゐプログラムと
しては、上述の簡単なプログラムだけでよく、これはき
わめて簡単なことで問題はない。
After issuing a stop command to the communication control device 2, the host computer 1 confirms that the microprocessor 6 has stopped.
This can be accomplished by reading the contents of the microprocessor 6 saved in the memory 7 via the communication control device 2, or by staying up late. Therefore, the program specially prepared for the processor 6Fc in order to implement the present invention is only the above-mentioned simple program, which is extremely simple and poses no problem.

(5)マイクープ關セッサ命令ステップのトレース機能 これは、たとえば第2図の割込コン)o−ラ8の回路を
第5図に示す如ぐ構成することで実現する。
(5) Trace function of mycoup processor instruction step This can be realized, for example, by configuring the interrupt controller 8 shown in FIG. 2 as shown in FIG.

以下、第3図を参照して説明する。同図において8は割
込コントローラ、10はバス、11はレジスタ、12は
コンパレータ、13はORゲート、14はANDゲート
、15はスタート/ストップ・レジスタ、Tlはイベン
トトリガ入力端子、T2は条件信号入力端子、である。
This will be explained below with reference to FIG. In the figure, 8 is an interrupt controller, 10 is a bus, 11 is a register, 12 is a comparator, 13 is an OR gate, 14 is an AND gate, 15 is a start/stop register, Tl is an event trigger input terminal, and T2 is a condition signal. It is an input terminal.

第3図において、ホスト計算機1から通信制御装置2経
由で割込コントローラ8におけるスタート/ストップ・
レジスタ(以下、略してSSレジスタと云う)15にス
トップ指令を書き込み、これによりORゲート13を介
してマイクロプロセッサ6に割込をかけてマイクロプロ
セッサ6をストップさせ、トレースしたい命令ステップ
のアドレスをメモリ7内のPC(プログラムカウンタ)
にセットし、次に貴行すべぎ命令(トレースし九い命令
)のアドレスをレジスタ11にセットした後、マイク日
プロセッサ6に対して通信制御装置2、割込コントロー
ラ8におけるSSレジスタ15、ORゲート13経由で
スタート割込を発信すれば、マイクロプロセッサ6は、
1命令実行後、該プロセッサ6がメモリ7に命令取出し
のためにバス10を介して送るアドレスとレジスタ11
にセットされたアドレスとの一致がコンパレータ12に
おいて検出され、その一致出力が、そのとき開状態にあ
るANDゲート14を経てORゲート13から割込信号
としてマイクロプロセッサ6へ送出されるので、マイク
ロプロセッサ6はストップする。
In FIG. 3, start/stop information is transmitted from the host computer 1 via the communication control device 2 to the interrupt controller 8.
A stop command is written in the register (hereinafter referred to as SS register) 15, which interrupts the microprocessor 6 via the OR gate 13 to stop the microprocessor 6, and stores the address of the instruction step to be traced in the memory. PC in 7 (program counter)
, and then set the address of the next instruction (trace instruction) in the register 11. Then, the communication control device 2, the SS register 15 in the interrupt controller 8, and the OR gate are sent to the microphone processor 6. If a start interrupt is sent via 13, the microprocessor 6 will
After executing one instruction, the processor 6 sends the address and register 11 to the memory 7 via the bus 10 for fetching the instruction.
A match with the address set in is detected in the comparator 12, and the match output is sent to the microprocessor 6 as an interrupt signal from the OR gate 13 via the AND gate 14, which is open at that time. 6 stops.

次にホスト計算機1は、再びメモリ7にセーブされたP
C(次の命令をさしてい、11)の内容をレジスタ11
にセットする事により、1命令ごとのトレースが可能と
まる。
Next, the host computer 1 saves the P stored in the memory 7 again.
The contents of C (pointing to the next instruction, 11) are transferred to register 11.
By setting this, tracing for each instruction becomes possible.

(6) イベントトリガ機能 本機能は、九とえば図示せざる別のハードウェアがある
状態変化を発生し讐マイクロプロセッサ6に割込をかけ
る信号を4ベントトリガ入力端子−4罵− 7重から出力した時、マイクロプロセッサ6がこれをO
Rゲート13経由で受けてストップ処理を行なうように
すれば簡単に実現できる。
(6) Event trigger function This function outputs a signal that generates a state change from another hardware (not shown) and interrupts the microprocessor 6 from the 4 event trigger input terminals 4 and 7. When the microprocessor 6
This can be easily achieved by receiving the signal via the R gate 13 and performing the stop processing.

すなわち、以上、詳しく説明したように、きわめて簡単
なハードウェアを追加し、マイクロプロセッサ6内にき
わめて簡単なプログラム(スタート/ストップ処理用)
を用意するのみでプ四セッサ用プ四グラムのすべてのデ
バッグが行なえる。
That is, as explained in detail above, extremely simple hardware is added and an extremely simple program (for start/stop processing) is installed in the microprocessor 6.
All debugging of the program for processors can be done just by preparing the program.

このような例では、ホスト計算機1は、高速のi / 
o装置をはじめから用意しているのが普通であり、これ
らのI10装置を奄使用するユーティリティも準備され
ている。
In such an example, the host computer 1 uses high-speed i/
Normally, the I10 devices are prepared from the beginning, and utilities for using these I10 devices are also prepared.

デバッグのためのプログラムもホスト計算−で作成でき
る上にオペレータがわかりやすい形で110装置に、出
力する事は、単なるデータのコード変換処理によって出
来ることであり、高級言語(たとえばフォートラy等)
で処理できるからきわめて簡単であゐ。
Programs for debugging can be created using host computing, and output to the 110 device in a format that is easy for the operator to understand can be done by simply converting data into code, and using a high-level language (for example, ForTry, etc.).
It's extremely easy because you can process it with .

ま九伝送線を使うことにより計算機とターゲット(デバ
ッグ対象のメ毫り)との間の伝送時間が14− 必要になるが、これは通常長くても数10m5程度で十
分に可能であるからオペレータに待時間を感じさせる事
はない。又最近はマイクロプロセッサのソフトウェア開
発に第4図に示す如きTSS(タイムシェアリングシス
テム)が使用される場合が多くなってきているが本発明
によるデバッグ方式は、基本的にデータ交換ですむ点と
1台のホスト計算機が共通に使用できる事からTSS適
用に都合の良い構成となっている。
By using a transmission line, the transmission time between the computer and the target (the message to be debugged) will be 14-14mm, but this is normally only a few tens of meters at most, so it is sufficient for the operator to You won't feel any waiting time. Also, recently, TSS (time sharing system) as shown in Fig. 4 has been increasingly used in microprocessor software development, but the debugging method according to the present invention basically requires only data exchange. The configuration is convenient for applying TSS because one host computer can be used in common.

表お、第4図において、コントローラ3は、ターゲット
(デバッグ対象のプログラムを記憶するメモリ)を含む
ものであり、20はタイムシェアリングシステム(TS
S)端末を示す。
In the table and FIG. 4, the controller 3 includes a target (memory that stores a program to be debugged), and the reference numeral 20 indicates a time sharing system (TS).
S) Indicates the terminal.

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

本発明によれば、きわめて簡単な回路とわずかなプログ
ラムを用意するのみでマイクロプロセッサ用プログラム
のデバッグが実現でき、しかもターゲットとなるプロセ
ッサ用プ四グラムの種類に依存しないという利点がある
According to the present invention, it is possible to debug a microprocessor program by preparing an extremely simple circuit and a small number of programs, and there is an advantage that it does not depend on the type of the target processor program.

専用のデバッグ等を用いた従来技術による場合には、プ
ロセッサが取り外せないとデバッグ不可能であったり、
プロセッサが現場設置されていて取り外せ表いためデバ
ッガが使用できないといった問題があったが、本発明に
よればこのような問題が解決される。
With conventional technology that uses dedicated debugging, debugging is not possible unless the processor is removed, or
There has been a problem that a debugger cannot be used because the processor is installed on-site and cannot be removed, but the present invention solves this problem.

本発明によれば、ホスト計算機の豊富なi / 。According to the present invention, the host computer has abundant i/.

がそのまま利用できる事から0済性の点からみてもすぐ
れたものである。さらにホスト計算機でソフトウェアの
クロス開発(アセンブル、(コンパイル)、ローダ)を
行なえるようなケースでは、ソースリスト上のシンボル
によりマイクロプルセッサ内プログラムのシンボリック
デバッグが可能となる。又TSS機能を使用すれば1台
の計算機で複数のオペレータが多重にデバッグを進める
事が可能となり、さらに経済性のすぐれたものとなる。
It is also excellent from the point of view of ease of use, as it can be used as is. Furthermore, in cases where cross-development of software (assembling, (compilation), loader) can be performed on the host computer, symbolic debugging of the program in the microprocessor becomes possible using symbols on the source list. Furthermore, if the TSS function is used, multiple operators can perform multiple debugging operations using one computer, making it even more economical.

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

第1図は本発明の適用の対象となる分散形制御方式の一
例を示すブロック図、第2図は本発明の実施に必要なコ
ントμmう3内の内部構成例を示すブロック図、第6図
は第2図における割込;ントローラ8の詳細を示すブロ
ック図、第4図は本発明の適用に適したタイムシェアリ
ングシステム(TSS)を示すブロック図、である。 符号説明 1・・・・・・ホスト計算機、2・・間通信制御装置、
3・・・・・・コントローラ、4・・・・・・制御1対
象7’t−セス、5・・・・・・伝送ライン、6・・間
マイクI:l 7’ ロセッサ、7・・・・・・メモリ
、8・叩・割込コントローラ、9・曲・プローkxイン
タフェース、10・・・・・・パス、11・曲・レジス
タ、12・曲・コンパレータ、13・・−ORゲート、
14・・曲ANDゲート、15・四・スタート/ストッ
プ・レジスタ、20・・・・・・TSS端末代瑞人 弁
理士 並 木 昭 夫 代理人弁理士松 崎 清 Xト 驚も 1に31 0 第4図
FIG. 1 is a block diagram showing an example of a distributed control system to which the present invention is applied, FIG. 4 is a block diagram showing details of the interrupt controller 8 in FIG. 2, and FIG. 4 is a block diagram showing a time sharing system (TSS) suitable for application of the present invention. Code explanation 1...Host computer, 2...Communication control device,
3... Controller, 4... Control 1 object 7't-cess, 5... Transmission line, 6... Microphone I:l 7' Processor, 7... ...Memory, 8. Hit/interrupt controller, 9. Song/pro kx interface, 10... Pass, 11. Song/register, 12. Song/comparator, 13...-OR gate,
14... Song AND gate, 15. 4. Start/stop register, 20... TSS terminal representative Mizuhito Patent attorney Akio Namiki Patent attorney Kiyoshi Matsuzaki Figure 4

Claims (1)

【特許請求の範囲】 1)通信制御装置を介してホスト計算機と通信すゐiイ
クpプ四セッサ応用装置におけるブーセッサ用メモリの
プログラムデバッグ方式において、通信制御装置を介し
たホスト計算機からの指令によって前記プロセッサに割
込をかける割込発生手段を設けると共に、該割込によっ
てプロセッサの内容を前記メモリに移して記憶させ、ま
た鯰前記メモリの内容をプロセッサ内に戻す動作管実現
すゐデバッグ用プ四グラムを諌プpセッサに用意し、ホ
スト計算機から通信制御装置を介して前記プロセッサ用
メモリにデバッグ対象の制御プログラムを書き込んだ後
、前記割込発生手段によって割込をかけてプロセッサを
スタート、ストップさせ、前記デバッグ用プログラムを
実行し、ホスト計算機から通信制御装置を介して前記メ
モリを読取るととにより、プログラムデバッグを行なう
ことを1− 特徴とするプログラムデバッグ方式。
[Scope of Claims] 1) In a program debugging method for a processor memory in a processor application device that communicates with a host computer via a communication control device, according to a command from the host computer via the communication control device. A debugging program is provided that provides an interrupt generating means for interrupting the processor, and also realizes an operation tube for moving the contents of the processor to the memory and storing it in response to the interrupt, and returning the contents of the memory to the processor. After preparing a four-gram program in a processor and writing a control program to be debugged from a host computer to the processor memory via a communication control device, an interrupt is generated by the interrupt generating means to start the processor; 1. A program debugging method characterized in that: 1- debugging a program is performed by stopping the debugging program, executing the debugging program, and reading the memory from a host computer via a communication control device;
JP59018360A 1984-02-06 1984-02-06 Program debugging system Pending JPS60164849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59018360A JPS60164849A (en) 1984-02-06 1984-02-06 Program debugging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59018360A JPS60164849A (en) 1984-02-06 1984-02-06 Program debugging system

Publications (1)

Publication Number Publication Date
JPS60164849A true JPS60164849A (en) 1985-08-27

Family

ID=11969523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59018360A Pending JPS60164849A (en) 1984-02-06 1984-02-06 Program debugging system

Country Status (1)

Country Link
JP (1) JPS60164849A (en)

Similar Documents

Publication Publication Date Title
US5978584A (en) Debugging apparatus for debugging a program by changing hardware environments without changing program operation state
KR900002438B1 (en) Inter-processor connecting system
US5964890A (en) System call issue method and debug system
JPS60164849A (en) Program debugging system
JPH06103104A (en) Remote debug method
WO1988007238A1 (en) High-speed floating point operation system
JPS6225334A (en) Instruction processing system
JPH10312307A (en) Emulator for computer system
JPS60189053A (en) Data transfer controller
JP2638078B2 (en) Information processing device
JP2524620B2 (en) Input / output control method
JP2557366B2 (en) Input / output procedure converter
JPS5864534A (en) Data transfer system of computer device
JPS588366A (en) Memory module system
TW432277B (en) Pre-boot debugging device and method of computer system
JPS6349935A (en) Central controller
JPS60201437A (en) Microprocessor
CN112052132A (en) Method, device, equipment and medium for debugging plug-in chip through SDIO interface
JPS61239345A (en) I/o simulator
JPH04286799A (en) Prom programmer device
JPS609294B2 (en) Tracing method in electronic computers
JPH02730B2 (en)
JPS61175834A (en) Data processor provided with microprogram debug function
JPH05204710A (en) Event tracer
JPH05151137A (en) Electronic computer device