JPH0533252U - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH0533252U
JPH0533252U JP7911691U JP7911691U JPH0533252U JP H0533252 U JPH0533252 U JP H0533252U JP 7911691 U JP7911691 U JP 7911691U JP 7911691 U JP7911691 U JP 7911691U JP H0533252 U JPH0533252 U JP H0533252U
Authority
JP
Japan
Prior art keywords
data
memory
register
address
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.)
Withdrawn
Application number
JP7911691U
Other languages
Japanese (ja)
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP7911691U priority Critical patent/JPH0533252U/en
Publication of JPH0533252U publication Critical patent/JPH0533252U/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】 パイプラインの読み出しシーケンスを乱すこ
となく、高速のデータ読み出しができるメモリ制御装置
を提供することを目的としている。 【構成】 メモリに格納されているデータをパイプライ
ン方式を用いて読出す場合において、そのシーケンスの
途中で誤りが検出された時には、その時のメモリのアド
レスをレジスタに記憶させておき、全てのデータ読み出
しが終了した後に、レジスタに記憶されているアドレス
のデータに対して誤り訂正とメモリへの書込みを行なう
ように構成する。
(57) [Abstract] [Purpose] An object of the present invention is to provide a memory control device capable of high-speed data reading without disturbing the pipeline reading sequence. [Structure] When data stored in a memory is read using a pipeline method, when an error is detected in the middle of the sequence, the address of the memory at that time is stored in a register and all the data is stored. After the reading is completed, the error correction and the writing to the memory are performed on the data of the address stored in the register.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案はメモリに格納されているデータを読出すに際し、データの誤り検出・ 訂正機能を有するメモリ制御装置に関する。 The present invention relates to a memory control device having a data error detection / correction function when reading data stored in a memory.

【0002】[0002]

【従来の技術】[Prior Art]

図3は従来装置の構成例を示すブロック図である。1はデータを格納するメモ リであり、データ部1aと検査ビット部1bから構成されている。メモリ1から 読み出されたデータ検査ビット生成回路2に入り、検査ビットが生成される。一 方、メモリ1からは検査ビットも読み出されてシンドローム生成回路3に入る。 該シンドローム生成回路3の他方の入力には検査ビット生成回路2の出力も入っ ている。 FIG. 3 is a block diagram showing a configuration example of a conventional device. Reference numeral 1 is a memory for storing data, which is composed of a data section 1a and a check bit section 1b. The data check bit generation circuit 2 read from the memory 1 is entered, and check bits are generated. On the other hand, the check bit is also read from the memory 1 and enters the syndrome generation circuit 3. The output of the check bit generation circuit 2 is also input to the other input of the syndrome generation circuit 3.

【0003】 シンドローム生成回路3は、これら検査ビット生成回路2の出力及びメモリ1 の検査ビットを受けてシンドローム(誤り訂正符号)を生成する。このシンドロ ーム生成回路3の出力はシンドローム解析回路4に入る。該シンドローム解析回 路4は、このシンドロームを受けて誤り訂正パターンを推定する。The syndrome generation circuit 3 receives the output of the check bit generation circuit 2 and the check bit of the memory 1 and generates a syndrome (error correction code). The output of the syndrome generation circuit 3 enters the syndrome analysis circuit 4. The syndrome analysis circuit 4 receives this syndrome and estimates an error correction pattern.

【0004】 訂正回路5には、メモリ1から読み出されたデータが入っている。そして該訂 正回路5は、メモリ1から読み出されたデータを、シンドローム解析回路4から の出力(推定された誤り訂正パターン)を基に訂正する。そして、該訂正回路5 からは訂正されたデータが出力される。なお、メモリ1から読み出されたデータ に誤りがない場合には、メモリ1から読み出されたデータはそのまま訂正回路5 を通過して読み出されることはいうまでもない。The correction circuit 5 contains the data read from the memory 1. Then, the correction circuit 5 corrects the data read from the memory 1 based on the output (estimated error correction pattern) from the syndrome analysis circuit 4. Then, the corrected data is output from the correction circuit 5. Needless to say, if the data read from the memory 1 has no error, the data read from the memory 1 passes through the correction circuit 5 and is read as it is.

【0005】[0005]

【考案が解決しようとする課題】[Problems to be solved by the device]

前述した誤りの検出及び訂正には一定の時間がかかるため、高速にメモリから データを読出す場合(例えばバースト転送)、図4に示すようにパイプライン化 する手法が用いられる。即ち、データの読み出し処理をリード(READ)ス テージ、誤り検出・訂正ステージ及び出力ステージの3つのステージから構 成されているものとし、メモリのバンク毎にこれらステージを1ステージずらし て順次実行していく方法である。横軸は時間、縦軸はメモリバンクである。この パイプライン手法を用いると、1つのバンクの読み出し処理が終わるまで、次の バンクの読み出し処理を待っている必要がなくなるので、高速の処理を行うこと ができる。 Since it takes a certain amount of time to detect and correct the above-mentioned error, when reading data from a memory at high speed (burst transfer, for example), a pipeline method is used as shown in FIG. In other words, it is assumed that the data read processing is composed of three stages, which are a read stage, an error detection / correction stage, and an output stage, and these stages are sequentially executed by shifting one stage for each memory bank. Is the way to go. The horizontal axis represents time and the vertical axis represents the memory bank. When this pipeline method is used, it is not necessary to wait for the read processing of the next bank until the read processing of one bank is completed, so high-speed processing can be performed.

【0006】 しかしながら、このパイプラインの途中で誤りが検出されると、メモリ1に対 して正しいデータを書き込む処理が入るため、この間他のラインのパイプライン も動作が停止する。そして、正しいデータの書き込み処理が終了したら、通常の 処理に戻りパイプライン処理が続行される。このため、誤り検出時にはパイプラ インの動きが乱れ、複雑な制御をしなければならないという問題があった。However, if an error is detected in the middle of this pipeline, a process for writing correct data to the memory 1 is started, and thus the pipelines of other lines also stop operating. When the correct data writing process is completed, the process returns to the normal process and the pipeline process is continued. Therefore, there is a problem that the pipeline movement is disturbed when an error is detected and complicated control is required.

【0007】 本考案はこのような課題に鑑みてなされたものであって、パイプラインの読み 出しシーケンスを乱すことなく、高速のデータ読み出しができるメモリ制御装置 を提供することを目的としている。The present invention has been made in view of the above problems, and an object thereof is to provide a memory control device capable of high-speed data reading without disturbing the pipeline reading sequence.

【0008】[0008]

【課題を解決するための手段】[Means for Solving the Problems]

前記した課題を解決する本考案は、メモリに格納されているデータをパイプラ イン方式を用いて読出す場合において、そのシーケンスの途中で誤りが検出され た時には、その時のメモリのアドレスをレジスタに記憶させておき、全てのデー タ読み出しが終了した後に、レジスタに記憶されているアドレスのデータに対し て誤り訂正とメモリへの書込みを行なうようにしたことを特徴としている。 The present invention, which solves the above-mentioned problem, stores the memory address at that time in a register when an error is detected during the sequence when the data stored in the memory is read by using the pipeline method. The feature is that after all the data reading is completed, the error correction and the writing to the memory are performed on the data of the address stored in the register.

【0009】[0009]

【作用】[Action]

パイプラインシーケンスの途中で誤りが検出されたメモリアドレスに対しては 、全てのデータ転送が終わった後に、メモリへの正しいデータ書き込みを行うよ うにする。このようなシーケンスをとることにより、パイプラインシーケンスが 乱されることなく、高速でデータ読み出しを行うことができる。 For the memory address where an error is detected in the middle of the pipeline sequence, correct data writing to the memory should be performed after all data transfer is completed. By adopting such a sequence, data can be read at high speed without disturbing the pipeline sequence.

【0010】[0010]

【実施例】【Example】

以下、図面を参照して本考案の実施例を詳細に説明する。 図1は本考案の一実施例を示す構成ブロック図である。図3と同一のものは、 同一の符号を付して示す。図において、10はCPU、11は該CPU10とデ ータバスを介して接続される双方向性バッファ、12は該双方向性バッファ11 からのデータを受けて検査ビットを生成する検査ビット生成回路で、その出力は メモリ1の検査ビット部1bに格納される。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a configuration block diagram showing an embodiment of the present invention. The same parts as those in FIG. 3 are designated by the same reference numerals. In the figure, 10 is a CPU, 11 is a bidirectional buffer connected to the CPU 10 via a data bus, and 12 is a check bit generation circuit that receives data from the bidirectional buffer 11 and generates a check bit. The output is stored in the check bit unit 1b of the memory 1.

【0011】 13はメモリ1の出力を一時保持するレジスタ(以下Aレジスタという)、1 4は訂正回路5の出力を一時保持するレジスタ(以下Bレジスタという)である 。該Bレジスタの出力は双方向性バッファ11の出力部にフィードバックされて いる。Reference numeral 13 is a register for temporarily holding the output of the memory 1 (hereinafter referred to as A register), and 14 is a register for temporarily holding the output of the correction circuit 5 (hereinafter referred to as B register). The output of the B register is fed back to the output section of the bidirectional buffer 11.

【0012】 15はアドレスバスと接続されて特定のアドレスをストア信号で保持するレジ スタ(以下Cレジスタという)、16は特定のメモリバンク番号をストア信号で 保持するレジスタ(以下Dレジスタという)である。Dレジスタの出力は、Cレ ジスタの出力と合成されている。20はCPU10からのスタート信号で起動さ れると共に、シンドローム解析回路4からのエラー信号を受けて全体の制御を行 う制御回路である。前記Cレジスタ及びDレジスタのストア信号は、この制御回 路20から出力される。また、該制御回路20はDレジスタにバンク数を与えて いる。Reference numeral 15 is a register connected to an address bus to hold a specific address as a store signal (hereinafter referred to as C register), and 16 is a register to hold a specific memory bank number as a store signal (hereinafter referred to as D register). is there. The output of the D register is combined with the output of the C register. Reference numeral 20 is a control circuit that is activated by a start signal from the CPU 10 and receives an error signal from the syndrome analysis circuit 4 to perform overall control. The store signals of the C register and the D register are output from this control circuit 20. Further, the control circuit 20 gives the number of banks to the D register.

【0013】 17はアドレスバス,レジスタCの出力を受けて、制御回路20からのセレク ト信号により切り替えていずれか一方をセレクトするマルチプレクサである。該 マルチプレクサ17の出力は、メモリ1にアドレス信号として与えられる。この ように構成された回路の動作を説明すれば、以下のとおりである。 (CPUがメモリ1にデータを書き込む場合) 制御回路20は、CPU10からのスタート信号を受けると、マルチプレクサ 17を通常のアドレス側に設定する。そして、CPU10から出力されたデータ は、バッファ11を介してメモリ1に入る。一方、検査ビット生成回路12は、 CPU10から出力されたデータから検査ビットを生成する。そして、この検査 ビットはメモリ1に入る。このようにして、メモリ1にはデータと検査ビットが マルチプレクサ17からのアドレス及びバンクに従って順次書き込まれていく。 (CPUがメモリ1からデータをバーストモードで読み出す場合) 図2のパイプラインシーケンスに従って説明する。制御回路20は、CPU1 0からのスタート信号を受けると、マルチプレクサ17を通常のアドレス側に設 定する。制御回路20は、メモリ1にリード信号を与え、アドレス及びバンクで 示される番地のデータ及び検査ビットが読み出されてレジスタAに保持される( T1ステージ)。Numeral 17 is a multiplexer which receives the output of the address bus and the register C and switches it by a select signal from the control circuit 20 to select either one. The output of the multiplexer 17 is given to the memory 1 as an address signal. The operation of the circuit configured as described above will be described below. (When CPU Writes Data in Memory 1) When the control circuit 20 receives the start signal from the CPU 10, the control circuit 20 sets the multiplexer 17 to the normal address side. Then, the data output from the CPU 10 enters the memory 1 via the buffer 11. On the other hand, the check bit generation circuit 12 generates a check bit from the data output from the CPU 10. Then, this check bit enters the memory 1. In this way, data and check bits are sequentially written in the memory 1 according to the address and bank from the multiplexer 17. (When CPU Reads Data from Memory 1 in Burst Mode) An explanation will be given according to the pipeline sequence in FIG. Upon receiving the start signal from the CPU 10, the control circuit 20 sets the multiplexer 17 on the normal address side. The control circuit 20 gives a read signal to the memory 1, and the data and the check bit at the address indicated by the address and the bank are read and held in the register A (T1 stage).

【0014】 次に、誤り検出・訂正のステージでデータが正常の場合には、レジスタAから 読み出されたデータがそのままレジスタBに保持される。次に、シンドローム解 析回路4で誤りが検出された場合には、訂正回路5は訂正可能ならデータを訂正 してレジスタBに正しいデータを保持すると共に、制御回路20にエラー信号を 通知する。制御回路20はこのエラー信号を受けると、レジスタC,レジスタD にストア信号を与え、この時のアドレス及びメモリバンク数をそれぞれのレジス タに保持しておく。一方、同時に次のバンクのデータが読み出されレジスタAに 保持される(T2ステージ)。Next, when the data is normal at the error detection / correction stage, the data read from the register A is held in the register B as it is. Next, when the syndrome analysis circuit 4 detects an error, the correction circuit 5 corrects the data if correctable, holds the correct data in the register B, and notifies the control circuit 20 of the error signal. When the control circuit 20 receives this error signal, it gives a store signal to the registers C and D, and holds the address and the number of memory banks at this time in their respective registers. On the other hand, at the same time, the data of the next bank is read out and held in the register A (T2 stage).

【0015】 レジスタBに保持されているデータは、CPU10に転送される。それと同時 に、T2ステージで読出したデータは誤り検出モードになり、新たなバンクのデ ータが読み出され、レジスタAに保持される(T3ステージ)。以上のシーケン スを逐次繰り返していく。この例では、4サイクルの転送が終了した後、保存さ れているエラーアドレスとバンク数から誤りのあったデータを再び読み出し、訂 正した後再書き込みを行う。The data held in the register B is transferred to the CPU 10. At the same time, the data read in the T2 stage enters the error detection mode, the data in the new bank is read out, and is held in the register A (T3 stage). The above sequence is repeated sequentially. In this example, after the 4-cycle transfer is completed, the erroneous data is read again from the stored error address and bank number, corrected, and then rewritten.

【0016】 具体的に説明する。例えば1サイクル目に誤りがあったものとする。この時の アドレスはCレジスタに、バンク数はDレジスタに保存されている。4サイクル のデータ転送が終了した後、制御回路20はマルチプレクサ17に切り替え信号 を与え、Cレジスタ及びDレジスタの出力をメモリ1に与え、そのアドレス及び バンクで指定される番地のデータが読み出される(T7ステージ)。A specific description will be given. For example, assume that there is an error in the first cycle. At this time, the address is stored in the C register and the bank number is stored in the D register. After the 4-cycle data transfer is completed, the control circuit 20 gives a switching signal to the multiplexer 17 and gives the outputs of the C register and the D register to the memory 1, and the data at the address and the address designated by the bank is read ( T7 stage).

【0017】 そして、この誤りのあったデータを再度読出してシンドローム解析回路4で解 析して、訂正回路5で元の正しいデータに訂正した後、レジスタBに保持する( T8ステージ)。このBレジスタに保持されたデータは読み出されて、メモリ1 に与えられる。制御回路20は、メモリ1に書き込み信号を与えて、Cレジスタ 及びDレジスタで与えられる番地に訂正されたデータを書き込む(T9ステージ )。Then, the erroneous data is read again, analyzed by the syndrome analysis circuit 4, corrected to the original correct data by the correction circuit 5, and then stored in the register B (T8 stage). The data held in the B register is read and given to the memory 1. The control circuit 20 gives a write signal to the memory 1 to write the corrected data to the address given by the C register and the D register (T9 stage).

【0018】 このように、本考案は全てのデータ転送が終了した後、レジスタC,Dに保存 されていた誤りデータを格納しているアドレス及びバンクを元にメモリ1から誤 りデータを読み出し、訂正した後再度同じ番地に書き込むようにしている。従っ て、パイプライン動作シーケンスには影響を与えずに、データの訂正を行うこと ができる。なお、誤り検出・訂正のステージで、訂正不可能な誤りが検出された 場合には、そのデータ出力時にシンドローム解析回路4からその旨の誤り信号を CPU10に通知するようにしている。As described above, the present invention reads erroneous data from the memory 1 based on the address and the bank storing the erroneous data stored in the registers C and D after all the data transfer is completed, After making corrections, write again at the same address. Therefore, the data can be corrected without affecting the pipeline operation sequence. When an uncorrectable error is detected at the error detection / correction stage, the syndrome analysis circuit 4 notifies the CPU 10 of an error signal to that effect when the data is output.

【0019】[0019]

【考案の効果】[Effect of the device]

以上、詳細に説明したように、本考案によればデータに誤りがあったかどうか にかかわらず、誤りのあったメモリアドレスはレジスタに保存しつつパイプライ ンによるバーストデータ転送シーケンスを続行し、全てのデータ転送シーケンス が終了した後に、誤りのあったデータを訂正してメモリに再書き込みを行うよう にしているので、パイプラインの読み出しシーケンスを乱すことなく、高速のデ ータ読み出しができるメモリ制御装置を提供することができる。 As described above in detail, according to the present invention, regardless of whether or not there is an error in the data, the memory address with the error is stored in the register and the burst data transfer sequence by the pipeline is continued to ensure that all data is After the transfer sequence is completed, the erroneous data is corrected and rewritten to the memory.Therefore, a memory controller that can read data at high speed without disturbing the pipeline reading sequence is provided. Can be provided.

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

【図1】本考案の一実施例を示す構成ブロック図であ
る。
FIG. 1 is a configuration block diagram showing an embodiment of the present invention.

【図2】本考案によるパイプラインシーケンスの説明図
である。
FIG. 2 is an explanatory diagram of a pipeline sequence according to the present invention.

【図3】従来装置の構成例を示すブロック図である。FIG. 3 is a block diagram showing a configuration example of a conventional device.

【図4】パイプラインデータ読み出し方式の説明図であ
る。
FIG. 4 is an explanatory diagram of a pipeline data reading method.

【符号の説明】 1 メモリ 1a データ部 1b 検査ビット部 2 検査ビット生成回路 3 シンドローム生成回路 4 シンドローム解析回路 5 訂正回路 10 CPU 11 双方向性バッファ 12 検査ビット生成回路 13 レジスタ 14 レジスタ 15 レジスタ 16 レジスタ 17 マルチプレクサ 20 制御回路[Description of Codes] 1 Memory 1a Data part 1b Check bit part 2 Check bit generation circuit 3 Syndrome generation circuit 4 Syndrome analysis circuit 5 Correction circuit 10 CPU 11 Bidirectional buffer 12 Check bit generation circuit 13 register 14 register 15 register 16 register 17 multiplexer 20 control circuit

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 メモリに格納されているデータをパイプ
ライン方式を用いて読出す場合において、そのシーケン
スの途中で誤りが検出された時には、その時のメモリの
アドレスをレジスタに記憶させておき、全てのデータ読
み出しが終了した後に、レジスタに記憶されているアド
レスのデータに対して誤り訂正とメモリへの書込みを行
なうようにしたことを特徴とするメモリ制御装置。
1. When reading data stored in a memory using a pipeline method, when an error is detected in the middle of the sequence, the address of the memory at that time is stored in a register, and all the addresses are stored. The memory control device is characterized in that after the data reading is completed, the error correction and the writing to the memory are performed on the data of the address stored in the register.
JP7911691U 1991-09-30 1991-09-30 Memory controller Withdrawn JPH0533252U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7911691U JPH0533252U (en) 1991-09-30 1991-09-30 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7911691U JPH0533252U (en) 1991-09-30 1991-09-30 Memory controller

Publications (1)

Publication Number Publication Date
JPH0533252U true JPH0533252U (en) 1993-04-30

Family

ID=13680948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7911691U Withdrawn JPH0533252U (en) 1991-09-30 1991-09-30 Memory controller

Country Status (1)

Country Link
JP (1) JPH0533252U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093704A (en) * 2007-10-04 2009-04-30 Panasonic Corp Semiconductor memory device
JP2012243338A (en) * 2011-05-17 2012-12-10 Sharp Corp Non-volatile semiconductor storage device
WO2013132806A1 (en) * 2012-03-06 2013-09-12 日本電気株式会社 Nonvolatile logic integrated circuit and nonvolatile register error bit correction method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093704A (en) * 2007-10-04 2009-04-30 Panasonic Corp Semiconductor memory device
JP2012243338A (en) * 2011-05-17 2012-12-10 Sharp Corp Non-volatile semiconductor storage device
WO2013132806A1 (en) * 2012-03-06 2013-09-12 日本電気株式会社 Nonvolatile logic integrated circuit and nonvolatile register error bit correction method

Similar Documents

Publication Publication Date Title
JPH0581935B2 (en)
KR20020029925A (en) Methods and apparatus for correcting soft errors in digital data
JPH0533252U (en) Memory controller
JPS6011952A (en) Semiconductor memory device with error correcting means
JPS6238953A (en) Main storage device for compression of partial write access
JPH04115340A (en) Duplex storage circuit
JPH0520215A (en) Information processor
JPH06149685A (en) Memory error recovering circuit
JPH04162161A (en) Storage controller
SU1580442A1 (en) On-line memory
JPH038029A (en) Microprogram controller
JPH0517740U (en) Memory control device with error correction function
JPS63216150A (en) Storage device
JPH0136137B2 (en)
CN121166041A (en) Timing optimization device and method based on static random access memory
JP2565590B2 (en) Data processing device
JPS63234341A (en) Memory checking system
JPH0553924A (en) System for testing storage device
JPH04109335A (en) Control program correcting system
JPH04329444A (en) Error correcting and detecting system for information processor
JPH07248976A (en) Storage controller
JPH0332823B2 (en)
JPH1063569A (en) Main memory data writing device
JPH03126146A (en) Storage device
JPS63303448A (en) Data storing circuit

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19951130