JP2936894B2 - Data storage circuit - Google Patents

Data storage circuit

Info

Publication number
JP2936894B2
JP2936894B2 JP4148181A JP14818192A JP2936894B2 JP 2936894 B2 JP2936894 B2 JP 2936894B2 JP 4148181 A JP4148181 A JP 4148181A JP 14818192 A JP14818192 A JP 14818192A JP 2936894 B2 JP2936894 B2 JP 2936894B2
Authority
JP
Japan
Prior art keywords
memory
signal
error correction
data
error
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.)
Expired - Fee Related
Application number
JP4148181A
Other languages
Japanese (ja)
Other versions
JPH05327522A (en
Inventor
明 浜谷
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP4148181A priority Critical patent/JP2936894B2/en
Publication of JPH05327522A publication Critical patent/JPH05327522A/en
Application granted granted Critical
Publication of JP2936894B2 publication Critical patent/JP2936894B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は誤り訂正符号を用いた誤
り訂正・検出機能を有するデータ記憶回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data storage circuit having an error correction / detection function using an error correction code.

【0002】[0002]

【従来の技術】従来の誤り訂正符号を用いた誤り訂正・
検出機能を有するデータ記憶回路の構成を図3に示す。
2. Description of the Related Art Error correction using a conventional error correction code
FIG. 3 shows a configuration of a data storage circuit having a detection function.

【0003】このデータ記憶回路は、誤り訂正符号制御
回路14,メモリ(データ部)15,メモリ(誤り訂正
符号部)16,メモリ選択信号(CS)入力端子17,
読み出し信号(RD)入力端子18および書き込み許可
信号(WE)入力端子19により構成される。なお、ア
ドレスおよびその他の制御信号は、説明上不要のため省
略してある。
The data storage circuit includes an error correction code control circuit 14, a memory (data section) 15, a memory (error correction code section) 16, a memory selection signal (CS) input terminal 17,
It comprises a read signal (RD) input terminal 18 and a write enable signal (WE) input terminal 19. Note that the address and other control signals are omitted because they are unnecessary for the description.

【0004】データを記憶する場合は、記憶するデータ
20が、誤り訂正符号制御回路14に入力されることに
よって、誤り訂正符号制御回路14内で、データに対応
した誤り訂正符号が生成され、データ21と誤り訂正符
号22が出力される。それらはそれぞれメモリ15,メ
モリ16に入力され、メモリ選択信号(CS)とメモリ
への書き込み許可信号(WE)とが同時にローレベルに
なることにより、データ21と誤り訂正符号22は各メ
モリ15,16に同時書き込まれる。なお、この例に示
すメモリ15,16は以下に示す信号入力条件で、デー
タの書き込み、および記憶されたデータの読み出しを行
うものとする。
When storing data, the data 20 to be stored is input to the error correction code control circuit 14 so that an error correction code corresponding to the data is generated in the error correction code control circuit 14. 21 and the error correction code 22 are output. These are input to the memory 15 and the memory 16 respectively, and the memory 21 and the error correction code 22 are stored in the respective memories 15 and 16 when the memory selection signal (CS) and the write enable signal (WE) to the memory are simultaneously set to the low level. 16 are written simultaneously. The memories 15 and 16 shown in this example perform writing of data and reading of stored data under the following signal input conditions.

【0005】データ書き込み条件 メモリ選択信号
(CS) :ローレベル 書き込み許可信号(WE):ローレベル 読み出し信号(RD) :ハイレベル データ読み出し条件 メモリ選択信号(CS) :ロ
ーレベル 書き込み許可信号(WE):ハイレベル 読み出し信号(RD) :ローレベル
Data write condition Memory select signal (CS): low level write enable signal (WE): low level read signal (RD): high level Data read condition Memory select signal (CS): low level write enable signal (WE) : High level Read signal (RD): Low level

【0006】データを読み出す場合は、各メモリ15,
16に対して同時にメモリ選択信号(CS)およびメモ
リの読み出し信号(RD)がローレベルになることによ
り、各メモリ15,16に記憶されていたデータ21と
誤り訂正符号22が、メモリ15,16から読み出され
誤り訂正符号制御回路14に入力される。そして誤り訂
正符号制御回路14内で、誤り訂正符号を用いた誤り訂
正が行われ、訂正されたデータ(誤りのない場合はその
ままのデータ)が誤り訂正符号制御回路14から出力さ
れる。
When reading data, each of the memories 15,
At the same time, the memory selection signal (CS) and the read signal (RD) of the memory become low level, so that the data 21 and the error correction code 22 stored in the memories 15 and 16 are changed to the memories 15 and 16. And input to the error correction code control circuit 14. Then, error correction using the error correction code is performed in the error correction code control circuit 14, and the corrected data (the data as it is when there is no error) is output from the error correction code control circuit 14.

【0007】つまり、この例のデータ記憶回路は、デー
タ書き込み時にデータに対応した誤り訂正符号を付加し
てデータと共に記憶し、データ読み出し時に記憶したデ
ータと誤り訂正符号により誤り訂正を行い、誤り訂正し
たデータを出力する機能を有する。
In other words, the data storage circuit of this example adds an error correction code corresponding to data at the time of writing data, stores the data together with the data, and performs error correction using the stored data and the error correction code at the time of reading data. It has a function to output the converted data.

【0008】[0008]

【発明が解決しようとする課題】前述のように、従来の
誤り訂正・検出機能を有するデータ記憶回路では、デー
タを記憶する時に、データとそのデータに対応した誤り
訂正符号が常に同時にメモリに書き込まれるので、メモ
リに記憶されているデータに誤りを発生させて、誤り訂
正・検出機能動作を確認することが出来ないといった問
題点があった。
As described above, in a conventional data storage circuit having an error correction / detection function, when data is stored, the data and the error correction code corresponding to the data are always written to the memory at the same time. Therefore, there is a problem that an error is generated in the data stored in the memory, and the operation of the error correction / detection function cannot be confirmed.

【0009】また、前述の例における誤り訂正符号制御
回路の一部に、誤りを設定する機構を設ければ、誤りを
疑似的に発生させて、誤り訂正・検出機能動作を確認す
ることも可能となるが、多くの誤り発生パターンに対応
出来るようにすると、ハードウェアが非常に複雑になる
といった欠点があった。
If a mechanism for setting an error is provided in a part of the error correction code control circuit in the above-described example, an error can be generated in a pseudo manner and the operation of the error correction / detection function can be confirmed. However, if many error occurrence patterns can be handled, there is a disadvantage that the hardware becomes very complicated.

【0010】本発明はこのような事情に鑑みてなされた
もので、その目的は、誤り訂正,検出動作を確認する際
に必要となる疑似的な誤りの発生を簡易なハードウェア
の追加で実現することにある。
The present invention has been made in view of such circumstances, and an object of the present invention is to realize the occurrence of a pseudo error required for confirming an error correction and detection operation by adding simple hardware. Is to do.

【0011】[0011]

【課題を解決するための手段】本発明は上記の目的を達
成するために、誤り訂正符号を用いた誤り訂正・検出機
能を有するデータ記憶回路において、誤り訂正符号の生
成および誤り訂正符号による誤り訂正・検出を行う誤り
訂正符号制御回路と、該誤り訂正符号制御回路から出力
されたデータを記憶する第1のメモリと、前記誤り訂正
符号制御回路から出力された誤り訂正符号を記憶する第
2のメモリと、外部から与えられる誤り設定制御信号,
読み出し/書き込み信号および前記第1のメモリに供給
されているメモリ選択信号を入力し、前記読み出し/書
き込み信号が読み出し状態を示している場合には前記誤
り設定制御信号の状態にかかわらず前記第1のメモリに
供給されているメモリ選択信号を前記第2のメモリのメ
モリ選択信号として前記第2のメモリへも供給し、前記
読み出し/書き込み信号が書き込み状態を示している場
合には前記誤り設定制御信号が誤り設定禁止状態を示す
場合に限って前記第1のメモリに供給されているメモリ
選択信号を前記第2のメモリのメモリ選択信号として前
記第2のメモリへも供給するゲート回路とを備えてい
る。
According to the present invention, there is provided a data storage circuit having an error correction / detection function using an error correction code. An error correction code control circuit for performing correction / detection; a first memory for storing data output from the error correction code control circuit; and a second memory for storing an error correction code output from the error correction code control circuit. Memory and an externally provided error setting control signal,
Supply read / write signal and the first memory
Input the selected memory selection signal, and
If the write signal indicates the read state,
Regardless of the state of the setting control signal.
The supplied memory selection signal is stored in the memory of the second memory.
The memory is also supplied to the second memory as a memory selection signal,
If the read / write signal indicates a write state,
The error setting control signal indicates an error setting prohibited state.
A memory supplied to the first memory only in a case
The selection signal is used as a memory selection signal for the second memory.
And a gate circuit that also supplies the second memory .

【0012】[0012]

【作用】本発明のデータ記憶回路においては、ゲート回
路が、外部から与えられる誤り設定制御信号,読み出し
/書き込み信号および第1のメモリに供給されているメ
モリ選択信号を入力し、読み出し/書き込み信号が書き
込み状態を示している場合には誤り設定制御信号が誤り
設定禁止状態を示す場合に限って第1のメモリに供給さ
れているメモリ選択信号を第2のメモリのメモリ選択信
号として第2のメモリへも供給することで、誤り訂正符
号制御回路から出力されたデータおよびその誤り訂正符
号の第1のメモリおよび第2のメモリへの書き込みを許
す。他方、読み出し/書き込み信号が書き込み状態を示
している場合であっても、誤り設定制御信号が誤り設定
禁止状態でない、つまり誤り設定許可状態の場合は、メ
モリ選択信号を第2のメモリへ供給しないので、誤り訂
正符号制御回路の出力のうちデータだけが第1のメモリ
に書き込まれ、第2のメモリの内容は元のまま変わらな
い。よって、元のデータと相違するデータを第1のメモ
リのみに書き込めば、疑似的な誤りを発生させることが
できる。また、ゲート回路は、読み出し/書き込み信号
が読み出し状態を示している場合には誤り設定制御信号
の状態にかかわらず第1のメモリに供給されているメモ
リ選択信号を第2のメモリのメモリ選択信号として第2
のメモリへも供給するので、誤り設定制御信号を誤り設
定許可状態にしたままでも、誤りを設定したアドレスの
データを読み出すことができる。
In the data storage circuit of the present invention, the gate circuit is provided with an externally applied error setting control signal, readout signal,
/ Write signal and the memory supplied to the first memory.
Input the memory selection signal and read / write signal
Error setting control signal is incorrect if the
It is supplied to the first memory only when it indicates the setting prohibited state.
The selected memory selection signal of the second memory.
By supplying the data output from the error correction code control circuit and the error correction code to the first memory and the second memory by supplying the data to the second memory as a signal. On the other hand, the read / write signal indicates the write state.
Error setting control signal is
If it is not in the prohibited state, that is, if the error setting is permitted,
Since the memory selection signal is not supplied to the second memory, only the data of the output of the error correction code control circuit is written to the first memory, and the contents of the second memory remain unchanged. Therefore, if data different from the original data is written only in the first memory, a pseudo error can be generated. In addition, the gate circuit has a read / write signal
Error setting control signal when
Memo supplied to the first memory regardless of the state of
The second reselection signal is used as a memory selection signal of the second memory.
Error setting control signal.
Even if the address is set incorrectly,
Data can be read.

【0013】[0013]

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

【0014】図1は、本発明の一実施例の構成図であ
る。この実施例のデータ記憶回路は、誤り訂正符号制御
回路1,メモリ(データ部)2,メモリ(誤り訂正符号
部)3,NOR回路4およびOR回路5から構成される
ゲート回路40,誤り設定制御信号(ERR SET)
入力端子6,読み出し/書き込み信号(R/W)入力端
子7,メモリ選択信号(CS)入力端子8,読み出し信
号(RD)入力端子9,書き込み許可信号(WE)入力
端子10により構成される。
FIG. 1 is a block diagram of an embodiment of the present invention. The data storage circuit of this embodiment includes an error correction code control circuit 1, a memory (data section) 2, a memory (error correction code section) 3, a gate circuit 40 composed of a NOR circuit 4 and an OR circuit 5, an error setting control circuit. Signal (ERR SET)
The input terminal 6 includes a read / write signal (R / W) input terminal 7, a memory selection signal (CS) input terminal 8, a read signal (RD) input terminal 9, and a write enable signal (WE) input terminal 10.

【0015】また、本データ記憶回路に対する各入力信
号は以下に示す意味を持つものとする。
Each input signal to the data storage circuit has the following meaning.

【0016】・誤り設定制御信号(ERR SET) ハイレベル:誤り設定禁止状態 ローレベル:誤り
設定許可状態 ・読み出し/書き込み信号(R/W) ハイレベル:読み出し動作 ローレベル:書き
込み動作 ・メモリ選択信号(CS) ハイレベル:メモリ非選択 ローレベル:メモ
リ選択 ・読み出し信号(RD) ハイレベル:読み出し禁止 ローレベル:読み
出し許可 ・書き込み信号(WE) ハイレベル:書き込み禁止 ローレベル:書き
込み許可
Error setting control signal (ERR SET) High level: Error setting disabled state Low level: Error setting enabled state Read / write signal (R / W) High level: Read operation Low level: Write operation Memory selection signal (CS) High level: Memory not selected Low level: Memory selection ・ Read signal (RD) High level: Read prohibited Low level: Read enabled ・ Write signal (WE) High level: Write prohibited Low level: Write enabled

【0017】また、メモリ2,メモリ3は、データの書
き込み/読み出しの制御用として、メモリ選択信号(C
S),書き込み許可信号(WE),読み出し信号(R
D)の入力端子を有し、以下に示す信号入力条件で、デ
ータの書き込みおよび記憶されたデータの読み出しを行
うものとする。
The memories 2 and 3 are provided with a memory selection signal (C) for controlling data writing / reading.
S), write enable signal (WE), read signal (R
D), and write data and read stored data under the following signal input conditions.

【0018】データ書き込み条件 メモリ選択信号
(CS) :ローレベル 書き込み許可信号(WE):ローレベル 読み出し信号(RD) :ハイレベル データ読み出し条件 メモリ選択信号(CS) :
ローレベル 書き込み許可信号(WE):ハイレベル 読み出し信号(RD) :ローレベル
Data write condition Memory select signal (CS): Low level Write enable signal (WE): Low level Read signal (RD): High level Data read condition Memory select signal (CS):
Low level Write enable signal (WE): High level Read signal (RD): Low level

【0019】以上の各信号の入力端子と各回路との接続
を以下に述べる。誤り設定制御信号(ERR SET)
入力端子6と、読み出し/書き込み(R/W)信号入力
端子7はゲート回路40のNOR回路4の入力に接続さ
れ、NOR回路4の出力はOR回路5の入力の片方に入
力される。
The connection between the input terminal of each signal and each circuit will be described below. Error setting control signal (ERR SET)
The input terminal 6 and the read / write (R / W) signal input terminal 7 are connected to the input of the NOR circuit 4 of the gate circuit 40, and the output of the NOR circuit 4 is input to one of the inputs of the OR circuit 5.

【0020】また、メモリ選択信号(CS)入力端子8
は、OR回路5の残りの入力とメモリ2のメモリ選択信
号(CS)入力端子とに接続され、OR回路5の出力は
メモリ3のメモリ選択信号(CS)入力端子に接続され
る。更に、読み出し信号(RD)入力端子9は、両方の
メモリ2,3の読み出し信号(RD)入力端子に接続さ
れ、書き込み許可信号(WE)入力端子10は両方のメ
モリ2,3の書き込み許可信号(WE)入力端子に接続
される。
Further, a memory selection signal (CS) input terminal 8
Is connected to the remaining input of the OR circuit 5 and the memory selection signal (CS) input terminal of the memory 2, and the output of the OR circuit 5 is connected to the memory selection signal (CS) input terminal of the memory 3. Further, the read signal (RD) input terminal 9 is connected to the read signal (RD) input terminals of both memories 2 and 3, and the write enable signal (WE) input terminal 10 is connected to the write enable signal of both memories 2 and 3. (WE) Connected to input terminal.

【0021】なお、図1に示した構成図では、データと
メモリへの書き込み/読み出しに必要な一部の信号のみ
を示しており、その他の制御信号やアドレス信号や、誤
り訂正機能のための回路の詳細は、本発明を説明する上
で、特に必要が無いので省略してある。
In the configuration diagram shown in FIG. 1, only a part of signals necessary for writing / reading data and memory is shown, and other control signals, address signals, and signals for error correction function are provided. The details of the circuit are omitted because they are not particularly necessary for describing the present invention.

【0022】次に本実施例における動作について説明す
る。誤り設定制御信号(ERR SET)がハイレベル
の場合は、NOR回路4の出力が常にローレベルとなる
ので、CS信号入力端子8のメモリ選択信号(CS)が
ローレベルになると、OR回路5の出力はローレベルと
なる。つまり、CS信号入力端子8のメモリ選択信号
(CS)がローレベルのときに、メモリ2とメモリ3の
両方のメモリ選択信号(CS)入力端子に同時にローレ
ベル信号が入力される。この場合の動作は、従来の技術
の項の図3で示した例とまったく同じ動作となる。
Next, the operation of this embodiment will be described. When the error setting control signal (ERR SET) is at a high level, the output of the NOR circuit 4 is always at a low level. Therefore, when the memory selection signal (CS) at the CS signal input terminal 8 goes to a low level, the OR circuit 5 The output goes low. That is, when the memory selection signal (CS) at the CS signal input terminal 8 is at a low level, a low level signal is simultaneously input to both the memory selection signal (CS) input terminals of the memories 2 and 3. The operation in this case is exactly the same as the example shown in FIG.

【0023】即ち、データを記憶する場合は、記憶する
データ11が誤り訂正符号制御回路1に入力されること
によって、誤り訂正符号制御回路1内でデータに対応し
た誤り訂正符号が生成され、データ12と誤り訂正符号
13とが出力される。それらは、それぞれメモリ2,メ
モリ3に入力され、メモリ選択信号(CS)とメモリの
書き込み許可信号(WE)とが同時にローレベルとなる
ことにより、データ12と誤り訂正符号13は各メモリ
2,3に同時に書き込まれる。
That is, when storing data, the data 11 to be stored is input to the error correction code control circuit 1 so that an error correction code corresponding to the data is generated in the error correction code control circuit 1, 12 and the error correction code 13 are output. These are input to the memories 2 and 3, respectively, and when the memory selection signal (CS) and the write enable signal (WE) of the memory go low at the same time, the data 12 and the error correction code 13 are stored in each of the memories 2 and 3. 3 are written simultaneously.

【0024】また、データを読み出す場合は、各メモリ
2,3に対して同時にメモリ選択信号(CS)とメモリ
への読み出し信号(RD)がローレベルとなることによ
り、メモリ2,3に記憶されていたデータと誤り訂正符
号がメモリ2,3から読み出され、誤り訂正符号制御回
路1に入力される。そして、誤り訂正符号制御回路1内
で誤り訂正符号を用いた誤り訂正が行われ、訂正された
データ(誤りのない場合にはそのままのデータ)が誤り
訂正符号制御回路1から出力される。
When data is read out, the memory selection signal (CS) and the readout signal (RD) to the memories are simultaneously set to low level for each of the memories 2 and 3, so that the data is stored in the memories 2 and 3. The data and the error correction code are read from the memories 2 and 3 and input to the error correction code control circuit 1. Then, error correction using the error correction code is performed in the error correction code control circuit 1, and the corrected data (data as it is when there is no error) is output from the error correction code control circuit 1.

【0025】次に誤り設定制御信号(ERR SET)
がローレベルの場合の動作について説明する。誤り設定
制御信号(ERR SET)がローレベルの場合は、誤
り設定許可状態である。
Next, an error setting control signal (ERR SET)
The operation when is low level will be described. When the error setting control signal (ERR SET) is at a low level, the error setting is permitted.

【0026】誤り設定制御信号(ERR SET)がロ
ーレベルの状態において、データを記憶するために読み
出し/書き込み信号(R/W)をローレベルとすると、
NOR回路4の出力はハイレベルとなるので、OR回路
5の出力は常にハイレベルとなる。即ち、メモリ選択信
号(CS)入力端子8への入力信号がローレベルでも、
メモリ3のメモリ選択信号(CS)入力端子の入力はハ
イレベルとなり、メモリ2のメモリ選択信号(CS)入
力端子の入力のみがローレベルとなる。つまり、誤り設
定制御信号(ERR SET)信号がローレベルの状態
でデータを記憶すると、メモリ2にのみデータが書き込
まれ、メモリ3に記憶されている内容は書き換わらな
い。従って、誤り設定制御信号(ERR SET)がロ
ーレベルの状態で、誤らせたデータを書き込むことによ
り、メモリ内のデータに自由に疑似誤りを発生させるこ
とが出来る。
When the read / write signal (R / W) is set to a low level in order to store data while the error setting control signal (ERR SET) is at a low level,
Since the output of the NOR circuit 4 is at a high level, the output of the OR circuit 5 is always at a high level. That is, even if the input signal to the memory selection signal (CS) input terminal 8 is low level,
The input of the memory selection signal (CS) input terminal of the memory 3 becomes high level, and only the input of the memory selection signal (CS) input terminal of the memory 2 becomes low level. That is, when data is stored in a state where the error setting control signal (ERR SET) signal is at a low level, the data is written only in the memory 2 and the content stored in the memory 3 is not rewritten. Therefore, by writing the erroneous data while the error setting control signal (ERR SET) is at the low level, a pseudo error can be freely generated in the data in the memory.

【0027】なお、データを読み出す場合は、読み出し
/書き込み信号(R/W)がハイレベルとなるために、
NOR回路4の出力がローレベルとなるのでメモリ選択
信号(CS)入力端子8への入力信号がローレベルのと
き、メモリ2とメモリ3のメモリ選択信号(CS)入力
端子が両方ともローレベルとなり、前述したデータ読み
出し時の動作と同じになる。
When reading data, since the read / write signal (R / W) goes high,
Since the output of the NOR circuit 4 is at a low level, when the input signal to the memory selection signal (CS) input terminal 8 is at a low level, both the memory selection signal (CS) input terminals of the memories 2 and 3 are at a low level. The operation is the same as the operation at the time of data reading described above.

【0028】以上、説明した機能により、メモリ内に記
憶されているデータに疑似誤りを発生させて、誤り訂正
機能の確認を行うことができる。
With the function described above, a pseudo error can be generated in the data stored in the memory, and the error correction function can be confirmed.

【0029】図2は、誤り訂正符号制御回路1の誤り訂
正機能を確認する手順の一例を示す流れ図である。ま
ず、メモリ2から誤りを設定するアドレスのデータを読
み出し(S1)、次に誤り設定制御信号(ERR SE
T)入力をローレベルにし、誤り設定可能な状態にする
(S2)。次に読み出したデータに誤りを設定して同一
アドレスに書き込む(S3)。このとき、メモリ3には
誤り訂正符号は書き込まれないので、前の状態を保持し
ている。次に、誤り設定制御信号(ERR SET)入
力をハイレベルにし、誤り設定を禁止する(S4)。次
に、誤りを設定したアドレスのデータを読み出し(S
5)、最初のデータと比較し、誤り訂正・検出動作の確
認を行う(S6)。
FIG. 2 is a flowchart showing an example of a procedure for confirming the error correction function of the error correction code control circuit 1. First, data of an address for setting an error is read from the memory 2 (S1), and then an error setting control signal (ERR SE
T) The input is set to a low level, and an error can be set (S2). Next, an error is set in the read data and written to the same address (S3). At this time, since the error correction code is not written in the memory 3, the previous state is maintained. Next, an error setting control signal (ERR SET) input is set to a high level, and error setting is prohibited (S4). Next, the data at the address where the error is set is read (S
5) Compare with the first data and confirm the error correction / detection operation (S6).

【0030】これで、1つの誤り発生パターンについて
の誤り訂正・検出動作の確認が行えたことになり、他の
誤り発生パターンについても同様に行う。
Thus, the error correction / detection operation for one error occurrence pattern has been confirmed, and the same applies to the other error occurrence patterns.

【0031】[0031]

【発明の効果】以上説明したように本発明は、誤り訂正
機能を有するデータ記憶回路において、誤り訂正符号を
記憶する第2のメモリへの書き込み条件を、データを記
憶する第1のメモリへのデータ書き込み条件と外部から
の入力信号による条件の両方がそろった時のみ成立させ
るゲート回路を設けるという簡単な構成で、第2のメモ
リの内容を換えることなく、第1のメモリ中の誤り訂正
符号に対応したデータの内容だけを書き換えることを可
能とした。
As described above, according to the present invention, in a data storage circuit having an error correction function, a condition for writing to a second memory for storing an error correction code is determined by setting a condition for writing to a first memory for storing data. A simple configuration in which a gate circuit that is established only when both the data write condition and the condition based on an external input signal are satisfied is provided, and the error correction code in the first memory can be stored in the first memory without changing the contents of the second memory. It is possible to rewrite only the contents of data corresponding to.

【0032】このため、メモリ上に記憶されたデータに
関して、可能性のある誤りを全て疑似的に設定出来るよ
うになり、誤り検出・訂正機能の実際の動作を確認する
ことが出来るため、回路のテスタビリティが向上する。
For this reason, all possible errors can be set in a pseudo manner for the data stored in the memory, and the actual operation of the error detection / correction function can be confirmed. Testability is improved.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】図1の実施例における誤り訂正機能確認方法の
手順を示す流れ図である。
FIG. 2 is a flowchart showing a procedure of an error correction function confirmation method in the embodiment of FIG. 1;

【図3】従来のデータ記憶回路の構成図である。FIG. 3 is a configuration diagram of a conventional data storage circuit.

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

1…誤り訂正符号制御回路 2…メモリ(データ部) 3…メモリ(誤り訂正符号部) 4…NOR回路 5…OR回路 6…ERR SET信号入力端子 7…R/W信号入力端子 8…CS信号入力端子 9…RD信号入力端子 10…WE信号入力端子 11…データ 12…データ 13…誤り訂正符号 14…誤り訂正符号制御回路 15…メモリ(データ部) 16…メモリ(誤り訂正符号部) 17…CS信号入力端子 18…RD信号入力端子 19…WE信号入力端子 20…データ 21…データ 22…誤り訂正符号 40…ゲート回路 DESCRIPTION OF SYMBOLS 1 ... Error correction code control circuit 2 ... Memory (data part) 3 ... Memory (error correction code part) 4 ... NOR circuit 5 ... OR circuit 6 ... ERR set signal input terminal 7 ... R / W signal input terminal 8 ... CS signal Input terminal 9 RD signal input terminal 10 WE signal input terminal 11 Data 12 Data 13 Error correction code 14 Error correction code control circuit 15 Memory (data part) 16 Memory (error correction code part) 17 CS signal input terminal 18 RD signal input terminal 19 WE signal input terminal 20 data 21 data 22 error correction code 40 gate circuit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 誤り訂正符号を用いた誤り訂正・検出機
能を有するデータ記憶回路において、 誤り訂正符号の生成および誤り訂正符号による誤り訂正
・検出を行う誤り訂正符号制御回路と、 該誤り訂正符号制御回路から出力されたデータを記憶す
る第1のメモリと、 前記誤り訂正符号制御回路から出力された誤り訂正符号
を記憶する第2のメモリと、外部から与えられる誤り設定制御信号,読み出し/書き
込み信号および前記第1のメモリに供給されているメモ
リ選択信号を入力し、前記読み出し/書き込み信号が読
み出し状態を示している場合には前記誤り設定制御信号
の状態にかかわらず前記第1のメモリに供給されている
メモリ選択信号を前記第2のメモリのメモリ選択信号と
して前記第2のメモリへも供給し、前記読み出し/書き
込み信号が書き込み状態を示している場合には前記誤り
設定制御信号が誤り設定禁止状態を示す場合に限って前
記第1のメモリに供給されているメモリ選択信号を前記
第2のメモリのメモリ選択信号として前記第2のメモリ
へも供給する ゲート回路とを備えたことを特徴とするデ
ータ記憶回路。
1. A data storage circuit having an error correction / detection function using an error correction code, comprising: an error correction code control circuit for generating an error correction code and performing error correction / detection using the error correction code; A first memory for storing data output from the control circuit, a second memory for storing the error correction code output from the error correction code control circuit, an externally provided error setting control signal, read / write
And a memo supplied to the first memory.
A reselection signal is input and the read / write signal is read.
If the error setting control signal
Is supplied to the first memory regardless of the state of
The memory selection signal is the same as the memory selection signal of the second memory.
To the second memory to read / write the data.
If the write signal indicates a write state, the error
Only when the setting control signal indicates an error setting prohibited state
The memory selection signal supplied to the first memory is
The second memory as a memory selection signal for a second memory;
And a gate circuit that also supplies the data to the data storage circuit.
JP4148181A 1992-05-14 1992-05-14 Data storage circuit Expired - Fee Related JP2936894B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4148181A JP2936894B2 (en) 1992-05-14 1992-05-14 Data storage circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4148181A JP2936894B2 (en) 1992-05-14 1992-05-14 Data storage circuit

Publications (2)

Publication Number Publication Date
JPH05327522A JPH05327522A (en) 1993-12-10
JP2936894B2 true JP2936894B2 (en) 1999-08-23

Family

ID=15447062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4148181A Expired - Fee Related JP2936894B2 (en) 1992-05-14 1992-05-14 Data storage circuit

Country Status (1)

Country Link
JP (1) JP2936894B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61226854A (en) * 1985-03-30 1986-10-08 Toshiba Corp Testing method for error detection correcting circuit semiconductor memory
JPH02101695A (en) * 1988-10-07 1990-04-13 Fujitsu Ltd Ram chip selecting circuit
JPH02123631U (en) * 1989-03-16 1990-10-11

Also Published As

Publication number Publication date
JPH05327522A (en) 1993-12-10

Similar Documents

Publication Publication Date Title
JP2821278B2 (en) Semiconductor integrated circuit
JP2936894B2 (en) Data storage circuit
US5701436A (en) Information processing apparatus including synchronous storage having backup registers for storing the latest sets of information to enable state restoration after interruption
JPH033200A (en) Semiconductor memory
US5430852A (en) Control transfer method in system with multiple arithmetic units each with independent microprogram control by transferring start address and branch condition codes
JPH04115340A (en) Duplex storage circuit
JPH08115268A (en) Memory circuit device
JP2978645B2 (en) Semiconductor integrated circuit
JP2518333B2 (en) Storage device
JPH05165734A (en) Fixed fault diagnostic device for main storage device
JPS63175956A (en) Parity circuit
JPH0520215A (en) Information processor
JPS5958698A (en) Semiconductor integrated circuit storage device
JPH0528058A (en) Memory address bus test system
JPS6223902B2 (en)
JPH05342094A (en) Computer device
JPS59123918A (en) Buffer memory controlling system
JPH01177146A (en) Memory checking circuit
JPH02302855A (en) Memory control system
JPH04140846A (en) Microprogram controller
JPH0778494A (en) Dynamic ram
JPS6142304B2 (en)
JPS6232825B2 (en)
JP2000030480A (en) Encoder control method
JPH0242545A (en) Storage device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080611

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090611

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100611

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees