JPH0322054A - Cache circuit - Google Patents
Cache circuitInfo
- Publication number
- JPH0322054A JPH0322054A JP1157629A JP15762989A JPH0322054A JP H0322054 A JPH0322054 A JP H0322054A JP 1157629 A JP1157629 A JP 1157629A JP 15762989 A JP15762989 A JP 15762989A JP H0322054 A JPH0322054 A JP H0322054A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- processor
- storage device
- main storage
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 22
- 238000010586 diagram Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はキャッシュ回路に関し、特にリードスル一方式
のキャッシュ回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a cache circuit, and particularly to a read-through type cache circuit.
従来、この種のキャッシュ回路は、第3図に示された回
路ブロック構或となっており、第4図に示されたフロー
チャートのように動作していた。Conventionally, this type of cache circuit has the circuit block structure shown in FIG. 3, and operates as shown in the flowchart shown in FIG. 4.
データ・読み出しリクエストがあると、キャッシュアク
セスを行ない、アドレスタグ2A,2Bのアドレスとプ
ロセッサ10から入力されたアドレスとを比較器3A,
3Bで比較し、ミスヒットが判明してからLRUビット
4に従ってブロック更新のために主記憶装置20のデー
タ・リードを開始するという制御になっていた。When there is a data/read request, a cache access is performed and the comparator 3A compares the address of the address tags 2A, 2B with the address input from the processor 10.
3B, and after a mishit is found, data reading from the main storage device 20 is started in order to update the block according to LRU bit 4.
上述した従来のキャッシュ回路は、キャッシュ・ミスヒ
ットが判明してから主記憶装置20のデータ・リード,
ブロック更新を開始する構戊となっているので、ブロッ
ク更新時間が長いという欠点がある。The conventional cache circuit described above does not read data from the main storage device 20 after a cache miss is detected.
Since the structure is such that block updating is started, there is a drawback that the block updating time is long.
本発明の目的は、ブロック更新時間を短縮することがで
きるキャッシュ回路を提供することにある。An object of the present invention is to provide a cache circuit that can shorten block update time.
本発明のキャッシュ回路は、主記憶装置のデータの一部
を格納しておき、プロセッサの指定するアドレスからデ
ータを読み出すデータメモリと、前記データメモリに格
納されているデータの主記憶装置上でのアドレスとデー
タの有効性を示すバリッドビットとを保持するアドレス
タグと、前記アドレスタグの出力と前記プロセッサから
のアドレスとを比較しキャッシュ・ヒット/ミスヒット
の判定を行なう比較器と、キャッシュ・ミスヒット時に
書き換えるブpツクを示すLRUビットと、ヒットした
前記データメ゛モリからのデータを選択し出力するセレ
クタと、前記プロセッサの指定する前記主記憶装置のア
ドレスから読出されたデータを一時保持しデータメモリ
に書込むロードバッファと、前記セレクタからのデータ
が前記プロセッサへ伝達された後前記主記憶装置へのア
クセスを停止させ、かつ各部の動作を制御する制御部と
を有している。The cache circuit of the present invention includes a data memory that stores a part of data in a main memory and reads data from an address designated by a processor, and a data memory that stores part of data in the main memory and reads data from an address specified by a processor. an address tag that holds an address and a valid bit indicating the validity of data; a comparator that compares the output of the address tag with an address from the processor to determine cache hit/miss; an LRU bit that indicates a book to be rewritten in the event of a hit; a selector that selects and outputs the hit data from the data memory; and a selector that temporarily holds the data read from the address of the main memory specified by the processor It has a load buffer for writing into memory, and a control section that stops access to the main storage device after the data from the selector is transmitted to the processor, and controls the operation of each section.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.
この実施例は、主記憶装置20のデータの一部を格納し
ておき、プロセッサlOの指定するアドレスからデータ
を読出すデータメモリIA, IBと、データメモリ
LA, leに格納されているデータの主記憶装置2
0上でのアドレスとデータの有効性を示すバリッド・ビ
ットとを保持するアドレスタグ2A,’2Bと、このア
ドレスタグ2A,2!!の出力とプロセッサ10からの
アドレスとを比較しキャッシュ・ヒット/ミスヒットの
判定を行う比較器3A,3Bと、キャッシュ・ミスヒッ
ト時に書き換えるブロックを示すLRUビットと、ヒッ
トしたデータメモリ (2A. 2B)からのデータ
を選択して出力するセレクタ5と、このセレクタ5から
のデータをプロセッサ10へ伝達する入出力コントロー
ラ6と、フロセッサlOの指定する主記憶装置20のア
ドレスから読出されたデータを一時保持しデータメモリ
IA,1.に書込むロードバッファ7を、セレクタ5,
入出力コントローラ6からのデータがプロセッサへ伝達
された主記憶装置20へのアクセスを停止させ、かつ各
部の動作を制御する制御部8とを有する構或となってい
る。In this embodiment, data memories IA and IB which store part of the data in the main memory 20 and read data from addresses designated by the processor IO, and data memories LA and le which store part of the data, are used. Main storage device 2
Address tag 2A, '2B that holds an address on 0 and a valid bit indicating the validity of the data, and this address tag 2A, 2! ! Comparators 3A and 3B compare the output from the processor 10 with the address from the processor 10 to determine cache hit/miss, the LRU bit indicating the block to be rewritten in the event of a cache miss, and the hit data memory (2A. 2B). ), an input/output controller 6 that transmits the data from the selector 5 to the processor 10, and a data read from the address of the main storage device 20 specified by the processor 10, which temporarily outputs the data Holding data memory IA, 1. Load buffer 7 to be written to is selected by selector 5,
It has a structure including a control section 8 that stops access to the main storage device 20 through which data from the input/output controller 6 is transmitted to the processor, and controls the operation of each section.
次に、この実施例の動作について説明する。Next, the operation of this embodiment will be explained.
第2図はこの実施例の動作を説明するためのフローチャ
ートである。FIG. 2 is a flow chart for explaining the operation of this embodiment.
プロセッサ10よりデータ読み出しリクエストを受け取
ると、プロセッサ10側からのアドレスでデータメモリ
IA,IBとアドレスタグ2A,2.のデータが読み出
される。When a data read request is received from the processor 10, data memories IA, IB and address tags 2A, 2 . data is read.
これと並行してプロセッサlO側からのアドレスで主記
憶装置20へのアクセスも開始される。In parallel with this, access to the main memory device 20 is also started using the address from the processor IO side.
主記憶装置20から読み出されたデータはロードバッフ
ァ7に書き込まれる。Data read from the main storage device 20 is written to the load buffer 7.
アドレスタグ2A,2.の出力は比較器3A,3Bでプ
ロセッサlO側からのアドレスと比較されてヒット/ミ
スヒットの判定が行なわれる。ヒットした場合、データ
メモ!JIA,Inの出力のうちヒットした側のデータ
出力をセレクタ5で選択し、入出力コントローラ6にデ
ータを送る。入出力コントローラ6は読み出されたデー
タをプロセ,サlO側に送り、同時に、開始されている
主記憶装置20へのアクセスを中止する。Address tag 2A, 2. The output is compared with the address from the processor IO side by comparators 3A and 3B to determine whether it is a hit or a miss. If there is a hit, data memo! Among the outputs of JIA, In, the data output on the hit side is selected by the selector 5, and the data is sent to the input/output controller 6. The input/output controller 6 sends the read data to the processor 10 side, and at the same time stops the access to the main storage device 20 that has been started.
ミスヒットの場合には主記憶装置20へのアクセスを続
行し,LRUビット4の出力に従って一一ドバッファ7
経由でブロック更新を行なう。In the case of a mishit, access to the main memory 20 is continued, and the first buffer 7 is accessed according to the output of LRU bit 4.
Update the block via
そしてプロセッサ10側にデータを送り、キャッシュア
クセスを終了する。The data is then sent to the processor 10 side, and the cache access is completed.
以上説明したように本発明は、データ読み出し時にキャ
ッシュへのアクセスを開始するのと平行して主記憶装置
へのアクセスを開始し主記憶装置から読み込んで来たデ
ータをロードバッファに保持することにより、キギッシ
ュ・ミスヒット時のブロック更新時間を短縮することが
できる効果と、キャッシュ・ヒット時には開始している
主記憶装置へのアクセスを中止することにより、キャッ
シュ・アクセス時間の増加を防止することができるとい
う効果がある。As explained above, the present invention starts accessing the main storage device in parallel with starting access to the cache when reading data, and stores the data read from the main storage device in the load buffer. This has the effect of shortening the block update time when a cache miss occurs, and prevents an increase in cache access time by stopping the access to the main memory that has started when a cache hit occurs. There is an effect that it can be done.
レスタグ、3A,3B・・・・・・比較器、4・・・・
・・LRUビット,5.5A・・・・・・セレクタ、6
,6A・・・・・・入出カコントローラ、7・・・・・
・ロードバッファ、8,8A・・・・・・制御部、10
・・・・・・プロセッサ、20・・・・・・主記憶装置
。Restag, 3A, 3B... Comparator, 4...
...LRU bit, 5.5A...Selector, 6
, 6A... Input/output controller, 7...
・Load buffer, 8, 8A...Control unit, 10
. . . Processor, 20 . . . Main storage device.
Claims (1)
の指定するアドレスからデータを読み出すデータメモリ
と、前記データメモリに格納されているデータの主記憶
装置上でのアドレスとデータの有効性を示すバリッドビ
ットとを保持するアドレスタグと、前記アドレスタグの
出力と前記プロセッサからのアドレスとを比較しキャッ
シュ・ヒット/ミスヒットの判定を行なう比較器と、キ
ャッシュ・ミスヒット時に書き換えるブロックを示すL
RUビットと、ヒットした前記データメモリからのデー
タを選択し出力するセレクタと、前記プロセッサの指定
する前記主記憶装置のアドレスから読出されたデータを
一時保持しデータメモリに書込むロードバッファと、前
記セレクタからのデータが前記プロセッサへ伝達された
後前記主記憶装置へのアクセスを停止させ、且つ各部の
動作を制御する制御部とを有することを特徴とするキャ
ッシュ回路。A data memory stores part of the data in the main memory and reads the data from an address specified by the processor, and the validity of the address and data on the main memory of the data stored in the data memory is read out from the address specified by the processor. an address tag that holds a valid bit indicated by the address tag; a comparator that compares the output of the address tag with the address from the processor to determine cache hit/miss; and L indicating a block to be rewritten in the event of a cache miss.
RU bit, a selector that selects and outputs hit data from the data memory, a load buffer that temporarily holds data read from the address of the main storage device designated by the processor and writes it to the data memory; A cache circuit comprising: a control section that stops access to the main storage device after data from a selector is transmitted to the processor, and controls operations of each section.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1157629A JPH0322054A (en) | 1989-06-19 | 1989-06-19 | Cache circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1157629A JPH0322054A (en) | 1989-06-19 | 1989-06-19 | Cache circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0322054A true JPH0322054A (en) | 1991-01-30 |
Family
ID=15653902
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1157629A Pending JPH0322054A (en) | 1989-06-19 | 1989-06-19 | Cache circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0322054A (en) |
-
1989
- 1989-06-19 JP JP1157629A patent/JPH0322054A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20050182893A1 (en) | Controller for controlling nonvolatile memory | |
| JPH08185355A (en) | Data memory and its operating method | |
| JPH04336641A (en) | Data cache and method for use in processing system | |
| JPH0322054A (en) | Cache circuit | |
| JP4037806B2 (en) | Cache memory device | |
| JPH0784879A (en) | Cache memory device | |
| JP3081635B2 (en) | Cache memory invalidation processing apparatus and invalidation control method | |
| JPS5815877B2 (en) | Buffer memory control method | |
| JPH10187119A (en) | Display control device | |
| JPH0362143A (en) | Cache-write-back control system | |
| JPH0447350A (en) | Main storage read/response control | |
| JPS6141023B2 (en) | ||
| JPH05265916A (en) | Data processor | |
| JPH03271859A (en) | Information processor | |
| JPS61211752A (en) | Page hysteresis memory device | |
| JP2000076179A (en) | System bus optimization system | |
| JPH0391853A (en) | Nonvolatile memory circuit | |
| JPH07141174A (en) | Register device | |
| JPH03288245A (en) | Data processor | |
| JPH08235063A (en) | Data processing device and cache memory control method | |
| JPH0821000B2 (en) | Cache memory update control method | |
| JPH03225540A (en) | Invalidation processing system for cache memory | |
| JPH08166905A (en) | Cache memory control method | |
| JPH1055312A (en) | Diagnostic method for cache memory | |
| JPH02224158A (en) | Cache memory device, data processing device, data access method, and data storage method in cache memory |