JPH11194975A - Memory system - Google Patents

Memory system

Info

Publication number
JPH11194975A
JPH11194975A JP10000911A JP91198A JPH11194975A JP H11194975 A JPH11194975 A JP H11194975A JP 10000911 A JP10000911 A JP 10000911A JP 91198 A JP91198 A JP 91198A JP H11194975 A JPH11194975 A JP H11194975A
Authority
JP
Japan
Prior art keywords
data
write
memory
circuit
control circuit
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
JP10000911A
Other languages
Japanese (ja)
Inventor
Nobuhiro Hayashi
宜弘 林
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.)
Okuma Corp
Original Assignee
Okuma Corp
Okuma Machinery Works 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 Okuma Corp, Okuma Machinery Works Ltd filed Critical Okuma Corp
Priority to JP10000911A priority Critical patent/JPH11194975A/en
Publication of JPH11194975A publication Critical patent/JPH11194975A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten access time by completing the write of one long word only through writing operation. SOLUTION: Corresponding to a read/write signal and the signals of strobe and data size from a CPU 2, a read necessity discriminating circuit 12 discriminates whether a write size is 8 bits (1 byte), 16 bits (1 word) or 32 bits (1 long word). In the case of write for 8 bits (1 byte) or 16 bits (1 word) as a result of discrimination, the read necessity discriminating circuit 12 outputs a control signal so as to perform operation conventionally in the order of a read control circuit 11 and a write control circuit 10. In the case of write for 32 bits (1 long word), the control signal is outputted so as not to operate the read control circuit 11 but to immediately operate the write control circuit 10.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は有効なデータに複数
の冗長ビットを付加することでエラーの検出及び訂正を
行うことができるメモリシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory system capable of detecting and correcting an error by adding a plurality of redundant bits to valid data.

【0002】[0002]

【従来の技術】CPUに接続されるメモリシステムにお
いてはそのデータの信頼性を確保するためにECC(E
rror Correcting Code、エラー訂
正コード)を利用したエラー検出及び訂正回路(以下’
誤り訂正回路’という)を搭載することによってデータ
のエラー検出及び訂正を行なっている。
2. Description of the Related Art In a memory system connected to a CPU, an ECC (Electro-Communication (ECC) system is used to ensure the reliability of data.
and an error detection and correction circuit (hereinafter referred to as “error correcting code”) using an error correcting code (error correcting code).
The error detection and correction of data are performed by mounting an error correction circuit.

【0003】図5は従来のメモリシステムの一例を示す
ブロック図である。尚、図5のメモリシステムのメモリ
1は32ビットのデータと8ビットの訂正コードから成
り、既に誤り訂正回路32によりデータと訂正コードは
書き込まれているものとする。以下、図5のメモリシス
テムの動作例を図6のフローチャートに沿って説明す
る。
FIG. 5 is a block diagram showing an example of a conventional memory system. It is assumed that the memory 1 of the memory system shown in FIG. 5 includes 32-bit data and 8-bit correction codes, and the data and correction codes have already been written by the error correction circuit 32. Hereinafter, an operation example of the memory system of FIG. 5 will be described with reference to the flowchart of FIG.

【0004】32ビットのデータ幅をもつCPU2がメ
モリ1に8ビット(1バイト)のデータを書き込むパー
シャルライトの場合、CPU2は読み書き信号、ストロ
ーブ、データ、データサイズの信号を出力する。読み込
み制御回路11はCPU2からの読み書き信号、ストロ
ーブを受けてメモリ1に対して読みだし信号(OE−
N)を出力し、メモリ1から書き込む1バイト分のデー
タを含む32ビットのデータDrを読みだす。この時、
32ビットに付加された8ビットの訂正コードECCも
読みだされる(ステップS11)。メモリ1から読みだ
された40ビットのデータDr、ECCはバス制御回路
4aを通ってラッチ回路5で読み込み制御回路11から
出力されるラッチ信号によりラッチされ、エラー検出訂
正回路9でデータのエラー検出及び訂正を行なう(ステ
ップS12)。パーシャルライト制御回路6はCPU2
から出力されたデータサイズ信号によりCPU2から出
力されたデータDpまたはメモリ1から読みだされエラ
ー検出訂正回路9を通った32ビットのデータDr’を
選択するためのセレクト信号を出力する。
When the CPU 2 having a data width of 32 bits performs a partial write for writing data of 8 bits (1 byte) to the memory 1, the CPU 2 outputs a read / write signal, a strobe, data, and a signal of a data size. The read control circuit 11 receives a read / write signal and strobe from the CPU 2 and reads a read signal (OE-
N) is output, and 32-bit data Dr including 1-byte data to be written is read from the memory 1. At this time,
The 8-bit correction code ECC added to the 32 bits is also read (step S11). The 40-bit data Dr and ECC read from the memory 1 pass through the bus control circuit 4a, are latched by the latch circuit 5 by the latch signal output from the read control circuit 11, and are detected by the error detection and correction circuit 9 for data error detection. And correction (step S12). The partial write control circuit 6 is a CPU 2
A select signal for selecting the data Dp output from the CPU 2 or the 32-bit data Dr 'read from the memory 1 and passed through the error detection and correction circuit 9 according to the data size signal output from the CPU 2 is output.

【0005】セレクタ7a〜セレクタ7dはパーシャル
ライト制御回路6からのセレクト信号により,メモリ1
への書き込みデータDwとしてCPU2から出力されバ
ス制御回路4bを通ったデータDpまたはメモリ1から
読みだされエラー検出訂正回路9を通った32ビットの
データDr’のいずれかを8ビット毎に選択する(ステ
ップS13)。訂正コード生成回路8はセレクタ7a〜
セレクタ7dにより選択された32ビットの書き込みデ
ータDw(Dw1〜Dw4)から8ビットの訂正コード
ECCを生成する(ステップS14)。書き込み制御回
路10はCPU2からの読み書き信号、ストローブを受
けてバス制御回路4aの制御信号とメモリ1に対して書
き込み信号(WE−N)を出力する。セレクタ7a〜セ
レクタ7dにより選択された32ビット書き込みデータ
Dwと訂正コード生成回路8により生成された8ビット
データECCは書き込み制御回路10の制御信号により
メモリ1に書き込まれる(ステップS15)。
The selectors 7a to 7d operate in response to a select signal from the partial write
Either the data Dp output from the CPU 2 and passed through the bus control circuit 4b as the write data Dw to the CPU 2 or the 32-bit data Dr 'read from the memory 1 and passed through the error detection and correction circuit 9 is selected every 8 bits. (Step S13). The correction code generation circuit 8 includes selectors 7a to 7a.
An 8-bit correction code ECC is generated from the 32-bit write data Dw (Dw1 to Dw4) selected by the selector 7d (step S14). The write control circuit 10 receives a read / write signal and strobe from the CPU 2, and outputs a control signal of the bus control circuit 4a and a write signal (WE-N) to the memory 1. The 32-bit write data Dw selected by the selectors 7a to 7d and the 8-bit data ECC generated by the correction code generation circuit 8 are written to the memory 1 by a control signal of the write control circuit 10 (Step S15).

【0006】尚、CPU2は16ビット(1ワード)、
32ビット(1ロングワード)のデータをメモリ1に書
き込む場合も、8ビット(1バイト)のデータを書き込
む場合と同様な動作を行う。
The CPU 2 has 16 bits (1 word),
When writing 32-bit (1 long word) data to the memory 1, the same operation as when writing 8-bit (1 byte) data is performed.

【0007】[0007]

【発明が解決しようとする課題】上述のように従来のメ
モリシステムにおいては、CPUがメモリにデータを書
き込む場合、1度メモリから32ビットのデータと8ビ
ットの訂正コードを読みだし、その32ビットのデータ
の内CPUが書き込もうとしているデータを書き換え
て、新しく8ビットの訂正コードを生成してメモリにデ
ータを書き込んでいる。しかし、CPUがパーシャルラ
イトとならない32ビットのデータを書き込む場合でも
メモリから32ビットのデータを読みだすようにしてい
るため、アクセス時間だけが長くなってしまうという問
題があった。
As described above, in the conventional memory system, when the CPU writes data to the memory, the CPU first reads out 32-bit data and an 8-bit correction code from the memory, and reads the 32-bit data. The CPU rewrites the data that the CPU is trying to write, and newly generates an 8-bit correction code to write the data to the memory. However, even when the CPU writes 32-bit data that does not become a partial write, since the 32-bit data is read from the memory, there is a problem that only the access time becomes longer.

【0008】本発明は上記のような問題に鑑みてなされ
たものであり、本発明の目的はCPUがメモリにデータ
を書き込む場合のアクセス時間を短くすることができる
メモリシステムを提供することにある。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a memory system capable of shortening an access time when a CPU writes data to a memory. .

【0009】[0009]

【課題を解決するための手段】本発明は、有効なデータ
に複数の冗長ビットを付加することでエラーの検出及び
訂正を行うメモリシステムに関するものであり、本発明
の上記目的は前記エラーの検出及び訂正機能を有すると
共にパーシャルライトが可能な誤り訂正回路と、前記パ
ーシャルライトを行なうための読み込み制御回路と、メ
モリに書き込みを行う書き込み制御回路と、前記メモリ
へデータを書き込む際に前記読み込み制御回路を動作さ
せるかどうかを判定する読みだし要否判定回路とを具備
することによって達成される。さらに、本発明の上記目
的は、16ビット以上のデータ幅を持ち、通常動作時は
キャッシュを有効とし、かつ、データ幅固定のライトバ
ックを使用するCPUと、前記エラーの検出及び訂正を
行う誤り訂正回路と、前記誤り訂正回路により訂正され
たデータを有効とするか、前記誤り訂正回路を通さない
データを有効とするかを選択するエラー検出訂正選択回
路とを具備することによって達成される。
SUMMARY OF THE INVENTION The present invention relates to a memory system for detecting and correcting an error by adding a plurality of redundant bits to valid data. And an error correction circuit having a correction function and capable of performing a partial write, a read control circuit for performing the partial write, a write control circuit for writing to a memory, and the read control circuit for writing data to the memory And a reading necessity judging circuit for judging whether or not to operate. Further, the object of the present invention is to provide a CPU which has a data width of 16 bits or more, enables a cache during normal operation, and uses write-back having a fixed data width, and an error detecting and correcting the error. This is achieved by including a correction circuit, and an error detection / correction selection circuit that selects whether data corrected by the error correction circuit is valid or data not passing through the error correction circuit is valid.

【0010】[0010]

【発明の実施の形態】本発明の一実施形態では、CPU
がメモリに対して32ビットのデータ(メモリのアクセ
ス単位と同一サイズのデータ)を書き込む場合にメモリ
から32ビットのデータを読みだす動作をなくすこと
で、アクセス時間を短くするようにしている。また、本
発明の他の実施形態では、キャッシュを有効とする前の
初期動作時においては、メモリに8ビット、16ビッ
ト、32ビットのデータを書き込む場合は、1度メモリ
から32ビットのデータと8ビットの訂正コードを読み
だすことなく書き込み、データを読みだす場合はエラー
検出及びデータの訂正は行なわないように制御し、キャ
ッシュを有効とし、データを32ビット固定のライトバ
ックで使用する通常動作時においては、CPUがメモリ
にデータを書き込む場合は、メモリから32ビットのデ
ータと8ビットの訂正コードを読みだす動作をなくすよ
うに制御することで、アクセス時間を短くし、さらに回
路の信頼性を向上させるようにしている。以下、図面に
基づいて本発明の好適な実施形態について詳細に説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In one embodiment of the present invention, a CPU
When writing 32-bit data (data having the same size as the memory access unit) to the memory, the access time is shortened by eliminating the operation of reading the 32-bit data from the memory. In another embodiment of the present invention, in the initial operation before the cache is validated, when writing 8-bit, 16-bit, or 32-bit data to the memory, the 32-bit data is once transferred from the memory. Normal operation in which writing is performed without reading an 8-bit correction code and when data is read, error detection and data correction are not performed, the cache is enabled, and data is used in a 32-bit fixed write-back. At times, when the CPU writes data to the memory, the access time is shortened by controlling the operation of reading out 32-bit data and the 8-bit correction code from the memory, thereby shortening the access time and further improving the reliability of the circuit. I try to improve. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.

【0011】図1は本発明の一実施形態を示すブロック
図であり、従来技術に示す図5と同一番号にて示されて
いる構成要素についての機能は同一であるので説明を省
略する。
FIG. 1 is a block diagram showing an embodiment of the present invention. The functions of the components denoted by the same reference numerals as those in FIG.

【0012】図1のメモリシステムは、CPU2と書き
込み制御回路10及び読み込み制御回路11との間に読
みだし要否判定回路12を接続し、書き込み制御回路1
0を動作される前に読み込み制御回路10を動作させる
かどうか、即ちメモリ2へのデータ書き込み処理時にメ
モリ2のデータを読みだす必要があるかどうかを読みだ
し要否判定回路12によって判定し、パーシャルライト
時のように必要な場合は従来と同様に動作させ、不要な
場合は読みだし動作をさせずにCPU2からのデータを
メモリ2に書き込ませるようにしたものである。以下、
メモリのアクセス単位(データ幅)が32ビットである
場合を例として、データ書き込み時の動作例を説明す
る。
In the memory system shown in FIG. 1, a reading necessity judging circuit 12 is connected between a CPU 2 and a writing control circuit 10 and a reading control circuit 11, and the writing control circuit 1
The read necessity determination circuit 12 determines whether or not to operate the read control circuit 10 before operating 0, that is, whether or not it is necessary to read data from the memory 2 at the time of data write processing to the memory 2. When necessary, as in the case of partial writing, the operation is performed in the same manner as in the prior art, and when unnecessary, the data from the CPU 2 is written into the memory 2 without performing the reading operation. Less than,
An operation example at the time of writing data will be described by taking as an example a case where a memory access unit (data width) is 32 bits.

【0013】図1において、読みだし要否判定回路12
はCPU2からの読み書き信号、ストローブ、データサ
イズの信号により書き込みサイズが8ビット(1バイ
ト)、16ビット(1ワード)、32ビット(1ロング
ワード)かを判定する。判定の結果、8ビット(1バイ
ト)、16ビット(1ワード)の書き込みであれば、読
みだし要否判定回路12は従来通りの読み込み制御回路
11、書き込み制御回路10の順に動作を行うよう制御
信号を出力する。また、32ビット(1ロングワード)
の書き込みであれば、読み込み制御回路11は動作せ
ず、書き込み制御回路10が即動作するよう制御信号を
出力する。
In FIG. 1, a reading necessity determination circuit 12
Determines whether the write size is 8 bits (1 byte), 16 bits (1 word), or 32 bits (1 long word) based on a read / write signal, strobe, and data size signal from the CPU 2. As a result of the determination, if the writing is of 8 bits (1 byte) and 16 bits (1 word), the reading necessity determination circuit 12 is controlled to perform the operation of the conventional read control circuit 11 and write control circuit 10 in the conventional order. Output a signal. 32 bits (1 long word)
In the case of writing, the control signal is output so that the read control circuit 11 does not operate and the write control circuit 10 operates immediately.

【0014】図2は本発明のメモリシステムにおける書
き込みタイミングを示す図である。図2(A)に示すよ
うに、8ビット、16ビットの書き込みの時は、従来と
同様にメモリ1に対して読み込み制御回路11から読み
だし信号(OE−N)は出力され、その後に書き込み制
御回路10から書き込み信号(WE−N)が出力され
る。即ち、メモリ1からデータDrと訂正コードECC
が読みだされ、エラー検出訂正回路9を通ったデータD
r’又はCPU2からのデータDpが8ビット毎に選択
され、選択された書き込みデータDwとその訂正コード
ECCがバス制御回路4aに出力された時点で、書き込
み制御回路10から書き込み信号(WE−N)が出力さ
れる。一方、図2(B)に示すように32ビット(1ロ
ングワード)の書き込みの時はメモリ1に対して読み込
み制御回路11から読みだし信号(OE−N)は出力さ
れず、書き込み制御回路10から書き込み信号(WE−
N)が即出力される。
FIG. 2 is a diagram showing write timing in the memory system of the present invention. As shown in FIG. 2A, at the time of writing of 8 bits or 16 bits, a read signal (OE-N) is output from the read control circuit 11 to the memory 1 as in the conventional case, and then the write is performed. The control circuit 10 outputs a write signal (WE-N). That is, the data Dr and the correction code ECC
Is read out and passed through the error detection and correction circuit 9
r ′ or the data Dp from the CPU 2 is selected every 8 bits, and when the selected write data Dw and its correction code ECC are output to the bus control circuit 4a, the write control circuit 10 outputs the write signal (WE-N ) Is output. On the other hand, as shown in FIG. 2B, when writing 32 bits (1 long word), the read control circuit 11 does not output the read signal (OE-N) to the memory 1 and the write control circuit 10 From the write signal (WE-
N) is output immediately.

【0015】従って、CPU2と書き込み制御回路1
0、読み込み制御回路11との間に読みだし要否判定回
路12を接続することにより、32ビット(1ロングワ
ード)データの書き込みのときは書き込み動作のみで済
むためアクセス時間を短くすることができる。
Therefore, the CPU 2 and the write control circuit 1
0, by connecting the read necessity determination circuit 12 with the read control circuit 11, when writing 32-bit (1 long word) data, only the write operation is required, so that the access time can be shortened. .

【0016】図3は本発明の別の実施形態を示すブロッ
ク図であり、従来技術に示す図5と同一番号にて示され
ている構成要素についての機能は同一であるので説明を
省略する。尚、メモリ1は32ビットのデータと8ビッ
トの訂正コードから成り、既に誤り訂正回路31により
データと訂正コードはエラーがなく書き込まれているも
のである。
FIG. 3 is a block diagram showing another embodiment of the present invention. The functions of the components denoted by the same reference numerals as those in FIG. The memory 1 is composed of 32-bit data and 8-bit correction codes, and the data and correction codes have already been written by the error correction circuit 31 without errors.

【0017】図3のメモリシステムは、誤り訂正回路3
1内のエラー検出訂正回路9とバス制御回路4bとの間
にセレクタ14を接続すると共に、このセレクタ14と
CPU2との間にエラー検出訂正選択回路13を接続
し、キャッシュを有効とする前の初期動作時、及びキャ
ッシュを有効とし、データ幅固定のライトバックを行う
通常動作時に、それぞれ読みだし動作をさせずにCPU
2からのデータをメモリ1に書き込ませるようにしたも
のである。以下、図4のフローチャートに沿って説明す
る。
The memory system shown in FIG.
1, a selector 14 is connected between the error detection / correction circuit 9 and the bus control circuit 4b, and an error detection / correction selection circuit 13 is connected between the selector 14 and the CPU 2 to enable the cache before validating. During the initial operation, and during the normal operation in which the cache is enabled and the data width is fixed and the write-back is performed, the CPU is executed without performing the read operation.
2 is written in the memory 1. Hereinafter, description will be given along the flowchart of FIG.

【0018】CPU2が図示されないキャッシュを有効
とする前の期間にメモリ1に8ビットのデータDpを書
き込む場合、従来の技術に示すような1度メモリ1から
32ビットのデータDrと8ビットの訂正コードECC
を読みだす動作はせずに書き込みを行う(ステップS
1)。よって、メモリ1に書き込みを行なわない24ビ
ットのデータと8ビットの訂正コードは初期データのま
まである。また、セレクタ14に入力される32ビット
のデータDr、Dr’を選択するため、エラー検出訂正
選択回路13の出力信号はCPU2のアドレス、デー
タ、ストローブにより設定される。
When the CPU 2 writes the 8-bit data Dp to the memory 1 during a period before the cache (not shown) is validated, the 32-bit data Dr and the 8-bit correction are once read from the memory 1 as shown in the prior art. Code ECC
Is written without performing the operation of reading (step S
1). Therefore, the 24-bit data and the 8-bit correction code that are not written into the memory 1 remain the initial data. Further, in order to select the 32-bit data Dr and Dr 'input to the selector 14, the output signal of the error detection and correction selection circuit 13 is set by the address, data and strobe of the CPU 2.

【0019】前記の書き込みを行なった8ビットのデー
タDw(=Dp)を読みだすと、24ビットのデータと
訂正コードは初期データのままであり、エラー検出訂正
回路9のエラー検出訂正は32ビットのデータDrと8
ビットの訂正コードECCより行うため、エラー検出訂
正回路9はエラー検出及び訂正を行う可能性がある。そ
こで、エラー検出訂正回路9を通らないデータDrをセ
レクタ14がバス制御回路4bに出力できるように、C
PU2はエラー検出訂正選択回路13を設定する(ステ
ップS2)。前記状態ではエラー検出及び訂正が行なわ
れないため、前記の書き込みを行なった8ビットのデー
タDwの読みだしを行なうことができる(ステップS
3)。また、読みだした8ビットのデータDwに誤りが
あった場合には不当命令等が発生するためCPU2は例
外処理を行い停止する。CPU2が16ビット(1ワー
ド)、32ビット(1ロングワード)のデータをメモリ
1に書き込む場合も、8ビット(1バイト)のデータを
書き込む場合と同様な動作を行う。
When the written 8-bit data Dw (= Dp) is read out, the 24-bit data and the correction code remain as initial data, and the error detection and correction of the error Data Dr and 8
Since the correction is performed based on the bit correction code ECC, the error detection and correction circuit 9 may perform error detection and correction. In order to allow the selector 14 to output the data Dr that does not pass through the error detection and correction circuit 9 to the bus control circuit 4b,
PU2 sets the error detection and correction selection circuit 13 (step S2). In this state, since the error detection and correction are not performed, the written 8-bit data Dw can be read (step S).
3). If an error occurs in the read 8-bit data Dw, an illegal instruction or the like is generated, so that the CPU 2 performs exception processing and stops. When the CPU 2 writes 16-bit (1 word) and 32-bit (1 long word) data to the memory 1, the same operation as the case of writing 8-bit (1 byte) data is performed.

【0020】次にCPU2がキャッシュを有効とし32
ビット固定のライトバックを使用するように設定された
場合(ステップS4)は、エラー検出訂正回路9を通っ
た32ビットのデータDr’をセレクタ14がバス制御
回路4bに出力できるように、CPU2はエラー検出訂
正選択回路13を設定する(ステップS5)。また、前
述のメモリ1に対する書き込みでメモリ1の訂正コード
はメモリ1に書き込まれている32ビットのデータの訂
正コードではないため、CPU2は8ビットの訂正コー
ドECCをメモリ1に書き込むため32ビットのデータ
でメモリ1を初期化する(ステップS6)。CPU2は
メモリ1の初期化後、32ビット固定で読み書きを行う
(ステップS7)。よって、CPU2がメモリ1にデー
タを書き込む場合、1度メモリ1から32ビットのデー
タと8ビットの訂正コードを読みだす必要がなくなり、
書き込み動作のみで済むためアクセス時間を短くするこ
とができ、回路も簡単になるため回路の信頼性も向上す
る。
Next, the CPU 2 validates the cache and
If the setting is made to use the fixed-bit write-back (step S4), the CPU 2 sets the selector 14 to output the 32-bit data Dr 'that has passed through the error detection and correction circuit 9 to the bus control circuit 4b. The error detection / correction selection circuit 13 is set (step S5). In addition, since the correction code of the memory 1 is not the correction code of the 32-bit data written in the memory 1 in the above-described writing to the memory 1, the CPU 2 writes the correction code ECC of 8 bits into the memory 1 so that the 32-bit correction code ECC is written in the memory 1. The memory 1 is initialized with the data (step S6). After initializing the memory 1, the CPU 2 reads and writes data at a fixed 32 bits (step S7). Therefore, when the CPU 2 writes data to the memory 1, it is not necessary to read out 32-bit data and an 8-bit correction code from the memory 1 once.
Since only a write operation is required, the access time can be shortened, and the circuit is simplified, so that the reliability of the circuit is improved.

【0021】[0021]

【発明の効果】請求項1のメモリシステムによればCP
Uと書き込み制御回路、読み込み制御回路との間に読み
だし要否判定回路を接続することにより、32ビット
(1ロングワード)データの書き込みのときは書き込み
動作のみで済むためアクセス時間を短くすることができ
る。また、請求項2のメモリシステムによればCPUが
メモリにデータを書き込む場合に、メモリから32ビッ
トのデータと8ビットの訂正コードを読みだす動作がな
くなり、書き込み時は書き込み動作のみで済むためアク
セス時間を短くすることができ、さらに回路の信頼性も
向上する。
According to the memory system of the first aspect, the CP
By connecting a read necessity determination circuit between U and the write control circuit and the read control circuit, when writing 32-bit (1 long word) data, only the write operation is required, thereby shortening the access time. Can be. According to the memory system of the present invention, when the CPU writes data to the memory, the operation of reading out 32-bit data and the 8-bit correction code from the memory is eliminated, and only the write operation is required at the time of writing. The time can be shortened, and the reliability of the circuit is improved.

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

【図1】本発明のメモリシステムの一実施形態を示すブ
ロック図である。
FIG. 1 is a block diagram showing one embodiment of a memory system of the present invention.

【図2】本発明のメモリシステムの一実施形態における
書き込みタイミングを示すタイミングチャートである。
FIG. 2 is a timing chart showing write timing in one embodiment of the memory system of the present invention.

【図3】本発明のメモリシステムの他の実施形態を示す
ブロック図である。
FIG. 3 is a block diagram showing another embodiment of the memory system of the present invention.

【図4】本発明の他の実施形態における動作例を示すフ
ローチャートである。
FIG. 4 is a flowchart illustrating an operation example according to another embodiment of the present invention.

【図5】従来のメモリシステム一例を示すブロック図で
ある。
FIG. 5 is a block diagram showing an example of a conventional memory system.

【図6】従来のメモリシステムの動作例を示すフローチ
ャートである。
FIG. 6 is a flowchart showing an operation example of a conventional memory system.

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

1 メモリ 2 CPU 31、32 誤り訂正回路 4a、4b バス制御回路 5 ラッチ回路 6 パーシャルライト制御回路 7a〜7d セレクタ 8 訂正コード生成回路 9 エラー検出訂正回路 10 書き込み制御回路 11 読み込み制御回路 12 読みだし要否判定回路 13 エラー検出訂正選択回路 14 セレクタ Reference Signs List 1 memory 2 CPU 31, 32 error correction circuit 4a, 4b bus control circuit 5 latch circuit 6 partial write control circuit 7a to 7d selector 8 correction code generation circuit 9 error detection and correction circuit 10 write control circuit 11 read control circuit 12 read required Rejection determination circuit 13 Error detection and correction selection circuit 14 Selector

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】有効なデータに複数の冗長ビットを付加す
ることでエラーの検出及び訂正を行うメモリシステムに
おいて、前記エラーの検出及び訂正機能を有すると共に
パーシャルライトが可能な誤り訂正回路と、前記パーシ
ャルライトを行なうための読み込み制御回路と、メモリ
に書き込みを行う書き込み制御回路と、前記メモリのデ
ータ幅と同一サイズの書き込みデータの場合は前記読み
込み制御回路を動作させずに書き込むための読みだし要
否判定回路とを具備したことを特徴とするメモリシステ
ム。
An error correction circuit having a function of detecting and correcting an error by adding a plurality of redundant bits to valid data and having a function of detecting and correcting the error and capable of performing a partial write. A read control circuit for performing a partial write, a write control circuit for writing to a memory, and a read control for writing without operating the read control circuit when the write data has the same size as the data width of the memory. A memory system comprising a rejection determination circuit.
【請求項2】有効なデータに複数の冗長ビットを付加す
ることでエラーの検出及び訂正を行うメモリシステムに
おいて、16ビット以上のデータ幅を持ち、通常動作時
はキャッシュを有効とし、かつ、データ幅固定のライト
バックを使用するCPUと、前記エラーの検出及び訂正
を行う誤り訂正回路と、キャッシュを有効とし、かつ、
データ幅固定のライトバックを行う場合は前記誤り訂正
回路により訂正されたデータを有効とし、キャッシュを
有効とする前の初期動作時は前記誤り訂正回路を通さな
いデータを有効とするエラー検出訂正選択回路とを具備
したことを特徴とするメモリシステム。
2. A memory system for detecting and correcting an error by adding a plurality of redundant bits to valid data, having a data width of 16 bits or more, enabling a cache during normal operation, and A CPU that uses fixed-width write-back, an error correction circuit that detects and corrects the error, a cache enabled, and
When performing write-back with a fixed data width, the data corrected by the error correction circuit is validated, and during the initial operation before the cache is validated, the error detection / correction selection that validates data that does not pass through the error correction circuit is performed. And a circuit.
JP10000911A 1998-01-06 1998-01-06 Memory system Pending JPH11194975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10000911A JPH11194975A (en) 1998-01-06 1998-01-06 Memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10000911A JPH11194975A (en) 1998-01-06 1998-01-06 Memory system

Publications (1)

Publication Number Publication Date
JPH11194975A true JPH11194975A (en) 1999-07-21

Family

ID=11486871

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10000911A Pending JPH11194975A (en) 1998-01-06 1998-01-06 Memory system

Country Status (1)

Country Link
JP (1) JPH11194975A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010224967A (en) * 2009-03-24 2010-10-07 Fujitsu Semiconductor Ltd Semiconductor device and electronic apparatus
US8234463B2 (en) 2008-05-30 2012-07-31 Renesas Electronics Corporation Data processing apparatus, memory controller, and access control method of memory controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8234463B2 (en) 2008-05-30 2012-07-31 Renesas Electronics Corporation Data processing apparatus, memory controller, and access control method of memory controller
JP2010224967A (en) * 2009-03-24 2010-10-07 Fujitsu Semiconductor Ltd Semiconductor device and electronic apparatus

Similar Documents

Publication Publication Date Title
US7877647B2 (en) Correcting a target address in parallel with determining whether the target address was received in error
US20010056567A1 (en) Address parity error processing method, and apparatus and storage for the method
US5063565A (en) Single-error detecting and correcting system
JPH11194975A (en) Memory system
EP0463352B1 (en) Microprocessor for use in in-circuit emulator having function of discriminating users space and in-circuit emulator space
JPH0316655B2 (en)
JPH06274462A (en) Asynchronous writing system for shared memory
JP3507193B2 (en) Load / store instruction processor
JPH10143448A (en) Memory system
JP2003316662A (en) Contents address memory system
JPH01194046A (en) Memory access system
JPH05165734A (en) Fixed fault diagnostic device for main storage device
JPH06250937A (en) Method for memory control, memory control circuit with ecc function and information processor
JPH0588993A (en) Memory control system
JP3616588B2 (en) Micro program check system
JP3269435B2 (en) Bus interface unit
JPH05158810A (en) Error detection circuit
JPH11161560A (en) Address propriety judgement device and address propriety judgement method for storage device
JPH0752398B2 (en) Check circuit diagnostic device
JPH04311236A (en) Memory error processing circuit
JP2002150795A (en) Semiconductor integrated circuit
JPH08221282A (en) Parity generation and check circuit
JPH0443447A (en) Rom diagnosis device
JPH02302855A (en) Memory control system
JPH05233340A (en) Ecc function test system