JPS6381531A - Microprogram control system - Google Patents

Microprogram control system

Info

Publication number
JPS6381531A
JPS6381531A JP22666786A JP22666786A JPS6381531A JP S6381531 A JPS6381531 A JP S6381531A JP 22666786 A JP22666786 A JP 22666786A JP 22666786 A JP22666786 A JP 22666786A JP S6381531 A JPS6381531 A JP S6381531A
Authority
JP
Japan
Prior art keywords
microinstruction
control
register
memory
data
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
JP22666786A
Other languages
Japanese (ja)
Inventor
Koichi Ito
幸一 伊藤
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 JP22666786A priority Critical patent/JPS6381531A/en
Publication of JPS6381531A publication Critical patent/JPS6381531A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the reliability of system remarkably by using the hardware so as to read and correct a microprogram stored in a main storage device at a fault of a control storage automatically. CONSTITUTION:If an error exists in the control storage 2, a detection circuit 4 detects the error, a parity error flip-flop 4-1 is set and the suppression of instruction execution is requested to a microinstruction control section 10 through a signal line 4-2. After the data on a data bus 1-c are stored once in a read data register 13, the data are outputted to an internal bus 15 through a data line 13-1 according to the instruction of a microinstruction control section 10 and written in the control storage 2 via a data line 15-1. Simultaneously, the correct value of microinstruction is rewritten in a 3rd register 3 through a data line 15-2, the parity error flip-flop 4-1 is reset and the microinstruction control section 10 brings a microinstruction execution suppression signal 10-2 to '0' to restart the execution of the microinstruction.

Description

【発明の詳細な説明】 技術分野 本発明はマイクロプログラム制御方式に関し、特にマイ
クロプログラムを主記憶部から制御記憶部へ移送してこ
の制御記憶部に格納されたマイクロプログラムにより制
御されるマイクロプログラム制御方式に関する。
Detailed Description of the Invention Technical Field The present invention relates to a microprogram control system, and in particular to a microprogram control method in which a microprogram is transferred from a main memory to a control memory and is controlled by a microprogram stored in the control memory. Regarding the method.

従来技術 かかるマイクロプログラム制御方式において、マイクロ
プログラムを格納する制御記憶部内の障害検出方式とし
て、従来、パリティビットを付加してパリティチェック
を行う方法と、FCCビット(誤り訂正符号)を付加し
てエラー検出訂正を行う方法とがある。
PRIOR ART In such a microprogram control system, conventional methods for detecting failures in the control storage unit that stores microprograms include a method of adding a parity bit to perform a parity check, and a method of adding an FCC bit (error correction code) to detect errors. There is a method for performing detection and correction.

パリティビットを付加する方法では、ハードウェアに対
する投資は少ないが、パリティ誤りを検出した際の回復
手段が無いためにプロセッサダウンあるいはシステムダ
ウンに至る可能性が大きい。
Although the method of adding a parity bit requires little investment in hardware, there is a high possibility that the processor or system will go down because there is no recovery means when a parity error is detected.

また、誤り訂正符号を付加する方法は、データの訂正回
路が必要となるためにハードウェアに対する投資は前者
に比して大きく、しかも2ビツト以 。
In addition, the method of adding an error correction code requires a data correction circuit, so the investment in hardware is larger than the former method, and moreover, it requires more than 2 bits.

上の障害の場合には回復不能であるという欠点がある。The disadvantage of the above failure is that it is unrecoverable.

発明の目的 そこで、本発明はかかる従来のものの欠点を除去すべく
なされたものであって、その目的とするところは、少な
いハードウェア量で制御記憶部の障害検出及びその回復
を可能として、システムダウンをなくすようにしたマイ
クロプログラム制御方式を提供とすることにある。
OBJECT OF THE INVENTION Therefore, the present invention has been made to eliminate the drawbacks of the conventional system, and its purpose is to enable failure detection and recovery of the control storage unit with a small amount of hardware, and to improve the system. The purpose is to provide a microprogram control method that eliminates downtime.

λ孔立旦1 本発明によれば、パリティビットが夫々付加されたマイ
クロ命令語からなるマイクロプログラムを主記憶部から
制御記憶部へ移送してこの制御記憶部に格納されたマイ
クロプログラムにより制御されるマイクロプログラム制
御方式であって、前記制御記憶部から読出されたマイク
ロ命令語の前記制御記憶部内のアドレスを格納する第1
のレジスタと、前記主記憶部内の前記マイクロプログラ
ムの格納開始アドレスを保持する第2のレジスタと、前
記制御記憶部から読出されたマイクロ命令語を格納する
第3のレジスタと、この読出されたマイクロ命令語のパ
リティチェックをなすチェック回路と、前記第1及び第
2のレジスタの内容を加算する加算器とを設け、前記チ
ェック回路によりエラーが検出されたときに前記マイク
ロ命令の実行を抑止し、前記加算器の加算出力をアドレ
スとして前記主記憶部からデータを読出しこの読出しデ
ータを前記制御記憶部内の前記第1のレジスタにて示さ
れるアドレスへ書込み、このデータを前記第3のレジス
タへ格納した後にマイクロ命令の実行を再開するように
したことを特徴とするマイクロプログラム制御方式が得
られる。
According to the present invention, a microprogram consisting of microinstruction words to which parity bits are respectively added is transferred from a main memory to a control memory, and a microprogram controlled by the microprogram stored in this control memory is transferred. a program control system, the first controller storing an address in the control memory of a microinstruction word read from the control memory;
a second register that holds the storage start address of the microprogram in the main memory, a third register that stores the microinstruction word read from the control storage; a check circuit that performs a parity check of the instruction word and an adder that adds the contents of the first and second registers, and inhibits execution of the microinstruction when an error is detected by the check circuit; Data was read from the main memory using the addition output of the adder as an address, the read data was written to the address indicated by the first register in the control memory, and this data was stored in the third register. A microprogram control method is obtained which is characterized in that execution of microinstructions is resumed later.

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

第1図は本発明の一実施例を示すブロック図である。図
において、1は主記憶装置、2は制御記憶、6は実行中
のマイクロ命令の制御記憶内アドレスを格納する第1の
レジスタ(MAR)、5は主記憶内のマイクプログラム
格納開始アドレスを記憶する第2のレジスタ(BADR
)、3は実行中のマイクロ命令を格納する第3のレジス
タ(MiR)、10はマイクロ命令の実行を制御する制
御部、8は制御記憶の読出しアドレスを選択する選択回
路、4は制御記憶の読出しデータのパリティ誤りを検出
するチェック回路、4−1はこのチェック回路のチェッ
ク結果を記憶するフリップフロップである。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, 1 is the main memory, 2 is the control memory, 6 is the first register (MAR) that stores the address in the control memory of the microinstruction being executed, and 5 is the storage start address for storing the microphone program in the main memory. The second register (BADR
), 3 is a third register (MiR) that stores the microinstruction being executed, 10 is a control unit that controls the execution of the microinstruction, 8 is a selection circuit that selects the read address of the control memory, and 4 is the control memory. A check circuit 4-1 detects a parity error in read data, and 4-1 is a flip-flop that stores the check result of this check circuit.

7は第2のレジスタ5と第1のレジスタ6との内容を加
算して主記憶1の読出しアドレスとする加算器、11は
主記憶1のアドレスを格納するメモリアドレスレジスタ
(MADR) 、9は主記憶1のアクセス制御をなすメ
モリアクセス制御回路である。また、12はメモリコマ
ンドレジスタ(CMR)、13はメモリ読出しデータレ
ジスタ(RDR)、14はメモリ書込みデータレジスタ
(WDR>である。
7 is an adder that adds the contents of the second register 5 and the first register 6 to obtain a read address of the main memory 1; 11 is a memory address register (MADR) that stores the address of the main memory 1; and 9 is an adder This is a memory access control circuit that controls access to the main memory 1. Further, 12 is a memory command register (CMR), 13 is a memory read data register (RDR), and 14 is a memory write data register (WDR).

主記憶1内の構成を第2図に示す。主記憶1は1ワード
8バイトからなり、 100番地にマイクロプログラム
が格納された開始アドレスを示すポインタが有り、本例
では3000000番地イクロプログラムが格納されて
いる。
The configuration inside the main memory 1 is shown in FIG. The main memory 1 consists of one word of 8 bytes, and has a pointer at address 100 indicating the start address where the microprogram is stored, and in this example, the microprogram is stored at address 3000000.

マイクロプログラムの図示せぬ外部記憶から主記憶1へ
のロードは少容吊の読出しと専用記憶(ROM)中のマ
イクロプログラムにより行われ、主記憶1から制御記憶
2へのロードは、外部の診断プロセッサ(図示せず)の
制御下で行われる。
Loading of the microprogram from an external memory (not shown) to the main memory 1 is performed by small-capacity reading and a microprogram in the dedicated memory (ROM), and loading from the main memory 1 to the control memory 2 is performed by external diagnostics. This is done under the control of a processor (not shown).

マイクロプログラムの構成を第3図に示す。主記憶1内
の1ワードがマイクロ命令の1命令に対応する。ビット
O〜61が命令であり、ビット62゜63はパリティビ
ットであり、それぞれ命令のビットO〜31.32〜6
1に対する奇数パリティである。
Figure 3 shows the configuration of the microprogram. One word in main memory 1 corresponds to one microinstruction. Bits O~61 are instructions, bits 62 and 63 are parity bits, and bits O~31 and 32~6 of the instruction, respectively.
Odd parity for 1.

次に、マイクロ命令の実行制御について述べる。Next, microinstruction execution control will be described.

第1図に戻り、主記憶1から制御記憶2へのマイクロプ
ログラムのロードが完了すると、アドレス選択回路8は
O番地を指した状態でクロックが停止する。診断プロセ
ッサは主記憶1の100番地の内容を読出し、本発明の
特徴のひとつである第2のレジスタ5に主記憶上でのマ
イクロプログラムの開始番地、本例では[3000Jを
セットする。次に診断プロセッサは制御装置のクロック
を起動する。クロックが供給されると、第1のレジスタ
6には0″が、第3のレジスタ3にはO番地の制御記憶
2の内容がそれぞれセットされる。第3のレジスタ3の
内容はマイクロ命令制御部10へ送られ各種制御信号を
発生すると同時に、アドレス選択回路8に対して分岐先
のマイクロ命令アドレスの選択を指示する。以下、アド
レス選択回路8で選択されたアドレスが制御記憶2より
読出されて順次実行される。
Returning to FIG. 1, when the loading of the microprogram from the main memory 1 to the control memory 2 is completed, the clock stops with the address selection circuit 8 pointing to address O. The diagnostic processor reads the contents of address 100 of the main memory 1 and sets the start address of the microprogram on the main memory, in this example [3000J], in the second register 5, which is one of the features of the present invention. The diagnostic processor then starts the controller clock. When the clock is supplied, the first register 6 is set to 0'', and the third register 3 is set to the contents of the control memory 2 at address O.The contents of the third register 3 are set to microinstruction control. At the same time, the address selection circuit 8 instructs the address selection circuit 8 to select a branch destination microinstruction address.Hereafter, the address selected by the address selection circuit 8 is read out from the control memory 2. are executed sequentially.

次に、本発明の特徴である制御記憶において障害が発生
した場合の回復方式について説明する。
Next, a recovery method when a failure occurs in the control memory, which is a feature of the present invention, will be explained.

制御記憶2に障害が有ると、検出回路4で障害を検出し
パリティ誤りフリップフロップ4−1がセットされ、信
号線4−2によりマイクロ命令制御部10に対し命令実
行を抑止するように要求する。
If there is a failure in the control memory 2, the detection circuit 4 detects the failure, sets the parity error flip-flop 4-1, and requests the microinstruction control unit 10 to suppress instruction execution via the signal line 4-2. .

マイクロ命令制御部10はマイクロ命令実行抑止信号線
10−2を′″1″とすることでマイクロ命令の実行を
抑止すると共に、メモリアクセス要求線10−3を介し
てメモリアクセス制御回路9へ主記憶装置1の読出しを
要求する。このとぎの主記憶1内のマイクロプログラム
格納開始アドレスを格納する第2のレジスタ5と障害を
起こした制御記憶アドレスを記憶する第1のレジスタ6
との内容(本例では101番地)が加算器7で加算され
、その結果がメモリアドレスレジスタ11へロードされ
主記憶アドレスとして使用される。但し、第1のレジス
タ6の内容を3ビツト左シフトしたデータが加算される
The microinstruction control unit 10 suppresses the execution of microinstructions by setting the microinstruction execution inhibition signal line 10-2 to ``1'', and also sends a main signal to the memory access control circuit 9 via the memory access request line 10-3. Requests reading of storage device 1. A second register 5 that stores the microprogram storage start address in the next main memory 1 and a first register 6 that stores the control memory address that caused the failure.
The contents of (address 101 in this example) are added by the adder 7, and the result is loaded into the memory address register 11 and used as the main memory address. However, data obtained by shifting the contents of the first register 6 to the left by 3 bits is added.

メモリアクセス制御回路9はマイクロ命令制御部からの
要求に応じメモリコマンドレジスタ12にメモリ読出し
コマンドをセットし、メモリリクエスト信号線9−1を
“1”とする。主記憶装置1からはメモリアクセプト信
号線9−2により受付許可信号が送られ、一定時間後に
データバスミーb上に読出しデータ(3808808番
地記憶1より出力される。このデータは制御記憶2の1
01番地の正常データである。
The memory access control circuit 9 sets a memory read command in the memory command register 12 in response to a request from the microinstruction control section, and sets the memory request signal line 9-1 to "1". An acceptance permission signal is sent from the main memory device 1 via the memory accept signal line 9-2, and after a certain period of time, the read data (3808808 address memory 1 is outputted from the memory 1 of the control memory 2) on the data bus me b.
This is normal data at address 01.

データバス1−c上のデータは読出データレジスタ13
へいったん格納された後、マイクロ命令制御部10の指
示(図示せず)に従いデータ線13−1を通じて内部バ
ス15に出力され、更にデータ線15−1を介して制御
記憶2へ書込まれる。この時制御記憶2のアドレスはア
ドレス選択回路8によって第1のレジスタ6の内容が選
択されている。
Data on data bus 1-c is read data register 13
After being stored in the memory, the data is output to the internal bus 15 through the data line 13-1 according to an instruction (not shown) from the microinstruction control unit 10, and further written into the control memory 2 through the data line 15-1. At this time, the contents of the first register 6 are selected by the address selection circuit 8 as the address of the control memory 2 .

また制御記憶1の書込みと同時にデータ線15−2によ
り第3のレジスタ3もマイクロ命令の正解値に書替えら
れ、パリティ誤りフリップフロップ4−1はリセットさ
れる。フリップフロップ4−1がリセットされるとマイ
クロ命令制御部10はマイクロ命令実行抑止信号10−
2を“0″にすることでマイクロ命令の実行を再開する
Simultaneously with writing to the control memory 1, the third register 3 is also rewritten to the correct value of the microinstruction via the data line 15-2, and the parity error flip-flop 4-1 is reset. When the flip-flop 4-1 is reset, the microinstruction control unit 10 outputs the microinstruction execution inhibition signal 10-
Execution of the microinstruction is restarted by setting 2 to "0".

以上の説明で明らかな様に、制御記憶に僅かなパリティ
ヒツトを付加するのみで制御記憶の障害検出を可能とし
かつファームウェア及びソフトウェアにIIを与えるこ
となく障害回復を行うことが可能となる。第4図は以上
の説明をタイムチャートで表現した図である。
As is clear from the above explanation, it is possible to detect a fault in the control memory simply by adding a small number of parity hits to the control memory, and it is possible to perform fault recovery without giving II to firmware and software. FIG. 4 is a diagram expressing the above explanation using a time chart.

発明の詳細 な説明したように本発明によれば、制御記憶の障害時に
は主記憶装置に格納されたマイクロプログラムをハード
ウェアで自動的に読出し訂正することにより、複数ビッ
トの障害時においてもシステムダウンに至らないマイク
ロプログラム制御装置を提供でき、よってシステムの信
頼性を著しく高め(9るという効果がある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, when a failure occurs in the control memory, the microprogram stored in the main memory is automatically read and corrected by hardware, thereby preventing system downtime even in the event of a failure in multiple bits. It is possible to provide a micro-programmed control device that does not lead to high performance, thereby significantly increasing the reliability of the system.

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

第1図は本発明の実施例のブロック図、第2図は主記憶
の内容を示す図、第3図はマイクロプログラムの構成を
示すフォーマット図、第4図は第1図のブロックの動作
を示すタイムチャー1−である。 主要部分の符号の説明 1・・・・・・主記憶 2・・・・・・制御記憶 3・・・・・・第3のレジスタ 4・・・・・・パリティチェック回路 5・・・・・・第2のレジスタ 6・・・・・・第1のレジスタ 7・・・・・・加算器
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing the contents of the main memory, FIG. 3 is a format diagram showing the configuration of a microprogram, and FIG. 4 is a diagram showing the operation of the blocks in FIG. 1. This is a time chart 1-. Explanation of symbols of main parts 1... Main memory 2... Control memory 3... Third register 4... Parity check circuit 5... ...Second register 6...First register 7...Adder

Claims (1)

【特許請求の範囲】[Claims] パリティビットが夫々付加されたマイクロ命令語からな
るマイクロプログラムを主記憶部から制御記憶部へ移送
してこの制御記憶部に格納されたマイクロプログラムに
より制御されるマイクロプログラム制御方式であって、
前記制御記憶部から読出されたマイクロ命令語の前記制
御記憶部内のアドレスを格納する第1のレジスタと、前
記主記憶部内の前記マイクロプログラムの格納開始アド
レスを保持する第2のレジスタと、前記制御記憶部から
読出されたマイクロ命令語を格納する第3のレジスタと
、この読出されたマイクロ命令語のパリティチェックを
なすチェック回路と、前記第1及び第2のレジスタの内
容を加算する加算器とを設け、前記チェック回路により
エラーが検出されたときに前記マイクロ命令の実行を抑
止し、前記加算器の加算出力をアドレスとして前記主記
憶部からデータを読出しこの読出しデータを前記制御記
憶部内の前記第1のレジスタにて示されるアドレスへ書
込み、このデータを前記第3のレジスタへ格納した後に
マイクロ命令の実行を再開するようにしたことを特徴と
するマイクロプログラム制御方式。
A microprogram control method in which a microprogram consisting of microinstruction words to which parity bits are respectively added is transferred from a main memory to a control memory and controlled by the microprogram stored in the control memory,
a first register that stores an address in the control storage of a microinstruction word read from the control storage; a second register that holds a storage start address of the microprogram in the main storage; a third register for storing the microinstruction word read from the storage section; a check circuit for performing a parity check on the read microinstruction word; and an adder for adding the contents of the first and second registers. is provided, and when an error is detected by the check circuit, execution of the microinstruction is inhibited, data is read from the main memory section using the addition output of the adder as an address, and this read data is stored in the control memory section. A microprogram control system characterized in that execution of the microinstruction is resumed after writing to the address indicated by the first register and storing this data in the third register.
JP22666786A 1986-09-25 1986-09-25 Microprogram control system Pending JPS6381531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22666786A JPS6381531A (en) 1986-09-25 1986-09-25 Microprogram control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22666786A JPS6381531A (en) 1986-09-25 1986-09-25 Microprogram control system

Publications (1)

Publication Number Publication Date
JPS6381531A true JPS6381531A (en) 1988-04-12

Family

ID=16848770

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22666786A Pending JPS6381531A (en) 1986-09-25 1986-09-25 Microprogram control system

Country Status (1)

Country Link
JP (1) JPS6381531A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0744467A (en) * 1992-10-07 1995-02-14 Internatl Business Mach Corp <Ibm> Hierachical storage system and method for correction of error of microinstruction in hierachical storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0744467A (en) * 1992-10-07 1995-02-14 Internatl Business Mach Corp <Ibm> Hierachical storage system and method for correction of error of microinstruction in hierachical storage system

Similar Documents

Publication Publication Date Title
US4852092A (en) Error recovery system of a multiprocessor system for recovering an error in a processor by making the processor into a checking condition after completion of microprogram restart from a checkpoint
JPH07117903B2 (en) Disaster recovery method
US4231089A (en) Data processing system with apparatus for correcting microinstruction errors
JPS6381531A (en) Microprogram control system
EP0596144A1 (en) Hierarchical memory system for microcode and means for correcting errors in the microcode
JP2665039B2 (en) Micro program controller
JPH04125753A (en) On-lined diagnostic system for memory
JPS58213349A (en) Information processor
JPS59125453A (en) Retrying system
JP2998282B2 (en) Memory device
JPS6027028A (en) Microprogram controller
JPH02285443A (en) Fault recovery system
JPS5931800B2 (en) Control memory diagnostic method
JPS58103040A (en) Microprogram controller
JPS6261974B2 (en)
JPH05289946A (en) Memory control system
JPH04332997A (en) Troubleshooting system
JPH05289947A (en) Ecc check system
JPH0341538A (en) Main storage device
JPH01166144A (en) Debugging system for firmware program
JPH0529934B2 (en)
JPH1078891A (en) Software program evaluation device
JPH083803B2 (en) NMI processing method
JPH02178862A (en) Information processor
JPH0229839A (en) Microprogram control device