JPH02206864A - Program debugging system - Google Patents

Program debugging system

Info

Publication number
JPH02206864A
JPH02206864A JP1028273A JP2827389A JPH02206864A JP H02206864 A JPH02206864 A JP H02206864A JP 1028273 A JP1028273 A JP 1028273A JP 2827389 A JP2827389 A JP 2827389A JP H02206864 A JPH02206864 A JP H02206864A
Authority
JP
Japan
Prior art keywords
signal line
signal
memory
write
cpu
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
JP1028273A
Other languages
Japanese (ja)
Inventor
Jitsuo Sentoda
仙洞田 実夫
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1028273A priority Critical patent/JPH02206864A/en
Publication of JPH02206864A publication Critical patent/JPH02206864A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute the program debugging of a controller specified in an early stage by providing a register for storing so that the controller where writing violation to a common memory is occurred can be read out with a CPU. CONSTITUTION:When the state of a signal on a signal line 212 is '1', the state '1' of the signal is outputted to the signal line 216 to close an AND gate 217, and the passing of WE signal is obstructed on the signal line 222, and write-in to the common memory 205 is prevented. Simultaneously with this, the state '1' of the signal on the signal line 216 becomes a trigger signal to store the input information of a protect register 224, and the state of signal input information is stored. The storage information of the register 224 is read out by an abnormality processing program, and read in the CPU 201 by the signal line 225. Thus, it can be known in which controller the writing violation due to the program debugging is occurred, and accordingly, the debugging of the program of the controller specified in the early stage can be executed.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はマイクロプロセサ用プログラムのデバッグに関
し、特に共通メモリを介して複数の制御装置を動作させ
る処理装置のプログラムデバッグ方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to debugging a program for a microprocessor, and more particularly to a program debugging method for a processing device that operates a plurality of control devices via a common memory.

(従来の技術) 従来、制御装置で書込みが禁止されているメモリアドレ
スに書込みを行った場合、この書込み違反を検出して、
CPUに割込み違反の発生を報告することはできるが、
それ以上の動作は行われていなかった。
(Prior art) Conventionally, when a control device writes to a memory address where writing is prohibited, this write violation is detected and the
Although it is possible to report the occurrence of an interrupt violation to the CPU,
No further action was taken.

(発明が解決しようとする昧題) 上述した従来の書込み違反検出方式では、処理装置の中
心的役割を果すCPUにより処理装置内で書込み違反の
発生したことは認識することができる。しかし、多数の
マイクロプロセサを核としてプログラムで動作する制御
装置から構成される装置 置を特定することができないため、その特定に極めて長
いデバッグ時間を要すという欠点がある。
(Problem to be Solved by the Invention) In the conventional write violation detection method described above, the occurrence of a write violation within the processing device can be recognized by the CPU, which plays a central role in the processing device. However, since it is not possible to specify a device consisting of a control device that operates according to a program with a large number of microprocessors at its core, this method has the disadvantage that it requires an extremely long debugging time.

本発明の目的は、マイクロプロセサを核としてプログラ
ムで動作する複数の制御装置を共通メモリを介して動作
させる処理装置において、共通メモリへの書込み違反を
犯して制御装置を書込み素正情報として記憶し、且つ、
CPUによシ上記記憶内容をレジスタ回路で読出すこと
により上記欠点を除去し、書込み違反を容易に特定でき
るように構成したプログラムデバッグ方式を提供するこ
とにある。
An object of the present invention is to provide a processing device in which a plurality of control devices operated by a program using a microprocessor as the core are operated via a common memory, in which a writing violation is committed to the common memory and the control device is stored as write identity information. ,and,
It is an object of the present invention to provide a program debugging system configured to eliminate the above-mentioned drawbacks by reading out the above-mentioned stored contents by a CPU using a register circuit, and to easily identify write violations.

(111題を解決するための手段) 本発明によるプログラムデバッグ方式は、共通メモリと
、書込みプロテクトメモリと、競合防止手段と、レジス
タ回路とを具備して構成したものである。
(Means for Solving Problem 111) A program debugging method according to the present invention is configured to include a common memory, a write protect memory, a conflict prevention means, and a register circuit.

共通メモリは、装置間の情報を授受するためのものであ
る。
The common memory is for exchanging information between devices.

書込みプロテクトメモリは、各制御装置ごとに共通メモ
リのブロック単位にCPUの指示による書込み禁止情報
を記憶するためのものである。
The write protect memory is for storing write prohibition information in block units of the common memory for each control device based on instructions from the CPU.

競合防止手段は、各制御装置により共通メモリへ同時に
アクセスされることがないように順序正しくメモリアク
セスを実行するためのものである。
The contention prevention means is for executing memory accesses in an orderly manner so that the common memory is not accessed simultaneously by each control device.

レジスタ回路は、共通メモリへの書込み違反が発生した
制御装置をCPUKよシ読出すことができるよう記憶す
るためのものである。
The register circuit is for storing a controller in which a write violation to the common memory has occurred so that it can be read by the CPUK.

(実施例) 次に1本発明について図面を参照して説明する。(Example) Next, one embodiment of the present invention will be explained with reference to the drawings.

説明を容易にするため、本発明はCPUと、ディスク制
御装置と、1Mワードの容量の共通メモリとを有して構
成され、共通メモリのIKワードのメモリブロックごと
に書込み禁止機能を有するものである。
For ease of explanation, the present invention is configured with a CPU, a disk controller, and a common memory with a capacity of 1M words, and has a write inhibit function for each IK word memory block of the common memory. be.

第1図は、本発明のプログラムデバッグ方式によるメモ
リ書込み防止回路の原理を示すブロック図である。
FIG. 1 is a block diagram showing the principle of a memory write prevention circuit using the program debugging method of the present invention.

第1図において、101はCPU、102は1Mワード
の共通メモリ、1O5は共通メモリ102のIKワード
ごとに1ビツトの書込み禁止情報を記憶するためのプロ
テクトメモリである。本実施例において、プロテクトメ
モリ10δは1ビツトXIKワードの容量を有するもの
である。
In FIG. 1, 101 is a CPU, 102 is a 1M word common memory, and 105 is a protect memory for storing 1 bit of write-inhibited information for each IK word of the common memory 102. In FIG. In this embodiment, the protect memory 10δ has a capacity of 1-bit XIK word.

CPololは、処理の開始に際してアプリケーション
プログラムが書込んではならない重要なシステム情報を
記憶する。共通メモ!7102の各メモリブロックに対
応し、プロテクトメモリ103のメモリアドレスに書込
みを禁止するときKは、書込み制御信号線104を介し
て情報s11をプロテクトメモリ105に送出し、許可
のときには書込み制御信号線104を介して情報%OI
をプロテクトメモリ103に送出する。
CPolol stores important system information that application programs must not write at the beginning of processing. Common memo! Corresponding to each memory block 7102, when writing to the memory address of the protect memory 103 is prohibited, K sends information s11 to the protect memory 105 via the write control signal line 104, and when it is permitted, the write control signal line 104 Information via %OI
is sent to the protected memory 103.

信号線104上の情報が%OIのときには、プロテクト
メモリ103にデータを記憶されることができる。この
とき、プロテクトメモリ105のIKワード内のアドレ
スを示すため、信号線105上のアドレス21@ −2
II  (以下、A)を使用してアドレスを指示する。
When the information on the signal line 104 is %OI, data can be stored in the protect memory 103. At this time, in order to indicate the address in the IK word of the protect memory 105, the address 21@-2 on the signal line 105 is
II (hereinafter referred to as A) is used to specify the address.

CPU101が処理動作を開始し、共通メモリ102に
書込み動作を行わせる場合、アドレス信号線10°7 
(All −A18 )にアドレス情報を出力すると、
信号@106のうち、上位(A 10  A11l )
を示すアドレスが信号線105を介してプロテクトメモ
リ10Bに入力される。信号線105で示されたアドレ
スに記憶されているプロテクトメモリ10fSの情報が
、信号線プロテクト情報とじて信号線107上に出力さ
れる。
When the CPU 101 starts a processing operation and causes the common memory 102 to perform a write operation, the address signal line 10°7
When outputting address information to (All -A18),
Among the signals @106, the upper one (A 10 A11l)
An address indicating this is input to the protect memory 10B via the signal line 105. Information in the protect memory 10fS stored at the address indicated by the signal line 105 is output onto the signal line 107 as signal line protect information.

この結果、信号線107上の状態妙βOIであれば曹込
み許可状態を示し、書込みゲート108が関す。その後
、CPU101より信号線109を介して出力される書
込み信号が共通メモリ102上に入力され、信号線10
6で示されたアドレスに信号線110を介して送出され
た書込み情報が記憶され、正常動作が終了する。
As a result, if the state on the signal line 107 is strange βOI, it indicates a write-in permission state, and the write gate 108 is involved. Thereafter, a write signal output from the CPU 101 via the signal line 109 is input onto the common memory 102, and
The write information sent via the signal line 110 is stored at the address indicated by 6, and the normal operation ends.

また、信号線107上の状態が%11のとき書込みを禁
止し、書込みゲート108により信号線109上の信号
の出力が禁止され、共通メモリ102に書込み指示が届
かなくなシ、同時に信号線107を介してCPUl0I
にメモリ書込み違反の発生が報告される。
Further, when the state on the signal line 107 is %11, writing is prohibited, the write gate 108 prohibits the output of the signal on the signal line 109, and the write instruction does not reach the common memory 102, and at the same time, the signal line 107 CPUl0I via
A memory write violation is reported.

第2図は、第1図に示すプログラムデバッグ方式の一実
施例を示すブロック図である。
FIG. 2 is a block diagram showing an embodiment of the program debugging method shown in FIG. 1.

第2図において、201はCPU、203’之204は
それぞれプロテクトメモリ、205は共通メモリ、20
6は競合回路、208はディスク制御回路、21!、2
17,231はそれぞれANDゲート、216,218
,221はそれぞれORゲート、215,218,22
1はそれぞれORゲート、224けプロテクトレジスタ
である。
In FIG. 2, 201 is a CPU, 203' to 204 are each protected memory, 205 is a common memory, and 20
6 is a competition circuit, 208 is a disk control circuit, 21! ,2
17 and 231 are AND gates, 216 and 218 respectively
, 221 are OR gates, 215, 218, 22
1 is an OR gate and a 224-digit protect register, respectively.

第2図におりて、CPU201は処理動作開始に際して
、プロテクトメモリ制御信号線202によ!17、CP
U201のプロテクトメモリ203とディスク制御装置
208のプロテクトメモリ204とに対して書込み許可
、あるいは禁止の信号を送出する。
In FIG. 2, the CPU 201 uses the protect memory control signal line 202 to start the processing operation. 17.CP
A write permission or prohibition signal is sent to the protect memory 203 of U201 and the protect memory 204 of the disk control device 208.

書込み許可の場合、共通メモリ205のIKワード単位
のメモリブロックに相当する番地に状態%QIを書込む
。一方、書込み禁止の場合には、当該番地に状態tl 
Iを書込む。プロテクトメモリ203,209に書込ま
れるデータのアドレス指定は、第1図で説明したので、
ここでは省略する。
If writing is permitted, the state %QI is written to an address corresponding to a memory block of IK words in the common memory 205. On the other hand, if writing is prohibited, the state tl is applied to the address.
Write I. The addressing of data written to the protect memories 203 and 209 was explained in FIG.
It is omitted here.

次釦、処理装置が動作に人、!7、CPU201が共通
メモリ205に書込みを行う場合、信号1腺207を介
して競合回路20Bに対してメモリアクセス要求信号を
発すると、競合回路20Bは他の制御装置が共通メモリ
205を使用中であるならば、使用の終了を待って信号
線209を介してCPU201にアクセス許可信号を返
し、未使用中ならば即座に信号線209を介してCP 
U 201にメモリアクセス許可信号を返す。
Next button, the processing device is in operation,! 7. When the CPU 201 writes to the common memory 205, when it issues a memory access request signal to the competition circuit 20B via the signal 1 gland 207, the competition circuit 20B detects that another control device is using the common memory 205. If there is, an access permission signal is returned to the CPU 201 via the signal line 209 after waiting for the end of use, and if it is not in use, the access permission signal is immediately sent to the CPU 201 via the signal line 209.
A memory access permission signal is returned to U 201.

CPU201はアクセス許可信号を受信すると、信号線
201にアドレス情報AI  At−を出力する。信号
線210上のアドレス情報の内、上位アドレス情報AI
OA!・は信号線211からプロテクトメモリ205に
入力され、信号線211上のアドレス情報で示されるア
ドレスに記憶されているプロテクトメモリ20Bの情報
をCPU 201のプロテクトメモリ20!iの出力信
号線212に出力する。
Upon receiving the access permission signal, the CPU 201 outputs address information AI At- to the signal line 201. Among the address information on the signal line 210, upper address information AI
OA! is input to the protect memory 205 from the signal line 211, and the information in the protect memory 20B stored at the address indicated by the address information on the signal line 211 is transferred to the protect memory 20! of the CPU 201. It is output to the output signal line 212 of i.

信号線212上の信号の状態は、信号線20Bの許可状
態%1#に応じ、ANDゲート213を通し、信号線2
14上に導かれる。ANDゲート21sの出力は、さら
にORゲート215を通して出力信号+1lI2 f 
6上に出力される。
The state of the signal on the signal line 212 is determined by the signal on the signal line 2 through the AND gate 213 according to the permission state %1# of the signal line 20B.
14. The output of the AND gate 21s is further passed through the OR gate 215 to an output signal +1lI2f
6 is output.

したがって、信号線212上の信号の状態が101であ
るときには書込み許可を示しているので、この場合には
信号線216上の信号も状態%Olとなシ、書込み用の
ANDゲート217を開ける。
Therefore, when the state of the signal on the signal line 212 is 101, it indicates write permission, so in this case, the signal on the signal line 216 is also in the state %Ol, and the AND gate 217 for writing is opened.

信号線210上のアドレス情報はORゲート218を通
してORゲート216上に出力され、アドレス信号線2
19に入力される。この後、CPU201より信号線2
2G上に出力されているメモリ書込み信号(以下、WE
と称する。)は、WE図のORゲート221と信号線2
22とを通してANDゲート217に入力されるWE大
入力なる。ANDゲート217は信号線216上の信号
の状態に応じて開いているため、共通メモリ206のW
E入力信号線225に伝達されている。
The address information on signal line 210 is output through OR gate 218 onto OR gate 216, and the address information on signal line 2
19 is input. After this, from the CPU 201, the signal line 2
Memory write signal (hereinafter referred to as WE) output on 2G
It is called. ) is the OR gate 221 and signal line 2 in the WE diagram.
This is the WE large input that is input to the AND gate 217 through 22 and 22. Since the AND gate 217 is open depending on the state of the signal on the signal line 216, the W of the common memory 206 is
It is transmitted to the E input signal line 225.

第1図では示してないが、データ信号線上の情報が、指
定された共通メモリ205のアドレスに書込まれて正常
に動作が終了する。
Although not shown in FIG. 1, the information on the data signal line is written to the designated address of the common memory 205, and the operation ends normally.

逆に、信号線212上の信号の状態が%11のときには
書込みの禁止を示しているので、このときに信号線21
2上の信号の状態11#が信号線21B上に出力され、
ANDゲート217を閉じて信号lI222上のWE倍
信号通過を阻止し、共通メモリ205への書込みを防止
する。これとともに、信号線21B上の信号の状態%1
#はプロテクトレジスタ224の入力情報を記憶するト
リガ信号となシ、信号線209上に送出される。これに
よって信号入力情報の状態が内部に記憶される。
Conversely, when the state of the signal on the signal line 212 is %11, it indicates that writing is prohibited.
The state 11# of the signal on 2 is output on the signal line 21B,
AND gate 217 is closed to prevent the WE multiplication signal on signal lI 222 from passing and prevent writing to common memory 205. Along with this, the state of the signal on the signal line 21B is %1
# is a trigger signal for storing input information of the protect register 224, and is sent onto the signal line 209. This causes the state of the signal input information to be stored internally.

信号線216上の信号の状態では、割込みなどの手段に
よってCPUI O1に報告され、CPU201の異常
処理プログラムを起動させる。異常処理プログラムによ
り、フリップフロップ224の記憶情報を読出し信号線
225によりCPU201に読込み、この内容をプリン
タなどの出力機器に出力し、どの制御装置にプログラム
バグによる書込み違反が発生したかを知ることができる
The state of the signal on the signal line 216 is reported to the CPU I O1 by means such as an interrupt, and the abnormality handling program of the CPU 201 is activated. The abnormality processing program reads out the information stored in the flip-flop 224 and reads it into the CPU 201 via the read signal line 225, and outputs this content to an output device such as a printer, so that it is possible to know in which control device a write violation has occurred due to a program bug. can.

ディスク制御装置2021が共通メモリ205に書込み
を行う場合も同様であり、信号線226上にメモリアク
セス要求を出力すると、競合回路208が信号線227
にアクセス許可信号を返すまで待ってから、信号MI2
2 S上にアドレス信号Al−A18を出力する。信号
線228上の上位アドレス情報A!・−All は信号
線229からプロテクトメモリ204に入力され、プロ
テクトメモリ206の記憶情報を出力信号線250上に
出力する。信号線’150上の信号の状態はANDゲー
ト231を通シ、信号線218に導かれる。
The same applies when the disk control device 2021 writes to the common memory 205. When a memory access request is output on the signal line 226, the contention circuit 208 outputs a memory access request on the signal line 227.
Wait until the access permission signal is returned to MI2, and then send the signal MI2.
2 Output address signal Al-A18 on S. Upper address information A on signal line 228! -All is input to the protect memory 204 from the signal line 229 and outputs the stored information in the protect memory 206 onto the output signal line 250. The state of the signal on signal line '150 is routed through AND gate 231 to signal line 218.

以下、上記動作と同様にメモリ制御動作が実施される。Thereafter, memory control operations are performed in the same manner as the above operations.

(発明の効果) 以上説明したように本発明は、マイクロプロセサを核と
してプログラムで動作する複数の制御装置を共通メモリ
を介して動作させる処理装置において、共通メモリへの
書込み違反を犯した制御装置を記憶し、且つ、CPUK
より上記記憶内容をレジスタ回路で読出すととくよシ、
処理装置内の書込み違反を犯した制御装置を容易に識別
でき、早期に特定した制御装置のプログラムのデバッグ
を行うことができるという効果がある。
(Effects of the Invention) As described above, the present invention provides a processing device that operates a plurality of control devices that operate according to a program using a microprocessor as a core, through a common memory, in which a control device that commits a write violation to the common memory. and CPUK
If the above memory contents are read out using a register circuit,
This has the advantage that a control device that has committed a write violation within a processing device can be easily identified, and the program of the identified control device can be debugged at an early stage.

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

第1図は、プログラムデバッグ方式によるメモリ書込み
防止回路の原理を示すブロック図である。 第2図は、本発明によるプログラムデバッグ方式の一実
施例を示すブロック図である。 101、!Of・φ・CPU 102.205−−−共通メモリ 103.205.2G4・・プロテクトメモリ103・
・・WEゲート 206・・・メモリアクセス競合回路 208・―φディスク制御装置 213.217,251−Φ−ANDゲート2115.
218,221 φ・・ORゲート224・Φ・プロテ
クトレジスタ 104〜107,109,202.LoT。 209〜212,214,216,219゜220.2
22.22i5.225〜230・・・番・信号線
FIG. 1 is a block diagram showing the principle of a memory write prevention circuit using a program debugging method. FIG. 2 is a block diagram showing an embodiment of the program debugging method according to the present invention. 101,! Of・φ・CPU 102.205---Common memory 103.205.2G4・・Protect memory 103・
...WE gate 206...Memory access contention circuit 208--φ disk controller 213, 217, 251-φ-AND gate 2115.
218, 221 φ・・OR gate 224・φ・protect register 104 to 107, 109, 202. LoT. 209~212,214,216,219゜220.2
22.22i5.225~230... No./Signal line

Claims (1)

【特許請求の範囲】[Claims] 装置間の情報を授受するための共通メモリと、各制御装
置ごとに前記共通メモリのブロック単位にCPUの指示
による書込み禁止情報を記憶するための書込みプロテク
トメモリと、前記各制御装置により前記共通メモリへ同
時にアクセスされることがないように順序正しくメモリ
アクセスを実行するための競合防止手段と、前記共通メ
モリへの書込み違反が発生した制御装置を前記CPUに
より読出すことができるよう記憶するためのレジスタ回
路とを具備して構成したことを特徴とするプログラムデ
バッグ方式。
a common memory for exchanging information between devices; a write protect memory for storing write-protected information in block units of the common memory for each control device according to instructions from the CPU; contention prevention means for executing memory accesses in an orderly manner so that the memory accesses are not simultaneously accessed; and a means for storing a control device in which a writing violation has occurred in the common memory so that it can be read by the CPU. A program debugging method characterized by comprising a register circuit.
JP1028273A 1989-02-07 1989-02-07 Program debugging system Pending JPH02206864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1028273A JPH02206864A (en) 1989-02-07 1989-02-07 Program debugging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1028273A JPH02206864A (en) 1989-02-07 1989-02-07 Program debugging system

Publications (1)

Publication Number Publication Date
JPH02206864A true JPH02206864A (en) 1990-08-16

Family

ID=12243980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1028273A Pending JPH02206864A (en) 1989-02-07 1989-02-07 Program debugging system

Country Status (1)

Country Link
JP (1) JPH02206864A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58159167A (en) * 1982-03-17 1983-09-21 Toshiba Corp Multi-processor system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58159167A (en) * 1982-03-17 1983-09-21 Toshiba Corp Multi-processor system

Similar Documents

Publication Publication Date Title
KR960011613A (en) Data processing device
KR910001557A (en) Apparatus and method for delivering commands in computing systems
JPH02206864A (en) Program debugging system
US6742073B1 (en) Bus controller technique to control N buses
JP2000066922A (en) Storage contention preventing method for all instruction trace data in secondary storage device
JPH0934795A (en) Copy protection method for cpu program
KR20020054519A (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
KR850006743A (en) System for bypass control during computer pipeline operation
JPH0581087A (en) Processor monitoring system
JPH0219508B2 (en)
JPS626341A (en) Information processor
KR940006823B1 (en) Circuit for protecting memory write
JPS6073762A (en) Memory protective system
JP2665173B2 (en) Processor trap circuit
JPH0447350A (en) Main storage read/response control
JPS59112494A (en) Memory testing system
JPH06187520A (en) Ic memory card
JPH0635747A (en) Debug supporting device
JPH0258648B2 (en)
JPH02105240A (en) Virtual storage managing device
JP2619671B2 (en) Memory control circuit
JPS63278160A (en) Testing system for buffer invalidation processor
JPS61187053A (en) Program memory management system
JPS62108333A (en) Semiconductor device
JPS61208150A (en) Collecting device for fault data