JPH06149677A - Cache memory system - Google Patents

Cache memory system

Info

Publication number
JPH06149677A
JPH06149677A JP4316132A JP31613292A JPH06149677A JP H06149677 A JPH06149677 A JP H06149677A JP 4316132 A JP4316132 A JP 4316132A JP 31613292 A JP31613292 A JP 31613292A JP H06149677 A JPH06149677 A JP H06149677A
Authority
JP
Japan
Prior art keywords
bus
cpu
address
cache memory
data
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
JP4316132A
Other languages
Japanese (ja)
Inventor
Satoshi Tomono
聡 伴野
Shinya Yamaguchi
伸也 山口
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
Niigata Fuji Xerox Manufacturing Co Ltd
Original Assignee
NEC Corp
Niigata Fuji Xerox Manufacturing Co 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 Corp, Niigata Fuji Xerox Manufacturing Co Ltd filed Critical NEC Corp
Priority to JP4316132A priority Critical patent/JPH06149677A/en
Publication of JPH06149677A publication Critical patent/JPH06149677A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To allow a bus master also on a system bus to access a cache memory in addition to a CPU. CONSTITUTION:A dual port cache memory 2 can be accessed from both of a CPU 1 and a CPU 15 to be a bus master on the system bus 11. When data accessed from the CPUs 1, 15 exist in the memory 2, a cache controller 3 allows the CPUs 1, 15 to access the memory 2, and when the data are not stored in the memory 2, allows the CPUs 1, 15 to access a main memory 16. Since also the bus master on the system bus 11 can use the high speed cache memory 2, the processing speed of the system can be improved.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はキャッシュメモリシステ
ムに関し、特にキャッシュメモリを有するCPUのみな
らず、システムバスに接続された他のCPUやDMAコ
ントローラ等のバスマスタもキャッシュメモリをアクセ
スすることができるキャッシュメモリシステムに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache memory system, and more particularly to a cache which can be accessed not only by a CPU having a cache memory but also by another CPU connected to the system bus or a bus master such as a DMA controller. Regarding memory system.

【0002】[0002]

【従来の技術】従来のキャッシュメモリシステムはキャ
ッシュメモリを有するCPUのみがキャッシュメモリを
アクセスすることができるものであった。
2. Description of the Related Art In a conventional cache memory system, only a CPU having a cache memory can access the cache memory.

【0003】[0003]

【発明が解決しようとする課題】上述したように、従来
のキャッシュメモリシステムはキャッシュメモリを有す
るCPU以外はキャッシュメモリをアクセスすることが
できなかったため、システムバス上のDMAコントロー
ラがメインメモリを頻繁にアクセスする場合や、システ
ムバス上の他のCPU等がメインメモリをアクセスする
場合等、応答速度の遅いメインメモリによってコンピュ
ータシステム全体の処理速度が低下するという問題があ
った。
As described above, since the conventional cache memory system cannot access the cache memory except the CPU having the cache memory, the DMA controller on the system bus frequently uses the main memory. There is a problem that the processing speed of the entire computer system is lowered by the main memory having a slow response speed when accessing or when the other CPU on the system bus accesses the main memory.

【0004】本発明の目的はシステムバス上のバスマス
タもキャッシュメモリをアクセスすることができるキャ
ッシュメモリシステムを提供することにある。
An object of the present invention is to provide a cache memory system in which a bus master on the system bus can access the cache memory.

【0005】[0005]

【課題を解決するための手段】本発明は上記目的を達成
するため、CPUと、メインメモリ及びバスマスタが接
続されたシステムバスと、前記CPU及び前記バスマス
タの両方からアクセス可能なデュアルポートキャッシュ
メモリと、前記CPUがアクセスするデータが前記デュ
アルポートキャッシュメモリに存在する場合は前記CP
Uに前記デュアルポートキャッシュメモリをアクセスさ
せ、存在しない場合は前記CPUに前記メインメモリを
アクセスさせ、前記システムバス上のバスマスタがアク
セスするデータが前記デュアルポートキャッシュメモリ
上に存在する場合は前記バスマスタに前記デュアルポー
トキャッシュメモリをアクセスさせ、存在しない場合は
前記バスマスタに前記メインメモリをアクセスさせるキ
ャッシュコントローラとを設けたものである。
In order to achieve the above object, the present invention provides a CPU, a system bus to which a main memory and a bus master are connected, and a dual port cache memory accessible from both the CPU and the bus master. If the data accessed by the CPU exists in the dual port cache memory, the CP
U accesses the dual port cache memory, causes the CPU to access the main memory if not present, and causes the bus master to access the data accessed by the bus master on the system bus if the data is present on the dual port cache memory. A cache controller is provided for accessing the dual port cache memory and for allowing the bus master to access the main memory if it does not exist.

【0006】[0006]

【作用】CPUがアクセスするデータ及びシステムバス
上のバスマスタがアクセスするデータがデュアルポート
キャッシュメモリ上に存在する場合、キャッシュコント
ローラはデュアルポートキャッシュメモリをアクセスさ
せ、存在しない場合はメインメモリをアクセスさせる。
When the data accessed by the CPU and the data accessed by the bus master on the system bus exist in the dual port cache memory, the cache controller accesses the dual port cache memory, and otherwise accesses the main memory.

【0007】[0007]

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

【0008】図1は本発明の実施例のブロック図であ
り、CPU1と、デュアルポートメモリ2と、キャッシ
ュコントローラ3と、CPUコントロールバス4と、C
PUアドレスバス5と、CPUデータバス6と、CPU
アドレストランシーバ7と、CPUデータバッファ8
と、システムアドレストランシーバ9と、システムデー
タバッファ10と、システムコントロールバス12,シ
ステムアドレスバス13及びシステムデータバス14か
ら構成されるシステムバス11と、CPU15と、メイ
ンメモリ16と、バス17,18とから構成されてい
る。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a CPU 1, a dual port memory 2, a cache controller 3, a CPU control bus 4 and a C are shown.
PU address bus 5, CPU data bus 6, CPU
Address transceiver 7 and CPU data buffer 8
A system address transceiver 9, a system data buffer 10, a system bus 11 including a system control bus 12, a system address bus 13 and a system data bus 14, a CPU 15, a main memory 16, and buses 17 and 18. It consists of

【0009】デュアルポートキャッシュメモリ2はCP
U1及びシステムバス11の両方からアクセス可能なキ
ャッシュメモリである。
The dual port cache memory 2 is a CP
It is a cache memory accessible from both U1 and the system bus 11.

【0010】デュアルポートキャッシュメモリ2のアド
レス端子はバス17を介してCPUアドレストランシー
バ7,システムアドレストランシーバ9に接続され、デ
ータ端子はバス18を介してCPUデータバッファ8,
システムデータバッファ10に接続されている。システ
ムアドレストランシーバ9はシステムアドレスバス13
に、システムデータバッファ10はシステムデータバス
14に接続されている。また、CPUアドレストランシ
ーバ7はCPUアドレスバス5を介してCPU1に接続
され、CPUデータバッファ8はCPUデータバス6を
介してCPU1に接続されている。
The address terminal of the dual port cache memory 2 is connected to the CPU address transceiver 7 and the system address transceiver 9 via the bus 17, and the data terminal thereof is connected to the CPU data buffer 8 via the bus 18.
It is connected to the system data buffer 10. The system address transceiver 9 is the system address bus 13
In addition, the system data buffer 10 is connected to the system data bus 14. The CPU address transceiver 7 is connected to the CPU 1 via the CPU address bus 5, and the CPU data buffer 8 is connected to the CPU 1 via the CPU data bus 6.

【0011】キャッシュコントローラ3はデュアルポー
トキャッシュメモリ2に対するデータの読み書きを制御
するものであり、CPUバスステートマシン31と、シ
ステムバスステートマシン32と、コマンド制御回路3
3と、コマンドエンコーダ34と、ディレクトリ35
と、アドレス制御回路36と、アドレスバス制御回路3
7と、データバス制御回路38と、キャッシュメモリ制
御回路39とから構成されている。
The cache controller 3 controls reading / writing of data from / to the dual port cache memory 2, and includes a CPU bus state machine 31, a system bus state machine 32, and a command control circuit 3.
3, command encoder 34, and directory 35
Address control circuit 36 and address bus control circuit 3
7, a data bus control circuit 38, and a cache memory control circuit 39.

【0012】次に本実施例の動作を説明する。Next, the operation of this embodiment will be described.

【0013】先ず、CPU1がリード動作を行なうCP
Uリードサイクルの動作を説明する。
First, a CP in which the CPU 1 performs a read operation.
The operation of the U read cycle will be described.

【0014】CPU1はリード時、CPUコントロール
バス4にリードコマンドを出力すると共に、CPUアド
レスバス5にリードアドレスを出力する。
When reading, the CPU 1 outputs a read command to the CPU control bus 4 and a read address to the CPU address bus 5.

【0015】CPUコントロールバス4に出力されたリ
ードコマンドはキャッシュコントローラ3内のCPUバ
スステートマシン31に加えられ、CPUアドレスバス
5に出力されたリードアドレスはアドレス制御回路36
に加えられる。
The read command output to the CPU control bus 4 is added to the CPU bus state machine 31 in the cache controller 3, and the read address output to the CPU address bus 5 is the address control circuit 36.
Added to.

【0016】CPUバスステートマシン31は加えられ
たリードコマンドを解読して解読結果をコマンド制御回
路33に送り、アドレス制御回路36は加えられたリー
ドアドレスとディレクトリ35の内容とを比較すること
により、ヒット,ミスヒットの判定を行ない、判定結果
をコマンド制御回路33に送る。
The CPU bus state machine 31 decodes the added read command and sends the decoded result to the command control circuit 33, and the address control circuit 36 compares the added read address with the contents of the directory 35, A hit or a miss hit is determined and the determination result is sent to the command control circuit 33.

【0017】コマンド制御回路33はCPUバスステー
トマシン31からの解読結果がリードコマンドを示し、
アドレス制御回路36の判定結果がヒットを示すもので
ある場合は、アドレスバス制御回路37,データバス制
御回路38を制御してCPUアドレストランシーバ7,
CPUデータバッファ8を開状態にすると共に、キャッ
シュメモリ制御回路39を制御してリード信号をデュア
ルポートキャッシュメモリ2に出力させる。
In the command control circuit 33, the decoding result from the CPU bus state machine 31 indicates a read command,
If the determination result of the address control circuit 36 indicates a hit, the address bus control circuit 37 and the data bus control circuit 38 are controlled to control the CPU address transceiver 7,
The CPU data buffer 8 is opened and the cache memory control circuit 39 is controlled to output a read signal to the dual port cache memory 2.

【0018】これにより、リードアドレスがCPUアド
レストランシーバ7を介してデュアルポートキャッシュ
メモリ2のアドレス端子に供給され、このリードアドレ
スによってデュアルポートキャッシュメモリ2から読み
出されたデータがCPUデータバッファ8,CPUデー
タバス6を介してCPU1に供給される。
As a result, the read address is supplied to the address terminal of the dual port cache memory 2 via the CPU address transceiver 7, and the data read from the dual port cache memory 2 by this read address is stored in the CPU data buffer 8 and the CPU. It is supplied to the CPU 1 via the data bus 6.

【0019】また、コマンド制御回路33はCPUバス
ステートマシン31の解読結果がリードコマンドを示
し、アドレス制御回路36の判定結果がミスヒットを示
すものである場合は、アドレスバス制御回路37を制御
してCPUアドレストランシーバ7,システムアドレス
トランシーバ9を開状態にすると共に、コマンドエンコ
ーダ34を制御してリードコマンドをシステムコントロ
ールバス12に出力させ、更に、アドレス制御回路36
に対してディレクトリ35の更新を指示する。
If the decoding result of the CPU bus state machine 31 indicates a read command and the judgment result of the address control circuit 36 indicates a mishit, the command control circuit 33 controls the address bus control circuit 37. The CPU address transceiver 7 and the system address transceiver 9 are opened, and the command encoder 34 is controlled to output a read command to the system control bus 12, and the address control circuit 36 is further provided.
Is instructed to update the directory 35.

【0020】これにより、CPUアドレストランシーバ
7,バス17,システムアドレストランシーバ9,シス
テムアドレスバス13を介してメインメモリ16にリー
ドアドレスが供給され、そのアドレス対応のデータがメ
インメモリ16からシステムデータバス14に出力され
る。また、アドレス制御回路36によってディレクトリ
35中の古いアドレスがひとつCPUアドレスバス15
に出力されたリードアドレスに更新される。
As a result, the read address is supplied to the main memory 16 via the CPU address transceiver 7, the bus 17, the system address transceiver 9, and the system address bus 13, and the data corresponding to the address is supplied from the main memory 16 to the system data bus 14. Is output to. Further, the address control circuit 36 causes the old address in the directory 35 to be one CPU address bus 15
It is updated to the read address output to.

【0021】次に、アドレス制御回路36はデータバス
制御回路38を制御してCPUデータバッファ8,シス
テムデータバッファ10を開状態にすると共に、キャッ
シュメモリ制御回路39を制御してデュアルポートキャ
ッシュメモリ2にライト信号を出力させる。
Next, the address control circuit 36 controls the data bus control circuit 38 to open the CPU data buffer 8 and system data buffer 10, and controls the cache memory control circuit 39 to control the dual port cache memory 2. To output a write signal.

【0022】これにより、メインメモリ16からシステ
ムデータバス14に出力されたデータはシステムデータ
バッファ10,バス18,CPUデータバッファ8を介
してCPU1に読み込まれると共に、データポートキャ
ッシュメモリ2に書き込まれ、古いデータが1つ更新さ
れる。
As a result, the data output from the main memory 16 to the system data bus 14 is read into the CPU 1 via the system data buffer 10, the bus 18 and the CPU data buffer 8 and written into the data port cache memory 2. One old data is updated.

【0023】次に、CPU1がライト動作を行なうCP
Uライトサイクルの動作を説明する。
Next, the CP in which the CPU 1 performs the write operation.
The operation of the U write cycle will be described.

【0024】CPU1はライト時、CPUコントロール
バス4にライトコマンドを、CPUアドレスバス5にラ
イトアドレスを、CPUデータバス6にライトデータを
出力する。
At the time of writing, the CPU 1 outputs a write command to the CPU control bus 4, a write address to the CPU address bus 5, and a write data to the CPU data bus 6.

【0025】CPUコントロールバス4に出力されたラ
イトコマンドはCPUバスステートマシン31によって
解読され、解読結果がコマンド制御回路33に加えられ
る。また、CPUアドレスバス5に出力されたライトア
ドレスはアドレス制御回路36に加えられ、ヒット,ミ
スヒットの判定が行なわれる。
The write command output to the CPU control bus 4 is decoded by the CPU bus state machine 31, and the decoded result is added to the command control circuit 33. Further, the write address output to the CPU address bus 5 is added to the address control circuit 36 to make a hit / miss hit determination.

【0026】コマンド制御回路33はCPUバスステー
トマシン31からライトコマンドを示す解読結果が加え
られ、アドレス制御回路36からヒットを示す判定結果
が加えられると、アドレスバス制御回路37,データバ
ス制御回路38を制御してCPUアドレストランシーバ
7,CPUデータバッファ8,システムアドレストラン
シーバ9,システムデータバッファ10を開状態にする
と共に、キャッシュメモリ制御回路39を制御してデュ
アルポートキャッシュメモリ2に対してライト信号を出
力させ、更に、コマンドエンコーダ34を制御してシス
テムコントロールバス12に対してライトコマンドを出
力させる。
In the command control circuit 33, when the decoding result indicating the write command is added from the CPU bus state machine 31 and the determination result indicating the hit is added from the address control circuit 36, the address bus control circuit 37 and the data bus control circuit 38. To open the CPU address transceiver 7, the CPU data buffer 8, the system address transceiver 9, and the system data buffer 10 and to control the cache memory control circuit 39 to send a write signal to the dual port cache memory 2. Then, the command encoder 34 is controlled to output a write command to the system control bus 12.

【0027】これにより、CPU1からCPUデータバ
ス6に出力されたデータがデュアルポートキャッシュメ
モリ2に書き込まれると共に、コマンドエンコーダ34
からシステムコントロールバス12に出力されたライト
コマンドと、CPUアドレストランシーバ7,バス1
7,システムアドレストランシーバ9を介してシステム
アドレスバス13に出力されたライトアドレスとによっ
てCPUデータバッファ8,バス18,システムデータ
バッファ10を介してシステムデータバス14に出力さ
れたデータがメインメモリ16に書き込まれる。
As a result, the data output from the CPU 1 to the CPU data bus 6 is written in the dual port cache memory 2 and the command encoder 34 is also used.
Write command output from the system control bus 12 to the CPU address transceiver 7, bus 1
7, the write address output to the system address bus 13 via the system address transceiver 9 and the data output to the system data bus 14 via the CPU data buffer 8, bus 18, and system data buffer 10 to the main memory 16 Written.

【0028】また、コマンド制御回路33はアドレス制
御回路36から加えられた判定結果がミスヒットを示す
ものである場合は、アドレスバス制御回路37,データ
バス制御回路38を制御してCPUアドレストランシー
バ7,CPUデータバッファ8,システムアドレストラ
ンシーバ9,システムデータバッファ10を開状態にす
ると共に、コマンドエンコーダ34を制御してシステム
コントロールバス12に対してライトコマンドを出力さ
せる。
When the judgment result applied from the address control circuit 36 indicates a mishit, the command control circuit 33 controls the address bus control circuit 37 and the data bus control circuit 38 to control the CPU address transceiver 7. , The CPU data buffer 8, the system address transceiver 9, and the system data buffer 10 are opened, and the command encoder 34 is controlled to output a write command to the system control bus 12.

【0029】これにより、CPUデータバッファ8,バ
ス18、システムデータバッファ10を介してシステム
データバッファ14に出力されたデータが、コマンドエ
ンコーダ34からシステムコントロールバス12に出力
されたライトコマンドと、CPUアドレストランシーバ
7,バス17,システムアドレストランシーバ9を介し
てシステムアドレスバス13に出力されたライトアドレ
スとによってメインメモリ16に書き込まれる。
As a result, the data output to the system data buffer 14 via the CPU data buffer 8, the bus 18 and the system data buffer 10 is converted into the write command output from the command encoder 34 to the system control bus 12 and the CPU address. It is written in the main memory 16 by the write address output to the system address bus 13 via the transceiver 7, bus 17, and system address transceiver 9.

【0030】次に、システムバス11上のバスマスタが
リード動作を行なうシステムリードサイクルの動作を、
CPU15がリード動作を行なう場合を例にとって説明
する。
Next, the operation of the system read cycle in which the bus master on the system bus 11 performs a read operation will be described.
A case where the CPU 15 performs a read operation will be described as an example.

【0031】システムバス11上のCPU15はリード
時、システムコントロールバス12にリードコマンドを
出力し、システムアドレスバス13にリードアドレスを
出力する。
When reading, the CPU 15 on the system bus 11 outputs a read command to the system control bus 12 and a read address to the system address bus 13.

【0032】システムバスステートマシン32はシステ
ムコントロールバス12に出力されたリードコマンドを
解読して解読結果をコマンドエンコーダ34に加え、ア
ドレス制御回路36はシステムアドレスバス13に出力
されたリードアドレスとディレクトリ35の内容とに基
づいてヒット,ミスヒットの判定を行ない、判定結果を
コマンド制御回路33に出力する。
The system bus state machine 32 decodes the read command output to the system control bus 12 and adds the decoded result to the command encoder 34, and the address control circuit 36 outputs the read address and directory 35 output to the system address bus 13. The hit / miss hit is determined based on the contents of the above, and the determination result is output to the command control circuit 33.

【0033】コマンド制御回路33はシステムバスステ
ートマシン32からの解読結果がリードコマンドを示す
ものであり、アドレス制御回路36の判定結果がヒット
を示すものである場合は、アドレスバス制御回路37,
データバス制御回路38を制御してシステムアドレスト
ランシーバ9,システムデータバッファ10を開状態に
すると共に、キャッシュメモリ制御回路39を制御して
デュアルポートキャッシュメモリ2に対してリード信号
を出力させ、更にコマンドエンコーダ34を制御してメ
インメモリ16に対するデータ出力禁止コマンドをシス
テムコントロールバス12に出力させる。
If the decoding result from the system bus state machine 32 indicates a read command, and the determination result of the address control circuit 36 indicates a hit, the command control circuit 33 outputs the address bus control circuit 37,
The data bus control circuit 38 is controlled to open the system address transceiver 9 and the system data buffer 10, and the cache memory control circuit 39 is controlled to output a read signal to the dual port cache memory 2, and a command is issued. The encoder 34 is controlled to output a data output prohibition command for the main memory 16 to the system control bus 12.

【0034】これにより、デュアルポインタキャッシュ
メモリ2からシステムデータバッファ10を介してシス
テムデータバス14にデータが出力され、このデータが
CPU15に取り込まれる。
As a result, data is output from the dual pointer cache memory 2 to the system data bus 14 via the system data buffer 10, and this data is taken into the CPU 15.

【0035】ここで、コマンドエンコーダ34からデー
タ出力禁止コマンドを出力するようにしたのは、CPU
15が出力したリードコマンド,リードアドレスによっ
てメインメモリ16からデータが出力されないようにす
るためである。
Here, the CPU that outputs the data output prohibition command from the command encoder 34 is the CPU.
This is to prevent data from being output from the main memory 16 by the read command and read address output by 15.

【0036】また、コマンド制御回路33はシステムバ
スステートマシン32からの解読結果がリードコマンド
を示し、アドレス制御回路36の判定結果がミスヒット
を示すものである場合は、アドレスバス制御回路37,
データバス制御回路38を制御してシステムアドレスト
ランシーバ9,システムデータバッファ10を開状態に
すると共に、キャッシュメモリ制御回路39を制御して
デュアルポートキャッシュメモリ2に対してライトコマ
ンドを出力させ、更にアドレス制御回路36に対してデ
ィレクトリ35の更新を指示する。
If the decoding result from the system bus state machine 32 indicates a read command and the judgment result of the address control circuit 36 indicates a mishit, the command control circuit 33 determines the address bus control circuit 37,
The data bus control circuit 38 is controlled to open the system address transceiver 9 and the system data buffer 10, and the cache memory control circuit 39 is controlled to output a write command to the dual port cache memory 2 to further write the address. The control circuit 36 is instructed to update the directory 35.

【0037】これにより、メインメモリ16からシステ
ムデータバス14に出力されたデータがシステムデータ
バッファ10を介してデュアルポートキャッシュメモリ
2に書き込まれると共に、ディレクトリ35中の古いア
ドレスが1つシステムアドレスバス13に出力されたリ
ードアドレスによって更新される。また、メインメモリ
16からシステムデータバス14に出力されたデータは
CPU15によって取り込まれる。
As a result, the data output from the main memory 16 to the system data bus 14 is written into the dual port cache memory 2 via the system data buffer 10, and at the same time, one old address in the directory 35 is stored in the system address bus 13. It is updated by the read address output to. Further, the data output from the main memory 16 to the system data bus 14 is taken in by the CPU 15.

【0038】次にシステムバス11上のバスマスタがラ
イト動作を行なうシステムライトサイクルの動作を、C
PU15がライト動作を行なう場合を例にとって説明す
る。
Next, the operation of the system write cycle in which the bus master on the system bus 11 performs the write operation is
A case where the PU 15 performs a write operation will be described as an example.

【0039】CPU15はライト時、システムコントロ
ールバス12にライトコマンドを、システムアドレスバ
ス13にライトアドレスを、システムデータバス14に
ライトデータを出力する。
At the time of writing, the CPU 15 outputs a write command to the system control bus 12, a write address to the system address bus 13, and a write data to the system data bus 14.

【0040】システムバスステートマシン32はシステ
ムコントロールバス12に出力されたライトコマンドを
解読して解読結果をコマンド制御回路33に加え、アド
レス制御回路36はシステムアドレスバス13に出力さ
れたライトアドレスとディレクトリ35の内容とに基づ
いてヒット,ミスヒットの判定を行ない、判定結果をコ
マンド制御回路33に加える。
The system bus state machine 32 decodes the write command output to the system control bus 12 and adds the decoded result to the command control circuit 33, and the address control circuit 36 outputs the write address and the directory output to the system address bus 13. Based on the contents of 35, a hit or a miss hit is determined and the determination result is added to the command control circuit 33.

【0041】コマンド制御回路33はシステムバスステ
ートマシン32の解読結果がライトコマンドを示し、ア
ドレス制御回路36の判定結果がヒットを示すものであ
る場合は、アドレスバス制御回路37,データバス制御
回路38を制御してシステムアドレストランシーバ9,
システムデータバッファ10を開状態にすると共に、キ
ャッシュメモリ制御回路39を制御してデュアルポート
メモリ2に対してライト信号を出力させる。
In the command control circuit 33, when the decoding result of the system bus state machine 32 indicates a write command and the judgment result of the address control circuit 36 indicates a hit, the address bus control circuit 37 and the data bus control circuit 38. To control the system address transceiver 9,
The system data buffer 10 is opened and the cache memory control circuit 39 is controlled to output a write signal to the dual port memory 2.

【0042】これにより、CPU15からシステムデー
タバス14に出力されたデータは、システムデータバッ
ファ10を介してデュアルポートキャッシュメモリ2に
書き込まれる。また、CPU15からシステムデータバ
ス14に出力されたデータはメインメモリ16にも書き
込まれる。
As a result, the data output from the CPU 15 to the system data bus 14 is written in the dual port cache memory 2 via the system data buffer 10. The data output from the CPU 15 to the system data bus 14 is also written in the main memory 16.

【0043】また、コマンド制御回路33はシステムバ
スステートマシン32の解読結果がライトコマンドを示
し、アドレス制御回路36の判定結果がミスヒットを示
すものである場合は、何の処理も行なわない。従って、
この場合はCPU15からシステムコントロールバス1
2に出力されたライトコマンド及びシステムアドレスバ
ス13に出力されたライトアドレスによって、CPU1
5からシステムデータバス14に出力されたライトデー
タがメインメモリ16に書き込まれるという処理だけが
行なわれることになる。
Further, the command control circuit 33 does not perform any processing when the decoding result of the system bus state machine 32 indicates a write command and the determination result of the address control circuit 36 indicates a mishit. Therefore,
In this case, CPU 15 to system control bus 1
2 by the write command output to the CPU 2 and the write address output to the system address bus 13.
The write data output from 5 to the system data bus 14 is written into the main memory 16 only.

【0044】[0044]

【発明の効果】以上説明したように、本発明はCPU及
びシステムバス上のバスマスタからアクセス可能なデュ
アルポートキャッシュメモリを設けたものであり、シス
テムバス上のバスマスタも高速なキャッシュメモリを使
用することが可能になるので、システムの処理速度を高
速化することが可能になる効果がある。
As described above, according to the present invention, the dual port cache memory accessible by the CPU and the bus master on the system bus is provided, and the bus master on the system bus also uses the high speed cache memory. Therefore, the processing speed of the system can be increased.

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

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

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

1…CPU 2…デュアルポートキャッシュメモリ 3…キャッシュコントローラ 31…CPUバスステートマシン 32…システムバスステートマシン 33…コマンド制御回路 34…コマンドエンコーダ 35…ディレクトリ 36…アドレス制御回路 37…アドレスバス制御回路 38…データバス制御回路 39…キャッシュメモリ制御回路 4…CPUコントロールバス 5…CPUアドレスバス 6…CPUデータバス 7…CPUアドレストランシーバ 8…CPUデータバッファ 9…システムアドレストランシーバ 10…システムデータバッファ 11…システムバス 12…システムコントロールバス 13…システムアドレスバス 14…システムデータバス 15…CPU 16…メインメモリ 17,18…バス 1 ... CPU 2 ... Dual port cache memory 3 ... Cache controller 31 ... CPU bus state machine 32 ... System bus state machine 33 ... Command control circuit 34 ... Command encoder 35 ... Directory 36 ... Address control circuit 37 ... Address bus control circuit 38 ... Data bus control circuit 39 ... Cache memory control circuit 4 ... CPU control bus 5 ... CPU address bus 6 ... CPU data bus 7 ... CPU address transceiver 8 ... CPU data buffer 9 ... System address transceiver 10 ... System data buffer 11 ... System bus 12 System control bus 13 System address bus 14 System data bus 15 CPU 16 Main memory 17, 18 Bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、 メインメモリ及びバスマスタが接続されたシステムバス
と、 前記CPU及び前記バスマスタの両方からアクセス可能
なデュアルポートキャッシュメモリと、 前記CPUがアクセスするデータが前記デュアルポート
キャッシュメモリに存在する場合は前記CPUに前記デ
ュアルポートキャッシュメモリをアクセスさせ、存在し
ない場合は前記CPUに前記メインメモリをアクセスさ
せ、前記システムバス上のバスマスタがアクセスするデ
ータが前記デュアルポートキャッシュメモリ上に存在す
る場合は前記バスマスタに前記デュアルポートキャッシ
ュメモリをアクセスさせ、存在しない場合は前記バスマ
スタに前記メインメモリをアクセスさせるキャッシュコ
ントローラとを備えたことを特徴とするキャッシュメモ
リシステム。
1. A system bus to which a CPU, a main memory and a bus master are connected, a dual port cache memory accessible from both the CPU and the bus master, and data accessed by the CPU is stored in the dual port cache memory. If present, the CPU is made to access the dual port cache memory, and if not present, the CPU is made to access the main memory, and data accessed by the bus master on the system bus is present in the dual port cache memory. A cache controller for causing the bus master to access the dual-port cache memory if the bus master does not exist, and for allowing the bus master to access the main memory if the bus master does not exist. system.
【請求項2】 前記キャッシュコントローラは前記バス
マスタがリードするデータが前記デュアルポートキャッ
シュメモリ上に存在する場合、前記システムバス上のメ
インメモリに対してデータの出力禁止を指示すると共
に、前記バスマスタから出力されたリードアドレスを前
記デュアルポートキャッシュメモリに供給し、前記デュ
アルポートキャッシュメモリから読み出されたリードデ
ータを前記システムバスに出力することを特徴とする請
求項1記載のキャッシュメモリシステム。
2. When the data read by the bus master exists in the dual port cache memory, the cache controller instructs the main memory on the system bus to prohibit data output and outputs from the bus master. 2. The cache memory system according to claim 1, wherein the read address that has been read is supplied to the dual port cache memory, and the read data read from the dual port cache memory is output to the system bus.
【請求項3】 前記バスマスタはCPU,DMAコント
ローラを含むことを特徴とする請求項1または2記載の
キャッシュメモリシステム。
3. The cache memory system according to claim 1, wherein the bus master includes a CPU and a DMA controller.
JP4316132A 1992-10-31 1992-10-31 Cache memory system Pending JPH06149677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4316132A JPH06149677A (en) 1992-10-31 1992-10-31 Cache memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4316132A JPH06149677A (en) 1992-10-31 1992-10-31 Cache memory system

Publications (1)

Publication Number Publication Date
JPH06149677A true JPH06149677A (en) 1994-05-31

Family

ID=18073611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4316132A Pending JPH06149677A (en) 1992-10-31 1992-10-31 Cache memory system

Country Status (1)

Country Link
JP (1) JPH06149677A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008046685A (en) * 2006-08-10 2008-02-28 Fujitsu Ltd Redundant system and system switching method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008046685A (en) * 2006-08-10 2008-02-28 Fujitsu Ltd Redundant system and system switching method

Similar Documents

Publication Publication Date Title
US4937738A (en) Data processing system which selectively bypasses a cache memory in fetching information based upon bit information of an instruction
US6851036B1 (en) Method and apparatus for controlling external devices through address translation buffer
US5749092A (en) Method and apparatus for using a direct memory access unit and a data cache unit in a microprocessor
KR970029072A (en) Dual Directory Virtual Cache and Its Control Method
JPH06149677A (en) Cache memory system
JP2659007B2 (en) Information processing method and apparatus
JPH02213960A (en) Cache memory
JPH02110646A (en) Memory advance reading device
JPH0628258A (en) Microprocessor
JPH0728990A (en) Graphics memory access circuit
JPH0441393Y2 (en)
JPH02307123A (en) Computer
JPS635446A (en) Microcomputer system
JPH0573415A (en) Hierarchized cache system
JPH0689228A (en) Cache memory controller
JP3110027B2 (en) Computer system
JPH04205154A (en) Microprocessor system
JPH04205535A (en) Copy on write system
JPH0336648A (en) Electronic computer, TLB device and microprocessor chip
JPH03220645A (en) information processing equipment
JPH01309153A (en) Information processor
JPH02219144A (en) Cache memory with shortened write-back access time
JPH0534042Y2 (en)
JPH0259495B2 (en)
JPH0594367A (en) Buffer storage device