JPH02163842A - Program evaluating device for microcomputer - Google Patents

Program evaluating device for microcomputer

Info

Publication number
JPH02163842A
JPH02163842A JP63318759A JP31875988A JPH02163842A JP H02163842 A JPH02163842 A JP H02163842A JP 63318759 A JP63318759 A JP 63318759A JP 31875988 A JP31875988 A JP 31875988A JP H02163842 A JPH02163842 A JP H02163842A
Authority
JP
Japan
Prior art keywords
program
memory
evaluation
error code
address
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
JP63318759A
Other languages
Japanese (ja)
Inventor
Nobuhiro Arai
信宏 荒井
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP63318759A priority Critical patent/JPH02163842A/en
Publication of JPH02163842A publication Critical patent/JPH02163842A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To simplify a debugging program to be set into a control computer by stopping temporarily the working of an evaluating microcomputer with the coincidence detecting output of a coincidence detecting circuit and carrying out the program evaluation. CONSTITUTION:An error code is previously stored in each address of an error code memory 4 in response to each address of a program memory 3. Thus the working of an evaluating microcomputer 1 is surely stopped temporarily only when the computer 1 has malfunction. Then a control computer 5 is actuated based on an error code received from the memory 4 and the error process data received from the computer 1. Then the computer 5 debugs automatically the program of the memory 3 and evaluates the memory. Thus it is possible to simplify a debugging program to be set into the computer 5.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、マイクロコンピュータのプログラム評価装置
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a program evaluation device for a microcomputer.

(ロ)従来の技術 従来、量産用1チツプマイクロコンピユータと略同−機
能を有する評価用マイクロコンピュータを用いてプログ
ラム評価を行なっていた場合について説明する。まず評
価用マイクロコンピュータに内蔵されているプログラム
カウンタによって外部のプログラムメモリの所定アドレ
スがアクセスきれると、該プログラムメモリの所定アド
レスに予め記憶されているプログラムデータが評価用マ
イクロコンビコータに読み込まれ、これより評価用マイ
クロコンピュータの内部回路は前記プログラムデータに
基づいて動作することになる。
(B) Prior Art A case will be described in which conventionally, a program evaluation has been performed using an evaluation microcomputer having substantially the same functions as a one-chip microcomputer for mass production. First, when a predetermined address in the external program memory is accessed by the program counter built into the evaluation microcomputer, the program data stored in advance at the predetermined address in the program memory is read into the evaluation microcombicoater. Therefore, the internal circuit of the evaluation microcomputer operates based on the program data.

ここで評価用マイクロコンピュータに対しては、コント
ロール回路が設けられている。即ち該コントロール回路
には、プログラム評価を行ないたいプログラムメモリの
所定アドレスのアドレスデータが予めプリセットされて
おり、且つ該コントロール回路には、評価用マイクロフ
ンピユータ内部のプログラムカウンタによるアドレスデ
ータが、プログラムメモリと共に印加される様になって
いる。従って評価用マイクロコンピュータからのアドレ
スデータがコントロール回路に印加きれ、該アドレスデ
ータがフントロール回路に予め定められたデータと一致
すると、該コントロール回路から一時停止信号が発生し
、これより該−時停止信号によって評価用マイクロコン
ピュータの動作が一時停止することになる。この時、評
価用マイクロコンピュータから得られたデータが、正規
のプログラムデータに対応する正常なデータであるか否
かを解析することによって、プログラム評価を行なって
いた。
Here, a control circuit is provided for the evaluation microcomputer. That is, the control circuit is preset with address data of a predetermined address of the program memory at which the program is to be evaluated, and the address data of the program counter inside the evaluation microcomputer is preset in the control circuit. It is designed to be applied together with the Therefore, when the address data from the evaluation microcomputer is fully applied to the control circuit and the address data matches the predetermined data in the control circuit, a temporary stop signal is generated from the control circuit, which causes the time to stop. The signal causes the operation of the evaluation microcomputer to be temporarily stopped. At this time, program evaluation is performed by analyzing whether data obtained from the evaluation microcomputer is normal data corresponding to regular program data.

(ハ)発明が解決しようとした課題 しかしながら前記従来の技術において、プログラム評価
を行なう場合、プログラム開発者は、時停止状態にある
評価用マイクロコンピュータから得られるデータの解析
、及びプログラムのデバッグ等を、プログラムメモリの
プログラム内容を思い出しながら実行しなければならず
、従ってデータの解析及びプログラムのデバッグに大変
時間を費やしてしまう問題点があった。
(c) Problems to be Solved by the Invention However, in the above-mentioned conventional technology, when evaluating a program, the program developer must analyze the data obtained from the evaluation microcomputer in a stopped state, debug the program, etc. , the program has to be executed while remembering the program contents in the program memory, and therefore there is a problem in that it takes a lot of time to analyze the data and debug the program.

(ニ)課題を解決するための手段 本発明は、プログラムデータが記憶されるプログラムメ
モリと、該プログラムメモリの所定アドレスに対してプ
ログラムデータの書き込み/読み出しを行なうコントロ
ールコンピュータと、前記プログラムメモリの所定アド
レスをアクセスするプログラムカウンタを内蔵し、該プ
ログラムメモリの所定アドレスからのプログラムデータ
を読み込んで動作する評価用マイクロコンピュータとを
備え、前記プログラムメモリの所定アドレスがアクセス
された時、前記評価用マイクロフンピユータの動作を一
時停止きせてプログラム評価を行なうマイクロコンピュ
ータのプログラム評価装置において、 前記プログラムメモリの各アドレスに対応するアドレス
を有し、該プログラムメモリの所定アドレスにおけるプ
ログラムで発生してはならない前記評価用マイクロコン
ビコータの誤り状態が、該プログラムメモリの所定アド
レスに対応するアドレスに、前記コントロールコンピュ
ータによって誤りコードとして書き込まれる誤りコード
用メモリと、 該評価用マイクロコンピュータによって前記プログラム
メモリ及び前記誤りコード用メモリの各対応アドレスが
同時にアクセスされた際に得られる、前記評価用マイク
ロコンビコータからのステーブルデータ及び前記誤りコ
ード用メモリからの誤りコードが印加され、前記ステー
タスデータ及び前記誤りコードの一致を検出する一致検
出回路とを備え、該一致検出回路による一致検出出力に
よって、前記評価用マイクロコンピュータの動作を一時
停止きぜ、プログラム評価を行なうことを特徴とした。
(d) Means for Solving the Problems The present invention provides a program memory in which program data is stored, a control computer that writes/reads program data to/from a predetermined address of the program memory, and a control computer that writes/reads program data to/from a predetermined address of the program memory. an evaluation microcomputer that includes a built-in program counter for accessing addresses and operates by reading program data from a predetermined address of the program memory, and when the predetermined address of the program memory is accessed, In a microcomputer program evaluation device that evaluates a program by temporarily halting the operation of a computer, the evaluation device has an address corresponding to each address of the program memory, and the evaluation that must not occur in a program at a predetermined address of the program memory. an error code memory in which the error state of the evaluation microcombicoater is written as an error code by the control computer to an address corresponding to a predetermined address of the program memory; Stable data from the evaluation microcombicoater and an error code from the error code memory obtained when respective corresponding addresses of the memory are accessed simultaneously are applied, and a match between the status data and the error code is determined. and a coincidence detection circuit for detecting a coincidence, and according to the coincidence detection output from the coincidence detection circuit, the operation of the evaluation microcomputer is temporarily stopped and program evaluation is performed.

(1作用 本発明は、マイクロコンピュータのプログラム評価装置
に設けて以下の如く有効である6即ち前記(ニ)項記載
の構成において、プログラムメモリの所定アドレスにコ
ントロールコンピュータによってプログラムデータが書
き込まれると共に、該プログラムメモリの所定アドレス
に対応する誤りコード用メモリの所定アドレスに、前記
コントロールコンピュータによって誤りフードが書き込
、上れている。即ち誤りコード用メモリの所定アドレス
には、プログラムメモリの対応アドレスにおけるプログ
ラムで発生してはならない評価用マイクロコンピュータ
の誤り状態が誤りコードとじて記憶されている。そして
評価用マイクロフンピユータ内部のプログラムカウンタ
によって、プログラムメモリ及び誤りフード用メモリ中
で夫々対応する同一アドレスがアクセスきれると、評価
用マイクロコンピュータはプログラムデータに基づいて
動作し、且つ誤りコード用メモリから読み出された誤り
コード及び評価用マイクロフンピユータから出力された
ステータスデータ(アキュムレータにロードされたデー
タ、キャリーフラグ等)は一致検出回路によって一致比
較される。ここで誤りコード及びステータスデータに基
づいて一致検出回路から一致検出出力が得られると、該
一致検出出力によって評価用マイクロコンピュータの動
作は一時停止状態となる。従ってこの時の誤りコード及
び評価用マイクロコンビコータからのデータがコントロ
ールフンピユータに印71Llkし、コントロールコン
ピュータ出力によって自動的にプログラムのデバッグが
為されることになる。
(1) The present invention is effective as follows when installed in a program evaluation device for a microcomputer. 6. In the configuration described in item (d) above, program data is written by the control computer to a predetermined address of the program memory, and An error hood is written and raised by the control computer at a predetermined address in the error code memory that corresponds to a predetermined address in the program memory. An error state of the evaluation microcomputer that should not occur in the program is stored as an error code.Then, the program counter inside the evaluation microcomputer stores the same address in the program memory and the error hood memory, respectively. When access is completed, the evaluation microcomputer operates based on the program data, and also reads the error code read from the error code memory and the status data output from the evaluation microcomputer (data loaded into the accumulator, etc.). Carry flags, etc.) are compared by the match detection circuit.When a match detection output is obtained from the match detection circuit based on the error code and status data, the operation of the evaluation microcomputer is temporarily stopped by the match detection output. Therefore, the error code at this time and the data from the evaluation microcombicoater are marked 71Llk on the control computer, and the program is automatically debugged by the control computer output.

(へ)実施例 本発明の詳細を図示の実施例により具体的に説明する。(f) Example The details of the present invention will be specifically explained with reference to illustrated embodiments.

図面は本発明のマイクロコンピュータのプログラム評価
装置を示すブロック図である。図面について、符号及び
構成を説明すると、(1)はエバリユエーションチップ
(評価用マイクロコンピュータ)であり、該エバリユエ
ーションチップ(1)は、量産用1チツプマイクロコン
ピユータと略同−機能を有しており、更に該エバリユエ
ーションチップ(1)は、該エバリユエーションチップ
(1)の動作を一時停止させるブレーク回路(2)を内
蔵している。(3)はプログラムメモリであり、該プロ
グラムメモリ(3)には、前記エバリユエーションチッ
プ(1)を動作制御する為の8ビット単位のプログラム
データが各アドレスに記憶される様になっている。(4
)は誤りコード用メモリであり、該誤りコード用メモリ
(4)は、前記プログラムメモリ(3)の各アドレスに
夫々対応するアドレスを有している。そして前記プログ
ラムメモリ〈3)の各アドレスに対応する前記誤りコー
ド用メモリ(4)のアドレスには、前記プログラムメモ
リ(3)のそのアドレスにおけるプログラムで発生して
はならない前記エバリユエーションチップ(1)の誤り
状態が8ビツトの誤りコードとして記憶される様になっ
ている0例えば前記プログラムメモリ(3)の所定アド
レスにおけるプログラムデータがテーブル参照命令であ
る場合、該テーブル参照命令によりて、前記エバリユエ
ーションチップ(1)内部のアキュムレータ(図示せず
)にテーブルデータがロードされることから、該テーブ
ルデータは数字又はアルファベット等のアスキーコード
でなければならない。即ち該テーブルデータが数字又は
アルファベット以外のアスキーフードとなってしまうと
、前記エバリユエーションチップ(1)に誤りが生じて
しまうことになる。
The drawing is a block diagram showing a microcomputer program evaluation device according to the present invention. Regarding the drawings, to explain the symbols and configuration, (1) is an evaluation chip (evaluation microcomputer), and the evaluation chip (1) has approximately the same functions as a mass-produced one-chip microcomputer. Furthermore, the evaluation chip (1) has a built-in break circuit (2) for temporarily stopping the operation of the evaluation chip (1). (3) is a program memory, and in the program memory (3), program data in units of 8 bits for controlling the operation of the evaluation chip (1) is stored at each address. . (4
) is an error code memory, and the error code memory (4) has addresses corresponding to each address of the program memory (3). The addresses of the error code memory (4) corresponding to each address of the program memory (3) contain the evaluation chip (1) that must not occur in the program at that address of the program memory (3). ) is stored as an 8-bit error code.0 For example, if the program data at a predetermined address in the program memory (3) is a table reference instruction, the table reference instruction Since table data is loaded into an accumulator (not shown) inside the variation chip (1), the table data must be ASCII codes such as numbers or alphabets. That is, if the table data becomes ASCII data other than numbers or alphabets, an error will occur in the evaluation chip (1).

従ってテーブルデータが数字又はアルファベット以外の
アスキーコードとなること、即ちテーブルデータが30
H以下又は7FH以上となることが、前記エバリユエー
ションチップ(1)の誤り状態ということになる。そこ
で前記プログラムメモリ(3)の所定アドレスに対応す
る前記誤りコード用メモリ(4)の対応アドレスには、
上述した前記エバリユエーションチップ(1)の誤り状
態を8ビツトコード化した誤りコードが記憶されること
になる。
Therefore, the table data will be an ASCII code other than numbers or alphabets, that is, the table data will be 30
H or less or 7FH or more means that the evaluation chip (1) is in an error state. Therefore, the corresponding address of the error code memory (4) corresponding to a predetermined address of the program memory (3) is as follows.
An error code obtained by converting the error state of the above-mentioned evaluation chip (1) into an 8-bit code is stored.

(5)はフントロールコンピュータでアリ、該コントロ
ールコンピュータ(5〉は後述の様に各種の制御を行な
う、(6)はアドレス切換器、(7)はデータ切換器で
あり、該アドレス切換器(6)及び該データ切換器(7
)の内部切換えは前記コントロールコンピュータ(5)
によって制御される様になっている。(8)は一致検出
回路であり、該一致検出回路(8)には、前記プログラ
ムメモリ(3)の所定アドレスのプログラムで動作中の
前記エバリユエーションチップ(1)から得られる8ビ
ツトのステータスデータと、前記プログラムメモリ(3
)の所定アドレスに対応する前記誤りフード用メモリ(
4)の対応アドレスにおける8ビツトの誤りコードとが
印加される。そして前記エバリユエーションチップ(1
)の動作に誤りが生じると、前記一致検出回路(8〉か
ら11」の一致検出出力が得られ、該一致検出出力がc
3Rゲート(9)を介して前記ブレーク回路(2)に印
加され、前記エバリユエーションチップ(1)の動作が
一時停止することになる。(10)はコントロール回路
であり、該コントロール回路(10)には、プログラム
評価を行ないたい前記プログラムメモリ(3)の所定ア
ドレスの16ビツトのアドレスデータが予めプリセット
されている。特に該フントロール回路(10)には、誤
りコードが記憶されていない前記誤りコード用メモリ(
4)の残りアドレスのアドレスデータが記憶されている
ものとした。そして前記エバリユエーションチップ(1
)内部のプログラムカウンタ(図示せず)によってアド
レスデータがインクリメントされて前記コントロール回
路(10)に印加きれ、前記プログラムカウンタによる
アドレスデータと前記コントロール回路(10)にプリ
セットされているアドレスデータが一致すると、該コン
トロール回路(10)から「1」の一致出力が得られ、
該一致出力が前記ORゲート(9)を介して前記ブレー
ク回路(2)に印加され、上述と同様に前記エバリユエ
ーションチップ(1)の動作が一時停止することになる
。この動作は従来と同様である。尚、図面に示す各構成
間のアドレスバスは16ビツト、データバスは8ビツト
であるものとした。
(5) is a controller computer, the control computer (5) performs various controls as described below, (6) is an address switch, and (7) is a data switch; 6) and the data switch (7)
) is internally switched by the control computer (5).
It is controlled by. (8) is a coincidence detection circuit, and the coincidence detection circuit (8) receives an 8-bit status obtained from the evaluation chip (1) which is operating with a program at a predetermined address in the program memory (3). data and the program memory (3
) corresponding to the predetermined address of the error hood memory (
4) and the 8-bit error code at the corresponding address are applied. And the evaluation chip (1
), the coincidence detection outputs of the coincidence detection circuits (8> to 11) are obtained, and the coincidence detection outputs are c.
It is applied to the break circuit (2) through the 3R gate (9), and the operation of the evaluation chip (1) is temporarily stopped. (10) is a control circuit, and 16-bit address data of a predetermined address of the program memory (3) at which program evaluation is desired is preset in the control circuit (10). In particular, the error code memory (10) does not store any error codes.
It is assumed that the address data of the remaining addresses in 4) are stored. And the evaluation chip (1
) The address data is incremented by an internal program counter (not shown) and applied to the control circuit (10), and when the address data by the program counter and the address data preset in the control circuit (10) match. , a coincidence output of "1" is obtained from the control circuit (10),
The coincidence output is applied to the break circuit (2) via the OR gate (9), and the operation of the evaluation chip (1) is temporarily stopped in the same way as described above. This operation is the same as the conventional one. It is assumed that the address bus between each structure shown in the drawing is 16 bits, and the data bus is 8 bits.

以下、図面の動作について説明する。The operation of the drawings will be explained below.

まずプログラム開発者によって、プログラムメモリ(3
)にプログラムデータを書き込み、更に誤りコード用メ
モリク4)に誤りコードを書き込む場合、フントロール
コンピュータ(5)を操作することによってアドレス切
換器(6)及びデータ切換器(7)を制御しておく。即
ちアドレス切換器(6)によって、フントロールコンピ
ュータ(5)から発生する16ビツトのアドレスデータ
が選択きれ、且つデータ切換器(7〉によって、フント
ロールコンピュータ(5)から発生する8ビツトのプロ
グラムデータ及び誤りフードが選択される様にしておく
。そしてコントロールコンピュータ(5)から発生する
アドレスデータがアドレス切換器(6)を介してプログ
ラムメモリ(3)及び誤りフード用メモリ(4〉に印加
され、プログラムメモリ(3〉及び誤りコード用メモリ
(4)の各対応アドレスがアクセスされると、最初にコ
ントロールコンピュータ(5〉から発生するプログラム
データがデータ切換器(7)を介してプログラムメモリ
(3)のアクセスされたアドレスに書き込まれ、その後
フントロールコンピュータ(5)から発生する誤りフー
ド(前記プログラムデータにおける誤り状態を示すコー
ド)がデータ切換器(7)を介して、プログラムメモリ
(3)のアドレスに対応する誤りコード用メモリ(4)
の対応アドレスに書き込まれることになる。この動作を
繰り返すことによってプログラムメモリ(3)及び誤り
フード用メモリ(4)へのデータの書き込みが終了した
ことになる。尚、コントロールコンピュータ(5)の操
作によって、プログラムメモJ(3)及び誤りコード用
メモリ(4)の各対応アドレスに書き込まれている各デ
ータを読み出してフントロールコンピュータ(5)に印
加し、プログラムメモリ(3)及び誤りコード用メモリ
(4)の両記憶内容のチエツクをすることも可能である
。。
First, program memory (3
), and further write an error code to the error code memory 4), control the address switch (6) and data switch (7) by operating the controller computer (5). . That is, the address switch (6) selects the 16-bit address data generated from the vehicle control computer (5), and the data switch (7) selects the 8-bit program data generated from the vehicle computer (5). and error hood are selected.Then, address data generated from the control computer (5) is applied to the program memory (3) and the error hood memory (4) via the address switch (6), When each corresponding address in the program memory (3> and error code memory (4)) is accessed, the program data generated from the control computer (5>) is transferred to the program memory (3) via the data switch (7). The error hood (a code indicating an error state in the program data) generated from the controller computer (5) is then written to the accessed address of the program memory (3) via the data switch (7). Error code memory (4) corresponding to
will be written to the corresponding address. By repeating this operation, writing of data to the program memory (3) and error hood memory (4) is completed. By operating the control computer (5), each data written in the corresponding addresses of the program memo J (3) and the error code memory (4) is read out and applied to the control computer (5), and the program is read out. It is also possible to check the contents of both the memory (3) and the error code memory (4). .

次にプログラムメモリ(3)に記憶きれたプログラムデ
ータに基づいて、エバリユエーションチップ(1)を動
作させる場合、コントロールコンピュータ(5)を操作
し、アドレス切換器(6)及びデータ切換器(7)によ
って、エバリユエーションチップ(1)内部のプログラ
ムカウンタから発生するアドレスデータ及び該エバリユ
エーションデツプ(1)における入出力データが夫々選
択される様に制御しておく。そしてエバリユエーション
チップ(1)内部のプログラムカウンタによってアドレ
スデータが順次インクリメントされ、このアドレスデー
タがアドレス切換器(6)を介してプログラムデータ(
3)及び誤りフード用メモリ(4)に印加され、プログ
ラムメモリ(3)及び誤りコード用メモリ(4)両者の
対応アドレスがアクセスされると、一方として、プログ
ラムメモリ(3)の指定アドレスに書き込まれていたプ
ログラムデータがデータ切換器(7)ヲ介してエバリユ
エーションチップ(1)に印加され、該エバリユエーシ
ョンチップ(1)は該プログラムデータに基づいて動作
し、この時得られる8ビツトのステータスデータが一致
検出回路(8)に印加されることになる。また他方とし
て、プログラムメモリ(3)の指定アドレスに対応する
誤りコード用メモリ(4)の対応アドレスに書き込まれ
ていた誤りコードが一致検出回路(8)に印加され、前
記ステータスデータとの一致検出が行なわれることにな
る。
Next, when operating the evaluation chip (1) based on the program data stored in the program memory (3), the control computer (5) is operated and the address switch (6) and data switch (7) are operated. ) is controlled so that the address data generated from the program counter inside the evaluation chip (1) and the input/output data in the evaluation depth (1) are respectively selected. Then, the address data is sequentially incremented by the program counter inside the evaluation chip (1), and this address data is transferred to the program data (
3) and the error code memory (4), and when the corresponding addresses of both the program memory (3) and the error code memory (4) are accessed, the signal is written to the specified address of the program memory (3). The program data that has been stored is applied to the evaluation chip (1) via the data switch (7), and the evaluation chip (1) operates based on the program data, and the 8-bit data obtained at this time is status data will be applied to the coincidence detection circuit (8). On the other hand, the error code written in the corresponding address of the error code memory (4) corresponding to the specified address of the program memory (3) is applied to the coincidence detection circuit (8), and a coincidence with the status data is detected. will be carried out.

そしてエバリユエーションチップ(1)が正常動作する
と、一致検出回路(8)から一致検出出力が得られず、
従ってエバリユエーションチップ(1)は−時停止する
ことなく Jl、I! して動作することになる。とこ
ろが、エバリユエーションチップ〈1)の異常を示すス
テータスデータが得られると、該ステータスデータ及び
誤りコードが一致検出回路(8)に印加諮れることによ
ってrl」の一致検出出力が得られ、この一致検出出力
によってブレーク回路(2)が動作し、これよりエバリ
ユエーションチップ(1)の動作は強制的に一時停止さ
せられることになる。この時、−時停止状態にあるエバ
リユエーションチップ(1)から得られた誤った処理デ
ータ、及び誤りコード用メモリ(4ンからの誤りコード
が、データ切換器(7)を介してフントロールコンピュ
ータ(5)に印加される。これよりコントロールコンピ
ュータ(5)によってアドレス切換器(6)及びデータ
切換器(7)が制御され、エバリユエーションチップ(
1)の動作を誤り状態と為したプログラムメモリ(3)
のプログラムが、コントロールコンピュータ(5)内部
にセットしたプログラムによってデバッグされることに
なる。
When the evaluation chip (1) operates normally, no coincidence detection output is obtained from the coincidence detection circuit (8).
Therefore, the evaluation chip (1) reads Jl, I! without stopping at -. Then it will work. However, when status data indicating an abnormality in the evaluation chip (1) is obtained, the status data and error code are applied to the coincidence detection circuit (8), and a coincidence detection output of "rl" is obtained. The match detection output activates the break circuit (2), which forces the operation of the evaluation chip (1) to be temporarily stopped. At this time, the erroneous processing data obtained from the evaluation chip (1) which is in the stopped state and the error code from the error code memory (4) are transferred via the data switch (7) to the controller. The control computer (5) controls the address switch (6) and data switch (7), and the evaluation chip (
Program memory that caused the operation in 1) to be in an error state (3)
The program will be debugged by a program set inside the control computer (5).

以上よりプログラムメモリ(3)の各アドレスに1対1
対応する誤りコード用メモリ(4)の各アトし・スに誤
りコードを記憶させておけば、エバリユエーションチッ
プ(1)が誤り動作をした時のみ、該エバリユエーショ
ンチップ(1)の動作を確実に一時停止させることがで
きる。そして誤りコード用メモリ(4)からの誤りフー
ド及びエバリユエーションチップ(1)からの誤った処
理データに基ついで、コントロールコンピュータ<5>
を動作させ、該コントロールコンピュータ(5)によっ
てブログラノ、メモリ(3)の該当プログラムを自動的
にデバッグすることができる。従って、コントロールコ
ンピュータ(5)に組み込んでおくべきデバッグ用のプ
ログラムが従来に比して簡単となり、更に上述の動作よ
り、プログラム開発者が、従来の様にプログラムメモリ
のプログラム内容を思い出しながら、エバリユエーショ
ンチップ(1)から得られるデータの解析、及びプログ
ラムメモリ(3)のプログラムのデバッグを行なうとい
う煩雑な手間を省くことができ、プログラムのデバッグ
時間の大幅な短縮が可能となる。
From the above, one to one for each address of program memory (3)
If an error code is stored in each address of the corresponding error code memory (4), the operation of the evaluation chip (1) will be performed only when the evaluation chip (1) makes an error operation. can be reliably paused. Based on the error hood from the error code memory (4) and the incorrect processing data from the evaluation chip (1), the control computer <5>
The control computer (5) can automatically debug the program in the memory (3). Therefore, the debugging program that must be installed in the control computer (5) is simpler than before, and the above-mentioned operation allows the program developer to execute the program while recalling the program contents in the program memory as in the past. The troublesome effort of analyzing data obtained from the variation chip (1) and debugging the program in the program memory (3) can be omitted, and the time required to debug the program can be significantly shortened.

(ト)発明の効果 本発明によれば、プログラムメモリの各アドレスに1対
1対応する誤りフード用メモリの各アドレスに誤りコー
ドを記憶許せておけば、評価用マイクロコンピュータが
誤り動作をした時のみ、該評価用マイクロコンピュータ
の動作を確実に一時停止させることができる。そして誤
りフード用メモリからの誤りフード及び評価用マイクロ
コンピュータからの誤った処理データに基づいて、コン
トロールコンピュータを動作させ、該コントロールコン
ピュータによってプログラムメモリの該当プログラムを
自動的にデバッグし、プログラム評価することができる
。従って、コントロールコンビエータに組み込んでおく
べきデバッグ用のプログラムが従来に比して簡単となり
、更に上述の動作により、プログラム開発者が、従来の
様にプログラムのプログラム内容を思い出しながら、評
価用マイクロコンピュータから得られるデータの解析、
及びプログラムメモリのデバッグを行なうという煩雑な
手間を省くことができ、プログラムのデバッグ時間の大
幅な短縮が可能となる等の利点が得られることになる。
(G) Effects of the Invention According to the present invention, if an error code is allowed to be stored in each address of the error hood memory that corresponds one-to-one to each address of the program memory, when the evaluation microcomputer performs an erroneous operation, Only then can the operation of the evaluation microcomputer be reliably stopped. Then, the control computer is operated based on the error hood from the error hood memory and the erroneous processing data from the evaluation microcomputer, and the control computer automatically debugs the corresponding program in the program memory and evaluates the program. Can be done. Therefore, the debugging program that must be built into the control combinator is simpler than before, and the above-mentioned operation allows the program developer to write the evaluation microcomputer while recalling the program contents as in the past. analysis of data obtained from
Also, the troublesome effort of debugging the program memory can be omitted, and the time required for debugging the program can be significantly shortened.

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

図面は本発明のマイクロコンピュータのプログラム評価
装置を示すブロック図である。 (1)・・・エバリユエーションチップ、(3)・・・
プログラムメモリ、(4)・・・誤りコード用メモリ、
  (5)・・・コントロールコンピュータ、(8)・
・・一致検出回路。
The drawing is a block diagram showing a microcomputer program evaluation device according to the present invention. (1)...Evaluation chip, (3)...
Program memory, (4)...Error code memory,
(5)...Control computer, (8)...
...Coincidence detection circuit.

Claims (2)

【特許請求の範囲】[Claims] (1)プログラムデータが記憶されるプログラムメモリ
と、該プログラムメモリの所定アドレスに対してプログ
ラムデータの書き込み/読み出しを行なうコントロール
コンピュータと、前記プログラムメモリの所定アドレス
をアクセスするプログラムカウンタを内蔵し、該プログ
ラムメモリの所定アドレスからのプログラムデータを読
み込んで動作する評価用マイクロコンピュータとを備え
、前記プログラムメモリの所定アドレスがアクセスされ
た時、前記評価用マイクロコンピュータの動作を一時停
止させてプログラム評価を行なうマイクロコンピュータ
のプログラム評価装置において、 前記プログラムメモリの各アドレスに対応するアドレス
を有し、該プログラムメモリの所定アドレスにおけるプ
ログラムで発生してはならない前記評価用マイクロコン
ピュータの誤り状態が、該プログラムメモリの所定アド
レスに対応するアドレスに、前記コントロールコンピュ
ータによって誤りコードとして書き込まれる誤りコード
用メモリと、 該評価用マイクロコンピュータによって前記プログラム
メモリ及び前記誤りコード用メモリの各対応アドレスが
同時にアクセスされた際に得られる、前記評価用マイク
ロコンピュータからのステータスデータ及び前記誤りコ
ード用メモリからの誤りコードが印加され、前記ステー
タスデータ及び前記誤りコードの一致を検出する一致検
出回路とを備え、該一致検出回路による一致検出出力に
よって、前記評価用マイクロコンピュータの動作を一時
停止させ、プログラム評価を行なうことを特徴としたマ
イクロコンピュータのプログラム評価装置。
(1) It has a built-in program memory in which program data is stored, a control computer that writes/reads program data to/from predetermined addresses of the program memory, and a program counter that accesses predetermined addresses of the program memory; and an evaluation microcomputer that operates by reading program data from a predetermined address in a program memory, and when the predetermined address in the program memory is accessed, the operation of the evaluation microcomputer is temporarily stopped to evaluate the program. In the microcomputer program evaluation device, the evaluation microcomputer has an address corresponding to each address of the program memory, and an error state of the evaluation microcomputer that must not occur in a program at a predetermined address of the program memory is an error state of the program memory. An error code memory written as an error code by the control computer to an address corresponding to a predetermined address, and an error code obtained when each corresponding address of the program memory and the error code memory are simultaneously accessed by the evaluation microcomputer. a coincidence detection circuit to which the status data from the evaluation microcomputer and the error code from the error code memory are applied, and which detects coincidence between the status data and the error code; A program evaluation device for a microcomputer, characterized in that the operation of the evaluation microcomputer is temporarily stopped based on a detection output, and a program evaluation is performed.
(2)前記評価用マイクロコンピュータ内部のプログラ
ムカウンタによって前記プログラムメモリ及び前記誤り
コード用メモリの各対応アドレスが同時にアクセスされ
た際に得られる、前記プログラムデータに基づく前記評
価用マイクロコンピュータからのデータ及び前記誤りコ
ード用メモリからの誤りコードを、前記コントロールコ
ンピュータに印加し、前記一致検出回路による一致検出
出力が得られた時、前記誤りコードに基づく前記コント
ロールコンピュータによって前記プログラムメモリのプ
ログラムをデバッグすることを特徴とした請求項(1)
記載のマイクロコンピュータのプログラム評価装置。
(2) Data from the evaluation microcomputer based on the program data obtained when each corresponding address of the program memory and the error code memory are simultaneously accessed by a program counter inside the evaluation microcomputer; Applying an error code from the error code memory to the control computer and debugging the program in the program memory by the control computer based on the error code when a coincidence detection output is obtained from the coincidence detection circuit. Claim (1) characterized by
The described microcomputer program evaluation device.
JP63318759A 1988-12-16 1988-12-16 Program evaluating device for microcomputer Pending JPH02163842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63318759A JPH02163842A (en) 1988-12-16 1988-12-16 Program evaluating device for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63318759A JPH02163842A (en) 1988-12-16 1988-12-16 Program evaluating device for microcomputer

Publications (1)

Publication Number Publication Date
JPH02163842A true JPH02163842A (en) 1990-06-25

Family

ID=18102621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63318759A Pending JPH02163842A (en) 1988-12-16 1988-12-16 Program evaluating device for microcomputer

Country Status (1)

Country Link
JP (1) JPH02163842A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59202547A (en) * 1983-05-02 1984-11-16 Omron Tateisi Electronics Co Debugging device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59202547A (en) * 1983-05-02 1984-11-16 Omron Tateisi Electronics Co Debugging device

Similar Documents

Publication Publication Date Title
CN112527690B (en) Off-line debugging method and device for aging test of semiconductor memory
JPH02163842A (en) Program evaluating device for microcomputer
US6125456A (en) Microcomputer with self-diagnostic unit
JPH0581087A (en) Processor monitoring system
JPS60262251A (en) Backup device for development of microprocessor
JPH02281341A (en) Write data confirming method for debugging
JPS5835648A (en) Program execution controlling system
JPS6227421B2 (en)
JPH0716189Y2 (en) Break circuit
JPH02163841A (en) Program evaluating device for microcomputer
JPH04111631U (en) Microcomputer program evaluation device
JP2000353109A (en) Emulator and emulation system
JPH03168845A (en) Instruction execution control system
JPH02242439A (en) Program load control system
JPH04242455A (en) Inter-processor communication trace circuit
JPS61169943A (en) Stack tracer circuit
JPH01142948A (en) Symbolic debugger for microcomputer
JPS6375848A (en) Debugging log recording system
JPS63307543A (en) Debug device
JPH03214328A (en) Memory testing system
JPH04372025A (en) Storage device with access bit
JPS6061841A (en) Control system of program evaluating device
JPS63285642A (en) Microprocessor control system
JPH05241650A (en) Programmable controller
JPH02273839A (en) Evaluating device for microcomputer