JPS63168733A - Microprogram controller - Google Patents

Microprogram controller

Info

Publication number
JPS63168733A
JPS63168733A JP62002237A JP223787A JPS63168733A JP S63168733 A JPS63168733 A JP S63168733A JP 62002237 A JP62002237 A JP 62002237A JP 223787 A JP223787 A JP 223787A JP S63168733 A JPS63168733 A JP S63168733A
Authority
JP
Japan
Prior art keywords
microinstruction
microprogram
storage device
microinstructions
control
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
JP62002237A
Other languages
Japanese (ja)
Inventor
Yutaka Fujii
裕 藤井
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 JP62002237A priority Critical patent/JPS63168733A/en
Publication of JPS63168733A publication Critical patent/JPS63168733A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the occurrence of memory destruction or system status destruction of the like due to runaway caused by access to an area not use by writing a pattern causing incorrect microinstruction into the area not in use in a control storage device storing the microprogram. CONSTITUTION:A pattern causing an incorrect microinstruction is written in the area not use as the microinstruction, and when it is read, the incorrectness of the microinstruction is detected by a microinstruction decode section 12 immediately, an interrupt signal is inputted through a signal line 25 by a sequential control section 14 and interrupt is given to the microprogram. Thus, the occurrence of destruction or rewrite of memory data is prevented and it is also possible to display the interrupt externally as a machine trouble or to execute a retrial routine.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロプログラム制御装置に関し、特にマ
イクロプログラムのマイクロ命令の不正等による暴走を
防止する手段を有するマイクロプログラム制御装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprogram control device, and more particularly to a microprogram control device having means for preventing a microprogram from running out of control due to illegal microinstructions or the like.

〔従来の技術〕[Conventional technology]

従来のマイクロプログラム制御装置においては、ハード
ウェア不良又はマイクロプログラムのマイクロ命令の不
正等により不正なるマイクロルーチンを暴走し制御用記
憶装置内の未使用番地を実行してしまうことがあっても
、これを早期に発見する手段は備えられていなかった。
In conventional microprogram control devices, even if an incorrect microroutine runs out of control due to a hardware failure or an invalid microinstruction in the microprogram, and executes an unused address in the control storage device, this will not occur. No means were in place to detect it early.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来あマイクロプログラム制御装置においては
、ハードウェア不良又はマイクロプログラムのマイクロ
命令の不正等によってマイクロルーチンが暴走し、制御
用記憶部の未使用領域を実行してしまう場合に、未使用
領域のコードが不定になっているとメモリデータを破壊
したり、システム上重要なテーブル、コントロールワー
ド等を書き換えてしまったりする。又、未使用番地に対
してセルフブランチコードを書き込んでいる様な場合に
はシステムストールを引き起こし、回復不能となりシス
テムダウンとなるという問題点があった。
In the conventional microprogram control device described above, when a microroutine goes out of control due to a hardware failure or an incorrect microinstruction in the microprogram and executes an unused area of the control storage, the unused area is If the code is undefined, it may destroy memory data or rewrite important system tables, control words, etc. Furthermore, if a self-branch code is written to an unused address, there is a problem in that the system stalls, making recovery impossible and causing the system to go down.

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

本発明のマイクロプログラム制御装置は、マイクロプロ
グラムのマイクロ命令を記憶する制御記憶装置と、該制
御記憶装置から読出されたマイクロ命令をデコードする
とともに、前記マイクロ命令の不正を検出するマイクロ
命令デコード部と、該マイクロ命令デコード部からの指
示によりデータを処理するデータ処理部と、前記マイク
ロ命令デコード部からの指示によりマイクロ命令の実行
を制御するとともに、前記マイクロ命令デコード部でマ
イクロ命令の不正が検出された場合に前記マイクロ命令
デコード部から割込信号を受取り、マイクロプログラム
に対する割込みを行なう逐次制御部とで構成される。
The microprogram control device of the present invention includes a control storage device that stores microinstructions of a microprogram, and a microinstruction decoding section that decodes the microinstructions read from the control storage device and detects whether the microinstructions are invalid. , a data processing unit that processes data according to instructions from the microinstruction decoding unit; and a data processing unit that controls the execution of microinstructions according to instructions from the microinstruction decoding unit, and detects an invalidity of the microinstruction in the microinstruction decoding unit. and a sequential control section that receives an interrupt signal from the microinstruction decoding section and interrupts the microprogram when the microinstruction decoding section occurs.

〔実施例〕 次に、本発明の実施例について図面を参照して説明する
[Example] Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図において本発明の一実施例は、マイクロプログラ
ムのマイクロ命令を記憶し、信号線21で指定されたア
ドレスからマイクロ命令を読出して、これを信号線22
に出力する制御記憶装置11と、信号線22からマイク
ロ命令を入力し、これをデコードしてそのデコード結果
を信号線23及び信号線24に出力するとともに、入力
したマイクロ命令が不正であるかどうかを検出する機能
を有し、不正である場合には信号線25に出力するマイ
クロ命令デコード部12と、信号線23からマイクロ命
令のデコード結果を入力し、この指示に従ってデータを
処理するデータ処理部13と、信号線24からマイクロ
命令のデコード結果を入力し、この指示によってマイク
ロ命令の実行を制御するとともに、マイクロ命令デコー
ダ部12でマイクロ命令が不正であることが検出された
場合、信号線25から割込信号を受取り、マイクロプロ
グラムに対して割込みを行なう逐次制御部14とから構
成される。逐次制御部14は、信号線21によって制御
用記憶装置11に対して次に読み出すべきマイクロ命令
のアドレスを指定する。
In FIG. 1, one embodiment of the present invention stores a microinstruction of a microprogram, reads the microinstruction from an address designated by a signal line 21, and transfers it to a signal line 22.
A control storage device 11 that outputs a microinstruction to a signal line 22 inputs a microinstruction, decodes it, and outputs the decoding result to a signal line 23 and a signal line 24, and checks whether the inputted microinstruction is invalid. a micro-instruction decoding section 12 which has a function of detecting a micro-instruction and outputs it to a signal line 25 if it is invalid, and a data processing section which inputs the decoding result of the micro-instruction from a signal line 23 and processes the data according to this instruction. 13 and a signal line 24 to control the execution of the microinstruction.If the microinstruction decoder unit 12 detects that the microinstruction is invalid, the decoding result of the microinstruction is input to the signal line 25. It is comprised of a sequential control section 14 that receives an interrupt signal from the microprogram and interrupts the microprogram. The sequential control unit 14 specifies the address of the next microinstruction to be read out to the control storage device 11 via the signal line 21 .

第2図は本発明の一実施例のマイクロプログラムのフロ
ーチャート、第3図は本発明の一実施例のマイクロフロ
グラムのメモリ・マツプである。
FIG. 2 is a flowchart of a microprogram according to an embodiment of the present invention, and FIG. 3 is a memory map of a microprogram according to an embodiment of the present invention.

マイクロプログラムは第2図のフローチャートに示すよ
うに正常な動作の場合は、オペランド1゜2の加算を実
行してキャリーが出ると、コンディションコード(CC
)に“2′をセットし“0400”番地以降の処理へ飛
び、キャリーが出ない場合はコンディションコード(c
c)に“1″をセットし“” 0300 ”番地以降の
処理へ飛ぶ。
As shown in the flowchart in Figure 2, if the microprogram operates normally, it executes addition of operands 1 and 2, and if a carry occurs, a condition code (CC
) is set to "2'" and jumps to processing after address "0400", and if no carry is issued, condition code (c
c) is set to "1" and jumps to processing from address "0300" onward.

このマイクロプログラムのマイクロ命令は第3図のメモ
リマツプに示した通り制卸記憶装置11にに記憶されて
いる。これらのマイクロ命令は逐次読出されて、マイク
ロ命令デコード部12でデコードされ、この結果がデー
タ処理部13及び逐次制御部14に送られて処理が実行
される。
The microinstructions of this microprogram are stored in the control storage device 11 as shown in the memory map of FIG. These microinstructions are sequentially read out and decoded by the microinstruction decoding section 12, and the results are sent to the data processing section 13 and the sequential control section 14 for processing.

制卸記憶装置11には前記マイクロプログラムを格納す
るエリア以外の未使用領域が第3図のa。
The control storage device 11 has an unused area other than the area for storing the microprogram as shown in a of FIG.

b、c、・・・・・・の如く存在している。これらの未
使用領域へ、ハードウェア不良又はマイクロ命令の不正
(プログラムミス等)等により、マイクロプログラムの
シーケンスが移った場合、これらの未使用領域を通常の
マイクロ命令と解釈して実行することとなり、これらの
マイクロ命令が不定であると、メモリ・データの破壊、
書換え等を起こすことがある。
They exist like b, c,... If the microprogram sequence is moved to these unused areas due to a hardware failure or incorrect microinstruction (programming error, etc.), these unused areas will be interpreted as normal microinstructions and executed. ,If these microinstructions are undefined, memory data corruption,
Rewriting, etc. may occur.

本発明ではこれら未使用領域のマイクロ命令として不正
なマイクロ命令となるパターンを書き込んでおき、これ
を読出した場合は直ちにマイクロ命令の不正がマイクロ
命令デコード部12で検出され、信号線25により、逐
次制御部14に割込信号が入力され、マイクロプログラ
ムに割込みが行なわれる。
In the present invention, a pattern that becomes an invalid microinstruction is written as a microinstruction in these unused areas, and when this is read out, the microinstruction decoding section 12 immediately detects that the microinstruction is invalid, and the signal line 25 sequentially detects the invalidity of the microinstruction. An interrupt signal is input to the control unit 14, and the microprogram is interrupted.

これにより、上記のようなメモリ・データの破壊、書換
え等が発生することを防止するとともに、マシントラブ
ルとして外部に表示したり、リトライルーチンを実行さ
せることも可能にしている。
This prevents the destruction or rewriting of memory data as described above, and also makes it possible to externally display a machine trouble or to execute a retry routine.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明はマイクロプログラムを格納
する制御用記憶装置内の未使用領域にマイクロ命令の不
正を発生するパターンを書き込んでおくことにより、マ
シン1〜ラブル等により未使用領域がアクセスされると
マイクロ命令、不正の割込を発生し、プログラムの暴走
によるメモリ破壊、システムステータス破壊等を防止す
るとともに、外部に対するマイントラブル表示又は命令
のりトライ処理等が可能になるという効果がある。
As explained above, the present invention prevents the unused area from being accessed by the machine 1 or the like by writing a pattern that causes an incorrect microinstruction into an unused area in a control storage device that stores a microprogram. This has the effect of preventing memory corruption, system status corruption, etc. due to micro-instructions and illegal interrupts caused by runaway programs, and also making it possible to display a mine trouble to the outside or perform instruction transfer try processing.

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

第1図は本発明の一実施例を示すブロック図、第2図は
本発明の一実施例のマイクロプログラムのフローチャー
ト、第3図は本発明の一実施例のマイクロプログラムの
メモリマツプを示す説明図である。 11・・・制御用記憶装置、12・・・マイクロ命令デ
コード部、13・・・データ処理部、14・・・逐次制
御部、21〜25・・・信号線。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart of a microprogram according to an embodiment of the present invention, and FIG. 3 is an explanatory diagram showing a memory map of a microprogram according to an embodiment of the present invention. It is. DESCRIPTION OF SYMBOLS 11... Control storage device, 12... Microinstruction decoding section, 13... Data processing section, 14... Sequential control section, 21-25... Signal line.

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラムのマイクロ命令を記憶する制御記憶
装置と、該制御記憶装置から読出されたマイクロ命令を
デコードするとともに、前記マイクロ命令の不正を検出
するマイクロ命令デコード部と、該マイクロ命令デコー
ド部からの指示によりデータを処理するデータ処理部と
、前記マイクロ命令デコード部からの指示によりマイク
ロ命令の実行を制御するとともに、前記マイクロ命令デ
コード部でマイクロ命令の不正が検出された場合に前記
マイクロ命令デコード部から割込信号を受取り、マイク
ロプログラムに対する割込みを行なう逐次制御部とを含
んで成り、制御記憶装置の未使用領域にマイクロ命令の
不正を発生するパターンを書き込んでおくことを特徴と
するマイクロプログラム制御装置。
A control storage device that stores microinstructions of a microprogram, a microinstruction decoding unit that decodes the microinstructions read from the control storage device and detects whether the microinstructions are invalid, and instructions from the microinstruction decoding unit. a data processing unit that processes data, and a data processing unit that controls the execution of microinstructions based on instructions from the microinstruction decoding unit; A microprogram control device comprising a sequential control unit that receives an interrupt signal and interrupts the microprogram, and is characterized in that a pattern that causes an incorrect microinstruction is written in an unused area of a control storage device. .
JP62002237A 1987-01-07 1987-01-07 Microprogram controller Pending JPS63168733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62002237A JPS63168733A (en) 1987-01-07 1987-01-07 Microprogram controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62002237A JPS63168733A (en) 1987-01-07 1987-01-07 Microprogram controller

Publications (1)

Publication Number Publication Date
JPS63168733A true JPS63168733A (en) 1988-07-12

Family

ID=11523746

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62002237A Pending JPS63168733A (en) 1987-01-07 1987-01-07 Microprogram controller

Country Status (1)

Country Link
JP (1) JPS63168733A (en)

Similar Documents

Publication Publication Date Title
JPS63168733A (en) Microprogram controller
JPS6020769B2 (en) Microprogram control method
JPH064417A (en) Battery backup control system for memory
JPS5842891B2 (en) Meirei Seigiyohoushiki
JP2562838B2 (en) Processor and store buffer control method
JPS63280333A (en) Microprogram controller
JPS5938852A (en) Fault processing system
JPH0287239A (en) Microprogram processor
JPS6083149A (en) Computer
JPS60193046A (en) Detecting system for instruction exception
JPS6051737B2 (en) Option instruction illegal processing method
JPS6332642A (en) Information processor
JPS63141129A (en) Microprogram controller
JPH02141833A (en) Information processor
JPS63278147A (en) Control system for preventing erroneous use of register
JPH0580692B2 (en)
JPS63124144A (en) Information processor
JPH07182251A (en) Microprocessor
JPH02148340A (en) System for controlling writing in control storage
JPS57100542A (en) Information processor of microprogram control system
JPS61289427A (en) Access processing system based upon microprogram
JPH02263243A (en) Runaway processor for computer
JPS599756A (en) Microprogram control device
JPS6220582B2 (en)
JPH0480860A (en) Program loading system