JPH0561777A - Memory control circuit - Google Patents

Memory control circuit

Info

Publication number
JPH0561777A
JPH0561777A JP3220486A JP22048691A JPH0561777A JP H0561777 A JPH0561777 A JP H0561777A JP 3220486 A JP3220486 A JP 3220486A JP 22048691 A JP22048691 A JP 22048691A JP H0561777 A JPH0561777 A JP H0561777A
Authority
JP
Japan
Prior art keywords
parity
data
circuit
odd
bit
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
JP3220486A
Other languages
Japanese (ja)
Inventor
Toshifumi Matsuo
敏文 松尾
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
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 filed Critical NEC Corp
Priority to JP3220486A priority Critical patent/JPH0561777A/en
Publication of JPH0561777A publication Critical patent/JPH0561777A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】 データ記憶回路のデータに付加する奇数パリ
ティと偶数パリティをランダムに切り替える。 【構成】 データ記憶回路11、奇数パリティ生成チェ
ック回路12、偶数パリティ生成チェック回路13はデ
ータバス14に接続され、アドレスバス15に接続する
パリティ記憶回路16はデータ記憶回路11と接続し、
またデータパリティ選択回路17、パリティエラー保持
回路18、奇数パリティ生成チェック回路12、偶数パ
リティ生成チェック回路13と接続されている。
(57) [Summary] [Purpose] Randomly switches between odd parity and even parity added to the data in the data storage circuit. [Structure] A data storage circuit 11, an odd parity generation check circuit 12, and an even parity generation check circuit 13 are connected to a data bus 14, and a parity storage circuit 16 connected to an address bus 15 is connected to the data storage circuit 11,
Further, it is connected to the data parity selection circuit 17, the parity error holding circuit 18, the odd parity generation check circuit 12, and the even parity generation check circuit 13.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、記憶データをバス上に
転送するときにパリティチェックを行ない、データを保
護する記憶制御回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage control circuit which protects data by performing a parity check when transferring stored data onto a bus.

【0002】[0002]

【従来の技術】情報処理システムなどの従来の記憶制御
回路では、転送データに奇数パリティビットまたは偶数
パリティビットを付加して転送し、パリティチェックを
行うことにより、データを保全していた。
2. Description of the Related Art In a conventional storage control circuit such as an information processing system, data is preserved by adding an odd parity bit or an even parity bit to transfer data and transferring the data to perform a parity check.

【0003】[0003]

【発明が解決しようとする課題】従来の記憶制御回路で
は、パリティチェック機能が、奇数パリティまたは偶数
パリティの一方に固定されているので、奇数パリティま
たは偶数パリティの条件に合ったデータ誤りが発生する
と、暫くの間、誤りを検出できないことがあるという欠
点があった。
In the conventional storage control circuit, since the parity check function is fixed to one of odd parity and even parity, when a data error which meets the condition of odd parity or even parity occurs. However, for a while, there was a drawback that errors could not be detected.

【0004】そこで本発明の目的は、データ記憶回路の
パリティを奇数パリティと偶数パリティにランダムに切
り替える記憶制御回路を提供することにある。
Therefore, an object of the present invention is to provide a storage control circuit that randomly switches the parity of a data storage circuit between odd parity and even parity.

【0005】[0005]

【課題を解決するための手段】請求項1記載の発明で
は、データバスおよびアドレスバスに接続され、パリテ
ィビットを付加したデータをデータバスに出力する記憶
手段と、奇数パリティおよび偶数パリティを交互に選択
して出力するパリティ選択手段と、このパリティ選択手
段の出力を記憶し、かつ記憶手段のデータに付加する奇
数パリティビットまたは偶数パリティビットを出力する
パリティ記憶手段と、このパリティ記憶手段の記憶する
パリティにより記憶手段の出力するデータのパリティを
チェックするチェック手段とを具備させる。
According to a first aspect of the present invention, storage means connected to a data bus and an address bus for outputting data to which a parity bit is added to the data bus and an odd parity and an even parity are alternately arranged. A parity selecting means for selecting and outputting, a parity storing means for storing the output of the parity selecting means and outputting an odd parity bit or an even parity bit to be added to the data of the storing means, and the parity storing means for storing the parity storing means. A check means for checking the parity of the data output from the storage means by the parity is provided.

【0006】請求項2記載の発明では、パリティビット
選択手段はアドレスバスの特定ビットが所定の有意極性
になるごとに、奇数パリティと偶数パリティを切り替え
る。
According to the second aspect of the invention, the parity bit selecting means switches between odd parity and even parity each time a specific bit of the address bus has a predetermined significant polarity.

【0007】請求項3記載の発明では、アドレスバスの
全ビットの所定の有意極性の所定のパリティを検出する
と、奇数パリティと偶数パリティの交互選択を切り替え
る。
According to the third aspect of the invention, when the predetermined parity of the predetermined significant polarity of all the bits of the address bus is detected, the alternate selection between the odd parity and the even parity is switched.

【0008】[0008]

【作用】すなわち、請求項1記載の発明によれば、書き
込みデータに奇数パリティビットおよび偶数パリティビ
ットを切り替えて付加し、これを記憶して、読み出しデ
ータのパリティをチェックする。
That is, according to the first aspect of the present invention, the odd parity bit and the even parity bit are switched and added to the write data, which is stored, and the parity of the read data is checked.

【0009】請求項2記載の発明によれば、アドレスバ
スにアドレスが転送されるごとに、特定ビットが所定の
有意極性になったときに奇数および偶数パリティを切り
替える。
According to the second aspect of the present invention, every time the address is transferred to the address bus, the odd number parity and the even number parity are switched when the specific bit has a predetermined significant polarity.

【0010】請求項3記載の発明によれば、アドレスバ
スにアドレスが転送されるごとに、アドレスバス上の全
ビットの所定の有意極性による所定のパリティを検出す
ると、奇数および偶数パリティの交互選択を切り替え
る。
According to the third aspect of the present invention, every time an address is transferred to the address bus, if a predetermined parity due to a predetermined significant polarity of all bits on the address bus is detected, odd and even parity are alternately selected. Switch.

【0011】[0011]

【実施例】次に添付図面を参照して本発明による記憶制
御回路の実施例を詳細に説明する。
Embodiments of the storage control circuit according to the present invention will now be described in detail with reference to the accompanying drawings.

【0012】図1は本発明の第1の実施例を示したもの
である。記憶制御回路10において、データ記憶回路1
1と奇数パリティ生成チェック回路12および偶数パリ
ティ生成チェック回路13はデータバス14に接続され
ている。アドレスバス15に接続されたパリティ記憶回
路16は、データ記憶回路11と接続され、またデータ
パリティ選択回路17、パリティエラー保持回路18、
奇数パリティ生成チェック回路12および偶数パリティ
生成チェック回路13と接続されている。奇数パリティ
生成チェック回路12と偶数パリティ生成チェック回路
13は、パリティビット選択回路17と接続されてい
る。
FIG. 1 shows a first embodiment of the present invention. In the storage control circuit 10, the data storage circuit 1
The 1 / odd parity generation check circuit 12 and the even parity generation check circuit 13 are connected to the data bus 14. The parity storage circuit 16 connected to the address bus 15 is connected to the data storage circuit 11, and also includes a data parity selection circuit 17, a parity error holding circuit 18,
It is connected to the odd parity generation check circuit 12 and the even parity generation check circuit 13. The odd parity generation check circuit 12 and the even parity generation check circuit 13 are connected to the parity bit selection circuit 17.

【0013】奇数パリティ生成チェック回路12および
偶数パリティ生成チェック回路13は、データバス14
のデータを入力し、書き込み処理のときに、各回路は、
データに付加する奇数パリティビットおよび偶数パリテ
ィビットビットを生成してデータパリティ選択回路17
に出力する。データパリティ選択回路17は、データ記
憶回路11の読み出し処理のときに、パリティ記憶回路
16が記憶する奇数または偶数パリティのデータを入力
し、その規則性によりデータをチェックし、パリティエ
ラーがあれば、これをパリティビットエラー保持回路1
8に出力する。
The odd parity generation check circuit 12 and the even parity generation check circuit 13 are connected to the data bus 14.
When inputting the data of and writing process, each circuit
The data parity selection circuit 17 generates an odd parity bit and an even parity bit to be added to the data.
Output to. The data parity selection circuit 17 inputs the odd or even parity data stored in the parity storage circuit 16 during the read processing of the data storage circuit 11, checks the data according to its regularity, and if there is a parity error, This is the parity bit error holding circuit 1
Output to 8.

【0014】データパリティ選択回路17は、アドレス
バス15上の特定のビット、例えば、最下位ビット20
を入力し、それが有意極性、“1”(または“0”)の
ときに奇数および偶数パリティの選択を切り替える。そ
して、書き込み処理では、奇数パリティ生成チェック回
路12および偶数パリティ生成チェック回路13から入
力される奇数パリティビットおよび偶数パリティビット
の一方を選択してパリティ記憶回路16に出力する。読
み出し処理では、奇数および偶数パリティのエラーが入
力すると、パリティビットエラー保持回路18に出力す
る。パリティエラー保持回路18は、そのパリティエラ
ーを記憶する。
The data parity selection circuit 17 includes a specific bit on the address bus 15, for example, the least significant bit 20.
, And switches between odd and even parity selection when it is of significant polarity, "1" (or "0"). Then, in the writing process, one of the odd parity bit and the even parity bit input from the odd parity generation check circuit 12 and the even parity generation check circuit 13 is selected and output to the parity storage circuit 16. In the reading process, when an odd number parity error and an even number parity error are input, they are output to the parity bit error holding circuit 18. The parity error holding circuit 18 stores the parity error.

【0015】パリティ記憶回路16は、データ記憶回路
11と共通のアドレスを有し、アドレスバス15にデー
タ記憶回路11のアドレスが出力されると、データパリ
ティ選択回路17から入力される奇数パリティビットま
たは偶数パリティビットを記憶し、これをデータ記憶回
路11に出力する。また記憶している奇数または偶数パ
リティを奇数パリティ生成チェック回路12および偶数
パリティ生成チェック回路13に出力する。
The parity storage circuit 16 has a common address with the data storage circuit 11, and when the address of the data storage circuit 11 is output to the address bus 15, an odd parity bit input from the data parity selection circuit 17 or The even parity bit is stored and output to the data storage circuit 11. The stored odd or even parity is output to the odd parity generation check circuit 12 and the even parity generation check circuit 13.

【0016】データ記憶回路11は、パリティ記憶回路
16からアドレスとパリティビット22を入力する。自
回路のアドレスが出力されると、書き込み処理では、デ
ータバス14から入力されるデータに奇数パリティビッ
トまたは偶数パリティビットを付加して記憶する。読み
出し処理では、パリティデータをデータバス14に出力
する。
The data storage circuit 11 receives the address and the parity bit 22 from the parity storage circuit 16. When the address of its own circuit is output, in the write processing, the data input from the data bus 14 is added with an odd parity bit or an even parity bit and stored. In the read process, the parity data is output to the data bus 14.

【0017】記憶制御回路10の動作を説明する。デー
タ記憶回路11のデータに付加する奇数パリティビット
および偶数パリティビットは、データパリティ選択回路
17のパリティ選択による。アドレスバス15上にアド
レスが出力され、かつその最下位ビット20が所定の有
意極性となる毎にパリティ選択が切り替わるので、パリ
ティの選択はランダム選択に近くなる。記憶データの読
み出しでは、奇数パリティ生成チェック回路12および
偶数パリティ生成チェック回路13が、パリティ記憶回
路16の記憶している奇数パリティビットおよび偶数パ
リティビットを入力してパリティビットをチェックす
る。エラーのときは、パリティエラー保持回路18に奇
数パリティビットおよび偶数パリティビットエラーとし
て保存される。以上のように、奇数パリティビットおよ
び偶数パリティビットは、ランダムに切り替わるので、
一方のチェックで検出できないパリティビットエラー
も、早期に発見することができる。
The operation of the storage control circuit 10 will be described. The odd parity bit and the even parity bit added to the data of the data storage circuit 11 are determined by the parity selection of the data parity selection circuit 17. The parity is switched to the random selection because the address is output onto the address bus 15 and the parity selection is switched every time the least significant bit 20 thereof has a predetermined significant polarity. In reading the stored data, the odd parity generation check circuit 12 and the even parity generation check circuit 13 input the odd parity bits and the even parity bits stored in the parity storage circuit 16 to check the parity bits. When an error occurs, it is stored in the parity error holding circuit 18 as an odd parity bit and an even parity bit error. As mentioned above, since the odd parity bit and the even parity bit are switched at random,
A parity bit error that cannot be detected by one of the checks can be detected early.

【0018】図2は第2の実施例を示したものである。
図2の記憶制御回路30は、図1の記憶制御回路10に
アドレスパリティビット生成回路32を付加したもので
ある。アドレスパリティビット生成回路32は、アドレ
スバス15と接続し、アドレスが現われるごとに、全ア
ドレスビットの所定の有意極が、奇数(または偶数)パ
リティのときに選択パルスをデータパリティ選択回路1
7に出力する。データパリティ選択回路17は、選択パ
ルスを入力する毎に、パリティの選択を切り替えるの
で、アドレスバスとデータバスがショートした場合等の
規則的なデータエラーにおいても故障を検出することが
できる。
FIG. 2 shows a second embodiment.
The storage control circuit 30 of FIG. 2 is obtained by adding an address parity bit generation circuit 32 to the storage control circuit 10 of FIG. The address parity bit generation circuit 32 is connected to the address bus 15 and outputs a selection pulse to the data parity selection circuit 1 when a predetermined significant pole of all address bits is an odd (or even) parity each time an address appears.
Output to 7. Since the data parity selection circuit 17 switches the selection of parity each time a selection pulse is input, it is possible to detect a failure even in a regular data error such as when the address bus and the data bus are short-circuited.

【0019】[0019]

【発明の効果】このように請求項1〜3記載の発明によ
れば、記憶データに付加されるパリティが、奇数および
偶数パリティに交互に切り替わるので、一方に固定され
ている従来のパリティチェックより、誤りを早く検出で
きるという利点がある。
As described above, according to the invention described in claims 1 to 3, the parity added to the storage data is alternately switched to the odd number and the even number, so that the conventional parity check fixed to one side is performed. The advantage is that errors can be detected quickly.

【0020】請求項2記載の発明によれば、パリティの
切り替えをアドレスバスの特定ビットの特定極性により
行うので、奇数および偶数パリティの切り替がランダム
選択に近くなるという利点がある。
According to the second aspect of the present invention, since the switching of the parity is performed by the specific polarity of the specific bit of the address bus, there is an advantage that the switching of odd and even parity becomes close to random selection.

【0021】請求項3記載の発明によれば、アドレスバ
スの全アドレスビットの奇数および偶数パリティの一方
により、データパリティが切り替わるので、請求項2よ
り選択肢が多く、よりランダム選択に近いという利点が
ある。
According to the third aspect of the present invention, since the data parity is switched by one of the odd number parity and the even number parity of all the address bits of the address bus, there are more options than the second aspect, and there is an advantage that it is closer to random selection. is there.

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

【図1】本発明の第1の実施例の記憶制御回路の構成を
表わした概略構成図である。
FIG. 1 is a schematic configuration diagram showing a configuration of a storage control circuit according to a first exemplary embodiment of the present invention.

【図2】本発明の第2の実施例の記憶制御回路の構成を
表わした概略構成図である。
FIG. 2 is a schematic configuration diagram showing a configuration of a storage control circuit according to a second embodiment of the present invention.

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

10、30 記憶制御回路 11 データ記憶回路 12 奇数パリティ生成チェック回路 13 偶数パリティ生成チェック回路 14 データバス 15 アドレスバス 16 パリティ記憶回路 17 データパリティ選択回路 18 パリティエラー保持回路 32 アドレスパリティビット生成回路 10, 30 Storage control circuit 11 Data storage circuit 12 Odd parity generation check circuit 13 Even parity generation check circuit 14 Data bus 15 Address bus 16 Parity storage circuit 17 Data parity selection circuit 18 Parity error holding circuit 32 Address parity bit generation circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データバスおよびアドレスバスに接続さ
れ、パリティビットを付加したデータをデータバスに出
力する記憶手段と、 奇数パリティおよび偶数パリティを交互に選択して出力
するパリティ選択手段と、 このパリティ選択手段の出力を記憶し、かつ前記記憶手
段のデータに付加する奇数パリティビットまたは偶数パ
リティビットを出力するパリティ記憶手段と、 このパリティ記憶手段の記憶するパリティにより前記記
憶手段の出力するデータのパリティをチェックするチェ
ック手段とを具備することをことを特徴とする記憶制御
回路。
1. A storage means connected to a data bus and an address bus for outputting data to which a parity bit is added to the data bus, and parity selecting means for alternately outputting odd parity and even parity, and outputting the parity. Parity storage means for storing the output of the selection means and outputting odd parity bits or even parity bits to be added to the data of the storage means, and the parity of the data output by the storage means by the parity stored by the parity storage means. And a check means for checking the storage control circuit.
【請求項2】 前記パリティビット選択手段は前記アド
レスバスの特定ビットが所定の有意極性になるごとに、
前記奇数パリティと偶数パリティを切り替えることを特
徴とする請求項1記載の記憶制御回路。
2. The parity bit selection means is arranged such that each time a specific bit of the address bus has a predetermined significant polarity,
The storage control circuit according to claim 1, wherein the odd parity and the even parity are switched.
【請求項3】 前記アドレスバスの全ビットの所定の有
意極性の所定のパリティを検出すると、奇数パリティと
偶数パリティを切り替えることを特徴とする請求項1記
載の記憶制御回路。
3. The storage control circuit according to claim 1, wherein when a predetermined parity of a predetermined significant polarity of all bits of the address bus is detected, odd parity and even parity are switched.
JP3220486A 1991-08-30 1991-08-30 Memory control circuit Pending JPH0561777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3220486A JPH0561777A (en) 1991-08-30 1991-08-30 Memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3220486A JPH0561777A (en) 1991-08-30 1991-08-30 Memory control circuit

Publications (1)

Publication Number Publication Date
JPH0561777A true JPH0561777A (en) 1993-03-12

Family

ID=16751832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3220486A Pending JPH0561777A (en) 1991-08-30 1991-08-30 Memory control circuit

Country Status (1)

Country Link
JP (1) JPH0561777A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7654024B2 (en) 2002-09-27 2010-02-02 Laser Band, Llc Separated wristband label assembly
JP2012216046A (en) * 2011-03-31 2012-11-08 Renesas Electronics Corp Microcomputer and method for detecting abnormal memory access

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7654024B2 (en) 2002-09-27 2010-02-02 Laser Band, Llc Separated wristband label assembly
JP2012216046A (en) * 2011-03-31 2012-11-08 Renesas Electronics Corp Microcomputer and method for detecting abnormal memory access

Similar Documents

Publication Publication Date Title
US4103823A (en) Parity checking scheme for detecting word line failure in multiple byte arrays
JP2853555B2 (en) Storage controller
JPH03501659A (en) Pipeline address check bit stack controller
JPH0773114A (en) Memory control circuit for space digital computer
JPH06309185A (en) Information processing equipment
JPH04219845A (en) Information processor
JPH1064299A (en) Testing method of random access memory
JPH0553924A (en) System for testing storage device
JPH02302855A (en) Memory control system
JPH1153267A (en) Automatic memory data error correction circuit
JPH0683718A (en) Fault detection circuit
SU951406A1 (en) Memory device with self-check capability
JPH01194035A (en) Address parity checking system for information processor
JP3021577B2 (en) RAM test circuit
JPH0528056A (en) Memory device
JPH0520215A (en) Information processing equipment
JPH02157952A (en) Storage device
JPS615500A (en) Memory integrated circuit
JPH04145563A (en) Data processing system
JPH0259946A (en) Memory device
JPH0673102B2 (en) Memory monitoring device
JPH01137798A (en) Time slot changing device
JPH038040A (en) 1-bit error information storage device
JPH02150941A (en) Parity error detection method
JPH08221282A (en) Parity generation / check circuit