JPS59152600A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS59152600A
JPS59152600A JP58027160A JP2716083A JPS59152600A JP S59152600 A JPS59152600 A JP S59152600A JP 58027160 A JP58027160 A JP 58027160A JP 2716083 A JP2716083 A JP 2716083A JP S59152600 A JPS59152600 A JP S59152600A
Authority
JP
Japan
Prior art keywords
data
parity
memory
microcomputer
data memory
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
JP58027160A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Idokawa
井戸川 良行
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
Nippon 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP58027160A priority Critical patent/JPS59152600A/en
Publication of JPS59152600A publication Critical patent/JPS59152600A/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/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 detect quickly the occurrence of a trouble in a data memory, by comparing the parity of data, which is read out when data is read out from a data memory part, with the parity of parity data and outputting an abnormality occurrence signal when they do not coincide with each other. CONSTITUTION:Data is inputted from a data bus 4 to a parity generating circuit 10, and it is discriminated whether its partity is ''1'' or ''0'', and data including parity data is inputted to a data memory 9 and is stored in an area designated by an address bus 8. In case of data read, data in the area designated by the address bus 8 is inputted to the parity generating circuit 10 similarly to write, and the parity is discriminated. It is discriminated whether the output of the parity generating circuit 10 and parity data in the data memory 9 coincide with each other or not, that is, whether the output of a discriminating circuit 11 is ''0'' or ''1''. Thus, even if an abnormality occurs in the data memory of a microcomputer, it is detected easily.

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 本発明はマイクロコンピュータに関する。[Detailed description of the invention] [Technical field to which the invention pertains] The present invention relates to a microcomputer.

〔従来技術〕[Prior art]

マイクロコンピュータは周知の如く、算術論理演算回路
(ALU)、読出し専用メモリ(ROM)。
As is well known, a microcomputer has an arithmetic logic unit (ALU) and a read-only memory (ROM).

読出し書込み可能メ、e +) (RAM)および制御
回路などにより構成される半導体の集積回路装置である
It is a semiconductor integrated circuit device composed of a readable/writable memory (RAM), a control circuit, and the like.

第1図は従来のマイクロコンピュータの一例の主要部の
ブロック図である。
FIG. 1 is a block diagram of the main parts of an example of a conventional microcomputer.

このマイクロコンピュータにおいて、一連の仕事をする
ための命令コードおよび数値データはプログラムメモリ
(ROM)2またはデータメモリ(RAM)3などのメ
モリにストアされて詔り、プログラムカウンタまたアト
レッジ、ング用レジスタなどにより構成されているレジ
スタ1の内容に従ってアドレスバス8を介して指定され
た番地のメモリ内容がデータバス4に出力され、演算回
路6なトニヨって演算処理されそして再びアドレスバス
8によって指定された番地のメモリにストアされる。
In this microcomputer, instruction codes and numerical data for performing a series of tasks are stored in memory such as program memory (ROM) 2 or data memory (RAM) 3, and are stored in memory such as a program counter or registers for storage and processing. The memory contents at the address specified via the address bus 8 are output to the data bus 4 according to the contents of the register 1 configured by the register 1, are processed by the arithmetic circuit 6, and then are the memory contents specified by the address bus 8 again. Stored in memory at address.

この様なマイクロコンピュータにおいて、読出し書込み
可能メモIJ(RAM)の少くとも一部分が伺らかの障
害によってその機能を十分に果さなくなった場合には、
その不具合に従った処理を実行してしまう。つまり、本
来実行されるべきプログラムと異ったプログラムを実行
してしまうことになる。重要な装置にマイクロコンピュ
ータが使用される場合には、RAMの不具合による誤動
作の発生を−早く検出することが必要である。
In such a microcomputer, if at least a part of the readable/writable memory IJ (RAM) no longer functions adequately due to some fault,
The process will be executed according to the problem. In other words, a program different from the program that should be executed is executed. When a microcomputer is used in an important device, it is necessary to quickly detect the occurrence of malfunctions due to problems with the RAM.

しかし、従来のマイクロコンピュータではRAMの不具
合発生を検出する方法がなく、不具合が発生して誤動作
をした場合にもその検出は容易ではないという欠点があ
った。
However, conventional microcomputers have the disadvantage that there is no method for detecting the occurrence of a malfunction in the RAM, and that even if a malfunction occurs due to malfunction, it is not easy to detect it.

〔発明の目的〕[Purpose of the invention]

本発明の目的は上記欠点を除去し、RAMの不具合発生
をいち早く検出するようにしたマイクロコンピュータを
提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a microcomputer that eliminates the above-mentioned drawbacks and is capable of quickly detecting the occurrence of a RAM failure.

〔発明の構成〕[Structure of the invention]

本発明のマイクロコンピュータは、データのストア時に
同時に糸リティデータをストアするパリティデータ用ビ
ットを付加したデータメモリ部と、前記パリティデータ
を前記パリティデータ用ビットに書込み及び読出すると
きの判定を行うノクリティ発生回路と、前艷データメモ
リ部よりデータを読出すときに読出されたデータのパリ
ティとノくリティデータのパリティとを比較し不一致時
に異常発生信号を出力する比較回路とを含んで構成され
る。
The microcomputer of the present invention includes a data memory section to which a parity data bit is added for simultaneously storing stringity data when data is stored, and a memory section for determining when the parity data is written to and read from the parity data bit. It is configured to include a generation circuit and a comparison circuit that compares the parity of the read data and the parity of the quality data when reading data from the previous data memory section, and outputs an abnormality occurrence signal when there is a mismatch. .

〔実施例の説明〕[Explanation of Examples]

次に、本発明の実施例について図面を用いて説明する。 Next, embodiments of the present invention will be described using the drawings.

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

コノ実施例のマイクロコンピュータは、データのストア
時に同時にパリティデータをストアするパリティデータ
用ビットを付加したデータメモリ部9と、前記パリティ
データを前記ノ々リテイデータ用ビットに書込み及び読
出するときの判定を行うパリティ発生回路10と、デー
タメモリ部9よりデータを読出すときに読出されたデー
タのノ(リティとパリティデータのパリティとを比較し
不一致時に異常発生信号を出力する比較回路11とを含
んで構成される。
The microcomputer of this embodiment includes a data memory section 9 to which parity data bits are added for storing parity data at the same time as data is stored, and a determination when writing and reading the parity data to and from the parity data bits. The parity generating circuit 10 includes a parity generation circuit 10 that performs the above operations, and a comparison circuit 11 that compares the parity of the data read out when reading data from the data memory section 9 with the parity of the parity data, and outputs an abnormality signal when there is a mismatch. Consists of.

更に詳しく説明すると、データメモリ(RAM)9は第
1図のデータメモIJ (l(AM) 3と比較してデ
ータ長にさらに1ビツト追加されており、この追加ビッ
トにパリティデータがストアされる。データメモIJ 
(RAM) 9にデータを書込むときにそのデータはデ
ータバス4からパリティ発生回路′  10に入力され
、パリティ発生回路1oにて入力データの/NOIJテ
ィが′1″か′0″かを判別してそのパリティデータを
含めたデータがデータメモリ(RAM)9に入力する。
To explain in more detail, the data memory (RAM) 9 has one more bit added to the data length compared to the data memory IJ(l(AM)3) shown in FIG. 1, and parity data is stored in this additional bit. .Data memo IJ
When writing data to (RAM) 9, the data is input from the data bus 4 to the parity generation circuit 10, and the parity generation circuit 10 determines whether the /NOIJ value of the input data is ``1'' or ``0''. Then, the data including the parity data is input to the data memory (RAM) 9.

パリティデータを含んだデータはアドレスバス8により
指定されたデータメモリ(R,AM)9のエリアにスト
アされる。データメモリ(RAM)9よりデータを読出
すときにはアドレスバス8により指定されたエリアのデ
ータは書込み時と同様にパリティ発生回路10に入力さ
れる。パリティ発生回路10では書込み時と同様に入力
データのパリティを判別する。そしてデータメモリ(R
AiVl)9より出力されたパリティデータと比較を判
定回路11にて実施する。パリディー  発生回路10
の出力とデータメモIJ (RAM) 9のノクリティ
データが一致していれば正常、不一致であればデータメ
モ+)(RAM)9に異常が発生したことを検出できる
。従って、判定回路11の出力が′”0″か1″かを判
定することによってマイクロコンピュータのデータメモ
リ(RAM )に異常が発生しても容易に検出すること
ができ、重要な装置にも安心して適用することができる
Data including parity data is stored in an area of data memory (R, AM) 9 designated by address bus 8. When reading data from data memory (RAM) 9, the data in the area specified by address bus 8 is input to parity generation circuit 10 in the same way as when writing. The parity generation circuit 10 determines the parity of input data in the same way as when writing. and data memory (R
The determination circuit 11 compares the parity data with the parity data output from the AiVl) 9. Paridy generation circuit 10
If the output of the data memo IJ (RAM) 9 matches, it is normal, and if they do not match, it can be detected that an abnormality has occurred in the data memo IJ (RAM) 9. Therefore, by determining whether the output of the determination circuit 11 is ``0'' or 1'', even if an abnormality occurs in the data memory (RAM) of the microcomputer, it can be easily detected, and important equipment can be kept safe. It can be applied with care.

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

以上詳細に説明したように、本発明によれば、データメ
モリに不具合が発生してもこれをいち早く検出できるマ
イクロコンピュータが得られるのでその効果は大きい。
As described above in detail, according to the present invention, it is possible to obtain a microcomputer that can quickly detect a problem even if a problem occurs in a data memory, which is highly effective.

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

第1図は従来のマイクロコンピュータの一例の主要部分
のブロック図、第2図は本発明の一実施例の主要部分の
ブロック図である。 1・・・・・・レジスタ、2・曲・プログラムメモリ(
RlOM)、−3・・・・・・データメモリ(RAM)
、4・・曲データバス、5・・・・・・入出力回路、6
・・曲算術回路。 7・・・・・インストラクションデコーダ、8・・・・
・・アドレスバス、10・・・・・・パリティ発生回路
、11・・・・・・判定回路。
FIG. 1 is a block diagram of the main parts of an example of a conventional microcomputer, and FIG. 2 is a block diagram of the main parts of an embodiment of the present invention. 1...Register, 2.Song/program memory (
RlOM), -3...Data memory (RAM)
, 4... Song data bus, 5... Input/output circuit, 6
...A curved arithmetic circuit. 7...Instruction decoder, 8...
... Address bus, 10 ... Parity generation circuit, 11 ... Judgment circuit.

Claims (1)

【特許請求の範囲】[Claims] データのストア時に同時にパリティデータをストアする
パリティデータ用ビットを付加したデータメモリ部と、
前記パリティデータを前記パリティデータ用ビットに書
込み及び読出するときの判定を行うパリティ発生回路と
、前記データメモリ部よりデータを読出すときに読出さ
れたデータのパリティとパリティデータのパリティとを
比較し不一致時に異常発生信号を出力する比較回路とを
含むことを特徴とするマイクロコンピュータ。
a data memory section with a parity data bit that stores parity data at the same time as data is stored;
A parity generation circuit that makes a determination when writing and reading the parity data to and from the parity data bit, and a parity generating circuit that compares the parity of the read data and the parity of the parity data when reading data from the data memory section. A microcomputer comprising: a comparison circuit that outputs an abnormality signal when there is a mismatch.
JP58027160A 1983-02-21 1983-02-21 Microcomputer Pending JPS59152600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58027160A JPS59152600A (en) 1983-02-21 1983-02-21 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58027160A JPS59152600A (en) 1983-02-21 1983-02-21 Microcomputer

Publications (1)

Publication Number Publication Date
JPS59152600A true JPS59152600A (en) 1984-08-31

Family

ID=12213298

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58027160A Pending JPS59152600A (en) 1983-02-21 1983-02-21 Microcomputer

Country Status (1)

Country Link
JP (1) JPS59152600A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03206581A (en) * 1989-10-17 1991-09-09 Nec Ic Microcomput Syst Ltd Microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03206581A (en) * 1989-10-17 1991-09-09 Nec Ic Microcomput Syst Ltd Microprocessor

Similar Documents

Publication Publication Date Title
JPS59152600A (en) Microcomputer
JPS61500992A (en) Improvements in or relating to computer systems
JPH05165734A (en) Fixed fault diagnostic device for main storage device
JPS6259400B2 (en)
JPS58197555A (en) Information processor
JPS5939777B2 (en) control storage
JPS6020779B2 (en) Composite computer system
JPS6230105Y2 (en)
JP2002150795A (en) Semiconductor integrated circuit
JPS60233743A (en) Fault detecting circuit of computer system
JPH03266154A (en) Information processor
JPS6039249A (en) Operation device
JP2506199B2 (en) Electronics
JPS5868299A (en) Detecting circuit for address fault
JPS608962A (en) Temporary fault detecting system of storage information
JPS6325380B2 (en)
JPH03220649A (en) Parity check circuit
JPS62237551A (en) Microcomputer device
JPS59178545A (en) Error detecting system
JPH04364552A (en) Memory circuit with parity monitor circuit
JPS6083149A (en) Computer
JPS62293348A (en) Microcomputer
JPS6011949A (en) Data processing system
JPH09204363A (en) Data memory device
JPH0486932A (en) Memory fault detecting system