JPS58168172A - Multiprocessor debugging device - Google Patents

Multiprocessor debugging device

Info

Publication number
JPS58168172A
JPS58168172A JP57051731A JP5173182A JPS58168172A JP S58168172 A JPS58168172 A JP S58168172A JP 57051731 A JP57051731 A JP 57051731A JP 5173182 A JP5173182 A JP 5173182A JP S58168172 A JPS58168172 A JP S58168172A
Authority
JP
Japan
Prior art keywords
monitor program
debug monitor
control circuit
flop
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
JP57051731A
Other languages
Japanese (ja)
Inventor
Sumio Ozawa
小澤 純雄
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP57051731A priority Critical patent/JPS58168172A/en
Publication of JPS58168172A publication Critical patent/JPS58168172A/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)
  • Multi Processors (AREA)

Abstract

PURPOSE:To inhibit the execution such as unnecessary memory access and to avoid confusion of a common bus, by providing a control circuit which inputs a debug monitor program start signal and starts debugging when a true value is inputted. CONSTITUTION:The 1st and the 2nd CPUs 1, 2, a debug monitor program 3, an application program 4, a typewriter 5 giving instruction, and the 1st flip-flop 6 are connected mutually via a common data bus 10. When the 2nd flip-flop 7 stores the stop state of the CPU1 and the debug monitor program start signal and a true value are inputted from the 1st flip-flop 6, a control circuit 9 starts debugging.

Description

【発明の詳細な説明】 本発明は少なくとも2つ以上の中央処理装置(以下CP
σと略記する)を有するコンビュータグ。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides at least two or more central processing units (hereinafter referred to as CP).
Conview tag with (abbreviated as σ).

のデパックを行なうマルチプロセッサハング装置にAす
るものである。
This is for a multiprocessor hang device that performs depacking.

従来よりマイクロコンピュータのプログラム開発を行な
う鍬には、デバッグされる応用プロゲラA以外ICデバ
ッグモニタプログラムを主記憶部内に設け、そのデバッ
グモニアプログラムにより主記憶部内における指定され
たアドレスの内容−照、内容修正あるいはCPU内部レ
ジスタの参照。
Traditionally, in the case of machines that develop programs for microcomputers, an IC debug monitor program other than Application Progera A to be debugged is installed in the main memory, and the debug monitor program checks the contents of a specified address in the main memory. Modify or refer to CPU internal registers.

値設定等を実行し、きめ細かなプログラムデバッグを行
なっている。
Performs value settings, etc., and performs detailed program debugging.

さて上述したようなプログラムデバッグは割り込み信号
′f:CPσに入力することにより起動されデバッグ中
には外部のタイプライタからのデバッグ開始コマンド命
令にエリ主記憶部及びCPU内部レジスタの参照・修正
を実行する。そしてデバッグの実行が終了すると再び外
部のタイプライタからのデバッグ終了コマンド命令待ち
となりアイドル状態となる。すなわちCPUは停止せず
に引き続いてアイドル状、態を保持しているため主記憶
部からの命令を7エツシレ続ける。そして外部のタイプ
2イタから応用プロプラム実行を指示するコマンド命令
を受けつけると、デバッグ実行割り込みからの戻り番地
をタイグライタのコマンドにより指定された値に設定し
、復帰命令の実行によって目的とする応用プログラムを
実行開始する。
Now, program debugging as described above is started by inputting the interrupt signal 'f: CPσ, and during debugging, the main memory and CPU internal registers are referenced and modified in response to a debugging start command from an external typewriter. do. When the execution of debugging is completed, the device waits again for a debugging end command from an external typewriter and enters an idle state. That is, since the CPU does not stop and continues to maintain an idle state, it continues to receive seven commands from the main memory. When a command instruction to execute an application program is received from an external type 2 iter, the return address from the debug execution interrupt is set to the value specified by the TIG writer command, and the target application program is executed by executing the return instruction. Start execution.

しかしながら上述したようなデバッグの方法は複e個の
C′P Uより構成されて゛いるマルチプロセッサシス
テムのデバッグには不適当なものである。
However, the above-described debugging method is inappropriate for debugging a multiprocessor system composed of a plurality of e C'PUs.

すなわちfi数個のCPUより111f成されているマ
ルチプロセッサシステムに上述したようなデパックを行
なうと、デバッグモニタプログラムは途中で停止させる
ことができずコマンド入力を待つアイドル状態において
も主記憶部の命令をフェッチし就けなければならないた
め、上記・隠部にアクセスするそれぞれのCPUにおい
て常にアイドル状態のCPUが含まれることとなり、マ
ルチプロセッサシステムの共通バスを混雑させてしまい
、マルチプロセッサシステムの性能を著しく低下させる
In other words, when depacking as described above is performed on a multiprocessor system consisting of 111f CPUs with several fi CPUs, the debug monitor program cannot be stopped midway, and even in the idle state waiting for command input, the instructions in the main memory are As a result, each CPU that accesses the above-mentioned hidden part always includes an idle CPU, congesting the common bus of the multiprocessor system and significantly reducing the performance of the multiprocessor system. lower.

本発明は上記欠点に鑑み、少なくとも1つのCPUが停
止状態にある際デバッグモニタプログラムを実行すると
ともに、前記デバッグモニタプログラムが終了するとデ
バッグモニタプログラム終了命令を実行し以降のプログ
ラム実行を行なわないようにすることにより、不必要な
メモリアクセスの実行を禁止してマルチプロセッサシス
テムの共通バスの混雑を防止するマルチプロセッサデバ
ッグ装置を提供するものである。
In view of the above-mentioned drawbacks, the present invention executes a debug monitor program when at least one CPU is in a stopped state, and when the debug monitor program ends, executes a debug monitor program termination instruction and does not execute subsequent programs. By doing so, a multiprocessor debugging device is provided that prevents congestion of a common bus in a multiprocessor system by prohibiting execution of unnecessary memory accesses.

以下、図面を参照しながら本発明の一実施例について説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

図面は本発明の一実施例におけるマルチプロセッサデパ
ック装置のブロック図である。図において、1はf!J
1のCPU、2は第2のCPU、aは主記憶部(図示せ
ず)以外の記憶装置に格納されているデバッグモニタプ
ログラム、4は主記憶部に格納されている応用プログラ
ム、6は外部から第1.第2のCPU1.’2に命令を
与えるタイプライタ、6はタイプライタ6の命令により
デバッグモニタプログラム起動信号を第1.第2のCP
U1.2に供給する5g1の7リツプフロツプである。
The drawing is a block diagram of a multiprocessor depacking device in one embodiment of the present invention. In the figure, 1 is f! J
1 is a CPU, 2 is a second CPU, a is a debug monitor program stored in a storage device other than the main memory (not shown), 4 is an application program stored in the main memory, 6 is an external From 1st. Second CPU1. A typewriter 6 gives instructions to the first ``2'' and ``6'' outputs a debug monitor program start signal to the first ``1''. 2nd CP
This is a 5g1 7 lip-flop feeding U1.2.

以下、第1のCPU1の構成をさらに詳細に説明する。The configuration of the first CPU 1 will be described in more detail below.

7はCPU1の停止状態あるいは応用プログラム実行状
態を記憶している第2の7リツプ・フロップで第1のC
PU1のアドレス空間の適当な場所に割り付けられてい
る。8はffJ2の7リツプ・70ツブ7の出力と第1
のフリップ70ツグ6のデバッグモニタプログラム起動
信号の論理積をとる論理積素子で、CPU1が停止状態
にある際のみデバッグモニタプログラム開始信号を出力
する。9は論理積素子2から送出されるデバッグモニタ
プログラム開始信号によりデバッグの制御を開始する制
御回路で、デバッグモニタプログラム3のプログラムを
共通データバス1oを介して一時記憶するバッファ11
から入力する。12はデバッグモニタプログラム3のプ
ログラム進行状態のみを使用されるデバッグモニタプロ
グラムカウンタで、カウント数によりデバッグモニタプ
ログラム3のアドレス指定を行う。なお図示はしないが
、第2のCPU2も第1のCPU1と同様な構成となっ
ている。
7 is a second 7 lip-flop that stores the stop state of CPU 1 or the application program execution state;
It is allocated to an appropriate location in the address space of PU1. 8 is the output of ffJ2's 7 lip/70 tube 7 and the first
The flip 70 is an AND element that takes the logical product of the debug monitor program start signal of the switch 6, and outputs the debug monitor program start signal only when the CPU 1 is in a stopped state. Reference numeral 9 denotes a control circuit that starts debugging control in response to a debug monitor program start signal sent from the AND element 2, and a buffer 11 that temporarily stores the program of the debug monitor program 3 via the common data bus 1o.
Enter from. A debug monitor program counter 12 is used only for the program progress state of the debug monitor program 3, and the address of the debug monitor program 3 is specified by the count number. Although not shown, the second CPU 2 also has the same configuration as the first CPU 1.

上記のように構成されたマルチプロセッサデバッグ装置
において、以下その動作について説明する。
The operation of the multiprocessor debugging device configured as described above will be described below.

(〜 まず第1のCPU1のみが停止状態にあるとすれ
ば、第2の7リツプフロツプ7はHigh信号を出力し
ている。一方デバッグを行なうためタイプライタ6の操
作により第1のクリップ・70ツブ6は論理積素子8に
digh信号を送出すると共に、制御回路9にデバッグ
プログラム3の実行を開始する情報(以下、真値と記(
1)を出力する。そこで制御回路9は論理積素子8のデ
パックモニタプログラム開始信号と第1のノリツブ70
ツグ6からの真直によりデバッグを開始する。すなわち
制御回路9はデバッグモニタプログラムカウンタ12に
初期値を設定すると共に、デバッグモニタプログラム3
にプログラム送出を命令し共通データバス1oからバッ
ファ11を介して入力する。そして制御回路9はデバッ
グモニタグログラム3のプログラム内容を解釈し、プロ
グラム内容の命令に対応した動作を行ない、引き続いて
バッファ11に2ツチされている次のプログラム内容を
入力する。
(~ First, if only the first CPU 1 is in a stopped state, the second 7-lip flop 7 is outputting a High signal. On the other hand, in order to perform debugging, the first clip/70 lip flop 7 is output by operating the typewriter 6. 6 sends a digh signal to the AND element 8, and also sends information (hereinafter referred to as true value) to the control circuit 9 to start executing the debug program 3.
1) Output. Therefore, the control circuit 9 outputs the depack monitor program start signal of the AND element 8 and the first control circuit 70.
Start debugging by straightening from Tsug 6. That is, the control circuit 9 sets an initial value in the debug monitor program counter 12 and also sets the debug monitor program counter 3 to an initial value.
The program is inputted from the common data bus 1o via the buffer 11. The control circuit 9 then interprets the program content of the debug monitor program 3, performs an operation corresponding to the command of the program content, and then inputs the next program content stored in the buffer 11.

以下同様に動作を続けて、主記憶#(図示せず)の内容
の参照、修正、CPU内蔵レジスタの参照値の設定など
のプログラムデパックを1行なう。
Thereafter, the operation continues in the same manner, and one program depack is performed, such as referencing and modifying the contents of main memory # (not shown), and setting reference values of the CPU built-in registers.

そしてデバッグモニタプログラム3の最終場所にはプロ
グラム実行終了を示す命令が設け・られていることによ
り、制御回路9がこのプロ)ラム実行終了命令を解釈実
行す・ると、以降のデバッグモニタプログラム3の歩進
を停止する。すなわち制御回路9はデバッグモニタプロ
グラム3とのアクセス動作を停止するために、共通デー
タバス10上には制御回1@9とデバッグモニタプログ
ラム3との情報の授受はなくなる。
Since an instruction indicating the end of program execution is provided at the final location of the debug monitor program 3, when the control circuit 9 interprets and executes this program execution end instruction, the subsequent debug monitor program 3 Stop progressing. That is, since the control circuit 9 stops the access operation with the debug monitor program 3, the exchange of information between the control circuit 1@9 and the debug monitor program 3 is no longer carried out on the common data bus 10.

(B)  また第1のCPU1がRUN状態すなわち応
用プログラム4を実行しており、第2のCPU2が停止
状態である場合には第2の7リツプ舎フロツプ7がLo
vv 信号を論理積素子8に出力していることにより、
論理積素子8は制御回路9にデパ2グモニタプログラム
開始信号を出力しない。そのため第1のCPU1はデバ
ッグモニタプログラム3を起動することなく、応用プロ
グラム4の実行を継続する。一方停止状態にある第2の
CPU2は第2の7リツプ70ツブ6及び内部クリップ
フロッグにより、(〜で説明したような第1のCPU1
と同様なデバッグを開始する。
(B) Furthermore, when the first CPU 1 is in the RUN state, that is, executing the application program 4, and the second CPU 2 is in the stopped state, the second 7-lip flop 7 is in the Lo
By outputting the vv signal to the AND element 8,
The AND element 8 does not output the Depach 2 monitor program start signal to the control circuit 9. Therefore, the first CPU 1 continues executing the application program 4 without starting the debug monitor program 3. On the other hand, the second CPU 2 in the stopped state is connected to the first CPU 1 by the second 7 lip 70 knob 6 and the internal clip frog (as explained in ~).
Start debugging similar to .

q また第1のCP(Jl及び第2のCPU2が共に停
止状態にあ・る場合には第1のフリップフロップ6がC
PUの複数1−IUN状dを検知し、デバッグモニタプ
ログラム3の開始においてTEST ArJD RES
Ii:T命令を実行させ、同一メモリサイクル内で第1
のノリツブ70ツグ6は第1のCf’U1の制御回路9
に真+1&を、また第2のCPU2の制御回路(図示せ
ず)に偽直を送出し、第1のCPU1に対してはデバッ
グ開始状態にし、第2のCPU2に対してはデバッグ開
始を禁止することにより複数個CPUのデバッグ排他制
御をする。
q Also, when the first CP (Jl) and the second CPU 2 are both in a stopped state, the first flip-flop 6 is
Detecting multiple 1-IUN status d of PU, TEST ArJD RES at start of debug monitor program 3
Ii: Execute the T instruction and execute the first instruction within the same memory cycle.
The control circuit 70 and the control circuit 6 of the first Cf'U1 are
Sends true +1& to the control circuit (not shown) of the second CPU2, puts the first CPU1 in the debugging start state, and prohibits the second CPU2 from starting debugging. By doing this, exclusive debugging control of multiple CPUs is performed.

以上のように本実施例によれば、!@1.第1.、lツ
ブフロップ6.7により停止状態にあるCPUの制御回
路に対してデバッグを行なわせることにより、CPUの
実行効率を低下させずにデパックモニタプログラム3を
実行することが□でき、また複数@CPUが停止状態の
場合にも簡単な構成により排他制#金行なうことができ
る。さらに応用プログラムが格納される主記憶部の領域
以外ムのプログラム力ウタ(図示せず)とは別にデバッ
グモニタプログラムカウンタ12を設けていることによ
り、デバッグモニタプログラムにより応用プログラムの
格納領域が狭められるようなことはない。
As described above, according to this embodiment,! @1. 1st. By debugging the control circuit of the halted CPU using the block flop 6.7, it is possible to execute the depack monitor program 3 without reducing the execution efficiency of the CPU. Even when the CPU is in a stopped state, exclusive control can be performed with a simple configuration. Furthermore, by providing the debug monitor program counter 12 in addition to the main memory area where the application program is stored, the debug monitor program counter 12 is provided separately from the program counter (not shown), so that the storage area for the application program is narrowed by the debug monitor program. There is no such thing.

以上のように本発明は第2の7リツプフロツプが複数個
の内の1つの中央処理表置の停止状態をを入力すると共
に、前記第1の7リツプ・フロップから真値を入力する
とデバッグを開始する制御[l]回路を設けることによ
り、不必要なメモリアクセス等の実行を禁止してマルチ
プロセッサシステムの共通バスの混雑を防止することが
でき、その工業的価値は大なるものがある。
As described above, the present invention starts debugging when the second 7-lip-flop inputs the stop state of one of the plurality of central processing units and also inputs the true value from the first 7-lip-flop. By providing a control [l] circuit to prevent unnecessary memory access, etc., it is possible to prevent congestion of the common bus of a multiprocessor system, and this has great industrial value.

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

図は本発明の一実施例におけるマルチプロセッサデバッ
グ装置のブロック図である。 1・・1・第1のCPU 、2・−・・・・第2のCP
U。 3・・・・・デバッグモニタプログラム、6・・・・・
・第1の7リツプフロツプ、711・・・・第2の7リ
ツプフロツプ、8・・・・・・論4積素子、9・・・・
・・制御回路、」2・・・・・デバッグモニタプログラ
ムカウンタ。
The figure is a block diagram of a multiprocessor debugging device according to an embodiment of the present invention. 1..1.First CPU, 2..-.Second CPU
U. 3...Debug monitor program, 6...
・First 7-lip flop, 711...Second 7-lip flop, 8......Normal 4 product element, 9...
...Control circuit, "2...Debug monitor program counter.

Claims (1)

【特許請求の範囲】[Claims] タイ、プライターからのコマンドによりデバッグモニタ
プログラム起動信号を複数個の中央処理装置に送出する
第1の7リツプフロツプと、前記複数個の中央処理装置
の内の1つの停止状態及びプログラム実行状態を記憶し
ている第2の7リツプ70ツブと、前記デバッグモニタ
プログラム起動信号と前記第2の7リツプフロツプの出
力とを入力する論理積手段と、前記論理積手段の出力と
前記第1の7リツプフロツプから送出される真・偽値と
により起動される制御回路と、前記制御回路により制御
されるデバッグモニタプログラムカウンタと、前記it
’s回路に送出されるデバッグモニタプログラムを記憶
しているメモリ装置と金具漏し、前記第2の7リツプ+
170ツブが前記複数個の内の中央処理装置1つの停止
状態を記1惠していル際に前記デバッグモニタプログラ
ム起動信号が入力されると共に前記真値が前記制御回路
に供帖さ扛ると、前記制御回路が起動し前記プログラム
カウンタにより指定されるアドレスに格納さ扛ている前
記メモリ装置内の前記デバッグモニタプログラムを絖み
出し実行するようにしたことを特徴トスるマルチプロセ
ッサデパック装置。
a first 7-lip flop that sends a debug monitor program activation signal to a plurality of central processing units in response to a command from a printer; a second 7-lip flop 70 block, an AND means for inputting the debug monitor program activation signal and the output of the second 7-lip flop, and an output of the AND means and the output from the first 7-lip flop. a control circuit activated by the true/false value of the it; a debug monitor program counter controlled by the control circuit;
The memory device storing the debug monitor program sent to the 's circuit and the metal fittings are leaked, and the second 7 lip +
When the debug monitor program activation signal is inputted when the 170 knob records the stop state of one of the plurality of central processing units, and the true value is supplied to the control circuit. . A multiprocessor depacking device characterized in that said control circuit starts up and starts and executes said debug monitor program in said memory device stored at an address designated by said program counter.
JP57051731A 1982-03-29 1982-03-29 Multiprocessor debugging device Pending JPS58168172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57051731A JPS58168172A (en) 1982-03-29 1982-03-29 Multiprocessor debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57051731A JPS58168172A (en) 1982-03-29 1982-03-29 Multiprocessor debugging device

Publications (1)

Publication Number Publication Date
JPS58168172A true JPS58168172A (en) 1983-10-04

Family

ID=12895036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57051731A Pending JPS58168172A (en) 1982-03-29 1982-03-29 Multiprocessor debugging device

Country Status (1)

Country Link
JP (1) JPS58168172A (en)

Similar Documents

Publication Publication Date Title
US4729094A (en) Method and apparatus for coordinating execution of an instruction by a coprocessor
US4715013A (en) Coprocessor instruction format
JPS5841538B2 (en) Multiprocessor system instructions
JPS6258341A (en) Input and output interruption processing system
US4750110A (en) Method and apparatus for executing an instruction contingent upon a condition present in another data processor
JPH05216835A (en) Interruption-retrial decreasing apparatus
US5021991A (en) Coprocessor instruction format
EP0523758B1 (en) A method and apparatus for coordinating execution of an instruction by a coprocessor
US4758950A (en) Method and apparatus for selectively delaying an interrupt of a coprocessor
US4821231A (en) Method and apparatus for selectively evaluating an effective address for a coprocessor
US4914578A (en) Method and apparatus for interrupting a coprocessor
JPH0916409A (en) Microcomputer
US4994961A (en) Coprocessor instruction format
JPS58168172A (en) Multiprocessor debugging device
US4758978A (en) Method and apparatus for selectively evaluating an effective address for a coprocessor
JPH0668725B2 (en) Device for responding to interrupt condition in data processing system and method for responding to asynchronous interrupt condition
JP2672599B2 (en) Computer system
US4811274A (en) Method and apparatus for selectively evaluating an effective address for a coprocessor
JP3139310B2 (en) Digital signal processor
JP3127737B2 (en) Digital signal processor
JPH0440532A (en) Real time processor
JPS5942331B2 (en) Prosetsusasouchinoseigiohoshiki
JPH0683640A (en) Interruption response processing system
JPS59177631A (en) Dma control system
JPH11143816A (en) Data transferring device