JPH0535593A - Cache memory control system - Google Patents

Cache memory control system

Info

Publication number
JPH0535593A
JPH0535593A JP3211509A JP21150991A JPH0535593A JP H0535593 A JPH0535593 A JP H0535593A JP 3211509 A JP3211509 A JP 3211509A JP 21150991 A JP21150991 A JP 21150991A JP H0535593 A JPH0535593 A JP H0535593A
Authority
JP
Japan
Prior art keywords
data
cache
write
memory
processing unit
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
JP3211509A
Other languages
Japanese (ja)
Inventor
Etsuro Odan
悦朗 大段
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.)
NEC Software Shikoku Ltd
Original Assignee
NEC Software Shikoku 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 NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP3211509A priority Critical patent/JPH0535593A/en
Publication of JPH0535593A publication Critical patent/JPH0535593A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To shorten the write cycle of a central processor as to an information processor equipped with a central processing unit and a cache memory. CONSTITUTION:When the central processing unit 101 is in a write cycle, a cache control part 107 updates the contents of a tag memory 104 according to an address on an address control bus 108 while indicating the writing of data on a data bus 109 to a write buffer 102 without waiting for the cache hit/mishit decision result of a comparator 106, thereby updating the contents of a data memory 105 according to the data on the data bus 109. Therefore, the cache hit/mishit decision result of the comparator 10 need not be waited for, so the write cycle can be made short.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はキャッシュメモリの制御
方式に関し、特に、中央処理装置のライトサイクルを高
速に行なわせることができるキャッシュメモリ制御方式
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache memory control system, and more particularly to a cache memory control system capable of performing a write cycle of a central processing unit at high speed.

【0002】[0002]

【従来の技術】従来、この種のキャッシュメモリ制御方
式は中央処理装置のライトサイクル時、キャッシュヒッ
ト/ミスヒットを判定し、キャッシュヒットの場合は該
当するキャッシュメモリのデータを更新すると共にライ
トバッファにデータを書き込み、キャッシュミスヒット
の場合はキャッシュメモリを更新せずにライトバッファ
またはメインメモリにデータを書き込むようにしてい
る。
2. Description of the Related Art Conventionally, this type of cache memory control system determines a cache hit / miss hit during a write cycle of a central processing unit, and if a cache hit occurs, updates the data in the corresponding cache memory and writes it to the write buffer. Data is written, and in the case of a cache miss hit, the data is written to the write buffer or main memory without updating the cache memory.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のキャッ
シュメモリ制御方式は、キャッシュヒット/ミスヒット
が判定されるまではキャッシュメモリへデータを書き込
むか否かが決まらないため、キャッシュメモリ中のデー
タメモリに対するライト信号の生成が遅れ、その結果、
中央処理装置のライトサイクルが長くなるという問題点
があった。
In the above-mentioned conventional cache memory control method, it is not decided whether or not to write data into the cache memory until a cache hit / miss hit is determined, so that the data memory in the cache memory is not determined. Generation of the write signal for
There is a problem that the write cycle of the central processing unit becomes long.

【0004】本発明の目的は中央処理装置のライトサイ
クルを高速化することができるキャッシュメモリ制御方
式を提供することにある。
An object of the present invention is to provide a cache memory control system capable of accelerating the write cycle of the central processing unit.

【0005】[0005]

【課題を解決するための手段】本発明は上記目的を達成
するため、中央処理装置と、キャッシュメモリとを備え
た情報処理装置に於いて、前記中央処理装置のライトサ
イクル時、キャッシュヒット,キャッシュミスヒットに
かかわらず、ライトバッファにライトデータを書き込む
と同時に前記キャッシュメモリを更新するようにしたも
のである。
In order to achieve the above object, the present invention provides an information processing apparatus including a central processing unit and a cache memory, wherein a cache hit, a cache, or a cache hit occurs during a write cycle of the central processing unit. The cache memory is updated at the same time when the write data is written in the write buffer regardless of the mishit.

【0006】[0006]

【作用】中央処理装置のライトサイクル時、キャッシュ
ヒット,キャッシュミスヒットにかかわらず、ライトバ
ッファにライトデータを書き込むと同時にキャッシュメ
モリをライトデータ,ライトアドレスに従って更新す
る。即ち、キャッシュヒットか、キャッシュミスヒット
かの判定を待つ必要がなくなるので、ライトサイクルを
高速化することが可能になる。
In the write cycle of the central processing unit, the write data is written in the write buffer and the cache memory is updated at the same time according to the write data and the write address regardless of the cache hit or cache miss hit. That is, it is not necessary to wait for the judgment of cache hit or cache miss hit, so the write cycle can be speeded up.

【0007】[0007]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0008】図1は本発明の実施例のブロック図であ
る。同図に示す情報処理装置は中央処理装置101と、
ライトバッファ102と、キャッシュメモリ103とを
含んでおり、それらはアドレスバス及び制御バスを含む
アドレス制御バス108とデータバス109とによって
接続されている。
FIG. 1 is a block diagram of an embodiment of the present invention. The information processing apparatus shown in the figure includes a central processing unit 101,
It includes a write buffer 102 and a cache memory 103, which are connected by an address control bus 108 including an address bus and a control bus and a data bus 109.

【0009】キャッシュメモリ103は、タグメモリ1
04と、データメモリ105と、コンパレータ106
と、キャッシュ制御部107とを含んでいる。
The cache memory 103 is the tag memory 1
04, the data memory 105, and the comparator 106
And a cache control unit 107.

【0010】データメモリ105にはメインメモリの一
部の写しが格納されている。
The data memory 105 stores a copy of a part of the main memory.

【0011】タグメモリ104にはデータメモリ105
に格納されているデータのアドレス及び有効,無効を示
すフラグ等が格納されている。
The tag memory 104 includes a data memory 105.
The address of the data stored in and the flag indicating valid / invalid are stored.

【0012】コンパレータ106はキャッシュアクセス
時に中央処理装置101がアドレス制御バス108に出
力するアドレスと、中央処理装置101がアドレス制御
バス108に出力したアドレスに従ってタグメモリ10
4から読み出されたアドレスとを比較し、比較一致の場
合はキャッシュヒット信号HITを出力する。
The comparator 106 operates according to the address output by the central processing unit 101 to the address control bus 108 during the cache access and the address output by the central processing unit 101 to the address control bus 108.
The address read from 4 is compared, and if there is a comparison match, the cache hit signal HIT is output.

【0013】キャッシュ制御部107はキャッシュメモ
リ103の各部を制御すると共に、ライトバッファ10
2の制御も行なう。更に、キャッシュ制御部107は中
央処理装置101に対する応答も行なう。
The cache control unit 107 controls each unit of the cache memory 103 and also controls the write buffer 10.
Control 2 is also performed. Further, the cache control unit 107 also responds to the central processing unit 101.

【0014】次に、本実施例の動作を従来方式と比較し
て詳細に説明する。
Next, the operation of this embodiment will be described in detail in comparison with the conventional system.

【0015】図2は本実施例の動作を示すタイムチャー
トであり、図3は従来方式の動作を示すタイムチャート
である。図2,図3に於いて、CLOCKは中央処理装
置101の基本クロック、Axxは中央処理装置101
からアドレス制御バス108に出力されるアドレス、W
Rは中央処理装置101からアドレス制御バス108に
出力されるリード/ライト識別信号、TSは中央処理装
置101からアドレス制御バス108に出力されるデー
タ転送スタート信号、TAはキャッシュ制御部107か
らアドレス制御バス108に出力されるデータ転送終了
信号を示す。
FIG. 2 is a time chart showing the operation of this embodiment, and FIG. 3 is a time chart showing the operation of the conventional system. 2 and 3, CLOCK is the basic clock of the central processing unit 101, and Axx is the central processing unit 101.
From the address output to the address control bus 108, W
R is a read / write identification signal output from the central processing unit 101 to the address control bus 108, TS is a data transfer start signal output from the central processing unit 101 to the address control bus 108, and TA is address control from the cache control unit 107. The data transfer end signal output to the bus 108 is shown.

【0016】また、Dxxはデータを示し、中央処理装
置101のライトサイクル時には中央処理装置101か
ら出力される。更に、HITはキャッシュヒット信号、
RAM・CSはタグメモリ104,データメモリ105
に対するチップセレクト信号、RAM・WEはタグメモ
リ104,データメモリ105に対するライト信号を示
す。また、T1〜T4は中央処理装置101のデータ転
送サイクルに於けるフェーズを表している。
Dxx represents data, which is output from the central processing unit 101 during the write cycle of the central processing unit 101. Furthermore, HIT is a cache hit signal,
RAM / CS is a tag memory 104 and a data memory 105.
RAM · WE indicates a write signal for the tag memory 104 and the data memory 105. Further, T1 to T4 represent phases in the data transfer cycle of the central processing unit 101.

【0017】先ず、図2を参照して本実施例の動作を説
明する。
First, the operation of this embodiment will be described with reference to FIG.

【0018】中央処理装置101はライトアクセスを行
なう場合、サイクルT1のクロック信号CLOCKの立
下がりエッジでアドレス制御バス108にアドレスAx
x,リード/ライト識別信号WR,データ転送スタート
信号TSを出力し、データバス109にデータDxxを
出力する。
When the central processing unit 101 performs write access, the address Ax is sent to the address control bus 108 at the falling edge of the clock signal CLOCK in cycle T1.
x, a read / write identification signal WR, a data transfer start signal TS, and data Dxx on the data bus 109.

【0019】中央処理装置101からアドレスAxxが
出力されると、タグメモリ104からアドレスが読み出
され、コンパレータ106に於いてアドレスAxxと比
較される。比較一致の場合、即ち、キャッシュヒットの
場合は、コンパレータ106はサイクルT2のクロック
信号CLOCKの立ち上がりエッジでキャッシュヒット
信号HITをアクティブにする。
When the address Axx is output from the central processing unit 101, the address is read from the tag memory 104 and compared with the address Axx in the comparator 106. In the case of comparison match, that is, in the case of cache hit, the comparator 106 activates the cache hit signal HIT at the rising edge of the clock signal CLOCK in the cycle T2.

【0020】キャッシュ制御部107は中央処理装置1
01がライトサイクルの場合(リード/ライト識別信号
WRがライトを示している場合)は、コンパレータ10
6からのキャッシュヒット信号HITを待たずに、サイ
クルT2のクロック信号CLOCKの立ち上がりエッジ
でライトバッファ102に対してデータバス109上の
データの書き込みを指示する。これにより、ライトバッ
ファ102にデータバス109上のデータDxxが書き
込まれる。このデータDxxはメインメモリ上に反映さ
れる。
The cache control unit 107 is the central processing unit 1.
When 01 is a write cycle (when the read / write identification signal WR indicates write), the comparator 10
Instead of waiting for the cache hit signal HIT from 6, the write buffer 102 is instructed to write the data on the data bus 109 at the rising edge of the clock signal CLOCK in the cycle T2. As a result, the data Dxx on the data bus 109 is written in the write buffer 102. This data Dxx is reflected on the main memory.

【0021】また、キャッシュ制御部107はライトバ
ッファ102に書き込み指示を行なうと同時に、即ち、
サイクルT2のクロック信号CLOCKの立ち上がりエ
ッジでタグメモリ104,データメモリ105に対する
ライト信号RAM・WEをアクティブにする。これによ
り、データメモリ105は記憶しているデータの内のデ
ータバス109上のデータDxxと同一タグ内のデータ
を1個データDxxに置き換え、タグメモリ104は保
持しているアドレスの内、上記データと対応するアドレ
スをアドレス制御バス108上のアドレスAxxに置き
換える。
At the same time as the cache control unit 107 issues a write instruction to the write buffer 102, that is,
At the rising edge of the clock signal CLOCK in the cycle T2, the write signals RAM · WE for the tag memory 104 and the data memory 105 are activated. As a result, the data memory 105 replaces one piece of data stored in the same tag as the data Dxx on the data bus 109 with the data Dxx, and the tag memory 104 stores the above-mentioned data among the held addresses. The address corresponding to is replaced with the address Axx on the address control bus 108.

【0022】その後、キャッシュ制御部107はサイク
ルT2のクロック信号CLOCKの立下がりエッジでデ
ータ転送終了信号TAをアクティブにする。これによ
り、中央処理装置101はサイクルT3でデータ転送サ
イクルを終了する。このように、本実施例によれば、T
1〜T3の3サイクルでライトサイクルを終了させるこ
とができる。尚、リードサイクルについては従来と同様
の動作が行なわれる。
After that, the cache controller 107 activates the data transfer end signal TA at the falling edge of the clock signal CLOCK in the cycle T2. As a result, the central processing unit 101 ends the data transfer cycle at cycle T3. Thus, according to this embodiment, T
The write cycle can be completed in three cycles of 1 to T3. Regarding the read cycle, the same operation as the conventional one is performed.

【0023】次に図3を参照して従来方式の動作を説明
する。
Next, the operation of the conventional system will be described with reference to FIG.

【0024】中央処理装置101がライトアクセスを行
なう場合、従来方式に於いてもサイクルT1では本実施
例と同様の動作が行なわれる。
When the central processing unit 101 makes a write access, the operation similar to that of the present embodiment is performed in cycle T1 even in the conventional system.

【0025】そして、キャッシュヒットの場合はコンパ
レータ106からサイクルT2のクロック信号CLOC
Kの立下がりエッジでキャッシュヒット信号HITが出
力される。
In the case of a cache hit, the clock signal CLOC of the cycle T2 is output from the comparator 106.
At the falling edge of K, the cache hit signal HIT is output.

【0026】キャッシュ制御部107はサイクルT3の
クロック信号CLOCKの立ち上がりエッジでキャッシ
ュヒット信号HITがアクティブになっているか否かを
判断する。そして、アクティブになっていると判断した
場合はサイクルT3に於いてライト信号RAM・WEを
アクティブにしてデータメモリ105へのデータDxx
の書き込みを行なうと共に、ライトバッファ102に対
してデータDxxの書き込みを指示する。また、キャッ
シュヒット信号HITがアクティブになっていないと判
断した場合はライトバッファ102に対してデータバス
109上のデータの書き込みを指示する。
The cache controller 107 determines whether or not the cache hit signal HIT is active at the rising edge of the clock signal CLOCK in cycle T3. If it is determined that the write signal RAM.WE is activated in cycle T3, the data Dxx to the data memory 105 is activated.
The write buffer 102 is instructed to write the data Dxx. When it is determined that the cache hit signal HIT is not active, the write buffer 102 is instructed to write the data on the data bus 109.

【0027】その後、キャッシュ制御部107はサイク
ルT3のクロック信号CLOCKの立下がりエッジでデ
ータ転送終了信号TAをアクティブにし、これにより、
中央処理装置101はサイクルT4でデータ転送サイク
ルを終了する。このように、従来方式ではライトサイク
ルにT1〜T4の4つのサイクルが必要であった。
After that, the cache control unit 107 activates the data transfer end signal TA at the falling edge of the clock signal CLOCK in the cycle T3, whereby the data transfer end signal TA is activated.
The central processing unit 101 ends the data transfer cycle at cycle T4. As described above, the conventional method requires four write cycles, T1 to T4.

【0028】[0028]

【発明の効果】以上説明したように、本発明は、中央処
理装置のライトサイクル時、キャッシュヒット,キャッ
シュミスヒットにかかわらず、ライトバッファにライト
データを書き込むと同時にキャッシュメモリを更新する
ようにしたものであり、キャッシュヒット,キャッシュ
ミスヒットの判定結果を待つ必要がないので、従来例に
比較して中央処理装置のライトサイクルを高速化できる
効果がある。
As described above, according to the present invention, during the write cycle of the central processing unit, the write data is written into the write buffer and the cache memory is updated at the same time regardless of the cache hit or the cache miss hit. Since there is no need to wait for the cache hit / cache miss hit determination result, there is an effect that the write cycle of the central processing unit can be accelerated as compared with the conventional example.

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

【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】実施例のタイムチャートである。FIG. 2 is a time chart of an example.

【図3】従来方式のタイムチャートである。FIG. 3 is a time chart of a conventional method.

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

101…中央処理装置 102…ライトバッファ 103…キャッシュメモリ 104…タグメモリ 105…データメモリ 106…コンパレータ 107…キャッシュ制御部 108…アドレス制御バス 109…データバス 101 ... Central processing unit 102 ... write buffer 103 ... Cache memory 104 ... Tag memory 105 ... Data memory 106 ... Comparator 107 ... Cache control unit 108 ... Address control bus 109 ... data bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置と、キャッシュメモリとを
備えた情報処理装置に於いて、 前記中央処理装置のライトサイクル時、キャッシュヒッ
ト,キャッシュミスヒットにかかわらず、ライトバッフ
ァにライトデータを書き込むと同時に前記キャッシュメ
モリを更新することを特徴とするキャッシュメモリ制御
方式。
1. An information processing device comprising a central processing unit and a cache memory, wherein write data is written to a write buffer regardless of cache hit or cache miss hit during a write cycle of the central processing unit. A cache memory control method characterized in that the cache memory is updated at the same time.
【請求項2】 前記キャッシュメモリはデータメモリと
タグメモリとを含み、前記中央処理装置のライトサイク
ル時、キャッシュヒット,キャッシュミスヒットにかか
わらず、ライトバッファにライトデータを書き込むと同
時に前記データメモリをライトデータに従って更新し、
前記タグメモリをライトアドレスに従って更新すること
を特徴とする請求項1記載のキャッシュメモリ制御方
式。
2. The cache memory includes a data memory and a tag memory, and the write data is written into the write buffer at the same time as the write data is written in the write buffer regardless of cache hit or cache miss hit during a write cycle of the central processing unit. Update according to the write data,
2. The cache memory control method according to claim 1, wherein the tag memory is updated according to a write address.
【請求項3】 前記中央処理装置のライトサイクル時、
前記データメモリ中のデータの内の前記ライトデータと
同一タグ内のデータを更新することを特徴とする請求項
2記載のキャッシュメモリ制御方式。
3. A write cycle of the central processing unit,
3. The cache memory control method according to claim 2, wherein the data in the same tag as the write data in the data in the data memory is updated.
JP3211509A 1991-07-29 1991-07-29 Cache memory control system Pending JPH0535593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3211509A JPH0535593A (en) 1991-07-29 1991-07-29 Cache memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3211509A JPH0535593A (en) 1991-07-29 1991-07-29 Cache memory control system

Publications (1)

Publication Number Publication Date
JPH0535593A true JPH0535593A (en) 1993-02-12

Family

ID=16607107

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3211509A Pending JPH0535593A (en) 1991-07-29 1991-07-29 Cache memory control system

Country Status (1)

Country Link
JP (1) JPH0535593A (en)

Similar Documents

Publication Publication Date Title
JPH03127147A (en) Information processing system
JPH10275129A (en) Bus connecting device
JPH0535593A (en) Cache memory control system
JPH0877143A (en) Vector data processor
JP3039391B2 (en) Memory system
JP3799451B2 (en) Electronic computer system
JP2818562B2 (en) Address translation circuit
JPH0667982A (en) Address conversion system
JPH0447350A (en) Main storage read/response control
JP3437224B2 (en) Delay invalidation method
JPH0512120A (en) Data cache control system
CN115712392A (en) Buffer-based Cache controller and working method
JPH0728990A (en) Graphics memory access circuit
JPH0658645B2 (en) Cache memory device, data processing device, data access method, and data storage method in cache memory
JPH03269650A (en) Buffer storage
JP2000194554A (en) Arithmetic processor
JPH0432415B2 (en)
JPH0528042A (en) Cache memory control system
JPH05127988A (en) Memory control method
JPH05265942A (en) Data input / output method in DMA controller
JPH01129334A (en) Data control system for cache memory
JPH0512121A (en) Data processor
JPH0546479A (en) Address translator
JPH0721133A (en) Information processing equipment
JPH05242003A (en) Data processor