[go: up one dir, main page]

JPH0322035A - Trouble evading system for microprocessor - Google Patents

Trouble evading system for microprocessor

Info

Publication number
JPH0322035A
JPH0322035A JP1155625A JP15562589A JPH0322035A JP H0322035 A JPH0322035 A JP H0322035A JP 1155625 A JP1155625 A JP 1155625A JP 15562589 A JP15562589 A JP 15562589A JP H0322035 A JPH0322035 A JP H0322035A
Authority
JP
Japan
Prior art keywords
microprogram
check
fault
micro
register
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
JP1155625A
Other languages
Japanese (ja)
Inventor
Koji Iida
飯田 弘司
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 JP1155625A priority Critical patent/JPH0322035A/en
Publication of JPH0322035A publication Critical patent/JPH0322035A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To evade the fixed trouble of a microprogram by substituting the microprogram step, where fixed trouble of the microprogram occurs, with a microprogram step set to a trouble micro register. CONSTITUTION:When fixed trouble occurs in the microprogram, a microprocessor is operated after a pertinent check bit of a check register 1 is made effective and a trouble evading microprogram is set to a trouble micro register 12. When the microprogram in the entry address to which the trouble position belongs is executed, the check bit is referred to select the micro register 12 by a trouble micro selector 5, and contents of the trouble micro register 12 are executed instead of the microprogram where trouble occurs. Thus, trouble of the microprogram is evaded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はマイクロプロセッサ(LSI)の固定障害の回
避方式に関するものであり、特にマイクロプロセッサに
内蔵されたマイクロプログラムの固定障害の回避方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for avoiding fixed faults in a microprocessor (LSI), and particularly to a method for avoiding fixed faults in a microprogram built into a microprocessor.

[従来の技術] 従来、マイクロプログラムを内蔵したマイクロプロセッ
サにおいては、マイクロプログラムに固定障害が発生し
ても、これを回避する為の手段を持っていなかった。
[Prior Art] Conventionally, a microprocessor with a built-in microprogram has no means to avoid a fixed failure even if it occurs in the microprogram.

[発明が解決しようとする課題] この為に、一度固定障害が発生すると、システム運用中
であれば障害の発生したマイクロプログラムルーチンを
使用しないシステム構造に変更するか、ないしは、シス
テムの運用自体を中止しなくてはならない。また、評価
中に固定障害が発生すると、障害箇所から先のマイクロ
プログラムを動かすことが出来なくなるため、評価を進
めることが困難になってしまう。
[Problem to be solved by the invention] For this reason, once a fixed failure occurs, if the system is in operation, the system structure must be changed to one that does not use the microprogram routine where the failure occurred, or the system operation itself must be changed. It has to be stopped. Furthermore, if a fixed failure occurs during evaluation, it becomes difficult to proceed with the evaluation because it becomes impossible to move the microprogram beyond the failure location.

この様に、従来のマイクロプロセッサのマイクロプログ
ラムに固定障害が発生すると、回避手段を持ち得ないた
め、固定障害を取り除くには、マイクロプログラムをリ
ワークするしか手段が無く、これにより長い期間を必要
とするため、システム運用や評価に多大な支障を与える
In this way, when a fixed fault occurs in the microprogram of a conventional microprocessor, there is no workaround, so the only way to remove the fixed fault is to rework the microprogram, which takes a long time. As a result, system operation and evaluation are greatly hindered.

[課題を解決するための手段] 本発明によるマイクロプロセッサの障害回避方式は、マ
イクロプログラムを本体に内蔵するマイクロプロセッサ
において、該マイクロプログラムにより書き換えが可能
で、該マイクロプログラムの各エントリステップに対応
したチェックビットを有するチェックレジスタと、マイ
クロアドレスから該チェックレジスタ中の1ビットのチ
ェックビットを選択するチェックセレクタと、該チェッ
クセレクタにより選択されたチェックビットを一定期間
保持するチェックラッチと、前記マイクロプログラムに
より書き換えが可能で、該マイクロプログラムの1ステ
ップと同じビット幅を有する障害マイクロレジスタと、
該障害マイクロレジスタの出力とマイクロプログラムラ
ッチの出力とを人力し、前記チェックラッチの内容が有
効な時は前記障害マイクロレジスタの出力を選択し、無
効の時は前記マイクロプログラムラッチの出力を選択す
る障害マイクロセレクタとを有し、前記マイクロプログ
ラムに固定障害が発生した時に前記チェックレジスタの
該当するチェックビットを有効にし、また前記障害マイ
クロレジスタへ障害回避用マイクロプログラムを設定し
た後、該マイクロプロセッサを動作させ、障害箇所の属
するエントリアドレスのマイクロプログラムを実行する
時に、前記チェックビットを参照することにより、前記
障害マイ゛クロセレクタにて前記障害マイクロレジスタ
を選択し、障害発生したマイクロプログラムに代わって
、前記障害マイクロレジスタの内容を実行することによ
り、障害回避が可能となる様に構成したことを特徴とす
る。
[Means for Solving the Problems] A failure avoidance method for a microprocessor according to the present invention is a microprocessor that has a built-in microprogram in its main body, which can be rewritten by the microprogram, and has a system that corresponds to each entry step of the microprogram. A check register having a check bit, a check selector that selects one check bit in the check register from a micro address, a check latch that holds the check bit selected by the check selector for a certain period of time, and a faulty microregister that is rewritable and has the same bit width as one step of the microprogram;
The output of the fault microregister and the output of the microprogram latch are manually selected, and when the contents of the check latch are valid, the output of the fault microregister is selected, and when the contents of the check latch are invalid, the output of the microprogram latch is selected. a fault microselector, when a fixed fault occurs in the microprogram, the corresponding check bit of the check register is enabled, and after setting a fault avoidance microprogram in the fault microregister, the microprocessor is activated. When the microprogram at the entry address to which the fault belongs is executed, the fault micro register is selected by the fault micro selector by referring to the check bit, and the micro program is executed in place of the faulty microprogram. , is characterized in that it is configured such that failures can be avoided by executing the contents of the failure microregister.

[実施例コ 次に、本発明について図面を用いて説明する。[Example code] Next, the present invention will be explained using the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。チェックレジスタ1は、マイクロプログラムROM
7のエントリステップ数と等しいビット数を持ったレジ
スタであり、チェックレジスタ1を読み出し書き込みを
行うためのデータパスとして用いるMBUS42のデー
タ長、例えば32ビット幅であれば、32ビット長のレ
ジスタXn本で構成される。ここで、エントリステップ
とは、32ステップ毎の先頭ステップを指し、マイクロ
プログラムの実行開始ステップを指す。チェックレジス
タコントローラ2は、マイクロプログラムから指定され
るディストネーションレジスタを指すMD−bus39
又はソースレジスタを指t M S − b u s 
4 0により指定されたチェックレジスタC H K 
R O 〜C H K R ( n − 1 )に対し
、MBUS42からの読み出し書き込みを制御するもの
である。チェックレジスタの各ビットは、チェックセレ
クタ3に人力され、マイクロアドレス(MA)34のう
ち上位11ビットにより選択された1ビットがチェック
ラッチ回路4で保持されて、FAIL信号24として障
害マイクロセレクタ5に入力される。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Check register 1 is a microprogram ROM
This register has a number of bits equal to the number of entry steps of 7, and if the data length of MBUS42 used as a data path for reading and writing check register 1 is, for example, 32 bits, then there are Xn registers with a length of 32 bits. Consists of. Here, the entry step refers to the first step of every 32 steps, and refers to the execution start step of the microprogram. The check register controller 2 connects the MD-bus 39 to a destination register specified by the microprogram.
Or point to the source register
4 Check register specified by 0 C H K
It controls reading and writing from the MBUS 42 for R0 to CHKR (n-1). Each bit of the check register is manually input to the check selector 3, and one bit selected by the upper 11 bits of the micro address (MA) 34 is held in the check latch circuit 4 and sent to the faulty micro selector 5 as a FAIL signal 24. is input.

障害マイクロセレクタ5には、この他にマイクロアドレ
ス(MA)34に対応したマイクロブロダラムの1ステ
ップをラッチした信号36と、障害マイクロレジスタ1
2が入力される。障害マイクロセレクタ5は、FAIL
信号24− ’0’の時、MLCH信号36をデータラ
イン27に出力し、FAIL信号24■“1”の時、F
MREGの内容をデータライン27に出力する。
The fault micro selector 5 also contains a signal 36 that latches one step of the micro program corresponding to the micro address (MA) 34, and a fault micro register 1.
2 is input. Failure micro selector 5 is FAIL
When the signal 24 is '0', the MLCH signal 36 is output to the data line 27, and when the FAIL signal 24 is '1', the MLCH signal 36 is output to the data line 27.
The contents of MREG are output to data line 27.

バッファ(BUFFER)11は、データライン27に
出力されたマイクロプログラムを1クロック間保持し、
MDバス26を通して本マイクロプロセッサの各所へ分
配される。
A buffer (BUFFER) 11 holds the microprogram output to the data line 27 for one clock,
It is distributed to various parts of this microprocessor through the MD bus 26.

ブリデコーダ(PREDECODE)10は、データラ
イン27の内容をデコードし、本マイクロプロセッサを
制御する制御信号25,37.38を生成する。
PREDECODE 10 decodes the contents of data line 27 and generates control signals 25, 37, 38 for controlling the microprocessor.

マイクロアドレスコントローラ(MARCNT)6はマ
イクロプログラムの実行毎に次ぎに実行すべきマイクロ
プログラムのマイクロアドレスを生成し、アドレスライ
ン34を用いてマイクロプログラムROM (MROM
)7とROMセレクタ(MSEL)8の入力となり、M
ROM7中の1ステップを選択する。
A microaddress controller (MARCNT) 6 generates a microaddress for the next microprogram to be executed each time a microprogram is executed, and uses an address line 34 to write a microprogram ROM (MROM).
)7 and ROM selector (MSEL)8 input, and M
Select one step in ROM7.

さて、固定障害が無く、正常動作を行う時は、チェック
レジスタ1は全て“0゜となっており、これによってM
STB2gによりチェックラッチ回路4から出力される
FAIL信号24は常に“O゛となる。障害マイクロセ
レクタ5は、結局、マイクロラッチ9からの出力を常に
プリコーダ10やバッファ11に送ることにより、MR
OM7中のマイクロプログラムを逐次実行して行き、正
常動作を行う。
Now, when there are no fixed faults and normal operation is performed, all check registers 1 are "0°", and this causes M
The FAIL signal 24 output from the check latch circuit 4 by the STB 2g is always "O".The failure micro selector 5 eventually sends the output from the micro latch 9 to the precoder 10 and buffer 11, thereby reducing the MR
The microprograms in OM7 are executed sequentially to perform normal operation.

次ぎに、固定障害が発生した時の動作を示す。Next, we will show the operation when a fixed failure occurs.

今、マイクロプログラムのacos番地で固定障害が発
生したとする。この時、マイクロプログラムの初期化ル
ーチン又はソフトウェアの初期化ルーチンから、MBU
S42を経由してチェックレジスタ1のCHKR3のビ
ット0に“l“をセットする。また、障害マイクロレジ
スタ12には、同様の手段によって、OCO8番地のエ
ントリアドレスであるOC00番地で実行すべき障害回
避用マイクロプログラムをセットする。
Suppose now that a fixed failure occurs at the acos address of the microprogram. At this time, from the microprogram initialization routine or software initialization routine, the MBU
Bit 0 of CHKR3 of check register 1 is set to "l" via S42. Furthermore, a fault avoidance microprogram to be executed at address OC00, which is the entry address of address OCO8, is set in the fault microregister 12 by the same means.

システムの立上げ後に、マイクロプログラムのocoo
番地を実行しようとするとき、先ず、MA−OCOOと
なりMROM7からOC00番地のマイクロプログラム
が選択される。それと同時に、チェックセレクタ3では
、第2図に示す様に、CHKR3のビットOが選択され
、現在実行中のマイクロプログラム(例えば、マイクロ
アドレスFF番地)の実行が終了すると、MSTB28
が働いて、MLCH9とCHKLCH4にOCOO番地
のマイクロプログラムとチェックビットがラッチされる
。CHKLCH4にラッチされたチェックビットは“1
”になっているため、障害マイクロセレクタ5はFMR
EG12の内容を選択し、FMREG12にセットされ
ている障害回避用マイクロプログラムをプリデコーダ1
0とバッファ11に出力する。プリデコーダ10及びバ
ッファ11は、この障害回避用マイクロプログラムをあ
たかも正常なマイクロプログラムであるかのように判断
して動作する。
After starting up the system, the microprogram ocoo
When attempting to execute the address, first, MA-OCOO is selected and the microprogram at address OC00 is selected from the MROM7. At the same time, the check selector 3 selects bit O of CHKR3 as shown in FIG.
operates, and the microprogram and check bit at address OCOO are latched into MLCH9 and CHKLCH4. The check bit latched in CHKLCH4 is “1”
”, the fault micro selector 5 is FMR.
Select the contents of EG12 and pre-decoder 1 the fault avoidance microprogram set in FMREG12.
It outputs 0 to the buffer 11. The predecoder 10 and buffer 11 judge and operate this fault avoidance microprogram as if it were a normal microprogram.

ここで、障害回避用マイクロプログラムとして、障害処
理ルーチンへの分岐命令を指定することにより、プログ
ラムシーケンスを変えることが可能である。
Here, the program sequence can be changed by specifying a branch instruction to a failure handling routine as a failure avoidance microprogram.

この様にして、固定障害の発生したマイクロプログラム
ステップを障害マイクロレジスタ中のマイクロプログラ
ムステップで差し換えることにより、固定障害の回避処
理を行うことが出来る。
In this way, fixed fault avoidance processing can be performed by replacing the microprogram step in which the fixed fault has occurred with the microprogram step in the faulty microregister.

[発明の効果] 以上説明したように本発明は、マイクロプログラムの固
定障害が発生すると、このマイクロプログラムステップ
を障害マイクロレジスタ中にセットしたのマイクロプロ
グラムステップで差し換えることにより、マイクロプロ
グラムの固定障害を回避することが出来、本マイクロプ
ロセッサを用いたシステムの運用や本マイクロプロセッ
サの評価を支障なく続行出来るという効果がある。
[Effects of the Invention] As explained above, the present invention eliminates the fixed fault in the microprogram by replacing this microprogram step with the microprogram step set in the faulty micro register when a fixed fault occurs in the microprogram. This has the effect that the operation of a system using the present microprocessor and the evaluation of the present microprocessor can be continued without any hindrance.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図はチェックセレクタの動作を示す真理値表である。 1・・・チェックレジスタ、2・・・チェックレジスタ
コントローラ、3・・・チェックセレクタ、4・・・チ
ェックラッチ、5・・・障害マイクロセレクタ、6・・
・マイクロアドレスコントローラ、7・・・マイクロR
OM,8・・・マイクロROMセレクタ、9・・・マイ
クロROMラッチ、10・・・ブリデコーダ、11・・
・マイクロバッファ、12・・・障害マイクロレジスタ
。 X 0060 03EO 0400 u−7ヱーQ−一一 0800 ocoo OEOO CHKR3(0) CHKR4(0) 1000
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a truth table showing the operation of a check selector. DESCRIPTION OF SYMBOLS 1...Check register, 2...Check register controller, 3...Check selector, 4...Check latch, 5...Failure micro selector, 6...
・Micro address controller, 7...Micro R
OM, 8... Micro ROM selector, 9... Micro ROM latch, 10... Buri decoder, 11...
- Microbuffer, 12...fault microregister. X 0060 03EO 0400 u-7ヱQ-110800 ocoo OEOO CHKR3(0) CHKR4(0) 1000

Claims (1)

【特許請求の範囲】 1、マイクロプログラムを本体に内蔵するマイクロプロ
セッサにおいて、該マイクロプログラムにより書き換え
が可能で、該マイクロプログラムの各エントリステップ
に対応したチェックビットを有するチェックレジスタと
、マイクロアドレスから該チェックレジスタ中の1ビッ
トのチェックビットを選択するチェックセレクタと、該
チェックセレクタにより選択されたチェックビットを一
定期間保持するチェックラッチと、前記マイクロプログ
ラムにより書き換えが可能で、該マイクロプログラムの
1ステップと同じビット幅を有する障害マイクロレジス
タと、該障害マイクロレジスタの出力とマイクロプログ
ラムラッチの出力とを入力し、前記チェックラッチの内
容が有効な時は前記障害マイクロレジスタの出力を選択
し、無効の時は前記マイクロプログラムラッチの出力を
選択する障害マイクロセレクタとを有し、 前記マイクロプログラムに固定障害が発生した時に前記
チェックレジスタの該当するチェックビットを有効にし
、また前記障害マイクロレジスタへ障害回避用マイクロ
プログラムを設定した後、該マイクロプロセッサを動作
させ、障害箇所の属するエントリアドレスのマイクロプ
ログラムを実行する時に、前記チェックビットを参照す
ることにより、前記障害マイクロセレクタにて前記障害
マイクロレジスタを選択し、障害発生したマイクロプロ
グラムに代わって、前記障害マイクロレジスタの内容を
実行することにより、障害回避が可能となる様に構成し
たことを特徴とするマイクロプロセッサの障害回避方式
[Scope of Claims] 1. A microprocessor with a built-in microprogram, which is rewritten by the microprogram and has a check register corresponding to each entry step of the microprogram, and a check register that has check bits corresponding to each entry step of the microprogram; A check selector that selects one check bit in a check register, a check latch that holds the check bit selected by the check selector for a certain period of time, and a check latch that can be rewritten by the microprogram and one step of the microprogram. Input a fault microregister having the same bit width, the output of the fault microregister, and the output of the microprogram latch, select the output of the fault microregister when the contents of the check latch are valid, and select the output of the fault microregister when the contents are invalid. has a fault micro selector that selects the output of the micro program latch, and enables a corresponding check bit in the check register when a fixed fault occurs in the micro program, and also sends a fault avoidance micro selector to the fault micro register. After setting the program, when operating the microprocessor and executing the microprogram at the entry address to which the faulty location belongs, the faulty microregister is selected by the faulty microselector by referring to the check bit; 1. A failure avoidance method for a microprocessor, characterized in that the failure can be avoided by executing the contents of the failure microregister in place of a microprogram in which a failure has occurred.
JP1155625A 1989-06-20 1989-06-20 Trouble evading system for microprocessor Pending JPH0322035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1155625A JPH0322035A (en) 1989-06-20 1989-06-20 Trouble evading system for microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1155625A JPH0322035A (en) 1989-06-20 1989-06-20 Trouble evading system for microprocessor

Publications (1)

Publication Number Publication Date
JPH0322035A true JPH0322035A (en) 1991-01-30

Family

ID=15610095

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1155625A Pending JPH0322035A (en) 1989-06-20 1989-06-20 Trouble evading system for microprocessor

Country Status (1)

Country Link
JP (1) JPH0322035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12005619B2 (en) 2019-04-11 2024-06-11 Canon Virginia, Inc. Injection molding system with conveyor devices to insert or eject molds

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12005619B2 (en) 2019-04-11 2024-06-11 Canon Virginia, Inc. Injection molding system with conveyor devices to insert or eject molds

Similar Documents

Publication Publication Date Title
KR900002604B1 (en) An error recovery apparatus and method in an information processing apparatus having a controller storage device.
US4176394A (en) Apparatus for maintaining a history of the most recently executed instructions in a digital computer
JPH0799498B2 (en) Device for correcting erroneous microinstructions
JPS6112298B2 (en)
US5129079A (en) Computer system having subinstruction surveillance capability
JPH0322035A (en) Trouble evading system for microprocessor
JPH05257681A (en) Microprogram controller group
JPH0320830A (en) System for evading fault of microprocessor
JP3507193B2 (en) Load / store instruction processor
JPH02178739A (en) System for avoiding fault of micro processor
JPH0298746A (en) System for evading failure of microprocessor
US6662296B1 (en) Method and system for testing millicode branch points
JPS6221131B2 (en)
JPH04274520A (en) Microprogram controller
JPS5878233A (en) Microprogram controller
JP2729126B2 (en) Address trace circuit of debug system
JPH0836499A (en) Microcomputer
JPS62182929A (en) Micro instruction correcting circuit
WO1993025967A1 (en) System for aiding debugging of integrated circuit microprocessor
JPH03164945A (en) Data processor
JPH01191948A (en) Diagnosis controller
JPS62272327A (en) Microprogram controller
JPS61231633A (en) Microprocessor
JPS6083149A (en) Computer
JPS6039243A (en) Fault detecting system