JPS63208144A - Cache memory controller - Google Patents

Cache memory controller

Info

Publication number
JPS63208144A
JPS63208144A JP62041683A JP4168387A JPS63208144A JP S63208144 A JPS63208144 A JP S63208144A JP 62041683 A JP62041683 A JP 62041683A JP 4168387 A JP4168387 A JP 4168387A JP S63208144 A JPS63208144 A JP S63208144A
Authority
JP
Japan
Prior art keywords
cache memory
register
management page
registers
access
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.)
Granted
Application number
JP62041683A
Other languages
Japanese (ja)
Other versions
JPH0721777B2 (en
Inventor
Masahiro Ito
正博 伊藤
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP62041683A priority Critical patent/JPH0721777B2/en
Publication of JPS63208144A publication Critical patent/JPS63208144A/en
Publication of JPH0721777B2 publication Critical patent/JPH0721777B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To access a memory at a high speed by providing registers of the number of operation modes of a CPU, storing a management page part of a physical address which has been brought to address conversion in these registers, and executing cache access by using an output of each register as a part of the physical address in accordance with the operation mode of the CPU. CONSTITUTION:With regard to a register for latching a management page part PA', a first register 31 and a second register 32 of an operation mode portion of a CPU 1, namely, two pieces are provided, and gate circuits g1, g2 for controlling these registers 31, 32 are provided. Also, a first multiplexer MPX 71 for switching the registers 31, 32, and a second multiplexer MPX 72 for switching physical addresses PA from the first MPX 71 and an address converter MMU 2 are provided.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、計算機装置に設置されるキャッシュ・メモリ
にアクセスを行なうキャッシュ・メモリ制御装置に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to a cache memory control device that accesses a cache memory installed in a computer device.

〈従来の技術〉 キャッシュ・メモリにアクセスを行なうキャッシュ・メ
モリ制御装置の一般的な構成を第2図に示す。
<Prior Art> FIG. 2 shows a general configuration of a cache memory control device that accesses a cache memory.

キャッシュ・メモリ制御装置は、中央処理装置CPL1
1から出力された論理アドレスLAをアドレス変換器M
MU2にて物理アドレスPAに変換してアクセスを行な
うが、このアドレス変換を行なうため、理延時間が生じ
てアクセス時間がかかる、また、−MMU2がページ管
理方式を取りキャッシュ・メモリが直接マツピング方式
で主11ツシユ・メモリの容量が管理ページ・サイズよ
り大きい場合がある等を考慮して、この図に示づように
構成されていた。
The cache memory control device is a central processing unit CPL1.
The logical address LA output from 1 is sent to the address converter M.
The MU2 converts it to the physical address PA and accesses it, but this address conversion causes delay time and takes time to access.Moreover, -MMU2 uses the page management method and the cache memory uses the direct mapping method. In consideration of the fact that the capacity of the main 11th storage memory may be larger than the management page size, the system was configured as shown in this figure.

尚、MMLJ2から出力される物理アドレスPAを、キ
ャッシュ・メモリ側からみた構成を第3図(a)に、M
MU2側からみた構成を第3図(b)に示す。
The configuration of the physical address PA output from MMLJ2 as seen from the cache memory side is shown in Figure 3(a).
The configuration seen from the MU2 side is shown in FIG. 3(b).

即ち、MMU2より出力される物理アドレスPAの内、
インデックス部INDEXとページ部pageの重なる
部分(管理ページ部PA’ とする)をcpuiがアク
セスを行なう毎にレジスタ3に保持し、次のアクセスの
際にはCPU 1からの論理アドレスLAのページ・オ
フセット部○「Sとこの管理ページ部PA’ とによっ
てキャッシュ(タグ・メモリ部TAG4)にアクセスを
開始する。
That is, among the physical addresses PA output from the MMU2,
The overlapping part of the index section INDEX and the page section page (referred to as the management page section PA') is held in the register 3 each time the CPU accesses it, and at the next access, the page of the logical address LA from the CPU 1 is stored. Access to the cache (tag memory unit TAG4) is started by the offset unit ○S and this management page unit PA'.

この時、レジスタ3に保持された管理ページ部P△′と
今回与えられたものとを第1の比較器5で比較し、ペー
ジ・ヒツト/ミスを判別する。
At this time, the first comparator 5 compares the management page portion PΔ' held in the register 3 with the one given this time to determine page hits/misses.

ヒツトの場合は、このままアクセスを行ない、TAG4
におけるヒツト/ミスを第2の比較器6で行なう。
If it is a human, continue accessing as is and TAG4
A second comparator 6 performs the hit/miss at .

ページ・ミスの場合は、マルチブレク+JMP X7に
よりMMU2で生成された管理ページ部PA’ を選択
して改めてアクセスを行なう。
In the case of a page error, the management page section PA' generated by MMU2 is selected using Multi-Break+JMP X7 and accessed again.

このようにヒツト/ミスを判別して、管理ページ部P△
′が前回のアクセスの管理ページ部PA′と一致する場
合は、MMU2でのアドレス変換の遅延時間に影響され
ず、直ちにアクセスを行なうごとができる。
In this way, by determining hits/mistakes, the management page section P△
If ' matches the management page area PA' of the previous access, the access can be made immediately without being affected by the delay time of address conversion in the MMU 2.

しかしながら、この方式にあってはMMU2が管理して
いるページにないアクセスが行なわれると、管理ページ
部PA’ は不一致になるため、テキスト・セグメント
、データ・セグメント、スタック・セグメント等が飛び
飛びに主記憶部に存在するプログラムにあっては、メモ
リ・アクセス速度が遅くなるという問題があった。
However, in this method, if an access is made that is not on a page managed by MMU2, the management page area PA' will not match, so text segments, data segments, stack segments, etc. will mainly be accessed intermittently. For programs existing in the storage section, there is a problem that the memory access speed becomes slow.

〈発明が解決しようとする問題点〉 本発明が解決しようとする課題は、キャッシュ・メモリ
制御装置のアドレス変換器の管1!lu L、でいるペ
ージを越えたアクセスが須発するプログラムを実行して
もキャッシュ・アクセス速度が落ちないようにすること
であり、常に高速にメモリ・アクセスが行なわれるキャ
ッシュ・メモリ制(2Il装置を実現することを目的と
する。
<Problems to be Solved by the Invention> The problems to be solved by the present invention are the address converter tube 1 of the cache memory control device! The purpose is to prevent the cache access speed from decreasing even when a program that requires access beyond the page in lu L is executed. The purpose is to realize this.

〈問題を解決するための手段〉 上記した問題を解決した本発明は、前回アクセスを行な
った物理アドレスの管理ページ部を保持し次にアクセス
を行なう場合、論理アドレスを物理アドレスに変換して
いる間に前記管理ページ部と論理アドレスのページ・オ
フセット部を用いてアクセスを開始するキャッシュ・メ
モリ制御装置において、中央処理装置の動作モード数の
複数の管理ページ部レジスタを設け、前記中央処理装置
の動作モードに応じて前記複数の管理ページ部レジスタ
の出力を物理アドレスとしてキャッシュ・メモリをアク
セスすることを特徴とするキャッシュ・メモリ制御装置
である。
<Means for solving the problem> The present invention, which solves the above problems, retains the management page part of the physical address that was accessed last time, and converts the logical address to a physical address when accessing the next time. In a cache memory control device in which access is started using the management page section and a page offset section of a logical address in between, a plurality of management page section registers as many as the number of operating modes of the central processing unit are provided, and The cache memory control device is characterized in that the cache memory is accessed using the outputs of the plurality of management page registers as physical addresses depending on the operation mode.

く作用〉 本発明のキ17ツシユ・メモリ制御11装置は、CPU
の動作モード数のレジスタを設け、アドレス変換された
物理アドレスのうち、管理ページ部をこれらのレジスタ
に格納しCPUの動作モードに応じて各レジスタの出力
を物理アドレスの一部としてキャッシュ・アクセスを行
なう。
Function> The key/memory control 11 device of the present invention has a CPU
The management page part of the translated physical address is stored in these registers, and the output of each register is used as part of the physical address to perform cache access according to the CPU operating mode. Let's do it.

〈実施例〉 第1図は本発明を実施したキャッシュ・メモリ制御装置
の構成ブロック図である。
<Embodiment> FIG. 1 is a configuration block diagram of a cache memory control device embodying the present invention.

この図において、第2図に示した従来のキャッシュ・メ
モリ制御装置と同一の符号は同一のものであり、その説
明は省略する。
In this figure, the same reference numerals as those in the conventional cache memory control device shown in FIG. 2 are the same, and the explanation thereof will be omitted.

本発明のキャッシュ・メモリ制御装置の構成の特徴は、
管理ページ部PA’をラップするレジスタをCPU1の
動作モード分即ら2個、第1のレジスタ31、第2のレ
ジスタ32を設け、これらのレジスタ31.32を制御
するゲート回路Q+。
The features of the configuration of the cache memory control device of the present invention are as follows:
A gate circuit Q+ is provided with two registers for each operating mode of the CPU 1, a first register 31 and a second register 32, for wrapping the management page area PA', and controls these registers 31 and 32.

92を設けるとともに、第1.第2のレジスタ31.3
2を切り換える第1のマルチブ・レクサMP×71、第
1のMPX71とMMU2からの物理アドレスPAを切
り換える第2のマルチプレクサMPX72を設置したこ
とである。
92, and the first. Second register 31.3
A first multiplexer MPX71 that switches the physical address PA from the first MPX71 and the second multiplexer MPX72 that switches the physical address PA from the MMU2 is installed.

ここで、CPU1の動作モードとして、例えばスーパー
バイザ/ユーザ・モード、コード/データ・モードが挙
げられる。
Here, the operating modes of the CPU 1 include, for example, a supervisor/user mode and a code/data mode.

さて、CPU1がアクセス動作を開始するど、CPLl
lの動作モード信号Mがゲート回路Q++g2に与えら
れ、該当するレジスタに管理ページ部PA’が格納され
る。尚、c +、を第1.第2のレジスタ31.32の
書き込み信号である。
Now, when CPU1 starts the access operation, CPL1
The operation mode signal M of 1 is applied to the gate circuit Q++g2, and the management page portion PA' is stored in the corresponding register. Note that c + is the first . This is the write signal for the second register 31,32.

第177)MPX71G、t、CPU1からの動作モー
ド信号Mにより第1.第2のレジスタi1.32のどら
らかを選択する。例えば、cpuiの動作モードがスー
パーバイザ・モードであればゲート回路q1により第1
のレジスタ31が選択され、CPU1がユーザー・モー
ドであればゲート回路q2により第2のレジスタ32が
選択される。
177) MPX71G, t, the operation mode signal M from the CPU1 causes the 1st. Select one of the second registers i1.32. For example, if the operating mode of the cpui is supervisor mode, the first
If the CPU 1 is in the user mode, the second register 32 is selected by the gate circuit q2.

第2のMPX72は、第2図のMPX7に対応して同じ
機能を有し、第1のMPX71の出力P△′とMMIJ
2で生成された管理ページ部(PA)とを切り換える。
The second MPX72 corresponds to the MPX7 in FIG. 2 and has the same function, and the output P△′ of the first MPX71 and
The management page section (PA) generated in step 2 is switched.

第1の比較器5、第2の比較器6は従来の装置と同様の
働きをし、ページ・ヒツト/ミス情報、TAG4のヒツ
ト/ミス情報を出力づる。
The first comparator 5 and the second comparator 6 function similarly to conventional devices and output page hit/miss information and TAG 4 hit/miss information.

そして、CPU1のアクセス動作が終了する時点で現在
出力されている物理アドレスPAの管理ページ部PA’
 をその動作モードに対応するレジスタに格納する。
Then, at the time when the access operation of the CPU 1 ends, the management page part PA' of the physical address PA that is currently being output is
is stored in the register corresponding to the operating mode.

このように、レジスタを複数個用意してCPU1の動作
モードに応じて管理ページ部PA’ を格納するレジス
タを選択するため、前述したテキスト・セグメント、デ
ータ・セグメント、スタック・セグメント等が飛び飛び
に主記憶部に存在する場合であっても管理ページ部PA
’が不一致となる確率が低くなる。即ち、CPLllが
、コード・モードとデータ・モードの2つのモードで交
互にアクセスする場合であっても、ミスの確率が減少し
、キャッシュ・アクセス・タイムが小さくなる。
In this way, since multiple registers are prepared and the register to store the management page area PA' is selected depending on the operating mode of CPU 1, the text segment, data segment, stack segment, etc. mentioned above are mainly used. Management page section PA even if it exists in the storage section
' is less likely to be inconsistent. That is, even when CPLll alternately accesses in two modes, code mode and data mode, the probability of misses is reduced and the cache access time is reduced.

〈発明の効果〉 本発明のキャッシュ・メモリ制御装置は、CPUの動作
モード数のレジスタを設け、アドレス変換された物理ア
ドレスのうち、′a理ページ部をこれらのレジスタに格
納しCPLJの動作モードに応じて各レジスタの出力を
物理アドレスの一部としてキャッシュ・アクセスを行な
うので、アドレス変換器の管理しているページを越えた
アクセスが頻発するプログラムを実行してもキャッシュ
・アクセス速度が落ちることなく、常に高速にメモリ・
アクセスが行なわれるキャッシュ・メモリ制御装置を実
現することができる。
<Effects of the Invention> The cache memory control device of the present invention is provided with registers for the number of operating modes of the CPU, stores the 'a logical page part of the converted physical address in these registers, and selects the operating mode of the CPLJ. Since cache access is performed using the output of each register as part of the physical address according to the address, the cache access speed will decrease even if a program that frequently accesses beyond the page managed by the address converter is executed. Always fast memory
A cache memory control device in which access is performed can be implemented.

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

第1図は本発明を実施したキャッシュ・メモリ制御装置
の構成ブロック図、第2図(a)、(b)はMMU2か
ら出力される物理アドレスPAを構成を表わす図、第3
図は従来のキャッシュ・メモリ制御装置の構成ブロック
図である。 1・・・中央処理装置CPLI、 2・・・アドレス変換器MMU、3・・・レジスタ、3
1・・・第1のレジスタ、32・・・第2のレジスタ、
4・・・タグ・メモリ部TAG1 5・・・第1の比較器、6・・・第2の比較器、7・・
・マルチプレクサMPX。 71・・・第1のマルチプレクサMPX。 72・・・第2のマルチブレクリMPX1Q+ 、 g
2・・・ゲート回路。 手続ネ11正書(方式) 62.5.8 昭和年月日 い
FIG. 1 is a configuration block diagram of a cache memory control device embodying the present invention, FIGS. 2(a) and (b) are diagrams showing the configuration of the physical address PA output from the MMU 2, and FIG.
The figure is a block diagram of a conventional cache memory control device. 1...Central processing unit CPLI, 2...Address converter MMU, 3...Register, 3
1... first register, 32... second register,
4... Tag memory section TAG1 5... First comparator, 6... Second comparator, 7...
・Multiplexer MPX. 71...first multiplexer MPX. 72...Second multi-breech MPX1Q+, g
2...Gate circuit. Procedure Ne 11 official book (method) 62.5.8 Showa date

Claims (1)

【特許請求の範囲】[Claims] 前回アクセスを行なつた物理アドレスの管理ページ部を
保持し次にアクセスを行なう場合、論理アドレスを物理
アドレスに変換している間に前記管理ページ部と論理ア
ドレスのページ・オフセット部を用いてアクセスを開始
するキャッシュ・メモリ制御装置において、中央処理装
置の動作モード数の複数の管理ページ部レジスタを設け
、前記中央処理装置の動作モードに応じて前記複数の管
理ページ部レジスタの出力を物理アドレスとしてキャッ
シュ・メモリをアクセスすることを特徴とするキャッシ
ュ・メモリ制御装置。
If the management page part of the physical address that was accessed last time is retained and the next access is made, the management page part and the page offset part of the logical address are used for the access while converting the logical address to a physical address. In a cache memory control device that starts a process, a plurality of management page unit registers are provided as many as the number of operating modes of the central processing unit, and outputs of the plurality of management page unit registers are set as physical addresses according to the operating mode of the central processing unit. A cache memory control device that accesses a cache memory.
JP62041683A 1987-02-25 1987-02-25 Cash memory controller Expired - Lifetime JPH0721777B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62041683A JPH0721777B2 (en) 1987-02-25 1987-02-25 Cash memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62041683A JPH0721777B2 (en) 1987-02-25 1987-02-25 Cash memory controller

Publications (2)

Publication Number Publication Date
JPS63208144A true JPS63208144A (en) 1988-08-29
JPH0721777B2 JPH0721777B2 (en) 1995-03-08

Family

ID=12615227

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62041683A Expired - Lifetime JPH0721777B2 (en) 1987-02-25 1987-02-25 Cash memory controller

Country Status (1)

Country Link
JP (1) JPH0721777B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03135642A (en) * 1989-07-03 1991-06-10 Tandem Comput Inc Computer memory system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS558628A (en) * 1978-06-30 1980-01-22 Fujitsu Ltd Data processing system
JPS59112479A (en) * 1982-12-17 1984-06-28 Fujitsu Ltd High speed access system of cache memory

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS558628A (en) * 1978-06-30 1980-01-22 Fujitsu Ltd Data processing system
JPS59112479A (en) * 1982-12-17 1984-06-28 Fujitsu Ltd High speed access system of cache memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03135642A (en) * 1989-07-03 1991-06-10 Tandem Comput Inc Computer memory system

Also Published As

Publication number Publication date
JPH0721777B2 (en) 1995-03-08

Similar Documents

Publication Publication Date Title
US8799621B2 (en) Translation table control
US4937738A (en) Data processing system which selectively bypasses a cache memory in fetching information based upon bit information of an instruction
JPH0772880B2 (en) Address translation device and method
JP2001290706A (en) Prefetch for tlb cache
JP2000276404A (en) Method and device for virtual storage and recording medium
JP2000227874A (en) Method and device for addressing contents of main memory including directory structure in computer system
US20050273572A1 (en) Address translator and address translation method
JP2001075866A (en) Method for operating storage device, and storage device
US5813030A (en) Cache memory system with simultaneous access of cache and main memories
JP2002149491A (en) Processor memory system
JP2002032264A (en) Cache memory device and central processing unit using the same
JPH05100956A (en) Address converter
JPS63208144A (en) Cache memory controller
JPS6136264B2 (en)
US5933856A (en) System and method for processing of memory data and communication system comprising such system
JPH0830568A (en) Cache control system for distributed memory type parallel computer
US6321319B2 (en) Computer system for allowing a two word jump instruction to be executed in the same number of cycles as a single word jump instruction
JPS6032220B2 (en) information processing equipment
JP2700147B2 (en) Instruction cache flash on REI control
JPH06103477B2 (en) Parallel cache memory
JP2778623B2 (en) Prefetch control device
JPH077355B2 (en) Information processing equipment
JP2570361B2 (en) Storage control method
JPH0363094B2 (en)
JP2759952B2 (en) Cache memory