JPS58186853A - Initial diagnostic system - Google Patents

Initial diagnostic system

Info

Publication number
JPS58186853A
JPS58186853A JP57068305A JP6830582A JPS58186853A JP S58186853 A JPS58186853 A JP S58186853A JP 57068305 A JP57068305 A JP 57068305A JP 6830582 A JP6830582 A JP 6830582A JP S58186853 A JPS58186853 A JP S58186853A
Authority
JP
Japan
Prior art keywords
microprogram
control circuit
memory
program
sequence
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
JP57068305A
Other languages
Japanese (ja)
Inventor
Toshikiyo Onuki
大貫 俊清
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Tokyo Shibaura Electric Co Ltd
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 Toshiba Corp, Tokyo Shibaura Electric Co Ltd filed Critical Toshiba Corp
Priority to JP57068305A priority Critical patent/JPS58186853A/en
Publication of JPS58186853A publication Critical patent/JPS58186853A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Abstract

PURPOSE:To facilitate an initial diagnosis while adding a little hardware, by providing an FF which is set in a diagnostic mode and reset by a microprogram, and a control circuit which alters a microprogram sequence according to the state of the FF. CONSTITUTION:A cash memory 102 is provided between a main memory 101 and an arithmetic control circuit 103 controlled by the microprogram stored in a control storage part 104 to constitute an information processor. This processor is provided with the FF106 which is set in diagnostic mode right after power-on operation and reset under the program control of the circuit 103. A sequence controller part 105 alters the sequence of the microprogram according to the state of the FF106. Then, the program is stored in the memory 103 and after processing is carried out according to the stored program, a check on whether the program processing is completed normal or not is made in an initial diagnostic routine by adding a little hardware.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は高速緩衝記憶機構(キャッシュメモリ)を有し
てなる情報処理装置に用いられる初期診断方式に関する
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an initial diagnosis method used in an information processing apparatus having a high-speed buffer storage mechanism (cache memory).

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

近年、半導体技術の進歩に伴い、半導体メモリ素子が安
価かつ容易に入手可能であることかう、ミニコンピユー
タ等の小形電子計算機においても、性能の向上を計るべ
くキャッシュメモリ(Cache Memory )を
有してなる装置構成が広く普及してきた。一方、計算機
の制御をマイクロプログラムによって行なう方法も一般
的になってきており、RAS (Reliab%11t
y 、 Avail−ability + 5ervi
eeabi目ty)の向上を目指し、マイクロプログラ
ムによる診断機能をもつものも多い。
In recent years, with the advancement of semiconductor technology, semiconductor memory elements have become cheap and easily available, and even small computers such as minicomputers are equipped with cache memory to improve performance. This device configuration has become widespread. On the other hand, methods for controlling computers using microprograms have become common, and RAS (Reliab%11t
y, Avail-ability + 5ervi
Many of them have diagnostic functions using microprograms, with the aim of improving performance (e.g., eyesight).

この際、マイクロプログラムによる診断では、演算回路
のデータバス系等を診断することは容易であるが、命令
実行の制御回路の診断等は困【であった。
At this time, in diagnosis using a microprogram, it is easy to diagnose the data bus system of the arithmetic circuit, but it is difficult to diagnose the control circuit for executing instructions.

特に小形電子計算機においては、診断のだめの−・−ド
ウエアの追加がコスト面から難かしく、データ・母ス以
外の診断は通常行なっていないのが現況である。
Particularly in small electronic computers, it is difficult to add additional software for diagnosis due to cost considerations, and the current situation is that diagnostics other than data and motherboards are not normally performed.

〔発明の目的」 本発明は上記実情に鑑みなさ7したもので、電源投入時
のマイクロプログラムによる初期診断において、命令実
行の制御回路を既存の、・・−ドウエアを有効に用いて
安価かつ容易に診断することのできる初期診断方式を提
供することを目的とする。
[Object of the Invention] The present invention was developed in view of the above-mentioned circumstances, and it is an inexpensive and easy method to effectively use the existing software to control the command execution in the initial diagnosis using a microprogram when the power is turned on. The purpose is to provide an initial diagnosis method that can diagnose the disease.

〔発明の概要〕[Summary of the invention]

本発明は、電源投入直後の初期診断中であることを示す
フリップフロップのセット時において、そのフリップフ
ロップのセット信号をプログラムシーケンスの判断条件
として、成るマイクロプログラムシーケンスをキャッシ
ュメモリに書き込み、そのプログラムに従う処理を実行
せしめた後、プログラム制御の下に処理動作を通常の初
期診断ルーチンに戻して、上記処理結果の正当性をチェ
ックする構成としたものである。
In the present invention, when a flip-flop is set to indicate that an initial diagnosis is being performed immediately after power is turned on, the set signal of the flip-flop is used as a condition for determining the program sequence, and a microprogram sequence consisting of the set signal is written into the cache memory, and the program is followed. After the processing is executed, the processing operation is returned to the normal initial diagnosis routine under program control to check the validity of the processing results.

このことにより、命令実行の制御回路を既存の−・−ド
ウエアを用いることで容易に且つ有効に診断することが
できる。
As a result, the instruction execution control circuit can be easily and effectively diagnosed using existing hardware.

〔発明の実施例〕[Embodiments of the invention]

以下図面を参照して本発明の一実施例を説明する。図中
、10ノは揮発性又は不揮発性の主メモリ(MM)、1
02は高速緩衝記憶機構をなすキャッシュメモリ(CA
CHE )である。103は上記主メモリ101(及び
キャッジ−メモリ102)をリード/ライトする演算制
御回路(CNT )・であり、104けマイクロプログ
ラムを格納しているコントロールス)7部(C8)であ
る。105はマイクロプログラムのシークyxを制御t
−るシーケンスコントローラ(5EQCNT )である
。106は電源投入時に発生するパルス信号(以下PU
P信号を称す)によシセットされ、インシャライズ終了
に伴ってリセットされるフリップフロップ(PFF)テ
アル。
An embodiment of the present invention will be described below with reference to the drawings. In the figure, 10 is volatile or non-volatile main memory (MM), 1
02 is a cache memory (CA) that serves as a high-speed buffer storage mechanism.
CHE). 103 is an arithmetic control circuit (CNT) for reading/writing the main memory 101 (and cache memory 102), and is a control section (C8) 7 which stores 104 microprograms. 105 controls the seek yx of the microprogram.
- sequence controller (5EQCNT). 106 is a pulse signal (hereinafter referred to as PU) generated when the power is turned on.
A flip-flop (PFF) signal is set by the P signal and reset upon completion of initialization.

ここで一実施例の動作を説明する。主メモリ101は演
算制御回路103からのり−ド/ライト要求により、デ
ータをリード/ライトする。
Here, the operation of one embodiment will be explained. The main memory 101 reads/writes data in response to read/write requests from the arithmetic control circuit 103.

この主メモリ10ノはフリップフロップ106がリセッ
ト状態にあると、演算制御回路103からの要求を無条
件に受付けるが、フリップフロップ106がセット状態
にあると、不揮発性メモリ構造の場合は、演算制御回路
103からの要求を無視する。この機能は電源投入時に
、マイクロプログラムにより揮発性メモリをイニシャル
状態(通常全アドレスに0”をライトする)にさせる方
式の場合、マイクロプログラムがメモリの種類を知るこ
となく、メモリイニシャライズルーチンを動作させる方
法として公知である。キャッシュメモリ102は主メモ
リ10ノと演算制御回路103との間に位置するバッフ
ァメモリであり、演算制御回路103が主メモリ101
からデータをリードしたとき、一定の方式にもとづき、
そのデータを一時的に5− 保持しておく。以後、演算制御回路1θ3がキャッシュ
メモリ102にも保持されるデータを主メモリ10ノよ
りリードする場合、主メモリ101からではなく、キャ
ッシュメモリ102からそのデータをリードする。一方
、キャッシュメモリ102内にも保持されているデータ
を演算制御回路iosがライト動作で誉き換える場合に
は、キャッシュメモリ102及び主メモIJ J 01
の双方のデータが書き換えられる。演算制御回路103
の主メモリ101へのリードアクセス動作により、キャ
ッシュメモリ102内に保持されているデータは用定の
方式に従い次々と交換されてゆく−0この方式について
は穐々のものがあり、ここでは言及しない。演算制御回
路103はコントロールストア部104よシリードされ
たデータ(マイクロ命令)にもとづき演算実行等の椎々
の制御を行なう。コントロ ”ストア部104tdシー
ケンスコントローラ105からのアドレス情報により、
そのアドレスに対応したマイクロ命令を出力するための
6一 制御メモリであシ、マイクロプログラムを格納している
。シーケンスコア)ローラ105は演算制御回路103
、及びフリップフロップ106からの信号にもとづきマ
イクロプログラムのシーケンスを制御する。フリ、デフ
ロッジ106は電源投入時であることを示すフリップフ
ロップであり、電源投入時に発生するPUP信号でセッ
トされ、電源投入時の各種処理がマイクロプログラムに
よって実行されるとその最後のマイクロ命令にてリセッ
トされる。
When the flip-flop 106 is in the reset state, this main memory 10 accepts requests from the arithmetic control circuit 103 unconditionally, but when the flip-flop 106 is in the set state, in the case of a nonvolatile memory structure, the arithmetic control circuit 103 accepts requests from the arithmetic control circuit 103. The request from circuit 103 is ignored. This function allows the microprogram to run the memory initialization routine without knowing the type of memory when the microprogram initializes the volatile memory (normally by writing 0" to all addresses) when the power is turned on. The cache memory 102 is a buffer memory located between the main memory 10 and the arithmetic control circuit 103, and the arithmetic control circuit 103 is located between the main memory 101 and the arithmetic control circuit 103.
When reading data from , based on a certain method,
5- Hold that data temporarily. Thereafter, when the arithmetic control circuit 1θ3 reads data that is also held in the cache memory 102 from the main memory 10, the data is read from the cache memory 102 instead of from the main memory 101. On the other hand, when the arithmetic control circuit ios replaces data held also in the cache memory 102 by a write operation, the data held in the cache memory 102 and the main memory IJ J 01
Both data will be rewritten. Arithmetic control circuit 103
By the read access operation to the main memory 101, the data held in the cache memory 102 is exchanged one after another according to a predetermined method. . The arithmetic control circuit 103 performs various controls such as execution of arithmetic operations based on data (microinstructions) serially read by the control store section 104. Control “Store unit 104, according to the address information from the td sequence controller 105,
A 6-control memory is used to output a microinstruction corresponding to the address, and stores a microprogram. Sequence core) roller 105 is arithmetic control circuit 103
, and the sequence of the microprogram based on the signals from the flip-flop 106. The flip-flop 106 is a flip-flop that indicates that the power is turned on. It is set by the PUP signal generated when the power is turned on, and when various processes are executed by a microprogram at the time of power-on, the last microinstruction is used. will be reset.

次に、初期マイクロプログラム診断による、命令実行動
作の診断について説明する。初期診断は電源投入時、す
なわちフリップフロップ106がセットしている状態で
行なわれる。まず、キャッシュメモリ102に制御動作
チェックのだめの成るマイクロゾログラムシーケンスを
書込む際の前置処理として、主メモリ101の成るエリ
アの内容をキャッシュメモリ1θ2にも保持させる。こ
の方法はキャッシュの方式にもよるが、主メモリを適当
な方法でリードすることにより容易に実現可能である。
Next, the diagnosis of instruction execution operations by initial microprogram diagnosis will be explained. The initial diagnosis is performed when the power is turned on, that is, while the flip-flop 106 is set. First, as a preprocessing when writing a microzologram sequence that requires a control operation check to the cache memory 102, the contents of the area of the main memory 101 are also held in the cache memory 1θ2. Although this method depends on the cache system, it can be easily implemented by reading the main memory using an appropriate method.

次に、マイクロプログラムにより、主メモリ101への
ライト動作を行ない、キャッシュメモリ102内ニ命令
シーケンスを書込む。このライト動作は主メモリ10ノ
が不揮発性メモリ構造の場合には、キャッシュメモリ1
02に対してのみライト動作がなされ、診断により主メ
モリ101の内容が損なわれることのないようにする。
Next, the microprogram performs a write operation to the main memory 101 and writes the two-instruction sequence in the cache memory 102. This write operation is performed when the main memory 10 has a non-volatile memory structure, and the cache memory 1
A write operation is performed only to 02, so that the contents of the main memory 101 are not damaged due to diagnosis.

又、揮発性メモリ構造の場合にQま、主メモリ101に
もライト動作が行なわれるが、初期診断後、主メモリl
θ1のイニシャライズ処理がなされるので不都合は生じ
ない。キャッジ−メモリ102に書込まれた命令シーケ
ンスはその最後ヲイIJ−ガル命令としておく。次にマ
イクロプログラムは命令シーケンスの先頭番地から命令
を実行するだめの制御を開始する。ここで、マイクロプ
ログラムのシーケンスは今までの初期診断のためのルー
チンから外れ、通常の命令実行のルーチンに入る。而し
て演算制御回路103によシ順次命令の処理が実行され
、最後の命令の実行時において、イリーガル命令が検出
されることによって、イリーガル命令処理ルーチンに制
御が移る。イリーガル命令処理ルーチンは、通常はソフ
トウェアにイリーガル命令の発生を知らせるため、割込
みを発生させるが、この際、このルーチンの中で、フリ
ップフロップ106の状態を調べ、フリップフロップ1
06がセット状態にある際は、診断中であると判断して
マイクロプログラムのシーケンスを初期診断ルーチンに
戻すようにしておく。初期診断ルーチンは制御が戻った
ところで、命令実行の結果をチェックし、診断を打力う
。なお、主メモリ101が不揮発イ童メモリ構造の場合
、この時点では主メモリ101とキャッシュメモリ10
2の内容とに不一致が生じているが、診断の後に行なわ
れる電源投入時の処理の中でキャッシュメモリ102が
イニシャライズされるため、不都合が生じることはない
In addition, in the case of a volatile memory structure, a write operation is also performed to the main memory 101, but after the initial diagnosis, the main memory l
Since the initialization process for θ1 is performed, no inconvenience occurs. The last instruction sequence written to the cache memory 102 is an IJ-gal instruction. Next, the microprogram starts controlling the execution of instructions from the first address of the instruction sequence. Here, the microprogram sequence departs from the routine for initial diagnosis and enters a normal instruction execution routine. The arithmetic control circuit 103 sequentially processes the instructions, and when the last instruction is executed, an illegal instruction is detected and control is transferred to an illegal instruction processing routine. The illegal instruction processing routine normally generates an interrupt to notify the software of the occurrence of an illegal instruction. At this time, the routine checks the state of the flip-flop 106 and
When 06 is in the set state, it is determined that diagnosis is in progress and the microprogram sequence is returned to the initial diagnosis routine. When control is returned, the initial diagnostic routine checks the result of command execution and performs a diagnosis. Note that if the main memory 101 has a non-volatile memory structure, at this point the main memory 101 and the cache memory 10
Although there is a discrepancy between the contents of 2 and 2, no inconvenience occurs because the cache memory 102 is initialized during power-on processing performed after diagnosis.

このような初期診断処理動作により、命令実行の制御回
路動作の診断に固有の複雑なハード9− づエアを必要とせず、電源投入時において、既存の診断
に加えて命令実行の制御回路の動作チェックを行なうこ
とができ、これによって信頼性の高い初期診断が行なえ
る。
This type of initial diagnostic processing operation eliminates the need for complex hardware and air conditioning that is unique to diagnosing the operation of the control circuit for instruction execution, and allows the operation of the control circuit for instruction execution to be performed in addition to existing diagnostics when the power is turned on. This allows a reliable initial diagnosis to be made.

なお、上記実施例では、命令シーケンスの最後をイリー
ガル命令にし、イリーガル命令処理のマイクロプログラ
ムルーチンにνいて、フリップフロップ106のセット
状態により、診断ルーチンへ戻したが、他の方法であっ
てもフリツー7’70ツデ106の参照により診断ルー
チンへ戻れる方法であればよい。又、電源投入時のメモ
リクリ°γ用に設けられたフリップフロップ106を併
用したが、診断中を示すフリップフロップ(フラグレジ
スタ)を別個Kffけてもよい。
In the above embodiment, the last of the instruction sequence is an illegal instruction, and the process returns to the microprogram routine for processing the illegal instruction, and then returns to the diagnostic routine depending on the set state of the flip-flop 106. However, other methods may also be used. Any method that can return to the diagnostic routine by referring to the 7'70 Tsude 106 may be used. Further, although the flip-flop 106 provided for memory clearing when the power is turned on is used, a separate flip-flop (flag register) Kff indicating that diagnosis is in progress may be used.

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

以上詳記したように本発明によれば、電源投入時のマイ
クロブ「Jグラムによる初期す断時において、命令実行
の制御回路を既存のハードウェアを有効に用いて安価か
つ容易に診断するこ10− とのできる初期診断方式が提供できる。
As described in detail above, according to the present invention, it is possible to diagnose the instruction execution control circuit at low cost and easily by effectively using existing hardware at the time of initial shutdown due to the microb "J-gram" when the power is turned on. − It can provide an initial diagnosis method that allows for

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

図は本発明の一実施例を示すブロック図である。 101・・・主メモリ(MM)、J(M’・・・キヤ。 シュメモリ(CACHE) 、1θ3・・・演算制御回
路(CNT)、104・・・コントロールストア部(C
8)、105・・・シーケンスコントローラ(5EQC
NT )、106・・・フリッゾフロッデ(PFF )
。 出願人代理人  弁理士 鈴 江 武 彦11−
The figure is a block diagram showing one embodiment of the present invention. 101... Main memory (MM), J(M'... CACHE), 1θ3... Arithmetic control circuit (CNT), 104... Control store section (C
8), 105... Sequence controller (5EQC
NT), 106... Frizzo Frodde (PFF)
. Applicant's agent Patent attorney Takehiko Suzue 11-

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラムにより制御される演算制御回路と主
メモリとの間にキャッシュメモリを介在してなる情報処
理装置において、電源投入直後の診断モード時にセット
状態にあり、マイクロプログラム制御によシ、リセット
されるフリップフロップと、このフリップフロップの状
態に応じてマイクロプログラムシーケンスを変えるシー
ケンス制御回路、及びこのシーケンス制御回路の制御の
下に前記フリップフロップのセット状態時において前記
キャッシュメモリにプログラムを格納せしめ、前記キャ
ッシュメモリに格納されたプログラムに従う処理を実行
せしめる手段とを有し、前記プログラムの処理実行後に
おける初期診断ルーチンにて前記プログラム処理の正当
性チェックを行なうことを特徴とした初期診断方式。
In an information processing device in which a cache memory is interposed between an arithmetic control circuit controlled by a microprogram and the main memory, it is set in the diagnostic mode immediately after power is turned on, and is reset by the microprogram control. a flip-flop; a sequence control circuit that changes a microprogram sequence according to the state of the flip-flop; and a sequence control circuit that stores a program in the cache memory when the flip-flop is in a set state under the control of the sequence control circuit; 1. An initial diagnosis method, comprising means for executing processing according to a program stored in a memory, and checking the validity of the program processing in an initial diagnosis routine after the processing of the program is executed.
JP57068305A 1982-04-23 1982-04-23 Initial diagnostic system Pending JPS58186853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57068305A JPS58186853A (en) 1982-04-23 1982-04-23 Initial diagnostic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57068305A JPS58186853A (en) 1982-04-23 1982-04-23 Initial diagnostic system

Publications (1)

Publication Number Publication Date
JPS58186853A true JPS58186853A (en) 1983-10-31

Family

ID=13369945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57068305A Pending JPS58186853A (en) 1982-04-23 1982-04-23 Initial diagnostic system

Country Status (1)

Country Link
JP (1) JPS58186853A (en)

Similar Documents

Publication Publication Date Title
JPH0581935B2 (en)
US5987585A (en) One-chip microprocessor with error detection on the chip
US5146569A (en) System for storing restart address of microprogram, determining the validity, and using valid restart address to resume execution upon removal of suspension
JPH07141176A (en) Command retrial control system
US5898867A (en) Hierarchical memory system for microcode and means for correcting errors in the microcode
JPS6319058A (en) Memory device
JPS58186853A (en) Initial diagnostic system
JPS58154043A (en) Information processor
JPS59172044A (en) Instruction control system
JP3036449B2 (en) Memory diagnostic device
JPS6029131B2 (en) Diagnostic method
JPS62192824A (en) Access system for processor
JP3190694B2 (en) Diagnostic method for local memory
JPS60193046A (en) Detecting system for instruction exception
JPH04242455A (en) Inter-processor communication trace circuit
JPH02281341A (en) Write data confirming method for debugging
JPH02275551A (en) Debugging device for cache memory
JPH0320834A (en) Initial diagnostic method for information processor
JPH1031620A (en) Diagnostic device for cache memory
JPH0217555A (en) Memory diagnosing system
JPH0548498B2 (en)
JPH0644098A (en) Memory access bus comparator
JPH1027153A (en) Bus transfer device
JPH0452742A (en) Abnormality detecting circuit for storage
JPH05216718A (en) Debugging method