JPS62145445A - Cache memory system - Google Patents

Cache memory system

Info

Publication number
JPS62145445A
JPS62145445A JP60287038A JP28703885A JPS62145445A JP S62145445 A JPS62145445 A JP S62145445A JP 60287038 A JP60287038 A JP 60287038A JP 28703885 A JP28703885 A JP 28703885A JP S62145445 A JPS62145445 A JP S62145445A
Authority
JP
Japan
Prior art keywords
area
cache memory
data
cache
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60287038A
Other languages
Japanese (ja)
Inventor
Shigeru Hashimoto
繁 橋本
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 JP60287038A priority Critical patent/JPS62145445A/en
Publication of JPS62145445A publication Critical patent/JPS62145445A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To prevent the deterioration in performance of a cache memory due to DMA by dividing a cache memory into a data area and a code area and providing a means for clearing the areas individually. CONSTITUTION:The cache memory 36 is provided with an area 36a storing data and an area 36b storing a code and cache control sections 25a, 25b controlling the area 36a and cache control sections 26a, 26b controlling the area 36b are provided. When addressing the register 39 to store a purge command, a purge signal 52 is given to a V part 43 of the control sections 25a, 25b together with a timing signal 50 sent from a timing circuit 41 to purge V bits of the area 36a. In purging the area 36b, a purge command is set to the register 40 to input the purge signal to a V part 44.

Description

【発明の詳細な説明】 〔概要〕 本発明は、キャッシュメモリをデータ領域とコードM+
Aとに分割し、該領域を個別にクリアする手段を設けた
ことを特徴とする。
[Detailed Description of the Invention] [Summary] The present invention provides a cache memory with a data area and a code M+.
It is characterized in that it is divided into two areas, A and A, and means is provided for individually clearing the area.

〔産業上の利用分野〕[Industrial application field]

本発明はキャッシュメモリシステムの改良に関する。 The present invention relates to improvements in cache memory systems.

近年、プロセッサの高速化に伴い、プロセ、すの近傍に
高速小容量のメモリを設け、主メモリのデータ、プログ
ラム等の一部をそのメモリに格納して高速にアクセスす
るキャッシュメモリ (CACIIE MEMORY)
システムが普及しつつある。
In recent years, with the increase in speed of processors, cache memory (CACIIE MEMORY) has been created in which high-speed, small-capacity memory is installed near the processor, and part of the main memory's data, programs, etc. is stored in that memory and accessed at high speed.
The system is becoming popular.

このキャッシュメモリシステムには、キャッシュメモリ
を物理アドレスでアクセスするシステム(以下物理ギ+
ツシュ)と論理アドレスでアクセスするシステム(論理
キャッシュ)とがあるが、論理キャッシュは、論理アド
レスを物理アドレスに変換する時間だけ、物理キャッシ
ュより高速にアクセスできるという利点を有している。
This cache memory system includes a system that accesses cache memory using physical addresses (hereinafter referred to as physical address).
There are systems (logical caches) that access data using logical addresses, but logical caches have the advantage of being faster to access than physical caches because of the time it takes to convert logical addresses to physical addresses.

しかし、論理キャッシュでは、ダイレクトメモリアクセ
ス(以下DMA)が行われると、主メモリとキャッシュ
メモリとの間でデータのすれ違いが生じるため、DMA
後にキャッシュメモリをクリア(以下パージ;Parg
e ) L/ているが、データ以外の情報が同時にパー
ジされると、目的の情報がキャッシュメモリに存在する
確率(ヒツト率)が低下するという問題がある。
However, in a logical cache, when direct memory access (hereinafter referred to as DMA) is performed, data is passed between the main memory and cache memory, so DMA
Clear the cache memory (hereinafter referred to as purge; Parg) afterward.
e) L/However, if information other than data is purged at the same time, there is a problem that the probability (hit rate) that the target information exists in the cache memory decreases.

このためDMAにおける上記性能低下を防止するキャッ
シュメモリシステムが求められている。
Therefore, there is a need for a cache memory system that prevents the above-mentioned performance degradation in DMA.

〔従来の技術〕[Conventional technology]

第3図(a)に物理キャッシュ説明図、第3図(b)に
論理キャッシュ説明図を示す。
FIG. 3(a) shows an explanatory diagram of the physical cache, and FIG. 3(b) shows an explanatory diagram of the logical cache.

第3図(a)において、1はプロセッサ、2ば高速小容
量のキャッシュメモリ、3は中低速大容量の主メモリ、
4はDMAコントローラ、5はDMAの機能を備えるI
10装置、100ば物理アドレス線、101ばデータ線
である。
In FIG. 3(a), 1 is a processor, 2 is a high speed, small capacity cache memory, 3 is a medium to low speed, large capacity main memory,
4 is a DMA controller, and 5 is an I with DMA function.
10 devices, 100 is a physical address line, and 101 is a data line.

上記構成の物理キャッシュにおいて、主メモリ3からキ
ャッシュメモリ2への情報転送およびプロセッサ1によ
るアクセスは物理アドレスで行われるものであり、主メ
モリ3のデータ領域3aがDMAによって更新されると
、その物理アドレスによって転送先のキャッシュメモリ
2の領域2aが同時に更新されるように構成されている
In the physical cache with the above configuration, information transfer from the main memory 3 to the cache memory 2 and access by the processor 1 are performed using physical addresses, and when the data area 3a of the main memory 3 is updated by DMA, the physical The area 2a of the cache memory 2 as the transfer destination is updated at the same time depending on the address.

第3図(b)に示す論理キャッシュにおいては、キャッ
シュメモリ9は論理アドレス線102に出力される論理
アドレスでアクセスされ、主メモリ3はアドレス変換部
8により変換された物理アドレスでアクセスされる構成
となっている。
In the logical cache shown in FIG. 3(b), the cache memory 9 is accessed using a logical address outputted to a logical address line 102, and the main memory 3 is accessed using a physical address converted by an address converter 8. It becomes.

従って、DMAが発生したとき、I10装置5等の出力
する物理アドレスではキャッシュメモリ9を更新するこ
とはできず、キャッシュメモリ9をパージして、主メモ
リ3とキャッシュメモリ9とのデータのすれ違いを防止
している。
Therefore, when DMA occurs, the cache memory 9 cannot be updated with the physical address output from the I10 device 5, etc., and the cache memory 9 is purged to prevent data mismatch between the main memory 3 and the cache memory 9. It is prevented.

以下第3図(C1を参照しつつ、論理キャッシュの詳細
を説明する。
The details of the logical cache will be explained below with reference to FIG. 3 (C1).

第3図(C1は、4ウエイのキャッシュメモリシステム
を示すもので、同一の下位アドレスを有する4組の情報
をそれぞれ格納するメモリ領域を備えたものである0図
中、 9a〜9dはそれぞれ同一の構成を有する4組のキャッ
シュ制御部、 10はキャッシュメモリ部であり、上記4&IIのキャ
ッシュ制御部に対応して、メモリ領域が4ブロツク10
a〜10dに分割されるもの、11はリプレース制御部
であり、L RU (Lenst Recently 
Used )論理に従って前記ブロック1Oa−10d
を選択し、主メモリ3より情報転送を行うもの、 AO−AOば論理アドレス下位9ビツトのアドレスデー
タを出力するアドレス線、 八9〜^31ば論理アドレスの上位23ビツトのアドレ
ス情報を出力するアドレス線、 である。
Figure 3 (C1 shows a 4-way cache memory system, which is equipped with memory areas for storing four sets of information having the same lower address. In Figure 3, 9a to 9d are the same. 10 is a cache memory unit, and the memory area is 4 blocks 10 corresponding to the cache control unit 4 & II above.
11 is a replacement control unit, which is divided into LRU (Lens Recently
Used) The blocks 1Oa-10d according to the logic
AO-AO is the address line that outputs the address data of the lower 9 bits of the logical address, and 89-^31 is the address line that outputs the address information of the upper 23 bits of the logical address. The address line is .

キャッシュ制御部9aは、タグ部(以下TAG部)12
と、バリディティビット部(以下V部)13と、パリテ
ィデータ部(以下P部)14より構成されており、キャ
ッシュメモリ部IOに主メモリ3から情報が格納される
とき、その情報に対応した^9〜A31の23ビツトの
アドレスデータと、そのアドレスデータの有効性を表す
Vビットと、アドレスデータのパリティデータとが、A
O〜八8へ指定されるアドレスにそれぞれ格納される。
The cache control unit 9a includes a tag unit (hereinafter referred to as TAG unit) 12
It consists of a validity bit section (hereinafter referred to as V section) 13, and a parity data section (hereinafter referred to as P section) 14, and when information is stored from the main memory 3 in the cache memory section IO, a The 23-bit address data from ^9 to A31, the V bit representing the validity of the address data, and the parity data of the address data are
They are stored at the addresses specified by 0 to 88, respectively.

キャッシュメモリ部10はデータ線100に接続されて
おり、AO〜八8へ指定されるアドレスとブロック10
a〜10dの指定により読出し/書込みが行われる。
The cache memory section 10 is connected to the data line 100, and the address specified to AO to 88 and the block 10 are connected to the data line 100.
Reading/writing is performed by specifying a to 10d.

以下動作を第3図(d)〜(f)に示すタイムチャート
図を参照しつつ説明する。
The operation will be described below with reference to the time charts shown in FIGS. 3(d) to 3(f).

(読取動作)・・ヒツトの場合、 プロセッサ7が論理アドレスでアクセスすると、各キャ
ッシュ制御部9a〜9dは、それぞれ各自ブロックの該
当データの有無を検証し、データ有りの場合はそれぞれ
ヒツト信号ha−hdを出力(“1”)する。
(Reading operation) In the case of a hit, when the processor 7 accesses using a logical address, each of the cache control units 9a to 9d respectively verifies the presence or absence of the corresponding data in its own block, and if the data is present, each of them sends a hit signal ha- Outputs hd (“1”).

例えばキャッシュ制御部9aにおいて、AO〜八8へ指
定されたアドレスに格納されているTAG部12の八9
〜^31のアドレスデータとA9〜A31に出力されて
、いるアドレスデータとが比較部15により比較され、
一致で且つVビットが“1”のときアンド回路16より
ヒツト信号haが出力される。
For example, in the cache control unit 9a, 89 of the TAG section 12 stored at the address specified to AO to 88
The address data of ~^31 and the address data outputted to A9 to A31 are compared by the comparator 15,
When there is a match and the V bit is "1", the AND circuit 16 outputs a hit signal ha.

上記動作の各キャッシュ制御部9a〜9dのヒツト信号
haxhdは、すべて“0”か、または1組が“l”で
あり、これらの信号がエンコーダ17によりコード化さ
れて、キャッシュメモリ部10の所定ブロックをアドレ
スするとともに、そのブロック内のアドレスがAO〜八
8へよって指定される。
The hit signals haxhd of each of the cache control units 9a to 9d in the above operation are all “0” or one set is “1”, and these signals are encoded by the encoder 17 to output a predetermined value in the cache memory unit 10. While addressing a block, the address within that block is specified by AO-88.

また各ヒツト信号ha−hdは、オア回路18により論
理和されてヒツト信号りとしてプロセッサ7およびリプ
レース制御部11に供給されており、このヒント信号り
が“l”のとき、プロセッサ7は前記アドレスされたキ
ャッシュメモリ部10のデータを読取る。
Further, each hit signal ha-hd is logically summed by an OR circuit 18 and supplied as a hit signal to the processor 7 and the replacement control unit 11. When this hint signal is "L", the processor 7 selects the above address. The data stored in the cache memory section 10 is read.

(読取動作)・・ミスヒツトの場合 ヒツト信号りが“0” (ミスヒツト)の場合は、プロ
セッサ7はリプレース処理部11に指令してリプレース
サイクルが起動される。
(Reading operation) In the case of a mishit If the hit signal is "0" (mishit), the processor 7 instructs the replacement processing section 11 to start a replacement cycle.

即ら、プロセッサ7ば物理アドレスで指定された主メモ
リ3の情報を読取るとともに、リプレース制御部11に
よりデータ線100に出力されているそのデータをキャ
ッシュメモリ部lOに格納せしめる。
That is, the processor 7 reads the information in the main memory 3 specified by the physical address, and stores the data outputted to the data line 100 by the replacement control section 11 in the cache memory section IO.

リプレース制御部11は、LRU論理によりリプレース
するブロックを選択するとともに、マルチプレクサMP
X19を切替えてブロックアドレスを送出し、データ線
100のデータを格納せしめるとともに、タイミング回
路20により、該当するキャッシュ制御部にSET信号
、W−RIT信号を送出して、A9〜A31のアドレス
データ、■ビットパリティデータを格納せしめる。
The replacement control unit 11 selects a block to be replaced based on LRU logic, and also selects a block to be replaced using the multiplexer MP.
X19 is switched to send out a block address to store the data on the data line 100, and the timing circuit 20 sends out a SET signal and a W-RIT signal to the corresponding cache control unit to store the address data of A9 to A31, ■Storing bit parity data.

(書込動作) プロセッサ7よるキャッシュメモリ部10へのデータ書
込みは、主メモリ3と同時に行う。
(Write Operation) Data is written into the cache memory unit 10 by the processor 7 at the same time as in the main memory 3.

このため、データ線100にデータを出力し、キャッシ
ュ制御部にSET信号を、キャッシュメモリ部lOおよ
び主メモリ3に書込み信号をそれぞれ送出して行う。
For this purpose, data is output to the data line 100, a SET signal is sent to the cache control section, and a write signal is sent to the cache memory section IO and the main memory 3, respectively.

(パージ動作) プロセッサ7がレジスタ21にパージ指令を書込み、各
キャッシュ制御部9a〜9dのV部13を構成するメモ
リにパージ信号を入力する。
(Purge Operation) The processor 7 writes a purge command to the register 21, and inputs a purge signal to the memory forming the V section 13 of each cache control section 9a to 9d.

即ら、V部13はクリア機能を備えるメモリで構成され
、上記パージ信号によってすべてのVビットが同時にク
リアされる。
That is, the V section 13 is composed of a memory having a clearing function, and all V bits are cleared at the same time by the purge signal.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

以上説明したように、従来の論理キャッシュでは、DM
A動作後にキャッシュメモリをパージして主メモリとの
データのすれ違いを防止しているが、キャッシュメモリ
に格納されていたコード情報が、前記パージによってキ
ャッシュメモリより追放されると、DMA終了後はヒン
ト率が低下するという問題点があった。
As explained above, in the conventional logical cache, the DM
After the A operation, the cache memory is purged to prevent data from being misplaced with the main memory, but if the code information stored in the cache memory is purged from the cache memory by the purge, a hint will be displayed after the DMA ends. There was a problem that the rate decreased.

本発明は上記問題点に鑑み、DMAにおけるキャッシュ
メモリの性能低下を防止するキャッシュメモリシステム
を提供することを目的とするものである。
SUMMARY OF THE INVENTION In view of the above-mentioned problems, it is an object of the present invention to provide a cache memory system that prevents performance degradation of cache memory in DMA.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的を達成するため、本発明は第1図原理説明図に
示すように、 キャッシュメモリにデータを格納する領域(36a)と
コードを格納する領域(36b)とをそれぞれ設けると
ともに、該キャッシュメモリに格納された情報の有効性
を表す有効情報をクリアする手段を前記2組のメモリ領
域に対応して設けたものである。
In order to achieve the above object, the present invention provides a cache memory with an area (36a) for storing data and an area (36b) for storing code, as shown in the principle explanatory diagram of FIG. Means for clearing valid information representing the validity of information stored in the memory area is provided corresponding to the two sets of memory areas.

〔作用〕[Effect]

キャッシュメモリをデータ領域とコード領域とに分割し
、それぞれの領域を制御するキャッシュ制御部とリプレ
ース制御部とを設ける。
A cache memory is divided into a data area and a code area, and a cache control unit and a replacement control unit are provided to control each area.

上記2組のキャッシュメモリシステムを、例えばプロセ
ッサの送出するデータ領域およびコード領域のアクセス
をそれぞれ示すステータス情報により、切替えて動作せ
しめる。
The two sets of cache memory systems are switched to operate, for example, based on status information sent by the processor indicating accesses to the data area and code area, respectively.

即ら、それぞれのリプレース制御部は、プロセッサのス
テータス情報により、自己の領域(データおよびコード
領域)のアクセスを判別し、ミスヒツトのとき自己の領
域のリプレース制御を行う。
That is, each replacement control section determines access to its own area (data and code area) based on status information of the processor, and performs replacement control on its own area in the event of a mishit.

I10装置のDMA処理が終了したときは、データ領域
のみパ、−ジを行う。
When the DMA processing of the I10 device is completed, only the data area is purged.

このため、それぞれデータ領域およびコード領域のパー
ジ指令を格納するレジスタを設け、■10装置より送出
される割込信号により動作する割込み処理プログラム等
により、データ領域のレジスタにパージ指令を書込む。
For this purpose, registers are provided to store purge commands for the data area and code area, respectively, and purge commands are written in the registers for the data area by an interrupt processing program or the like that is operated by an interrupt signal sent from the (10) device.

以上のように、本発明はキャッシュメモリをデータ領域
とコード領域に分割し、それぞれパージ制御可能に構成
したもので、DMAによるキャッシュメモリの性能低下
を防止することができる。
As described above, according to the present invention, a cache memory is divided into a data area and a code area, each of which is configured to be purgable and controllable, thereby making it possible to prevent performance degradation of the cache memory due to DMA.

〔実施例〕〔Example〕

本発明の実施例を第2図を参照しつつ説明する。 An embodiment of the present invention will be described with reference to FIG.

第2図(a)はパージ動作フローチャート図、第2図(
blは実施例のキャッシュメモリシステム・ブロック図
である。
Figure 2(a) is a purge operation flowchart;
bl is a block diagram of a cache memory system according to an embodiment.

第2図(b)において、 36はキャッシュメモリ部であり、それぞれデータ領域
36a1コード領域36bより構成されるもの、 25a、25bはデータ領域36aを制御する2組のキ
ャッシュ制御部であり、それぞれ前述したキャッシュ制
御部9aと同一機能を備えるもの、26a、26bはコ
ード領域36bを制御する2組のキャッシュ制御部であ
り、それぞれキャッシュ制御部9aと同一機能を備える
もの、27.28は、ヒツト信号ha、hbおよびha
 l。
In FIG. 2(b), numeral 36 is a cache memory section, each consisting of a data area 36a and a code area 36b, and 25a and 25b are two sets of cache control sections that control the data area 36a, as described above. 26a and 26b are two sets of cache control units that control the code area 36b, each having the same function as the cache control unit 9a, and 27 and 28 are configured to control the hit signal. ha, hb and ha
l.

hb’とステータス信号CO,CIとに基づき、それぞ
れ自己の領域およびブロックを指定するアドレスデータ
を生成するエンコーダ、 29.30はマルチプレクサMPXであって、それぞれ
ヒツト信号hi、hj によって切替えられるもの、 33.34は、それぞれデータ領域36a、コード領域
36bのリプレース制御を行うリプレース制御部で、ス
テータス信号CO,CIを判別し、自己の領域のリプレ
ース制御を行うもの、35はマルチプレクサMPXであ
って、データ領域36aまたはコード領域36bのアク
セスによってアドレスデータを切替えるもの、39.4
0はそれぞれデータ領域36aおよびコード領域36b
をパージする指令を格納するレジスタ、 41.42は、それぞれデータ領域およびコード領域の
上記各部にタイミング信号50.51を送出するタイミ
ング回路、 37は、データ領域とコード領域とのヒツト信号hiと
hjとの論理和をとるオア回路で、その出力はプロセッ
サ7に送出されるもの、 43.44は、それぞれデータ領域36aおよび36b
のVビットを格納する7部であって、それぞれ2組のキ
ャッシュ制御部25a、bおよび25a、bに備える7
部を合わせ示したもの、であり、その他企図を通じて同
一符号は同一対象物を表す。
an encoder that generates address data specifying its own area and block based on hb' and status signals CO and CI; 29. 30 is a multiplexer MPX which is switched by hit signals hi and hj, respectively; 33 .34 is a replacement control unit that performs replacement control of the data area 36a and code area 36b, respectively, which discriminates the status signals CO and CI and performs replacement control of its own area; 35 is a multiplexer MPX; 39.4 Switching address data by accessing area 36a or code area 36b
0 is the data area 36a and code area 36b, respectively.
41 and 42 are timing circuits that send timing signals 50 and 51 to each of the above-mentioned parts of the data area and code area, respectively. 37 is a register that stores a command to purge the data area and the code area. 43 and 44 are the OR circuits that calculate the logical sum with the data areas 36a and 36b, and the output thereof is sent to the processor 7.
7 units for storing the V bit of , and provided for each of the two sets of cache control units 25a, b and 25a, b.
The same reference numerals represent the same objects throughout the design.

なおステータス信号COおよびC1は、それぞれプロセ
ッサ7がデータ領域およびコード領域をアクセスすると
き、プロセッサ7より出力される信号である。
Note that the status signals CO and C1 are signals output from the processor 7 when the processor 7 accesses the data area and the code area, respectively.

以上のごとく、キャッシュメモリ36をデータ領域36
a、コード領域36bに分割し、その領域に対応してキ
ャッシュ制御部25a、b、26a、b、リプレース制
御部33,34、タイミング回路41.42を設けた構
成となっている。
As described above, the cache memory 36 is
The configuration is divided into a code area 36b and cache control units 25a, b, 26a, b, replacement control units 33, 34, and timing circuits 41, 42 corresponding to the areas.

以下上記構成の動作を説明する。The operation of the above configuration will be explained below.

プロセッサ7は、主メモリ3のデータ領域をアクセスす
るときはステータス信号COを“1”に、コード領域を
アクセスするときはステータス48号C1を1″にセッ
トし、このステータス信号に基づいて、上記2組のキャ
ッシュメモリシステムの動作が切替わる。
The processor 7 sets the status signal CO to "1" when accessing the data area of the main memory 3, and sets the status No. 48 C1 to 1'' when accessing the code area, and based on this status signal, the above-mentioned The operations of the two sets of cache memory systems are switched.

(読取動作)・・ヒツトの場合 キャッシュ制御部25a、bおよび26a、bはそれぞ
れ論理アドレスに基づき前述した比較検証動作を行い、
それぞれヒッHi号を出力する。
(Read operation) In the case of a hit, the cache control units 25a, b and 26a, b each perform the above-mentioned comparison verification operation based on the logical address,
Each outputs a Hi-Hi signal.

MPX35はステータス信号COよって該当領域側に切
替えられており、エンコーダ27または28が出力した
領域および各ブロックを指定するアドレスデータと、プ
ロセッサ7より出力されている論理アドレス、即ちAO
−A8のアドレスデータにより、キャッシュメモリ部3
6の該当領域の情報が読取られる。
The MPX 35 is switched to the corresponding area side by the status signal CO, and the address data specifying the area and each block output by the encoder 27 or 28 and the logical address output from the processor 7, that is, AO
- According to the address data of A8, the cache memory section 3
The information in the corresponding area of No. 6 is read.

(読取動作)・・ミスヒツトの場合 所定時間にヒツト18号が出力されないときは、リプレ
ースサイクルに移行する。
(Reading operation) In the case of a mishit, if hit No. 18 is not output within a predetermined time, the cycle shifts to a replacement cycle.

リプレース制御部33.34は、ステータス信号Co、
CIに基づき自己の領域がアクセスされていることを判
別し、前記リプレース制御を行う。
The replacement control units 33 and 34 include status signals Co,
Based on the CI, it is determined that its own area is being accessed, and the replacement control is performed.

(書込動作) プロセッサ7がキャッシュメモリ部36を書込むとき、
ステータス信号COまたはC1により、キャッシュメモ
リ部36の2込信号を制御する。
(Write operation) When the processor 7 writes to the cache memory section 36,
The 2-input signal of the cache memory section 36 is controlled by the status signal CO or C1.

(パージ動作) DMA動作が終了したとき、そのI10装置よりプログ
ラム割込みがなされ、その割込みによってデータ領域3
6aのパージ処理が行われる。
(Purge operation) When the DMA operation is completed, a program interrupt is issued from the I10 device, and the interrupt erases the data area 3.
6a purge processing is performed.

即ち、レジスタ39をアドレスしてパージ指令を格納す
ると、タイミング回路35の送出するタイミング信号5
0とともに、キャッシュ制御部25a、bの7部43に
パージ信号52が与えられて、データ領域36aのVビ
ットがパージされる。
That is, when the register 39 is addressed and a purge command is stored, the timing signal 5 sent by the timing circuit 35 is
0 as well as the purge signal 52 is given to the seventh section 43 of the cache control sections 25a and 25b, and the V bit of the data area 36a is purged.

コード領域36bをパージするときは、レジスタ40に
パージ指令をセットし、V部44にパージ信号を入力す
る。
When purging the code area 36b, a purge command is set in the register 40 and a purge signal is input into the V section 44.

なお上記は、プロセッサ7の出力するステータス信号に
よって、データ領域とコード領域のアクセスを判別した
が、データ領域およびコード領域をアドレスによって判
別する手段を別に設けてもよい。
Note that in the above description, access to the data area and the code area is determined based on the status signal output from the processor 7, but means for determining the data area and code area based on the address may be provided separately.

以上のごとく、キャッシュメモリをデータ領域とコード
領域とに分割し、それぞれ個別にパージすることができ
る。
As described above, the cache memory can be divided into a data area and a code area, and each can be purged separately.

〔発明の効果〕〔Effect of the invention〕

以上の説明したように、本発明はキャッシュメモリをデ
ータ領域とコード領域とに分割し、それぞれパージする
制御手段を設けたものであるから、DMA動作における
性能低下を防止することができる効果は極めて大である
As explained above, since the present invention divides the cache memory into a data area and a code area and provides control means for purging each area, it is extremely effective in preventing performance degradation in DMA operations. It's large.

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

第1図は本発明の原理説明図、 第2図(a)は動作フローチャート図、第2図(b)は
実施例のキャッシュメモリシステム・ブロック図、 第3図+a)ば物理キャッシュ説明図、第3図(b)は
論理キャッシュ説明図、第3図(C)は従来の論理キャ
ッシュ説明図、第3図(d)は読取(ヒツト)動作タイ
ムチャー1図、 第3図(e)は読取(ミスヒツト)動作タイムチャート
図、 第3図(flは書込動作タイムチャート図、である。図
中、 3ば主メモリ、     7はプロセッサ、8はアドレ
ス変換部、10はI10装置、9a〜9dはキャッシュ
制御部、 10はキャッシュメモリ部であって、lOa。 10 b、  10 c、  10 dはブロック、1
2ばTAG部、  13は7部、 14はP部、    15は比較部、 25a、bはデータ領域のキャッシュ制御部、25a、
bはコード領域のキャッシュ制御部、27.28はエン
コーダ、 29.30.35はマルチプレクサMPX、33.34
はリプレース制御部、 36はキャッシュメモリ部で、36aはデータ領域、3
6bはコード領域、 39.40はレジスタ、 41.42はタイミング回路、 50.51はタイミング信号、 52はバーシイ8号、  100はデータ線、101は
物理アドレス線、 102は論理アドレス線であって、AO〜八8へ下位9
ビツトのアドレス線、へ9〜八31 ば上位23ビソト
のアドレス線、 ha −hd、 ha ’ +hb  ’ + ht+
J1hはヒツト信号、COはデータ領域をアクセスする
ときプロセッサより出力されるステータス信号、 C1はコード領域をアクセスするときプロセッサより出
力されるステータス信号、 43はデータ領域の7部、 44はコード領域の7部、 である。 第3囮Cb)
FIG. 1 is an explanatory diagram of the principle of the present invention, FIG. 2 (a) is an operation flowchart diagram, FIG. 2 (b) is a block diagram of a cache memory system according to an embodiment, and FIG. 3 + a) is an explanatory diagram of a physical cache. FIG. 3(b) is an explanatory diagram of a logical cache, FIG. 3(C) is an explanatory diagram of a conventional logical cache, FIG. 3(d) is a read operation time chart, and FIG. 3(e) is an explanatory diagram of a conventional logical cache. Figure 3 is a read (mishit) operation time chart (fl is a write operation time chart. In the figure, 3 is the main memory, 7 is the processor, 8 is the address conversion section, 10 is the I10 device, 9a-- 9d is a cache control unit, 10 is a cache memory unit, and is lOa. 10b, 10c, 10d are blocks, 1
2 is a TAG section, 13 is a 7 section, 14 is a P section, 15 is a comparison section, 25a, b is a data area cache control section, 25a,
b is the code area cache control unit, 27.28 is the encoder, 29.30.35 is the multiplexer MPX, 33.34
3 is a replacement control unit; 36 is a cache memory unit; 36a is a data area;
6b is a code area, 39.40 is a register, 41.42 is a timing circuit, 50.51 is a timing signal, 52 is Versi No. 8, 100 is a data line, 101 is a physical address line, 102 is a logical address line. , AO ~ 88 to bottom 9
Bit address line, 9 to 831, upper 23 bit address line, ha - hd, ha ' + hb ' + ht +
J1h is a hit signal, CO is a status signal output from the processor when accessing the data area, C1 is a status signal output from the processor when accessing the code area, 43 is the 7th part of the data area, 44 is the code area Part 7 is . 3rd decoy Cb)

Claims (1)

【特許請求の範囲】[Claims] 論理アドレスの一部のアドレスデータでアドレスが割り
付けられ、該アドレスデータに基づき主メモリの情報を
格納するキャッシュメモリを備えるとともに、キャッシ
ュメモリのデータの書換えを制御するコードに応じて格
納されたデータの変換を行うキャッシュメモリシステム
であって、該キャッシュメモリにデータを格納する領域
(36a)とコードを格納する領域(36b)とをそれ
ぞれ設けるとともに、該キャッシュメモリに格納された
情報の有効性を表す有効情報をクリアする手段を前記2
組のメモリ領域に対応して設けたことを特徴とするキャ
ッシュメモリシステム。
A cache memory is provided in which an address is assigned using address data that is part of a logical address, and stores information in the main memory based on the address data. A cache memory system that performs conversion, wherein the cache memory has an area (36a) for storing data and an area (36b) for storing code, and represents the validity of information stored in the cache memory. The method for clearing valid information is explained in 2 above.
A cache memory system is provided corresponding to a set of memory areas.
JP60287038A 1985-12-20 1985-12-20 Cache memory system Pending JPS62145445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60287038A JPS62145445A (en) 1985-12-20 1985-12-20 Cache memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60287038A JPS62145445A (en) 1985-12-20 1985-12-20 Cache memory system

Publications (1)

Publication Number Publication Date
JPS62145445A true JPS62145445A (en) 1987-06-29

Family

ID=17712238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60287038A Pending JPS62145445A (en) 1985-12-20 1985-12-20 Cache memory system

Country Status (1)

Country Link
JP (1) JPS62145445A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01173241A (en) * 1987-12-28 1989-07-07 Toshiba Corp Cache memory device
JPH0290347A (en) * 1988-09-28 1990-03-29 Nec Corp Cache memory
JPH06195264A (en) * 1992-12-22 1994-07-15 Nec Corp Cache coincidence processor
US6438662B1 (en) 1998-12-14 2002-08-20 Nec Corporation Information processing device capable of allowing the maximum processing performance of microprocessor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01173241A (en) * 1987-12-28 1989-07-07 Toshiba Corp Cache memory device
JPH0290347A (en) * 1988-09-28 1990-03-29 Nec Corp Cache memory
JPH06195264A (en) * 1992-12-22 1994-07-15 Nec Corp Cache coincidence processor
US6438662B1 (en) 1998-12-14 2002-08-20 Nec Corporation Information processing device capable of allowing the maximum processing performance of microprocessor

Similar Documents

Publication Publication Date Title
JP2545482B2 (en) Interface device transfer parameter setting method
JPH0661068B2 (en) Memory relocation method and hierarchical storage system
JPS62145445A (en) Cache memory system
JPS62145342A (en) Cache memory system
JPS62145341A (en) Cache memory system
JPH05282208A (en) Cache memory control system
JP3614428B2 (en) Cache memory device
JPH07152650A (en) Cache control unit
JPH0448358A (en) Cache memory control system
JP3779385B2 (en) Disk array controller
JP3190661B2 (en) Information processing system
US7234022B2 (en) Cache accumulator memory for performing operations on block operands
JP3729832B2 (en) Cache memory device
JPH03103951A (en) Memory patrol control system
JPH04195563A (en) Controller for memory system
JPH06266623A (en) Cache memory and cache memory control method
JPH0573415A (en) Hierarchized cache system
JPH08202505A (en) Array type storage device
JPH04205154A (en) Microprocessor system
JP3761890B2 (en) Cache memory device
JPH0728700A (en) Storage device
JPH01226056A (en) Address converter
JPH04288647A (en) Substitution controller for cache memory
JPS62274349A (en) Data processing system
US20030115416A1 (en) Cache accumulator memory with an associativity mechanism