JPH04321147A - Storage - Google Patents

Storage

Info

Publication number
JPH04321147A
JPH04321147A JP3090405A JP9040591A JPH04321147A JP H04321147 A JPH04321147 A JP H04321147A JP 3090405 A JP3090405 A JP 3090405A JP 9040591 A JP9040591 A JP 9040591A JP H04321147 A JPH04321147 A JP H04321147A
Authority
JP
Japan
Prior art keywords
parity
data
circuit
memory
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.)
Withdrawn
Application number
JP3090405A
Other languages
Japanese (ja)
Inventor
Tatsuo Samada
佐間田 達雄
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP3090405A priority Critical patent/JPH04321147A/en
Publication of JPH04321147A publication Critical patent/JPH04321147A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reduce the limitation for arrangement of elements on a printed board and to improve the data processing speed by setting a parity circuit into a one-chip storage to perform such operations as the parity generation, the parity check, etc. CONSTITUTION:A main memory 1 serves as a data storage part which stores the data of one word length inputted through the I/O ports 10-17 in each memory cell for each bit. A parity circuit 5 includes a parity bit generating circuit and a parity check circuit. Then a parity memory 6 serves as a parity bit storage part which stores the parity bits produced by the circuit 5. These memory 1, circuit 5 and memory 6 are contained in a single chip. Therefore the data are not exchanged with an external circuit before a parity bit is produced from the input data and the parity check is carried out. Thus the data processing speed is increased. In addition, the reliability of the circuits can be improved owing to the reduction of wiring jobs carried out on a printed board.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】[発明の目的][Object of the invention]

【0002】0002

【産業上の利用分野】本発明はIC、LSI等で構成さ
れる記憶装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device composed of an IC, an LSI, or the like.

【0003】0003

【従来の技術】従来、コンピュータに用いられる記憶装
置は、メモリセルを中心にアドレスレコーダ、バッファ
アンプおよびタイミングコントローラなどの付帯回路を
ワンチップの中に組み込んで構成される。
2. Description of the Related Art Conventionally, a memory device used in a computer is constructed by incorporating a memory cell and ancillary circuits such as an address recorder, a buffer amplifier, and a timing controller into a single chip.

【0004】ところで、こうした記憶装置は記憶容量の
増大にともない記憶したデータの信頼性を高めるため、
データを記憶装置から読み出す際、別途設けたデータチ
ェック用の回路素子によりチェックを行ってデータを出
力する方法がとられる。一般にデータをチェックする方
法としては、パリティチェックが用いられている。パリ
ティチェックとは記憶するデータを基にパリティビット
を生成しデータ全体のビット数を奇数または偶数に揃え
保持し、データを読み出すときに、その奇偶性を調べる
ことで記憶したデータの正誤をチェックする方法である
By the way, as the storage capacity of such storage devices increases, in order to increase the reliability of stored data,
When reading data from a storage device, a method is used in which data is checked using a separately provided data checking circuit element and the data is output. Parity checking is generally used as a method for checking data. Parity check generates a parity bit based on the data to be stored, aligns and maintains the overall number of bits of the data as an odd or even number, and checks the correctness of the stored data by checking the parity when reading the data. It's a method.

【0005】このパリティチェックを回路上で実行させ
るためには、記憶装置と別途設けたデータチェック用の
回路素子との間でデータ交換を繰り返し行う必要がある
In order to execute this parity check on a circuit, it is necessary to repeatedly exchange data between the storage device and a separately provided data check circuit element.

【0006】しかしながら、このようにデータチェック
用の回路素子を記憶装置の外部に設けることは、プリン
ト基板上でデータ交換のための配線を増大することとな
り回路を冗長する。その結果、スペース的な制約を強い
ることになり、データ処理速度の面からみても好ましい
ことではない。
However, providing the circuit element for data checking outside the storage device increases the number of wiring lines for data exchange on the printed circuit board, making the circuit redundant. As a result, space constraints are imposed, which is not desirable from the viewpoint of data processing speed.

【0007】[0007]

【発明が解決しようとする課題】本発明はこのような課
題を解決するためのもので、プリント基板上での素子配
置の制約の軽減、およびデータ処理速度の向上に寄与す
ることのできる記憶装置の提供を目的とする。
SUMMARY OF THE INVENTION The present invention is intended to solve these problems, and provides a storage device that can contribute to alleviating restrictions on element arrangement on a printed circuit board and improving data processing speed. The purpose is to provide.

【0008】[発明の構成][Configuration of the invention]

【0009】[0009]

【課題を解決するための手段】本発明の記憶装置は、入
力されたデータを記憶するデータ記憶部と、前記データ
記憶部に記憶されたデータに基づいてパリティビットを
生成するパリティビット生成回路と、前記パリティビッ
ト生成回路により生成された前記パリティビットを記憶
するパリティビット記憶部と、外部からの指令に基づき
、前記データ記憶部および前記パリティビット記憶部か
ら、前記データとこのデータに対応するパリティビット
とを取出し、パリティチェックを行うパリティチェック
回路とを同一チップに具備する。
[Means for Solving the Problems] A storage device of the present invention includes a data storage section that stores input data, and a parity bit generation circuit that generates a parity bit based on the data stored in the data storage section. , a parity bit storage unit that stores the parity bits generated by the parity bit generation circuit, and a parity bit storage unit that stores the data and the parity bit corresponding to the data from the data storage unit and the parity bit storage unit based on an external command. The same chip includes a parity check circuit that extracts the bits and performs a parity check.

【0010】0010

【作用】本発明に係る記憶装置は、入力されたデータを
記憶するデータ記憶部、パリティビット生成回路、パリ
ティビット記憶部およびパリティチェック回路を同一チ
ップですべて構成する。
[Operation] The storage device according to the present invention includes a data storage section for storing input data, a parity bit generation circuit, a parity bit storage section, and a parity check circuit all on the same chip.

【0011】したがって、本発明の記憶装置によれば、
入力されたデータからパリティビットを生成し、パリテ
ィチェックを行うまでに外付回路とのデータ交換作業が
なくデータ処理が迅速に行える。またプリント基板上で
の配線が少なく済むため回路の信頼性(MTBF; M
ean Time Between Failure 
)も上がる。
Therefore, according to the storage device of the present invention,
There is no need to exchange data with an external circuit until a parity bit is generated from input data and a parity check is performed, so data processing can be performed quickly. In addition, circuit reliability (MTBF; M
ean Time Between Failure
) also rises.

【0012】0012

【実施例】以下、本発明の実施例を図面を参照して説明
する。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings.

【0013】図1は本発明に係る一実施例の記憶装置の
構成を説明するためのブロック図である。
FIG. 1 is a block diagram for explaining the configuration of a storage device according to an embodiment of the present invention.

【0014】同図において、1はI/Oポート10〜1
7より入力された一語長のデータをビット単位で個々の
メモリセルに記憶するデータ記憶部としてのメインメモ
リである。2はアドレス信号ポート18、19を通じて
入力されたアドレス信号を解読してアドレス選択信号を
メインメモリ1に送ることで、メインメモリ1上のメモ
リセルを選択するアドレスデコーダである。3はデータ
の入出力を制御するデータコントローラである。4は外
部のCPU(図示せず)から入力された各種制御信号に
基づき、記憶装置全体の動作タイミングをコントロール
するタイミングコントローラである。5はパリティビッ
トを生成するパリティビット生成回路およびパリティチ
ェック回路を含むパリティ回路である。6はパリティ回
路5により生成されたパリティビットを記憶するパリテ
ィビット記憶部としてのパリティメモリである。7a〜
7dはそれぞれデータの電圧レベルを変換するバッファ
アンプである。8はタイミングコントローラ4からのセ
レクト信号と、パリティ回路5からのエラー信号とでA
NDをとりパリティエラー信号を出力するANDゲート
である。
In the figure, 1 indicates I/O ports 10 to 1.
This is a main memory serving as a data storage unit that stores one word length data input from 7 in bit units in individual memory cells. Reference numeral 2 denotes an address decoder which selects a memory cell on the main memory 1 by decoding the address signal inputted through the address signal ports 18 and 19 and sending an address selection signal to the main memory 1. 3 is a data controller that controls data input/output. A timing controller 4 controls the operation timing of the entire storage device based on various control signals input from an external CPU (not shown). 5 is a parity circuit including a parity bit generation circuit that generates parity bits and a parity check circuit. A parity memory 6 serves as a parity bit storage section that stores parity bits generated by the parity circuit 5. 7a~
7d is a buffer amplifier that converts the voltage level of data. 8 is the select signal from the timing controller 4 and the error signal from the parity circuit 5.
This is an AND gate that takes an ND and outputs a parity error signal.

【0015】なお、20〜25はそれぞれ外部CPUか
らのチップ選択信号が入力されるタイミングコントロー
ラ4のチップ選択ポート、26は外部CPUから書き込
みイネーブル信号が入力されるタイミングコントローラ
4の書き込みイネーブルポート、27〜31はそれぞれ
外部CPUからの出力イネーブル信号が入力されるタイ
ミングコントローラ4の出力イネーブルポート、そして
32はパリティエラー信号を出力するパリティエラー信
号ポートである。
Note that 20 to 25 are chip selection ports of the timing controller 4 to which a chip selection signal from an external CPU is input, 26 is a write enable port of the timing controller 4 to which a write enable signal is input from the external CPU, and 27 31 are output enable ports of the timing controller 4 to which output enable signals from an external CPU are input, and 32 is a parity error signal port that outputs a parity error signal.

【0016】次に本実施例の記憶装置のデータ書き込み
/読み出し動作を説明する。
Next, data write/read operations of the storage device of this embodiment will be explained.

【0017】まず、CPU(図示せず)からチップ選択
信号と書き込みイネーブル信号がタイミングコントロー
ラ4のチップ選択ポート(20〜25のいずれか)と書
き込みイネーブルポート26とに入力されると、タイミ
ングコントローラ4はタイミング制御信号をデータコン
トローラ3およびパリティ回路5へ送出する。一方、こ
れと同時にCPUからのアドレス信号がアドレスデコー
ダ2に入力される。すると、アドレスデコーダ2は入力
されたアドレス信号を解読しメインメモリ1およびパリ
ティメモリ6に対するアドレス選択信号を生成し、これ
らをメインメモリ1およびパリティメモリ6に送出する
。これによりメインメモリ1上においてデータを書き込
むべきメモリセル群が選択されるとともにパリティメモ
リ6上の1ビットのセルも選択される。この後、I/O
ポート10〜17を通じて本記憶装置にデータが入力さ
れ、バッファアンプ7a、7bによって電圧レベルが変
換され、データはデータコントローラによりメインメモ
リ1上の各メモリセルに書き込まれる。一方、パリティ
回路5では、タイミングコントローラ4の制御でパリテ
ィビット生成回路が起動状態にあり、このパリティビッ
ト生成回路はデータコントローラ3から8ビットのデー
タを入力すると、これに基づいてパリティビットの生成
を実行する。
First, when a chip selection signal and a write enable signal are input from the CPU (not shown) to the chip selection port (any one of 20 to 25) and write enable port 26 of the timing controller 4, the timing controller 4 sends a timing control signal to the data controller 3 and parity circuit 5. Meanwhile, at the same time, an address signal from the CPU is input to the address decoder 2. Then, address decoder 2 decodes the input address signal, generates address selection signals for main memory 1 and parity memory 6, and sends these to main memory 1 and parity memory 6. As a result, a group of memory cells in which data is to be written in main memory 1 is selected, and a 1-bit cell in parity memory 6 is also selected. After this, I/O
Data is input to this storage device through ports 10 to 17, its voltage level is converted by buffer amplifiers 7a and 7b, and the data is written to each memory cell on main memory 1 by a data controller. On the other hand, in the parity circuit 5, the parity bit generation circuit is activated under the control of the timing controller 4, and when the parity bit generation circuit receives 8-bit data from the data controller 3, it generates a parity bit based on this. Execute.

【0018】ここでパリティビットの生成について説明
する。
[0018] Generation of parity bits will now be explained.

【0019】パリティビットの生成はそのパリティチェ
ック方式により、“0”または“1”のビットの付加が
変わる。パリティチェック方式には、偶数パリティチェ
ック、奇数パリティチェックの2種類あり、本発明では
一実施例として偶数パリティチェック方式をとっている
。したがって、送られてくる8ビットのデータとパリテ
ィビットの総和が偶数個となるように“0”または“1
”のパリティビットを生成する。つまりすべてのデータ
の法2の加算、すなわち、排他的論理和を求めその値を
パリティビットとする。例えば付加するパリティビット
を除いた8ビットのデータのうち“1”のデータ数が偶
数個であれば“0”のパリティビットを、奇数個であれ
ば“1”のパリティビットを8ビットのデータのあとに
付加して“1”のビットの総和が偶数個となるようにす
る。こうして生成されたパリティビットは書き込み制御
信号の終了で前記パリティメモリセルに書き込まれる。
When generating parity bits, addition of "0" or "1" bits changes depending on the parity check method. There are two types of parity check methods: even parity check and odd parity check, and the present invention uses the even parity check method as an embodiment. Therefore, the total sum of the 8-bit data and parity bits sent is an even number.
”. In other words, add all the data modulo 2, that is, perform the exclusive OR, and use the resulting value as the parity bit. For example, out of the 8 bits of data excluding the parity bit to be added, ” If the number of data is an even number, a “0” parity bit is added, and if it is an odd number, a “1” parity bit is added after the 8-bit data, so that the total number of “1” bits is an even number. The parity bit thus generated is written into the parity memory cell at the end of the write control signal.

【0020】続いて読み出しの場合について説明する。Next, the case of reading will be explained.

【0021】CPUからチップ選択信号と出力イネーブ
ル信号がタイミングコントローラ4のチップ選択ポート
(20〜25のいずれか)と出力イネーブルポート(2
7〜31のいずれか)とに入力されと、タイミングコン
トローラ4は、タイミング制御信号をデータコントロー
ラ3およびパリティ回路5へ送出する。一方、これと同
時にCPUからアドレス信号がアドレスデコーダ2に入
力される。すると、アドレスデコーダ2は入力されたア
ドレス信号を解読しメインメモリ1およびパリティメモ
リ6に対するアドレス選択信号を生成し、これらをメイ
ンメモリ1およびパリティメモリ6に送出する。これに
よりデータを読み出すべきメモリセル群が選択されると
ともにパリティメモリ6上の1ビットのセルも選択され
る。そしてデータコントローラにより各メモリセルに保
持されていたデータとパリティビットが読み出されパリ
ティ回路5へ送出される。パリティ回路5では、タイミ
ングコントローラ4の制御でパリティチェック回路が起
動状態となっているためパリティチェックを実行する。
The chip selection signal and output enable signal from the CPU are sent to the chip selection port (any one of 20 to 25) and output enable port (20 to 25) of the timing controller 4.
7 to 31), the timing controller 4 sends the timing control signal to the data controller 3 and the parity circuit 5. Meanwhile, at the same time, an address signal is input from the CPU to the address decoder 2. Then, address decoder 2 decodes the input address signal, generates address selection signals for main memory 1 and parity memory 6, and sends these to main memory 1 and parity memory 6. As a result, a memory cell group from which data is to be read is selected, and a 1-bit cell on the parity memory 6 is also selected. Then, the data and parity bit held in each memory cell are read out by the data controller and sent to the parity circuit 5. In the parity circuit 5, a parity check is executed because the parity check circuit is activated under the control of the timing controller 4.

【0022】ここでパリティチェックについて説明する
[0022] Parity check will now be explained.

【0023】パリティチェックはパリティビットを含め
て一語長のデータを構成するすべてのビットの総和を求
めその奇偶性を調べることで実行される。すなわち、パ
リティビットの生成と同様、すべてのビットの排他的論
理和の値を計算する。さらにメインメモリ1から読み出
されたデータの値と計算されたパリティビットの値とを
比較(排他的論理和)することでデータの正誤をチェッ
クする。例えばメモリから読み出されたデータと計算さ
れたパリティビットの値が同じならば“0”となり、違
えば“1”となる。したがって、パリティのチェック結
果としては、格納されたデータにエラーがなければ“0
”が、エラーがあれば“1”がエラー信号として出力さ
れる。ANDゲート8では、このエラー信号とセレクト
信号とでANDをとりパリティエラー信号として出力す
る。つまりパリティチェックでエラーがあり、かつチッ
プ選択ポート(20〜25のいずれか)と出力イネーブ
ルポート(27〜31のいずれか)にCPUからの制御
信号が入力されている場合にパリティエラー信号が出力
されることとなる。データにエラーがなければ、パリテ
ィエラー信号として“0”が出力される。この信号でメ
インメモリ1よりデータが読み出されバッファアンプ7
c、7dによって電圧レベルが変換されてI/Oポート
10〜17からデータが出力される。
[0023] Parity check is executed by calculating the sum of all bits constituting one word length data including the parity bit and checking the parity of the sum. That is, similar to the generation of parity bits, the exclusive OR value of all bits is calculated. Furthermore, the correctness of the data is checked by comparing (exclusive OR) the value of the data read from the main memory 1 and the value of the calculated parity bit. For example, if the data read from the memory and the calculated parity bit value are the same, it will be "0", and if they are different, it will be "1". Therefore, the parity check result is “0” if there is no error in the stored data.
”, if there is an error, “1” is output as an error signal.The AND gate 8 ANDs this error signal and the select signal and outputs it as a parity error signal.In other words, if there is an error in the parity check, and A parity error signal will be output when a control signal from the CPU is input to the chip selection port (any one of 20 to 25) and the output enable port (any one of 27 to 31). If there is no error, "0" is output as a parity error signal. With this signal, data is read from the main memory 1 and sent to the buffer amplifier 7.
The voltage level is converted by the I/O ports 10 to 17, and the data is output from the I/O ports 10 to 17.

【0024】なお、パッケージ状態では、パリティエラ
ー信号ポート32はパリティエラー信号をチップ選択お
よび出力イネーブルでゲートしているだけでスリーステ
ート制御をしていない。このため未使用時は未接続ピン
として扱える。またパッケージのピンが余っていれば、
この余りピンを使ってパリティエラー信号の出力制御も
可能である。例えばパリティ回路5を使用しない場合、
不要のパリティエラー信号ポート32をこの余りピンで
“H”または“L”の一方に固定するとノイズの発生を
押さえることができる。
In the packaged state, the parity error signal port 32 only gates the parity error signal by chip selection and output enable, but does not perform three-state control. Therefore, when not in use, it can be treated as an unconnected pin. Also, if there are any remaining pins on the package,
This surplus pin can also be used to control the output of the parity error signal. For example, if the parity circuit 5 is not used,
By fixing the unnecessary parity error signal port 32 to either "H" or "L" with this surplus pin, the generation of noise can be suppressed.

【0025】かくして本実施例によれば、データの入力
からパリティ生成、パリティチェックおよびパリティエ
ラー信号の出力まで同一チップ内で実行できる。この結
果、プリント基板上で素子配置の制約が軽減でき、デー
タの処理が迅速に行えるようになった。
Thus, according to this embodiment, everything from inputting data to generating parity, checking parity, and outputting a parity error signal can be executed within the same chip. As a result, restrictions on element placement on the printed circuit board can be reduced, and data processing can now be performed quickly.

【0026】[0026]

【発明の効果】以上、本発明の記憶装置によれば、パリ
ティの生成およびパリティチェックといった演算を行う
パリティ回路をワンチップの記憶装置内に組み込むこと
で、プリント基板上で素子配置の制約が軽減でき、デー
タ処理速度が向上した。
[Effects of the Invention] As described above, according to the memory device of the present invention, by incorporating a parity circuit that performs operations such as parity generation and parity check into a one-chip memory device, restrictions on element placement on a printed circuit board are reduced. , and data processing speed has improved.

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

【図1】本発明に係る一実施例の記憶装置の構成を説明
するためのブロック図。
FIG. 1 is a block diagram for explaining the configuration of a storage device according to an embodiment of the present invention.

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

1…メインメモリ、2…アドレスデコーダ、3…データ
コントローラ、4…タイミングコントローラ、5…パリ
ティ回路、6…パリティメモリ、8…ANDゲート。
1... Main memory, 2... Address decoder, 3... Data controller, 4... Timing controller, 5... Parity circuit, 6... Parity memory, 8... AND gate.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】入力されたデータを記憶するデータ記憶部
と、前記データ記憶部に記憶されたデータに基づいてパ
リティビットを生成するパリティビット生成回路と、前
記パリティビット生成回路により生成された前記パリテ
ィビットを記憶するパリティビット記憶部と、外部から
の指令に基づき、前記データ記憶部および前記パリティ
ビット記憶部から、前記データとこのデータに対応する
パリティビットとを取出し、パリティチェックを行うパ
リティチェック回路とを同一チップに具備することを特
徴とする記憶装置。
1. A data storage unit that stores input data, a parity bit generation circuit that generates a parity bit based on the data stored in the data storage unit, and a parity bit generation circuit that generates a parity bit based on the data stored in the data storage unit. A parity bit storage unit that stores parity bits; and a parity check that retrieves the data and parity bits corresponding to the data from the data storage unit and the parity bit storage unit based on an external command, and performs a parity check. 1. A storage device comprising a circuit and a circuit on the same chip.
JP3090405A 1991-04-22 1991-04-22 Storage Withdrawn JPH04321147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3090405A JPH04321147A (en) 1991-04-22 1991-04-22 Storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3090405A JPH04321147A (en) 1991-04-22 1991-04-22 Storage

Publications (1)

Publication Number Publication Date
JPH04321147A true JPH04321147A (en) 1992-11-11

Family

ID=13997677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3090405A Withdrawn JPH04321147A (en) 1991-04-22 1991-04-22 Storage

Country Status (1)

Country Link
JP (1) JPH04321147A (en)

Similar Documents

Publication Publication Date Title
US5961660A (en) Method and apparatus for optimizing ECC memory performance
JP4243245B2 (en) Transparent ECC memory system
US6279072B1 (en) Reconfigurable memory with selectable error correction storage
JPS62214599A (en) Semiconductor memory device
US6308297B1 (en) Method and apparatus for verifying memory addresses
JPH04321147A (en) Storage
JPS62242258A (en) Storage device
JPH0268642A (en) Memory error detecting system
TW407283B (en) Embedded memory device and its burn-in method
JPS60167051A (en) Storage device
JP2875435B2 (en) Memory module and computer using the same
JPS61199141A (en) Storage device
JPS59104800A (en) Parity check system of picture memory
KR100290545B1 (en) Register file array having a two-bit to four-bit encoder
JP2845804B2 (en) Data memory retention confirmation circuit
JPS61214040A (en) Parity circuit of memory
JPH10105475A (en) Parity memory device and parity memory circuit
CN116540925A (en) Memory with extended mode
JPS60116052A (en) Amending system of inferior data
JPS6321928B2 (en)
JP2006092634A (en) Semiconductor memory apparatus
JPS6093508A (en) Inputting and outputting method of process signal
JPS60151900A (en) Parity producing circuit
JPH04233052A (en) Duplex memory device
JPH0237447A (en) Memory integrated circuit

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980711