JPH06149684A - Parity check circuit - Google Patents

Parity check circuit

Info

Publication number
JPH06149684A
JPH06149684A JP4297487A JP29748792A JPH06149684A JP H06149684 A JPH06149684 A JP H06149684A JP 4297487 A JP4297487 A JP 4297487A JP 29748792 A JP29748792 A JP 29748792A JP H06149684 A JPH06149684 A JP H06149684A
Authority
JP
Japan
Prior art keywords
parity
circuit
memory
data
read
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.)
Withdrawn
Application number
JP4297487A
Other languages
Japanese (ja)
Inventor
Yuji Tajiri
祐二 田尻
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 JP4297487A priority Critical patent/JPH06149684A/en
Publication of JPH06149684A publication Critical patent/JPH06149684A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To attain a parity check circuit capable of preventing the reading timing of a CPU from being suppressed by parity check operation in respect to a parity check circuit for checking the presence/absence of an error at the time of reading out data from a memory by a processor. CONSTITUTION:The parity check circuit provided with the processor 10, the 1st memory 20, the 1st parity generating circuit 30, the 2nd memory 40, the 2nd parity generating circuit 50, and the 1st latch circuit 60 is also provided with a timing generating circuit 70 for generating a holing timing signal based upon a status signal and a read timing signal outputted from the processor 10, along with the 2nd latch circuit 80 for holding both data read out from the memory 20 and parity read out from the 2nd memory 30 and constituted so as to execute parity operation by the succeeding timing and hold the parity operation result in the circuit 60.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は処理装置がメモリからデ
ータを読み出すときに、読み出したデータのエラーの有
無をチェックするパリティチェック回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parity check circuit for checking whether or not there is an error in read data when a processing device reads data from a memory.

【0002】処理装置で各種のデータ処理を実行すると
き、データを記憶するために半導体メモリが広く使用さ
れている。このようなデータ処理に使用されるメモリ
は、年々大容量化の一途を辿っており、且つ、データ処
理上の要求からは高い信頼度が要求されている。
Semiconductor memories are widely used for storing data when various kinds of data processing are executed by a processing device. The memory used for such data processing is steadily increasing in capacity year by year, and high reliability is required from the requirements of data processing.

【0003】このような要求を満足させるために、パリ
ティチェック回路が広く使用されている。このようなパ
リティチェックを高速で実行することのできるパリティ
チェック回路が要求されている。
In order to satisfy such a demand, a parity check circuit is widely used. A parity check circuit capable of performing such a parity check at high speed is required.

【0004】[0004]

【従来の技術】図4は従来例を説明するブロック図を示
す。図中の10は処理装置(以下CPUと称する)、2
1、41はランダムアクセスメモリ(以下RAMと称す
る)、31、51はパリティチェック回路、61はフリ
ップフロップ回路(以下FF回路と称する)、71はデ
コーダである。
2. Description of the Related Art FIG. 4 shows a block diagram for explaining a conventional example. Reference numeral 10 in the drawing denotes a processing device (hereinafter referred to as CPU), 2
Reference numerals 1 and 41 are random access memories (hereinafter referred to as RAM), 31 and 51 are parity check circuits, 61 is a flip-flop circuit (hereinafter referred to as FF circuit), and 71 is a decoder.

【0005】図において、CPU10がRAM21の指
定のアドレスにデータを書き込むとき、パリティチェッ
ク回路31で書き込みデータのパリティ演算を行い、R
AM41の同一アドレスに求めたパリティを書き込んで
おく。
In the figure, when the CPU 10 writes data to a specified address in the RAM 21, a parity check circuit 31 performs a parity operation on the write data and R
The obtained parity is written in the same address of the AM 41.

【0006】CPU10がRAM21の指定のアドレス
からデータを読み出すとき、パリティチェック回路51
はRAM21の指定のアドレスから読み出したデータの
パリティ演算を行うとともに、RAM41の同一アドレ
スに書き込んであるパリティを読み出し先に求めたパリ
ティとを比較し、その結果PEをFF回路61で保持し
て出力する。
When the CPU 10 reads data from the designated address of the RAM 21, the parity check circuit 51
Performs a parity operation on the data read from the designated address of the RAM 21 and compares the parity written at the same address of the RAM 41 with the parity obtained at the read destination, and as a result, holds the PE in the FF circuit 61 and outputs it. To do.

【0007】[0007]

【発明が解決しようとする課題】上述の従来例におい
て、CPU10のリードタイミングにおいて、メモリ2
1のデータを読み出したデータのパリティ演算は、リー
ドデータが確定してから開始することが必要であるので
メモリのリードアクセス時間とパリティチェック時間を
加算した時間が必要となる。
In the conventional example described above, the memory 2 is read at the read timing of the CPU 10.
The parity operation of the data read from the data No. 1 needs to be started after the read data is fixed, and therefore the time required for adding the memory read access time and the parity check time is required.

【0008】図5は従来例のタイムチャートを示す。以
下タイムチャートにより従来例の問題点を説明する。 CPU CLK;CPUクロックを示す。通常、4CP
UクロックでCPU処理の1サイクルであるが、T3と
T4の間に1クロック、WAIT(待機)を挿入してい
る。
FIG. 5 shows a time chart of a conventional example. The problems of the conventional example will be described below with reference to a time chart. CPU CLK: Indicates the CPU clock. Usually 4 CP
Although it is one cycle of CPU processing with U clock, one clock, WAIT (wait) is inserted between T3 and T4.

【0009】CPU STS;CPU10のステータス
信号であり、メモリ21からのデータの読み出しを示
し、T1の立ち下がりで始まり、T4の立ち下がりで終
了する信号である。
CPU STS: A status signal of the CPU 10, which indicates reading of data from the memory 21, is a signal which starts at the falling edge of T1 and ends at the falling edge of T4.

【0010】ADD BUS;データを読み出すRAM
21のアドレスを指定する信号である。 DATA BUS;指定したアドレスのデータを読み出
し、そのデータを出力するデータバスのデータが確定し
たことを示す。
ADD BUS; RAM for reading data
It is a signal for designating the address 21. DATA BUS: Indicates that the data of the specified address is read and the data of the data bus for outputting the data is fixed.

【0011】PAR DATA;RAM41の指定のア
ドレスから読み出したパリティが確定したことを示す。 PE;パリティチェック回路51により読み出しデータ
から求めたパリティとRAM41から読み出したパリテ
ィを比較した結果のパリティエラーである。
PAR DATA; indicates that the parity read from the designated address of the RAM 41 has been determined. PE: A parity error as a result of comparing the parity obtained from the read data by the parity check circuit 51 and the parity read from the RAM 41.

【0012】PAR ERROR;パリティチェック回
路51のパリティエラー検出結果PEをFF回路61で
保持して出力するパリティエラー信号である。 ここでは、データバスのデータが確定してから、パリテ
ィ演算を行いその結果をFF回路61で保持して出力す
るが、パリティ演算が終了する以前にパリティ演算結果
を出力することがないようにマージンをとることが必要
であり、CPUクロックT3とT4の間に1クロック、
WAITを挿入しているので、CPUリード時のタイミ
ングが遅くなる。
PAR ERROR: a parity error signal which the parity error detection result PE of the parity check circuit 51 holds in the FF circuit 61 and outputs. Here, after the data of the data bus is fixed, the parity operation is performed and the result is held and output by the FF circuit 61. However, the margin operation is performed so that the parity operation result is not output before the parity operation ends. It is necessary to take one clock between the CPU clocks T3 and T4,
Since the WAIT is inserted, the timing at the time of CPU read is delayed.

【0013】本発明はパリティチェック演算によりCP
Uのリードタイミングを圧迫することのないパリティチ
ェック回路を実現しようとする。
The present invention uses the parity check operation to generate a CP
An attempt is made to realize a parity check circuit that does not put pressure on the U read timing.

【0014】[0014]

【課題を解決するための手段】図1は本発明の原理を説
明するブロック図である。図中の10はデータ処理を実
行するCPUであり、20はデータを入出力する第1の
メモリであり、30は第1のメモリ20に書き込むデー
タのパリティ演算を行う第1のパリティ生成回路であ
る。
FIG. 1 is a block diagram for explaining the principle of the present invention. In the figure, 10 is a CPU that executes data processing, 20 is a first memory that inputs and outputs data, and 30 is a first parity generation circuit that performs a parity operation of data to be written in the first memory 20. is there.

【0015】また、40は第1のパリティ生成回路30
で発生したパリティを書き込む第2のメモリであり、5
0は第1のメモリ20から読み出したデータのパリティ
演算を行った結果と、第2のメモリ40から読み出した
パリティとを比較する第2のパリティ生成回路であり、
60は第2のパリティ生成回路50との出力を保持する
第1のラッチ回路である。
Further, 40 is the first parity generation circuit 30.
Is the second memory for writing the parity generated in
Reference numeral 0 denotes a second parity generation circuit that compares the result of the parity operation of the data read from the first memory 20 with the parity read from the second memory 40,
Reference numeral 60 is a first latch circuit that holds the output from the second parity generation circuit 50.

【0016】さらに、70は本発明により設けるもので
あり、CPU10のステータス信号とリードタイミング
信号から保持タイミング信号を生成するタイミング生成
回路であり、80は第1のメモリ20から読み出したデ
ータと、第2のメモリ30から読み出したパリティとを
保持する第2のラッチ回路であり、次のタイミングで第
2のパリティ生成回路50でパリティ演算を行い、第1
のラッチ回路60で保持する。
Further, 70 is provided according to the present invention, and is a timing generation circuit for generating a holding timing signal from the status signal and the read timing signal of the CPU 10, and 80 is data read from the first memory 20, and The second latch circuit holds the parity read from the second memory 30, and the parity calculation is performed by the second parity generation circuit 50 at the next timing.
The latch circuit 60 holds it.

【0017】[0017]

【作用】CPU10からデータを第1のメモリ20に書
き込むとき、そのデータのパリティを第1のパリティ生
成回路30で求め、第2のメモリ40の同一アドレスに
書き込んでおく。
When writing data from the CPU 10 to the first memory 20, the parity of the data is obtained by the first parity generation circuit 30 and written to the same address of the second memory 40.

【0018】そのデータの読み出し時には、タイミング
生成回路70によりCPU10のステータス信号とリー
ドタイミング信号から保持タイミング信号を生成し、こ
のタイミング信号により、第1のメモリ20から読み出
したデータと、第2のメモリ40から読み出したパリテ
ィとをラッチし、次のタイミングで第2のパリティ生成
回路50で読み出したデータのパリティ演算を行い、そ
の結果と第2のメモリ40から読み出したパリティを比
較し、その結果を次のクロックで保持して出力する。
At the time of reading the data, the timing generation circuit 70 generates a holding timing signal from the status signal and the read timing signal of the CPU 10, and the timing signal causes the data read from the first memory 20 and the second memory. The parity read from 40 is latched, the parity operation of the data read by the second parity generation circuit 50 is performed at the next timing, the result is compared with the parity read from the second memory 40, and the result is Hold and output at next clock.

【0019】[0019]

【実施例】図2は本発明の実施例を説明するブロック図
である。図中の10はデータ処理を行うCPUであり、
21、41は原理図で説明した第1および第2のメモリ
としてのRAM、31、51は第1および第2のパリテ
ィ生成回路としてのパリティチェック回路、61、81
は第1および第2のラッチ回路としてのFF回路、71
はタイミング生成回路としてのデコーダである。
FIG. 2 is a block diagram illustrating an embodiment of the present invention. Reference numeral 10 in the figure is a CPU for processing data,
21 and 41 are RAMs as the first and second memories described in the principle diagram, 31 and 51 are parity check circuits as the first and second parity generation circuits, and 61 and 81.
Is an FF circuit as the first and second latch circuits, 71
Is a decoder as a timing generation circuit.

【0020】図3は本発明の実施例のタイムチャートで
ある。図3により、図2の動作を説明する。 CPU CLK;CPUクロックを示す。T1〜T4の
4CPUクロックでCPU処理の1サイクルである。
FIG. 3 is a time chart of the embodiment of the present invention. The operation of FIG. 2 will be described with reference to FIG. CPU CLK: Indicates the CPU clock. It is one cycle of CPU processing with 4 CPU clocks of T1 to T4.

【0021】CPU STS;CPU10のステータス
信号であり、メモリ21からのデータの読み出し動作を
示し、T1の立ち下がりで始まり、T4の立ち下がりで
終了する信号である。
CPU STS: A status signal of the CPU 10, which indicates a data read operation from the memory 21, is a signal which starts at the falling edge of T1 and ends at the falling edge of T4.

【0022】ADD BUS;データを読み出すRAM
21のアドレスを指定する信号である。 DATA BUS;指定したアドレスのデータを読み出
し、そのデータを出力するデータバスのデータが確定し
たことを示す。
ADD BUS; RAM for reading data
It is a signal for designating the address 21. DATA BUS: Indicates that the data of the specified address is read and the data of the data bus for outputting the data is fixed.

【0023】PAR DATA;RAM41から読み出
したパリティデータであり、そのパリティが確定したこ
とを示す。 RD;CPU10のリードタイミングである。
PAR DATA: Parity data read from the RAM 41, and indicates that the parity is fixed. RD: Read timing of the CPU 10.

【0024】LAT TIM;CPUステータス信号C
PU STSおよびリードタイミングRDからデコーダ
71が生成するラッチタイミングである。 LAT DATA;デコーダ71が生成するラッチタイ
ミングLAT TIMにより、FF回路81でラッチし
たデータである。
LAT TIM; CPU status signal C
The latch timing is generated by the decoder 71 from the PU STS and the read timing RD. LAT DATA: data latched by the FF circuit 81 at the latch timing LAT TIM generated by the decoder 71.

【0025】LAT PAR;デコーダ71が生成する
ラッチタイミングLAT TIMにより、FF回路81
でラッチしたパリティである。 PE;ラッチしたデータLAT DATAからパリティ
チェック回路51で求めたパリティとラッチしたパリテ
ィLAT PARを比較した結果のパリティエラーであ
る。
LAT PAR: The FF circuit 81 is operated by the latch timing LAT TIM generated by the decoder 71.
It is the parity latched by. PE: A parity error as a result of comparing the parity obtained by the parity check circuit 51 from the latched data LAT DATA and the latched parity LAT PAR.

【0026】PAR ERROR;パリティチェック回
路51のパリティエラー検出結果PEをFF回路61で
保持して出力するパリティエラー信号である。ここで
は、CPUクロックT4の立ち上がりでパリティエラー
PEが確定し、CPUクロックT4の立ち下がりで出力
するようにしている。
PAR ERROR: a parity error signal which the parity error detection result PE of the parity check circuit 51 holds in the FF circuit 61 and outputs. Here, the parity error PE is determined at the rising edge of the CPU clock T4 and is output at the falling edge of the CPU clock T4.

【0027】このように構成することにより、データバ
スのデータが確定してから、パリティ演算を行いその結
果をFF回路61で保持して出力するが、パリティ演算
はCPUサイクルの中で実行し、パリティエラー出力は
次のCPUサイクルの開始と同時に出力することによ
り、従来例でWAITとして挿入したCPUクロックが
必要でなくなり、高速動作を行うことが可能となる。
With this configuration, after the data on the data bus is determined, the parity operation is performed and the result is held and output by the FF circuit 61. The parity operation is executed in the CPU cycle, By outputting the parity error output at the same time as the start of the next CPU cycle, the CPU clock inserted as WAIT in the conventional example is not required, and high speed operation can be performed.

【0028】[0028]

【発明の効果】本発明によれば、読み出しデータ、読み
出しパリティをラッチし、パリティを求め、その結果を
次のCPUサイクルで出力することより、メモリリード
時のCPUの高速動作が可能できるパリティチェック回
路を実現することができる。
According to the present invention, the read data and the read parity are latched, the parity is obtained, and the result is output in the next CPU cycle, so that the high-speed operation of the CPU during the memory read can be checked. A circuit can be realized.

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

【図1】 本発明の原理を説明するブロック図FIG. 1 is a block diagram illustrating the principle of the present invention.

【図2】 本発明の実施例を説明するブロック図FIG. 2 is a block diagram illustrating an embodiment of the present invention.

【図3】 本発明の実施例のタイムチャートFIG. 3 is a time chart of an example of the present invention.

【図4】 従来例を説明するブロック図FIG. 4 is a block diagram illustrating a conventional example.

【図5】 従来例のタイムチャートFIG. 5 is a time chart of a conventional example.

【符号の説明】[Explanation of symbols]

10 CPU 20 第1のメモリ 21、41 RAM 30 第1のパリティ生成回路 31、51 パリティチェック回路 40 第2のメモリ 50 第2のパリティ生成回路 60 第1のラッチ回路 61、81 FF回路 70 タイミング生成回路 71 デコーダ 80 第2のラッチ回路 10 CPU 20 First Memory 21, 41 RAM 30 First Parity Generation Circuit 31, 51 Parity Check Circuit 40 Second Memory 50 Second Parity Generation Circuit 60 First Latch Circuit 61, 81 FF Circuit 70 Timing Generation Circuit 71 Decoder 80 Second Latch Circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 処理装置(10)がリード/ライトを行
うデータのパリティをチェックする回路であって、 データ処理を実行する処理装置(10)と、 データを入出力する第1のメモリ(20)と、 前記第1のメモリ(20)に書き込むデータのパリティ
演算を行う第1のパリティ生成回路(30)と、 前記第1のパリティ生成回路(30)で発生したパリテ
ィを書き込む第2のメモリ(40)と、 前記第1のメモリ(20)から読み出したデータのパリ
ティ演算を行った結果と、前記第2のメモリ(40)か
ら読み出したパリティとを比較する第2のパリティ生成
回路(50)と、 前記第2のパリティ生成回路(50)の出力を保持する
第1のラッチ回路(60)を備えるパリティチェック回
路において、 前記処理装置(10)のステータス信号とリードタイミ
ング信号から保持タイミング信号を生成するタイミング
生成回路(70)と、 前記第1のメモリ(20)から読み出したデータと、前
記第2のメモリ(30)から読み出したパリティとを保
持する第2のラッチ回路(80)とを設け、 読み出しタイミングの次のタイミングで前記第2のパリ
ティ生成回路(50)でパリティ演算を行い、前記第1
のラッチ回路(60)で保持することを特徴とするパリ
ティチェック回路。
1. A circuit for checking the parity of data to be read / written by a processing device (10), the processing device (10) executing data processing, and a first memory (20) for inputting / outputting data. ), A first parity generation circuit (30) for performing a parity operation on the data to be written in the first memory (20), and a second memory for writing the parity generated in the first parity generation circuit (30). (40), a second parity generation circuit (50) for comparing the result of the parity operation of the data read from the first memory (20) with the parity read from the second memory (40). ) And a first latch circuit (60) for holding the output of the second parity generation circuit (50). A timing generation circuit (70) for generating a hold timing signal from a task signal and a read timing signal, data read from the first memory (20), and parity read from the second memory (30) are held And a second latch circuit (80) for performing a parity operation in the second parity generation circuit (50) at the timing next to the read timing.
The parity check circuit is held by the latch circuit (60).
JP4297487A 1992-11-09 1992-11-09 Parity check circuit Withdrawn JPH06149684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4297487A JPH06149684A (en) 1992-11-09 1992-11-09 Parity check circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4297487A JPH06149684A (en) 1992-11-09 1992-11-09 Parity check circuit

Publications (1)

Publication Number Publication Date
JPH06149684A true JPH06149684A (en) 1994-05-31

Family

ID=17847143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4297487A Withdrawn JPH06149684A (en) 1992-11-09 1992-11-09 Parity check circuit

Country Status (1)

Country Link
JP (1) JPH06149684A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013504817A (en) * 2009-09-09 2013-02-07 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Adjustment of memory write timing based on error detection technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013504817A (en) * 2009-09-09 2013-02-07 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Adjustment of memory write timing based on error detection technology

Similar Documents

Publication Publication Date Title
US6519187B2 (en) Semiconductor memory device having read data multiplexer
JP2002366444A (en) System and method for correcting soft error in random access memory device
TW389904B (en) Synchronous burst semiconductor memory device with parallel input/output data strobe clocks
KR0184369B1 (en) Semiconductor memory device
TW525288B (en) Semiconductor integrated circuit
JP2008250841A (en) Interface circuit
JPH06149684A (en) Parity check circuit
US7102937B2 (en) Solution to DQS postamble ringing problem in memory chips
JPH02143991A (en) Semiconductor memory
JP3098363B2 (en) Storage device
JP3237583B2 (en) Synchronous semiconductor memory device and semiconductor memory system using the same
JPH1153267A (en) Memory data error automatic correcting circuit
JP2003337760A (en) Semiconductor integrated circuit and designing method for the same
JPH06243049A (en) Parity control circuit
JPH05274253A (en) System bus controller
JP2836370B2 (en) Semiconductor memory device
JP2743548B2 (en) Dynamic semiconductor memory device
JPH04291084A (en) Memory control system
JPH05158810A (en) Error detection circuit
JPH05265791A (en) State transition monitor circuit
JPS61156348A (en) Memory device
JPH04255045A (en) Parity check circuit
JPH05265786A (en) Parity check circuit
JPH0746495B2 (en) DRAM parity generation / check method
JPH04107757A (en) Memory error check system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000201