JPH04119434A - Parity error detector - Google Patents

Parity error detector

Info

Publication number
JPH04119434A
JPH04119434A JP2239504A JP23950490A JPH04119434A JP H04119434 A JPH04119434 A JP H04119434A JP 2239504 A JP2239504 A JP 2239504A JP 23950490 A JP23950490 A JP 23950490A JP H04119434 A JPH04119434 A JP H04119434A
Authority
JP
Japan
Prior art keywords
parity
error
bit
checker
generator
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
JP2239504A
Other languages
Japanese (ja)
Inventor
Kenji Sato
賢司 佐藤
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 Office Systems Ltd
Original Assignee
NEC Office Systems 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 Office Systems Ltd filed Critical NEC Office Systems Ltd
Priority to JP2239504A priority Critical patent/JPH04119434A/en
Publication of JPH04119434A publication Critical patent/JPH04119434A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To easily detect the trouble of a parity generator and a parity checker by providing a write error generating circuit which has a false error generation bit set by the central processing and inputs its value to the parity generator and a read error generating circuit which inputs the value of the false error generation bit to the parity checker. CONSTITUTION:This device consists of a CPU 1, a memory 2, a parity generator 3, a parity checker 4, a parity error holding flip flop 5, a write error generating circuit 6, and a read error generating circuit 7. The false error generation bit is set to the write error generating circuit 6 by the central processing, and its value is inputted to the parity generator 3. The false error generating bit is set to the read error generating circuit 7 by the CPU 1, and its value is inputted to the parity checker 4. Thus, the trouble of the parity generator and the parity checker is easily detected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はパリテイ・エラー検出装置に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a parity error detection device.

〔従来の技術〕[Conventional technology]

パリティ チエツクはデータが転送される際に行なわれ
る検査であり、1単位のデータのヒラ1への総和の計算
、必要とされるパリティ ビットの計算およびその計算
されたパリティ・ピッ1〜と転送されてきたパリティ 
ビットとの比較検査から構成される。
Parity check is a check performed when data is transferred, including calculation of the sum of one unit of data to filler 1, calculation of the required parity bit, and the calculation of the calculated parity bit 1~. parity came
It consists of a comparison test with bits.

パリティ・ビットは検査ヒラ1〜てあり、その値(Oま
たは1)は検査される語内の” 1 ”を示すビットの
個数が奇数か偶数かによって決まる。パリティ・ビット
を含めて1ノ”を示すビットの個数が偶数ならば、語は
偶数パリティをもつという。それか奇数ならば、語は奇
数パリティをもつという。たとえは6ビット010 ]
、 10の集合について、偶数パリティをその集合に与
えるためには” 1 ”のパリティ・ビットか奇数パリ
ティをその集合に与えるためには“′○″′のパリティ
・ビットがそれぞれ必要とされる。
The parity bits are checked from 1 to 1, and their value (O or 1) depends on whether the number of "1" bits in the word being tested is odd or even. A word is said to have even parity if the number of bits representing 1, including the parity bit, is even. Otherwise, the word is said to have odd parity. For example, 6 bits 010]
, 10, a parity bit of ``1'' is required to provide even parity to the set or a parity bit of ``0'' is required to provide odd parity to the set, respectively.

従来のパリティ エラー検出装置の構成の一例を第4図
を用いて説明する。
An example of the configuration of a conventional parity error detection device will be described with reference to FIG.

本パリテイ・エラー検出装置は中央処理装置(以下CP
Uと記す)1とデータを記憶するためのメモリ2と、パ
リティ・ビットを生成するためのパリテイ・ジェネレー
タ3と、メモリ2がらテ−タを読み出し時パリティ−チ
エツクを行うパリテイ・チェッカ4と、パリテイ・チェ
ッカ4のチエツク結果を保持するためのパリテイ・エラ
ー保持フリップ フロップ5により構成される。
This parity error detection device is a central processing unit (hereinafter referred to as CP).
a memory 2 for storing data, a parity generator 3 for generating parity bits, a parity checker 4 for performing a parity check when reading data from the memory 2; It is composed of a parity error holding flip-flop 5 for holding the check result of the parity checker 4.

次にこのパリテイ・エラー検出装置の動作例を説明する
Next, an example of the operation of this parity error detection device will be explained.

CPU]よりメモリ2へ任意めデータaを書き込む。C
UPIから出力された任意のデータaはパリテイ・ジェ
ネレータ3にも入力され、メモリ2への書き込み動作中
にパリティ ビットの計算を行い、パリテイ・ジェネレ
ータ3よりパリティ・ビットfか出力され、メモリに書
き込まれる。
[CPU] writes arbitrary data a to memory 2. C
Any data a output from the UPI is also input to the parity generator 3, which calculates the parity bit during the write operation to the memory 2, and then outputs the parity bit f from the parity generator 3 and writes it to the memory. It will be done.

この書き込み処理を行なったアドレスのデータが読み出
される時、パリティ・チエツクを行う。
When the data at the address for which this writing process has been performed is read out, a parity check is performed.

メモリ2より読み出されたデータaと、そのデータのパ
リティ・ビットfがパリテイ・チェッカ4に入力され、
パリティ チエツクを行ない、その結果ビット(かパリ
テイ・エラー保持フリップフロップ5ヘセツトパルスm
によりラッチされる。パリテイ・エラー保持フリップ・
フロップ5にラッチされた結果ビット(をCPUIが出
力ヒラl−nとして読み取り、期待値との比較演算を行
いパリテイ・エラーであるが否がの検出を行う。
The data a read from the memory 2 and the parity bit f of the data are input to the parity checker 4,
The parity check is performed and the result is a bit (or parity error holding flip-flop 5) and a set pulse m
latched by parity error retention flip
The result bit latched in the flop 5 is read by the CPU as an output error l-n, and a comparison operation is performed with the expected value to detect whether it is a parity error or not.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のパリテイ・エラー検出装置は、メモリに
対するデータ転送が正電てあっても、パリテイ・ジェネ
レータ、パリティ チエッカが故障している場合はパリ
テイ・エラーとなる。その場合、故障確認のためオシロ
スコープ等の測定器で電圧波形を観測し、確認するため
の煩わしい作業が必要となる。
In the conventional parity error detection device described above, even if data transfer to the memory is positive, a parity error occurs if the parity generator or parity checker is out of order. In that case, troublesome work is required to observe and confirm the voltage waveform with a measuring instrument such as an oscilloscope in order to confirm the failure.

本発明の目的は、パリテイ・ジェネレータ、パリテイ・
チェッカの故障を容易に検出可能なパリティ エラー検
出装置を提供することにある。
The object of the present invention is to provide a parity generator, a parity generator, and a parity generator.
An object of the present invention is to provide a parity error detection device that can easily detect a checker failure.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のパリテイ・エラー検出装置は、中央処理から擬
似誤り発生用ビットがセットされその値をパリテイ・ジ
ェネレータに入力する書き込みエラー発生回路と、 中央処理装置から擬似誤り発生用ビットがセットされそ
の値をパリテイ・チェッカに入力する読出しエラー発生
回路を設けたことを特徴とする。
The parity error detection device of the present invention includes a write error generation circuit in which a pseudo error generation bit is set by the central processing unit and inputs the value to the parity generator; The present invention is characterized in that it is provided with a read error generation circuit which inputs the error into the parity checker.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例のパリテイ・エラー検出装置
のフロック構成図である。
FIG. 1 is a block diagram of a parity error detection device according to an embodiment of the present invention.

第1図において、CP U ]、 、メモリ2.パリテ
イ・ジェネレータ3.パリテイ・チェッカ4.パリティ
 エラー保持フリップ・フロップ5は従来を示す第4図
のそれと同じである。6はCPUIからビットbをセッ
トし、同値dをパリテイ・ジェネレータ3ノ\入力する
書込hエラー発生回路、7はCUP 1からビットgを
セットし、同値jをパリテイ・チェッカ4へ入力する読
出しエラー発生回路である。
In FIG. 1, CPU], memory 2. Parity generator 3. Parity checker 4. The parity error holding flip-flop 5 is the same as that shown in FIG. 4 which shows the prior art. 6 is a write h error generation circuit that sets bit b from CPUI and inputs the same value d to parity generator 3; 7 is a read circuit that sets bit g from CPU 1 and inputs the same value j to parity checker 4. This is the error generating circuit.

第2図は本実施例における誤まりのパリティ・ビットを
生成する場合のタイミンク′チャートである。又、第3
図はこの実施例におりる擬似的にパリテイ・エラーを検
出させる場合のタイミングチャートである。
FIG. 2 is a timing chart for generating erroneous parity bits in this embodiment. Also, the third
The figure is a timing chart when a parity error is detected in a pseudo manner according to this embodiment.

次に本実施例の動作を第1図、第2図、第3図により説
明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 1, 2, and 3.

通常のパリティ エラー検出動作については第4図の従
来例と全く同様であるため省略する。
The normal parity error detection operation is completely the same as the conventional example shown in FIG. 4, so a description thereof will be omitted.

パリテイ・ジェネレータ3の故障検出を行う場合は、パ
リテイ・ジェネレータ3より誤りのパリティ・ビットf
を生成させるためにCPUIより書込みエラー発生回路
6ヘビツト1〕をセットしておきCPUIからメモリ2
ヘデータaを書き込む。パリテイ・ジェネレータ3の出
力のパリティ・ビットfは誤まりパリティ・ビットでメ
モリ2に書き込まれる。
When detecting a failure in the parity generator 3, the error parity bit f is detected from the parity generator 3.
In order to generate the write error generation circuit 6 heavy bit 1] from the CPU, the
Write data a to the file. The parity bit f of the output of the parity generator 3 is written to the memory 2 as an erroneous parity bit.

次にメモリ2の読み出し動作を行ない、パリテイ・チェ
ッカ4によりパリティ・チエツクを行ない、その結果ビ
ットρがパリテイ・エラー保持フリップ・フロップ5ヘ
セツトパルスmによりラッチされる。次にC’UPIが
パリテイ・エラー保持フリップ・フロップ5の出力しッ
トDを読み出し、期待値との比較演算を行ないパリティ
・エラ−であればパリテイ・ジェネレータ3は正常動作
てあり、パリテイ・エラーでなければ故障と判断する。
Next, a read operation of the memory 2 is performed, and a parity check is performed by the parity checker 4, and as a result, the bit ρ is latched by the set pulse m to the parity error holding flip-flop 5. Next, C'UPI reads the output bit D of the parity error holding flip-flop 5, performs a comparison operation with the expected value, and if there is a parity error, the parity generator 3 is operating normally and the parity If there is no error, it is judged as a failure.

また、パリテイ・チェッカ4の故障検出を行う場合は、
パリテイ・ジェネレータ3より正常なパリティ・ビット
fを生成させるためのビットbを書き込みエラー発生回
路6へCPUIよりセットする。次にCPUIからメモ
リ2ヘデータaを書き込む。パリテイ・チェッカ4より
誤りの結果ビットρを発生させるため、CPU1よりビ
ットgを読み出しエラー発生回路7ヘセツトする。次に
メモリ2の読み出し動作を行ない、読み出し動作完了後
、パリティ エラー保持フリップ・フロップ5の出力ビ
ットnを読み出し、期待値との比較演算を行ない、パリ
テイ・エラーてあれば、パリテイ・チェッカ4は正常動
作てあり、パリテイ・エラーでなければ故障と判断する
In addition, when detecting failure of parity checker 4,
Bit b for generating a normal parity bit f from the parity generator 3 is set in the write error generation circuit 6 from the CPUI. Next, data a is written from the CPUI to the memory 2. In order to cause the parity checker 4 to generate the error result bit ρ, the CPU 1 reads out the bit g and sets it in the error generation circuit 7. Next, a read operation is performed on the memory 2, and after the read operation is completed, the output bit n of the parity error holding flip-flop 5 is read out, and a comparison operation with the expected value is performed. If there is a parity error, the parity checker 4 If it is operating normally and there is no parity error, it will be judged as a failure.

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

以上説明したように本発明のパリテイ・エラー検出装置
によれはパリテイ・ジェネレータおよびパリテイ・チェ
ッカの故障を容易に検出可能な効果がある。
As explained above, the parity error detection device of the present invention has the effect of easily detecting failures in the parity generator and parity checker.

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

第1図は本発明の一実施例のパリティ エラー検出装置
のブロック構成図、第2図は本実施例の誤まりのパリテ
ィ・ピッ1〜を生成する場合のタイミング チャート、
第3図は本実施例の擬似的にパリテイ・エラーを検出さ
せる場合のタイミンク・チャー1へ、第4図は従来のパ
リテイ・エラー検出装置のブロック構成図である。 1・・・CPU、2・・・メモリ、3・・・パリテイ・
ジェネレータ、4・・・パリテイ・チェッカ、5・・・
パリテイ・エラー保持フリップ・フロップ、6・・・書
込みエラー発生回路、7・・・読出しエラー発生回路。
FIG. 1 is a block diagram of a parity error detection device according to an embodiment of the present invention, and FIG. 2 is a timing chart for generating error parity bits 1 to 1 of this embodiment.
FIG. 3 is a timing chart 1 for detecting a parity error in a pseudo manner according to this embodiment, and FIG. 4 is a block diagram of a conventional parity error detection device. 1...CPU, 2...Memory, 3...Parity
Generator, 4... Parity checker, 5...
Parity error holding flip-flop, 6... write error generation circuit, 7... read error generation circuit.

Claims (1)

【特許請求の範囲】 中央処理から擬似誤り発生用ビットがセットされその値
をパリテイ・ジェネレータに入力する書き込みエラー発
生回路と、 中央処理装置から擬似誤り発生用ビットがセットされそ
の値をパリテイ・チェッカに入力する読出しエラー発生
回路を設けたことを特徴とするパリテイ・エラー検出装
置。
[Scope of Claims] A write error generation circuit that sets a pseudo-error generation bit from a central processing unit and inputs the value to a parity generator; and a write error generation circuit that sets a pseudo-error generation bit from a central processing unit and inputs the value to a parity checker. A parity error detection device characterized in that it is provided with a read error generation circuit that inputs an input to the parity error detection device.
JP2239504A 1990-09-10 1990-09-10 Parity error detector Pending JPH04119434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2239504A JPH04119434A (en) 1990-09-10 1990-09-10 Parity error detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2239504A JPH04119434A (en) 1990-09-10 1990-09-10 Parity error detector

Publications (1)

Publication Number Publication Date
JPH04119434A true JPH04119434A (en) 1992-04-20

Family

ID=17045775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2239504A Pending JPH04119434A (en) 1990-09-10 1990-09-10 Parity error detector

Country Status (1)

Country Link
JP (1) JPH04119434A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006054400A1 (en) * 2004-11-18 2006-05-26 Sony Corporation Imaging device and light intensity adjusting mechanism
EP2128692A1 (en) * 2008-05-30 2009-12-02 Sony Corporation Light quantity adjusting device, lens barrel and image pickup apparatus
US7878721B2 (en) 2007-11-01 2011-02-01 Sony Corporation Light amount adjuster, lens barrel, and image pickup device
US7965432B2 (en) 2006-09-11 2011-06-21 Seiko Precision Inc. Light quantity control device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006054400A1 (en) * 2004-11-18 2006-05-26 Sony Corporation Imaging device and light intensity adjusting mechanism
US7965432B2 (en) 2006-09-11 2011-06-21 Seiko Precision Inc. Light quantity control device
US7878721B2 (en) 2007-11-01 2011-02-01 Sony Corporation Light amount adjuster, lens barrel, and image pickup device
EP2128692A1 (en) * 2008-05-30 2009-12-02 Sony Corporation Light quantity adjusting device, lens barrel and image pickup apparatus

Similar Documents

Publication Publication Date Title
US7506226B2 (en) System and method for more efficiently using error correction codes to facilitate memory device testing
JPH01201736A (en) Microcomputer
US4926426A (en) Error correction check during write cycles
KR880010362A (en) Address line error test method
JPH11111000A (en) Failure self-diagnosing device of semiconductor memory
KR100200481B1 (en) Test circuit
JPH04119434A (en) Parity error detector
JPS6011952A (en) Semiconductor memory device with error correcting means
JPH10106297A (en) Parallel bit test circuit for semiconductor memory apparatus
JPH01292550A (en) Error detecting circuit
JPS6132756B2 (en)
JPS585681A (en) Testing device for semiconductor memory
JP2005141901A (en) Cam cabable of testing presence of defect of priority encoder, and method of testing presence of defect of priority encoder
EP0652568A1 (en) Memory card tester
JPH04212800A (en) Method for testing data line of ram
JP3270357B2 (en) Storage device diagnostic system
JP2656600B2 (en) Test method for semiconductor memory device
JPS62221756A (en) Storage device
JP3040508B2 (en) Memory test method
JPS6130356B2 (en)
JPS6161418B2 (en)
JPS6030975B2 (en) Error detection method
JPH0346047A (en) Inspection circuit
JPS59230342A (en) Device for testing operation of failure detector
JPH01156834A (en) Diagnosing system for check circuit