JPH02310749A - Cache main memory control system - Google Patents

Cache main memory control system

Info

Publication number
JPH02310749A
JPH02310749A JP1133172A JP13317289A JPH02310749A JP H02310749 A JPH02310749 A JP H02310749A JP 1133172 A JP1133172 A JP 1133172A JP 13317289 A JP13317289 A JP 13317289A JP H02310749 A JPH02310749 A JP H02310749A
Authority
JP
Japan
Prior art keywords
data
main memory
cache
data buffer
processor
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
JP1133172A
Other languages
Japanese (ja)
Inventor
Hiroshi Yamashita
浩 山下
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 JP1133172A priority Critical patent/JPH02310749A/en
Publication of JPH02310749A publication Critical patent/JPH02310749A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To enable data hit on a cache to be read out with a processor during performing the write of the data on a main memory by providing a bidirectional data buffer for the main memory. CONSTITUTION:When a write operation by the processor 5 is performed, write data outputted to a data bus 6 is held in a shared data buffer 4, and next, the data is transferred to a data buffer 3. At this time, when the write operation is hit on the cache 1, the write operation is performed on the cache 1 simultaneously. And the write operation on the main memory 2 is performed based on the data held at the data buffer 3, and the data read out by hitting the cache 1 is read in the processor 5 via the shared data buffer 4. Thereby, the data hit on the cache can be read out without depending on whether or not the write operation on the main memory 1 from the data buffer 3 is completed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、小型情報処理装置等のキャッシュ・メインメ
モリ制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a cache/main memory control system for small-sized information processing devices and the like.

〔従来の技術〕[Conventional technology]

従来、この種の制御方式は、キャッシュとメインメモリ
共用の双方向データバッファのみが、プロセッサとキャ
ッシュ及びメインメモリとの間に存在していた。
Conventionally, in this type of control system, only a bidirectional data buffer shared between the cache and main memory existed between the processor and the cache and main memory.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のキャッシュ・メインメモリ制御方式では
、データバッファをキャッシュとメインメモリが共用し
ている為、データの書き込みを行う場合、書き込みに要
する時間は、メインメモリのアクセスタイムに依存する
ので、書き込み動作後にプロセッサがデータを読み出す
場合、メインメモリへの書き込みが終了するまで、キャ
ッシュにヒツトしたデータさえも読み出すことができな
いので、プロセッサが待たされる為、キャッシュの性能
を有効に利用することができないという欠点があった。
In the conventional cache/main memory control method described above, the data buffer is shared between the cache and the main memory, so when writing data, the time required for writing depends on the access time of the main memory. When the processor reads data after an operation, even the data that hit the cache cannot be read until the write to the main memory is finished, so the processor is forced to wait, making it impossible to effectively utilize the performance of the cache. There were drawbacks.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のキャッシュ・メインメモリ制御方式の構成は、
小型情報処理装置等のキャッシュとメインメモリの制御
方式において、前記プロセッサと前記キャッシュとの間
に、メインメモリと共用の第1の双方向データバッファ
を有し、かつ、前記第1の双方向データバッファと前記
メインメモリの間にさらに第2の双方向データバッファ
を備え、前記プロセッサからのデータを前記メインメモ
リに書き込み動作中に、前記プロセッサは、前記キャッ
シュからヒツトしたデータを読み出すことを可能とする
ことを特徴とする。
The configuration of the cache/main memory control method of the present invention is as follows:
In a control method for a cache and main memory of a small information processing device, etc., a first bidirectional data buffer shared with the main memory is provided between the processor and the cache, and the first bidirectional data buffer is A second bidirectional data buffer is further provided between the buffer and the main memory, allowing the processor to read hit data from the cache during an operation of writing data from the processor to the main memory. It is characterized by

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のキャッシュ・メインメモリ
制御方式の主要ブロック図であり、キャッシュ1、メイ
ンメモリ2、データバッファ3、共用データバッファ4
、プロセッサら、データバス6から構成される。
FIG. 1 is a main block diagram of a cache/main memory control system according to an embodiment of the present invention, in which a cache 1, main memory 2, data buffer 3, shared data buffer 4
, a processor, and a data bus 6.

第2図は本実施例におけるタイミングチャートであり、
以下第1図及び第2図を参照して動作を説明する。
FIG. 2 is a timing chart in this embodiment,
The operation will be explained below with reference to FIGS. 1 and 2.

プロセッサ5からの書き込み動作が行われると、データ
バス6上に書き込みデータが出力される。その書き込み
データを、共用データバッファ4に保持すると、プロセ
ッサ5は書き込み動作を終了する。次に、共用データバ
ッファ4に保持したデータを、データバッファ3に移す
When the processor 5 performs a write operation, write data is output onto the data bus 6. After holding the write data in the shared data buffer 4, the processor 5 ends the write operation. Next, the data held in the shared data buffer 4 is transferred to the data buffer 3.

この時、前記書き込み動作がキャッシュにヒツトした場
合は、共用データバッファ4からデータバッファ3に移
すと同時に、キャッシュにも書き込み動作を行う。キャ
ッシュに対する書き込み動作及びデータバッファ3へ移
す動作が終了すると、共用データバッファ4は書き込み
データの保持を中止する。
At this time, if the write operation hits the cache, the data is transferred from the shared data buffer 4 to the data buffer 3, and at the same time, the write operation is also performed on the cache. When the write operation to the cache and the transfer operation to the data buffer 3 are completed, the shared data buffer 4 stops holding the write data.

メインメモリ2への書き込み動作は、データバッファ3
に保持されているデータを基に行う。
A write operation to main memory 2 is performed using data buffer 3.
Based on data held in .

さらに、プロセッサ5から見れば、共用データバッファ
4ヘデータを保持させると書き込み動作が終了したので
、読み出し動作に移る。この時、共用データバッファ4
は、すでに前記動作を終了している為に、開放されてお
り、キャッシュにヒツトして読み出されたデータは、共
用データバッファ4及びデータバス6を経由してプロセ
ッサ5に読み込まれる。
Furthermore, from the perspective of the processor 5, the write operation is completed once the data is held in the shared data buffer 4, so the read operation is started. At this time, the shared data buffer 4
Since the above operation has already been completed, the data is released, and the data hit and read from the cache is read into the processor 5 via the shared data buffer 4 and the data bus 6.

即ち、データバッファ3からメインメモリへの書き込み
動作が終了したかどうかに依存することなく、キャッシ
ュにヒツトしたデータを読み込むことが可能となる。
That is, it becomes possible to read data that has been hit into the cache, regardless of whether the write operation from the data buffer 3 to the main memory has been completed.

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

以上説明したように本発明は、メインメモリ用に第2の
双方向データバッファを新たに追加することにより、メ
インメモリにデータを書き込み動作中に、プロセッサは
キャッシュにヒツトしたデータを読み出すことができる
効果がある。
As explained above, by newly adding a second bidirectional data buffer for the main memory, the processor can read data hit in the cache while writing data to the main memory. effective.

図面の簡単な説明 第1図は本発明の一実施例のキャッシュ・メインメモリ
制御方式を示した主要ブロック図、第2図は本実施例に
おける動作を示すタイミングチャートである。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a main block diagram showing a cache/main memory control system according to an embodiment of the present invention, and FIG. 2 is a timing chart showing the operation of this embodiment.

1・・・キャッシュ、2・・・メインメモリ、3・・・
データバッファ、4・・・キャッシュ・メインメモリ共
用データバッファ、5・・・プロセッサ、6・・・デー
タバス。
1...cache, 2...main memory, 3...
Data buffer, 4... Cache/main memory shared data buffer, 5... Processor, 6... Data bus.

Claims (1)

【特許請求の範囲】[Claims] 小型情報処理装置等のキャッシュとメインメモリの制御
方式において、前記プロセッサと前記キャッシュとの間
に、メインメモリと共用の第1の双方向データバッファ
を有し、かつ、前記第1の双方向データバッファと前記
メインメモリの間にさらに第2の双方向データバッファ
を備え、前記プロセッサからのデータを前記メインメモ
リに書き込み動作中に、前記プロセッサは、前記キャッ
シュからヒットしたデータを読み出すことを可能とする
ことを特徴とするキャッシュ・メインメモリ制御方式。
In a control method for a cache and main memory of a small information processing device, etc., a first bidirectional data buffer shared with the main memory is provided between the processor and the cache, and the first bidirectional data buffer is A second bidirectional data buffer is further provided between the buffer and the main memory, allowing the processor to read hit data from the cache during an operation of writing data from the processor to the main memory. A cache/main memory control method that is characterized by:
JP1133172A 1989-05-26 1989-05-26 Cache main memory control system Pending JPH02310749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1133172A JPH02310749A (en) 1989-05-26 1989-05-26 Cache main memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1133172A JPH02310749A (en) 1989-05-26 1989-05-26 Cache main memory control system

Publications (1)

Publication Number Publication Date
JPH02310749A true JPH02310749A (en) 1990-12-26

Family

ID=15098362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1133172A Pending JPH02310749A (en) 1989-05-26 1989-05-26 Cache main memory control system

Country Status (1)

Country Link
JP (1) JPH02310749A (en)

Similar Documents

Publication Publication Date Title
JPH02310749A (en) Cache main memory control system
JPS61165170A (en) Bus controlling system
JPH02257344A (en) Cache memory and main memory control circuit
JPH07319829A (en) Method for transferring data
JPS61117651A (en) Interface device
JPS6360428B2 (en)
JPH0685154B2 (en) Intermediate buffer control method
JPH0447350A (en) Main storage read/response control
JP3171289B2 (en) Information processing device
JPH0248916Y2 (en)
JP2876488B2 (en) Semiconductor file memory device
JPH104420A (en) Data transfer method
JPH0482735U (en)
JPS63187349A (en) Memory device
KR890008681A (en) Processor control unit
JPS59122637U (en) storage controller
JPS6139126A (en) Magnetic tape recording device
JPS62206632A (en) Control system for main storage device
JPS61292746A (en) Memory controller
JPH05265852A (en) System for accessing memory of microprocessor
JPS62241057A (en) Circuit for increasing input/output processing speed
JPH02275549A (en) Intermediate buffer prefetch control system
JPH0512121A (en) Data processor
JPS5836380B2 (en) Direct memory access method in multiprocessor systems
JPS5593580A (en) Buffer memory control system