JPH05257822A - Data buffer - Google Patents

Data buffer

Info

Publication number
JPH05257822A
JPH05257822A JP4053478A JP5347892A JPH05257822A JP H05257822 A JPH05257822 A JP H05257822A JP 4053478 A JP4053478 A JP 4053478A JP 5347892 A JP5347892 A JP 5347892A JP H05257822 A JPH05257822 A JP H05257822A
Authority
JP
Japan
Prior art keywords
circuit
data
read
parity
write
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.)
Granted
Application number
JP4053478A
Other languages
Japanese (ja)
Other versions
JP3281982B2 (en
Inventor
Katsuhiro Yagi
且広 八木
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 Engineering Ltd
Original Assignee
NEC Engineering 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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP05347892A priority Critical patent/JP3281982B2/en
Publication of JPH05257822A publication Critical patent/JPH05257822A/en
Application granted granted Critical
Publication of JP3281982B2 publication Critical patent/JP3281982B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect address fault in writing and reading and fault in overwriting and overreading without increasing the number of bits of the storage circuit of an FIFO data buffer. CONSTITUTION:This data buffer has an EX-OR circuit 10 which EX-ORs the parity bit of write data with the parity bit of a write address register 1, a means which inputs the parity bit of the write data to the EX-OR circuit 10 and writes the write data and the output of the 1st EX-OR circuit 10 in a storage circuit 5, an EX-OR circuit 11 which EX-ORs the parity bit of the stored data with the parity bit of a read address register, and a means which adds the output of the EX-OR circuit 11 as a parity bit to the read storage data to generate read data; and the parity of the read data is checked. The fault of the data buffer can be detected by the conversion and reproduction of the input data by those EX-OR circuits 10 and 11.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、特にファーストイン・
ファーストアウト(以後FIFOと呼ぶ)データバッフ
ァに関する。
BACKGROUND OF THE INVENTION The present invention is particularly applicable to first-in
It relates to a first-out (hereinafter FIFO) data buffer.

【0002】[0002]

【従来の技術】図4は、従来のFIFOデータバッファ
の一例のブロック図である。
2. Description of the Related Art FIG. 4 is a block diagram of an example of a conventional FIFO data buffer.

【0003】このデータバッファは、3ビット+パリテ
ィビットで構成されるライトアドレスレジスタ1と、ラ
イトアドレスレジスタ1の値をパリティビットも含めて
+1する+1回路2と、3ビット+パリティビットで構
成されるリードアドレスレジスタ3と、リードアドレス
レジスタ3の値をパリティも含めて+1する+1回路4
と、ライトアドレスレジスタ1のビット1〜2の示すワ
ードにデータが書き込まれ、リードアドレスジスタ3の
ビット1〜2の示すワードからデータが読み出される記
憶回路5と、記憶回路5への書き込みおよび書き込み時
のライトアドレスレジスタ1の更新、記憶回路5からの
読み出しおよび読み出し時のリードアドレスレジスタ3
の更新を制御するライト/リード制御回路6と、リード
データの奇数パリティをチェックし、パリティに異常が
あればエラー信号aを送出するパリティチェック回路7
と、ライトアドレスレジスタ1(3ビット+パリティビ
ット)の奇数パリティをチェックし、パリティに異常が
あればエラー信号bを送出するパリティチェック回路8
と、リードアドレスレジスタ3(3ビット+パリティビ
ット)の奇数パリティをチェックし、パリティに異常が
あればエラー信号cを送出するパリティチェック回路9
とからなる。
This data buffer is composed of a write address register 1 composed of 3 bits + parity bits, a +1 circuit 2 for adding 1 to the value of the write address register 1 including the parity bits, and 3 bits + parity bits. Read address register 3 and the value of the read address register 3 is incremented by 1 including the parity +1 circuit 4
And data is written in the word indicated by bits 1 and 2 of the write address register 1, and data is read from the word indicated by bits 1 and 2 of the read address register 3, and writing and writing in the memory circuit 5. Of the write address register 1 at the time of reading, reading from the storage circuit 5, and read address register 3 at the time of reading
And a write / read control circuit 6 for controlling the update of the data and a parity check circuit 7 for checking the odd parity of the read data and transmitting an error signal a if the parity is abnormal.
And a parity check circuit 8 that checks the odd parity of the write address register 1 (3 bits + parity bit) and sends out the error signal b if the parity is abnormal.
And a parity check circuit 9 for checking the odd parity of the read address register 3 (3 bits + parity bit) and transmitting an error signal c if the parity is abnormal.
Consists of.

【0004】また、ライト/リード制御回路6について
詳細に説明する。ライト/リード制御回路6は上述した
ように、記憶回路5への書き込みおよび書き込み時のラ
イトアドレスレジスタ1の更新、記憶回路5からの読み
出しおよび読み出し時のリードアドレスレジスタ3の更
新を制御する回路であるが、これらの制御の一部として
次の2つの制御も行っている。第1の制御は、ライトア
ドレスレジスタ1とリードアドレスレジスタ3の値の差
分を監視し、(ライトアドレスレジスタ1の値)−(リ
ードアドレスレジスタ3の値)=“100”となってい
るときには、記憶回路5が有効なデータで満杯であるこ
とを示しているので、記憶回路5への書き込みおよび書
き込み時のライトアドレスレジスタ1の更新を抑止する
制御であり、第2の制御は、(ライトアドレスレジスタ
1の値)−(リードアドレスレジスタ3の値)=“00
0”と成っているときには、記憶回路5に有効なデータ
がないことを示しているので、記憶回路5からの読み出
しおよび読み出し時のリードアドレスレジスタ3の更新
を抑止する制御である。
The write / read control circuit 6 will be described in detail. As described above, the write / read control circuit 6 is a circuit that controls writing to the memory circuit 5, updating of the write address register 1 at the time of writing, reading from the memory circuit 5, and updating of the read address register 3 at the time of reading. However, the following two controls are also performed as a part of these controls. The first control monitors the difference between the values of the write address register 1 and the read address register 3, and when (value of write address register 1) − (value of read address register 3) = “100”, Since the storage circuit 5 is shown to be full of valid data, it is a control for suppressing writing to the storage circuit 5 and updating of the write address register 1 at the time of writing, and the second control is (write address Register 1 value)-(Read address register 3 value) = "00
When it is "0", it means that there is no valid data in the memory circuit 5, and therefore the control is for suppressing reading from the memory circuit 5 and updating of the read address register 3 at the time of reading.

【0005】次に図4により、このデータバッファの動
作について説明する。
Next, the operation of this data buffer will be described with reference to FIG.

【0006】記憶回路5にはライトデータ(4ビット+
パリティビット)、ライトアドレスレジスタ1のビット
1〜2(以後ライトアドレスと呼ぶ)およびリードアド
レスレジスタ3のビット1〜2(以後リードアドレスと
呼ぶ)が供給されている。ライト/リード制御回路6の
指示によってライトデータは記憶回路5のライトアドレ
スの示すワードに書き込まれ、同時にライトアドレスレ
ジスタ1が更新される。また、ライト/リード制御回路
6の指示によって記憶回路5のリードアドレスの示すワ
ードからデータが読み出され、同時にリードアドレスレ
ジスタ3が更新される。読み出されたデータは、リード
データとして使用される一方、パリティチェック回路7
によってパリティがチェックされ異常があればエラー信
号aが送出される(障害検出が行われる)。これらの動
作とは別に、ライトアドレスレジスタ1(3ビット+パ
リティビット)およびリードアドレスレジスタ3(3ビ
ット+パリティビット)はそれぞれパリティチェック回
路8または9によってパリティがチェックされ異常があ
ればエラー信号bまたはcが送出される(障害検出が行
われる)。
Write data (4 bits +
Parity bits), bits 1 and 2 of write address register 1 (hereinafter referred to as write address) and bits 1 and 2 of read address register 3 (hereinafter referred to as read address) are supplied. The write data is written in the word indicated by the write address of the memory circuit 5 according to the instruction of the write / read control circuit 6, and the write address register 1 is updated at the same time. Further, according to an instruction from the write / read control circuit 6, data is read from the word indicated by the read address of the memory circuit 5, and the read address register 3 is updated at the same time. The read data is used as read data while the parity check circuit 7 is used.
The parity is checked by and if there is an error, an error signal a is transmitted (a failure is detected). Apart from these operations, the parity check circuit 8 or 9 checks the parity of the write address register 1 (3 bits + parity bit) and the read address register 3 (3 bits + parity bit), respectively. Or c is sent (a fault is detected).

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述し
た図4に示される従来の障害検出回路では、データその
ものに障害が発生した場合には障害が検出されるが、ラ
イトアドレス(図4A点)およびリードアドレス(図4
B点)に障害が発生した場合には障害が検出されず、誤
ったアドレスへのデータの書き込みあるいは、誤ったア
ドレスからのデータの読み出しが行われるという欠点を
有していた。
However, in the conventional fault detection circuit shown in FIG. 4 described above, when a fault occurs in the data itself, the fault is detected, but the write address (point in FIG. 4A) and Read address (Fig. 4
When a failure occurs at point B), the failure is not detected, and there is a drawback that data is written to an incorrect address or data is read from an incorrect address.

【0008】さらに、ライト/リード制御回路6に障害
が発生し、記憶回路5が有効なデータで満杯であること
を示しているにもかかわらず、記憶回路5への書き込み
および書き込み時のライトアドレスレジスタ1の更新を
行ってしまった場合(オーバーライト障害)、あるい
は、記憶回路5に有効なデータがないことを示している
にもかかわらず、記憶回路5からの読み出しおよび読み
出し時のリードアドレスレジスタ3の更新を行ってしま
った場合(オーバーリード障害)には、障害が検出され
ないという欠点も有していた。
Further, although the write / read control circuit 6 has failed and it is shown that the storage circuit 5 is full of valid data, the write address to the storage circuit 5 and the write address at the time of writing are written. If the register 1 has been updated (overwrite failure), or even if it indicates that there is no valid data in the memory circuit 5, the read from the memory circuit 5 and the read address register at the time of reading When the update of 3 is performed (overread failure), there is also a drawback that the failure is not detected.

【0009】本発明の目的は、記憶回路のビット数を増
すことなくライトアドレスおよびリードアドレスの障害
を検出し、オーバーライト障害およびオーバーリード障
害を検出するデータバッファを提供することにある。
An object of the present invention is to provide a data buffer which detects a write address and a read address failure without increasing the number of bits of a memory circuit and detects an overwrite failure and an overread failure.

【0010】[0010]

【課題を検出するための手段】本発明のデータバッファ
は、前記記憶回路への書き込みデータの一部または全部
の各ビットと前記ライトアドレスレジスタのパリティビ
ットとの排他的論理和をとる第1の排他的論理和回路
と、書き込みデータのなかの予め決められた、第1の排
他的論理和回路へ入力させるビットを第1の排他的論理
和回路へ入力させる手段と、第1の排他的論理和回路の
出力と第1の排他的論理和回路に入力されていない書き
込みデータのビットとを合せて記憶データとして前記記
憶回路に記憶させる手段と、前記記憶回路から読み出さ
れたデータの一部または全部の各ビットと前記リードア
ドレスレジスタのパリティビットとの排他的論理和をと
る第2の排他的論理和回路と、記憶回路からの読み出し
データのなかの予め決められた、第2の排他的論理和回
路に入力させるビットを第2の排他的論理和回路へ入力
する手段と、第2の排他的論理和回路の出力と排他的論
理和回路に入力されなかった読み出されたデータと合せ
て読み出しデータとして読み出す手段を有している。
In the data buffer of the present invention, a first bit of an exclusive OR of each bit of a part or all of write data to the storage circuit and a parity bit of the write address register is obtained. An exclusive OR circuit, means for inputting a predetermined bit of write data to be input to the first exclusive OR circuit to the first exclusive OR circuit, and first exclusive logic Means for storing the output of the sum circuit and the bit of the write data not input to the first exclusive OR circuit as the storage data in the storage circuit, and a part of the data read from the storage circuit Alternatively, a second exclusive OR circuit for exclusive ORing each bit of all and the parity bit of the read address register, and the read data from the storage circuit in advance. Means for inputting the bit to be input to the second exclusive OR circuit to the second exclusive OR circuit, and the output of the second exclusive OR circuit and the exclusive OR circuit. It has a unit for reading out the read data together with the read data that has not been read.

【0011】[0011]

【作用】データバッファにおいて記憶回路にデータを書
き込むときには、ライトアドレスレジスタのパリティビ
ットと書き込みデータのパリティビットにより第1の排
他的論理和(以後EX−ORと呼ぶ)をとり、該出力を
障害検出用の信号とし、第1のEX−OR回路に入力さ
れない前記記憶回路への入力を合せて記憶させておき、
前記記憶回路からデータを読み出すときには、読み出す
データと第2のEX−OR回路によって障害検出用の信
号とリードアドレスレジスタのパリティビットとEX−
ORをとった信号とを合せてリードデータおよびリード
データのパリティとして読み出し、記憶回路への入力デ
ータの再現を図り、そのデータのパリティチェックを行
うことによって、オーバーライトおよびオーバーリード
障害を検出することができる。
When writing data to the memory circuit in the data buffer, a first exclusive OR (hereinafter referred to as EX-OR) is taken by the parity bit of the write address register and the parity bit of the write data, and the output is detected as a fault. A signal for input to the storage circuit which is not input to the first EX-OR circuit, and is stored.
When reading data from the storage circuit, the read data, a signal for fault detection by the second EX-OR circuit, the parity bit of the read address register, and EX-
Overwrite and overread faults are detected by reading the read data and the parity of the read data together with the ORed signal, reproducing the input data to the memory circuit, and checking the parity of the data. You can

【0012】したがって、リードデータおよびリードデ
ータのパリティはパリティチェック回路により障害の有
無が検出できる。
Therefore, it is possible to detect the presence or absence of a failure in the read data and the parity of the read data by the parity check circuit.

【0013】[0013]

【実施例】次に本発明について図面を参照して詳細に説
明する。
The present invention will be described in detail with reference to the drawings.

【0014】図1は、本発明の一実施例であるFIFO
データバッファの構成を示すブロック図である。
FIG. 1 shows a FIFO which is an embodiment of the present invention.
It is a block diagram which shows the structure of a data buffer.

【0015】このデータバッファは、3ビット+パリテ
ィビットで構成されるライトアドレスレジスタ1と、ラ
イトアドレスレジスタ1の値をパリティビットも含めて
+1する+1回路2と、3ビット+パリティビットで構
成されるリードアドレスレジスタ3と、リードアドレス
レジスタ3の値をパリティも含めて+1する+1回路4
と、ライトアドレスレジスタ1のビット1〜2の示すワ
ードにデータを書き込み、リードアドレスレジスタ3の
ビット1〜2に示すワードからデータを読み出す(4ビ
ット+パリティビット)×4ワードの記憶回路5と、記
憶回路5への書き込みおよび書き込み時のライトアドレ
スレジスタ1の更新、記憶回路5からの読み出しおよび
読み出し時のリードアドレスレジスタ3の更新を制御す
るライト/リード制御回路6と、リードデータの奇数パ
リティをチェックし、パリティに異常があればエラー信
号aを送出するパリティチェック回路7と、ライトアド
レスレジスタの奇数パリティをチェックし、パリティに
異常があればエラー信号bを送出するパリティチェック
回路8と、リードアドレスレジスタの奇数パリティをチ
ェックし、パリティに異常があればエラー信号cを送出
するパリティチェック回路9と、ライトデータのパリテ
ィビットとライトアドレスレジスタ1のパリティビット
とで排他的論理和をとりその出力を記憶回路5へのライ
トデータのパリティビットとするEX−OR回路10
と、記憶回路5からの読み出しデータのパリティビット
とリードアドレスレジスタ3のパリティビットとEX−
ORをとりその出力をリードデータのパリティとするE
X−OR回路11を有する。図1は、EX−OR回路1
0およびEX−OR回路11を除けば図4の従来例と同
じである。
This data buffer is composed of a write address register 1 composed of 3 bits + parity bits, a +1 circuit 2 for adding 1 to the value of the write address register 1 including the parity bits, and 3 bits + parity bits. Read address register 3 and the value of the read address register 3 is incremented by 1 including the parity +1 circuit 4
And write data to the word indicated by bits 1 and 2 of the write address register 1 and read data from the word indicated by bits 1 and 2 of the read address register 3 (4 bits + parity bit) × 4 word storage circuit 5 A write / read control circuit 6 for controlling writing to the memory circuit 5 and updating of the write address register 1 at the time of writing, reading from the memory circuit 5 and updating of the read address register 3 at the time of reading, and odd parity of read data. And a parity check circuit 7 that sends an error signal a if the parity is abnormal, and a parity check circuit 8 that checks the odd parity of the write address register and sends an error signal b if the parity is abnormal. Check the odd parity of the read address register and If there is an abnormality, the parity check circuit 9 which sends out the error signal c and the parity bit of the write data and the parity bit of the write address register 1 are exclusive ORed and the output is parity of the write data to the storage circuit 5. EX-OR circuit 10 as a bit
And the parity bit of the read data from the storage circuit 5, the parity bit of the read address register 3 and EX-
E which is ORed and whose output is the parity of the read data
It has an X-OR circuit 11. FIG. 1 shows an EX-OR circuit 1
It is the same as the conventional example of FIG. 4 except for 0 and the EX-OR circuit 11.

【0016】図2は、本実施例図1に示すライトアドレ
スレジスタ1、ライトデータおよび記憶データの関係を
示す図である。
FIG. 2 is a diagram showing the relationship among the write address register 1, the write data and the storage data shown in FIG. 1 of the present embodiment.

【0017】図3は、本実施例図1に示すリードアドレ
スレジスタ3、記憶データおよびリードデータの関係を
示す図である。
FIG. 3 is a diagram showing the relationship among the read address register 3, the stored data and the read data shown in FIG. 1 of the present embodiment.

【0018】次に本発明のデータバッファの動作につい
て説明する。ここで、以下の説明では、説明を簡単にす
るためパリティビット付きのデータの値を示す場合に
は、“データビット:パリティビット”の表示をする。
例えば、“000:1”の場合には、データビットが
“000”、パリティビットが“1”であることを示
す。
Next, the operation of the data buffer of the present invention will be described. Here, in the following description, in order to simplify the description, when a data value with a parity bit is shown, “data bit: parity bit” is displayed.
For example, "000: 1" indicates that the data bit is "000" and the parity bit is "1".

【0019】まず、正常な(障害が発生していない)状
態での動作について説明する。
First, the operation in a normal state (no failure has occurred) will be described.

【0020】図1で、ライトアドレスレジスタ1が“0
00:1”(ライトアドレスは“00:1”)のとき
に、ライトデータ“1111:1”が供給され、書き込
みが指示されると、ライト/リード制御回路6の制御に
より、記憶回路5のワード0のパリティビットには
“0”が、ワード0のビット0〜3には“1111”が
記憶され(図2の参照)、同時にライトアドレスレジ
スタ1は+1され“001:0”(ライトアドレスは
“01:0”)となる。さらに、ライトデータ“101
0:1”が供給され書き込みが指示されると、記憶回路
5のワード1のパリティビットには“1”がワード1の
ビット0〜3には“1010”が記憶される(図2の
参照)。
In FIG. 1, the write address register 1 is "0".
When the write data “1111: 1” is supplied and the write is instructed at the time of 00: 1 ”(the write address is“ 00: 1 ”), the write / read control circuit 6 controls the storage circuit 5 to operate. “0” is stored in the parity bit of word 0 and “1111” is stored in bits 0 to 3 of word 0 (see FIG. 2), and at the same time, the write address register 1 is incremented by “001: 0” (write address Becomes “01: 0”). Furthermore, the write data “101
When 0: 1 "is supplied and writing is instructed," 1 "is stored in the parity bit of word 1 and" 1010 "is stored in bits 0 to 3 of word 1 of the memory circuit 5 (see FIG. 2). ).

【0021】この状態で、リードアドレスレジスタ3が
“000:1”(リードアドレスは“00:1”)であ
るときに読み出しが指示されると、ライト/リード制御
回路6の制御により、記憶回路5のワード0のパリティ
ビットからは“0”が、ワード0のビット0〜3からは
“1111”が読み出され、同時にリードアドレスレジ
スタ3は+1され“001:0”(リードアドレスは
“01:0”)となる。このとき、リードデータは“1
111:1”が出力される(図3の参照)。リードデ
ータは同時にパリティチェック回路7で奇数パリティチ
ェックされるが、異常(障害)は検出されずエラー信号
aは出力されない。さらに読み出しが指示されると、記
憶回路5のワード1のパリティビットから“1”が、ワ
ード1のビット0〜3からは“1010”が読み出さ
れ、同時にリードアドレスレジスタ3は+1され“01
0:0”となる。このとき、リードデータは“101
0:1”が出力される(図3の参照)。リードデータ
は同時にパリティチェック回路7で奇数パリティチェッ
クされるが、異常(障害)は検出されずエラー信号aは
出力されない。
In this state, when read is instructed when the read address register 3 is "000: 1" (read address is "00: 1"), the memory circuit is controlled by the write / read control circuit 6. 5, "0" is read from the parity bit of word 0 and "1111" is read from bits 0 to 3 of word 0, and at the same time, the read address register 3 is incremented by "001: 0" (the read address is "01". : 0 ”). At this time, the read data is "1.
111: 1 "is output (see FIG. 3). The read data is simultaneously subjected to an odd parity check by the parity check circuit 7, but no abnormality (fault) is detected and no error signal a is output. Then, "1" is read from the parity bit of word 1 of the memory circuit 5 and "1010" is read from bits 0 to 3 of word 1, and at the same time, the read address register 3 is incremented by "01".
It becomes 0: 0. At this time, the read data is "101".
0: 1 "is output (see FIG. 3). The read data is simultaneously subjected to odd parity check by the parity check circuit 7, but no abnormality (fault) is detected and the error signal a is not output.

【0022】次にリードアドレスに障害が発生した場合
について説明する。
Next, a case where a failure occurs in the read address will be described.

【0023】前記状態で、リードアドレス“00:1”
が供給されるはずが、途中でビット1に障害が発生し
“01:1”が供給されると、記憶回路5のワード1の
パリティビットからは“1”が、ワード1のビット0〜
3からは“1010”が読み出され、リードデータは
“1010:0”が出力される。リードデータは同時に
パリティチェック回路7で奇数パリティチェックされる
が、異常(障害)が検出され、エラー信号aが出力され
る。
In the above state, the read address "00: 1"
Should be supplied, but if bit 1 fails in the middle and "01: 1" is supplied, "1" is read from the parity bit of word 1 of the memory circuit 5, and bits 0 to 0 of word 1 are supplied.
“1010” is read out from 3, and read data “1010: 0” is output. At the same time, the read data is subjected to an odd parity check by the parity check circuit 7, but an abnormality (fault) is detected and an error signal a is output.

【0024】次に、ライトアドレスに障害が発生した場
合について説明する。
Next, the case where a write address failure occurs will be described.

【0025】前記状態で、ライトアドレス“00:1”
が供給されるはずが、途中でビット1に障害が発生し
“01:1”がライトアドレスとして、またライトデー
タとして“1111:1”が供給されると、記憶回路5
のワード1のパリティビットには“0”が、ワード1の
ビット0〜3には“1111”が記憶される。
In the above state, the write address "00: 1"
However, if "01: 1" is supplied as a write address and "1111: 1" is supplied as write data due to a failure in bit 1 in the middle, the memory circuit 5
“0” is stored in the parity bit of the word 1 of “1”, and “1111” is stored in the bits 0 to 3 of the word 1.

【0026】この状態で、リードアドレス“01:0”
が供給されると、記憶回路5のワード1のパリティビッ
トからは“0”が、ワード1のビット0〜3からは“1
111”が読み出され、リードデータは“1111:
0”が出力される。リードデータは同時にパリティチェ
ック回路7で奇数パリティチェックされるが、異常(障
害)が検出され、エラー信号aが出力される。
In this state, the read address "01: 0"
Is supplied, "0" is output from the parity bit of word 1 of the memory circuit 5, and "1" is input from bits 0 to 3 of word 1.
111 "is read out and the read data is" 1111:
0 "is output. The read data is simultaneously subjected to odd parity check by the parity check circuit 7, but an abnormality (fault) is detected and an error signal a is output.

【0027】次にライト/リード制御回路6に障害が発
生し、記憶回路5に有効なデータがないことを示してい
るにもかかわらず、記憶回路5からの読み出しおよび読
み出し時のリードアドレスレジスタ3の更新を行ってし
まった場合について説明する。
Next, although the write / read control circuit 6 has failed and the memory circuit 5 shows that there is no valid data, the read from the memory circuit 5 and the read address register 3 at the time of reading are performed. The case where the update has been performed will be described.

【0028】ライトアドレスレジスタ1が“100:
0”で、かつリードアドレスレジスタ3が“100:
0”のとき(記憶回路5に有効なデータがない状態)に
データの読み出しが行われると、記憶回路5からはライ
トアドレスレジスタ1が“000:1”のときに書き込
まれたデータが読み出される。例えばワード0のパリテ
ィビットからは“0”が、ワード0のビット0〜3から
は“1111”が読み出される。このときのリードデー
タは、リードアドレスレジスタ3のパリティビットが
“0”であるため“1111:0”が出力される。リー
ドデータは同時にパリティチェック回路7で奇数パリテ
ィチェックされるが、異常(障害)が検出され、エラー
信号aが出力される。
The write address register 1 is "100:
0 and the read address register 3 is "100:
When the data is read out when the write address register 1 is "000: 1" when the data is read out when the data is "0" (the state where there is no valid data in the storage circuit 5). For example, "0" is read from the parity bit of word 0 and "1111" is read from bits 0 to 3 of word 0. At this time, the read data has the parity bit of read address register 3 of "0". Therefore, “1111: 0” is output, and the parity check circuit 7 simultaneously performs an odd number parity check on the read data, but an abnormality (fault) is detected and an error signal a is output.

【0029】次にライト/リード制御回路6に障害が発
生し、記憶回路5が有効なデータで満杯であることを示
しているにもかかわらず、記憶回路5への書き込みおよ
び書き込み時のライトアドレスレジスタ1の更新を行っ
てしまった場合について説明する。
Next, although a failure occurs in the write / read control circuit 6 and the storage circuit 5 is shown to be full of valid data, the write address to the storage circuit 5 and the write address at the time of writing are written. A case where the register 1 is updated will be described.

【0030】ライトアドレスレジスタ1が“100:
0”で、かつリードアドレスレジスタ3が“000:
1”のとき(記憶回路5が有効なデータで満杯の状態)
に、データの書き込みが行われると、ライトアドレスレ
ジスタ1のパリティビットが“0”であるためライトデ
ータが“1111:1”の場合には記憶回路5のワード
0のパリティビットに“1”が、ワード0のビット0〜
3に“1111”が書き込まれる。この後で読み出しが
指示されると、記憶回路5のワード0のパリティからは
“1”が、ワード0のビット0〜3からは“1111”
が読み出される。このときのリードデータは、リードア
ドレスレジスタ3のパリティが“1”であるため“11
11:0”が出力される。リードデータは同時にパリテ
ィチェック回路7で奇数パリティチェックされるが、異
常(障害)が検出され、エラー信号aが出力される。
The write address register 1 is "100:
0 and the read address register 3 is "000:
1 "(memory circuit 5 is full of valid data)
Then, when the data is written, the parity bit of the write address register 1 is "0", so that if the write data is "1111: 1", the parity bit of the word 0 of the memory circuit 5 is "1". , Bit 0 of word 0
“1111” is written in 3. When the reading is instructed thereafter, “1” is read from the parity of word 0 of the memory circuit 5, and “1111” is read from bits 0 to 3 of word 0.
Is read. The read data at this time is "11" because the parity of the read address register 3 is "1".
11: 0 "is output. The read data is simultaneously subjected to an odd number parity check by the parity check circuit 7, but an abnormality (fault) is detected and an error signal a is output.

【0031】本実施例では、記憶回路1のライトデータ
とリードデータが別々の信号線となっているが、スリー
ステート素子を使う等して同一にしても何等問題はな
い。また、本実施例では、ライトデータ用のEX−OR
回路10とリードデータ用のEX−OR回路11はデー
タのパリティビットに対してのみ排他的論理和をとり、
かつ、それぞれ1ビットのみ排他的論理和をとっている
が、データのビットはパリティ以外の他のビットであっ
てもかまわないし、データの複数ビットに対してアドレ
スのパリティと排他的論理和をとっても何等問題はな
い。
In the present embodiment, the write data and the read data of the memory circuit 1 are separate signal lines, but there is no problem even if they are made the same by using a three-state element. Further, in this embodiment, the EX-OR for write data is used.
The circuit 10 and the EX-OR circuit 11 for read data take the exclusive OR of only the parity bit of the data,
Moreover, although only one bit is exclusively ORed, the data bits may be other bits than the parity, and the parity of the address and the exclusive OR may be taken for a plurality of bits of data. There is no problem at all.

【0032】[0032]

【発明の効果】以上説明したように本発明のデータバッ
ファは、記憶回路のビット数を増やすことなく、データ
そのものに障害が発生した場合ばかりでなく、ライトア
ドレスおよびリードアドレスに障害が発生した場合に
も、障害を検出することが可能となり、障害発生による
データ誤りを防ぐことができるという効果を有する。
As described above, the data buffer of the present invention does not increase the number of bits of the memory circuit, but not only when the data itself fails, but also when the write address and the read address fail. In addition, it is possible to detect a failure, and it is possible to prevent a data error caused by the occurrence of the failure.

【0033】さらに、記憶回路が有効なデータで満杯で
あるにもかかわらず、記憶回路への書き込みを行ってし
まった場合、あるいは、記憶回路に有効なデータがない
にもかかわらず、記憶回路からの読み出しを行ってしま
った場合にも、障害を検出することが可能となり、障害
発生によるデータ誤りを防ぐということができるという
効果も有する。
Further, if the memory circuit is filled with valid data but writing has been performed to the memory circuit, or if the memory circuit has no valid data, the Even if the data has been read out, it is possible to detect a failure, and it is possible to prevent a data error due to the occurrence of a failure.

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

【図1】本発明の一実施例であるFIFOデータバッフ
ァの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a FIFO data buffer which is an embodiment of the present invention.

【図2】本実施例図1のライトアドレスレジスタ1、ラ
イトデータおよび記憶データの関係を示す図である。
FIG. 2 is a diagram showing a relationship among a write address register 1, write data, and stored data in FIG. 1 of the present embodiment.

【図3】本実施例図1のリードアドレスレジスタ3、記
憶データおよびリードデータの関係を示す図である。
FIG. 3 is a diagram showing a relationship among a read address register 3, storage data and read data in FIG. 1 of the present embodiment.

【図4】従来のFIFOデータバッファの構成を示すブ
ロック図である。
FIG. 4 is a block diagram showing a configuration of a conventional FIFO data buffer.

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

1 ライトアドレスレジスタ(3ビット+パリティビ
ット) 2 +1回路(パリティ付き) 3 リードアドレスレジスタ(3ビット+パリティビ
ット) 4 +1回路(パリティ付き) 5 記憶回路(4ビット+パリティビット) 6 ライト/リード制御回路 7 パリティチェック回路(4ビット+パリティビッ
ト) 8 パリティチェック回路(3ビット+パリティビッ
ト) 9 パリティチェック回路(3ビット+パリティビッ
ト) 10 EX−OR回路(ライトデータ用) 11 EX−OR回路(リードデータ用)
1 write address register (3 bits + parity bit) 2 + 1 circuit (with parity) 3 read address register (3 bits + parity bit) 4 + 1 circuit (with parity) 5 storage circuit (4 bits + parity bit) 6 write / read Control circuit 7 Parity check circuit (4 bits + parity bit) 8 Parity check circuit (3 bits + parity bit) 9 Parity check circuit (3 bits + parity bit) 10 EX-OR circuit (for write data) 11 EX-OR circuit (For read data)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 記憶回路と、前記記憶回路への書き込み
アドレスを指定し、かつ書き込みアドレスに使用するビ
ット幅より1ビット以上多いビット幅とパリティビット
を持つライトアドレスレジスタと該ライトアドレスレジ
スタをパリティビットを含んで加算または減算する第1
の演算回路と前記記憶回路からの読み出しアドレスを指
定し、かつ読み出しアドレスに使用するビット幅より1
ビット以上多いビット幅とパリティビットを持つリード
アドレスレジスタと該リードアドレスレジスタをパリテ
ィビットを含んで加算または減算する第2の演算回路と
ライト/リード制御回路と、パリティビットをチェック
する回路とを有するデータバッファにおいて、 前記記憶回路への書き込みデータの一部または全部の各
ビットと前記ライトアドレスレジスタのパリティビット
との排他的論理和をとる第1の排他的論理和回路と、 書き込みデータのなかの予め決められた、第1の排他的
論理和回路へ入力させるビットを第1の排他的論理和回
路へ入力させる手段と、 第1の排他的論理和回路の出力と第1の排他的論理和回
路に入力されていない書き込みデータのビットとを合せ
て記憶データとして前記記憶回路に記憶させる手段と、 前記記憶回路から読み出されたデータの一部または全部
の各ビットと前記リードアドレスレジスタのパリティビ
ットとの排他的論理和をとる第2の排他的論理和回路
と、 記憶回路からの読み出しデータのなかの予め決められ
た、第2の排他的論理和回路に入力させるビットを第2
の排他的論理和回路へ入力する手段と、 第2の排他的論理和回路の出力と排他的論理和回路に入
力されなかった読み出されたデータと合せて読み出しデ
ータとして読み出す手段を有することを特徴とするデー
タバッファ。
1. A storage circuit, a write address register for designating a write address to the storage circuit, and having a bit width and a parity bit larger than the bit width used for the write address by 1 bit or more, and the write address register are parity. First addition or subtraction including bits
1 from the bit width used to specify the read address from the arithmetic circuit and the memory circuit
It has a read address register having a bit width larger than the number of bits and a parity bit, a second arithmetic circuit for adding or subtracting the read address register including the parity bit, a write / read control circuit, and a circuit for checking the parity bit. In the data buffer, a first exclusive OR circuit that takes an exclusive OR of each bit of a part or all of the write data to the storage circuit and the parity bit of the write address register; A predetermined means for inputting a bit to be input to the first exclusive OR circuit to the first exclusive OR circuit, an output of the first exclusive OR circuit, and a first exclusive OR Means for storing in the storage circuit as storage data a sum of the bits of the write data not input to the circuit, A second exclusive OR circuit for obtaining the exclusive OR of each bit of a part or all of the data read from the storage circuit and the parity bit of the read address register; and the read data from the storage circuit. The bit to be input to the second exclusive OR circuit, which is determined in advance, is set to the second
Of the second exclusive OR circuit and the read data that has not been input to the exclusive OR circuit and is read as read data. Characteristic data buffer.
JP05347892A 1992-03-12 1992-03-12 Data buffer Expired - Fee Related JP3281982B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05347892A JP3281982B2 (en) 1992-03-12 1992-03-12 Data buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05347892A JP3281982B2 (en) 1992-03-12 1992-03-12 Data buffer

Publications (2)

Publication Number Publication Date
JPH05257822A true JPH05257822A (en) 1993-10-08
JP3281982B2 JP3281982B2 (en) 2002-05-13

Family

ID=12943960

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05347892A Expired - Fee Related JP3281982B2 (en) 1992-03-12 1992-03-12 Data buffer

Country Status (1)

Country Link
JP (1) JP3281982B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334431A (en) * 1994-06-10 1995-12-22 Nec Corp Fifo memory device and method for improving reliability

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334431A (en) * 1994-06-10 1995-12-22 Nec Corp Fifo memory device and method for improving reliability

Also Published As

Publication number Publication date
JP3281982B2 (en) 2002-05-13

Similar Documents

Publication Publication Date Title
US7444540B2 (en) Memory mirroring apparatus and method
JPH05257822A (en) Data buffer
JPS62242258A (en) Storage device
KR860002027B1 (en) Key memory error processing system
JPH05165734A (en) Fixed fault diagnostic device for main storage device
JP3123855B2 (en) Patrol control circuit of memory device
JPH02143352A (en) Memory error detection and correction system
JPS6161299A (en) Memory
JPH0520215A (en) Information processor
JPH0683718A (en) Fault detecting circuit
JPH02297235A (en) Memory data protecting circuit
JPS63271555A (en) Storage control system
JPH04271430A (en) Data buffer device
JPH09204363A (en) Data memory device
JPH0612273A (en) Data memory monitor system
JPH04318628A (en) Central processing unit
JP2000099410A (en) Memory control circuit and information processor
JPH0588992A (en) Memory control system
JPH04156641A (en) Register access device
JPH05225070A (en) Memory device
JPH04237351A (en) Memory rewriting system
JPH0282333A (en) Memory circuit
JPH08212143A (en) Parity control system
JPS6218066B2 (en)
JPH02162444A (en) Arithmetic processor

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080301

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090301

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090301

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090301

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100301

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100301

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110301

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees