JPH04367044A - Cache memory - Google Patents

Cache memory

Info

Publication number
JPH04367044A
JPH04367044A JP3142833A JP14283391A JPH04367044A JP H04367044 A JPH04367044 A JP H04367044A JP 3142833 A JP3142833 A JP 3142833A JP 14283391 A JP14283391 A JP 14283391A JP H04367044 A JPH04367044 A JP H04367044A
Authority
JP
Japan
Prior art keywords
data
cpu
cache memory
address
main 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.)
Pending
Application number
JP3142833A
Other languages
Japanese (ja)
Inventor
Atsushi Okada
淳 岡田
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3142833A priority Critical patent/JPH04367044A/en
Publication of JPH04367044A publication Critical patent/JPH04367044A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To read the data out of a cache memory at a high speed to an operation where the same address is read out of a CPU even after the data are written into a main memory by a bus master except the CPU. CONSTITUTION:A cache memory 2 is provided with a CPU side access port which reads or write the data to the address received from a CPU 1, and a main memory side access port which can read or write the data to a main memory 5 and at the same time inputs the corresponding address and data to update the data of its own when a bus master, e.g. a DMA controller 7 except the CPU 1 write the data into the memory 5.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はキャッシュメモリに関し
、特にCPU以外のバスマスタからのメインメモリライ
ト時に、そのライトアドレスとライトデータとを入力す
ることを可能としたキャッシュメモリに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache memory, and more particularly to a cache memory that allows a write address and write data to be input when a bus master other than a CPU writes to the main memory.

【0002】0002

【従来の技術】従来、この種のキャッシュメモリは、C
PU以外のバスマスタからメインメモリに対してデータ
ライト動作が行なわれると、メインメモリとキャッシュ
メモリ内部の同一アドレスのデータの一致性を保つ為、
データライトされたメインメモリのアドレスをモニタし
てそのアドレスがキャッシュメモリ内部に存在した場合
にはそのアドレスを無効化し、CPUが同一アドレスを
リードした際にはキャッシュメモリ内部のデータを出力
せずにメインメモリからデータを読み込むようにして、
常に最新のデータをCPUがリードできるようになって
いた。
[Prior Art] Conventionally, this type of cache memory is
When a data write operation is performed to the main memory from a bus master other than the PU, in order to maintain the consistency of data at the same address in the main memory and cache memory,
The main memory address to which data has been written is monitored, and if that address exists inside the cache memory, that address is invalidated, and when the CPU reads the same address, the data inside the cache memory is not output. Load data from main memory,
The CPU was always able to read the latest data.

【0003】0003

【発明が解決しようとする課題】上述した従来のキャッ
シュメモリは、CPU以外のバスマスタからのメインメ
モリへのライト動作に対しては同一アドレスを無効化し
てしまうので、このライト動作以後のCPUからの同一
アドレスへのリード動作に対しては、キャッシュメモリ
は内部データを出力せずに低速なメインメモリから書き
替えられた正しいデータをリードしてCPUに出力する
ので、CPUの性能の低下をまねき、特に異なったプロ
グラムを頻繁にCPU以外のバスマスタによりダウンロ
ードするマルチタスクシステム等ではこの傾向が顕著と
なるという欠点がある。
[Problems to be Solved by the Invention] The conventional cache memory described above invalidates the same address in response to a write operation to the main memory from a bus master other than the CPU. In response to a read operation to the same address, the cache memory does not output the internal data, but instead reads the correct data rewritten from the slow main memory and outputs it to the CPU, which leads to a decrease in CPU performance. This tendency is especially noticeable in multitasking systems where different programs are frequently downloaded by a bus master other than the CPU.

【0004】本発明の目的は上述した欠点を除去し、C
PUと異るバスマスタからのメインメモリへのライト動
作に対してもCPUの性能低下をもたらさなくてすむキ
ャッシュメモリを提供することにある。
The object of the present invention is to eliminate the above-mentioned drawbacks and to
It is an object of the present invention to provide a cache memory that does not cause a drop in performance of a CPU even when a write operation to a main memory is performed from a bus master different from a PU.

【0005】[0005]

【課題を解決するための手段】本発明のキャッシュメモ
リは、CPUから送出されるアドレスに対してデータを
リードまたはライトするCPU側アクセスポートと、メ
インメモリへデータのリードまたはライトが可能であり
かつCPU以外のバスマスタがメインメモリにデータを
ライトしたときにそのアドレスとデータを入力して自己
のデータを更新するメインメモリ側アクセスポートとを
備えて構成される。
[Means for Solving the Problems] A cache memory of the present invention has a CPU side access port that reads or writes data to an address sent from the CPU, and a CPU side access port that can read or write data to a main memory. When a bus master other than the CPU writes data to the main memory, the main memory side access port inputs the address and data to update its own data.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0007】図1は本発明の一実施例の構成図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【0008】図1に示す実施例は、本発明になるキャッ
シュメモリを採用して構成したコンピュータシステムの
一例を示し、CPU1と、本発明のキャッシュメモリ2
と、メインメモリ5と、CPU1以外のバスマスタとし
てのDMA(DirectMemory  Acces
s)コントローラ7と、システムアドレスバス3、シス
テムコントロールバス4およびシステムデータバス6の
各バスを含むシステムバスを備えて成る。
The embodiment shown in FIG. 1 shows an example of a computer system configured using a cache memory according to the present invention, and includes a CPU 1 and a cache memory 2 according to the present invention.
, main memory 5, and DMA (Direct Memory Access) as a bus master other than CPU 1.
s) It comprises a controller 7 and a system bus including a system address bus 3, a system control bus 4 and a system data bus 6.

【0009】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

【0010】CPU1は、キャッシュメモリ2に対して
リード動作あるいはライト動作を行なう。
[0010] The CPU 1 performs read or write operations on the cache memory 2.

【0011】リード動作の場合、リードすべきアドレス
がキャッシュメモリ2内部に存在する時には、CPU1
はキャッシュメモリ2から高速にデータをリードするこ
とが可能である。
In the case of a read operation, when the address to be read exists within the cache memory 2, the CPU 1
can read data from the cache memory 2 at high speed.

【0012】リードすべきアドレスがキャッシュメモリ
2内部に存在しない時には、キャッシュメモリ2はシス
テムアドレスバス3にリードすべきアドレス、システム
コントロールバス4にはコントロール信号を出力してメ
インメモリ5をアクセスすることにより、システムデー
タバス5を経由してデータを読み出しCPU1に出力し
てリード動作を終了させるとともに、読みこんだデータ
をキャッシュメモリ2内部に存在させることによって、
以後このアドレスをCPU1がリードした場合に低速な
メインメモリ5にアクセスすることなしに高速にキャッ
シュメモリ2からデータを出力可能となる。
When the address to be read does not exist within the cache memory 2, the cache memory 2 outputs the address to be read to the system address bus 3 and a control signal to the system control bus 4 to access the main memory 5. By reading the data via the system data bus 5 and outputting it to the CPU 1 to complete the read operation, and making the read data exist inside the cache memory 2,
Thereafter, when the CPU 1 reads this address, data can be output from the cache memory 2 at high speed without accessing the slow main memory 5.

【0013】ライト動作の場合には、ライトすべきアド
レスがキュッシュメモリ2内部に存在する時には、キャ
ッシュメモリ2は自己のデータをライトされたデータに
更新すると同時にメインメモリ5に対してもシステムバ
スを経由してライトサイクルを起動する。
In the case of a write operation, when the address to be written exists within the cache memory 2, the cache memory 2 updates its own data with the written data and at the same time also connects the system bus to the main memory 5. Start a light cycle via

【0014】ライトすべきアドレスがキャッシュメモリ
2内部に存在しない時には、自己のデータは更新せず、
その他の動作はライトすべきアドレスがキュッシュメモ
リ2内部に存在する時と同様である。
When the address to be written does not exist within the cache memory 2, its own data is not updated;
Other operations are the same as when the address to be written exists within the cache memory 2.

【0015】CPU1以外のバスマスタであるDMAコ
ントローラ7は、キャッシュメモリ2がシステムバスを
使用していない場合にシステムバスを経由してメインメ
モリ5をアクセスすることができる。
The DMA controller 7, which is a bus master other than the CPU 1, can access the main memory 5 via the system bus when the cache memory 2 is not using the system bus.

【0016】DMAコントローラ7がリード動作を行な
った場合、キャッシュメモリ2は何ら影響を受けること
がない。DMAコントローラ7がライト動作を行なった
場合には、キャッシュメモリ2はシステムアドレスバス
3からアドレスを入力し、そのアドレスがキャッシュメ
モリ2内部に存在するか否かをテストする。もし存在す
れば、システムデータバス6からデータを取り込みキャ
ッシュメモリ2内部のそのアドレスに対するデータを更
新する。
When the DMA controller 7 performs a read operation, the cache memory 2 is not affected in any way. When the DMA controller 7 performs a write operation, the cache memory 2 receives an address from the system address bus 3 and tests whether the address exists inside the cache memory 2 or not. If the data exists, the data is taken from the system data bus 6 and the data corresponding to that address in the cache memory 2 is updated.

【0017】[0017]

【発明の効果】以上説明したよう本発明は、CPU以外
のバスマスタからのメインメモリに対するデータライト
動作のアドレスとデータを入力してキャッシュメモリを
更新することを可能とすることにより、CPU以外のバ
スマスタのデータライト動作以後もCPUからの同一ア
ドレスに対するリード動作に対してキャッシュメモリか
ら高速にデータを出力することができるという効果があ
る。
As explained above, the present invention enables bus masters other than the CPU to update the cache memory by inputting the address and data of a data write operation to the main memory from the bus master other than the CPU. Even after the data write operation, data can be output from the cache memory at high speed in response to a read operation from the CPU to the same address.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

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

1    CPU 2    キャッシュメモリ 3    システムアドレスバス 4    システムコントロールバス 5    メインメモリ 6    システムデータバス 7    DMAコントローラ 1 CPU 2 Cache memory 3 System address bus 4 System control bus 5 Main memory 6 System data bus 7 DMA controller

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  CPUから送出されるアドレスに対し
てデータをリードまたはライトするCPU側アクセスポ
ートと、メインメモリへデータのリードまたはライトが
可能でありかつCPU以外のバスマスタがメインメモリ
にデータをライトしたときにそのアドレスとデータを入
力して自己のデータを更新するメインメモリ側アクセス
ポートとを備えて成ることを特徴とするキャッシュメモ
リ。
[Claim 1] A CPU-side access port that reads or writes data to an address sent from the CPU, and a bus master that is capable of reading or writing data to the main memory and that allows a bus master other than the CPU to write data to the main memory. A cache memory comprising: a main memory side access port that updates its own data by inputting the address and data when the cache memory is accessed.
JP3142833A 1991-06-14 1991-06-14 Cache memory Pending JPH04367044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3142833A JPH04367044A (en) 1991-06-14 1991-06-14 Cache memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3142833A JPH04367044A (en) 1991-06-14 1991-06-14 Cache memory

Publications (1)

Publication Number Publication Date
JPH04367044A true JPH04367044A (en) 1992-12-18

Family

ID=15324680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3142833A Pending JPH04367044A (en) 1991-06-14 1991-06-14 Cache memory

Country Status (1)

Country Link
JP (1) JPH04367044A (en)

Similar Documents

Publication Publication Date Title
JPH0348370A (en) Memory access control circuit
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
JPS63115251A (en) Disk cache controller
JPH0222748A (en) Non-volatile memory control circuit
JPH09311812A (en) Microcomputer
KR100387576B1 (en) Method for processing cache cohesion protocol of multi-processor system
JPH0447350A (en) Main storage read/response control
JP3219422B2 (en) Cache memory control method
KR100336743B1 (en) Processing circuit for data
JPH04195563A (en) Controller for memory system
JP3074897B2 (en) Memory circuit
JPH0594407A (en) Bus control system
JPH02310738A (en) Microprocessor ic
JPH064469A (en) I / O device control method
JPH0512120A (en) Data cache control system
JPH02188856A (en) Memory access circuit
JPH0667982A (en) Address conversion system
JPH04170654A (en) Cache memory control system
JPH0567975B2 (en)
JPH03232051A (en) Semaphore access control method
JPH02219144A (en) Cache memory with shortened write-back access time
JPH02108139A (en) Cache memory device
JPS61276042A (en) Memory controller
JPH06149677A (en) Cache memory system
JP2000250733A (en) Image display system and image display method therefor