JPH05120134A - Cache memory mounting system - Google Patents

Cache memory mounting system

Info

Publication number
JPH05120134A
JPH05120134A JP3283458A JP28345891A JPH05120134A JP H05120134 A JPH05120134 A JP H05120134A JP 3283458 A JP3283458 A JP 3283458A JP 28345891 A JP28345891 A JP 28345891A JP H05120134 A JPH05120134 A JP H05120134A
Authority
JP
Japan
Prior art keywords
cache memory
hardware
memory
area
software
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
JP3283458A
Other languages
Japanese (ja)
Inventor
Seiji Niida
征司 仁井田
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP3283458A priority Critical patent/JPH05120134A/en
Publication of JPH05120134A publication Critical patent/JPH05120134A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To decrease a mutual interference by providing independently a cache memory used by a regular software and a cache memory used by a hardware control software, in an information processor for performing a part of hardware and firmware functions with the hardware control software. CONSTITUTION:The system is provided with a register 21a for showing a start address and a register 21b for showing an end address in a hardware area in a memory, and in the case an access to the memory is within a range determined by the registers 21a and 21b, a cache memory 22a is used, and in other case, a cache memory 22b is used. In such a way, an interference related to the cache memory of an access to a regular software area and an access to a hardware area is prevented.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はハードウェア/ファーム
ウェア機能の一部をハードウェア制御ソフトウェア(以
後、HCSWと略記)で遂行する情報処理装置における
キャッシュメモリ実装方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache memory mounting method in an information processing apparatus for performing a part of hardware / firmware functions by hardware control software (hereinafter abbreviated as HCSW).

【0002】[0002]

【従来の技術】従来、この種の情報処理装置において、
制御記憶容量削減およびファームウェア設計量削減を目
的として、ハードウェア/ファームウェア機能のHCS
W化がなされてきた。
2. Description of the Related Art Conventionally, in this type of information processing apparatus,
HCS of hardware / firmware function for the purpose of reducing control memory capacity and firmware design amount
W has been made.

【0003】HCSWは一般ソフトウェアに開放された
全命令から選択したソフトウェア命令群とHCSW専用
のHCSWサポート命令群でコーディングされ、主記憶
のハードウェア領域内に格納される。
The HCSW is coded by a software instruction group selected from all the instructions released to general software and an HCSW support instruction group dedicated to HCSW, and stored in a hardware area of the main memory.

【0004】中央処理装置の動作モードの一つとして、
ソフトウェアモードとHCSWモードが存在する。ソフ
トウェアモードの場合、ソフトウェアにより命令カウン
タ,ベースレジスタ,汎用レジスタ等の内容が管理さ
れ、CPUはソフトウェアの指示に基づいて動作する。
HCSWモードの場合、ソフトウェアが管理していた命
令カウンタ,ベースレジスタ,汎用レジスタ等の内容は
退避され、CPUはHCSWの指示に基づいて動作す
る。
As one of the operation modes of the central processing unit,
There are software mode and HCSW mode. In the software mode, the software manages the contents of the instruction counter, base register, general-purpose register, etc., and the CPU operates based on the instructions of the software.
In the HCSW mode, the contents of the instruction counter, base register, general-purpose register, etc. managed by the software are saved, and the CPU operates based on the instructions of the HCSW.

【0005】HCSWは必要に応じてハードウェア/フ
ァームウェアにより起動されHCSWモードに移入し、
処理終了後ソフトウェアモードに移行する。
The HCSW is activated by hardware / firmware when necessary, and enters the HCSW mode.
After the processing is completed, the software mode is entered.

【0006】この種の情報処理装置では主記憶のアクセ
スを高速化する目的でキャッシュメモリを実装すること
が一般的であるが、いままではHCSWモードにおける
主記憶アクセスとソフトウェアモードにおける主記憶ア
クセスでは特に区別されることはなく、したがって両方
のモードにおける主記憶アクセスは同一のキャッシュメ
モリを共用していた。
In this type of information processing apparatus, a cache memory is generally mounted for the purpose of speeding up main memory access, but until now, main memory access in the HCSW mode and main memory access in the software mode have been implemented. There was no particular distinction, so main memory accesses in both modes shared the same cache memory.

【0007】[0007]

【発明が解決しようとする課題】上述した従来の情報処
理装置では、HCSWモードにおいてアクセスする主記
憶エリアの多くはハードウェア領域に集中する。これに
対し、ソフトウェアモードでは主記憶のハードウェア領
域をアクセスすることは少ない。
In the above-mentioned conventional information processing apparatus, most of the main storage areas accessed in the HCSW mode are concentrated in the hardware area. On the other hand, in the software mode, the hardware area of the main memory is rarely accessed.

【0008】そのため、同一のキャッシュメモリをHC
SWモードとソフトウェアモードで共用している従来の
キャッシュメモリ実装方式では、キャッシュメモリ上で
互いのモードにおいて行われた主記憶アクセスが干渉
し、性能を低下させる原因となっている。
Therefore, the same cache memory is
In the conventional cache memory mounting method in which the SW mode and the software mode are shared, main memory accesses made in the cache memory in the respective modes interfere with each other, which causes a decrease in performance.

【0009】[0009]

【課題を解決するための手段】本発明のキャッシュメモ
リ実装方式は、ハードウェアおよびファームウェア機能
の一部をハードウェア制御ソフトウェアで遂行する情報
処理装置において、主記憶に対してなされるアクセスが
ハードウェア領域かソフトウェア領域かを区別する手段
と、主記憶のハードウェア領域に対してアクセスするの
に用いられるキャッシュメモリと、主記憶のソフトウェ
ア領域に対してアクセスするのに用いられるキャッシュ
メモリとを有する。
According to the cache memory mounting method of the present invention, in an information processing apparatus for performing a part of hardware and firmware functions by hardware control software, access to a main memory is performed by hardware. It has means for distinguishing between an area and a software area, a cache memory used for accessing the hardware area of the main memory, and a cache memory used for accessing the software area of the main memory.

【0010】[0010]

【実施例】次にこの発明について図面を参照して詳細に
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail with reference to the drawings.

【0011】図1は本発明の一実施例を示す説明図であ
る。同図において本発明を実現する情報処理装置は、主
記憶ユニット(MEM)1,中央処理ユニット(CP
U)3,及びシステムインターフェイスユニット(SI
U)2を有する。
FIG. 1 is an explanatory view showing an embodiment of the present invention. In the figure, an information processing apparatus for implementing the present invention includes a main memory unit (MEM) 1, a central processing unit (CP).
U) 3, and system interface unit (SI
U) 2.

【0012】中央処理ユニット3は、メモリバッファ制
御ユニット(MBU)4,先行制御ユニット(PFU)
5,及び命令実行制御ユニット(EXU)6を有する。
メモリバッファ制御ユニット4,先行制御ユニット5,
及び命令実行制御ユニット6は互いに接続されている。
The central processing unit 3 includes a memory buffer control unit (MBU) 4 and a preceding control unit (PFU).
5, and an instruction execution control unit (EXU) 6.
Memory buffer control unit 4, advanced control unit 5,
The instruction execution control unit 6 is connected to each other.

【0013】命令実行制御ユニット6は作業記憶(W
S)7とCS制御ユニット(CSU)6aを含む。CS
制御ユニット6aは制御記憶(CS)6bを含む。制御
記憶6bはファームウェア(FW)6cを含む。
The instruction execution control unit 6 has a working memory (W
S) 7 and CS control unit (CSU) 6a. CS
The control unit 6a includes a control memory (CS) 6b. The control memory 6b includes firmware (FW) 6c.

【0014】メモリバッファ制御ユニット4は高速アド
レス変換バッファ(TLB)4bとキャッシュメモリ
(CM)4aを含む。
The memory buffer control unit 4 includes a high speed address translation buffer (TLB) 4b and a cache memory (CM) 4a.

【0015】図2は主記憶の構成を示す説明図である。
主記憶はハードウェア領域11とソフトウェア領域10
aおよび10bに分けられている。ハードウェア領域に
はHCSW命令群111とHCSW命令群が使用する作
業領域112とハードウェア/ファームウェア/HCS
Wが使用する制御用テーブル類113が格納される。
FIG. 2 is an explanatory diagram showing the structure of the main memory.
The main memory is the hardware area 11 and the software area 10.
It is divided into a and 10b. The hardware area includes a HCSW instruction group 111, a work area 112 used by the HCSW instruction group, and hardware / firmware / HCS.
The control tables 113 used by W are stored.

【0016】HCSWの命令群の取り出しはハードウェ
ア領域に限られ、また、HCSW命令群によりアクセス
される主記憶の領域の多くはハードウェア領域に集中す
る。かつ、一般にソフトウェアモードにおいてハードウ
ェア領域をアクセスすることは制限されるため、このふ
たつの領域の分離度はかなり高い。
The fetching of the HCSW instruction group is limited to the hardware area, and most of the main memory area accessed by the HCSW instruction group is concentrated in the hardware area. In addition, since the access to the hardware area is generally restricted in the software mode, the degree of isolation between the two areas is considerably high.

【0017】図3はメモリバッファ制御ユニットの構成
を示す説明図である。同図においてキャッシュメモリ2
2を、主記憶のハードウェア領域11をアクセスするた
めに用いる部分22aと主記憶のソフトウェア領域10
aおよび10bをアクセスするために用いる部分22b
に分割する。
FIG. 3 is an explanatory diagram showing the structure of the memory buffer control unit. In the figure, the cache memory 2
2 is a portion 22a used to access the hardware area 11 of the main memory and the software area 10 of the main memory.
Portion 22b used to access a and 10b
Split into.

【0018】今、主記憶中のハードウェア領域は一連の
アドレスを取るものと仮定し、メモリバッファ制御ユニ
ット20に主記憶のハードウェア領域の上限を示すレジ
スタ(UBR)21b及び下限を示すレジスタ(LB
R)21aを設ける。キャッシュメモリの管理部21で
は、先行制御ユニット5からのアクセスに関するアドレ
ス情報と該上記レジスタ21aおよび21bの内容を3
入力の比較器21cに入力する。そして先行制御ユニッ
ト5からのアクセス要求がレジスタ21aおよび21b
により指定された範囲に対するものであれば主記憶のハ
ードウェア領域に対するアクセスであると判断してキャ
ッシュメモリ22aを参照・更新し、アクセス要求が該
レジスタにより指定された範囲外に対するものであれば
主記憶のソフトウェア領域に対するアクセスであると判
断してキャッシュメモリ22bを参照・更新する。
Now, assuming that the hardware area in the main memory takes a series of addresses, the memory buffer control unit 20 is provided with a register (UBR) 21b indicating the upper limit of the hardware area of the main memory and a register (lower) indicating the lower limit. LB
R) 21a is provided. The management unit 21 of the cache memory stores the address information regarding the access from the preceding control unit 5 and the contents of the registers 21a and 21b.
Input to the input comparator 21c. The access request from the preceding control unit 5 is transmitted to the registers 21a and 21b
If the access request is outside the range specified by the register, the cache memory 22a is referenced and updated by determining that the access is to the hardware area of the main memory. The cache memory 22b is referenced and updated by determining that the access is to the software area of the storage.

【0019】したがって、キャッシュメモリのアクセス
に関し、ハードウェア領域とソフトウェア領域のアクセ
スは独立して行われる事になる。
Therefore, regarding the access to the cache memory, the access to the hardware area and the software area is performed independently.

【0020】[0020]

【発明の効果】以上説明したように本発明は、主記憶の
ハードウェア領域をアクセスするために用いる部分と主
記憶のソフトウェア領域をアクセスするために用いる部
分にキャッシュメモリを分割することにより、同一のキ
ャッシュメモリをHCSWモードとソフトウェアモード
で共用している従来のキャッシュメモリ実装方式と比較
しキャッシュメモリ上における互いのモードにおいて行
われた主記憶アクセスの干渉を低減でき、これを要因と
する性能の低下を防ぐ効果がある。
As described above, according to the present invention, the cache memory is divided into a part used for accessing the hardware area of the main memory and a part used for accessing the software area of the main memory, thereby making the same. Compared with the conventional cache memory mounting method in which the cache memory of the cache memory is shared between the HCSW mode and the software mode, it is possible to reduce the interference of the main memory access performed in the mutual modes on the cache memory, and the performance due to this can be reduced. It has the effect of preventing deterioration.

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

【図1】本発明の一実施例を示す説明図。FIG. 1 is an explanatory view showing an embodiment of the present invention.

【図2】主記憶内部の構成を示す説明図。FIG. 2 is an explanatory diagram showing an internal configuration of a main memory.

【図3】メモリバッファ制御ユニットの構成を示す説明
図。
FIG. 3 is an explanatory diagram showing a configuration of a memory buffer control unit.

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

1 主記憶ユニット 2 システムインターフェイスユニット 3 中央処理ユニット 4 メモリバッファ制御ユニット 4a 高速アドレス変換バッファ 4b キャッシュメモリ 5 先行制御ユニット 6 命令実行制御ユニット 6a CS制御ユニット 6b 制御記憶 6c ファームウェア 7 作業記憶 10a,10b 主記憶のソフトウェア領域 11 主記憶のハードウェア領域 21a ハードウェア領域下限アドレスレジスタ 21b ハードウェア領域上限アドレスレジスタ 21c 3入力比較器 22a ハードウェア領域アクセス用キャッシュメモ
リ 22b ソフトウェア領域アクセス用キャッシュメモ
1 main memory unit 2 system interface unit 3 central processing unit 4 memory buffer control unit 4a high-speed address conversion buffer 4b cache memory 5 preceding control unit 6 instruction execution control unit 6a CS control unit 6b control memory 6c firmware 7 working memory 10a, 10b main Software area of memory 11 Hardware area of main memory 21a Hardware area lower limit address register 21b Hardware area upper limit address register 21c 3 Input comparator 22a Hardware area access cache memory 22b Software area access cache memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ハードウェアおよびファームウェア機能
の一部をハードウェア制御ソフトウェアで遂行する情報
処理装置において、主記憶に対してなされるアクセスが
ハードウェア領域かソフトウェア領域かを区別する手段
と、主記憶のハードウェア領域に対してアクセスするの
に用いられるキャッシュメモリと、主記憶のソフトウェ
ア領域に対してアクセスするのに用いられるキャッシュ
メモリとを有することを特徴とするキャッシュメモリ実
装方式。
1. In an information processing device for performing a part of hardware and firmware functions by hardware control software, a means for distinguishing whether access made to a main memory is a hardware area or a software area, and a main memory. A cache memory mounting method comprising: a cache memory used for accessing the hardware area of the main memory; and a cache memory used for accessing the software area of the main memory.
JP3283458A 1991-10-30 1991-10-30 Cache memory mounting system Pending JPH05120134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3283458A JPH05120134A (en) 1991-10-30 1991-10-30 Cache memory mounting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3283458A JPH05120134A (en) 1991-10-30 1991-10-30 Cache memory mounting system

Publications (1)

Publication Number Publication Date
JPH05120134A true JPH05120134A (en) 1993-05-18

Family

ID=17665812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3283458A Pending JPH05120134A (en) 1991-10-30 1991-10-30 Cache memory mounting system

Country Status (1)

Country Link
JP (1) JPH05120134A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6047388A (en) * 1997-04-09 2000-04-04 International Business Machines Corporation Method and apparatus for processing an invalid address request
US6859862B1 (en) 2000-04-07 2005-02-22 Nintendo Co., Ltd. Method and apparatus for software management of on-chip cache

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6047388A (en) * 1997-04-09 2000-04-04 International Business Machines Corporation Method and apparatus for processing an invalid address request
US6859862B1 (en) 2000-04-07 2005-02-22 Nintendo Co., Ltd. Method and apparatus for software management of on-chip cache

Similar Documents

Publication Publication Date Title
US4459661A (en) Channel address control system for a virtual machine system
JPH03135641A (en) Microprocessor
JPH04246745A (en) Memory access system
JP2768503B2 (en) Virtual memory address space access control method
US5727179A (en) Memory access method using intermediate addresses
JPH05120134A (en) Cache memory mounting system
JPS6349945A (en) Process roll-in system for data processor
JPH0377137A (en) Information processor
JPS6336012B2 (en)
JPH05334233A (en) Data transferring device
JPH0447344B2 (en)
JPH07152574A (en) Program loading system
JPH03154139A (en) Cache memory
JPH05298122A (en) Multi-task processor
JP3288170B2 (en) Address translation method
JPH041373B2 (en)
JPH04291642A (en) Cache control system
JPH04340143A (en) Digital computer
JPH04280337A (en) Virtual storage computer system
JPH03256148A (en) Cache memory control device
JPS6345654A (en) Invalidation processing system for information processor
JPH03271859A (en) Information processor
JPS60132254A (en) Data processor
JPS62197843A (en) File access system
JPH02230347A (en) Read system of data by unitarity of index information