JPS59168996A - Method of writing control memory in computer - Google Patents

Method of writing control memory in computer

Info

Publication number
JPS59168996A
JPS59168996A JP58044785A JP4478583A JPS59168996A JP S59168996 A JPS59168996 A JP S59168996A JP 58044785 A JP58044785 A JP 58044785A JP 4478583 A JP4478583 A JP 4478583A JP S59168996 A JPS59168996 A JP S59168996A
Authority
JP
Japan
Prior art keywords
data
writing
written
section
check
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
JP58044785A
Other languages
Japanese (ja)
Inventor
Takashi Aoki
隆 青木
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58044785A priority Critical patent/JPS59168996A/en
Publication of JPS59168996A publication Critical patent/JPS59168996A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1076Parity data used in redundant arrays of independent storages, e.g. in RAID systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/004Error avoidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices

Abstract

PURPOSE:To prevent run away of a microprogram by writing data different from data to be written in specified plural check bits during the course of writing and detecting an error in reading control memory when interruption occurs in writing. CONSTITUTION:A check bit writing selecting section 5 attached to a check bit section 2 is connected to a CPU7 and connected also to output side of a check bit section reading register 4. Further, data section 1 and check bit section 2 of control memory CS are connected to a timing controlling section 6. When writing data, data for operation is written in 1-0, and data for parity check are written in 2-0, 2-1, in control memory CS in the first writing. When interrupted in the first writing, erroneous data are written in check bits 2-0, 2-1. Accordingly, errors of these two bits are detected when reading the control memory CS and operation by CPU is stopped. Operation is made similarly hereafter.

Description

【発明の詳細な説明】 (1)  発明の技術分野 本発明は、コンピュータにおける制御記憶へのデータ書
込み方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to a method of writing data to control memory in a computer.

(2)技術の背景 コンピュータの制御記憶は、通常データ部とチェックビ
ット部とから構成され、データ部には演算に必要なデー
タが書込まれる一方、チェックビット部にはデータ部へ
の書込み情報が正しいか否かを検知するためのデータを
書込む様にしたFCC(エラー検出、訂正機能)付きの
ものがある。さらに、このような制御記憶の中には、当
該制御記憶へのデータの書込みを分割して行うものがあ
る。これは、一つのアドレス(データ部が例えば4バイ
ト、32ビツトから成っているものとする)のデータ部
を幾つかの区画(例えば4区画)に分け、データの書込
みを上記区画毎に行うものである。そして、データ部へ
書込みをした後ECCにチェック情報が書込まれる。こ
のような、分割書込み方式を採る制御記憶にあっては、
上記データの書込みに際して、一部の区画にはデータの
沓込みが行われたのに他の区画にはデータが書込まれな
かったという、いわゆる簀込みの中断が発生するという
ことがあり得る。このような中断が起った場合、中央処
理装置即ちCPUによる演算処理を正しく行うために、
当該CPUによって上記書込みが中断したデータ(或は
ワード)を読出す際には中断が生じている事実を検出す
る必要がある。
(2) Background of the technology The control memory of a computer usually consists of a data section and a check bit section.The data section stores data necessary for calculations, while the check bit section stores information written to the data section. Some devices are equipped with an FCC (error detection and correction function) that writes data to detect whether or not the error is correct. Furthermore, some of these control memories write data into the control memory in parts. This is a method that divides the data part of one address (assuming that the data part consists of, for example, 4 bytes and 32 bits) into several sections (for example, 4 sections), and writes data to each section. It is. After writing to the data section, check information is written to the ECC. In a control memory that uses such a divided write method,
When writing the above-mentioned data, it is possible that a so-called interruption in storage may occur, in which data is written to some partitions but not to other partitions. When such an interruption occurs, in order for the central processing unit (CPU) to perform calculation processing correctly,
When reading data (or words) whose writing has been interrupted by the CPU, it is necessary to detect the fact that the writing has been interrupted.

(3)  従来技術と問題点 従来においては、上に例示した制御記憶(各アドレスに
ついてデータ部が4バイトから成る)にデータを書込む
には、各アドレスのデータ部に必要なデータを曹込むと
共に、チェックビット部には、そのアドレスに書込んだ
データに対するエラー検出用の情報を書込み、読出し時
にエラー検出を行う。上記の様に4バイトのデータ部に
対しては通常7〜8ビツトのチェックビット部が追加さ
れておシ、チェックビット部の成るビットは、データ部
における各バイトのパリティとなシ、他のビットは複数
バイトに対するパリティとなるように決められている。
(3) Prior art and problems Conventionally, in order to write data to the control memory illustrated above (the data field consists of 4 bytes for each address), the necessary data is written into the data field of each address. At the same time, error detection information for the data written at the address is written in the check bit section, and error detection is performed at the time of reading. As mentioned above, a check bit section of 7 to 8 bits is usually added to the 4-byte data section, and the bits that make up the check bit section serve as the parity of each byte in the data section. Bits are determined to serve as parity for multiple bytes.

しかし、このような従来のデータ書込方法にあっては、
制御記憶へのデータの書込みに中断があったような場合
、CPUによって尚該書込みが中断したデータを読出す
際に、当該データが誤りであるにも係らずエラー検出を
せずそのまま読出し及び演算を行ってしまうという不具
合がある。
However, in this conventional data writing method,
If there is an interruption in the writing of data to the control memory, when the CPU reads out the data for which the writing was interrupted, even though the data is erroneous, it is read out and operated without detecting an error. There is a problem with this.

(4)発明の目的 本発明は、このような問題点に着目してなされたもので
、その目的は、チェックビットへの書込みを重複して行
うことにより、データ部への書込みに際して中断があっ
たような場合でも、この書込むべき語を読出した時はエ
ラー検出をすることが出来るようにした制御記憶へのデ
ータ書込み方法を提供し、上記従来の問題点を解決する
ことである。
(4) Purpose of the Invention The present invention has been made with attention to the above-mentioned problems, and its purpose is to eliminate the possibility of interruption in writing to the data section by writing to the check bits redundantly. An object of the present invention is to provide a method for writing data into a control memory in which an error can be detected when a word to be written is read even in such a case, thereby solving the above-mentioned conventional problems.

(5)発明の構成 そして、この目的を達成するために、本発明は、データ
部とチェックビット部とを有する制御記憶のデータ部に
データの書込みを分割して行う書込み制御回路において
、データ部の全ての領域に書込みが行われるまでの段階
では、チェックビット部の所定の複数ビットには書込む
べきデータとは異なったデータを書込み、上記データ部
への書込みに中断が生じている場合、当該データ部に書
込むべき語を読出しだ時2ビツトエラーが検出されるよ
うにしたことを要旨とするものである。
(5) Structure of the Invention In order to achieve this object, the present invention provides a write control circuit that divides data writing into a data part of a control memory having a data part and a check bit part. Until all areas are written, data different from the data to be written is written to a predetermined plurality of bits in the check bit section, and if writing to the data section is interrupted, The gist is that a 2-bit error is detected when a word to be written in the data section is read.

(6)発明の実施例 以下本発明の実施例を図面を参照して詳細に説明する。(6) Examples of the invention Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は、本発明が適用される制御記憶へのデータ書込
み制御回路を示す図である。この図中、C8は制御記憶
を示し、Reは制御記憶に書込まれた情報を読出すだめ
の読出しレジスタを示す。制御記憶CSは、例えば1−
0 、1−1 。
FIG. 1 is a diagram showing a data write control circuit for control storage to which the present invention is applied. In this figure, C8 indicates a control memory, and Re indicates a read register from which information written in the control memory is read. The control memory CS is, for example, 1-
0, 1-1.

1−2.1−3と、4バイトの書込区画を有するデータ
部1と、制御記憶C8K書込まれたデータをパリティ魯
チェックするチェックビット部2とから構成されている
。チェックビット部2は2−0.2−1.2−2.2−
3の各ブロックから構成され(以下、これらをチェック
ビットという)、それぞれのチェックビットには例えば
2ビツトづつのコアが組込まれて成る。
1-2.1-3, a data section 1 having a 4-byte write section, and a check bit section 2 for parity checking the data written in the control memory C8K. Check bit part 2 is 2-0.2-1.2-2.2-
It is composed of three blocks (hereinafter referred to as check bits), and each check bit has a core of, for example, two bits incorporated therein.

読出しレジスタReは、制御記憶C8のデータ部1に書
込まれたデータを読出すデータ部読出しレジスタ3と、
チェックビット部2に書込まれたデータを読出すチェッ
クビット部読出しレジスタ4とから成っている。制御記
憶C8のデータ部1には、CPU7からの指令に基づい
て各種演算用のデータが書込まれる一方、チェックビッ
ト部2にはパリティ・チェック用のデータが書込まれる
ようになっているが、本発明においては、チェックピッ
ト部部2にデータを書込むに際して、いずれのチェック
ピットに書込むべきかを判別するチェックビット書込選
択部5が付設され、更に、このチェックビット書込選択
部5はCPU7に接続されると共にチェックビット部読
出しレジスタ4の出力側にも接続され、制御記憶csの
チェックビット部2に既に書込まれたデータを必要に応
じて入力出来る様になっている。更にまた、制御記憶C
8のデータ部1とチェックビット部2とはタイミング制
御部6に接続され、このタイミング制御部6からの指令
によって制御記憶C8への書込タイミングが制御される
The read register Re includes a data section read register 3 that reads data written in the data section 1 of the control memory C8;
It consists of a check bit section read register 4 for reading out data written in the check bit section 2. Data for various calculations are written in the data section 1 of the control memory C8 based on commands from the CPU 7, while data for parity checking is written in the check bit section 2. In the present invention, a check bit write selection section 5 is provided which determines which check pit should be written when data is written to the check pit section 2, and furthermore, this check bit write selection section 5 is provided. 5 is connected to the CPU 7 and also to the output side of the check bit section read register 4, so that data already written in the check bit section 2 of the control memory cs can be inputted as necessary. Furthermore, control memory C
The data section 1 and check bit section 2 of C.8 are connected to a timing control section 6, and the timing of writing to the control memory C8 is controlled by instructions from the timing control section 6.

このようなデータ書込み制御回路によって制御記憶C8
への書込みか行われる。このデータ書込みにおいて、I
I白目の書込みでは制御記憶C8中、1−0に演算用デ
ータ、2−0.2−1にパリティ・チェック用データが
書込まれる。
Control memory C8 is controlled by such a data write control circuit.
A write is performed. In this data writing, I
In the writing of I white, calculation data is written to 1-0 in the control memory C8, and parity check data is written to 2-0.2-1.

2回目乃至4回目の書込みでは、 2回目 1−1及び2−0.2−1に対して書込み 3回目 1−2及び2−0.2−2に対して書込み 4回目 1−3及び2−1.2−2.2−3に対して簀
込み を行う。
For the 2nd to 4th writing, 2nd time 3rd time writing to 1-1 and 2-0.2-1 4th time writing to 1-2 and 2-0.2-2 1-3 and 2 -1.2-2.2-3 is impregnated.

これら、各回における書込みは、上記タイミング制御部
6によって制御さ扛るが、このタイミング制御部6の回
路を第2図に示す。かかるタイミング制御回路によって
、データ部1のバイト1−0、に対するタイミング信号
TO11−1に対するタイミング信号TI、1−2に対
するタイミング信号T2.1−3に対するタイミング信
号T3を発信し、この発信信号の組合わせによって当該
信号を発信した時点が何回目の書込みであるかを示す。
The writing at each time is controlled by the timing control section 6, and the circuit of this timing control section 6 is shown in FIG. This timing control circuit transmits the timing signal TI for the timing signal TO11-1 for the byte 1-0 of the data section 1, the timing signal T2 for the byte 1-2, and the timing signal T3 for the 1-3, and controls the set of the transmitted signals. This indicates the number of writings at which the signal was sent.

そして、各書込段階におけるデータ部への各タイミング
信号は、1回目の書込み、TO=1 、T1=0 、 
T2=0. T3=02回目の書込み、TO=O,T1
=1. T2=O,T3=03回目の書込み、’I’O
=0.T1=O,T2=1. T3=04回目の書込み
、TO=0.T1=O,T2=0. T3=1となる。
Then, each timing signal to the data section in each write stage is the first write, TO=1, T1=0,
T2=0. T3=02nd write, TO=O, T1
=1. T2=O, T3=03rd write, 'I'O
=0. T1=O, T2=1. T3=04th write, TO=0. T1=O, T2=0. T3=1.

一方、タイミング制御部6はチェックビット部2への書
込みタイミング信号をも発信するが、このチェックビッ
ト用の書込みタイミング信号は、第3図に示すようなO
R(オア)ゲート11゜12.13.14  を用いて
決定される。ORゲート11には上記タイミング信号T
O,Tl、T2が入力されてチェックビット2−0への
書込みタイミング信号WECBOを出力する。ORゲー
ト12には上記タイミング信号To、TI、T3が入力
されチェックビット2−1への書込みタイミング信号W
ECBIを出力する。また、ORゲート13には上記タ
イミング信号T2.T3が入力されてチェックビット2
−2への書込タイミング信号WECB2t−出力する。
On the other hand, the timing control section 6 also transmits a write timing signal to the check bit section 2, but this write timing signal for the check bit is generated by the O as shown in FIG.
It is determined using the R (OR) gate 11°12.13.14. The OR gate 11 receives the timing signal T.
O, Tl, and T2 are input, and a write timing signal WECBO for check bits 2-0 is output. The above timing signals To, TI, and T3 are input to the OR gate 12, and a write timing signal W to the check bit 2-1 is input.
Output ECBI. The OR gate 13 also receives the timing signal T2. T3 is input and check bit 2
-2 write timing signal WECB2t- is output.

さらに、ORゲート14には上記タイミング信号T3が
入力されてチェックビット2−3への書込みタイミング
信号WECB3を出力する。
Further, the timing signal T3 is inputted to the OR gate 14, which outputs a write timing signal WECB3 to the check bits 2-3.

第4図はチェックピッ)!込み選択部50回路を示す。Figure 4 is a check mark)! 5 shows the circuit of the inclusion selection section 50.

この回路は、それぞれチェックピッ)2−0 、2−1
 、2−2 、2−3 、へのデータを出力するブロッ
ク15,16,17.18から構成されている。ブロッ
ク15は、AND(アンド)ゲ−) 19.20と、O
Rゲート21と′、FOR(イクスクルシプ・オア)ゲ
ート22とを有する。ANDゲート19にはチェックビ
ット2−0へ書込まるべきデータWC,,BOとTOと
が入力し、ANDゲート20にはチェックビット部読出
しレジスタ4からの読出しデータRCKBOとタイミン
グ信号TOを反転させた信号*TOが入力する。ま7 
たORゲート21には各ANDゲート19.20からの
信号が入力し、EORゲート22にはORゲート21か
らの信号とタイミング信号T1を反転させた信号中T1
が入力し、チェックビット2−〇への書込データWCK
BOが出力される。RCKBOは、チェックビット2−
0において、WCKBOに対する旧データである。ブロ
ック16は、ANDゲート23 、24と、ORゲート
25と、EORゲート26とを有する。ANDゲート2
3にはチェックビット2−1へ油たに書込まれるべきデ
ータWCBIとタイミング信号T1とが入力し、AND
ゲート24にはチェックピット部読出しレジスタ4から
の読出しデータRCKBIとタイミング信号1′1を反
転させた信号ITIが入力する。
This circuit has check pins) 2-0 and 2-1, respectively.
, 2-2, 2-3, and blocks 15, 16, 17, and 18. Block 15 is AND (and) game) 19.20 and O
It has an R gate 21, a FOR (exclusive or) gate 22. The data WC, BO, and TO to be written to the check bits 2-0 are input to the AND gate 19, and the AND gate 20 receives the read data RCKBO from the check bit section read register 4 and inverts the timing signal TO. The signal *TO is input. Ma7
The signals from each AND gate 19 and 20 are input to the OR gate 21, and the signal T1 of the signal from the OR gate 21 and the inverted timing signal T1 are input to the EOR gate 22.
is input and write data WCK to check bit 2-〇
BO is output. RCKBO is check bit 2-
0 is old data for WCKBO. Block 16 has AND gates 23 and 24, an OR gate 25, and an EOR gate 26. AND gate 2
3, the data WCBI and timing signal T1 to be written to the check bit 2-1 are input, and the AND
The read data RCKBI from the check pit read register 4 and the signal ITI obtained by inverting the timing signal 1'1 are input to the gate 24.

ORゲート25には各ANDゲー) 23.24からの
信号が入力し、EORゲート26にはORゲート25か
らの信号とタイミング信号T2tl−反転させた信号*
T2が入力し、チェックビット2−1への書込データW
CKBIが出力される。RCKBlは、チェックビット
2−1において、WCKBIに対する旧データである。
The signals from each AND gate) 23 and 24 are input to the OR gate 25, and the signal from the OR gate 25 and the timing signal T2tl - the inverted signal * are input to the EOR gate 26.
T2 inputs and write data W to check bit 2-1
CKBI is output. RCKBl is old data for WCKBI in check bits 2-1.

ブロック1Tは、ANDゲート27 、28と、ORゲ
ート29と、EORゲート30と、ORゲート31とを
有する。ANDゲ−)27には、チェックビット2−2
へ新たに書込まれるべきデータWCB2とタイミング信
号T2とが入力し、ANDゲート28にはチェックビッ
ト部読出しレジスタ4からの読出しデータRCKB2と
タイミング信号T2t−反転させた信号*T2が入力す
る。ORゲート29には各ANDゲー) 27.28か
らの信号が入力する一方、EORゲート30にはORゲ
ート29からの信号とORゲート31からの信号が入力
し、チェックビット2−2への書込データWCKB2が
出力される。
Block 1T includes AND gates 27 and 28, an OR gate 29, an EOR gate 30, and an OR gate 31. AND game) 27 has check bits 2-2
The data WCB2 to be newly written and the timing signal T2 are input to the AND gate 28, and the read data RCKB2 from the check bit section read register 4 and the timing signal T2t-inverted signal *T2 are input to the AND gate 28. The signals from each AND gate 27 and 28 are input to the OR gate 29, while the signals from the OR gate 29 and the signal from the OR gate 31 are input to the EOR gate 30. The included data WCKB2 is output.

ここでORゲート31には、タイミング信号T2を反転
させた信号*T2と、タイミング信号T3を反転させた
信号率T3とが入力されて、所定の選択信号が出力され
る。RCKB2は、チェックビット2−2において、W
CKB2に対する旧データである。ブロック18は、A
NDゲート32゜33と、ORゲート34とを有する。
Here, a signal *T2 obtained by inverting the timing signal T2 and a signal rate T3 obtained by inverting the timing signal T3 are input to the OR gate 31, and a predetermined selection signal is output. RCKB2 has W in check bits 2-2.
This is old data for CKB2. Block 18 is A
It has ND gates 32 and 33 and an OR gate 34.

ANDゲート32にはチェックビット2−3へ新たに書
込まれるべきデータWCB3とタイミング信号T3とが
入力し、ANDゲート33にはチェックビット部読出し
レジスタ4からの読出しデータRCKB3とタイミング
信号T3を反転させた信号率T3が入力する。ORゲー
ト34には各ANDゲート32.33からの信号が入力
し、チェックビット2−3への書込データWCKB3が
出力される。RCKB3は、チェックビット2−3にお
いてWCKB3に対する旧データである。
The data WCB3 to be newly written to the check bits 2-3 and the timing signal T3 are input to the AND gate 32, and the data RCKB3 read from the check bit section read register 4 and the timing signal T3 are inverted to the AND gate 33. The signal rate T3 obtained is input. Signals from the AND gates 32 and 33 are input to the OR gate 34, and write data WCKB3 to check bits 2-3 is output. RCKB3 is old data for WCKB3 in check bits 2-3.

次に、このような書込み制御回路を使って行う書込み動
作を説明する。先ず制御記憶C8へ書込む前に必ず読出
しレジスタReへ読出しを行う。そして、タイミング制
御部6の作動によシTO,TI、T2.T3 とシーケ
ンスが進むにつれて制御記憶への誓込みを行う。この書
込みにおいて、各チェックビットへの書込タイミング信
号WECBi(i=0.1,2.3)が“0゛のときけ
そのチェックビットへの書込みは行わず、11′″のと
きは書込みを行う。各段階でのチェックビット部2への
書込みは次の様に行われる。
Next, a write operation performed using such a write control circuit will be explained. First, before writing to the control memory C8, reading is always performed to the read register Re. Then, due to the operation of the timing control section 6, TO, TI, T2 . T3 and as the sequence progresses, a commitment to control memory is made. In this write, when the write timing signal WECBi (i=0.1, 2.3) to each check bit is "0", no writing is performed to that check bit, and when it is 11', no writing is performed. conduct. Writing to the check bit section 2 at each stage is performed as follows.

1回目の書込み(TO・・・1) 第3図から、WECBOとWECBIとが′1″であり
、WECB2とWECB3とは“0′″であるからチェ
ックビット2−0.2−1は簀込み、2−2.2−3は
書込みなしである。第4図から、WCKBOはWCBO
(バーは反対極性を示す)となり、WCKBIはRCK
Blとなる。したがってチェックビット2−0には書込
むべきデータが誤って書込まれ、2−1にはそのビット
の旧値が反転されることによシ誤って書込まれる。他方
チェックビット2−2.2−3に関してはWとなって旧
位反転書込みとなるべきであるが、との書込段階では上
記の如く書込みはされないから正しいデータが入ったま
まとなっている。
First write (TO...1) From Figure 3, since WECBO and WECBI are '1' and WECB2 and WECB3 are '0', check bit 2-0.2-1 is left blank. write, 2-2.2-3 has no write.From Figure 4, WCKBO is WCBO
(bars indicate opposite polarity) and WCKBI is RCK
It becomes Bl. Therefore, data to be written is erroneously written to check bit 2-0, and erroneously written to check bit 2-1 by inverting the old value of that bit. On the other hand, regarding check bits 2-2, 2-3, it should be W and the old position should be reversed, but at the writing stage, it is not written as described above, so the correct data remains. .

2回目の書込み(TI・・・1) 第3図から、WECBOとWECBIとが“1′″であ
シ、WECB2とWECB3とは“0′であるからチェ
ックビット2−0.2−1は書込み、2−2゜2−3は
書込みなしである。第4図から、WCKBOはRCKB
 Oとなシ、WCKBlはWCBIとなる。したがって
チェックビット2−0には旧値(前段階にて誤ったデー
タである)が再書込みされ、2−1には書込むべきデー
タが誤って書込まれる。他方チェックビット2−2.2
−3に関しては、WCKB2.WCKB3がそれぞれR
CKB2.RCKB3となって旧位反転書込みとなるべ
きであるが、この書込み段階では上記の如く書込みはさ
れない。
Second write (TI...1) From Figure 3, WECBO and WECBI are "1'" and WECB2 and WECB3 are "0", so check bits 2-0.2-1 are Write, 2-2° 2-3 is no write. From Figure 4, WCKBO is RCKB.
O and Nashi, WCKBl becomes WCBI. Therefore, the old value (wrong data at the previous stage) is rewritten to check bits 2-0, and the data to be written is erroneously written to check bits 2-1. Other check bit 2-2.2
-3, WCKB2. WCKB3 each R
CKB2. It should become RCKB3 and the old position inversion writing should be performed, but at this writing stage, writing is not performed as described above.

3回目の書込み(T2・・・1) 第3図から、WECBOとWECB2とが“1′″であ
シ、WECBIとWECB3とは“0′″であるからチ
ェックピッ)2−0.2−2は書込み、2−1.2−3
は曹込みなしである。第4図から、WCKBOはRCK
BOとなり、WCKB2はWCB 2となる。したがっ
てチェックビット2−0では旧値が反転書込みされて正
しいデータとなシ、2−2には書込むべきデータが誤っ
て書込まれる。他方チェックビット2−1.2−3に関
しては、WCKBI、WCKB3がそれぞれRCKBI
3rd write (T2...1) From Figure 3, WECBO and WECB2 are "1'", and WECBI and WECB3 are "0'", so check) 2-0.2- 2 is writing, 2-1.2-3
is without soy sauce. From Figure 4, WCKBO is RCK
It becomes BO, and WCKB2 becomes WCB 2. Therefore, in check bits 2-0, the old value is inverted and written to become correct data, and in check bits 2-2, data that should be written is written in error. On the other hand, regarding check bits 2-1, 2-3, WCKBI and WCKB3 are respectively RCKBI.
.

RCKB3となるが、この段階では書込みはされない。Although it becomes RCKB3, it is not written at this stage.

4回目の曹込み(T3・・・1) 第3図から、WECB 1 、WECB 2 、WEC
B 3 が1″であ、jD、WECBOが“0″である
からチェックビット2−1.2−2.2−3は書込み、
2−〇は書込みなしである。第4図から、WCKBlは
RCKB 1 、WCKB 2はRCKB 2 、WC
KB 3はWCB3となる。したがってチェックビット
2−1及び2−2では旧位が反転書込みされて正しいデ
ータと、l)、2−3では書込むべきデータが正しく書
込まれる。
4th Soaking (T3...1) From Figure 3, WECB 1, WECB 2, WEC
Since B 3 is 1'' and jD and WECBO are 0, check bits 2-1.2-2.2-3 are written.
2-0 is no writing. From Figure 4, WCKBl is RCKB 1, WCKB 2 is RCKB 2, WC
KB 3 becomes WCB 3. Therefore, in check bits 2-1 and 2-2, the old order is inverted and correct data is written, and in check bits 2-1 and 2-3, the data to be written is written correctly.

以上の書込み動作を衣に示すと下の通シとな即ち、この
書込動作を要約すると、TO=1及びT1=1ではチェ
ックビット2−0.2−1に誤ったデータを畳込み、T
2=1では2−0に正しいデータを書込む一方2−2に
誤ったデータを薔込む。T3=1では2−1.2−2.
2−3に正しいデータを誓くということになる。なお、
制御記憶C8への書込み前に当該制御記憶におけるデー
タの読出しを行うべきことを上で述べたが、この読出し
時にエラーが発生した場合は固定パターンを書込み、デ
ータ部1及びチェックビット部2をイニシャライズ(指
標化)する。その後再び読出しを行い、この読出し時に
エラーとなれば簀込みシーケンスを中止すればよい。
The above write operation is illustrated as below. To summarize this write operation, when TO=1 and T1=1, incorrect data is folded into check bit 2-0.2-1, T
When 2=1, correct data is written to 2-0, while incorrect data is written to 2-2. At T3=1, 2-1.2-2.
This means that 2-3 must be sworn to have correct data. In addition,
It was mentioned above that the data in the control memory should be read before writing to the control memory C8, but if an error occurs during this read, a fixed pattern is written and the data section 1 and check bit section 2 are initialized. (index). Thereafter, reading is performed again, and if an error occurs during reading, the storing sequence may be stopped.

以上の様な方法でチェックビット部2への誉込みを行い
ながら制御記憶C8への書込みが行われている間に、肖
該書込みが中断した場合について検討する。
A case will be considered in which the profile writing is interrupted while writing to the control memory C8 is being performed while writing to the check bit section 2 using the method described above.

1回目の誉込みで中断した場合、 この場合は、データ部10バイト1−0にデータが書込
まれただけで中断が起っている。チェックビット部2で
は、表から、チェックピッ)2−0.2−1に誤υのデ
ータが曹込lれているから、制御記憶C8を読出したと
きこの2ビツトの誤りが検出されCPUによる演算操作
は停止する。
If the process is interrupted at the first write, in this case, the interruption occurs only after data has been written to bytes 1-0 of the data section 10. In the check bit unit 2, from the table, the data of error υ is stored in check bits) 2-0.2-1, so when the control memory C8 is read, this 2-bit error is detected and the CPU Arithmetic operations stop.

2回目の曹込みで中断した場合、 この場合は、データ部10バイト1−0.1−1にデー
タが書込まれた状態で中断が起っている。チェックビッ
ト部2では、表から、チェックビット2−0.2−1に
誤りのデータが書込まれているから、制御記憶C8を読
出したときこの2ビツトの誤りが検出されCPUによる
演算操作は停止する。
If the process is interrupted during the second rounding, in this case, the interruption occurs with data written to the 10 bytes 1-0.1-1 of the data section. In the check bit unit 2, from the table, error data is written in check bits 2-0.2-1, so when the control memory C8 is read, this 2-bit error is detected and the arithmetic operation by the CPU is not performed. Stop.

3回目の書込みで中断した場合、 この場合は、データ部1のパイ)1−0 、1−1.1
−2にデータが書込まれた状態で中断が起っている。チ
ェックビット部2では、表かう、チェックピッ)2−0
には旧位反転書込みによって正しいデータが入っている
が、チェックビット2−1には2回目の書込みによる誤
りデータがそのま1残っており、チェックビット2−2
にも誤りのデータが書込まれているから、制御記憶C8
を読出したときこの2ビツトの誤りが検出されCPUに
よる演算操作は停止する。
If the writing is interrupted at the third time, in this case, data part 1 pie) 1-0, 1-1.1
An interruption occurs while data is being written to -2. In the check bit section 2, the check bit is displayed (check bit) 2-0.
The correct data is contained in the old position inversion write, but the error data from the second write remains in the check bit 2-1, and the check bit 2-2
Since erroneous data is also written in the control memory C8.
When this 2-bit error is detected, the arithmetic operation by the CPU is stopped.

こうして、制御記憶C8への豊込みに際し、データ部1
への書込みが各パイ) 1−0 、1−1 。
In this way, when filling the control memory C8, the data section 1
Write to each pie) 1-0, 1-1.

1−2.1−3へ順次書込まれるべきところ、この書込
みが途中で中断しても、その間においてチェックビット
部2に書込まれた誤シデータによってCPUの演算操作
を停止させることが可能となシ、マイクロプログラムが
暴走するのを防止する。
1-2. Even if the writing is interrupted midway through the sequential writing to 1-3, it is possible to stop the CPU's arithmetic operation due to the erroneous data written to the check bit section 2. Prevent the microprogram from running out of control.

ちなみに、書込みの中断は起らず、上記各バイト1−0
.1−1.1−2.1−3の全てにデータが書込まれた
場合についてみる。この場合、チェックビット部2では
、表から、チェックビット2−0.2−1.2−2.2
−3の全てに正しいデータが書込まれている。このため
、制御記憶を読出したとき、他のエラーがない限り誤シ
検出はされずCPUによる演算操作は続行する。
By the way, there is no writing interruption, and each byte 1-0 above
.. Let us consider the case where data is written to all of 1-1.1-2.1-3. In this case, check bit part 2 uses check bit 2-0.2-1.2-2.2 from the table.
Correct data is written to all -3. Therefore, when the control memory is read, unless there is another error, no erroneous error is detected and the arithmetic operation by the CPU continues.

(7)発明の効果 以上説明したように、本発明によれば、制御記憶のデー
タ部にデータの誓込みを分割して行う際、データ部の全
ての領域に書込みが行われるまでの途中の段階では、所
定の複数のチェックビットには誓込むべきデータとは異
なったデータを書込む書込み方法としたため、上記デー
タ部への書込みに中断が生じている場合には制御記憶を
読出したときエラー検出がなされ、マイクロプログラム
の暴走を防止することが可能となった。
(7) Effects of the Invention As explained above, according to the present invention, when the data commitment is divided into the data section of the control memory, the At this stage, we adopted a writing method in which data different from the data to be pledged was written to a plurality of predetermined check bits, so if there was an interruption in writing to the data section, an error would occur when reading the control memory. This was detected and it became possible to prevent the microprogram from running out of control.

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

第1図は本発明が適用される制御記憶へのデータ書込制
御回路を示す図、第2図はデータ書込制御回路の作動を
制御するタイミング制御回路図、第3図はチェックビッ
ト用の書込り・fミング制御回路図、第4図はチェック
ビット書込み選択回路図である。 1・・・データ部    2・・・チェックビット部3
・・・データ部読出しレジスタ 4・・・チェックビット部読出しレジスタ5・・・チェ
ックビット書込選択部 6・・・タイミング制御部 C8・・・制御記憶    Re・・・レジスタ第2図 第3図 第4図
FIG. 1 is a diagram showing a data write control circuit for control storage to which the present invention is applied, FIG. 2 is a timing control circuit diagram for controlling the operation of the data write control circuit, and FIG. A write/f-ming control circuit diagram, and FIG. 4 is a check bit write selection circuit diagram. 1...Data section 2...Check bit section 3
...Data section read register 4...Check bit section read register 5...Check bit write selection section 6...Timing control section C8...Control memory Re...Register Fig. 2 Fig. 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] データ部とチェックピット部とを有する制御記憶のデー
タ部にデータの書込みを分割して行う書込み制御回路に
おいて、データ部の全ての領域に書込みが行われるまで
の途中の段階では、チェックピット部の所定のビットに
は書込むべきデータとは異なったデータを書込み、上記
データ部への書込みに中断が生じた場合、当該データ部
に書込むべき語を読出した時点でエラー検出するように
したことを特徴とするコンピュータにおける制御記憶の
書込み方法。
In a write control circuit that divides data writing into the data part of a control memory that has a data part and a check pit part, in the middle of writing to all areas of the data part, the check pit part is If data different from the data to be written is written to a predetermined bit and writing to the data section is interrupted, an error is detected when the word to be written to the data section is read. A method for writing control memory in a computer, characterized by:
JP58044785A 1983-03-17 1983-03-17 Method of writing control memory in computer Pending JPS59168996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58044785A JPS59168996A (en) 1983-03-17 1983-03-17 Method of writing control memory in computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58044785A JPS59168996A (en) 1983-03-17 1983-03-17 Method of writing control memory in computer

Publications (1)

Publication Number Publication Date
JPS59168996A true JPS59168996A (en) 1984-09-22

Family

ID=12701057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58044785A Pending JPS59168996A (en) 1983-03-17 1983-03-17 Method of writing control memory in computer

Country Status (1)

Country Link
JP (1) JPS59168996A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001195317A (en) * 2000-01-14 2001-07-19 Canon Inc Backup storage device, image formation device, backup control method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001195317A (en) * 2000-01-14 2001-07-19 Canon Inc Backup storage device, image formation device, backup control method and storage medium

Similar Documents

Publication Publication Date Title
GB1511806A (en) Error detection and correction in data processing systems
JPH0581143A (en) Device and method of checking address and content of memory address
US5467361A (en) Method and system for separate data and media maintenance within direct access storage devices
US4016409A (en) Longitudinal parity generator for use with a memory
JPS6129024B2 (en)
JPS59168996A (en) Method of writing control memory in computer
JPH08161234A (en) Method and appartus for execution and protection of linear sequence of instruction processed by processor
JPS60181851A (en) Partial writing control system
JPS63257854A (en) Lru memory fault detecting circuit
JPS59200349A (en) Diagnosis circuit for error correction circuit
JPS6235703B2 (en)
JPS63271555A (en) Storage control system
US3938084A (en) Error detection apparatus for verifying binary coded constants
SU868844A1 (en) Self-checking storage device
SU942164A1 (en) Self-shecking storage device
JPS63231553A (en) Partial writing system
JPH0136137B2 (en)
JPH01150955A (en) Check sum recovery processing system for memory
JPS60258663A (en) Memory error processing circuit
JPS6024493B2 (en) Memory control method
JPS61173360A (en) Protective system for data of non-volatile memory
JPS6188344A (en) Parity addition detecting circuit
JPS59229799A (en) Memory device
JPH06259335A (en) External storage device
JPS641817B2 (en)