JPH01194046A - Memory access system - Google Patents
Memory access systemInfo
- Publication number
- JPH01194046A JPH01194046A JP63017103A JP1710388A JPH01194046A JP H01194046 A JPH01194046 A JP H01194046A JP 63017103 A JP63017103 A JP 63017103A JP 1710388 A JP1710388 A JP 1710388A JP H01194046 A JPH01194046 A JP H01194046A
- Authority
- JP
- Japan
- Prior art keywords
- write
- data
- cpu
- access
- memory
- 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
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
【発明の詳細な説明】
〔浬東上の利用分野〕
本発明は情報処理システムの記憶装置に係り、特に誤り
検出訂正を行う回路を具備した装置に好適なメモリアク
セス方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Application of Peng Dong] The present invention relates to a storage device for an information processing system, and particularly to a memory access method suitable for a device equipped with a circuit for error detection and correction.
パーソナルコンビエータ等の情報処理システムでは、記
憶装置の信頼性を高めるために、パリティ’t−ECC
Cエラー・コレクティング・コード。In information processing systems such as personal combinators, parity 't-ECC is used to increase the reliability of storage devices.
C error correcting code.
Error Corrgctig Code )等の冗
長符号をデータに付加する場合が一般的である。It is common to add a redundant code such as Error Corrgctig Code to data.
パリティ方式は一般的には、バイト(8ビツト)単位の
データに含まれる°1°の個数が奇数か偶数かを示すパ
リティビットを1ビット余分にデータに゛付加する。こ
の方式では、バイト単位のデータに1ビット誤りが発生
した場合の検出が可能である。しかし、誤りの訂正と、
2ビツトの誤り検出はできない。In the parity method, an extra parity bit is generally added to the data to indicate whether the number of 1 degrees included in byte (8-bit) data is odd or even. With this method, it is possible to detect when a 1-bit error occurs in data in units of bytes. However, correction of errors and
2-bit error detection is not possible.
一方、ECC方式ではチエツクビットと呼ばれる複数の
冗長ビットをデータに付加する。チエツクビットは1ピ
ツトの誤り訂正を行うためには記憶装置のデータ幅が8
ピツト幅であれば5ビツト。On the other hand, in the ECC method, a plurality of redundant bits called check bits are added to data. The data width of the storage device must be 8 to correct a check bit error of 1 pit.
If it is pit width, it is 5 bits.
16ビツト幅であれば6ビツト、32ビツトであれば7
ピツトの長さが必要であるが、データの1ビット誤りの
訂正ができるため、非常に信頼性が高−い。6 bits if the width is 16 bits, 7 bits if the width is 32 bits.
Although it requires a long pit, it is extremely reliable because it can correct 1-bit errors in data.
ところで、パーソナルコンピュータ等のCPU(中央処
理装置)、例えばインテル社の80585 。By the way, the CPU (central processing unit) of a personal computer, for example, Intel's 80585.
モトローラ社の68020 %の52ビツトcPUでは
従来の16ビツト78ビツトのデータを扱うソフトとの
互換性を保つために、16/8ピツト幅でのデータアク
セス命令も持つ。また、実動作でも従来のソフトを使用
する場合が多いため、32ビツトのアクセス命令よりも
16/8ビツトのアクセスのほうが使用頻度が高い。Motorola's 68020% 52-bit CPU also has data access instructions with a 16/8 pit width in order to maintain compatibility with software that handles conventional 16-bit to 78-bit data. Furthermore, since conventional software is often used in actual operations, 16/8-bit access is used more frequently than 32-bit access instructions.
一方、上記のような52ビツトCPUでは、52ビツト
を単位としてECCの冗長コードを付加するように設計
するのが一般的である。従って、この単位となる32ビ
ツト(4バイト)の一部をかきかえる場合(以下、パー
シャルライトと称する)、次のように行っている。On the other hand, the above-mentioned 52-bit CPU is generally designed to add an ECC redundant code in units of 52 bits. Therefore, when a part of this unit of 32 bits (4 bytes) is to be replaced (hereinafter referred to as partial write), it is performed as follows.
第2図はパーシャルライトのデータ操作を表している。FIG. 2 shows data manipulation of partial write.
これは8ビツトのデータ’9AH’ (HはHEXの略
で16進数を表す。)をメモリにパーシャルライトする
例である。チエツクビットを正しく生成するには32ビ
ツトのデータが必要であるが、CPUからえもれたデー
タ20は8ビツトであるので残りの24ビツト分のデー
タはメモリから状出す必要がある。(メモリデータ55
゜)ここでメモリデータ35に1ビット誤りが発生して
いた場合はチエツクビット36を用いて訂正しておく。This is an example of partially writing 8-bit data '9AH' (H is an abbreviation for HEX and represents a hexadecimal number) into the memory. 32 bits of data are required to correctly generate check bits, but since the data 20 leaked from the CPU is 8 bits, the remaining 24 bits of data must be retrieved from memory. (Memory data 55
゜) If a 1-bit error has occurred in the memory data 35, use the check bit 36 to correct it.
次にエラー訂正後のデータ59の第2バイトなCPUデ
ータの値”9,4ff”と置き換えて曹込みデータ35
を得る。Next, replace the second byte of the error-corrected data 59 with the CPU data value "9,4ff" and add the data 35.
get.
また、舊込みチックビット54は薔込みデータ56から
生成する。Further, the cutting tick bit 54 is generated from the cutting data 56.
メモリにはこの畳込みデータ33と畳込みチエツクビッ
ト34を畳込む。This convolution data 33 and convolution check bit 34 are convolved in the memory.
以上のパーシャルライト時には以下に詳述するように続
出しと誉込みの2回のアクセス(以下、リードモデ7ア
イライトサイクルと称す)が必要である。When performing the above partial write, two accesses (hereinafter referred to as read mode 7 eye write cycle) are required, one for successive access and one for complimentary access, as detailed below.
巣5図はECC機能を有する記憶装置のブロック囚の一
例である。以下、本図を用いてパーシャルライト時のリ
ードモデファイライトサイクルの;動作を説明する。Figure 5 is an example of a block prisoner of a storage device having an ECC function. The operation of the read modify write cycle during partial write will be explained below using this figure.
本図において、メモリコントローラ10はCPU(図示
せず)からのアクセス悄141 K従って、メモリコン
)o−ル侶号46を送出し、メモリ12からデータの読
出しまたは薔込みの制御を行う回路である。4はCPU
からのデータ20のうち第0バイト目のCPUデータ2
1と第0バイト目のメモリデータ29をCPUから簀込
みバイトを指定するバイトイネーブル信号16に従って
選択するセレクタである。同様に5.6.7はそれぞれ
第1バイト目。In this figure, the memory controller 10 is a circuit that receives an access request from a CPU (not shown), sends out a memory controller code 46, and controls the reading or writing of data from the memory 12. be. 4 is CPU
CPU data 2 of the 0th byte of data 20 from
This is a selector that selects the 1st and 0th bytes of memory data 29 in accordance with a byte enable signal 16 that specifies a retention byte from the CPU. Similarly, 5, 6, and 7 are the first bytes.
第2バイト目、第3バイト目のデータを選択するセレク
タである。シンドa−ム生成回路14はメモリ12から
続出したメモリデータ55及びチエツクビット36から
シンドローム39と呼ばれるデータの誤りビットの位置
を示す情報を生成する回路であり、訂正回路15は、シ
ンドa−ム39から誤りビットの位置を検出し、誤った
データビットを反転することにより、誤りを訂正する回
路である。This is a selector that selects the second and third byte data. The syndrome generation circuit 14 is a circuit that generates information indicating the position of an error bit in data called a syndrome 39 from the memory data 55 and check bits 36 successively received from the memory 12. This circuit detects the position of an erroneous bit from 39 and inverts the erroneous data bit to correct the error.
CPUからパーシャルライト命令があると、メモリコン
トa−ラ10はメモリ12からメモリデ−タ35とチエ
ツクピット36を読出すため、メモリコントa−ル信号
43を出力する。読出されたメモリデータ55とチエツ
クビット36はレジスタ13にメモリコントロール信号
43iCよりラッチされる。訂正回路15はチエツクビ
ット38.メモリデータ57を用い、シンドa−ム生成
回路14で生成されたシンドa−ム39を用いてラッチ
メモリデータ37を訂正する。When a partial write command is issued from the CPU, the memory controller 10 outputs a memory control signal 43 in order to read the memory data 35 and check pit 36 from the memory 12. The read memory data 55 and check bit 36 are latched into the register 13 by the memory control signal 43iC. The correction circuit 15 checks the check bits 38. The latch memory data 37 is corrected using the memory data 57 and the syndrome 39 generated by the syndrome generation circuit 14.
バイトイネーブル信号16が第2バイト目の畳込みを示
しているとき、第2バイト目のセレクタ6は第2バイト
目のCPUデータ25、第2図の例では1直”9.ff
l’を選択する。残りの書込みのない第Dバイト、第1
バイト及び第6バイトはそれぞれメモリデータ29,5
0.52を選択する。これにより第2図のように簀込み
データ33が優られる。When the byte enable signal 16 indicates convolution of the second byte, the selector 6 of the second byte selects the CPU data 25 of the second byte, in the example of FIG.
Select l'. Remaining unwritten D-byte, 1st
Byte and 6th byte are memory data 29 and 5 respectively
Select 0.52. As a result, the consolidated data 33 is improved as shown in FIG.
チエツクピット生成回路11は得られた薔込みデータ5
3から畳込みチエツクビット34を生成する。The check pit generation circuit 11 uses the obtained data 5
A convolution check bit 34 is generated from 3.
ここまで完了するとメモリコントa−ラ1oはライトサ
イクルを開始し、メモリに薔込みを示すメモリコントロ
ール信号43を送出し、畳込みデータssと’4込みチ
エツクビット64がメモリ12に書込まれてリードモデ
ファイライトサイクルを終わる。When this is completed, the memory controller a-1o starts a write cycle, sends a memory control signal 43 indicating a write-in to the memory, and writes the convolution data ss and '4 check bit 64 to the memory 12. Finishes the read modify write cycle.
上記リードモデ7アイライトサイクルの動作をタイミン
グチャートで表すと第4図(α)のようになる。本図は
メモリ素子にダイナミックRAMを用いた例で、アクセ
スを高速に行うためページモーWEは、メモリコントロ
ール信号45の詳細である。The operation of the read mode 7 eye-write cycle is shown in a timing chart as shown in FIG. 4 (α). This figure shows an example in which a dynamic RAM is used as the memory element, and the page mode WE is the details of the memory control signal 45 for high-speed access.
一方、同図(blは52とットデータの簀込み(以下、
フルライトと称す。)のタイミングチャートの例である
。第4図において、フルライト時にはCPUデータ21
〜24がそのまま畳込みデータ53となり、メモリ12
からメモリデータ35を絖出すことなくチエツクビット
64を1接生成できるので、リードモデ7アイライトサ
イクルを行う必要がな(、ECC機能を持たないメモリ
と同じタイミングの畳込みサイクルでよい。On the other hand, the same figure (bl is 52) contains data (hereinafter referred to as
It is called full light. ) is an example of a timing chart. In Figure 4, at full write, CPU data 21
~24 becomes the convolution data 53 as it is, and is stored in the memory 12.
Since the check bit 64 can be generated in one step without generating the memory data 35 from the memory, there is no need to perform the read mode 7 eye-write cycle (a convolution cycle with the same timing as a memory without an ECC function is sufficient).
第4図(α)と(b)とを比較すると分かるようにパー
シャルライトはリードモデファイライトサイクルを必要
とするため、先に述べたようにフルライトに比べて約2
倍のアクセス時間を必要とする。As can be seen by comparing Figure 4 (α) and (b), partial write requires a read modify write cycle, so as mentioned earlier, compared to full write, it is about 2
Requires twice the access time.
従って、パーシャルライトが連続するようなプログラム
、例えば80386のバイト、ワードストリング命令実
行時にはECCを持たないメモリ装置に比べ性能の劣下
が生じてしまう。Therefore, when executing a program that involves successive partial writes, for example, 80386 byte or word string instructions, the performance deteriorates compared to a memory device without ECC.
このようにECC方式の記憶装置では信頼性は弁上に向
上にするが、メモリのライト時間が長(なるという問題
がある。Although the reliability of the ECC type storage device is greatly improved as described above, there is a problem in that the memory write time is long.
これを解決する従来の装置として特開f@ 61−11
0247号公報に記載のものがある。As a conventional device to solve this problem, JP-A-61-11
There is one described in Publication No. 0247.
メモリからのデータの読出しは、データに誤りが発生し
ているかどうかチエツクし、1ビット誤りの場合は誤り
ピットの位置を判足し、誤りピットを訂正する。しかし
、誤りが発生してない場合または2ビット誤りの場合は
誤りピット位置の判定及び訂正は行わなくともよいので
この処理時間は必要がない。When reading data from the memory, it is checked whether an error has occurred in the data, and if it is a 1-bit error, the position of the error pit is determined and the error pit is corrected. However, if no error occurs or if there is a 2-bit error, it is not necessary to determine and correct the error pit position, so this processing time is not necessary.
そこで、1ビット誤りが発生していない場合には、誤り
ピット位置の判定及び訂正の時間を短縮したサイクルで
動作を行い、1ビット誤りが発生コした場合にのみサイ
クル時間を延長し、誤りピット位置の判定と訂正を行う
方法がある。上記従来例は特にパーシャルライト時に注
目し、32ピツトのデータのうちCPUに書込み指定さ
れたバイト以外のバイトで誤りが発生した場合にのみ1
ビット誤りとし、この時に限りサイクルを延長する方式
でECC方式でのアクセス時間の改善をはかったもので
ある。Therefore, when a 1-bit error does not occur, the operation is performed in a cycle that shortens the time for determining and correcting the error pit position, and only when a 1-bit error occurs, the cycle time is extended and the error pit position is corrected. There are methods for determining and correcting the position. In the above conventional example, pay special attention to the partial write, and only if an error occurs in a byte other than the byte specified to be written to the CPU among the 32 pits of data.
This method attempts to improve the access time in the ECC method by treating bit errors and extending the cycle only in this case.
前記従来技術の構成を第5図に示す。The configuration of the prior art is shown in FIG.
本図において第3図と同じ萱号のものは第3図のものと
同等の動作を行うものである。44はシンドローム59
から1ビット誤りが発生しているかどうか検出する1と
ットエラー判定回路であり、パーシャルライト時にはバ
イトイネーブル信号16が膏込みを指定していないバイ
トデータに1ビット誤りが発生した場合にのみ1ビット
誤りとする回路である。45は第S図のメモリコントロ
ーラ10に、1とットエラー判定回路44かも出力され
るエラー信号46を検出し、通常は誤り訂正を行わない
短いメモリアクセスを行い、エラー信号46が1ビット
誤り発生を示している場合は、訂正回路15の回路遅延
分だけ通常よりもメモリアクセス時間を延長したサイク
ルを行う回路を付加したメモリコントローラである。In this figure, parts with the same number as in Fig. 3 perform the same operations as those in Fig. 3. 44 is syndrome 59
This is a 1-bit error judgment circuit that detects whether a 1-bit error has occurred in a partial write, and only detects a 1-bit error when a 1-bit error occurs in byte data for which the byte enable signal 16 does not specify embedding. This is the circuit. 45 detects the error signal 46 outputted from the 1-bit error determination circuit 44 to the memory controller 10 in FIG. The case shown is a memory controller to which a circuit is added that performs a cycle in which the memory access time is longer than usual by the circuit delay of the correction circuit 15.
第6図に前記従来技術のタイミングチャートの一例を示
す。同図(α)はパーシャルライト時に1ビット誤りが
発生した場合、同図(,61は、誤りが発生していない
場合のタイミングチャートである。FIG. 6 shows an example of a timing chart of the prior art. 61 is a timing chart when a 1-bit error occurs during partial write, and 61 is a timing chart when no error occurs.
上記従来技術は、一般[1ピット誤りが発生する確率は
非常に小さ(、そのほとんどのサイクルが誤りを発生し
ていない短いサイクルで行われることからパーシャルラ
イトサイクルの高速化に有効である。The above-mentioned conventional technology is effective in speeding up partial write cycles because the probability that a one-pit error will occur is generally very small (and most of the cycles are short cycles in which no errors occur).
しかし、帛6図(blとm4図tblを比較して分かる
ように、低熱としてパーシャルライトアクセスは、フル
ライトアクセスに比べてアクセス時間が非常に長い、t
4tic 80386等のストリング命令ではライトが
連続するため、性粍低下が看るしいものになってしまう
。However, as can be seen by comparing Figure 6 (bl) and Figure m4 (tbl), partial write access has a much longer access time than full write access due to low heat.
With string commands such as 4tic 80386, writes are continuous, so the deterioration in performance becomes noticeable.
本発明の目的は、パーシャルライトアクセスをより高速
化することにある。An object of the present invention is to further speed up partial write access.
上記目的−を達成するため、本発明においては、プログ
ラムの性質上、ライトが連萩したアドレスに対して行わ
れることが多いことに漕目し、ライトの回数だけリード
していたものを、同一ワード内に対して2回以上のライ
トがありた場合、チエツクピット作成のためのメモリか
らのメモリデータの読出しを1回のみで循ませる。In order to achieve the above object, the present invention takes into account that, due to the nature of programs, writes are often performed to consecutive addresses, and the same address is read as many times as the number of writes. If a word is written two or more times, reading of memory data from the memory for creating a check pit is performed only once.
即ち、CPUから記憶装置にライトのアクセス要求があ
った場合、アクセスの要素アドレス、制御情報及びデー
タをラッチして処理の上、CPUから絖げて次のアクセ
ス要求を受けつける。2回目のアクセス要求がライトの
ときラッチした1回目のアクセスと2回目のアクセスの
アドレスをコンパレータにより比較する。比較した結果
か同一の処理単位のアドレス聡内である場合は、1回の
リードサイクルで続出したメモリデータと1回目のライ
トのCPUデータ、及び2回目のライトのCPUデータ
を用いて畳込みデータとチエツクピットを得る。これに
より、記憶装置への少なくとも2度のアクセス要求を1
回のアクセスで行うことができる。That is, when there is a write access request from the CPU to the storage device, the access element address, control information, and data are latched and processed, and then the next access request is received from the CPU. When the second access request is a write, a comparator compares the latched addresses of the first and second accesses. If the result of the comparison is that the address is within the same processing unit, convolution data is created using the memory data successively received in one read cycle, the CPU data of the first write, and the CPU data of the second write. and get a check pit. This allows at least two access requests to the storage device to be
This can be done in one access.
以下、本発明の一実施例を第1図により説明する。 An embodiment of the present invention will be described below with reference to FIG.
本図において第3図、第5図と同じ査号のものは第3図
、第5図のものと同様の動作を行うものである。データ
ラッチ3とBEラッチ1及びアドレスラッチ8はそれぞ
れ、CPUから記憶装置へt’XされたアクセスのCP
Uf−720,バイトイネーブル信号16及びCPUア
ドレス41をラッチするラッチ回路である。コンパレー
タ9はアドレスラッチ8にラッチされたラッチアドレス
42とCPUから次にアクセス要求されたCPUアドレ
ス41を比較し、その結果が同一の処理単位のアドレス
、本実施例では32ビツトの範囲内であるときアドレス
−紋信号19を11°にする回路である。ANDゲート
35はアドレス−km号19とバイトイネーブル信号1
6の論理積を行う回路で、アドレス一致信号19が11
1ならばバイトイネーブル信号16を有効にする。第1
のセレクタ4はラッチバイトイネーブル信号17が第0
バイト目のデータ畳込みを指定しているならば第0バイ
ト目のラッチデータ25を畳込みデータ33に選択し、
バイトイネーブル信号18が第0バイト目の薔込みを指
定しているならば第0バイト目のCPUデータ21を選
択し、それ以外のときは第0バイト目の訂正メモリデー
タ29を選択する回路である。5〜7も同様にそれぞれ
、第1バイト目、第2バイト目、第3バイト目のデータ
に対するセレクタである。In this figure, the same symbols as in FIGS. 3 and 5 perform the same operations as those in FIGS. 3 and 5. The data latch 3, the BE latch 1, and the address latch 8 are the CPU of the t'X access from the CPU to the storage device.
This is a latch circuit that latches the Uf-720, byte enable signal 16, and CPU address 41. The comparator 9 compares the latch address 42 latched in the address latch 8 with the CPU address 41 next requested for access by the CPU, and the result is an address of the same processing unit, which is within the range of 32 bits in this embodiment. This circuit sets the address-print signal 19 to 11 degrees. AND gate 35 connects address-km number 19 and byte enable signal 1
6, the address match signal 19 is 11
If it is 1, the byte enable signal 16 is enabled. 1st
The selector 4 of the latch byte enable signal 17 is set to
If byte-th data convolution is specified, select the 0-th byte latch data 25 as convolution data 33,
If the byte enable signal 18 specifies the fill-in of the 0th byte, the circuit selects the CPU data 21 of the 0th byte, and otherwise selects the correction memory data 29 of the 0th byte. be. Similarly, selectors 5 to 7 are selectors for the first byte, second byte, and third byte, respectively.
本実施例は最初のアクセス要求が第2バイト目の値°9
i°を畳込む要求。2回目のアクセス要求が同じ処理単
位のアドレスの第1バイト目に値”BCE ”を書込む
ときの例である。また、第7囚はこのときのデータの流
れを示す図である。In this example, the first access request is the value of the second byte, °9.
Request to convolve i°. This is an example where the second access request writes the value "BCE" to the first byte of the address of the same processing unit. The seventh figure is a diagram showing the flow of data at this time.
まず、記憶装置に対しCPUからパーシャルライト命令
C以下これを第1のアクセスとする。)があると、パー
シャルライトのアクセス情報をアドレスラッチ8.BE
ラッチ1及びデータラッチ3にそれぞれラッチし、メモ
リコントローラ10はメモリ12からメモリデータ35
及びチエツクピット36の挽出しを開始する。First, a partial write command C is issued from the CPU to the storage device, and this is assumed to be a first access. ), partial write access information is stored in address latch 8. BE
The memory controller 10 latches the memory data 35 from the memory 12 to the latch 1 and the data latch 3 respectively.
Then, extraction of the check pit 36 is started.
メモリコントローラ10が読出し動作を行っている間に
、コンパレータ9にてCPUから次のアクセス要求(以
下、これを第2のアクセスとする。)を受けとり、その
アクセス要求がライトであるときCPUアドレス41と
アドレスラッチ8にラッチしであるラッチアドレス42
とを比較する。その結果両方のアクセスが同−aングワ
ード内のアドレスへのパーシャルライトならばコンパレ
ータ9はアドレス一致信号19を°1°にする。While the memory controller 10 is performing a read operation, the comparator 9 receives the next access request (hereinafter referred to as a second access) from the CPU, and if the access request is a write, the CPU address 41 and latch address 42, which is latched into address latch 8.
Compare with. As a result, if both accesses are partial writes to addresses within the same address word, comparator 9 sets address match signal 19 to 1°.
そして、メモリ12の読出し動作が完了すると、シンド
a−ム生成回路14と訂正回路15において、メモリデ
ータ37に1ビット誤りが発生していた場合は誤り訂正
を行5゜
次に薔込みデータ55の選択を行う。第1バイト目はバ
イトイネーブル信号16の第1バイト目が有効で、かつ
、アドレス一致信号19が”1°なのでCPUデータ2
2の値’BCH@が、第2バイト目はラッチされたバイ
トイネーブル17の第2バイト目が有効なのでラッチデ
コーダ27の1[”9i“が、第0バイト目及び第3バ
イト目はどちらの条件も満たしていないのでそれぞれメ
モリデータ40の第0バイト目29と第3バイト目32
がそれぞれセレクタ4.5,6.7で選ばれ、畳込みデ
ータ33が得られる。When the read operation of the memory 12 is completed, the syndrome generation circuit 14 and the correction circuit 15 correct the error if a 1-bit error has occurred in the memory data 37. Make a selection. Since the first byte of the byte enable signal 16 is valid and the address match signal 19 is "1°," the CPU data 2 is the first byte.
Since the second byte of the latched byte enable 17 is valid, the value 'BCH@ of 2 is 1["9i" of the latch decoder 27, but which byte is the 0th byte and the 3rd byte? Since the conditions are not met, the 0th byte 29 and the 3rd byte 32 of the memory data 40 are respectively
are selected by selectors 4.5 and 6.7, respectively, and convolution data 33 is obtained.
最後にメモリコントローラ10は、この誓込みデータ3
3とチエツクビット生成回路11より生成した蕾込みチ
エツクビット34を膏込み、リードモデファイライトサ
イクルを完了する。Finally, the memory controller 10 stores this pledge data 3.
3 and the check bit 34 generated by the check bit generating circuit 11 are inserted, and the read modify write cycle is completed.
第8図は後者のタイミングチャートの例であり、CPU
からの2回の畳込み要求を、−回のリードモデファイラ
イトサイクルで終えることかできる。FIG. 8 is an example of the latter timing chart, where the CPU
Two convolution requests can be completed in - read-modify-write cycles.
なお、アドレス一致信号19が111でなかった場合つ
まり、連続した同一処理単位のアドレス範囲へのパーシ
ャルライトでなかった場合は、第2のアクセスを開始す
る。しかし、アドレス一致信号19が11°であった場
合は、本アクセス方法により第1のアクセスと第2のア
クセスを同時に完了したことになる。Note that if the address match signal 19 is not 111, that is, if it is not a partial write to the address range of the same continuous processing unit, the second access is started. However, if the address match signal 19 is 11 degrees, it means that the first access and the second access are completed simultaneously by this access method.
以上の実施例ではDRAMのページモードを利用した例
であるが、スタティックカラム方式でも実施可能である
。もちろん、通常のライトサイクルとリードサイクルを
組合せてもよい。また、メモリのデータ幅は52ビツト
ではな(,16ビツトや64ピツトなどでもよい。また
実施例では2回のライトについてアドレスを比較したが
、5回以上のライトのアドレスを比較してもよい。Although the above embodiment uses the page mode of DRAM, it is also possible to use a static column method. Of course, normal write cycles and read cycles may be combined. Also, the data width of the memory is not 52 bits (it may be 16 bits, 64 bits, etc.).Also, in the example, addresses were compared for two writes, but addresses for five or more writes may be compared. .
本発明によれば、ECC@能をもつ記憶装置において、
CPUより該記憶装置へ連続して同一処理単位のアドレ
ス範囲にパーシャルライトがJ&求された場合に、一度
のリードモデ7アイライトサイクルで、2回以上のアク
セス要求を処理することが可能となり1.E −G Q
itよる信頼性の向上を図り−ながらゼフンヤルアイ
トアクセスの高速化を行えるとい5効果がある。According to the present invention, in a storage device having ECC@ capability,
When a partial write is sequentially requested from the CPU to the address range of the same processing unit to the storage device, two or more access requests can be processed in one read mode 7 eye write cycle.1. E-G Q
This has five effects: speeding up Zefunyaruite access while improving IT reliability.
第1図は本発明の一実施例を示す記憶装置の10ツク図
、第2図はパーシャルライトを説明するための概念図、
第3図、第5図は従来の記憶装置の構成を示すブロック
図、第4図、第6図はライトサイクルのタイミングチャ
ートを示す図、第7図は本発明の実施例のデータの流れ
を示した概念図、第8図は本発明の実施例のタイミング
チャートを示す図である。
1・・・BEラッチ 3・・・データラッチ4〜
7・・・第0バイト目〜第3バイト目のセレクタ8・・
・アドレスラッチ 9・・・コンパレータ10・・・
メモリコントローラ
11・・・チエツクピット生成回路
12・・・メモリ
14・・・シンドa−ム生成回路
15・・・訂正回路 2・・・ANDゲート第
4図
(α)
Wε : リード/ライドコシトロール第6図
(α)
Cb)
西橙B明伽 1)八みす夕カレ
第8回FIG. 1 is a 10-step diagram of a storage device showing an embodiment of the present invention, FIG. 2 is a conceptual diagram for explaining partial write,
FIGS. 3 and 5 are block diagrams showing the configuration of a conventional storage device, FIGS. 4 and 6 are write cycle timing charts, and FIG. 7 is a diagram showing the data flow in the embodiment of the present invention. The conceptual diagram shown in FIG. 8 is a diagram showing a timing chart of an embodiment of the present invention. 1... BE latch 3... Data latch 4~
7...Selector 8 for 0th byte to 3rd byte...
・Address latch 9... Comparator 10...
Memory controller 11...Check pit generation circuit 12...Memory 14...Syndrome generation circuit 15...Correction circuit 2...AND gate Figure 4 (α) Wε: Read/ride control Figure 6 (α) Cb) Nishiorange B Meika 1) Eight Misu Yukare No. 8
Claims (1)
ライトデータをラッチするラッチ手段と、該ラッチ手段
にラッチされたライトアドレスと次に前記CPUから要
求された2回目のライトアドレスを比較する手段とを設
け、 該比較手段で比較した結果が、前記ラッチ手段にラッチ
されたライトアドレスと、前記CPUから要求された次
のライトアドレスが該記憶装置の処理単位の範囲であり
、かつ、前記ラッチ手段にラッチしたライト要求と、前
記CPUから要求のあったライト要素とが共にパーシャ
ルライトであった場合、一度のパーシャルライト動作で
2つのライト要求を完了せしめることを特徴とするメモ
リアクセス方式。 2、演算処理装置(以下、CPUとする)からのライト
/リード要求に対してライト/リード動作を実行すると
共に、1ビットエラー訂正機能を有し、リードデータに
1ビットエラーが発生した場合にサイクル時間を延長し
て動作を実行できる記憶装置において、前記CPUから
のパーシャルライト要求の制御情報、ライトアドレス、
ライトデータをラッチするラッチ手段と、第1のパーシ
ャルライト要求時に該ラッチ手段にラッチされたライト
アドレスと、第2のパーシャルライト要求時に前記CP
Uから要求されたライトアドレスとを比較する手段と、
該比較手段で比較した両ライトアドレスが前記記憶装置
の処理単位の範囲であった場合、一度のパーシャルライ
ト動作で前記第1、第2のパーシャルライト要求を完了
する手段とを有することを特徴とするメモリアクセス方
式。[Claims] 1. In a storage device having a data error correction function, control information of a write request from a CPU, a write address,
A latch means for latching the write data, and a means for comparing the write address latched by the latch means with the second write address requested by the CPU, and the result of the comparison by the comparison means is The write address latched by the latch means and the next write address requested from the CPU are within the processing unit range of the storage device, and the write request latched by the latch means and the next write address requested from the CPU A memory access method characterized by completing two write requests with one partial write operation when both write elements are partial writes. 2. In addition to executing write/read operations in response to write/read requests from the arithmetic processing unit (hereinafter referred to as CPU), it also has a 1-bit error correction function, and when a 1-bit error occurs in read data. In a storage device that can execute an operation by extending the cycle time, control information of a partial write request from the CPU, a write address,
A latch means for latching write data, a write address latched by the latch means at the time of the first partial write request, and the CP at the time of the second partial write request.
means for comparing the write address requested by U;
and means for completing the first and second partial write requests with one partial write operation when both write addresses compared by the comparing means are within a processing unit range of the storage device. memory access method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63017103A JPH01194046A (en) | 1988-01-29 | 1988-01-29 | Memory access system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63017103A JPH01194046A (en) | 1988-01-29 | 1988-01-29 | Memory access system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01194046A true JPH01194046A (en) | 1989-08-04 |
Family
ID=11934686
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63017103A Pending JPH01194046A (en) | 1988-01-29 | 1988-01-29 | Memory access system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01194046A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006190425A (en) * | 2005-01-07 | 2006-07-20 | Nec Electronics Corp | Semiconductor memory device |
| JP2006244632A (en) * | 2005-03-04 | 2006-09-14 | Toshiba Corp | Semiconductor memory device |
| JP2006286059A (en) * | 2005-03-31 | 2006-10-19 | Fujitsu Ltd | Semiconductor memory device |
| JP2007066423A (en) * | 2005-08-31 | 2007-03-15 | Toshiba Corp | Semiconductor integrated circuit device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6238953A (en) * | 1985-08-14 | 1987-02-19 | Fujitsu Ltd | Main storage device for compression of partial write access |
| JPS62242258A (en) * | 1986-04-14 | 1987-10-22 | Iwaki Denshi Kk | Storage device |
-
1988
- 1988-01-29 JP JP63017103A patent/JPH01194046A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6238953A (en) * | 1985-08-14 | 1987-02-19 | Fujitsu Ltd | Main storage device for compression of partial write access |
| JPS62242258A (en) * | 1986-04-14 | 1987-10-22 | Iwaki Denshi Kk | Storage device |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006190425A (en) * | 2005-01-07 | 2006-07-20 | Nec Electronics Corp | Semiconductor memory device |
| JP2006244632A (en) * | 2005-03-04 | 2006-09-14 | Toshiba Corp | Semiconductor memory device |
| JP2006286059A (en) * | 2005-03-31 | 2006-10-19 | Fujitsu Ltd | Semiconductor memory device |
| JP2007066423A (en) * | 2005-08-31 | 2007-03-15 | Toshiba Corp | Semiconductor integrated circuit device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6754858B2 (en) | SDRAM address error detection method and apparatus | |
| US4005405A (en) | Error detection and correction in data processing systems | |
| JP4071940B2 (en) | Shared error correction for memory design | |
| US6009548A (en) | Error correcting code retrofit method and apparatus for multiple memory configurations | |
| JP2772391B2 (en) | Bad data algorithm | |
| US20020124129A1 (en) | Method for using RAM buffers with multiple accesses in flash-based storage systems | |
| US20120079346A1 (en) | Simulated error causing apparatus | |
| US5357521A (en) | Address sensitive memory testing | |
| JPS6246347A (en) | Error processing system for information processor | |
| JP3922844B2 (en) | Cache TAG control method and information processing apparatus using the control method | |
| US7689895B2 (en) | On-the fly error checking and correction CODEC system and method for supporting non-volatile memory | |
| JP3170145B2 (en) | Memory control system | |
| JPH01194046A (en) | Memory access system | |
| JPS6129024B2 (en) | ||
| JPH0316655B2 (en) | ||
| JPH02207355A (en) | Memory readout system | |
| JPH0675864A (en) | Memory error recovery system | |
| JPH04312147A (en) | Main storage | |
| JPH08166891A (en) | Fault tolerant computer system | |
| JPH06250937A (en) | Method for memory control, memory control circuit with ecc function and information processor | |
| JPS62130444A (en) | Memory access controller | |
| JPH01133147A (en) | Data processor | |
| JPH04101247A (en) | Main storage device | |
| JPH05158810A (en) | Error detection circuit | |
| JPH02143352A (en) | Memory error detection and correction system |