[go: up one dir, main page]

JPH0638235B2 - Information processing equipment - Google Patents

Information processing equipment

Info

Publication number
JPH0638235B2
JPH0638235B2 JP61189693A JP18969386A JPH0638235B2 JP H0638235 B2 JPH0638235 B2 JP H0638235B2 JP 61189693 A JP61189693 A JP 61189693A JP 18969386 A JP18969386 A JP 18969386A JP H0638235 B2 JPH0638235 B2 JP H0638235B2
Authority
JP
Japan
Prior art keywords
debug
register
interrupt
instruction
signal
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.)
Expired - Lifetime
Application number
JP61189693A
Other languages
Japanese (ja)
Other versions
JPS6346543A (en
Inventor
康治 斉藤
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 JP61189693A priority Critical patent/JPH0638235B2/en
Publication of JPS6346543A publication Critical patent/JPS6346543A/en
Publication of JPH0638235B2 publication Critical patent/JPH0638235B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプログラムで動作するパイプライン制
御の情報処理装置に関し,特にデバグ割込みを可能とす
る情報処理装置に関する。
Description: TECHNICAL FIELD The present invention relates to a pipeline-controlled information processing apparatus that operates by a microprogram, and more particularly to an information processing apparatus that enables debug interrupts.

〔従来の技術〕[Conventional technology]

従来,上記のような情報処理装置においては,デバグ要
因検出タイミングとデバグ割込みタイミングは時間的開
きが少なかったので,デバグ割込みに関して命令に対応
するマイクロプログラムは意識する必要が無かったが,
今日クロックの高速化に併い,パイプラインのパイプ段
数が増加し,デバグ要因検出タイミングとデバグ割込み
タイミングの時間的開きが大きくなってきたので,命令
に対応して動作するマイクロプログラムがデバグ割込み
に関して意識しなければならなくなってきた。
Conventionally, in the above-described information processing apparatus, since there is little time difference between the debug factor detection timing and the debug interrupt timing, it is not necessary to be aware of the microprogram corresponding to the instruction regarding the debug interrupt.
With the increase in clock speed, the number of pipeline stages in the pipeline has increased, and the time difference between the debug factor detection timing and the debug interrupt timing has increased. I have to be aware of it.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記のように命令に対応して動作するマイクロプログラ
ムがデバグ割込みに関して意識すると,マイクロプログ
ラムステップの増加や命令の実行性能の低下を招くとい
う問題が発生した。
As described above, when the microprogram operating in response to the instruction is aware of the debug interrupt, there arises a problem that the number of microprogram steps is increased and the instruction execution performance is deteriorated.

したがって本発明はパイプラインの段数が大きい場合に
おいてもデバグ割込みに関して意識しなくて済む情報処
理装置を提供しようとするものである。
Therefore, the present invention is intended to provide an information processing apparatus that does not need to be aware of a debug interrupt even when the number of pipeline stages is large.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の情報処理装置,マイクロプログラム方式で動作
するパイプライン制御の情報処理装置であって,一連の
ソフト命令を逐次実行するとき,システムがデバグ状態
であることを示すデバグ状態表示手段と,ソフト命令に
関するデバグ要因を検出するデバグ要因検出手段と,シ
ステムがデバグ状態の時,デバグ割込みを有効とするデ
バグ要因に対応したデバグ割込みマスク手段と,前記デ
バグ状態表示手段,前記デバグ要因検出手段及び前記デ
バグ割込みマスク手段から得たパイプラインの上位ステ
ージのデバグ情報を複数の前記ソフト命令に関してバッ
ファしうるデバグ情報バッファ手段と,パイプラインの
下位ステージで前記デバグ情報バッファ手段の保持する
前記デバグ情報に応答してデバグ割込みを発生するデバ
グ割込み手段とを有している。
An information processing apparatus according to the present invention, which is a pipeline-controlled information processing apparatus that operates according to a microprogram method, includes a debug state display unit that indicates that the system is in a debug state when a series of software instructions are sequentially executed, and software. Debug factor detecting means for detecting a debug factor related to an instruction, debug interrupt masking means corresponding to a debug factor for enabling a debug interrupt when the system is in a debug state, the debug status display means, the debug factor detecting means and the Debug information buffer means capable of buffering the debug information of the upper stage of the pipeline obtained from the debug interrupt mask means for a plurality of the soft instructions, and responding to the debug information held by the debug information buffer means in the lower stage of the pipeline To generate a debug interrupt. It is.

上記のような構成により、パイプラインの上位ステージ
で検出したデバグ割込み要因をバッファしておき、パイ
プラインの下位ステージで、バッファ内のデバグ割込み
要因の情報により、命令の実行を停止させることが出来
る。
With the above configuration, the debug interrupt factor detected in the upper stage of the pipeline is buffered, and the instruction execution can be stopped in the lower stage of the pipeline based on the debug interrupt factor information in the buffer. .

〔実施例〕〔Example〕

次に,本発明について図面を参照して詳細に説明する。 Next, the present invention will be described in detail with reference to the drawings.

第2図は本発明の一実施例による情報処理装置の概要を
示すブロック図である。
FIG. 2 is a block diagram showing an outline of an information processing apparatus according to an embodiment of the present invention.

デバグ状態表示レジスタ1はシステムがデバグ状態であ
ることを示す信号を保持するレジスタであり,デバグ要
因検出回路2はデバグ要因を検出するデバグ要因検出回
路であり,デバグ割込みマスクレジスタ3は前記デバグ
要因検出回路で検出したデバグ要因に対応して,その有
効性を条件ずけるマスク信号を保持する複数のビットか
ら成るレジスタである。
The debug status display register 1 is a register that holds a signal indicating that the system is in a debug state, the debug factor detection circuit 2 is a debug factor detection circuit that detects a debug factor, and the debug interrupt mask register 3 is the debug factor. It is a register consisting of a plurality of bits that holds a mask signal that determines the validity of the debug factor detected by the detection circuit.

デバグ情報バッファレジスタファイル4は前記デバグ状
態表示レジスタ1の保持する信号と,前記デバグ要因検
出回路2で検出したデバグ要因と,前記デバグ割込みマ
スクレジスタ3の保持するマスク信号とから得られるデ
バグ情報をバッファする複数のワードより構成されるレ
ジスタファイルである。そしてデバグ割込み回路5は前
記デバグ情報バッファレジスタファイル4の保持するデ
バグ情報によりデバグ割込みを発生する制御回路であ
る。
The debug information buffer register file 4 stores the debug information obtained from the signal held by the debug status display register 1, the debug factor detected by the debug factor detection circuit 2, and the mask signal held by the debug interrupt mask register 3. It is a register file consisting of multiple words to be buffered. The debug interrupt circuit 5 is a control circuit for generating a debug interrupt based on the debug information held by the debug information buffer register file 4.

第1図は第2図に示した情報処理装置をさらに詳細に示
した本発明の一実施例の構成図で,特に第2図中のデバ
グ情報バッファレジスタファイル4とデバグ割込み回路
5について詳細に記載したものである。また第1図では
機能的なユニットに分割して表現している。この第1図
におけるデバグ状態表示レジスタ1とデバグ要因検出手
段2とデバグ割込みマスクレジスタ3とデバグ情報バッ
ファレジスタファイル4とは,第2図中に示したものに
それぞれ対応している。なおデバグ情報バッファレジス
タファイル4及びデバグ割込回路5はデバグ割込み制御
ユニットを構成する。
FIG. 1 is a block diagram of an embodiment of the present invention showing the information processing apparatus shown in FIG. 2 in more detail. Particularly, the debug information buffer register file 4 and the debug interrupt circuit 5 in FIG. 2 will be described in detail. It is the one described. Further, in FIG. 1, it is expressed by being divided into functional units. The debug status display register 1, the debug factor detecting means 2, the debug interrupt mask register 3, and the debug information buffer register file 4 in FIG. 1 correspond to those shown in FIG. 2, respectively. The debug information buffer register file 4 and the debug interrupt circuit 5 form a debug interrupt control unit.

第1図において命令ユニット10は,一連のソフト命令
やそのオペランドを格納する主記憶装置(図示せず)か
ら対象とする命令を取出し,この命令の解読およびオペ
ランド取出しを行う。この命令ユニット10は命令の先
取り動作を行う先行制御部とも呼ばれ,システムのデバ
グ状態を示すデバグ状態表示レジスタ1と,命令取出
し,オペランド取出し,オペランド格納などに関するデ
バグ要因を検出するデバグ要因検出回路2と,デバグ割
込みマスク信号を保持する複数のビットからなるデバグ
割込みマスクレジスタ3と,ソフト命令に対応したマイ
クロプログラムの先頭アドレスを生成し該マイクロプロ
グラムを開始させる起動信号stを発生する命令起動回
路11とから構成される。
In FIG. 1, an instruction unit 10 fetches a target instruction from a main memory (not shown) that stores a series of software instructions and its operands, decodes the instruction, and fetches the operand. The instruction unit 10 is also called a preceding control unit that performs an instruction prefetch operation, and includes a debug status display register 1 that indicates the debug status of the system and a debug factor detection circuit that detects a debug factor related to instruction fetch, operand fetch, operand store, etc. 2, a debug interrupt mask register 3 composed of a plurality of bits for holding a debug interrupt mask signal, and an instruction activation circuit for generating a start signal st for generating a start address of a microprogram corresponding to a software instruction and starting the microprogram. 11 and 11.

デバグ状態レジスタ1の保持するデバグ状態信号deは
信号線101を介して出力される。デバグ要因検出回路
2で検出されたデバグ要因信号d,d,dはそれ
ぞれ信号線102,103,104を介して出力される。
レジスタ3の保持するデバグマスクm,m,m
それぞれ信号線106,107,108を介して出力さ
れる。
The debug status signal de held in the debug status register 1 is output via the signal line 101. The debug factor signals d 0 , d 1 and d 2 detected by the debug factor detection circuit 2 are output via signal lines 102, 103 and 104, respectively.
The debug masks m 0 , m 1 , m 2 held by the register 3 are output via the signal lines 106, 107, 108, respectively.

命令起動回路11の発生する命令に対応したマイクロプ
ログラムの先頭アドレスIは信号線111を介して出
力され,その起動信号Stは信号線109を介して出力
される。ここでデバグ要因検出回路2で検出するデバグ
要因信号d,d,dは該起動信号Stに同期して
いるものとする。レズスタ1,3の保持する信号はマイ
クロプログラムによりロードされるものとする。
Start address I a of the microprogram corresponding to the generated instruction of the instruction starting circuit 11 is output via the signal line 111, the start signal St is output via a signal line 109. Here, it is assumed that the debug factor signals d 0 , d 1 and d 2 detected by the debug factor detection circuit 2 are synchronized with the activation signal St. The signals held by the Lesbians 1 and 3 are loaded by the microprogram.

制御記憶ユニット20は,複数のマイクロ命令語を格納
し,一連のマイクロプログラムを逐次実行することがで
きる。また,制御記憶ユニット20は,命令ユニット1
0からもソフト命令に対応したマイクロプログラムの第
1ステップのアドレスを与えられ,逐次演算処理を制御
することができる。
The control storage unit 20 can store a plurality of microinstruction words and sequentially execute a series of microprograms. Further, the control storage unit 20 is the instruction unit 1
Even from 0, the address of the first step of the microprogram corresponding to the soft instruction is given, and the sequential arithmetic processing can be controlled.

アドレス回路21はアドレスレジスタ22の入力信号を
選択する回路で命令起動時命令ユニット2から出力され
る命令に対応するマイクロプログラムの先頭アドレスI
を選択し信号線203を介してアドレスレジスタ22
に与える。アドレスレジスタ22は制御記憶23にアド
レスを与えるレジスタであり,保持するアドレスadは
信号線203を介して制御記憶23に与えられる。
The address circuit 21 is a circuit for selecting an input signal of the address register 22, and the start address I of the microprogram corresponding to the instruction output from the instruction unit 2 at the time of instruction activation.
a and select the address register 22 via the signal line 203.
Give to. The address register 22 is a register that gives an address to the control memory 23, and the held address ad is given to the control memory 23 via the signal line 203.

制御記憶23は複数のマイクロ命令語を格納するメモリ
で,アドレスadに対応するマイクロ命令語を信号線2
01,204を介して出力する。信号線201を介して
出力される信号は現マイクロ命令語の次に実行されるマ
イクロ命令語のアドレスNaである。204を介して出
力される信号は制御レジスタ24に出力される。制御レ
ジスタ24の保持する制御信号は信号線205,206
を介してデバグ割込み回路5,実行ユニット30を制御
する。
The control memory 23 is a memory for storing a plurality of microinstruction words, and stores the microinstruction word corresponding to the address ad in the signal line 2
It outputs via 01 and 204. The signal output via the signal line 201 is the address N a of the microinstruction word executed next to the current microinstruction word. The signal output via 204 is output to the control register 24. The control signals held by the control register 24 are signal lines 205 and 206.
The debug interrupt circuit 5 and the execution unit 30 are controlled via the.

実行ユニット30は,複数の演算ステージを有するパイ
プライン化された演算部で,制御記憶ユニット20によ
ってその演算動作が制御される。この実行ユニット30
における演算動作は,演算パイプラインの最後の演算ス
テージが終了することによって実行が完了する。
The execution unit 30 is a pipelined arithmetic unit having a plurality of arithmetic stages, and its arithmetic operation is controlled by the control storage unit 20. This execution unit 30
The execution of the arithmetic operation in 1 is completed by the end of the last arithmetic stage of the arithmetic pipeline.

デバグ割込み制御ユニット内のデバグ情報バッファレジ
スタファイル4は,複数のワードから成るレジスタファ
イル41と,デバグ情報D,D,Dの書込みアド
レスを指定する書込みアドレスレジスタ42と,デバグ
情報D,D,Dの読出しアドレスを指定する読出
しアドレスレジスタ43とから構成されている。書込み
アドレスレジスタ42と読出しアドレスレジスタ43は
ホールド信号が解除されると現在保持している値に1を
加算する機能を有する。バッファレジスタファイル41
が格納するデバグ情報D,D1,Dは,デバグ状態
表示レジスタ1の保持するデバグ状態信号deとデバグ
要因検出回路が検出するデバグ要因信号d,d,d
とデバグ割込みマスクレジスタ3が保持するデバグ割
込みマスク信号m,m,mとから生成され,信号
線405,406,407を介してバッファレジスタフ
ァイル41に与えられる。ここでデバグ情報D
,Dとデバグ状態信号de,デバグ要因信号
,d,d,デバグ割込みマスク信号m
,mとの関係は次式の通りである。
The debug information buffer register file 4 in the debug interrupt control unit includes a register file 41 composed of a plurality of words, a write address register 42 for designating a write address of the debug information D 0 , D 1 , D 2 and a debug information D 0. , D 1 , D 2 and a read address register 43 for designating read addresses. The write address register 42 and the read address register 43 have a function of adding 1 to the value currently held when the hold signal is released. Buffer register file 41
The debug information D 0 , D 1 and D 2 stored by the debug state signal de stored in the debug state display register 1 and the debug factor signals d 0 , d 1 and d detected by the debug factor detection circuit.
2 and the debug interrupt mask signals m 0 , m 1 and m 2 held by the debug interrupt mask register 3 and are given to the buffer register file 41 via the signal lines 405, 406 and 407. Here, the debug information D 0 ,
D 1 and D 2 , the debug state signal de, the debug factor signals d 0 , d 1 and d 2 , the debug interrupt mask signal m 0 ,
The relationship with m 1 and m 2 is as follows.

0=de・d0・m01=de・d1・m12=de・d2・m2 書込みアドレスレジスタ42の書込みアドレスWPは信号
線401を介してバッファレジスタファイル41に与え
られ,WPに1を加算したアドレスは信号線402を介し
て書込みアドレスレジスタ42に与えられる。読出しア
ドレスレジスタ43の読出しアドレスRPは信号線403
を介してバッファレジスタファイル41に与えられ,RP
に1加算したアドレスは信号線404を介して読出しア
ドレスレジスタ43に与えられる。
D 0 = de · d 0 · m 0 D 1 = de · d 1 · m 1 D 2 = de · d 2 · m 2 The write address WP of the write address register 42 is stored in the buffer register file 41 via the signal line 401. The address given and adding 1 to WP is given to the write address register 42 via the signal line 402. The read address RP of the read address register 43 is the signal line 403.
Is given to the buffer register file 41 via
The address obtained by adding 1 to is supplied to the read address register 43 via the signal line 404.

デバグ割込み制御ユニット内のデバグ割込み回路5にお
いて,レジスタ51,52は制御信号を保持し伝搬する
1ビットのレジスタである。信号線205を介して出力
される制御レジスタ24の信号Ebは,命令に対応する
マイクロプログラムの最後のマイクロプログラム語が発
行する命令の実行終了を指示する信号である。信号Eb
を受けたレジスタ51は信号線411を介して信号Ec
をレジスタ52に与える。レジスタ52の保持する信号
をEdとする。履歴レジスタ54はデバグ割込み発生
時,そのデバグ要因を保持し,履歴するレジスタで,入
力信号Da,Db,Dcは信号線414,415,416
を介して与えられる。Da,Db,Dcと信号線408,4
09,410,413を介して与えられる信号d0′,
1′,d2′,Ed′との関係は次式の通りである。
In the debug interrupt circuit 5 in the debug interrupt control unit, the registers 51 and 52 are 1-bit registers that hold and propagate control signals. The signal E b of the control register 24 output via the signal line 205 is a signal instructing the end of execution of the instruction issued by the last microprogram word of the microprogram corresponding to the instruction. Signal E b
The register 51 receiving the signal receives the signal E c via the signal line 411.
To the register 52. The signal held by the register 52 is E d . Time history register 54 is debugging interrupt occurs, holding the debug factor in registers history, input signal D a, D b, D c is the signal lines 414, 415, and 416
Given through. D a , D b , D c and signal lines 408, 4
Signals d 0 ′,
The relationship with d 1 ′, d 2 ′ and E d ′ is as follows.

a=Ed′・d0′ Db=Ed′・d1′ Dc=Ed′・d2′ ここでd0′=バッファレジスタファイル41にバッフ
ァされた信号d01′=バッファレジスタファイル41にバッファされ
た信号d12′=バッファレジスタファイル41にバッファされ
た信号d2d′=E である。
D a = E d ′ · d 0 ′ D b = E d ′ · d 1 ′ D c = E d ′ · d 2 ′ where d 0 ′ = the signal d 0 d 1 ′ buffered in the buffer register file 41 = Signal d 1 d 2 ′ buffered in the buffer register file 41 = Signal d 2 E d ′ = E d buffered in the buffer register file 41.

履歴レジスタ54の保持するデバグ割込み要因履歴
0,H1,H2は信号線424を介して実行ユニット3
0に与えられ,マイクロプログラムが参照できるように
なっている。レジスタ55の入力信号Dabcは信号線4
17によって与えられ,DabcとDa,Db,Dcとの関係
は次式の通りである。
The debug interrupt factor history H 0 , H 1 , and H 2 held by the history register 54 are sent to the execution unit 3 via the signal line 424.
It is given to 0 and can be referenced by microprograms. The input signal D abc of the register 55 is the signal line 4
The relation between D abc and D a , D b , D c is given by the following equation.

abc=Da+Db+Dc レジスタ55はデバグ割込み信号をパルス化するための
1ビットのレジスタである。レジスタ55の保持する信
号をDdとする。
The D abc = D a + D b + D c register 55 is a 1-bit register for pulsing the debug interrupt signal. The signal held by the register 55 is D d .

レジスタ56,57は制御信号を保持し伝搬する1ビッ
トのレジスタである。レジスタ56の入力信号Deは信
号線418を介して与えられる。制御信号Deは前記レ
ジスタ55の保持するDdによってパルス化される。
Registers 56 and 57 are 1-bit registers that hold and propagate control signals. Input signal D e of the register 56 is supplied through the signal line 418. Control signal D e is pulsed by D d holding of the register 55.

e=Dd・(Da+Db+Dc) レジスタ56の保持する制御信号Deは信号線420を
介してレジスタ57に与えられる。レジスタ57の保持す
る制御信号をDfとする。フリップフロップ(FF)5
3の保持する信号Vは制御記憶レジスタ24の保持する
制御信号の有効状態を示す。フリップフロップ53のセ
ット,リセット条件は次式の通りである。
D e = D d · (D a + D b + D c ) The control signal D e held by the register 56 is given to the register 57 via the signal line 420. The control signal held by the register 57 is D f . Flip-flop (FF) 5
The signal V held by 3 indicates the valid state of the control signal held by the control storage register 24. The set and reset conditions of the flip-flop 53 are as follows.

セット(SET)=Df リセット(RST)=De=Dd・(Da+Db+Dc) 制御記憶ユニット20とデバグ割込み制御ユニット(4
と5)内のレジスタのホールド条件は次の通りである。
Set (SET) = D f Reset (RST) = D e = D d · (D a + D b + D c ) The control storage unit 20 and the debug interrupt control unit (4
The holding conditions of the registers in 5 and 5) are as follows.

(1) アドレスレジスタ22: (2) 制御レジスタ24: (3) レジスタ51: (4) レジスタ52:“θ” (5) レジスタ54:Dd (6) レジスタ55:Dd (7) レジスタ56:“θ” (8) レジスタ57:“θ” “θ”はホールド条件なし示す制御ユニット20内のア
ドレス回路21は信号線111を介して命令ユニット1
0内の命令起動回路11より命令に対応するマイクロプ
ログラムの先頭アドレスIaを与えられ,信号線201
を介して制御記憶23から現マイクロ命令語の次に実行
すべきマイクロ命令語のアドレスNaを与えられる。こ
のアドレス回路21は信号線110,420を介して与
えられる信号St,Deによって出力信号が決定され
る。アドレス回路21の真理値表を次に示す。
(1) Address register 22: (2) Control register 24: (3) Register 51: (4) Register 52: “θ” (5) Register 54: D d (6) Register 55: D d (7) Register 56: “θ” (8) Register 57: “θ” “ .theta. "indicates that there is no hold condition. The address circuit 21 in the control unit 20 receives the instruction unit 1 via the signal line 111.
The start address I a of the microprogram corresponding to the instruction is given from the instruction starting circuit 11 in 0, and the signal line 201
The address N a of the microinstruction word to be executed next to the current microinstruction word is given from the control memory 23 via. The address circuit 21 is the signal supplied through the signal line 110,420 St, the output signal by D e is determined. The truth table of the address circuit 21 is shown below.

この表でPaはアドレス回路21が発生する。該アドレ
ス回路21の出力信号Aaは信号線202を介してアド
レスレジスタ22に与えられる。
In this table, P a is generated by the address circuit 21. The output signal A a of the address circuit 21 is given to the address register 22 via the signal line 202.

なお,第1図においてレジスタやフリップフロップの条
件信号に付してある略称は,次の意味を示している。
The abbreviations attached to the condition signals of the registers and flip-flops in FIG. 1 have the following meanings.

HLD:ホールド RST:リセット SET:セット 次に,以上のように構成された本実施例の情報処理装置
の動作を第3図のタイムチャートを用いて説明する。第
3図において,クロックサイクルはt1からt12へと進
んで行くものとする。この情報処理装置の制御記憶ユニ
ット20と実行ユニット30とを合せたパイプラインの
段数を6とし,ステージ名をそれぞれS1,S2,S
3,S4,S5,S6とする。ソフト命令Aはマイクロ
命令語aで構成され,ソフト命令Bはマイクロ命令語b
1,b2,b3,b4,b5から成るマイクロプログラムに
よって構成されているものとする。
HLD: Hold RST: Reset SET: Set Next, the operation of the information processing apparatus of the present embodiment configured as described above will be described using the time chart of FIG. In FIG. 3, it is assumed that the clock cycle progresses from t 1 to t 12 . The number of pipeline stages including the control storage unit 20 and the execution unit 30 of this information processing apparatus is 6, and the stage names are S1, S2, and S, respectively.
3, S4, S5 and S6. The soft instruction A is composed of a micro instruction word a, and the soft instruction B is a micro instruction word b.
It is assumed that the program is composed of a microprogram composed of 1 , b 2 , b 3 , b 4 , b 5 .

クロックサイクルt0において,ソフト命令Aに対応す
るマイクロ命令語aが命令起動回路11の信号Ia,St
によって起動される。命令Aに関するデバグ要因はデバ
グ検出回路2によって検出されなかったものとする。マ
イクロ命令語aの制御信号は順次ステージS1,S2,
S3,S4,S5,S6と実行して,命令Aとしての動
作を完了する。
At clock cycle t 0 , the microinstruction word a corresponding to the soft instruction A is the signals I a and St of the instruction activation circuit 11.
Is started by. It is assumed that the debug factor relating to the instruction A has not been detected by the debug detection circuit 2. The control signal of the micro instruction word a is sequentially supplied to the stages S1, S2,
By executing S3, S4, S5 and S6, the operation as the instruction A is completed.

クロックサイクルt1において,ソフト命令Bに対応す
るマイクロプログラムの先頭アドレスb1が起動され
る。この時レジスタ1の保持するデバグ状態信号deはデ
バグ状態を示し,レジスタ3の保持するデバグマスクm
0,m1,m2はデバグ要因が有効であることを示してい
るものとする。さらにこの時,命令Bに関するデバグ要
因がデバグ要因検出回路11によって検出され,デバグ
情報D0,D1,D2はD0,D1,D2=0,0,1であっ
たとし,バッファ41のワードP+1に0,0,1が格
納される。書込みレジスタ42は命令起動信号Stによっ
て+1加算され,命令Aに関するデバグ情報はバッファ
41のワードP,命令Bに関するデバグ情報はバッファ
41のワードP+1に格納されるものとする。読出しレ
ジスタ43はS4ステージのレジスタ52の制御信号E
dによって+1加算される。クロックサイクルt1で起動
された命令Bに対応するマイクロプログラムを構成する
マイクロ命令語b1,b2,b3,b4,b5 は順次パイ
プラインの各ステージを実行していく。
At clock cycle t 1 , the start address b 1 of the microprogram corresponding to the soft instruction B is activated. At this time, the debug state signal de held in the register 1 indicates the debug state, and the debug mask m held in the register 3
It is assumed that 0 , m 1 and m 2 indicate that the debug factor is effective. Further, at this time, the debug factor relating to the instruction B is detected by the debug factor detection circuit 11, and it is assumed that the debug information D 0 , D 1 , D 2 is D 0 , D 1 , D 2 = 0, 0 , 1 0, 0, 1 is stored in the word P + 1 of 41. It is assumed that the write register 42 is incremented by +1 by the instruction activation signal St, the debug information regarding the instruction A is stored in the word P of the buffer 41, and the debug information regarding the instruction B is stored in the word P + 1 of the buffer 41. The read register 43 is the control signal E of the register 52 of the S4 stage.
+1 is added by d . Microinstruction words b 1 , b 2 , b 3 , b 4 and b 5 forming a microprogram corresponding to the instruction B activated at the clock cycle t 1 sequentially execute each stage of the pipeline.

マイクロ命令語b5はクロックサイクルt9の時ステージ
S4に存在し,この時のレジスタ52の保持する命令B
の最後のマイクロ命令語であることを示す制御信号Ed
によってバッファ41のデバグ情報D0′,D1′,
2′が読出されデバグ割込みタイミングが発生し,フ
リップフロップ53をリセットし,デバグ割込制御が始
まる。この時デバグ割込み要因がレジスタ54に履歴さ
れる。
The micro instruction word b 5 exists in the stage S4 at the clock cycle t 9 , and the instruction B held by the register 52 at this time
Control signal E d indicating the last microinstruction word of
By the debug information D 0 ′, D 1 ′ of the buffer 41,
D 2 ′ is read out, a debug interrupt timing is generated, the flip-flop 53 is reset, and debug interrupt control is started. At this time, the debug interrupt factor is recorded in the register 54.

クロックサイクルt10にデバグ割込み処理を行う一連の
マイクロプログラムの先頭アドレスPaがアドレスレジ
スタ22に設定され,クロックサイクルt11において該
アドレスPaに対応するマイクロ命令語が制御レジスタ
24に設定されると同時にフリップフロップ53がセッ
トされ,クロックサイクルt12以降からデバグ割込み処
理を行う一連のマイクロプログラムが動作を開始する。
Start address P a series of micro-program the clock cycle t 10 performs debugging interrupt process is set in the address register 22, the microinstruction word corresponding to the address P a is set in the control register 24 at the clock cycle t 11 At the same time, the flip-flop 53 is set, and a series of microprograms for performing debug interrupt processing starts from clock cycle t 12 onward.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は,ソフト命令の実行開始時
にデバグ情報をデバグバッファに格納し,その内容を使
ってデバグ割込み制御を行うことにより,パイプライン
の段数が大きい場合においても、たとえデバグ状態やデ
バグマスクを変更するような命令であっても,命令開始
時のデバグ状態,デバグ要因,デバグマスクを意識する
ことなく本来処理すべき命令の実行動作が行なえるとい
う効果がある。
As described above, according to the present invention, the debug information is stored in the debug buffer at the start of execution of the soft instruction, and the debug interrupt control is performed by using the contents of the debug buffer. Even with an instruction that changes the debug mask or the debug mask, there is an effect that the execution operation of the instruction to be originally processed can be performed without considering the debug state at the start of the instruction, the debug factor, and the debug mask.

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

第1図は本発明の一実施例を示す情報処理装置のブロッ
ク図,第2図は第1図に示した情報処理装置の概要を示
すブロック図,第3図は第2図に示した情報処理装置の
動作タイミングを示すタイムチャートである。 記号の説明:1はデバグ状態表示レジスタ,2はデバグ
要因検出回路,3はデバグ割込みマスクレジスタ,4は
デバグ情報バッファレジスタファイル,5はデバグ割込
み回路,10は命令ユニット,11は命令起動回路,2
0は制御記憶ユニット,21はアドレス回路,22はア
ドレスレジスタ,23は制御記憶,24は制御レジス
タ,30は実行ユニット,41はバッファレジスタファ
イル,42は書込みアドレスレジスタ,43は読出しア
ドレスレジスタ,51,52,55,56,57はレジ
スタ,53はフリップフロップ(FF),54は履歴レジ
スタをそれぞれ示している。
FIG. 1 is a block diagram of an information processing apparatus showing an embodiment of the present invention, FIG. 2 is a block diagram showing an outline of the information processing apparatus shown in FIG. 1, and FIG. 3 is information shown in FIG. It is a time chart which shows the operation timing of a processor. Description of symbols: 1 is a debug status display register, 2 is a debug factor detection circuit, 3 is a debug interrupt mask register, 4 is a debug information buffer register file, 5 is a debug interrupt circuit, 10 is an instruction unit, 11 is an instruction activation circuit, Two
0 is a control memory unit, 21 is an address circuit, 22 is an address register, 23 is a control memory, 24 is a control register, 30 is an execution unit, 41 is a buffer register file, 42 is a write address register, 43 is a read address register, 51 , 52, 55, 56 and 57 are registers, 53 is a flip-flop (FF), and 54 is a history register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】マイクロプログラム方式で動作しデバグ割
込みを可能とするパイプライン制御の情報処理装置にお
いて、一連のソフト命令を逐次実行するとき、システム
がデバグ状態であることを示すデバグ状態表示手段と、
前記ソフト命令に関するデバグ要因を検出するデバグ要
因検出手段と、システムがデバグ状態の時、デバグ割込
みを有効とするデバグ要因に対応したデバグ割込みマス
ク手段と、前記デバグ状態表示手段、前記デバグ要因検
出手段及び前記デバグ割込みマスク手段から得た前記パ
イプラインの上位ステージのデバグ情報を複数の前記ソ
フト命令に関してバッファし得るデバグ情報バッファ手
段と、前記パイプラインの下位ステージで前記デバグ情
報バッファ手段の保持する前記デバグ情報に応答してデ
バグ割込みを発生するデバグ割込み手段とを有する情報
処理装置。
1. In a pipeline-controlled information processing apparatus that operates in a microprogram system and enables a debug interrupt, a debug status display means for indicating that the system is in a debug status when sequentially executing a series of soft instructions. ,
Debug factor detecting means for detecting a debug factor relating to the soft instruction, debug interrupt masking means corresponding to a debug factor for enabling a debug interrupt when the system is in a debug state, the debug state displaying means, the debug factor detecting means And debug information buffer means capable of buffering the debug information of the upper stage of the pipeline obtained from the debug interrupt mask means for a plurality of the soft instructions, and holding the debug information buffer means in the lower stage of the pipeline. An information processing apparatus having debug interrupt means for generating a debug interrupt in response to debug information.
JP61189693A 1986-08-14 1986-08-14 Information processing equipment Expired - Lifetime JPH0638235B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61189693A JPH0638235B2 (en) 1986-08-14 1986-08-14 Information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61189693A JPH0638235B2 (en) 1986-08-14 1986-08-14 Information processing equipment

Publications (2)

Publication Number Publication Date
JPS6346543A JPS6346543A (en) 1988-02-27
JPH0638235B2 true JPH0638235B2 (en) 1994-05-18

Family

ID=16245605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61189693A Expired - Lifetime JPH0638235B2 (en) 1986-08-14 1986-08-14 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH0638235B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56129950A (en) * 1980-03-07 1981-10-12 Hitachi Ltd Information processor
JPS56143059A (en) * 1980-04-04 1981-11-07 Fujitsu Ltd Interruption stop system

Also Published As

Publication number Publication date
JPS6346543A (en) 1988-02-27

Similar Documents

Publication Publication Date Title
US5341482A (en) Method for synchronization of arithmetic exceptions in central processing units having pipelined execution units simultaneously executing instructions
US5212662A (en) Floating point arithmetic two cycle data flow
JPH07248897A (en) Method and device for recovery from exception in computer system
JPH02226420A (en) Floating point computation execution apparatus
US5095426A (en) Data processing system for effectively handling exceptions during execution of two different types of instructions
EP0482200B1 (en) Interrupt processing system
JPH03286332A (en) Digital data processor
JPS62115542A (en) Information processor
CN101194228B (en) Performance microprocessor and device of fast return of microcontroller subroutine
US6981130B2 (en) Forwarding the results of operations to dependent instructions more quickly via multiplexers working in parallel
JPH0638235B2 (en) Information processing equipment
CN117453289A (en) A microprocessor, integrated circuit and electronic device without pipeline cavitation
JPH07219766A (en) Processor
JPS58200349A (en) Microprogram controller
JP2819733B2 (en) Information processing device
JPH0277940A (en) Data processor
JP2843844B2 (en) Parallel processing unit
JPH0677234B2 (en) Information processing equipment
JP3057732B2 (en) Information processing device
JPH0677235B2 (en) Information processing equipment
JPS59223846A (en) Arithmetic processor
JPH04116726A (en) Information processor
JPH0357498B2 (en)
JPS63208124A (en) Microprogram controller
JPH076038A (en) Information processing equipment

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term