JPH02304653A - Memory access mode switching system - Google Patents
Memory access mode switching systemInfo
- Publication number
- JPH02304653A JPH02304653A JP1124479A JP12447989A JPH02304653A JP H02304653 A JPH02304653 A JP H02304653A JP 1124479 A JP1124479 A JP 1124479A JP 12447989 A JP12447989 A JP 12447989A JP H02304653 A JPH02304653 A JP H02304653A
- Authority
- JP
- Japan
- Prior art keywords
- data
- error
- memory
- data transfer
- tag
- 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)
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
メモリエラーの発生頻度に応じてキャッシュメモリから
中央処理装置へのデータ転送のモードを切り換えるメモ
リアクセスモード切換方式に関し、メモリエラーの発生
が多い場合に、エラーチェック後にデータ転送を行うモ
ードを設け、メモリエラーの発生頻度に応じてキャッシ
ュメモリから中央処理装置へのデータ転送のモードを切
り換える方式を提供することを目的とし、
格納されているデータの主記憶上のアドレスをタグデー
タとして記憶するタグメモリと該格納デ−タを記憶する
スタティックランダムアクセスメモリSRAMとで構成
されるキャッシュメモリにおいて、該タグメモリのタグ
データと該SRAMの格納データのエラーチェックを行
うエラー解析手段と、該SRAMからシステムの中央処
理装置へのデータ転送のモードを制御するタイミング制
御手段とを有し、前記エラー解析手段によるエラーチェ
ック結果が判明する以前に中央処理装置にデータを転送
し、エラー発生と判明したときには、該エラー発生を割
込みにより該中央処理装置に通知する第1のデータ転送
モードと、前記エラー解析手段によるエラーチェックの
結果エラーが無いと判明した時点で該中央処理装置にデ
ータを転送する第2のデータ転送モードとを切換可能と
するように構成する。[Detailed Description of the Invention] [Summary] Regarding the memory access mode switching method that switches the mode of data transfer from the cache memory to the central processing unit according to the frequency of occurrence of memory errors, when memory errors occur frequently, the error The purpose of this method is to provide a mode in which data is transferred after checking, and to provide a method for switching the mode of data transfer from cache memory to the central processing unit depending on the frequency of memory error occurrence. In a cache memory composed of a tag memory that stores the address of as tag data and a static random access memory SRAM that stores the stored data, an error check is performed on the tag data of the tag memory and the data stored in the SRAM. It has an error analysis means and a timing control means for controlling the mode of data transfer from the SRAM to the central processing unit of the system, and the data is transferred to the central processing unit before the error check result by the error analysis means is known. a first data transfer mode in which when it is determined that an error has occurred, the central processing unit is notified of the error occurrence through an interrupt; The second data transfer mode for transferring data to the device is configured to be switchable.
〔産業上の利用分野]
本発明はコン1°ユータシステムの中央処理装置の処理
能力を上げるためにアクセスタイムを高速化する手段と
して用いられるキャッシュメモリに係り、更に詳しくは
、メモリエラーの発生頻度に応じてキャッシュメモリか
ら中央処理装置へのデータ転送のモードを切り換えるメ
モリアクセスモード切換方式に関す−る。[Field of Industrial Application] The present invention relates to a cache memory used as a means to speed up access time in order to increase the processing capacity of a central processing unit of a computer system, and more specifically, to improve the frequency of memory error occurrence. The present invention relates to a memory access mode switching method for switching the mode of data transfer from a cache memory to a central processing unit according to the data transfer mode.
最近の1チツプCPUには内蔵キャッシュメモリを持っ
ているものが多い。しかしながらこのような内蔵キャッ
シュの容量は小さく、一般に外部に大容量のキャッシュ
メモリを設ける必要がある。Many of the recent single-chip CPUs have built-in cache memory. However, the capacity of such a built-in cache is small, and it is generally necessary to provide an external large-capacity cache memory.
内蔵キャッシュと外部キャッシュの間ではキャッシュア
クセスとしてキャッシュデータの入れ替えが行われ、例
えば外部キャッシュへのリードアクセスにおいてはブロ
ック単位での高速のデータ転送が期待される。Cache data is exchanged between the built-in cache and the external cache as a cache access. For example, in read access to the external cache, high-speed data transfer in block units is expected.
このようなデータ転送時に、外部キャッシュ内に格納さ
れているデータのエラーチェックを行うとデータ転送の
速度が遅くなる。従ってアクセスタイムをできるだけ短
くし、高速でのブロックデータ転送を実現するためには
外部の大容量キャッシュシステムでの障害の程度に応じ
た転送方式の確立が求められている。During such data transfer, if an error check is performed on the data stored in the external cache, the data transfer speed will be slowed down. Therefore, in order to shorten the access time as much as possible and realize high-speed block data transfer, it is necessary to establish a transfer method that is compatible with the degree of failure in the external large-capacity cache system.
キャッシュメモリは、コンピュータシステムの中央処理
装置と主記憶装置との間にあって中央処理装置から見た
主記憶装置への情報の読み出し時間を改善するためのも
のであり、バッファ記憶とも呼ばれている。A cache memory is located between a central processing unit and a main memory of a computer system, and is used to improve the time taken to read information from the central processing unit to the main memory, and is also called a buffer memory.
このようなキャッシュメモリはデータそのものを記憶す
るデータ格納部と主記憶内のどのアドレスのデータを格
納しているかを記憶しておくタグ部(タグメモリ)から
成っている。一般にデータ格納部としてスタティックラ
ム(SRAM)が用いられるキャッシュメモリにおいて
、キャッシュ、ミス、すなわち中央処理装置からアクセ
スされたデータがキャッシュメモリに存在しない時には
主記憶とキャッシュメモリの間でデータ転送が行われる
が、そのデータ交換の基本ユニットはブロックと言われ
る。そのブロックの最適サイズはキャッシュミス時の処
理と転送時間のトレードオフで決定される。Such a cache memory consists of a data storage section that stores the data itself, and a tag section (tag memory) that stores which address in the main memory stores the data. In a cache memory that generally uses static RAM (SRAM) as a data storage unit, data is transferred between the main memory and the cache memory when there is a cache miss, that is, the data accessed by the central processing unit does not exist in the cache memory. However, the basic unit for data exchange is called a block. The optimal size of the block is determined by the trade-off between cache miss processing and transfer time.
牛中7シユミスを減少させ、キャッシュメモリを効率的
に使用するために用いられるセットアソシアティブ方式
の、例えば64にバイトのキャッシュメモリにおいては
、主記憶及びキャッシュメモリは例えばブロックあたり
64バイトを1つの単位として64個のセットに分割さ
れる。従って1つのセットに対してキャッシュメモリは
16ブロツクに分割される。データは主記憶とキャッシ
ュメモリの対応するセットどうしで送受信される。In a set-associative cache memory of, for example, 64 bytes, which is used to reduce system errors and use cache memory efficiently, the main memory and cache memory are divided into units of, for example, 64 bytes per block. It is divided into 64 sets. Therefore, the cache memory is divided into 16 blocks for one set. Data is sent and received between corresponding sets of main memory and cache memory.
キャッシュメモリにおいてはデータ格納部にデータが格
納されているか否か、すなわちヒツトかミスヒツトかが
タグメモリの記憶内容によって判定される。ヒツトした
場合にはそのセットのデータがSRAMから出力される
。すなわちデータリード時には中央処理装置からアクセ
スされたアドレスとタグメモリ内の記憶内容からヒツト
しているか否かが決定され、ヒツトの場合には動作すべ
きSRAMが決定され、データ出力が行われる。In the cache memory, whether or not data is stored in the data storage section, that is, whether it is a hit or a miss, is determined based on the storage contents of the tag memory. If there is a hit, that set of data is output from the SRAM. That is, when reading data, it is determined whether or not there is a hit based on the address accessed by the central processing unit and the contents stored in the tag memory, and if it is a hit, the SRAM to be operated is determined and data output is performed.
ミスヒツトの場合には主記憶装置へのアクセスによって
、キャッシュメモリを経由して中央処理装置へのデータ
転送が行われ、それと同時にタグメモリの更新とSRA
Mのデータの入れ替えが行われる。In the case of a miss, data is transferred to the central processing unit via the cache memory by accessing the main memory, and at the same time the tag memory is updated and the SRA
The data of M is replaced.
データライト時には、ヒツトの場合には動作すべきSR
AMが決定され、データの書き替えが行われる。ミスヒ
ツトの場合には中央処理装置からのデータを主記憶装置
へ転送しキャッシュメモリの書き替えは行われない。こ
こではキャッシュメモリが中継する方式で説明したが、
キャッシュメモリと主記憶制御部が並列に動作する方式
もある。When writing data, the SR that should operate in the case of a human
AM is determined and data is rewritten. In the case of a miss, data from the central processing unit is transferred to the main memory and the cache memory is not rewritten. Here, we explained the method using cache memory as a relay, but
There is also a method in which the cache memory and main memory control unit operate in parallel.
このようなキャッシュメモリ内のスタティックランダム
アクセスメモリ(SRAM)から中央処理装置へのデー
タ転送の方式の従来例のタイムチャートを第5図に示す
。同図において中央処理装置から与えられたアクセス開
始位置のデータAのアドレスによりタグメモリの内容が
調べられ、キャッシュメモリ内にそのアドレスのデータ
が格納されていることを示すタダヒットデータが出力さ
れると、データコンプリート信号DCが中央処理装置に
送られた後に、SRAMからデータAが出力される。そ
の後、SRAM内の次のアドレスのデータB、C,D・
・・が次々とキャッシュメモリから出力され、中央処理
装置に転送される。この場合、1つのデータ出力に要す
る時間はSRAMのサイクルタイムに一致している。FIG. 5 shows a time chart of a conventional method of data transfer from a static random access memory (SRAM) in a cache memory to a central processing unit. In the figure, the contents of the tag memory are checked based on the address of data A at the access start position given by the central processing unit, and free hit data indicating that data at that address is stored in the cache memory is output. After the data complete signal DC is sent to the central processing unit, data A is output from the SRAM. After that, data B, C, D of the next address in the SRAM.
... are output one after another from the cache memory and transferred to the central processing unit. In this case, the time required to output one data matches the cycle time of the SRAM.
第5図のような従来のデータ転送方式ではSRAMから
のデータ出力に要する時間がSRAMのサイクルタイム
に一敗しており、このサイクルタイムとバスのサイクル
タイムとの差がないような場合には、SRAMの出力デ
ータのエラーをチェックする時間的余裕がないという問
題がある。SRAMのデータをチェックするためにSR
AMの1サイクルタイムを必要とすれば、データのエラ
ーチェックを行ってから中央処理装置にデータを転送す
ると、アクセスタイムが2倍になってしまうという問題
点があった。In the conventional data transfer method as shown in Figure 5, the time required to output data from the SRAM is inferior to the SRAM cycle time, and if there is no difference between this cycle time and the bus cycle time, , there is a problem that there is no time to check the output data of the SRAM for errors. SR to check SRAM data
If one AM cycle time is required, there is a problem in that the access time will double if the data is transferred to the central processing unit after being checked for errors.
本発明は、メモリエラーの発生が多い場合に、エラーチ
ェック後にデータ転送を行うモードを設け、メモリエラ
ーの発生頻度に応じてキャッシュメモリから中央処理装
置へのデータ転送のモードを切り換える方式を提供する
ことを目的とする。The present invention provides a method for providing a mode in which data transfer is performed after error checking when memory errors occur frequently, and switching the mode of data transfer from the cache memory to the central processing unit depending on the frequency of memory error occurrence. The purpose is to
第1図は本発明の原理ブロック図である。同図において
キャッシュメモリlはタグメモリ2とスタティックラン
ダムアクセスメモリ(SRAM)3、エラー解析手段4
、及びタイミング制御手段5とによって構成される。タ
グメモリ2はキャッシュメモリlに格納されているデー
タの主記憶6上のアドレスをタグデータとして記憶し、
SRAM3は格納データを記憶する。FIG. 1 is a block diagram of the principle of the present invention. In the figure, cache memory 1 includes tag memory 2, static random access memory (SRAM) 3, and error analysis means 4.
, and timing control means 5. The tag memory 2 stores the address on the main memory 6 of the data stored in the cache memory 1 as tag data,
SRAM3 stores stored data.
エラー解析手段4はタグメモリ2内のタグデータとSR
AM−3の格納データのエラーチェック、例えばパリテ
ィチェックを行う。タイミング制御手段5はキャッシュ
メモリlからシ各テムの中央処理装置7へのデータ転送
のモードを制御する。The error analysis means 4 analyzes the tag data in the tag memory 2 and the SR.
Performs error checking of the data stored in AM-3, for example, parity check. The timing control means 5 controls the mode of data transfer from the cache memory 1 to the central processing unit 7 of each system.
ここでデータ転送のモードは、例えばエラー解析手段4
によるエラー検出の頻度によって切り換えられるものと
する。Here, the data transfer mode is, for example, the error analysis means 4.
It shall be switched depending on the frequency of error detection.
第1図においてキャッシュメモリlから中央処理装置7
へのデータ転送時における作用を説明する。第1のデー
タ転送モードでは、アクセスタイムをできるたけ高速に
するために、エラー解析手段4によるタグメモリ2内の
タグデータ、及びSRAMa内の格納データのエラーチ
ェックの結果が判明する以前に、キャッシュメモリlか
ら中央処理装置7にデータの転送が行われる。エラー解
析手段4によるエラーチェックの結果エラー発生と判明
した場合には、そのエラー発生が例えば割込みにより中
央処理装置7に通知される。中央処理装置7は割込み処
理の中で、例えばキャッシュメモリl内に設けられる図
示しないレジスタの内容を読み取ることにより、エラー
発生アドレスを知ることができる。In FIG. 1, from the cache memory l to the central processing unit 7
The effect when transferring data to is explained. In the first data transfer mode, in order to make the access time as fast as possible, the cache is Data is transferred from memory l to central processing unit 7. If it is determined that an error has occurred as a result of the error check by the error analysis means 4, the occurrence of the error is notified to the central processing unit 7 by, for example, an interrupt. During interrupt processing, the central processing unit 7 can learn the address at which the error has occurred, for example, by reading the contents of a register (not shown) provided in the cache memory I.
第2のデータ転送モードでは、エラー解析手段4のエラ
ーチェックの結果が出るのを待ち、エラーが無いと判明
した時点でキャッシュメモリlから中央処理装置7にデ
ータが転送される。このモ−ドは、例えばタグメモリ2
内のタグデータにエラーが無いと判明した時点で中央処
理装置7にデータを転送するケースと、タグメモリ2内
のタグデータとSRAMa内の格納データとにともにエ
ラーが無いと判明する時点まで待って、中央処理装置7
にデータを転送するケースとに分けることもできる。In the second data transfer mode, the error check result of the error analysis means 4 is waited for, and when it is determined that there is no error, data is transferred from the cache memory l to the central processing unit 7. This mode can be used, for example, with tag memory 2.
In one case, the data is transferred to the central processing unit 7 when it is determined that there is no error in the tag data in the tag memory 2, and in the other, the data is transferred to the central processing unit 7 when it is determined that there is no error in the tag data in the tag memory 2 and the data stored in SRAMa. The central processing unit 7
It can also be divided into cases where data is transferred to
以上のような第1のデータ転送モードと第2のデータ転
送モードとの切換は、前述のようにエラー解析手段4に
よるエラー検出頻度に応じて行われる。一般にメモリエ
ラーが発生する場合にはその頻度が多くなることが多い
ので、そのような場合には第2のデータ転送モードでデ
ータ転送を行い、エラー発生頻度の少ない場合にはアク
セスタイムの高速な第1のモードを用いることができる
。Switching between the first data transfer mode and the second data transfer mode as described above is performed in accordance with the frequency of error detection by the error analysis means 4, as described above. In general, when memory errors occur, they tend to occur frequently, so in such cases, data is transferred using the second data transfer mode, and when errors occur less frequently, data is transferred using the second data transfer mode. A first mode can be used.
以上のように、本発明によればメモリエラーの発生の程
度に応じてデータ転送モードの切り換えを行うことがで
きる。As described above, according to the present invention, data transfer modes can be switched depending on the degree of occurrence of memory errors.
第2図に本発明のメモリアクセスモード切換方式を用い
るキャッシュメモリシステムの実施例の全体構成ブロッ
ク図を示す。同図においてシステムはタグメモリ2、S
RAM3、外部キャッシュ制御部8およびシステムの中
央処理装置7に相当するMPU9から成る。外部キャッ
シュ制御部8はタグアクセス制御部10、SRAMアク
セス制御部11、バスアクセス監視部12、エラー解析
制御部13及びタイミング制御部14から構成される。FIG. 2 shows a block diagram of the overall configuration of an embodiment of a cache memory system using the memory access mode switching method of the present invention. In the same figure, the system includes tag memory 2, S
It consists of a RAM 3, an external cache control section 8, and an MPU 9 corresponding to the central processing unit 7 of the system. The external cache control section 8 includes a tag access control section 10, an SRAM access control section 11, a bus access monitoring section 12, an error analysis control section 13, and a timing control section 14.
タグアクセス制御部10はMPU9からアドレスデータ
全32ビツトのうち“”AO”から“A29“。The tag access control unit 10 receives address data from the MPU 9 from "AO" to "A29" of the total 32 bits.
までの30ビツトを受は取り、“”AO“′から“A2
0゛をタグデータ、“A21゛から“A29”をエント
リアドレスデータとしてタグメモリ2に出力する。タグ
メモリ2はMPU9からのアクセス時にエントリアドレ
スに対応して格納されているデータと、アクセス時に与
えられるタグデータとの比較を行う。比較の結果両者が
一致する時には、SRAM3に対応するデータが格納さ
れていることを示すヒツト信号をSRAMアクセス制御
部11に出力する。またこのヒツト信号はSRAM3を
動作させるチップセレクト信号C8となる。The receiver takes the 30 bits from “”AO”’ to “A2”.
The tag memory 2 outputs 0゛ as tag data and ``A21'' to ``A29'' as entry address data.The tag memory 2 outputs the data stored corresponding to the entry address when accessed from the MPU 9 and the data given at the time of access. When the comparison results in a match, a hit signal indicating that the corresponding data is stored in the SRAM 3 is output to the SRAM access control unit 11. This hit signal also causes the SRAM 3 to be stored. This becomes the chip select signal C8 for operation.
SRAMアクセス制御部11はMPU9から送出される
アドレスデータのうち“A30”及び、A31”を受は
取り、この2ビツトを最初のSRAMアクセス時のブロ
ック内アドレスとしてSRAM3に送出し、その後SR
AM3からのデータ転送アドレスを作成し°て次々と送
出する。バスアクセス監視部12は外部キャッシュアク
セスの条件下で、バスサイクルがスタートした時点でタ
イミング制御部14を起動する。The SRAM access control unit 11 receives "A30" and "A31" from the address data sent from the MPU 9, sends these 2 bits to the SRAM 3 as an intra-block address at the time of the first SRAM access, and then sends them to the SRAM 3.
Create a data transfer address from AM3 and send it one after another. The bus access monitoring unit 12 activates the timing control unit 14 when a bus cycle starts under conditions of external cache access.
エラー解析制御部13はタグメモリ2内のタグデータと
SRAMa内の格納データのエラー、例えばパリティエ
ラーをチェックし、その結果を保持して、データ転送モ
ードに対応したエラー通知をMPU9に行うと同時に、
タイミング制御部14にそのモードに対応したタイミン
グ制御を行わせる。The error analysis control unit 13 checks the tag data in the tag memory 2 and the stored data in SRAMa, for example, for parity errors, holds the results, and notifies the MPU 9 of errors corresponding to the data transfer mode. ,
The timing control unit 14 is caused to perform timing control corresponding to the mode.
ここでデータ転送モードには3種あり、その第11すな
わちモード“O”はタグデータまたはSRAM内格納デ
ータのエラー検出時点でMPU9に割込みを行うもので
あり、SRAM3からのデータ転送はエラーチェック終
了以前に行われる。There are three types of data transfer modes, and the 11th mode, mode "O", interrupts the MPU 9 when an error is detected in the tag data or data stored in the SRAM, and the data transfer from the SRAM 3 ends when the error check is completed. done before.
すなわちモード“0°”では、タグメモリ2からヒツト
信号がSRAMアクセス制御部11に出力された時点で
、タイミング制御部14からデータコンプリート信号D
CがMPU9に出力される。That is, in mode "0°", when the hit signal is output from the tag memory 2 to the SRAM access control section 11, the timing control section 14 outputs the data complete signal D.
C is output to the MPU 9.
第2のモードのうちの第1のケースであるモード“l”
では、タグメモリ2からヒツト信号が出力された後、エ
ラー解析制御部13によりタグデータにエラーが無いと
判定された時点で、タイミング制御部14から信号DC
がMPU9に出力され、データ転送が行われる。もしタ
グデータにエラーがある場合には、タグバスエラーがエ
ラー解析制御部13から、またタイミング制御部14か
らデータコンプリート信号DCがMPU9に出力される
。さらに、データ転送が行われた後にSRAMa内の格
納データにエラーが検出された場合には、エラー解析制
御部13から割込みとしてエラーがMPU9に通知され
る。Mode “l” which is the first case of the second mode
After the hit signal is output from the tag memory 2, when the error analysis control section 13 determines that there is no error in the tag data, the timing control section 14 outputs the signal DC.
is output to the MPU 9, and data transfer is performed. If there is an error in the tag data, a tag bus error is output from the error analysis control section 13 and a data complete signal DC is output from the timing control section 14 to the MPU 9. Furthermore, if an error is detected in the data stored in SRAMa after data transfer, the error analysis control unit 13 notifies the MPU 9 of the error as an interrupt.
第2のモード中の第2のケース、すなわちモード“2″
ではエラー解析制御部13によってタグデータとSRA
M内の格納データとの両方にエラーが無いと判定された
時点で、タイミング制御部14からデータコンプリート
信号DCがMPU9に出力され、データが転送される。The second case in the second mode, i.e. mode “2”
Then, the error analysis control unit 13 analyzes the tag data and SRA.
When it is determined that there is no error in both the data stored in M and the data stored in M, a data complete signal DC is output from the timing control unit 14 to the MPU 9, and the data is transferred.
タグデータとSRAM内の格納データとのいずれかにエ
ラーがある場合には、エラー解析制御部13からバスエ
ラーが、またタイミング制御部14からデータコンプリ
ート信号DCがMPU9に出力される。If there is an error in either the tag data or the data stored in the SRAM, the error analysis control section 13 outputs a bus error and the timing control section 14 outputs a data complete signal DC to the MPU 9.
第3図にタイミング制御部14の実施例の基本構成ブロ
ック図を示す。タイミング制御部14は、タイミング設
定レジスタ15とタイミングツリー16とから成る。タ
イミングツリー16には第2図のバスアクセス監視部1
2からタイミング起動信号が入力する。FIG. 3 shows a basic configuration block diagram of an embodiment of the timing control section 14. The timing control section 14 includes a timing setting register 15 and a timing tree 16. The timing tree 16 includes the bus access monitoring unit 1 shown in FIG.
A timing start signal is input from 2.
第3図においてタイミング設定レジスタ15には前述の
3つのデータ転送モードに応じて、′0”から2゛の3
ビツトが設定され、その3ビツトのうち1°゛になって
いるビットのタイミングが選択される。このタイミング
設定レジスタの内容は、例えばメモリエラーの発生頻度
に応じて、エラー解析制御部13により管理される。そ
して選択されたビットのタイミング出力が第2図のSR
AMアクセス制御部11に出力される。タイミング設定
レジスタの“0°゛から°“2°゛ビツトの複数ビット
が“1″′になっている場合には、例えば上位ビットが
優先される。In FIG. 3, the timing setting register 15 has three registers from '0' to 2' according to the three data transfer modes mentioned above.
A bit is set, and the timing of the bit that is 1° out of the 3 bits is selected. The contents of this timing setting register are managed by the error analysis control unit 13 according to the frequency of occurrence of memory errors, for example. Then, the timing output of the selected bit is SR in Figure 2.
It is output to the AM access control section 11. When a plurality of bits from 0° to 2° in the timing setting register are set to 1, for example, the upper bits are given priority.
第4図は本発明におけるデータのブロック転送の実施例
のタイムチャートである。同図において(a)、 (b
)、 (C)はそれぞれモード“0” II I I
I。FIG. 4 is a time chart of an embodiment of data block transfer according to the present invention. In the same figure, (a), (b)
), (C) are respectively mode “0” II I I
I.
“2”のタイムチャートを示す。A time chart of “2” is shown.
モード“0°“におけるブロック転送のタイムチャート
の第4図(a)では、ブロック転送指示信号とともにア
クセス開始位置にあるデータAのアドレスが与えられる
と、タグメモリ2のヒツト情報の出力後にMPU9にデ
ータコンプリート信号DCが送られる。それと同時にデ
ータ転送のモードを示す信号が出力され、A、B、C,
D(7)順でMPU9にデータが次々と転送される。こ
の転送においては、データAの転送後火のSRAMサイ
クルで直ちにデータBが転送される。以下同様にデータ
C,Dが転送される。すなわちこのモードでは前述のよ
うにエラーチェックの終了以前にデータを転送するため
、エラー解析制御部13によってエラーが検出された場
合には、割込みによってMPU9にそれが通知される。In FIG. 4(a) of the block transfer time chart in mode "0°", when the address of data A at the access start position is given together with the block transfer instruction signal, the MPU 9 A data complete signal DC is sent. At the same time, a signal indicating the data transfer mode is output, A, B, C,
Data is transferred one after another to the MPU 9 in order D(7). In this transfer, data B is transferred immediately after data A is transferred in the next SRAM cycle. Data C and D are subsequently transferred in the same manner. That is, in this mode, data is transferred before the end of the error check as described above, so if an error is detected by the error analysis control unit 13, the MPU 9 is notified of it by an interrupt.
第4図(b)はモード“l”におけるデータ転送のタイ
ムチャートである。同図において、アクセス開始位置の
データAのアドレスとブロック転送指示信号が与えられ
ると、タグ°メモリ2内のタグデータのエラーチェック
がエラー解析制御部13によって行われ、タグエラーが
無いと判明した時点でデータコンプリート信号DCがM
PLJ9に出力され、それと同時にデータAが転送され
る。このとき、データ転送モード信号も同時に出力され
る。FIG. 4(b) is a time chart of data transfer in mode "1". In the figure, when the address of data A at the access start position and the block transfer instruction signal are given, an error check of the tag data in the tag memory 2 is performed by the error analysis control unit 13, and it is determined that there is no tag error. At this point, the data complete signal DC is M
It is output to PLJ9, and data A is transferred at the same time. At this time, a data transfer mode signal is also output at the same time.
その後、データAの次のアドレスのデータBの転送準備
として、データBに対するタグデータのエラーチェック
がエラー解析制御部13によって行われる。そしてエラ
ーが無いことが判明した時点でデータコンプリート信号
DCがMPU9に出力されると同時にデータBが転送さ
れる。以下、全く同様にしてデータC,Dの転送が行わ
れる。Thereafter, in preparation for transferring data B at the next address of data A, the error analysis control unit 13 performs an error check on the tag data for data B. When it is determined that there is no error, a data complete signal DC is output to the MPU 9 and data B is transferred at the same time. Thereafter, data C and D are transferred in exactly the same manner.
第4図(C)がモード“2”の転送タイムチャートであ
る。同図においてアクセス開始位置のデータへのアドレ
スとブロック転送指示信号が与えられると、エラー解析
制御部13によってタグエラーとSRAM内格納データ
エラーの両方のチェックが行われる。そしてその結果エ
ラーが無いと判明した時点で、データコンプリート信号
DCがMPU9に出力され、またデータ転送モード信号
も出力される。そしてデータAの転送が行われる。次に
アドレスが更新され、次のアドレスBに対してタグエラ
ーとSR′AM内データエラーのチェックが行われる。FIG. 4(C) is a transfer time chart for mode "2". In the figure, when an address to data at an access start position and a block transfer instruction signal are given, the error analysis control unit 13 checks both tag errors and errors in data stored in the SRAM. When it is determined that there is no error, a data complete signal DC is output to the MPU 9, and a data transfer mode signal is also output. Data A is then transferred. Next, the address is updated, and the next address B is checked for tag errors and data errors in SR'AM.
そしてエラーが無いと判明した時点で、データコンプリ
ート信号DCとデータBがMPU9に出力される。以下
、全く同様にしてデータC9Dの転送が行われる。When it is determined that there is no error, the data complete signal DC and data B are output to the MPU 9. Thereafter, data C9D is transferred in exactly the same manner.
以上のように、本発明によればタグデータ及びSRAM
内のデータエラーの発生頻度に応じてデータ転送モード
を切り換えることができる。なお、データ転送モードの
切り換えをメモリエラーの発生頻度ではなく、MPU9
によって実行される処理に応じて行うこともできる。す
なわら、誤ったデータを用いると、その影響が大きい特
定の処理に対しては、例えばモード“2゛を使用するこ
とになる。As described above, according to the present invention, tag data and SRAM
The data transfer mode can be switched depending on the frequency of occurrence of data errors within the data transfer mode. Note that switching the data transfer mode is not based on the frequency of memory errors, but based on the MPU9.
It can also be performed according to the process executed by. That is, for example, mode "2" is used for a specific process that would have a large effect if incorrect data were used.
以上説明したように、本発明のメモリアクセスモード切
換方式を用いることにより、コンピュータシステムの中
央処理装置の処理能力を犠牲にすることなく、高速でか
つエラーに強いシステムを構成することが可能になる。As explained above, by using the memory access mode switching method of the present invention, it is possible to configure a high-speed and error-resistant system without sacrificing the processing capacity of the central processing unit of the computer system. .
第1図は本発明の原理ブロック図、
第2図はキャッシュメモリシステムの実施例の全体構成
を示すブロック図、
第3図はタイミング制御部の実施例の基本構成を示すブ
ロック図、
第4図はデータのブロック転送の実施例のタイムチャー
ト、
第5図はデータ転送方式の従来例のタイムチャートであ
る。
1・・・キャッシュメモリ、
2・・・タグメモリ、
3・・・SRAM。
9・・・MPU。
13・・・エラー解析制御部、
14・・・タイミング制御部。FIG. 1 is a block diagram of the principle of the present invention. FIG. 2 is a block diagram showing the overall configuration of an embodiment of a cache memory system. FIG. 3 is a block diagram showing the basic configuration of an embodiment of a timing control section. is a time chart of an embodiment of data block transfer, and FIG. 5 is a time chart of a conventional example of a data transfer method. 1... Cache memory, 2... Tag memory, 3... SRAM. 9...MPU. 13... Error analysis control section, 14... Timing control section.
Claims (1)
グデータとして記憶するタグメモリ(2)と該格納デー
タを記憶するスタティックランダムアクセスメモリSR
AM(3)とで構成されるキャッシュメモリ(1)にお
いて、 該タグメモリ(2)のタグデータと該SRAM(3)の
格納データのエラーチェックを行うエラー解析手段(4
)と、 該SRAM(3)からシステムの中央処理装置(7)へ
のデータ転送のモードを制御するタイミング制御手段(
5)とを有し、 前記エラー解析手段(4)によるエラーチェック結果が
判明する以前に中央処理装置(7)にデータを転送し、
エラー発生と判明したときには、該エラー発生を割込み
により該中央処理装置(7)に通知する第1のデータ転
送モードと、 前記エラー解析手段(4)によるエラーチェックの結果
エラーが無いと判明した時点で該中央処理装置(7)に
データを転送する第2のデータ転送モードとを切換可能
とすることを特徴とするメモリアクセスモード切換方式
。[Claims] A tag memory (2) that stores the address on the main memory (6) of stored data as tag data, and a static random access memory SR that stores the stored data.
In the cache memory (1) consisting of an AM (3), an error analysis means (4) performs an error check on the tag data of the tag memory (2) and the data stored in the SRAM (3).
), and timing control means (
5), transmitting the data to the central processing unit (7) before the error check result by the error analysis means (4) is known;
A first data transfer mode in which when it is determined that an error has occurred, the central processing unit (7) is notified of the error occurrence through an interrupt; and a point in time when it is determined that there is no error as a result of error checking by the error analysis means (4). A memory access mode switching method characterized in that it is possible to switch between a second data transfer mode for transferring data to the central processing unit (7) and a second data transfer mode for transferring data to the central processing unit (7).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1124479A JPH02304653A (en) | 1989-05-19 | 1989-05-19 | Memory access mode switching system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1124479A JPH02304653A (en) | 1989-05-19 | 1989-05-19 | Memory access mode switching system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02304653A true JPH02304653A (en) | 1990-12-18 |
Family
ID=14886539
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1124479A Pending JPH02304653A (en) | 1989-05-19 | 1989-05-19 | Memory access mode switching system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02304653A (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01318128A (en) * | 1988-06-20 | 1989-12-22 | Pfu Ltd | Cache error processing system |
-
1989
- 1989-05-19 JP JP1124479A patent/JPH02304653A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01318128A (en) * | 1988-06-20 | 1989-12-22 | Pfu Ltd | Cache error processing system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2695017B2 (en) | Data transfer method | |
| US6108755A (en) | Asynchronous access system to a shared storage | |
| JPH02304653A (en) | Memory access mode switching system | |
| JP3141948B2 (en) | Computer system | |
| KR100348808B1 (en) | Device for transmitting data between memories | |
| JPS641809B2 (en) | ||
| JPS60123952A (en) | Input-output controlling system | |
| JP2679440B2 (en) | Information processing device | |
| JP2696899B2 (en) | Multiprocessor system | |
| JPS60157643A (en) | Duplex structure computer | |
| JPH01298453A (en) | Cache error processing system | |
| JPH03103951A (en) | Memory patrol control system | |
| JPS61239339A (en) | System for controlling transfer of page data | |
| JPH02277142A (en) | Duplex computer system | |
| JPS61226867A (en) | Control system for data transmitting device | |
| JPS6118032A (en) | external memory controller | |
| JPS63132362A (en) | Command operation control system | |
| JPH02162456A (en) | Microprocessor | |
| JPH0215353A (en) | Abnormality setting system at specific address | |
| JPS6381547A (en) | Cache memory access system | |
| JPH01255949A (en) | Communication control equipment with buffer control function | |
| JPS61131141A (en) | Cache memory device | |
| JP2004118235A (en) | Data processing device | |
| JPH01261766A (en) | Data communication system | |
| JPH11232166A (en) | Data transfer device |