JP2006091995A - Write-back device of cache memory - Google Patents

Write-back device of cache memory Download PDF

Info

Publication number
JP2006091995A
JP2006091995A JP2004273514A JP2004273514A JP2006091995A JP 2006091995 A JP2006091995 A JP 2006091995A JP 2004273514 A JP2004273514 A JP 2004273514A JP 2004273514 A JP2004273514 A JP 2004273514A JP 2006091995 A JP2006091995 A JP 2006091995A
Authority
JP
Japan
Prior art keywords
write
cache
system bus
unit
cache line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2004273514A
Other languages
Japanese (ja)
Inventor
Osamu Sugasawa
修 菅沢
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics Corp
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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP2004273514A priority Critical patent/JP2006091995A/en
Publication of JP2006091995A publication Critical patent/JP2006091995A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a write-back device of a cache memory capable of enhancing the efficiency of using a system bus. <P>SOLUTION: The write-back device 1 includes a write-back control part 2 for scanning the indexes of the cache memory 100 and detecting dirty cache lines; a snoop part 4 for monitoring the system bus 200 and detecting the idle state of the system bus 200; and a single-write-back write buffer part 5 for writing back to a main memory 300 via the system bus 200 in a single write for every word if the snoop part 4 detects that the system bus 200 is in the idle state. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、キャッシュメモリのライトバック装置に関する。   The present invention relates to a cache memory write-back device.

ライトバック方式のキャッシュメモリシステムでは、キャッシュラインのリプレースが必要になったとき、キャッシュメモリのダーティなラインのデータがメインメモリにライトバックされる。このとき、キャッシュメモリから読み出されたデータはシステムバスを介してメインメモリへ転送される。   In the write-back cache memory system, when the cache line needs to be replaced, the dirty line data in the cache memory is written back to the main memory. At this time, the data read from the cache memory is transferred to the main memory via the system bus.

ところで、システムバスにはCPUをはじめ、さまざまなデバイスが接続されている。そこで、従来、キャッシュメモリのライトバックの実行にあたっては、システムバスの状態を監視し、システムバスのアイドル期間にライトバックを実行することが行われている。このとき、キャッシュメモリにダーティなラインが複数あるときは、ダーティなラインがなくなるまで連続してライトバックを行うことが提案されている(例えば、特許文献1参照。)。   By the way, various devices such as a CPU are connected to the system bus. Therefore, conventionally, when executing the write back of the cache memory, the state of the system bus is monitored and the write back is executed during the idle period of the system bus. At this time, when there are a plurality of dirty lines in the cache memory, it has been proposed to perform write back continuously until there are no dirty lines (see, for example, Patent Document 1).

このような連続してライトバックを行うとき、メインメモリへバーストライトを行うと、メインメモリへのデータの書き込みを効率よく行うことができる。   When performing such continuous write back, if burst write is performed to the main memory, data can be efficiently written to the main memory.

しかし、一般的にメインメモリの動作速度はCPUに比べてかなり遅い。そのため、バーストライトでメインメモリへのライトバックを行うと、その間動作速度の遅いメインメモリへのアクセスにシステムバスが占有され、システムバスの使用効率が悪化するという問題があった。
特開2002−108702号公報(第7−8ページ、図4、図5)
However, generally, the operation speed of the main memory is considerably slower than that of the CPU. For this reason, when the write back to the main memory is performed by burst write, the system bus is occupied for accessing the main memory having a low operation speed during that time, and there is a problem that the use efficiency of the system bus deteriorates.
JP 2002-108702 A (page 7-8, FIGS. 4 and 5)

そこで、本発明の目的は、システムバスの使用効率を向上させることのできるキャッシュメモリのライトバック装置を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide a cache memory write-back device capable of improving the efficiency of use of a system bus.

本発明の一態様によれば、キャッシュメモリのキャッシュラインを走査してダーティなキャッシュラインを検出するライトバック制御部と、システムバスを監視してアイドル状態を検出するスヌープ部と、前記ライトバック制御部が検出したダーティなキャッシュラインのデータを一時的に保存し、前記スヌープ部が前記システムバスのアイドル状態を検出したときに前記保存したデータを前記システムバスを介して前記キャッシュラインのワードごとにシングルライトでメインメモリへ書き込むシングルライトバックライトバッファー部とを具備することを特徴とするキャッシュメモリのライトバック装置が提供される。   According to one aspect of the present invention, a write back control unit that scans a cache line of a cache memory to detect a dirty cache line, a snoop unit that monitors a system bus and detects an idle state, and the write back control Dirty cache line data detected by the unit is temporarily stored, and when the snoop unit detects an idle state of the system bus, the stored data is stored for each word of the cache line via the system bus. Provided is a cache memory write-back device comprising a single-write backlight buffer unit for writing to a main memory by a single write.

また、本発明の別の一態様によれば、新たに書き込みの行われたキャッシュラインのインデックスを順次格納するFIFOを有し、ストア命令またはキャッシュメモリのダーティビットのクリア命令の実行時に前記FIFOのデータを更新して出力するインデックスキュー部と、前記インデックスキュー部から出力されたインデックスのキャッシュラインを前記キャッシュメモリから取得するライトバック制御部と、システムバスを監視してアイドル状態を検出するスヌープ部と、前記ライトバック制御部が取得した前記キャッシュラインのデータを一時的に保存し、前記スヌープ部が前記システムバスのアイドル状態を検出したときに前記保存したデータを前記システムバスを介して前記キャッシュラインのワードごとにシングルライトでメインメモリへ書き込むシングルライトバックライトバッファー部とを具備することを特徴とするキャッシュメモリのライトバック装置が提供される。   According to another aspect of the present invention, the FIFO has a FIFO for sequentially storing an index of a newly written cache line, and when executing a store instruction or a cache memory dirty bit clear instruction, An index queue unit that updates and outputs data, a write-back control unit that acquires a cache line of an index output from the index queue unit from the cache memory, and a snoop unit that monitors the system bus and detects an idle state And temporarily storing the data of the cache line acquired by the write back control unit, and the stored data when the snoop unit detects an idle state of the system bus via the system bus Single write for each word in the line Write-back apparatus of cache memory, characterized by comprising a single write-back write buffer portion to be written to the in-memory is provided.

本発明によれば、ダーティなキャッシュラインのデータをシステムバスがアイドル状態であるときに分散させてシングルライトでメインメモリへライトバックするので、システムバスを効率よく使用することができる。   According to the present invention, dirty cache line data is distributed and written back to the main memory with a single write when the system bus is in an idle state, so that the system bus can be used efficiently.

以下、本発明の実施例を図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の第1の実施例に係るキャッシュメモリのライトバック装置の構成の例を示すブロック図である。   FIG. 1 is a block diagram showing an example of the configuration of a cache memory write-back device according to a first embodiment of the present invention.

ライトバック装置1は、キャッシュメモリ100のインデックスを走査してダーティなキャッシュラインを検出するライトバック制御部2と、システムバス200を監視してシステムバス200のアイドル状態を検出するスヌープ部4と、ライトバック制御部2によりダーティであることが検出されたキャッシュラインのデータを一時保存し、その後、スヌープ部4によりシステムバス200がアイドル状態であることが検出されたときに、システムバス200を介してメインメモリ300へ1ワードごとにシングルライトでライトバックするシングルライトバックライトバッファー部5とを有する。   The write-back device 1 scans an index of the cache memory 100 to detect a dirty cache line, a snoop unit 4 to monitor the system bus 200 and detect an idle state of the system bus 200, The cache line data detected to be dirty by the write-back control unit 2 is temporarily stored, and then when the snoop unit 4 detects that the system bus 200 is in an idle state, the data is transferred via the system bus 200. And a single write backlight buffer unit 5 for writing back to the main memory 300 by single write for each word.

このライトバック装置1は、次のように動作する。   The write back device 1 operates as follows.

ライトバック制御部2は、キャッシュラインのインデックス値を1ずつインクリメントしてカウントするカウンタ3を有しており、カウンタ3の出力に従ってキャッシュメモリ100のキャッシュラインを順次アクセスし、アクセスしたキャッシュラインのステートを読み出す。そして、ステートがダーティであれば、そのキャッシュラインのデータをシングルライトバックライトバッファー部5に保存するようにシングルライトバックライトバッファー部5へ指示する。また、ライトバック制御部2は、ライトバックの終わったキャッシュラインのステートをクリーンにする。   The write-back control unit 2 has a counter 3 that increments and increments the index value of the cache line by one, sequentially accesses the cache line of the cache memory 100 according to the output of the counter 3, and the state of the accessed cache line Is read. If the state is dirty, the single write backlight buffer unit 5 is instructed to store the data of the cache line in the single write backlight buffer unit 5. Further, the write back control unit 2 cleans the state of the cache line after the write back is completed.

スヌープ部4は、システムバス200を監視し、システムバス200がアイドル状態であることを検出すると、システムバス200がアイドル状態であることをシングルライトバックライトバッファー部5へ通知する。   When the snoop unit 4 monitors the system bus 200 and detects that the system bus 200 is in an idle state, the snoop unit 4 notifies the single write backlight buffer unit 5 that the system bus 200 is in an idle state.

シングルライトバックライトバッファー部5は、ライトバック制御部2の指示に従ってキャッシュメモリ100のダーティなキャッシュラインのデータを一時保管する。そして、スヌープ部4からシステムバス200がアイドル状態であることを通知されると、一時保管しているキャッシュラインのデータの1ワード分をシングルライトで、システムバス200を介してメインメモリ300へ書き込む。   The single write backlight buffer unit 5 temporarily stores dirty cache line data in the cache memory 100 in accordance with instructions from the write back control unit 2. When notified from the snoop unit 4 that the system bus 200 is in an idle state, one word of cache line data temporarily stored is written to the main memory 300 via the system bus 200 with a single write. .

このとき、一時保管しているキャッシュラインのデータが複数ワード分あるときは、1ワード分の書き込みが終わるごとに、シングルライトバックライトバッファー部5は、システムバス200への他のデバイスからのアクセス要求がないかをスヌープ部4を介して確認する。他のデバイスからのアクセス要求があるときは、その時点でメモリ300への書き込みを終了する。そして、次にシステムバス200がアイドル状態になったときにメモリ300への書き込みを再開する。   At this time, when there are a plurality of words of cache line data temporarily stored, the single write backlight buffer unit 5 accesses the system bus 200 from other devices every time one word is written. It is confirmed through the snoop unit 4 whether there is a request. When there is an access request from another device, the writing to the memory 300 is terminated at that time. Then, the writing to the memory 300 is resumed when the system bus 200 is in an idle state next time.

このようにして、シングルライトバックライトバッファー部5は、一時保管しているキャッシュラインの総てのワードを1つのバスアイドル期間で書き込めないときは、データを複数のバスアイドル期間に分割してメインメモリ300へ書き込む。   In this way, the single write backlight buffer unit 5 divides the data into a plurality of bus idle periods when all the words on the temporarily stored cache line cannot be written in one bus idle period. Write to memory 300.

このような本実施例のキャッシュメモリのライトバック装置によれば、インデックス順に順次走査されて検出されたダーティなキャッシュラインのデータを、システムバスの複数のアイドル期間に分割して1ワードごとのシングルライトでメインメモリへライトバックすることができる。これにより、メインメモリへのライトバックがシステムバスを長期間占有することがなく、システムバスを効率よく使用することができる。   According to the cache memory write-back device of this embodiment, the dirty cache line data detected by sequentially scanning in the order of the index is divided into a plurality of idle periods of the system bus, and a single word for each word. Write back to the main memory. Thereby, the write back to the main memory does not occupy the system bus for a long time, and the system bus can be used efficiently.

図2は、本発明の第2の実施例に係るキャッシュメモリのライトバック装置の構成の例を示すブロック図である。本実施例のライトバック装置11の構成は、実施例1のライトバック装置と基本的に同じである。そこで、図2において図1と同一の機能を有するブロックには図1と同じ符号を付し、ここではその詳細な説明を省略する。   FIG. 2 is a block diagram showing an example of the configuration of the cache memory write-back device according to the second embodiment of the present invention. The configuration of the write back device 11 of the present embodiment is basically the same as that of the write back device of the first embodiment. Therefore, in FIG. 2, blocks having the same functions as those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and detailed description thereof is omitted here.

本実施例のライトバック装置11は、キャッシュメモリ100のインデックスを走査してダーティなキャッシュラインを検出するライトバック制御部21と、スヌープ部4と、シングルライトバックライトバッファー部5とを有する。   The write-back device 11 according to this embodiment includes a write-back control unit 21 that scans an index of the cache memory 100 to detect a dirty cache line, a snoop unit 4, and a single write backlight buffer unit 5.

ここで、ライトバック制御部21は、実施例1のライトバック制御部2と同様、キャッシュメモリ100のキャッシュラインにアクセスし、アクセスしたキャッシュラインのステートを読み出し、ステートがダーティであれば、そのキャッシュラインのデータをシングルライトバックライトバッファー部5に保存するようにシングルライトバックライトバッファー部5へ指示するよう動作する。また、ライトバック制御部21は、ライトバックの終わったキャッシュラインのステートをクリーンにするよう動作する。   Here, as with the write back control unit 2 of the first embodiment, the write back control unit 21 accesses the cache line of the cache memory 100 and reads the state of the accessed cache line. It operates to instruct the single write backlight buffer unit 5 to store the line data in the single write backlight buffer unit 5. Further, the write back control unit 21 operates so as to clean the state of the cache line after the write back.

このライトバック制御部21が実施例1のライトバック制御部2と異なる点は、キャッシュラインへアクセスするためのキャッシュメモリ100のインデックスの走査に乱数発生器31の出力を用いる点である。これにより、ライトバック制御部21は、キャッシュメモリ100のインデックスをランダムに走査する。すなわち、キャッシュメモリ100のキャッシュラインはランダムにアクセスされる。   The write back control unit 21 is different from the write back control unit 2 of the first embodiment in that the output of the random number generator 31 is used for scanning the index of the cache memory 100 for accessing the cache line. Thereby, the write-back control unit 21 scans the index of the cache memory 100 at random. That is, the cache line of the cache memory 100 is accessed at random.

一般に、キャッシュメモリ100に新しいデータが書き込まれてキャッシュラインがダーティになるのは任意のインデックスでランダムに発生する。一方、ダーティになったキャッシュラインのデータは、あまり時間が経たないうちに、メインメモリ300へライトバックされることが望まれる。   In general, new data is written to the cache memory 100 and the cache line becomes dirty at random at an arbitrary index. On the other hand, it is desirable that the dirty cache line data is written back to the main memory 300 within a short time.

そこで、本実施例のライトバック制御部21は、ランダムにキャッシュラインにアクセスし、新たにダーティになったキャッシュラインへ早めにアクセスする確率の増大を図る。   Therefore, the write-back control unit 21 of this embodiment attempts to increase the probability of accessing the cache line at random and accessing the newly dirty cache line at an early stage.

このような本実施例のキャッシュメモリのライトバック装置によれば、ランダムなインデックス順でキャッシュメモリがアクセスされるので、キャッシュラインが長い時間ダーティであることを防止することを可能とする。   According to the cache memory write-back device of this embodiment, since the cache memory is accessed in a random index order, it is possible to prevent the cache line from being dirty for a long time.

図3は、本発明の第3の実施例に係るキャッシュメモリのライトバック装置の構成の例を示すブロック図である。図3においても、図1と同一の機能を有するブロックには図1と同じ符号を付し、ここではその詳細な説明を省略する。   FIG. 3 is a block diagram showing an example of the configuration of the cache memory write-back device according to the third embodiment of the present invention. 3, blocks having the same functions as those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and detailed description thereof is omitted here.

本実施例のライトバック装置12は、キャッシュメモリ100へのストア時のインデックスが順次格納されてダーティなキャッシュラインをアクセスするためのキューを形成するインデックスキュー部6と、インデックスキュー部6から出力されたインデックスのキャッシュラインのデータの取得を制御するライトバック制御部22と、スヌープ部4と、シングルライトバックライトバッファー部5とを有する。また、ライトバック制御部22は、ライトバックの終わったキャッシュラインのステートをクリーンにする。   The write-back device 12 according to the present embodiment outputs an index queue unit 6 that sequentially stores indexes when stored in the cache memory 100 and forms a queue for accessing a dirty cache line, and is output from the index queue unit 6. The write back control unit 22 that controls the acquisition of the cache line data of the index, the snoop unit 4, and the single write backlight buffer unit 5. In addition, the write back control unit 22 cleans the state of the cache line after the write back is completed.

ここで、インデックスキュー部6の内部構成の例と動作について説明する。   Here, an example of the internal configuration and operation of the index queue unit 6 will be described.

図4は、インデックスキュー部6の構成の例を示すブロック図である。   FIG. 4 is a block diagram illustrating an example of the configuration of the index queue unit 6.

インデックスキュー部6は、FIFO61と、比較回路62とを有する。   The index queue unit 6 includes a FIFO 61 and a comparison circuit 62.

FIFO61は、Q0〜Q4の5段のキューを持っており、キャッシュメモリ100へのストアが行われたときのインデックスがQ0からQ4へ向かってシフトされながら順次格納される。したがって、このとき書き込まれるインデックスは、ライトバックの必要なダーティなキャッシュラインのインデックスである。なお、図5ではキューを5段としているが、この段数は5段に限るものではなく、任意の段数とすることができる。   The FIFO 61 has a five-stage queue of Q0 to Q4, and the indexes when the store to the cache memory 100 is performed are sequentially stored while being shifted from Q0 to Q4. Therefore, the index written at this time is an index of a dirty cache line that needs to be written back. In FIG. 5, the number of queues is five, but the number of stages is not limited to five and can be any number.

比較回路62は、新たなインデックスの入力があると、その値とFIFO61に格納されているインデックスの値とを比較する。FIFO61に格納されているインデックスの値が、新たに入力されたインデックスの値と一致したときは、そのインデックスのキャッシュラインは最新のデータを持つことになるのでキューの位置をQ0へ変更する必要がある。そのため、比較回路62は、今まで該当のインデックスを格納していた段へ無効化信号を出力する。   When a new index is input, the comparison circuit 62 compares the value with the index value stored in the FIFO 61. When the index value stored in the FIFO 61 matches the newly input index value, the cache line of that index has the latest data, so it is necessary to change the queue position to Q0. is there. Therefore, the comparison circuit 62 outputs an invalidation signal to the stage where the corresponding index has been stored so far.

また、比較回路62は、キャッシュメモリ100のダーティビットがクリアされたときも、そのダーティビットがクリアされたキャッシュラインのインデックスの値と、FIFO61に格納されているインデックスの値とを比較する。その結果、その値が一致すると、FIFO61の該当のインデックスを格納していた段へ無効化信号を出力する。   Further, even when the dirty bit of the cache memory 100 is cleared, the comparison circuit 62 compares the index value of the cache line in which the dirty bit is cleared with the index value stored in the FIFO 61. As a result, if the values match, an invalidation signal is output to the stage that stores the corresponding index of the FIFO 61.

FIFO61は、比較回路62から無効化信号が出力されると、その段の内容を削除すし、その空いた段へ向かってキューを1つずつシフトさせる。   When the invalidation signal is output from the comparison circuit 62, the FIFO 61 deletes the contents of the stage and shifts the queue one by one toward the empty stage.

一方、比較回路62から無効化信号が出力されないときは、FIFO61のキューは、そのまま出力側へシフトし、Q4に格納されていたインデックスがインデックスキュー部6の出力として出力される。このようにして、インデックスキュー部6からはキャッシュラインがダーティになった順番に、そのキャッシュラインのインデックスが出力される。   On the other hand, when the invalidation signal is not output from the comparison circuit 62, the queue of the FIFO 61 is shifted to the output side as it is, and the index stored in Q4 is output as the output of the index queue unit 6. In this way, the index queue unit 6 outputs the indexes of the cache lines in the order in which the cache lines become dirty.

ライトバック制御部22は、インデックスキュー部6からのインデックスが入力されると、そのインデックスのキャッシュラインはダーティであるので、そのキャッシュラインのデータを保存するようにシングルライトバックライトバッファー部5へ指示する。   When the index from the index queue unit 6 is input, the write-back control unit 22 instructs the single write backlight buffer unit 5 to store the cache line data because the cache line of the index is dirty. To do.

そして、シングルライトバックライトバッファー部5は、スヌープ部4がシステムバス200のアイドル状態を検出したときに、保存したデータをメインメモリ300へシングルライトでライトバックする。   Then, when the snoop unit 4 detects the idle state of the system bus 200, the single write backlight buffer unit 5 writes back the stored data to the main memory 300 with a single write.

このような本実施例のキャッシュメモリのライトバック装置によれば、ダーティなキャッシュラインがダーティになった順番にライトバックされるので、効率的なライトバックが可能となる。   According to such a cache memory write-back device of this embodiment, since dirty cache lines are written back in the order in which they become dirty, efficient write-back is possible.

なお、上述の各実施例において、ライトバック装置が接続されるキャッシュメモリは、シングルポートのメモリであってもマルチポートのメモリであってもよいが、マルチポートのメモリであった場合には、その内の1つのポートをライトバック装置接続専用とすることにより、ライトバック装置のキャッシュラインへのアクセスを容易に行うようにすることができる。   In each of the above-described embodiments, the cache memory to which the write-back device is connected may be a single-port memory or a multi-port memory. By dedicating one of the ports to the write back device connection, it is possible to easily access the cache line of the write back device.

本発明の第1の実施例に係るキャッシュメモリのライトバック装置の構成の例を示すブロック図。1 is a block diagram showing an example of the configuration of a cache memory write-back device according to a first embodiment of the present invention; 本発明の第2の実施例に係るキャッシュメモリのライトバック装置の構成の例を示すブロック図。The block diagram which shows the example of a structure of the write-back apparatus of the cache memory based on 2nd Example of this invention. 本発明の第3の実施例に係るキャッシュメモリのライトバック装置の構成の例を示すブロック図。The block diagram which shows the example of a structure of the write-back apparatus of the cache memory based on 3rd Example of this invention. 本発明の第3の実施例に係るキャッシュメモリのライトバック装置に含まれるインデックスキュー部の構成の例を示すブロック図。The block diagram which shows the example of a structure of the index queue part contained in the write-back apparatus of the cache memory based on 3rd Example of this invention.

符号の説明Explanation of symbols

1、11、12 ライトバック装置
2、21、22 ライトバック制御部
3 カウンタ
31 乱数発生器
4 スヌープ部
5 シングルライトバックライトバッファー部
6 インデックスキュー部
61 FIFO
62 比較回路
1, 11, 12 Writeback devices 2, 21, 22 Writeback control unit 3 Counter 31 Random number generator 4 Snoop unit 5 Single write backlight buffer unit 6 Index queue unit 61 FIFO
62 Comparison circuit

Claims (5)

キャッシュメモリのキャッシュラインを走査してダーティなキャッシュラインを検出するライトバック制御部と、
システムバスを監視してアイドル状態を検出するスヌープ部と、
前記ライトバック制御部が検出したダーティなキャッシュラインのデータを一時的に保存し、前記スヌープ部が前記システムバスのアイドル状態を検出したときに前記保存したデータを前記システムバスを介して前記キャッシュラインのワードごとにシングルライトでメインメモリへ書き込むシングルライトバックライトバッファー部と
を具備することを特徴とするキャッシュメモリのライトバック装置。
A write-back controller that scans the cache lines of the cache memory to detect dirty cache lines;
A snoop unit that monitors the system bus and detects an idle state;
Dirty cache line data detected by the write-back control unit is temporarily stored, and when the snoop unit detects an idle state of the system bus, the stored data is transferred to the cache line via the system bus. A write back device for a cache memory, comprising: a single write backlight buffer unit for writing to the main memory with a single write for each word.
前記ライトバック制御部が、キャッシュラインをインデックス順に順次走査することを特徴とする請求項1に記載のキャッシュメモリのライトバック装置。   The cache memory write-back device according to claim 1, wherein the write-back control unit sequentially scans cache lines in an index order. 前記ライトバック制御部が、キャッシュラインをランダムに走査することを特徴とする請求項1に記載のキャッシュメモリのライトバック装置。   The cache memory write-back device according to claim 1, wherein the write-back control unit scans a cache line at random. 新たに書き込みの行われたキャッシュラインのインデックスを順次格納するFIFOを有し、ストア命令またはキャッシュメモリのダーティビットのクリア命令の実行時に前記FIFOのデータを更新して出力するインデックスキュー部と、
前記インデックスキュー部から出力されたインデックスのキャッシュラインを前記キャッシュメモリから取得するライトバック制御部と、
システムバスを監視してアイドル状態を検出するスヌープ部と、
前記ライトバック制御部が取得した前記キャッシュラインのデータを一時的に保存し、前記スヌープ部が前記システムバスのアイドル状態を検出したときに前記保存したデータを前記システムバスを介して前記キャッシュラインのワードごとにシングルライトでメインメモリへ書き込むシングルライトバックライトバッファー部と
を具備することを特徴とするキャッシュメモリのライトバック装置。
An index queue unit that has a FIFO for sequentially storing indexes of newly written cache lines, and that updates and outputs the FIFO data when executing a store instruction or a cache memory dirty bit clear instruction;
A write-back control unit that acquires the cache line of the index output from the index queue unit from the cache memory;
A snoop unit that monitors the system bus and detects an idle state;
The cache line data acquired by the write-back control unit is temporarily stored, and when the snoop unit detects an idle state of the system bus, the stored data is stored in the cache line via the system bus. A cache memory write-back device comprising: a single-write backlight buffer unit for writing to the main memory by single write for each word.
前記ライトバック制御部が、前記シングルライトバックライトバッファー部によるメインメモリへの書き込みの終わったキャッシュラインのステートをクリーンにすることを特徴とする請求項1乃至4のいずれか1項に記載のキャッシュメモリのライトバック装置。   5. The cache according to claim 1, wherein the write-back control unit cleans a state of a cache line that has been written to the main memory by the single write backlight buffer unit. 6. Memory write-back device.
JP2004273514A 2004-09-21 2004-09-21 Write-back device of cache memory Withdrawn JP2006091995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004273514A JP2006091995A (en) 2004-09-21 2004-09-21 Write-back device of cache memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004273514A JP2006091995A (en) 2004-09-21 2004-09-21 Write-back device of cache memory

Publications (1)

Publication Number Publication Date
JP2006091995A true JP2006091995A (en) 2006-04-06

Family

ID=36232943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004273514A Withdrawn JP2006091995A (en) 2004-09-21 2004-09-21 Write-back device of cache memory

Country Status (1)

Country Link
JP (1) JP2006091995A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2028595A1 (en) 2007-08-24 2009-02-25 NEC Electronics Corporation Hierarchical cache memory system
WO2012127631A1 (en) * 2011-03-22 2012-09-27 富士通株式会社 Processing unit, information processing device and method of controlling processing unit
JP2014186521A (en) * 2013-03-22 2014-10-02 Fujitsu Ltd Arithmetic processing unit, information processing unit, and control method of arithmetic processing unit
CN106663057A (en) * 2014-08-04 2017-05-10 Arm 有限公司 Write operations to non-volatile memory
JP2017527887A (en) * 2014-08-15 2017-09-21 マイクロソフト テクノロジー ライセンシング,エルエルシー Flushing in the file system
US10621103B2 (en) 2017-12-05 2020-04-14 Arm Limited Apparatus and method for handling write operations
WO2023162465A1 (en) * 2022-02-24 2023-08-31 ソニーセミコンダクタソリューションズ株式会社 Write buffer control circuit

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2028595A1 (en) 2007-08-24 2009-02-25 NEC Electronics Corporation Hierarchical cache memory system
WO2012127631A1 (en) * 2011-03-22 2012-09-27 富士通株式会社 Processing unit, information processing device and method of controlling processing unit
JP5527477B2 (en) * 2011-03-22 2014-06-18 富士通株式会社 Arithmetic processing device, information processing device, and control method for arithmetic processing device
JP2014186521A (en) * 2013-03-22 2014-10-02 Fujitsu Ltd Arithmetic processing unit, information processing unit, and control method of arithmetic processing unit
CN106663057A (en) * 2014-08-04 2017-05-10 Arm 有限公司 Write operations to non-volatile memory
JP2017527023A (en) * 2014-08-04 2017-09-14 エイアールエム リミテッド Write operation to non-volatile memory
US11429532B2 (en) 2014-08-04 2022-08-30 Arm Limited Write operations to non-volatile memory
JP2017527887A (en) * 2014-08-15 2017-09-21 マイクロソフト テクノロジー ライセンシング,エルエルシー Flushing in the file system
US10579523B2 (en) 2014-08-15 2020-03-03 Microsoft Technology Licensing, Llc Flushing in file system
US10621103B2 (en) 2017-12-05 2020-04-14 Arm Limited Apparatus and method for handling write operations
WO2023162465A1 (en) * 2022-02-24 2023-08-31 ソニーセミコンダクタソリューションズ株式会社 Write buffer control circuit

Similar Documents

Publication Publication Date Title
US20050273562A1 (en) Read access and storage circuitry read allocation applicable to a cache
JPH11143775A (en) Cache memory system
JPH07219844A (en) Apparatus and method for cache line replacing
JP3236287B2 (en) Multiprocessor system
JP4189402B2 (en) Cache circuit
KR101472967B1 (en) Cache memory and method capable of write-back operation, and system having the same
JP2006091995A (en) Write-back device of cache memory
JP4791714B2 (en) Method, circuit, and system for using pause time of dynamic frequency scaling cache memory
US20070226382A1 (en) Method for improving direct memory access performance
JP2010146084A (en) Data processor including cache memory control section
US9158697B2 (en) Method for cleaning cache of processor and associated processor
JP2013008198A (en) Image processor, image processing control method and image processing control program
JP2007310735A (en) Direct memory access controller
JP2008009702A (en) Arithmetic processing system
JP2005301387A (en) Cache memory controller and cache memory control method
JP2009505178A (en) Apparatus and method for storing data and / or instructions in a computer system comprising at least two instruction execution units and at least a first storage device or storage area for data and / or instructions
JP2008257508A (en) Cache control method, cache device, and microcomputer
JP2009258984A (en) Information processor and load control method
JP4295815B2 (en) Multiprocessor system and method of operating multiprocessor system
TWI220944B (en) Cache controller unit architecture and applied method
JPH09288616A (en) Computer
KR100286344B1 (en) Snooping cycle remove apparatus for cache
JP2006331008A (en) Memory interface
JP2008217421A (en) Electronic apparatus, electric power source control program for electronic apparatus, and electric power source control method
JP2006260378A (en) Semiconductor integrated circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071204