Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6013497B2 - How to diagnose cache memory - Google Patents
[go: Go Back, main page]

JPS6013497B2 - How to diagnose cache memory - Google Patents

How to diagnose cache memory

Info

Publication number
JPS6013497B2
JPS6013497B2 JP55169337A JP16933780A JPS6013497B2 JP S6013497 B2 JPS6013497 B2 JP S6013497B2 JP 55169337 A JP55169337 A JP 55169337A JP 16933780 A JP16933780 A JP 16933780A JP S6013497 B2 JPS6013497 B2 JP S6013497B2
Authority
JP
Japan
Prior art keywords
data
address
cache memory
section
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP55169337A
Other languages
Japanese (ja)
Other versions
JPS5794991A (en
Inventor
正明 小林
智史 柴田
繁 橋本
琢己 岸野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 filed Critical Fujitsu Ltd
Priority to JP55169337A priority Critical patent/JPS6013497B2/en
Publication of JPS5794991A publication Critical patent/JPS5794991A/en
Publication of JPS6013497B2 publication Critical patent/JPS6013497B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 本発明は、主記憶メモリのコピーデータを一時保管する
キャッシュメモリの診断方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for diagnosing a cache memory that temporarily stores copy data in a main memory.

計算機の主記憶メモリには各種命令およびデータ(以下
単にデータという)が格納されており、アドレス信号に
よりその所望のものをアクセスして使用する。使用した
データはその直後に再び使用することがよくあるが、使
用の都度該データを大容量低速主記憶メモリから読出す
のは時間がかかり、不経済である。そこで鈴出したデー
タはキャッシュメモリと呼ぶ高速メモリに保管しておき
、次に使用するデータがその保管したものと同じならそ
れをキャッシュメモリから直ちに議出して使用すること
が行なわれている。図面でこれを説明すると、10がキ
ャッシュメモリであり、アドレス情報ADDでアクセス
して主記憶メモリMMから議出したデータをデータ部1
0bへ書込まれる。
The main memory of a computer stores various instructions and data (hereinafter simply referred to as data), and a desired one is accessed and used by an address signal. Data that has been used is often used again immediately after it is used, but it is time consuming and uneconomical to read the data from a large-capacity, low-speed main storage memory each time it is used. Therefore, the retrieved data is stored in a high-speed memory called a cache memory, and if the data to be used next is the same as the stored data, it is immediately retrieved from the cache memory and used. To explain this with a drawing, 10 is a cache memory, and data section 1 stores data accessed by address information ADD and retrieved from main memory memory MM.
Written to 0b.

アドレスADDの上位ビット群をA,、下位ビット群を
A2として、キャッシュメモリ10は下位アドレスA2
によりアクセスされる。つまりキャッシュメモリ10は
、下位アドレスA2のビット数をnとすれば2n個のア
ドレスを持ち、主記憶メモリMMから議出したデータは
、その下位アドレスA2で指定されるキャッシュメモリ
10の記憶領域へ上位アドレスA,と共に書込まれる。
上記記憶領域はアドレス部10aとデ−タ部10bに分
れており、上位ビットAIは10aに書込まれる。キャ
ッシュメモリは1個設ける方式と2個設ける方式があり
、図示実施例は2セットであって、20がその他方のキ
ャッシュメモリである。構成は両者同じである。データ
を謙出すときはそのデータのアドレスA,、A2の一方
A,が比較器1 2の一方の入力端へ導かれ、他方A2
がキャッシュメモリ10へ導かれてこれをアクセスする
。このアクセスで読出されたメモIJ10の記憶内容の
うちアドレス部10aのものは比較器12の他方の入力
端へ導かれ、データ部10bのものはセレクタ16へ導
かれる。比較器12では再入力端に入力した上位アドレ
スビット群を比較し、一致すればヒット出力別tを生じ
る。この出力Hitはセレクタ16へ入力して該セレク
タを主記憶メモリMMからキャッシュメモリー0側へ切
換え、該キャッシュメモリのデータ部10bの論取り出
力をデータバスDBへ送出する。比較器12における比
較の結果が不一致であればヒット出力は生ぜず、セレク
タ16は主記憶メモリMM側に倒れていて該MMの読取
り出力をデータバスDBへ送出する。こうして所望デー
タがキャッシュメモリに有れば直ちにそれを議出して使
用し、無ければ主記憶メモリから論出して使用し、アク
セスの迅速化、効率化を図る。そして後者の無かった場
合には、そのデータをセレクタ24経由で、また上位ア
ドレスを線1経由でキャッシュメモリのデータ部および
アドレス部に書込んでおき、次の使用に備える。もう一
方のキャッシュメモリ201こついても使用態様は同じ
である。
Assuming that the upper bit group of address ADD is A, and the lower bit group is A2, the cache memory 10 is stored at lower address A2.
accessed by In other words, the cache memory 10 has 2n addresses, where n is the number of bits of the lower address A2, and data retrieved from the main memory MM is sent to the storage area of the cache memory 10 specified by the lower address A2. It is written together with the upper address A.
The storage area is divided into an address section 10a and a data section 10b, and the upper bit AI is written to 10a. There are two types of cache memory, one in which one cache memory is provided, and two in the illustrated embodiment, with 20 being the other cache memory. The configuration is the same for both. When data is extracted, one of the data addresses A, A2 is led to one input terminal of the comparator 12, and the other A2
is guided to the cache memory 10 and accessed. Of the stored contents of the memo IJ10 read by this access, those in the address section 10a are guided to the other input terminal of the comparator 12, and those in the data section 10b are guided to the selector 16. The comparator 12 compares the upper address bits input to the re-input terminal, and if they match, a hit output t is generated. This output Hit is input to the selector 16, which switches the selector from the main memory MM to the cache memory 0 side, and sends the argument output of the data section 10b of the cache memory to the data bus DB. If the comparison result in the comparator 12 does not match, no hit output is generated, and the selector 16 is tilted toward the main memory MM and sends the read output of the MM to the data bus DB. In this way, if desired data is present in the cache memory, it is immediately retrieved and used; if not, it is retrieved from the main memory and used, thereby speeding up and improving access efficiency. If the latter is not present, the data is written via the selector 24 and the upper address is written via line 1 into the data section and address section of the cache memory in preparation for the next use. Even if the other cache memory 201 is used, the manner of use is the same.

メモリー0,20をどう稼動させるかには種々の方式が
ある。又は考えられるが、いずれにしても切換えて使用
し、書込みに当っては同じデータが両メモ川こあるよう
にはしない。ところでかかるキャッシュメモリは上述の
説明からも明らかなように、該メモリ単独でアクセスし
てその記憶内容を読出すことはできない。
There are various methods for operating the memories 0 and 20. Or, it is possible, but in any case, it is used by switching, and when writing, the same data is not written in both memo files. By the way, as is clear from the above description, such a cache memory cannot be accessed by itself to read its stored contents.

即ちこのメモリを謙出すには下位アドレスんのみでは不
足で(普通のメモリならこれで充分アクセスできる)、
上位アドレスA,をも使用し、それがキャッシュメモリ
のアドレス部に書込まれている上位アドレスA,(これ
はメモリ10のアドレスに対し一般にはランダムに書込
まれており、その各アドレスにどの様なA,が書かれて
いるかは分らない)と一致しなければならない。従って
メモリー0のあるアドレスの内容を読取ろうとすれば、
そのアドレス(ん)に、上位アドレスA,(これはA,
のビット数をmとして2m個ある)を加えて、2m回ア
クセスしてみなければならない。メモリの診断には任意
のアドレスに所定データを書込み、それを議出してみる
という操作をするが、上記の如くでは甚だ厄介である。
またアドレス部Ioaに対する所望データの書込み等は
不可能である。本発明はかかる点を改善し、通常メモリ
と同様にキャッシュメモリに対し任意に論取り、書込み
することができるようにして、該キャッシュメモリの診
断を容易にしようとするものである。
In other words, the lower address alone is not enough to access this memory (this is sufficient for accessing ordinary memory),
It also uses the upper address A, which is written in the address section of the cache memory (this is generally written randomly to the address of memory 10, and which address is written to each address). (I don't know if A is written like this). Therefore, if you try to read the contents of an address in memory 0,
The upper address A, (this is A,
(2m bits, where m is the number of bits), and accesses must be made 2m times. Memory diagnosis involves writing predetermined data to an arbitrary address and trying to submit it, but the method described above is extremely troublesome.
Furthermore, it is impossible to write desired data to the address section Ioa. The present invention aims to improve this problem and facilitate the diagnosis of the cache memory by making it possible to arbitrarily read and write to the cache memory in the same way as normal memory.

本発明は主記憶メモリから謙出したデータを、該データ
のアドレスの下位ビットで選択される記憶領域のアドレ
ス部およびデータ部へ該アドレスの上位ビットと共に書
込まれ、謙出し1こ際しては談議出しのため出力される
アドレスの下位ビットでアクセスされ、諸出された前記
記憶領域の上位ビットが該アドレスの上位ビットと一致
するとき、その時生じるヒット出力で前記記憶領域のデ
ータを導出するキャッシュメモリの診断方法において、
診断モードでは前記ビット出力と等価な信号および前記
アドレス部とデータ部の切換信号を発生して、下位ビッ
トのみでキャッシュメモリのアドレス部およびデータ部
の選択論出しを可能とし、また所望書込みデータを該ア
ドレス部およびデータ部へ選択書込み可能とするこを特
徴とするが、次に実施例につきこれを説明する。図面に
示すように本発明では制御レジスタ18を設け、これに
よりビットCACC、SELTおよびADRを出力され
る。
In the present invention, the data extracted from the main memory is written into the address section and the data section of the storage area selected by the lower bits of the address of the data, together with the upper bits of the address. is accessed with the lower bits of the address output for discussion, and when the upper bits of the output storage area match the upper bits of the address, the data in the storage area is derived from the hit output generated at that time. In the cache memory diagnosis method,
In the diagnostic mode, a signal equivalent to the bit output and a switching signal between the address section and the data section are generated, and the address section and data section of the cache memory can be selected using only the lower bits, and the desired write data can be written. The present invention is characterized in that it is possible to selectively write into the address field and the data field, and this will be explained next with reference to an embodiment. As shown in the drawings, the present invention provides a control register 18, which outputs bits CACC, SELT and ADR.

ビットCACCは比較器12,22のヒット出力を通す
オアゲート14に入力され、従ってこのビットが“1”
になるとヒットしたと等価になる。またキャッシュメモ
リ10,20のアドレス部およびデータ部の読取出力は
それぞれセレクタ16に導かれており、これら4ブロッ
クのデータの1つ(通常は1ワード分)をビットADR
およびSELTで行なう。即ちADRはアドレス部かデ
ータ部かの選択を行ない(例えば“1”で前者、“0”
で後者を選択)、SELTはメモリ10か20かの選択
を行なう。24は書込みデータWDのセレクタで、CA
CCが“1’’になると診断モード‘こなり、またAD
R、SELTの2ビットでデータWDの転送先をメモリ
10,20のアドレス部またはデータ部へ切り換える。
Bit CACC is input to an OR gate 14 which passes the hit outputs of comparators 12 and 22, so that this bit is "1".
When this happens, it is equivalent to a hit. The read outputs of the address and data sections of the cache memories 10 and 20 are each led to a selector 16, and one of these four blocks of data (usually one word) is sent to the bit ADR.
and SELT. In other words, ADR selects the address part or the data part (for example, "1" selects the former, "0"
(to select the latter), SELT selects memory 10 or 20. 24 is a write data WD selector, CA
When CC becomes “1”, diagnostic mode is turned off and AD
The 2 bits R and SELT switch the transfer destination of the data WD to the address section or data section of the memory 10 or 20.

この装置ではキャッシュメモリの診断に際してビットC
MCCを“1”にし、換言すれば制御レジスタ18のC
ACCビット位置に“1”を書込み、またキャッシュメ
モリのどの部分を診断かに応じてビットSELTおよび
ADRを“1”または“0”にする。
This device uses bit C when diagnosing cache memory.
Set MCC to “1”, in other words, C of control register 18
Write "1" to the ACC bit position, and set bits SELT and ADR to "1" or "0" depending on which part of the cache memory is to be diagnosed.

本例ではSELT、ADRを共に“0”にしてメモリ1
0のアドレス部10aを選択したとする。この状態では
下位アドレスんでメモリ10,20をアクセスし、議出
し出力のうちの10aにあったものをセレクタ16を通
して取出すことができる。こうしてアドレス部10aの
記憶内容をチェックすることができる。データ部10b
の記憶内容を診断したい場合は、ビットADRを本例で
は“1”にすればよい。他も同機である。書込みはメモ
リ10,201こ書込み信号(ライトィネーブル)を送
って書込みモードにし、書込みデータWDをセレクタ2
4で選択して所望のメモリ部分へ送り、かつ下位アドレ
スA2で記憶領域を選択して該領域へ書込む。
In this example, both SELT and ADR are set to “0” and memory 1
Assume that the address section 10a of 0 is selected. In this state, the memories 10 and 20 can be accessed using the lower address, and the selected output that was in 10a can be taken out through the selector 16. In this way, the contents stored in the address section 10a can be checked. Data section 10b
If you want to diagnose the storage contents of , you can set bit ADR to "1" in this example. The others are also on the same plane. For writing, send a write signal (write enable) to the memories 10 and 201 to set them to write mode, and set the write data WD to selector 2.
4 to select and send to a desired memory portion, and select a storage area with lower address A2 and write to that area.

こうして本回路によればキャッシュメモリに対し通常メ
モリと同様に書込み、議取りを行ない、診断を迅速に、
効率よく行なうことができる。なおこのとき使用する書
込みデータは、所謂データであって命令ではないように
する。命令にすると、これを受けてCP山ま誤動作して
しまう。診断モードではキャッシュメモリのアドレス部
へ書込む情報は一般には上位アドレスではなく、セレク
タ24を通して与える所定のデータであるから、この場
合は1の経路はオフにしておく。
In this way, according to this circuit, data can be written to and discussed in the cache memory in the same way as normal memory, and diagnosis can be performed quickly.
It can be done efficiently. Note that the write data used at this time is so-called data and not a command. If you make it a command, it will cause the CP to pile up and malfunction. In the diagnostic mode, the information written to the address section of the cache memory is generally not an upper address but predetermined data given through the selector 24, so in this case path 1 is turned off.

スイッチ26はこの制御を行なうものであり、適当な信
号Sでオンオフされる。なおこのスイッチ26は比較器
12,22へ至る上下アドレスA,の経路をもオフにす
るが、診断モードでは上下アドレスは不要であるから格
別支障ない。以上説明したように本発明によればキャッ
シュメモリを通常メモリと同様にして書込み、議取りを
行うことができ、該キャッシュメモリの診断に甚だ有効
である。
The switch 26 performs this control and is turned on and off by an appropriate signal S. Note that this switch 26 also turns off the paths of the upper and lower addresses A leading to the comparators 12 and 22, but this does not pose any particular problem since the upper and lower addresses are unnecessary in the diagnostic mode. As explained above, according to the present invention, data can be written to and discussed in a cache memory in the same manner as a normal memory, and is extremely effective in diagnosing the cache memory.

【図面の簡単な説明】[Brief explanation of the drawing]

図面は本発明の実施例を示すブロック図である。 図で101まキャッシュメモリ、10aはそのアドレス
部、10bはデータ部、Hitはヒット出力、CACC
はHitと等価な信号「ADRはアドレス部、データ部
切襖信号である。
The drawing is a block diagram showing an embodiment of the invention. In the figure, 101 is the cache memory, 10a is its address section, 10b is the data section, Hit is the hit output, and CACC
is a signal equivalent to Hit; "ADR is an address section/data section separation signal.

Claims (1)

【特許請求の範囲】[Claims] 1 主記憶メモリから読出したデータを、該データのア
ドレスの下位ビツトで選択される記憶領域のアドレス部
およびデータ部へ該アドレスの上位ビツトと共に書込ま
れ、読出しに際しては該読出しのため出力されるアドレ
スの下位ビツトでアクセスされ、読出された前記記憶領
域の上位ビツトがアドレスの上位ビツトと一致するとき
、その時生じるヒツト出力で前記記憶領域のデータを導
出するキヤツシユメモリの診断方法において、診断モー
ドでは前記ヒツト出力と等価な信号および前記アドレス
部とデータ部の切換信号を発生して、下位ビツトのみで
キヤツシユメモリのアドレス部およびデータ部の選択読
出しを可能とし、また所望書込みデータを該アドレス部
およびデータ部へ選択書込み可能とすることを特徴とし
たキヤツシユメモリの診断方法。
1 Data read from the main memory is written to the address and data parts of the storage area selected by the lower bits of the address of the data, together with the higher bits of the address, and when read, is output for the reading. In a diagnostic method for a cache memory, data in the storage area is derived from a hit output generated at that time when the storage area is accessed using the lower bits of the address and the upper bits of the read storage area match the upper bits of the address. Then, a signal equivalent to the hit output and a switching signal between the address section and the data section are generated, and the address section and data section of the cache memory can be selectively read using only the lower bits, and the desired write data can be transferred to the address. A method for diagnosing a cache memory characterized by enabling selective writing to a data part and a data part.
JP55169337A 1980-12-01 1980-12-01 How to diagnose cache memory Expired JPS6013497B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55169337A JPS6013497B2 (en) 1980-12-01 1980-12-01 How to diagnose cache memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55169337A JPS6013497B2 (en) 1980-12-01 1980-12-01 How to diagnose cache memory

Publications (2)

Publication Number Publication Date
JPS5794991A JPS5794991A (en) 1982-06-12
JPS6013497B2 true JPS6013497B2 (en) 1985-04-08

Family

ID=15884680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55169337A Expired JPS6013497B2 (en) 1980-12-01 1980-12-01 How to diagnose cache memory

Country Status (1)

Country Link
JP (1) JPS6013497B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2562486B2 (en) * 1988-06-20 1996-12-11 株式会社ピーエフユー Data processing device error handling method
JP2965585B2 (en) * 1989-09-19 1999-10-18 富士通株式会社 Cache memory test method

Also Published As

Publication number Publication date
JPS5794991A (en) 1982-06-12

Similar Documents

Publication Publication Date Title
US4197580A (en) Data processing system including a cache memory
US4999770A (en) Command controlled multi-storage space protection key pretesting system permitting access regardless of test result if selected key is predetermined value
JPS6013497B2 (en) How to diagnose cache memory
JP2636485B2 (en) Cache storage
JP2964504B2 (en) Document processing device
KR200216750Y1 (en) Access Speed Enhancement Device at SCS
JP2002319292A (en) Memory device and memory device reading method
JP2727947B2 (en) Address trace method
JPH0296257A (en) Diagnostic system for main storage
JPS63259746A (en) Data transfer method between bank memories
JP3555856B2 (en) Mask processing circuit
JPS63120349A (en) File multiplex control system
JPS63251965A (en) Disk managing system
JPH086905A (en) Access arbitration circuit for multiport RAM
JPH06119200A (en) Memory device and its test method
JPH05189346A (en) Disk controller
JPH02163820A (en) Data buffer device
JPS62209636A (en) Bank memory switching circuit
JPS5838876B2 (en) Shumemory Seigiyohoshiki
JPH04302044A (en) Multiprocessor system
JPS62184561A (en) Input/output buffer controller
JPH01126745A (en) System for processing information
JPS61221845A (en) Producing system for invalidated address of buffer memory
JPS635460A (en) Parallel computer
JPH0457128A (en) Access device for memory