JPS62241034A - Microprogram controller - Google Patents

Microprogram controller

Info

Publication number
JPS62241034A
JPS62241034A JP61083436A JP8343686A JPS62241034A JP S62241034 A JPS62241034 A JP S62241034A JP 61083436 A JP61083436 A JP 61083436A JP 8343686 A JP8343686 A JP 8343686A JP S62241034 A JPS62241034 A JP S62241034A
Authority
JP
Japan
Prior art keywords
microprogram
register
microinstruction
accumulator
instruction
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
JP61083436A
Other languages
Japanese (ja)
Inventor
Takeya Okazaki
岡崎 健也
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61083436A priority Critical patent/JPS62241034A/en
Publication of JPS62241034A publication Critical patent/JPS62241034A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To detect previously the abnormality for each microinstruction of a microprogram and also to detect the sequence abnormality of the microprogram, by using an adder and an accumulator and checking the result of accumulation. CONSTITUTION:When an instruction register 1 is initialized, a microinstruction that processes the instruction code of the register 1 is read out of a microprogram memory 5 by a microprogram sequencer 4 and checked by a parity checker 6 for each microinstruction. At the same time, the microinstructions read out of an adder 8 and an accumulator 9 are accumulated and also the parity of the microprogram is checked and accumulated. In case the microprogram is branched halfway, all branch conditions are set to a condition register 3 via a serial input (e) and then the microprogram is read out to undergo the parity check. Then the contents of the accumulator 9 are compared with the expected value. If no coincidence is obtained from said comparison, the sequence abnormality of the microprogram is decided.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、電子計算機等の制御方法の一つであるマイ
クロプログラム制御方法により制御を行うマイクロプロ
グラム制御装置、%にその自己点検に関するものである
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a self-inspection of a microprogram control device that performs control using a microprogram control method, which is one of the control methods for electronic computers, etc. be.

〔従来の技術〕[Conventional technology]

第2図は、従来のマイクロプログラム制御装置について
説明するための図である。図において。
FIG. 2 is a diagram for explaining a conventional microprogram control device. In fig.

(11は実行すべき命令の格納される命令レジスタ。(11 is an instruction register in which instructions to be executed are stored.

+21は命令レジスタ(1)K保持された命令を処理す
るマイクロプログラムの先頭アドレスが記録されたマツ
プメモリ、(3)はマイクロプログラムの分岐条件を保
持する条件レジスタ、(4:はマイクロプログラムの実
行順序を制御するマイクロプログラムシーケンサ、(5
1はマイクロプログラム!格納したマイクロプログラム
メモリ、(6)はマイクロプログラムメモ!J 151
から読み出されたマイクロ命令を検査するパリティチェ
ッカー、(7)はマイクロ命令を保持するマイクロ命令
レジスタである。
+21 is an instruction register (1) Map memory in which the start address of the microprogram that processes the held instructions is recorded, (3) is the condition register that holds the branch condition of the microprogram, (4: is the execution order of the microprogram A microprogram sequencer that controls (5
1 is a micro program! The stored microprogram memory (6) is a microprogram memo! J151
A parity checker (7) is a microinstruction register that holds microinstructions.

次に動作について説明する。メモリから読み出された次
に実行すべき命令aは命令レジスタ(1)に保持され、
マツプメモリ(ツにより上記命令を処理するマイクロプ
ログラムの先頭アドレスが読み出され、マイクロプログ
ラムシーケンサ(41を経由してマイクロプログラムメ
モリ(5+へ出力され、読み出されたマイクロ命令がマ
イクロ命令レジスタ(7)にセットされ、このマイクロ
命令によりマイクロプログラムシーケンサ(4:が制御
され9次に実行すべきマイクロプログラムのアドレスが
マイクロプログラムメモ1月51へ出力され1次に実行
すべきマイクロ命令がマイクロ命令レジスタ(7)Kセ
ットされる。途中、マイクロプログラムの分岐がある場
合1条件レジスタ(3)にセットされた電子計算機の状
態すがマイクロプログラムシーケンサ(41によりテス
トされ9分岐が実行される。以上の様にして。
Next, the operation will be explained. The next instruction a to be executed read from the memory is held in the instruction register (1),
The start address of the microprogram that processes the above instruction is read out by the map memory (41) and output to the microprogram memory (5+) via the microprogram sequencer (41), and the read microinstruction is stored in the microinstruction register (7). This microinstruction controls the microprogram sequencer (4:), the address of the next microprogram to be executed is output to the microprogram memo 51, and the first microinstruction to be executed is stored in the microinstruction register (4). 7) K is set. If there is a microprogram branch on the way, the computer state set in the 1 condition register (3) is tested by the microprogram sequencer (41) and 9 branches are executed. Do it.

次々にマイクロ命令が読み出され、信号dKより電子計
算機内各部が制御される。この時、マイクロプログラム
メモリ(52から読み出されたマイクロ命令についてパ
リティチェックが行なわれ、異常の時、異常フラグCに
より外部に通知される。
The microinstructions are read out one after another, and each part within the computer is controlled by the signal dK. At this time, a parity check is performed on the microinstructions read from the microprogram memory (52), and in the event of an abnormality, an abnormality flag C is used to notify the outside.

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

従来のマイクロプログラム制御装置は以上のように構成
されているので、異常が検出されるのは異常のマイクロ
命令が読み出された時のみで、、ll前に異常を検出で
きず、またマイクロプログラムのシーケンスの異常は検
出できないなどの問題点があった。
Since the conventional microprogram control device is configured as described above, an abnormality is detected only when the abnormal microinstruction is read, and the abnormality cannot be detected before the microprogram is read. There were problems such as the inability to detect sequence abnormalities.

この発明は上記のような問題点を解消するため罠なされ
たもので、事前にマイクロプログラムのマイクロ命令毎
の異常を検出できるとともに、マイクロプログラムのシ
ーケンスの異常も検出できるマイクロプログラム制御装
置を得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a microprogram control device that can detect abnormalities in each microinstruction of a microprogram in advance, as well as detect abnormalities in the sequence of a microprogram. With the goal.

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

この発明に係るマイクロプログラム制御装置は。 A microprogram control device according to the present invention.

命令レジスタにカウンタ機能を持たせ、順次全ての命令
コードを発生させ、各命令コードを処理するマイクロ命
令を読み出し、1命令毎検査するとともに、全ての読み
出されたマイクロ命令を累算するようにしたものである
。またマイクロ命令の分岐を検査するため9条件レジス
タを任意に設定できるようにしたものである。
The instruction register has a counter function, generates all instruction codes sequentially, reads the microinstructions that process each instruction code, inspects each instruction, and accumulates all the read microinstructions. This is what I did. In addition, nine condition registers can be set arbitrarily to check branching of microinstructions.

〔作用〕[Effect]

この発明によるマイクロプログラム制御装置は。 A microprogram control device according to the present invention.

バリディのチェック等により読み出されたマイクロ命令
をチェックすると共に、全ての命令コードを処理するマ
イクロプログラムをシーケンスに従って読み出されたマ
イクロ命令の累算結果を検査することによりマイクロプ
ログラムのシーケンスの異常も検出する。
In addition to checking the read microinstructions by checking validity, etc., the microprogram that processes all instruction codes is checked for abnormalities in the microprogram sequence by inspecting the accumulated results of the microinstructions read out in sequence. To detect.

〔実施例〕〔Example〕

以下、この発明の一実施例を図により説明する。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図において、(1)はカウンタで構成され、実行す
べき命令の格納される命令レジスタ、(2)は命令レジ
スタ+IIK保持された命令を処理するマイクロプログ
ラムの先頭アドレスが記録されたマツプメモ’)、I3
+はシリアル入力により任意の甑に設定可能なシフトレ
ジスタで構成され、マイクロプログラムの分岐条件を保
持する条件レジスタ、(4)はマイクロプログラムの実
行順序を制御するマイクロプログラムメモリ/す、(5
)はマイクロプログラムを格納したマイクロプログラム
メモリ、(6)はマイクロプログラムメモリ(51から
読み出されたマイクロ命令を検査するパリティ・チェッ
カー、(7)はマイクロ命令を保持するマイクロ命令レ
ジスタ、(8)はマイクロ命令を順次加算する加算器、
(9)は加算器(8)の出力を保持するアキュムレータ
である。
In Figure 1, (1) is an instruction register that is made up of a counter and stores instructions to be executed, and (2) is a map memo that records the start address of the microprogram that processes the instructions held in the instruction register + IIK. ), I3
+ consists of a shift register that can be set to any position by serial input, and is a condition register that holds branch conditions of the microprogram. (4) is a microprogram memory that controls the execution order of the microprogram. (5)
) is a microprogram memory that stores a microprogram, (6) is a parity checker that checks microinstructions read from the microprogram memory (51), (7) is a microinstruction register that holds microinstructions, (8) is an adder that adds microinstructions sequentially,
(9) is an accumulator that holds the output of the adder (8).

次に妙作について説明する。電子計算機内各部の制御に
関しては従来のマイクロプログラム制御装置と同一であ
り、自己膚検時以下の通り動作する。
Next, I will explain about the masterpiece. The control of each part within the computer is the same as a conventional microprogram control device, and operates as follows during self-skin testing.

命令レジスタ(1)は初期設定され、その命令コードを
処理するマイクロ命令が、マイクロプログラムシーケン
サ(41により、そのシーケンス通りにマイクロプログ
ラムメモリ(+51から読み出され、各マイクロ命令毎
にパリティチェッカー+61 Kより検査され、 f5
J時に加算器(8+及びアキュムレータ(9)により読
み出されたマイクロ命令が累算されてい(。
The instruction register (1) is initialized, and the microinstruction that processes the instruction code is read out from the microprogram memory (+51) according to the sequence by the microprogram sequencer (41). tested by f5
At J time, the microinstructions read by the adder (8+) and the accumulator (9) are accumulated (.

命令レジスタ+11にセットされた命令コードを処理す
るマイクロプログラムが全て読み出された後。
After all microprograms that process the instruction code set in instruction register +11 have been read.

命令レジスタ(1)をカウントアツプし、その命令コー
ドを処理するマイクロプログラムのパリティをチェック
し、累算tとる。途中、マイクロプログラムの分岐があ
る場合9条件レジスタ(31にシリアル人力eによりす
べての分岐条件を設定する事により全てのマイクロプロ
グラムを読み出す。この様にして、全マイクロ命令を読
み出し、パリティチェックをすると共に、全ての命令コ
ードについて上記動作を実施したのち、アキュムレータ
(9)の内容を期待値と比較し異なる場合、マイクロプ
ログラムシーケンス異常信号fとして外部に通知する。
The instruction register (1) is counted up, the parity of the microprogram that processes the instruction code is checked, and the cumulative value t is obtained. If there is a branch of the microprogram on the way, read out all the microprograms by setting all the branch conditions in the 9 condition register (31) using serial e.In this way, read out all the microinstructions and check the parity. At the same time, after performing the above operations for all instruction codes, the contents of the accumulator (9) are compared with the expected value, and if different, the microprogram sequence error signal f is notified to the outside.

なお、上記実施例では全読み出し命令のチェックサムを
検査したが、各命令コード毎にチェックサムを検査する
ことにより、更に詳しく異常個所を検出することができ
る。
In the above embodiment, the checksums of all read instructions are inspected, but abnormalities can be detected in more detail by inspecting the checksums for each instruction code.

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

以上のように、この発明によるマイクロプログラム制御
装置は、各命令毎にマイクロ命令をそのシーケンスに従
って読み出し、各命令をチェックすると共に、全読み出
し命令のチェックサムを検査するので、各マイクロ命令
の異常と共にシーケンスの異常をも検出できる効果があ
る。
As described above, the microprogram control device according to the present invention reads each microinstruction according to its sequence, checks each instruction, and also checks the checksum of all read instructions. It is also effective in detecting sequence abnormalities.

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

at図はこの発明によるマイクロプログラム制御装置を
説明するための図、第2図は従来のマイクロプログラム
制御装置を説明するための図である。■中、(1)は命
令レジスタ、(2:はマツプメモリ。 (3)は条件レジスタ、(41はマイクロプログラムシ
ーケンサ、(5)はマイクロプログラムメモリ、(6)
はパリティチェッカー、(7)はマイクロ命令レジスタ
。 (81は加算機、(9)はアキュムレータである。 なお9図中、同−又は相当部分は同一符号を付している
Figure at is a diagram for explaining a microprogram control device according to the present invention, and FIG. 2 is a diagram for explaining a conventional microprogram control device. ■ Inside, (1) is the instruction register, (2: is the map memory, (3) is the condition register, (41 is the microprogram sequencer, (5) is the microprogram memory, (6)
is a parity checker, and (7) is a microinstruction register. (81 is an adder, and (9) is an accumulator. In FIG. 9, the same or corresponding parts are given the same reference numerals.

Claims (1)

【特許請求の範囲】[Claims] 電子計算機等の制御方法であるマイクロプログラム制御
方法により制御を行うマイクロプログラム制御装置にお
いて、カウンタ機能を持つ命令レジスタおよび試験時に
任意に設定する機能を持つ条件レジスタとを有するマイ
クロプログラムシーケンス制御回路と、マイクロプログ
ラムメモリから読み出されたマイクロ命令を検査する検
査回路と、マイクロプログラムメモリから読み出された
マイクロ命令を順次累算する累算器とを有することを特
徴とするマイクロプログラム制御装置。
In a microprogram control device that performs control using a microprogram control method that is a control method for electronic computers, etc., a microprogram sequence control circuit includes an instruction register having a counter function and a condition register having a function to arbitrarily set during a test; A microprogram control device comprising: a test circuit that tests microinstructions read from a microprogram memory; and an accumulator that sequentially accumulates microinstructions read from the microprogram memory.
JP61083436A 1986-04-11 1986-04-11 Microprogram controller Pending JPS62241034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61083436A JPS62241034A (en) 1986-04-11 1986-04-11 Microprogram controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61083436A JPS62241034A (en) 1986-04-11 1986-04-11 Microprogram controller

Publications (1)

Publication Number Publication Date
JPS62241034A true JPS62241034A (en) 1987-10-21

Family

ID=13802377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61083436A Pending JPS62241034A (en) 1986-04-11 1986-04-11 Microprogram controller

Country Status (1)

Country Link
JP (1) JPS62241034A (en)

Similar Documents

Publication Publication Date Title
DE68919069T2 (en) Method and device for error detection and correction in a computer system operating according to the overlapped control method.
EP0111952B1 (en) Verification of a processor architecture having a partial instruction set
EP0141744B1 (en) Method and apparatus for self-testing of floating point accelerator processors
CN109902001B (en) Method for detecting uninitialized variable and terminal equipment
JPS62241034A (en) Microprogram controller
JPS61221837A (en) Computer checking method
JPS63193235A (en) Inspecting method for condition code
JP3315266B2 (en) Self-diagnosis status display method
JPS621041A (en) Diagnosis circuit of information processor
JPH03294934A (en) Debugger for high level program lenguage
JPH0214734B2 (en)
JPH0314148A (en) Program breakdown detecting device
JPS62210551A (en) Microprogram tracing device
JPS63170739A (en) Branch forecast test system
JPS62208136A (en) Sequential control circuit test system
JPS63226745A (en) Processor system
JPS6160146A (en) Check system of microprogram
JPH0361211B2 (en)
JPS61165171A (en) Microcomputer
JPH03263134A (en) Test processing system for test processor
JPS6055445A (en) Retrying system
JPH038028A (en) Ras check function inspecting system
JPS63300330A (en) Debugging method for firmware
JPH0769846B2 (en) Error processing circuit verification device
JPH011041A (en) Early failure detection method