JPH09259598A - Storage device - Google Patents

Storage device

Info

Publication number
JPH09259598A
JPH09259598A JP8062653A JP6265396A JPH09259598A JP H09259598 A JPH09259598 A JP H09259598A JP 8062653 A JP8062653 A JP 8062653A JP 6265396 A JP6265396 A JP 6265396A JP H09259598 A JPH09259598 A JP H09259598A
Authority
JP
Japan
Prior art keywords
check bit
circuit
data
address
check
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
JP8062653A
Other languages
Japanese (ja)
Inventor
Hiroki Miyata
宏紀 宮田
Hiroshi Saito
寛 齋藤
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.)
Fujitsu Ltd
PFU Ltd
Original Assignee
Fujitsu Ltd
PFU 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 Fujitsu Ltd, PFU Ltd filed Critical Fujitsu Ltd
Priority to JP8062653A priority Critical patent/JPH09259598A/en
Publication of JPH09259598A publication Critical patent/JPH09259598A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a storage device capable of receiving a large amount of storage demand from the CPU without a decline in storage utilization ratio. SOLUTION: A check bit write circuit 33 generates a check bit of data transmitted from a CPU 20, and generates a check bit address on the basis of an address transmitted from the CPU 20. A check bit write cue circuit 34 stores in accordance with each other check bits and check bit addresses generated by the check bit write circuit 33. During a period free of a read demand and a write demand form the CPU 20, the check bit write circuit 33 writes the check bit stored in the check bit write cue circuit 34 to the check bit address stored in the check bit write cue circuit 34.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、記憶装置に関し、
特にデータのエラーチェック機能を有しチェックビット
をデータとは別のメモリ空間に記憶する記憶装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device,
In particular, the present invention relates to a storage device having a data error check function and storing check bits in a memory space different from data.

【0002】[0002]

【従来の技術】記憶装置において、データの信頼性を向
上させるために、一般に、パリティやECC等のチェッ
クビットを設けてデータの読み出しエラーをチェックす
ることが行われる。チェックビットとこれが対応するデ
ータとの対応関係は常に維持されていなければならな
い。
2. Description of the Related Art In a storage device, in order to improve the reliability of data, generally, a check bit such as parity or ECC is provided to check a data read error. The correspondence between the check bit and the data to which it corresponds must always be maintained.

【0003】従って、従来、チェックビットは、例えば
対応するデータのサイズ(例えば8ビット)を当該チェ
ックビットの大きさ(例えば1ビット)だけ大きくした
サイズ(例えば9ビット)にして、ここに格納してい
た。即ち、チェックビットは、対応するデータと同一ア
ドレス上に当該データの一部として格納され、書き込み
/読み出しされていた。
Therefore, conventionally, the check bit is stored here, for example, by increasing the size of the corresponding data (for example, 8 bits) by the size of the check bit (for example, 1 bit) (for example, 9 bits). Was there. That is, the check bit is stored and written / read as a part of the data at the same address as the corresponding data.

【0004】しかし、この方式による場合、データのサ
イズを大きくした分だけ、記憶装置のメモリ制御回路の
信号線の数を増加させなければならない。即ち、チェッ
クビットが付加された専用の構成(例えば×9ビット構
成)の記憶素子を用いなければならない。逆に、チェッ
クビットが付加されていない一般の構成(例えば×8ビ
ット構成)の記憶素子を用いる場合、当該データ格納用
の記憶素子とは別に、チェックビット格納用の記憶素子
を用意しなければならない。
However, according to this method, the number of signal lines of the memory control circuit of the storage device must be increased by the amount corresponding to the increased data size. That is, it is necessary to use a memory element having a dedicated configuration (for example, x9 bit configuration) to which a check bit is added. On the contrary, when using a storage element having a general configuration (for example, × 8 bit configuration) to which a check bit is not added, a storage element for storing the check bit must be prepared separately from the storage element for storing the data. I won't.

【0005】そこで、チェックビット格納用の記憶領域
を予めメモリ空間内における所定の領域に割り付け、対
応するデータを読み出す時に当該チェックビットをも読
み出す方式が提案されている(例えば、特開昭55─1
658号、特開平3─184146号、特開平4─33
6644号)。この方式によれば、記憶装置のメモリ制
御回路の信号線の数を増加させたり、専用の構成の記憶
素子を用いる必要がなく、一般の構成の記憶素子を用い
る場合でもチェックビット格納用の記憶素子を用意する
必要がない。
Therefore, a method has been proposed in which a storage area for storing check bits is allocated in advance to a predetermined area in the memory space, and when the corresponding data is read out, the check bit is also read out (for example, JP-A-55-55). 1
No. 658, JP-A-3-184146, JP-A-4-33.
6644). According to this method, it is not necessary to increase the number of signal lines of the memory control circuit of the memory device or to use a memory element having a dedicated structure, and even if a memory element having a general structure is used, a memory for storing check bits is stored. There is no need to prepare an element.

【0006】[0006]

【発明が解決しようとする課題】前述の方式によれば、
メモリ空間内においてチェックビットをデータとは別に
格納するので、以下のような問題があった。
According to the above-mentioned method,
Since the check bit is stored separately from the data in the memory space, there are the following problems.

【0007】この方式をDRAM、SRAM、フラッシ
ュメモリ等の書き込み/読み出しを行い得るメモリに適
用した場合、ROM(読み出し専用メモリ)のようにア
ドレスが固定されていないので、チェックビットとデー
タとについて相互に対応関係を維持しつつ書き込み/読
み出しを行う必要がある。
When this system is applied to a memory capable of writing / reading such as DRAM, SRAM and flash memory, the address is not fixed unlike ROM (read only memory), so that the check bit and the data are mutually exchanged. It is necessary to perform writing / reading while maintaining the correspondence relationship with.

【0008】このチェックビットとデータとについての
対応関係を維持した書き込み/読み出しは、例えばソフ
トウェアによって行うことができる。しかし、ソフトウ
ェアによる場合、記憶装置のメモリ制御回路に専用のC
PUを設ける必要があり、また、書き込み/読み出しの
速度の向上の障害となる。
Writing / reading while maintaining the correspondence between the check bits and the data can be performed by software, for example. However, in the case of software, a dedicated C for the memory control circuit of the storage device
It is necessary to provide a PU, and this is an obstacle to improving the writing / reading speed.

【0009】一方、このチェックビットとデータとにつ
いての対応関係を維持した書き込み/読み出しは、ハー
ドウェアによって行うことができる。しかし、ハードウ
ェアによる場合であっても、データの書き込みの際に、
当該データの書き込み動作に加えてチェックビットの書
き込み動作を行う必要があることに変わりない。従っ
て、これらの2つの書き込み動作が終了するまで、CP
Uからの次のメモリ要求(書き込み/読み出しの要求)
を受け付けることができなかった。
On the other hand, writing / reading while maintaining the correspondence between the check bits and the data can be performed by hardware. However, even when using hardware, when writing data,
It is still necessary to perform the check bit write operation in addition to the data write operation. Therefore, until these two write operations are completed, CP
Next memory request from U (write / read request)
Could not be accepted.

【0010】以上とは別に、前述の方式によれば、メモ
リ空間内におけるチェックビットの格納方式によって
は、以下のような問題があった。チェックビットの大き
さ(例えば1ビット)はアクセスするデータの大きさ
(例えば8ビット)に対して小さいのが通常である。一
方、メモリ空間は、その全体を同一の構成(例えば×8
ビット構成)の記憶素子によって構成するのが通常であ
る。このため、チェックビットは、メモリ空間内のチェ
ックビット格納用の記憶領域において、データの大きさ
と同様の大きさがある格納領域の一部だけを用いて格納
するか、または、何個かのチェックビットをまとめてデ
ータの大きさと同様の大きさのデータ列にして格納する
必要がある。
Apart from the above, according to the above-mentioned method, there are the following problems depending on the check bit storage method in the memory space. The size of the check bit (eg 1 bit) is usually smaller than the size of the data to be accessed (eg 8 bits). On the other hand, the entire memory space has the same configuration (for example, x8).
It is usually configured by a memory element having a bit configuration). For this reason, the check bits are stored in the storage area for storing the check bits in the memory space by using only a part of the storage area having the same size as the size of the data, or some check bits are stored. It is necessary to store the bits collectively as a data string having the same size as the data size.

【0011】前者の場合、大きな未使用の空間が生じ
て、資源としてのメモリの利用効率が低下するので、現
実には採用できない。これに対して、後者の場合、メモ
リは最大限に利用できる。しかし、1個のデータだけ書
き込む(ライトする)場合、複数個のチェックビットを
まとめてデータの大きさと同様の大きさにしたものを一
旦メモリから読み出し(リードし)、当該ライトするデ
ータのチェックビットのみを書き換えた後に、再びメモ
リにライトする必要がある。即ち、いわゆるリードモデ
ィファイライト動作が必要になる。このため、メモリへ
の書き込み性能が著しく低下する。
In the former case, a large unused space is generated, and the utilization efficiency of the memory as a resource is lowered, so that it cannot be actually adopted. In the latter case, on the other hand, the memory is maximally utilized. However, when writing (writing) only one piece of data, a plurality of check bits that have the same size as the size of the data are once read (read) from the memory, and the check bits of the data to be written. Only after rewriting, it is necessary to write to the memory again. That is, a so-called read modify write operation is required. Therefore, the writing performance to the memory is significantly reduced.

【0012】本発明は、メモリの利用効率及びメモリへ
の書き込み性能を低下させることなく、CPUから多く
のメモリ要求を受け付けることが可能なエラーチェック
機能を有する記憶装置を提供することを目的とする。
An object of the present invention is to provide a storage device having an error check function capable of accepting a large number of memory requests from a CPU without degrading the memory utilization efficiency and the memory writing performance. .

【0013】また、本発明は、メモリの利用効率及びメ
モリへの書き込み性能を低下させることなく、チェック
ビットを含めたメモリからのデータの読み出し動作を高
速にできるエラーチェック機能を有する記憶装置を提供
することを目的とする。
Further, the present invention provides a storage device having an error check function capable of speeding up a data read operation from a memory including a check bit without deteriorating a memory utilization efficiency and a memory write performance. The purpose is to do.

【0014】[0014]

【課題を解決するための手段】図1は本発明の原理構成
図であり、本発明による記憶装置100の構成を示す。
記憶装置100は、データとこれに対応するチェックビ
ットとを異なるアドレスに格納するメモリ40と、CP
U20に接続されこれからのメモリ40への読み出し要
求及び書き込み要求を実行するメモリ制御回路30とか
らなる。メモリ制御回路30はチェックビット書き込み
回路33とチェックビット書き込みキュー回路34とを
備える。
FIG. 1 is a block diagram of the principle of the present invention, showing the configuration of a storage device 100 according to the present invention.
The storage device 100 includes a memory 40 that stores data and check bits corresponding to the data at different addresses, and a CP.
The memory control circuit 30 is connected to the U20 and executes a read request and a write request to the memory 40 from now on. The memory control circuit 30 includes a check bit write circuit 33 and a check bit write queue circuit 34.

【0015】チェックビット書き込み回路33は、CP
U20から送られたデータに基づいてこれに対応するチ
ェックビットを生成し、CPU20から送られたデータ
に対応するアドレスに基づいて前記生成されたチェック
ビットを格納するチェックビットアドレスを生成し、チ
ェックビットアドレスにチェックビットを書き込む。チ
ェックビット書き込みキュー回路34は、チェックビッ
ト書き込み回路33が生成したチェックビット及びチェ
ックビットアドレスを互いに対応させて格納する。CP
U20からのメモリ40への読み出し要求及び書き込み
要求が無い期間において、チェックビット書き込み回路
33が、チェックビット書き込みキュー回路34の格納
するチェックビットを、これに対応するチェックビット
書き込みキュー回路34の格納するチェックビットアド
レスに書き込む。
The check bit write circuit 33 has a CP
A check bit corresponding to this is generated based on the data sent from U20, and a check bit address for storing the generated check bit is generated based on the address corresponding to the data sent from CPU20. Write check bit to address. The check bit write queue circuit 34 stores the check bit and check bit address generated by the check bit write circuit 33 in association with each other. CP
The check bit write circuit 33 stores the check bit stored in the check bit write queue circuit 34 in the corresponding check bit write queue circuit 34 during the period when there is no read request or write request from the U20 to the memory 40. Write to the check bit address.

【0016】本発明の記憶装置によれば、CPU20か
ら送られたデータに基づいて生成されたチェックビット
及びCPU20から送られた前記データに対応するアド
レスに基づいて生成されたチェックビットアドレスが、
チェックビット書き込みキュー回路34に互いに対応さ
せられて一時的に格納される。
According to the storage device of the present invention, the check bit generated based on the data sent from the CPU 20 and the check bit address generated based on the address corresponding to the data sent from the CPU 20 are:
The check bit write queue circuits 34 are associated with each other and temporarily stored.

【0017】従って、本発明の記憶装置は、チェックビ
ット書き込みキュー回路34と言うハードウェアによっ
てチェックビットとデータとについて相互に対応関係を
維持しつつ、書き込み及び読み出しを行うことができ
る。これにより、メモリ40の書き込み及び読み出しの
実行速度を向上できる。
Therefore, the memory device of the present invention can perform writing and reading while maintaining the correspondence relationship between the check bit and the data by the hardware called the check bit write queue circuit 34. Thereby, the execution speed of writing and reading of the memory 40 can be improved.

【0018】また、本発明の記憶装置においては、チェ
ックビット及びチェックビットアドレスがチェックビッ
ト書き込みキュー回路34に一時的に保持されるので、
当該データの書き込みに連続してチェックビットの書き
込みを行う必要がない。従って、メモリ40の書き込み
速度を向上できる。これにより、当該データの書き込み
さえ終了すれば、チェックビットの書き込みを行うこと
なく、CPU20からの次の書き込み要求及び読み出し
の要求を受け付けることができる。
Further, in the memory device of the present invention, since the check bit and the check bit address are temporarily held in the check bit write queue circuit 34,
It is not necessary to continuously write the check bit after writing the data. Therefore, the writing speed of the memory 40 can be improved. As a result, the next write request and read request from the CPU 20 can be accepted without writing the check bit as long as the writing of the data is completed.

【0019】更に、本発明の記憶装置においては、チェ
ックビット及びチェックビットアドレスがチェックビッ
ト書き込みキュー回路34に一時的に保持されるので、
チェックビットの書き込みをCPU20からメモリ要求
が出されていない期間において実行することができる。
即ち、チェックビットの書き込みは、CPU20からは
隠れて見えない書き込み動作である。従って、チェック
ビットの書き込みがCPU20からのメモリ要求の実行
の障害となることはない。これにより、メモリ40にお
いてデータとこれに対応するチェックビットとを異なる
アドレスに格納する方式を採用しても、メモリ40への
書き込み性能が低下することがない。
Further, in the storage device of the present invention, since the check bit and the check bit address are temporarily held in the check bit write queue circuit 34,
The writing of the check bit can be executed during the period when the memory request is not issued from the CPU 20.
That is, the writing of the check bit is a writing operation that is hidden and invisible from the CPU 20. Therefore, writing the check bit does not hinder the execution of the memory request from the CPU 20. As a result, even if a method in which the data and the check bit corresponding to the data are stored in different addresses in the memory 40 is adopted, the writing performance to the memory 40 does not deteriorate.

【0020】本発明の記憶装置によれば、メモリ40に
おいてデータとこれに対応するチェックビットとを異な
るアドレスに格納する方式を採用することによってメモ
リの利用効率の低下を防止しつつ、CPU20からより
多くのメモリ要求を受け付け、また、CPU20から見
たメモリ40の性能を向上できる。
According to the storage device of the present invention, by adopting the method of storing the data and the check bit corresponding thereto in the memory 40 at different addresses, the utilization efficiency of the memory is prevented from being lowered and the CPU 20 Many memory requests can be accepted, and the performance of the memory 40 seen from the CPU 20 can be improved.

【0021】[0021]

【発明の実施の形態】図2は記憶装置構成図であり、本
発明の記憶装置100の構成を示す。図1において、記
憶装置100は、データバス、アドレスバス、コントロ
ールバスを介して、CPU20に接続される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 2 is a block diagram of a storage device, showing the configuration of a storage device 100 of the present invention. In FIG. 1, the storage device 100 is connected to the CPU 20 via a data bus, an address bus, and a control bus.

【0022】CPU20は、記憶装置100又はメモリ
制御回路30に対して、メモリ40についての読み出し
要求及び書き込み要求を送出する。読み出し要求におい
て、読み出すべきアドレスも送出される。書き込み要求
において、書き込むべきデータ及びそのアドレスも送出
される。
The CPU 20 sends a read request and a write request for the memory 40 to the storage device 100 or the memory control circuit 30. In the read request, the address to be read is also sent. In the write request, the data to be written and its address are also transmitted.

【0023】メモリ制御回路30はCPU20に接続さ
れ、これとの間で、アドレスバスを介してアドレス(ア
ドレス信号)の授受を行い、データバスを介してデータ
の授受を行い、コントロールバスを介して各種の制御信
号の授受を行う。メモリ制御回路30の送出するエラー
応答(エラー応答信号)は、コントロールバスを介して
CPU20に送られる。CPU20は、コントロールバ
スを介して、メモリ40への読み出し要求及び書き込み
要求をメモリ制御回路30に送出する。メモリ制御回路
30はメモリ40の読み出し要求及び書き込み要求を実
行する。
The memory control circuit 30 is connected to the CPU 20, and exchanges addresses (address signals) with the CPU 20 via the address bus, exchanges data with the data bus, and transmits via the control bus. Sends and receives various control signals. The error response (error response signal) sent from the memory control circuit 30 is sent to the CPU 20 via the control bus. The CPU 20 sends a read request and a write request to the memory 40 to the memory control circuit 30 via the control bus. The memory control circuit 30 executes a read request and a write request of the memory 40.

【0024】メモリ制御回路30はメモリ40に接続さ
れ、これとの間で、(ローカル)アドレスバスを介して
アドレスの授受を行い、(ローカル)データバスを介し
てデータの授受を行い、(ローカル)コントロールバス
を介して各種の制御信号の授受を行う。メモリ制御回路
30は、コントロールバスを介して、メモリ40への読
み出し要求及び書き込み要求を送出して、CPU20か
ら要求されたメモリ40の読み出し要求及び書き込み要
求を実行する。
The memory control circuit 30 is connected to the memory 40, exchanges addresses with the memory 40 via a (local) address bus, exchanges data with a (local) data bus, ) Sending and receiving various control signals via the control bus. The memory control circuit 30 sends a read request and a write request to the memory 40 via the control bus, and executes the read request and the write request of the memory 40 requested by the CPU 20.

【0025】メモリ制御回路30は、読み出し書き込み
制御回路31、データ書き込み回路32、チェックビッ
ト書き込み回路33、チェックビット書き込みキュー回
路34、読み出し回路35、エラー処理回路36、パス
ワード回路37を備える。
The memory control circuit 30 includes a read / write control circuit 31, a data write circuit 32, a check bit write circuit 33, a check bit write queue circuit 34, a read circuit 35, an error processing circuit 36, and a password circuit 37.

【0026】読み出し書き込み制御回路31は、チェッ
クビット書き込みキュー回路34を参照してメモリ制御
回路30の他の各回路を制御し、メモリ40についての
読み出し及び書き込みを行う。データ書き込み回路32
はメモリ40のデータ空間41の指定されたアドレスへ
データを書き込む。チェックビット書き込み回路33
は、チェックビット及びチェックビットアドレスを生成
し、メモリ40のチェックビット空間42の当該チェッ
クビットアドレスへ当該チェックビットを書き込む。チ
ェックビット書き込みキュー回路34はチェックビット
書き込み回路33が生成したチェックビット及びチェッ
クビットアドレスを一時的に格納する。読み出し回路3
5はメモリ40のデータ空間41からデータを読み出
し、チェックビット空間42から複数のチェックビット
(チェックビットデータ)を読み出す。エラー処理回路
36は、読み出し回路35が読み出したデータと、読み
出し回路35が読み出したチェックビットデータから選
択したチェックビット又はチェックビット書き込みキュ
ー回路34が格納するチェックビットとを用いて、エラ
ーチェックを行う。パスワード回路37は予めメモリ4
0に記憶されたパスワードの設定(解除)を行う。
The read / write control circuit 31 refers to the check bit write queue circuit 34 to control each of the other circuits of the memory control circuit 30 to read / write the memory 40. Data writing circuit 32
Writes data to a specified address in the data space 41 of the memory 40. Check bit writing circuit 33
Generates a check bit and a check bit address, and writes the check bit to the check bit address in the check bit space 42 of the memory 40. The check bit write queue circuit 34 temporarily stores the check bit and check bit address generated by the check bit write circuit 33. Readout circuit 3
Reference numeral 5 reads data from the data space 41 of the memory 40, and reads a plurality of check bits (check bit data) from the check bit space 42. The error processing circuit 36 performs an error check using the data read by the read circuit 35 and the check bit selected from the check bit data read by the read circuit 35 or the check bit stored by the check bit write queue circuit 34. . The password circuit 37 is previously stored in the memory 4
The password stored in 0 is set (released).

【0027】メモリ40はデータとこれに対応するチェ
ックビットとを異なるアドレスに格納する。即ち、メモ
リ40において、データはデータ空間41に格納され、
チェックビットはチェックビット空間42に格納され
る。データ空間41とチェックビット空間42とは、メ
モリ40のメモリ空間においてアドレスによって区切ら
れる。チェックビットは複数のチェックビットの集合
(チェックビットデータ)として同一のアドレスに格納
される。チェックビットの読み出し及び書き込みは、チ
ェックビットデータを単位として行われる。チェックビ
ットデータは、複数のデータに対応する複数のチェック
ビットをまとめて、1個のデータと同一の大きさとした
データ列である。
The memory 40 stores data and check bits corresponding to the data at different addresses. That is, in the memory 40, the data is stored in the data space 41,
The check bit is stored in the check bit space 42. The data space 41 and the check bit space 42 are separated by addresses in the memory space of the memory 40. The check bits are stored at the same address as a set of a plurality of check bits (check bit data). The reading and writing of check bits are performed in units of check bit data. The check bit data is a data string in which a plurality of check bits corresponding to a plurality of data are collected and have the same size as one data.

【0028】メモリ40は、書き込み及び読み出しを行
い得る記憶素子(RAM)であり、例えばフラッシュメ
モリからなる。従って、書き込みを行うためには予め記
憶されたパスワードの設定(解除)が必要であるので、
メモリ制御回路30がパスワード回路37を備える。従
って、メモリ40がDRAM又はSRAMからなる場
合、パスワード回路37は省略される。
The memory 40 is a storage element (RAM) capable of writing and reading, and is composed of, for example, a flash memory. Therefore, in order to write, it is necessary to set (cancel) the password stored in advance.
The memory control circuit 30 includes a password circuit 37. Therefore, when the memory 40 is a DRAM or SRAM, the password circuit 37 is omitted.

【0029】図3はメモリ40の構成を示す。図3に示
すように、メモリ40のデータ空間41において、アド
レスX'n0000 乃至X'n0007 に8個のデータD0乃至D7
が格納される。この例において、同一のアドレスに格納
されたものを1個のデータと言う。1個のデータ(の大
きさ)は8ビットからなる。
FIG. 3 shows the structure of the memory 40. As shown in FIG. 3, in the data space 41 of the memory 40, eight data D0 to D7 are assigned to addresses X'n0000 to X'n0007.
Is stored. In this example, data stored at the same address is called one piece of data. One piece of data (its size) consists of 8 bits.

【0030】チェックビットはパリティチェック用の1
ビットからなる。データD0乃至D7に、各々、チェッ
クビットP0乃至P7が対応する。データD0乃至D7
に対応する8個のチェックビットP0乃至P7がまとめ
られて1個のチェックビットデータとされる。チェック
ビットデータは、チェックビット空間42の同一のアド
レスX'nppp0 に格納される。チェックビットデータのア
ドレスX'nppp0 が、データD0乃至D7の最後尾のアド
レスX'n0007 に連続する必要はない。
The check bit is 1 for parity check.
Consists of bits. Check bits P0 to P7 correspond to the data D0 to D7, respectively. Data D0 to D7
The eight check bits P0 to P7 corresponding to are combined into one check bit data. The check bit data is stored at the same address X'nppp0 in the check bit space 42. It is not necessary that the address X'nppp0 of the check bit data continues to the last address X'n0007 of the data D0 to D7.

【0031】アドレスX'nppp0 のチェックビットデータ
において、データD0乃至D7の中の最小のアドレスX'
n0000 を持つデータD0のチェックビットP0が最下位
ビットとされ、最大アドレスX'n0007 のデータD7のチ
ェックビットP7が最上位ビットとされる。即ち、チェ
ックビットデータにおける各チェックビットの位置は、
当該チェックビットの対応するデータのアドレス(の最
下位ビットの値)によって定まる。この関係はハードウ
ェアによって常に維持される。
In the check bit data of the address X'nppp0, the smallest address X'of the data D0 to D7.
The check bit P0 of the data D0 having n0000 is the least significant bit, and the check bit P7 of the data D7 of the maximum address X'n0007 is the most significant bit. That is, the position of each check bit in the check bit data is
It is determined by (the value of the least significant bit) of the data corresponding to the check bit. This relationship is always maintained by the hardware.

【0032】図4はパスワード回路37を除くメモリ制
御回路30の構成を示す。図4に示すように、メモリ制
御回路30は、タイミング回路(TG)1、アドレス変
換回路3、アドレスキュー4、アドレス比較回路2、マ
ルチプレクサ5、チェックビット生成回路6、チェック
ビットキュー7、リードモディファイライト回路(RM
W)11、マルチプレクサ8、マルチプレクサ9、エラ
ーチェック回路(ECC)10を備える。
FIG. 4 shows the configuration of the memory control circuit 30 excluding the password circuit 37. As shown in FIG. 4, the memory control circuit 30 includes a timing circuit (TG) 1, an address conversion circuit 3, an address queue 4, an address comparison circuit 2, a multiplexer 5, a check bit generation circuit 6, a check bit queue 7, and a read modify. Light circuit (RM
W) 11, a multiplexer 8, a multiplexer 9, and an error check circuit (ECC) 10.

【0033】読み出し書き込み制御回路31はタイミン
グ回路1及びアドレス変換回路3からなる。データ書き
込み回路32はマルチプレクサ5及びマルチプレクサ8
からなる。チェックビット書き込み回路33は、アドレ
ス変換回路3、チェックビット生成回路6、マルチプレ
クサ5、マルチプレクサ8、リードモディファイライト
回路11からなる。チェックビット書き込みキュー回路
34はアドレスキュー4とチェックビットキュー7とか
らなる。読み出し回路35はマルチプレクサ5からな
る。エラー処理回路36はマルチプレクサ9及びエラー
チェック回路10からなる。
The read / write control circuit 31 comprises a timing circuit 1 and an address conversion circuit 3. The data write circuit 32 includes the multiplexer 5 and the multiplexer 8.
Consists of The check bit write circuit 33 includes an address conversion circuit 3, a check bit generation circuit 6, a multiplexer 5, a multiplexer 8 and a read modify write circuit 11. The check bit write queue circuit 34 includes an address queue 4 and a check bit queue 7. The read circuit 35 includes the multiplexer 5. The error processing circuit 36 includes a multiplexer 9 and an error check circuit 10.

【0034】タイミング回路1は、CPU20から送出
された各種の制御信号を取り込んで、これに基づいてメ
モリ制御回路30の他の各回路の制御信号及びメモ40
の制御信号を所定のタイミングで形成してこれらに対し
て送出する。これにより、タイミング回路1はCPU2
0からのメモリ要求(書き込み要求及び読み出し要求)
を実行する。
The timing circuit 1 takes in various control signals sent from the CPU 20, and based on this, the control signals of the other circuits of the memory control circuit 30 and the memo 40.
Control signal is formed at a predetermined timing and sent to them. As a result, the timing circuit 1 becomes the CPU 2
Memory request from 0 (write request and read request)
Execute

【0035】アドレス変換回路3は、タイミング回路1
からの制御信号に従って、読み出し及び書き込みの対象
であるデータに対応するアドレスを取り込んで、これに
基づいて当該データに対応するチェックビットのチェッ
クビットアドレスを生成して(変換して)出力する。
The address conversion circuit 3 is the timing circuit 1.
In accordance with the control signal from, the address corresponding to the data to be read and written is taken in, and the check bit address of the check bit corresponding to the data is generated (converted) and output based on this.

【0036】チェックビット生成回路6は、タイミング
回路1からの制御信号に従って、CPU20からのメモ
リ40への書き込み要求がある場合、CPU20から送
出されたデータを取り込んで所定の演算を行うことによ
って、当該データに基づいてこれに対応するチェックビ
ットを生成して出力する。
When there is a write request from the CPU 20 to the memory 40 in accordance with the control signal from the timing circuit 1, the check bit generation circuit 6 fetches the data sent from the CPU 20 and performs a predetermined operation, thereby A check bit corresponding to this is generated and output based on the data.

【0037】アドレスキュー4はアドレス変換回路3の
生成したチェックビットアドレスを一時的に格納する。
チェックビットキュー7はチェックビット生成回路6の
生成したチェックビットを一時的に格納する。アドレス
キュー4及びチェックビットキュー7は、所定の段数の
FIFOバッファからなり、互いに同一の段数の単位回
路を有し同一の数のアドレス及びチェックビットを格納
できる大きさとされる。アドレスキュー4の単位回路は
8ビットのデータ幅であり、チェックビットキュー7の
単位回路は1ビットのデータ幅である。なお、FIFO
バッファに代えて、シフトレジスタを用いても良い。
The address queue 4 temporarily stores the check bit address generated by the address conversion circuit 3.
The check bit queue 7 temporarily stores the check bit generated by the check bit generation circuit 6. The address queue 4 and the check bit queue 7 are formed of a FIFO buffer having a predetermined number of stages, have unit circuits with the same number of stages, and have a size capable of storing the same number of addresses and check bits. The unit circuit of the address queue 4 has a data width of 8 bits, and the unit circuit of the check bit queue 7 has a data width of 1 bit. In addition, FIFO
A shift register may be used instead of the buffer.

【0038】アドレスキュー4及びチェックビットキュ
ー7である2個のFIFOバッファは、タイミング回路
1からの制御信号に従って、チェックビット及びチェッ
クビットアドレスを互いに対応させて格納し、その先頭
(マルチプレクサ5及びリードモディファイライト回路
11側)に存在するチェックビットアドレス及びチェッ
クビットを、各々、マルチプレクサ5及びリードモディ
ファイライト回路11に出力する。また、チェックビッ
トキュー7は、タイミング回路1からの制御信号に従っ
て、これが格納するチェックビットの中で、アドレス比
較回路2における比較の結果一致したチェックビットア
ドレスに対応するチェックビットをマルチプレクサ9に
出力する。
The two FIFO buffers, which are the address queue 4 and the check bit queue 7, store the check bit and the check bit address in association with each other according to the control signal from the timing circuit 1, and store them at the head (the multiplexer 5 and the read). The check bit address and the check bit existing on the modify write circuit 11 side) are output to the multiplexer 5 and the read modify write circuit 11, respectively. Further, the check bit queue 7 outputs to the multiplexer 9 the check bit corresponding to the check bit address which is coincident with the result of the comparison in the address comparison circuit 2 among the check bits stored therein according to the control signal from the timing circuit 1. .

【0039】アドレス比較回路2は、タイミング回路1
からの制御信号に従って、CPU20からのメモリ40
への読み出し要求がある場合、アドレス変換回路3が生
成したチェックビットアドレスとチェックビットキュー
4の格納するチェックビットアドレスの各々とを比較す
る。アドレス比較回路2は、比較の結果、一致するチェ
ックビットアドレスが存在する場合及び存在しない(不
一致である)場合、各々、一致信号及び不一致信号をタ
イミング回路1に対して送出する。
The address comparison circuit 2 is the timing circuit 1
According to the control signal from the memory 40 from the CPU 20
When there is a read request to the check bit address, the check bit address generated by the address conversion circuit 3 is compared with each of the check bit addresses stored in the check bit queue 4. As a result of the comparison, the address comparison circuit 2 sends a match signal and a mismatch signal to the timing circuit 1 when there is a matching check bit address and when there is no matching check bit address (no matching).

【0040】マルチプレクサ5は、タイミング回路1か
らの制御信号に従って、アドレスキュー4が出力するア
ドレスと、CPU20からのアドレス(又はアドレス変
換回路3の出力するチェックビットアドレス)とのいず
れか一方を択一的に出力する。マルチプレクサ5の出力
するアドレスはメモリ40に入力される。
The multiplexer 5 selects one of the address output from the address queue 4 and the address from the CPU 20 (or the check bit address output from the address conversion circuit 3) according to the control signal from the timing circuit 1. Output. The address output from the multiplexer 5 is input to the memory 40.

【0041】マルチプレクサ8は、タイミング回路1か
らの制御信号に従って、リードモディファイライト回路
11が出力する(新たな)チェックビットデータと、C
PU20からのデータとのいずれか一方を択一的に出力
する。マルチプレクサ8の出力するデータはメモリ40
に入力される。
The multiplexer 8 receives the (new) check bit data output from the read-modify-write circuit 11 and C in accordance with the control signal from the timing circuit 1.
Either one of the data from the PU 20 is output alternatively. The data output from the multiplexer 8 is the memory 40.
Is input to

【0042】マルチプレクサ9は、タイミング回路1か
らの制御信号に従って、チェックビットキュー7が出力
するチェックビットと、メモリ40からのチェックビッ
トとのいずれか一方を択一的に出力する。実際には、マ
ルチプレクサ9は、メモリ40から送出されたチェック
ビットデータ(8ビット)の中からエラーチェックに用
いるためのチェックビット(1ビット)を選択する。即
ち、CPU20からの読み出し要求のアドレス(の最下
位ビットの値)に基づいて、当該エラーチェックに用い
るためのチェックビットを選択する。
The multiplexer 9 selectively outputs either the check bit output from the check bit queue 7 or the check bit output from the memory 40 according to the control signal from the timing circuit 1. Actually, the multiplexer 9 selects the check bit (1 bit) to be used for the error check from the check bit data (8 bits) sent from the memory 40. That is, the check bit used for the error check is selected based on the address (value of the least significant bit) of the read request from the CPU 20.

【0043】エラーチェック回路10は、タイミング回
路1からの制御信号に従って、マルチプレクサ9の出力
するチェックビット(当該データに対応するチェックビ
ット)と、メモリ40からのデータとを用いて当該デー
タについてのエラーチェックを行う。エラーチェック回
路10は、CPU20に対して、エラーチェックによっ
てエラーが発見された場合エラー応答を送出し、エラー
が発見されない場合エラー応答を送出しない。
The error check circuit 10 uses the check bit output from the multiplexer 9 (the check bit corresponding to the data) and the data from the memory 40 in accordance with the control signal from the timing circuit 1 to generate an error regarding the data. Check. The error check circuit 10 sends an error response to the CPU 20 if an error is found by the error check, and does not send an error response if no error is found.

【0044】リードモディファイライト回路11は、タ
イミング回路1からの制御信号に従って、チェックビッ
トキュー7の出力するチェックビットとメモリ40から
のチェックビットデータとを用いて、当該チェックビッ
トデータをモディファイ(交換)して出力する。即ち、
メモリ40からのチェックビットデータ(8ビット)の
中から、当該チェックビットを書き込むべきビット位置
にあるチェックビットを選択して、これを当該チェック
ビットに変更して新たなチェックビットデータを形成す
る。この選択のために、例えば、CPU20からの書き
込み要求のアドレスの最下位ビット(1ビット)の値
が、チェックビットキュー7においてチェックビットの
各々に付加される。
The read-modify-write circuit 11 modifies (exchanges) the check bit data using the check bit output from the check bit queue 7 and the check bit data from the memory 40 according to the control signal from the timing circuit 1. And output. That is,
From the check bit data (8 bits) from the memory 40, the check bit at the bit position where the check bit is to be written is selected and changed to the check bit to form new check bit data. For this selection, for example, the value of the least significant bit (1 bit) of the address of the write request from the CPU 20 is added to each check bit in the check bit queue 7.

【0045】次に、記憶装置100における書き込み動
作について図4及び図5を参照して説明する。図5は記
憶装置100における書き込み動作を示す図である。タ
イミング回路1は、チェックビット書き込みキュー回路
34に空きが無い時、CPU20に対してビジー信号を
送出してメモリ要求を受け付けず、チェックビット書き
込みキュー回路34に格納されたチェックビットの書き
込み(チェックビットライトサイクル)を優先して実行
する。チェックビットライトサイクルについては後述す
る。
Next, the write operation in the memory device 100 will be described with reference to FIGS. FIG. 5 is a diagram showing a write operation in the storage device 100. When there is no space in the check bit write queue circuit 34, the timing circuit 1 sends a busy signal to the CPU 20 and does not accept the memory request, and writes the check bit stored in the check bit write queue circuit 34 (check bit Write cycle) is executed with priority. The check bit write cycle will be described later.

【0046】このために、チェックビット書き込みキュ
ー回路34(アドレスキュー4又はチェックビットキュ
ー7の一方)において、例えばその単位回路にフラグが
付加される。対応する単位回路にチェックビットアドレ
ス又はチェックビットが書き込まれた時点で、対応する
フラグがオン(“1”又はハイレベル)とされる。最後
尾(アドレス変換回路3及びチェックビット生成回路6
側)の単位回路に対応するフラグのオンに応じて、タイ
ミング回路1がビジー信号を送出する。
Therefore, in the check bit write queue circuit 34 (one of the address queue 4 and the check bit queue 7), for example, a flag is added to the unit circuit. When the check bit address or check bit is written in the corresponding unit circuit, the corresponding flag is turned on (“1” or high level). Last (address conversion circuit 3 and check bit generation circuit 6
The timing circuit 1 sends out a busy signal in response to turning on of the flag corresponding to the unit circuit (side).

【0047】CPU20が、記憶装置100のメモリ制
御回路30に対して、メモリ40への書き込み要求(C
PU−WRITE)を送出すると共に、アドレスA0
(図3のX'n0000 )及びデータD0を送出する。
The CPU 20 requests the memory control circuit 30 of the storage device 100 to write to the memory 40 (C
PU-WRITE) and sends the address A0
(X'n0000 in FIG. 3) and data D0 are transmitted.

【0048】タイミング回路1は、メモリ40への書き
込み要求がある場合、自己がビジー信号を送出していな
いからチェックビット書き込みキュー回路34に空きが
有るので、当該書き込み要求(ライトサイクル)を実行
する。即ち、データの書き込みに必要な各種の制御信号
を形成して、データ書き込み回路32にデータの書き込
みを行わせる。
When there is a write request to the memory 40, the timing circuit 1 executes the write request (write cycle) because the check bit write queue circuit 34 has a space because it does not send a busy signal. . That is, various control signals necessary for writing data are formed to cause the data write circuit 32 to write data.

【0049】タイミング回路1がメモリ40への書き込
み要求(RAM−WRITE)を形成してメモリ40に
送出する。これと共に、マルチプレクサ5及びマルチプ
レクサ8が、タイミング回路1の制御により、メモリ制
御書き込み30に取り込んだアドレスA0及びデータD
0をメモリ40に送出する。これにより、メモリ40に
おいて、当該データD0が当該アドレスA0(X'n0000
)に書き込まれる。タイミング回路1はCPU20に
対して書き込み終了(CPU−ACK)を送出する。以
上で書き込みのメモリサイクル(ライトサイクル)は終
了する。
The timing circuit 1 forms a write request (RAM-WRITE) to the memory 40 and sends it to the memory 40. At the same time, the multiplexer 5 and the multiplexer 8 under the control of the timing circuit 1 take in the address A0 and the data D fetched in the memory control write 30.
0 is sent to the memory 40. As a result, in the memory 40, the data D0 corresponds to the address A0 (X'n0000).
) Is written. The timing circuit 1 sends a write end (CPU-ACK) to the CPU 20. This completes the write memory cycle (write cycle).

【0050】タイミング回路1は、ライトサイクルが実
行される場合、これに並行して(又は当該ライトサイク
ルの一部として)、チェックビット書き込み回路33に
当該書き込みされるデータD0についてのチェックビッ
トDP0及びチェックビットアドレスAPを生成させ
て、これをチェックビット書き込みキュー回路34に格
納させる。このために、タイミング回路1は、ライトサ
イクルにおいて、取り込んだアドレスA0及びデータD
0をアドレス変換回路3及びチェックビット生成回路6
に入力する。
When the write cycle is executed, the timing circuit 1 executes the check bit DP0 and the check bit DP0 for the data D0 to be written in the check bit write circuit 33 in parallel (or as part of the write cycle). The check bit address AP is generated and stored in the check bit write queue circuit 34. Therefore, the timing circuit 1 receives the fetched address A0 and data D in the write cycle.
0 is the address conversion circuit 3 and the check bit generation circuit 6
To enter.

【0051】アドレス変換回路3が、アドレスA0に基
づいてチェックビットを書き込むべきアドレス(チェッ
クビットアドレス)AP(図3のX'nppp0 )を生成す
る。チェックビットアドレスAPはアドレスキュー4に
記憶される。チェックビット生成回路6が、データD0
に基づいてチェックビットDPn(図3のP0であって
新しいもの、以下P0’)を生成する。チェックビット
DPnはチェックビットキュー7に記憶される。
The address conversion circuit 3 generates an address (check bit address) AP (X'nppp0 in FIG. 3) in which a check bit should be written based on the address A0. The check bit address AP is stored in the address queue 4. The check bit generation circuit 6 uses the data D0
The check bit DPn (P0 in FIG. 3 which is new, hereinafter P0 ′) is generated based on The check bit DPn is stored in the check bit queue 7.

【0052】チェックビットアドレスAP及びチェック
ビットDPnは、アドレスキュー4及びチェックビット
キュー7において、フラグのオンしていない最も先頭側
の単位回路から順に格納される。チェックビットアドレ
スAP及びチェックビットDPnは、当該チェックビッ
トDPnがメモリ40に書き込まれる(リードモディフ
ァイライトが終了する)まで、アドレスキュー4及びチ
ェックビットキュー7に記憶される。
The check bit address AP and the check bit DPn are stored in the address queue 4 and the check bit queue 7 in order from the unit circuit on the most front side where the flag is not turned on. The check bit address AP and the check bit DPn are stored in the address queue 4 and the check bit queue 7 until the check bit DPn is written in the memory 40 (the read modify write ends).

【0053】書き込みのメモリサイクルの終了により、
メモリ制御回路30及びメモリ40はCPU20に対し
てメモリ要求待ちの状態になる。ここで、CPU20か
らのメモリ要求がある場合、タイミング回路1はこれを
実行する。従って、チェックビットの書き込みを終了す
ることなく、データの書き込み後直ちに次のメモリ要求
を受け付けて実行することができる。
By the end of the write memory cycle,
The memory control circuit 30 and the memory 40 are in a state of waiting for a memory request to the CPU 20. Here, when there is a memory request from the CPU 20, the timing circuit 1 executes this. Therefore, it is possible to receive and execute the next memory request immediately after writing the data without ending the writing of the check bit.

【0054】ここで、メモリ要求が書き込み要求である
場合、前記ライトサイクルを繰り返す。メモリ要求が読
み出し要求である場合、後述の図6又は図7に示すリー
ドサイクルを行う。これから判るように、ライトサイク
ル及びチェックビットライトサイクルは、図5に示すよ
うに必ずしも連続して行われるものではない。図5は、
便宜的にこれらを同一の図面に表したものである。
If the memory request is a write request, the write cycle is repeated. When the memory request is a read request, a read cycle shown in FIG. 6 or 7 described later is performed. As can be seen from this, the write cycle and the check bit write cycle are not necessarily performed continuously as shown in FIG. FIG.
For convenience, these are shown in the same drawing.

【0055】タイミング回路1は、CPU20からのメ
モリ要求がない場合、チェックビット書き込みキュー回
路34に格納されたチェックビットアドレス及びチェッ
クビットがある(先頭の単位回路に対応するフラグがオ
ンしている)時に、当該チェックビットの書き込み(チ
ェックビットライトサイクル)を自動的に実行する。即
ち、チェックビットの書き込みに必要な各種の制御信号
を形成して、チェックビット書き込み回路33にチェッ
クビットの書き込みを行わせる。
When there is no memory request from the CPU 20, the timing circuit 1 has the check bit address and the check bit stored in the check bit write queue circuit 34 (the flag corresponding to the head unit circuit is on). At the same time, writing of the check bit (check bit write cycle) is automatically executed. That is, various control signals necessary for writing the check bit are formed and the check bit writing circuit 33 is made to write the check bit.

【0056】タイミング回路1はメモリ40への読み出
し要求(RAM−READ)を形成してメモリ40に送
出する。これと共に、タイミング回路1の制御により、
アドレスキュー4がその先頭にあるチェックビットアド
レスAP(X'nppp0 )を出力し、これをマルチプレクサ
5がメモリ40に送出する。これにより、次のサイクル
において、メモリ40から当該アドレスA0に格納され
ていたチェックビットデータDP0(図3のP7乃至P
0)が読み出される。
The timing circuit 1 forms a read request (RAM-READ) to the memory 40 and sends it to the memory 40. At the same time, by controlling the timing circuit 1,
The address queue 4 outputs the check bit address AP (X'nppp0) at the head thereof, and the multiplexer 5 sends this to the memory 40. As a result, in the next cycle, the check bit data DP0 stored in the address A0 from the memory 40 (P7 to P7 in FIG. 3).
0) is read.

【0057】タイミング回路1の制御により、チェック
ビットキュー7及びリードモディファイライト回路11
が読み出したチェックビットデータDP0のモディファ
イを実行する。即ち、チェックビットキュー7は、その
先頭にあるチェックビットDPn(P0’)を出力す
る。リードモディファイライト回路11は、チェックビ
ットデータDP0(P7乃至P0)及びチェックビット
DPn(P0’)を取り込んで、チェックビットデータ
DP0の所定のビットP0をチェックビットDPn(P
0’)とする(交換する)。この時、チェックビットキ
ュー7において、チェックビットDPn(P0’)に対
応して記憶されていたアドレスの最下位ビットの値が
“0”であるので、チェックビットデータDP0の最下
位ビットP0がモディファイされる。これにより、リー
ドモディファイライト回路11が新たなチェックビット
データDP1(P7乃至P1及びP0’)を出力する。
The check bit queue 7 and the read modify write circuit 11 are controlled by the timing circuit 1.
The check bit data DP0 read by is modified. That is, the check bit queue 7 outputs the check bit DPn (P0 ′) at the head thereof. The read-modify-write circuit 11 takes in the check bit data DP0 (P7 to P0) and the check bit DPn (P0 '), and converts the predetermined bit P0 of the check bit data DP0 into the check bit DPn (P
0 ') (exchange). At this time, since the value of the least significant bit of the address stored in the check bit queue 7 corresponding to the check bit DPn (P0 ') is "0", the least significant bit P0 of the check bit data DP0 is modified. To be done. As a result, the read-modify-write circuit 11 outputs new check bit data DP1 (P7 to P1 and P0 ').

【0058】次に、タイミング回路1はメモリ40への
書き込み要求(RAM−WRITE)を形成してメモリ
40に送出する。これと共に、タイミング回路1の制御
により、アドレスキュー4及びマルチプレクサ5がアド
レスキュー4の先頭にあるチェックビットアドレスAP
(X'nppp0 )をメモリ40に送出し、また、マルチプレ
クサ8がリードモディファイライト回路11の出力する
新たなチェックビットデータDP1(P7乃至P1及び
P0’)をメモリ40に送出する。これにより、メモリ
40において、当該チェックビットデータDP1が当該
チェックビットアドレスAPに書き込まれる。
Next, the timing circuit 1 forms a write request (RAM-WRITE) to the memory 40 and sends it to the memory 40. At the same time, under the control of the timing circuit 1, the address queue 4 and the multiplexer 5 have the check bit address AP at the head of the address queue 4.
(X'nppp0) is sent to the memory 40, and the multiplexer 8 sends new check bit data DP1 (P7 to P1 and P0 ') output from the read modify write circuit 11 to the memory 40. As a result, the check bit data DP1 is written to the check bit address AP in the memory 40.

【0059】以上でチェックビットデータの書き込みの
メモリサイクル(リードモディファイライトサイクル)
は終了する。この終了と共に、タイミング回路1は、そ
の時点までアドレスキュー4及びチェックビットキュー
7の先頭にあったチェックビットアドレスAP及びチェ
ックビットDPnを無効とする。即ち、アドレスキュー
4及びチェックビットキュー7に格納されているチェッ
クビットアドレス及びチェックビットを、各々、次段の
単位回路に送る。
As described above, the memory cycle for writing the check bit data (read modify write cycle)
Ends. At the same time, the timing circuit 1 invalidates the check bit address AP and the check bit DPn that were at the head of the address queue 4 and the check bit queue 7 until that time. That is, the check bit address and the check bit stored in the address queue 4 and the check bit queue 7 are sent to the unit circuit of the next stage, respectively.

【0060】次に、記憶装置100における読み出し動
作について図4及び図6を参照して説明する。図6は記
憶装置100における読み出し動作であって、データD
0に対応するチェックビットP0’のメモリ40への書
き込み終了後における読み出し動作を示す図である。
Next, the read operation in the memory device 100 will be described with reference to FIGS. FIG. 6 shows a read operation in the storage device 100, which includes data D
FIG. 11 is a diagram showing a read operation after the writing of the check bit P0 ′ corresponding to 0 to the memory 40 is completed.

【0061】CPU20が、メモリ制御回路30に対し
て、メモリ40の読み出し要求(CPU−READ)及
びアドレスA0(X'n0000 )を送出する。タイミング回
路1は、CPU20からのメモリ40の読み出し要求が
ある場合、自己がビジー信号を送出していないので、当
該読み出し要求(リードサイクル)を実行する。即ち、
データの読み出しに必要な各種の制御信号を形成して、
読み出し回路35にデータの読み出しを行わせ、エラー
処理回路36にエラー処理を行わせる。
The CPU 20 sends a read request (CPU-READ) for the memory 40 and the address A0 (X'n0000) to the memory control circuit 30. When there is a read request for the memory 40 from the CPU 20, the timing circuit 1 executes the read request (read cycle) because it does not send a busy signal. That is,
Forming various control signals necessary for reading data,
The read circuit 35 is caused to read data, and the error processing circuit 36 is caused to perform error processing.

【0062】タイミング回路1がメモリ40への読み出
し要求(RAM−READ)を形成してメモリ40に送
出する。これと共に、タイミング回路1の制御により、
マルチプレクサ5がアドレスA0をメモリ40に送出す
る。これにより、次サイクルにおいて、メモリ40から
当該アドレスA0(X'n0000 )に格納されていたデータ
D0が読み出される。このデータD0は、タイミング回
路1の制御の下で、エラーチェック回路10によって取
り込まれる。
The timing circuit 1 forms a read request (RAM-READ) to the memory 40 and sends it to the memory 40. At the same time, by controlling the timing circuit 1,
The multiplexer 5 sends the address A0 to the memory 40. As a result, in the next cycle, the data D0 stored in the address A0 (X'n0000) is read from the memory 40. This data D0 is fetched by the error check circuit 10 under the control of the timing circuit 1.

【0063】一方、タイミング回路1の制御の下、取り
込んだアドレスA0が入力されたアドレス変換回路3
が、読み出すべきデータD0に対応するチェックビット
DPn(P0’)の格納されているチェックビットアド
レスAP(X'nppp0 )を生成させる。そして、タイミン
グ回路1は、アドレス変換回路3の生成したチェックビ
ットアドレスAP(X'nppp0 )と、アドレスキュー4が
格納しているチェックビットアドレスの各々とを、アド
レス比較回路2に比較させる。アドレス比較回路2は、
FIFOバッファからなるアドレスキュー4の単位回路
の各々の各ビットと、アドレス変換回路3の生成したチ
ェックビットアドレスAPの各ビットとを比較するよう
に構成される。これにより、当該比較はアドレス変換回
路3からのチェックビットアドレスAPの入力と略同時
に終了するので、この比較を行っても、リードサイクル
が遅くなることはない。
On the other hand, under the control of the timing circuit 1, the address conversion circuit 3 to which the fetched address A0 is input.
Generates the check bit address AP (X'nppp0) in which the check bit DPn (P0 ') corresponding to the data D0 to be read is stored. Then, the timing circuit 1 causes the address comparison circuit 2 to compare the check bit address AP (X'nppp0) generated by the address conversion circuit 3 and each of the check bit addresses stored in the address queue 4. The address comparison circuit 2
Each bit of each unit circuit of the address queue 4 composed of a FIFO buffer is configured to be compared with each bit of the check bit address AP generated by the address conversion circuit 3. As a result, the comparison ends almost at the same time as the input of the check bit address AP from the address conversion circuit 3, so that the read cycle will not be delayed even if this comparison is performed.

【0064】この場合、既に、データD0に対応するチ
ェックビットP0’のメモリ40への書き込みが終了し
ているので、当該チェックビットアドレスAP(X'nppp
0 )はアドレスキュー4に存在しない。従って、比較の
結果は不一致となり、不一致信号がタイミング回路1に
送られる。以上がアドレスA0のメモリ40への送出と
同一のサイクルにおいて行われる。
In this case, since the check bit P0 'corresponding to the data D0 has already been written in the memory 40, the check bit address AP (X'nppp).
0) does not exist in the address queue 4. Therefore, the result of comparison becomes a mismatch, and a mismatch signal is sent to the timing circuit 1. The above is performed in the same cycle as the transmission of the address A0 to the memory 40.

【0065】不一致信号を受けたタイミング回路1が、
読み出し回路35にメモリ40に格納されたチェックビ
ットP0’を読み出させる。タイミング回路1が、読み
出し要求(RAM−READ)の送出を一旦停止した後
に1サイクルにおいて、再びメモリ40への読み出し要
求(RAM−READ)を形成してメモリ40に送出す
る。これと共に、タイミング回路1の制御により、アド
レス変換回路3が再びチェックビットアドレスAP(X'
nppp0 )を形成して、これをマルチプレクサ5がメモリ
40に送出する。これにより、次サイクルにおいて、メ
モリ40から当該チェックビットアドレスAP(X'nppp
0 )に格納されていたチェックビットデータDP1(P
7乃至P1及びP0’)が読み出される。このチェック
ビットデータDP1の中で所定のチェックビットDPn
(P0’)が、タイミング回路1の制御の下で、マルチ
プレクサ9によって選択的に出力され、エラーチェック
回路11に入力される。この時、アドレスA0(X'n000
0 )の最下位ビットの値が“0”であるので、チェック
ビットデータDP1の中で最下位ビットP0’が選択さ
れる。
The timing circuit 1 which receives the mismatch signal,
The read circuit 35 is caused to read the check bit P0 ′ stored in the memory 40. The timing circuit 1 forms a read request (RAM-READ) to the memory 40 again and sends it to the memory 40 in one cycle after temporarily stopping the sending of the read request (RAM-READ). At the same time, under the control of the timing circuit 1, the address conversion circuit 3 again causes the check bit address AP (X '
nppp0), and the multiplexer 5 sends this to the memory 40. As a result, in the next cycle, the check bit address AP (X'nppp
Check bit data DP1 (P
7 to P1 and P0 ') are read. A predetermined check bit DPn in the check bit data DP1
Under the control of the timing circuit 1, (P0 ′) is selectively output by the multiplexer 9 and input to the error check circuit 11. At this time, address A0 (X'n000
Since the value of the least significant bit of 0) is “0”, the least significant bit P0 ′ of the check bit data DP1 is selected.

【0066】エラーチェック回路11は、タイミング回
路1の制御の下、データD0とチェックビットDPn
(P0’)とを用いて、当該データD0についてのエラ
ーチェックを行う。エラーチェックの結果、読み出した
データD0に異常がない場合、タイミング回路1は、C
PU20に対して、当該データD0を送出すると共に読
み出し終了(CPU−ACK)を送出する。以上でデー
タの読み出しのメモリサイクル(リードサイクル)が終
了する。これにより、メモリ制御回路30及びメモリ4
0はCPU20に対してメモリ要求待ちの状態になる。
データD0に異常がある場合、タイミング回路1は、C
PU20に対して、当該データD0及び読み出し終了に
代えて、エラー応答を返す。
Under the control of the timing circuit 1, the error check circuit 11 receives the data D0 and the check bit DPn.
(P0 ′) is used to perform an error check on the data D0. If there is no abnormality in the read data D0 as a result of the error check, the timing circuit 1
The data D0 is sent to the PU 20, and at the same time the reading end (CPU-ACK) is sent. Thus, the memory cycle (read cycle) for reading data is completed. As a result, the memory control circuit 30 and the memory 4
0 waits for a memory request from the CPU 20.
If the data D0 is abnormal, the timing circuit 1
An error response is returned to the PU 20 instead of the end of the data D0 and reading.

【0067】次に、記憶装置100における読み出し動
作について図4及び図7を参照して説明する。図7は記
憶装置100における読み出し動作であって、データD
0に対応するチェックビットP0’のメモリ40への書
き込み終了前における読み出し動作を示す図である。図
6の場合と同様にして、CPU20が読み出し要求(C
PU−READ)及びアドレスA0(X'n0000 )を送出
し、これに応じて、タイミング回路1が当該読み出し要
求(リードサイクル)を実行する。即ち、タイミング回
路1がメモリ40への読み出し要求(RAM−REA
D)及び取り込んだアドレスA0をメモリ40に送出
し、次サイクルにおいて、メモリ40から当該アドレス
A0(X'n0000 )に格納されていたデータD0が読み出
され、エラーチェック回路10に取り込まれる。
Next, the read operation in the memory device 100 will be described with reference to FIGS. FIG. 7 shows a read operation in the storage device 100, which includes data D
FIG. 9 is a diagram showing a read operation before the end of writing the check bit P0 ′ corresponding to 0 to the memory 40. Similarly to the case of FIG. 6, the CPU 20 requests the read request (C
PU-READ) and address A0 (X'n0000) are transmitted, and in response thereto, the timing circuit 1 executes the read request (read cycle). That is, the timing circuit 1 requests the memory 40 to read (RAM-REA
D) and the fetched address A0 are sent to the memory 40, and in the next cycle, the data D0 stored at the address A0 (X'n0000) is read from the memory 40 and fetched by the error check circuit 10.

【0068】一方、タイミング回路1の制御の下、図6
の場合と同様にして、アドレス変換回路3がチェックビ
ットアドレスAP(X'nppp0 )を生成し、これとアドレ
スキュー4が格納しているチェックビットアドレスの各
々とを、アドレス比較回路2が比較する。
On the other hand, under the control of the timing circuit 1, FIG.
The address conversion circuit 3 generates the check bit address AP (X'nppp0), and the address comparison circuit 2 compares the check bit address AP (X'nppp0) with each of the check bit addresses stored in the address queue 4. .

【0069】この場合、図6の場合とは逆に、データD
0に対応するチェックビットP0’のメモリ40への書
き込みが終了していないので、当該チェックビットアド
レスAP(X'nppp0 )はアドレスキュー4に存在する。
従って、比較の結果は一致し、一致信号がタイミング回
路1に送られる。以上がアドレスA0のメモリ40への
送出と同一のサイクルにおいて行われる。
In this case, contrary to the case of FIG. 6, data D
Since the writing of the check bit P0 ′ corresponding to 0 to the memory 40 is not completed, the check bit address AP (X′nppp0) exists in the address queue 4.
Therefore, the comparison result is in agreement, and the agreement signal is sent to the timing circuit 1. The above is performed in the same cycle as the transmission of the address A0 to the memory 40.

【0070】一致信号を受けたタイミング回路1が、次
のサイクルにおいて、チェックビットキュー7に格納さ
れているチェックビットP0’を出力させる。データD
0の読み出しと並行して、タイミング回路1の制御の
下、チェックビットキュー7が、これに格納されている
チェックビットであって、アドレス比較回路2における
比較において一致したアドレスに対応するチェックビッ
トDPn(P0’)を出力させる。このチェックビット
DPnはマルチプレクサ9に入力され、タイミング回路
1の制御の下で、マルチプレクサ9によって選択的に出
力され、エラーチェック回路11に入力される。
The timing circuit 1 receiving the coincidence signal outputs the check bit P0 'stored in the check bit queue 7 in the next cycle. Data D
In parallel with the reading of 0, under the control of the timing circuit 1, the check bit queue 7 is a check bit stored therein, which corresponds to the check bit DPn corresponding to the address matched in the comparison in the address comparison circuit 2. Output (P0 '). The check bit DPn is input to the multiplexer 9, selectively output by the multiplexer 9 under the control of the timing circuit 1, and input to the error check circuit 11.

【0071】この後、図6と同様にして、タイミング回
路1の制御の下で、エラーチェック回路11におけるデ
ータD0とチェックビットDPn(P0’)とを用いた
当該データD0についてのエラーチェックが行われる。
そして、タイミング回路1からCPU20に対して、デ
ータD0に異常がない場合には当該データD0及び読み
出し終了(CPU−ACK)が送出され、データD0に
異常がある場合にはエラー応答が返される。以上でデー
タの読み出しのメモリサイクル(リードサイクル)が終
了する。これにより、メモリ制御回路30及びメモリ4
0はCPU20に対してメモリ要求待ちの状態になる。
Thereafter, similarly to FIG. 6, under the control of the timing circuit 1, an error check is performed on the data D0 using the data D0 and the check bit DPn (P0 ') in the error check circuit 11. Be seen.
Then, the timing circuit 1 sends to the CPU 20 the data D0 and the read end (CPU-ACK) when the data D0 has no abnormality, and returns the error response when the data D0 has abnormality. Thus, the memory cycle (read cycle) for reading data is completed. As a result, the memory control circuit 30 and the memory 4
0 waits for a memory request from the CPU 20.

【0072】図6と図7との比較から判るように、図7
における読み出し動作は、チェックビットをメモリ40
から読み出す必要がないので、極めて高速で終了する。
従って、この分CPU20から見たメモリ40の性能を
向上できる。また、書き込んだデータが数サイクルの後
に読み出されることが多い記憶装置100においては、
チェックビット書き込みキュー回路34の単位回路の段
数をある程度多くしておくことによって、殆ど全ての読
み出し動作を図7における読み出し動作とすることによ
り、極めて高速化できる。
As can be seen from the comparison between FIG. 6 and FIG.
The read operation in the check bit in the memory 40
It does not need to read from, so it finishes very fast.
Therefore, the performance of the memory 40 viewed from the CPU 20 can be improved accordingly. Further, in the storage device 100 in which written data is often read out after several cycles,
By increasing the number of stages of the unit circuits of the check bit write queue circuit 34 to some extent, almost all the read operations are the read operations in FIG.

【0073】次に、パスワード回路37について図2、
図4及び図8により説明する。前述のように、メモリ4
0がフラッシュメモリからなるので、その読み出しは自
由にできるが、書き込みは予め定められた所定のシーケ
ンスによるパスワードの設定(解除)を必要とする。そ
こで、パスワード回路37が、メモリ40へのライトサ
イクル及びチェックビットライトサイクルにおいて、当
該シーケンスに従ってパスワードの設定を行う。
Next, the password circuit 37 will be described with reference to FIG.
This will be described with reference to FIGS. 4 and 8. As mentioned above, memory 4
Since 0 is a flash memory, its reading can be freely performed, but writing requires setting (cancellation) of a password in a predetermined sequence. Therefore, the password circuit 37 sets the password according to the sequence in the write cycle to the memory 40 and the check bit write cycle.

【0074】メモリ40への前述のデータD0のライト
サイクルにおいて、図8(A)に示すように、読み出し
書き込み制御回路31(タイミング回路1)が、パスワ
ード回路37に以下のシーケンスS1乃至S3を行わせ
る。
In the write cycle of the data D0 to the memory 40, as shown in FIG. 8A, the read / write control circuit 31 (timing circuit 1) performs the following sequences S1 to S3 on the password circuit 37. Let

【0075】パスワード回路37が、タイミング回路1
の制御により、所定のタイミングでアドレス0X05555 及
びデータ0Xaaを出力する。このアドレス0X05555 及びデ
ータ0Xaaを、タイミング回路1の制御により、マルチプ
レクサ5及びマルチプレクサ8がメモリ40に出力す
る。この時、タイミング回路1はメモリ40に対して書
き込み要求(RAM−WRITE)を送出する。これに
より、メモリ40のアドレス0X05555 にデータ0Xaaを書
き込む(S1)。
The password circuit 37 is the timing circuit 1
Under the control of, the address 0X05555 and the data 0Xaa are output at a predetermined timing. The multiplexer 5 and the multiplexer 8 output the address 0X05555 and the data 0Xaa to the memory 40 under the control of the timing circuit 1. At this time, the timing circuit 1 sends a write request (RAM-WRITE) to the memory 40. As a result, the data 0Xaa is written to the address 0X05555 of the memory 40 (S1).

【0076】同様にして、パスワード回路37が出力し
たアドレス0X02aaa 及びデータ0X55により、メモリ40
のアドレス0X02aaa にデータ0X55を書き込む(S2)。
同様にして、パスワード回路37が出力したアドレス0X
05555 及びデータ0Xaaにより、メモリ40のアドレス0X
05555 にデータ0Xaaを書き込む(S3)。
Similarly, the address 0X02aaa and the data 0X55 output by the password circuit 37 are used for the memory 40.
The data 0X55 is written to the address 0X02aaa (S2).
Similarly, the address 0X output by the password circuit 37
Address 0X of memory 40 by 05555 and data 0Xaa
Data 0Xaa is written to 05555 (S3).

【0077】以上により、メモリ40についてのパスワ
ードの設定が終了し、書き込みが可能となる。このシー
ケンスS1乃至S3を行うために、パスワード回路37
は、予めアドレス0X05555 及びデータ0Xaa、アドレス0X
02aaa 及びデータ0X55、及び、この送出の順を記憶す
る。即ち、パスワード回路37は、このシーケンスS1
乃至S3を記憶し、ライトサイクルにおいてタイミング
回路1の制御により当該シーケンスS1乃至S3を自動
的に行う。
As described above, the setting of the password for the memory 40 is completed, and the writing becomes possible. In order to perform the sequences S1 to S3, the password circuit 37
Are address 0X05555, data 0Xaa, address 0X
02aaa, data 0X55, and the order of this transmission are stored. That is, the password circuit 37 uses this sequence S1.
To S3 are stored, and the sequences S1 to S3 are automatically performed under the control of the timing circuit 1 in the write cycle.

【0078】データ書き込み回路32が、前述のように
して、メモリ40のアドレス0Xn0000 (A0)にデータ
D0を書き込む(S4)。メモリ40への前述のチェッ
クビットデータDP1のチェックビットライトサイクル
において、図8(B)に示すように、読み出し書き込み
制御回路31が、パスワード回路37に以下のシーケン
スS7乃至S9を行わせる。
The data write circuit 32 writes the data D0 to the address 0Xn0000 (A0) of the memory 40 as described above (S4). In the above-mentioned check bit write cycle of the check bit data DP1 to the memory 40, the read / write control circuit 31 causes the password circuit 37 to perform the following sequences S7 to S9, as shown in FIG. 8B.

【0079】読み出し回路35が、前述のようにして、
メモリ40のアドレス0Xnppp0 (AP)からチェックビ
ットデータDP0を読み出す(S5)。これは読み出し
動作であるので、パスワードの設定を要しない。
The read circuit 35 operates as described above.
The check bit data DP0 is read from the address 0Xnppp0 (AP) of the memory 40 (S5). Since this is a read operation, there is no need to set a password.

【0080】チェックビット書き込み回路33が、前述
のようにして、読み出したチェックビットデータDP0
をモディファイして新たなチェックビットデータDP1
を形成する(S6)。
The check bit write circuit 33 reads the check bit data DP0 as described above.
The new check bit data DP1
Are formed (S6).

【0081】パスワード回路37が、前述と同様にし
て、アドレス0X05555 及びデータ0Xaaを出力する。そし
て、前述と同様にして、メモリ40のアドレス0X05555
にデータ0Xaaを書き込む(S7)。
The password circuit 37 outputs the address 0X05555 and the data 0Xaa in the same manner as described above. Then, in the same manner as described above, the address 0X05555 of the memory 40 is displayed.
Data 0Xaa is written in (S7).

【0082】同様にして、パスワード回路37が出力し
たアドレス0X02aaa 及びデータ0X55により、メモリ40
のアドレス0X02aaa にデータ0X55を書き込む(S8)。
同様にして、パスワード回路37が出力したアドレス0X
05555 及びデータ0Xaaにより、メモリ40のアドレス0X
05555 にデータ0Xaaを書き込む(S9)。
Similarly, according to the address 0X02aaa and the data 0X55 output from the password circuit 37, the memory 40
The data 0X55 is written to the address 0X02aaa of the (S8).
Similarly, the address 0X output by the password circuit 37
Address 0X of memory 40 by 05555 and data 0Xaa
Data 0Xaa is written to 05555 (S9).

【0083】以上により、メモリ40についてのパスワ
ードの設定が終了し、書き込みが可能となる。パスワー
ド回路37は、このシーケンスS7乃至S9を記憶し、
チェックビットライトサイクルにおいてタイミング回路
1の制御により当該シーケンスS7乃至S9を自動的に
行う。
As described above, the setting of the password for the memory 40 is completed, and the writing becomes possible. The password circuit 37 stores these sequences S7 to S9,
In the check bit write cycle, the sequences S7 to S9 are automatically performed under the control of the timing circuit 1.

【0084】チェックビット書き込み回路33が、前述
のようにして、新たなチェックビットデータDP1をメ
モリ40のアドレス0Xnppp0 に書き込む(S10)。こ
れにより、メモリ40がフラッシュメモリであっても、
CPU20は何らこれを意識することなく、ライトサイ
クルを行うことができる。また、パスワードの設定が、
CPU20のソフトウェアによってではなく、パスワー
ド回路37によって行われるので、これを高速で行うこ
とができる。
The check bit write circuit 33 writes the new check bit data DP1 to the address 0Xnppp0 of the memory 40 as described above (S10). As a result, even if the memory 40 is a flash memory,
The CPU 20 can perform the write cycle without being aware of this. Also, the password setting is
This can be done at high speed because it is done by the password circuit 37, not by the software of the CPU 20.

【0085】[0085]

【発明の効果】以上説明したように、本発明によれば、
データのエラーチェック機能を有する記憶装置におい
て、チェックビット及びチェックビットアドレスを一時
的に保持するハードウェアを設けることによって、チェ
ックビットとデータとについて相互に対応関係を維持し
つつ、書き込み/読み出しを行うことができるので、メ
モリの書き込み/読み出しの実行速度を向上でき、ま
た、データの書き込み動作に連続してチェックビットの
書き込み動作を行う必要をなくすことができるので、チ
ェックビットの書き込み動作の終了を待たずにCPUか
らの次のメモリ要求を受け付けることができ、更に、C
PUからメモリ要求が出されていない期間においてチェ
ックビットの書き込み動作を実行することができるの
で、チェックビットの書き込み動作がCPUからのメモ
リ要求の実行の障害となることを防止でき、結果とし
て、データとチェックビットとを異なるアドレスに格納
する方式を採用してメモリの利用効率の低下を防止しつ
つ、CPUから見たメモリ性能を向上できる。
As described above, according to the present invention,
In a storage device having a data error check function, by providing hardware that temporarily holds a check bit and a check bit address, writing / reading is performed while maintaining a mutual correspondence relationship between the check bit and the data. Therefore, it is possible to improve the execution speed of the memory write / read, and it is possible to eliminate the need to perform the check bit write operation consecutively to the data write operation, so that the check bit write operation is completed. The next memory request from the CPU can be accepted without waiting, and C
Since the write operation of the check bit can be executed while the memory request is not issued from the PU, it is possible to prevent the check bit write operation from interfering with the execution of the memory request from the CPU. It is possible to improve the memory performance seen from the CPU while preventing the deterioration of the memory utilization efficiency by adopting the method of storing the check bit and the check bit in different addresses.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】記憶装置構成図である。FIG. 2 is a configuration diagram of a storage device.

【図3】メモリ説明図である。FIG. 3 is an explanatory diagram of a memory.

【図4】メモリ制御回路説明図である。FIG. 4 is an explanatory diagram of a memory control circuit.

【図5】書き込み動作説明図である。FIG. 5 is an explanatory diagram of a write operation.

【図6】読み出し動作説明図である。FIG. 6 is an explanatory diagram of a read operation.

【図7】読み出し動作説明図である。FIG. 7 is an explanatory diagram of a read operation.

【図8】パスワード制御説明図である。FIG. 8 is an explanatory diagram of password control.

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

1 タイミング回路 2 アドレス比較回路 3 アドレス変換回路 4 アドレスキュー 5、8、9 マルチプレクサ 6 チェックビット生成回路 7 チェックビットキュー 10 エラーチェック回路 11 リードモディファイライト回路 20 CPU 30 メモリ制御回路 31 読み出し書き込み制御回路 32 データ書き込み回路 33 チェックビット書き込み回路 34 チェックビット書き込みキュー回路 35 読み出し回路 36 エラー処理回路 37 パスワード回路 40 メモリ 100記憶装置 1 Timing Circuit 2 Address Comparison Circuit 3 Address Conversion Circuit 4 Address Queue 5, 8, 9 Multiplexer 6 Check Bit Generation Circuit 7 Check Bit Queue 10 Error Check Circuit 11 Read Modify Write Circuit 20 CPU 30 Memory Control Circuit 31 Read / Write Control Circuit 32 Data write circuit 33 Check bit write circuit 34 Check bit write queue circuit 35 Read circuit 36 Error processing circuit 37 Password circuit 40 Memory 100 Storage device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 齋藤 寛 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Hiroshi Saito 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 データとこれに対応するチェックビット
とを異なるアドレスに格納するメモリと、 CPUから送られたデータに基づいてこれに対応するチ
ェックビットを生成し、前記CPUから送られたデータ
に対応するアドレスに基づいて前記生成されたチェック
ビットを格納するチェックビットアドレスを生成し、チ
ェックビットアドレスにチェックビットを書き込むチェ
ックビット書き込み回路と、 前記チェックビット書き込み回路が生成したチェックビ
ット及びチェックビットアドレスを互いに対応させて格
納するチェックビット書き込みキュー回路とからなり、 CPUからの前記メモリへの読み出し要求及び書き込み
要求が無い期間において、前記チェックビット書き込み
回路が、前記チェックビット書き込みキュー回路の格納
するチェックビットを、これに対応する前記チェックビ
ット書き込みキュー回路の格納するチェックビットアド
レスに書き込むことを特徴とする記憶装置。
1. A memory for storing data and a check bit corresponding to the memory at different addresses, and a check bit corresponding to the memory is generated based on the data sent from the CPU. A check bit write circuit that generates a check bit address that stores the generated check bit based on a corresponding address, and writes a check bit to the check bit address, and a check bit and a check bit address that the check bit write circuit generates And a check bit write queue circuit that stores the check bit write queue circuit, the check bit write queue circuit storing the check bit write queue circuit in a period in which there is no read request or write request from the CPU to the memory. A storage device for writing a check bit corresponding to the check bit to a check bit address stored in the check bit write queue circuit corresponding thereto.
【請求項2】 前記チェックビット書き込み回路が、 前記CPUから送られたデータに基づいてこれに対応す
るチェックビットを生成するチェックビット生成回路
と、 前記CPUから送られたデータに対応するアドレスに基
づいて、当該データに対応して生成されたチェックビッ
トを書き込むチェックビットアドレスを生成するアドレ
ス変換回路とからなり、 前記チェックビット書き込みキュー回路が、 前記チェックビット生成回路の生成したチェックビット
を格納するチェックビットキューと、 前記アドレス変換回路の生成したチェックビットアドレ
スを格納するアドレスキューとからなることを特徴とす
る請求項1に記載の記憶装置。
2. The check bit write circuit generates a check bit corresponding to the data sent from the CPU based on the data sent from the CPU, and an address corresponding to the data sent from the CPU. And an address conversion circuit that generates a check bit address that writes the check bit generated corresponding to the data, and the check bit write queue circuit stores the check bit generated by the check bit generation circuit. The storage device according to claim 1, comprising a bit queue and an address queue that stores a check bit address generated by the address conversion circuit.
【請求項3】 前記チェックビット書き込みキュー回路
が所定の段数のFIFOバッファからなり、 前記チェックビット書き込み回路が、前記チェックビッ
ト書き込みキュー回路に格納された順に、当該チェック
ビットの書き込みを行うことを特徴とする請求項1又は
請求項2に記載の記憶装置。
3. The check bit write queue circuit comprises a FIFO buffer having a predetermined number of stages, and the check bit write circuit writes the check bits in the order stored in the check bit write queue circuit. The storage device according to claim 1 or 2.
【請求項4】 当該記憶装置が、更に、CPUから送ら
れたデータを前記メモリに書き込むデータ書き込み回路
を備え、 CPUからの前記メモリへの書き込み要求がある場合に
おいて前記チェックビット書き込みキュー回路に空きが
有る時に、 前記データ書き込み回路が、CPUから送られた当該デ
ータを前記メモリの当該データに対応するアドレスに書
き込み、 前記チェックビット書き込み回路が、当該データに基づ
いて生成したチェックビット及び当該アドレスに基づい
て生成したチェックビットアドレスを前記チェックビッ
ト書き込みキュー回路に格納することを特徴とする請求
項1乃至請求項3のいづれかに記載の記憶装置。
4. The storage device further comprises a data write circuit for writing data sent from the CPU to the memory, and the check bit write queue circuit is vacant when there is a write request from the CPU to the memory. When there is, the data write circuit writes the data sent from the CPU to an address corresponding to the data in the memory, and the check bit write circuit writes the check bit and the address generated based on the data. 4. The storage device according to claim 1, wherein a check bit address generated based on the check bit write queue circuit is stored in the check bit write queue circuit.
【請求項5】 前記メモリは、チェックビットの格納が
複数のデータに対応する複数のチェックビットをまとめ
て1個のデータと同一の大きさとしたチェックビットの
集合として行われるメモリであり、 前記チェックビット書き込み回路が、前記チェックビッ
ト書き込みキュー回路の格納するチェックビットアドレ
スに格納されたチェックビットの集合を前記メモリから
読み出し、当該チェックビットの集合における所定の位
置のチェックビットを、当該チェックビットアドレスに
対応する前記チェックビット書き込みキュー回路の格納
するチェックビットと交換し、交換後の当該チェックビ
ットの集合を前記メモリの当該チェックビットアドレス
に書き込むことによって、当該チェックビットの書き込
みを行うことを特徴とする請求項1に記載の記憶装置。
5. The memory is a memory in which check bits are stored as a set of check bits in which a plurality of check bits corresponding to a plurality of data are collected and have the same size as one data. A bit writing circuit reads a set of check bits stored in the check bit address stored in the check bit write queue circuit from the memory, and sets a check bit at a predetermined position in the set of check bits to the check bit address. The check bit is written by exchanging the check bit stored in the corresponding check bit write queue circuit and writing the set of the exchanged check bits to the check bit address of the memory. In claim 1 Placing the storage device.
【請求項6】 前記記憶装置が、更に、 前記メモリに書き込まれたデータ及びチェックビットを
読み出す読み出し回路と、 データとこれに対応するチェックビットとを用いて当該
データについてのエラーチェックを行うエラー処理回路
を備え、 前記エラー処理回路が、前記読み出し回路が読み出した
データと、このデータに対応するチェックビットであっ
て、前記読み出し回路が読み出したチェックビット又は
前記チェックビット書き込みキュー回路の格納するチェ
ックビットとを用いて、当該データについてのエラーチ
ェックを行うことを特徴とする請求項1に記載の記憶装
置。
6. The error processing for the storage device, further comprising: a read circuit for reading out data and check bits written in the memory; and an error check for the data using the data and check bits corresponding to the data. A circuit, wherein the error processing circuit is data read by the read circuit and check bits corresponding to the data, the check bit read by the read circuit or the check bit stored by the check bit write queue circuit. The storage device according to claim 1, wherein an error check is performed on the data by using and.
【請求項7】 前記記憶装置が、更に、 前記メモリへの読み出し及び書き込みを制御し、CPU
からの前記メモリへの読み出し要求がある場合、前記チ
ェックビット書き込み回路が当該アドレスに基づいて生
成したチェックビットアドレスと前記チェックビット書
き込みキュー回路の格納するアドレスとを比較する読み
出し書き込み制御回路とを備え、 前記比較の結果が一致しない場合、 前記読み出し回路が、当該アドレスに格納されたデータ
を前記メモリから読み出し、前記チェックビット書き込
み回路が当該アドレスに基づいて生成したチェックビッ
トアドレスに格納されたチェックビットを読み出し、 前記エラーチェック回路が、当該読み出されたデータ及
びチェックビットとを用いてエラーチェックを行い、 前記比較の結果が一致する場合、 前記読み出し回路が当該アドレスに格納されたデータを
前記メモリから読み出し、前記チェックビット書き込み
回路がチェックビット書き込みキュー回路に格納されて
いる当該データに対応するチェックビットを出力し、 前記エラーチェック回路が、当該読み出されたデータ及
び出力されたチェックビットとを用いてエラーチェック
を行うことを特徴とする請求項6に記載の記憶装置。
7. The storage device further controls reading from and writing to the memory, and a CPU
And a read / write control circuit for comparing the check bit address generated by the check bit write circuit based on the address with the address stored in the check bit write queue circuit when there is a read request to the memory from the check bit write circuit. If the result of the comparison does not match, the read circuit reads the data stored in the address from the memory, and the check bit stored in the check bit address generated by the check bit write circuit based on the address. Read out, the error check circuit performs an error check using the read data and check bits, and if the result of the comparison matches, the read circuit reads the data stored at the address from the memory. Read from, The check bit write circuit outputs a check bit corresponding to the data stored in the check bit write queue circuit, and the error check circuit uses the read data and the output check bit to make an error. The storage device according to claim 6, wherein a check is performed.
JP8062653A 1996-03-19 1996-03-19 Storage device Withdrawn JPH09259598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8062653A JPH09259598A (en) 1996-03-19 1996-03-19 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8062653A JPH09259598A (en) 1996-03-19 1996-03-19 Storage device

Publications (1)

Publication Number Publication Date
JPH09259598A true JPH09259598A (en) 1997-10-03

Family

ID=13206508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8062653A Withdrawn JPH09259598A (en) 1996-03-19 1996-03-19 Storage device

Country Status (1)

Country Link
JP (1) JPH09259598A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014097793A1 (en) * 2012-12-20 2014-06-26 トヨタ自動車 株式会社 Communication system, communication unit, and communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014097793A1 (en) * 2012-12-20 2014-06-26 トヨタ自動車 株式会社 Communication system, communication unit, and communication method

Similar Documents

Publication Publication Date Title
US4866603A (en) Memory control system using a single access request for doubleword data transfers from both odd and even memory banks
US3618041A (en) Memory control system
JPH07504773A (en) System and method for supporting multi-width memory subsystems
JPH0619752B2 (en) Data transfer method and device
JPH03265964A (en) Transfer parameter setting method for interface device
AU636680B2 (en) Main storage memory cards having single bit set and reset functions
US5812803A (en) Method and apparatus for controlling data transfers between a bus and a memory device using a multi-chip memory controller
JP2001051896A (en) Storage device
US4737908A (en) Buffer memory control system
JPH09259598A (en) Storage device
US20220291993A1 (en) Information processing apparatus and information processing method
JPH0283736A (en) Osc detection system for buffer memory controller
JPH05189360A (en) Data transfer and storage system
JPS6027976A (en) First-in first-out memory device
JP2534321B2 (en) Data transfer control method and apparatus
JPS6391756A (en) Partial write instruction processing system for storage device
JPH01241645A (en) Arithmetic processing unit
JPS62206632A (en) Control system for main storage device
JPH02222047A (en) Memory controller
JPS5842546B2 (en) Store control method
JPS5899857A (en) Access processor of pipeline processing system
JPH02294755A (en) Data processor
JPH06301600A (en) Storage device
JPS6246353A (en) Memory read system
JP2803616B2 (en) I / O bus interface control method

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030603