JPH10124383A - Memory access control system - Google Patents

Memory access control system

Info

Publication number
JPH10124383A
JPH10124383A JP27913396A JP27913396A JPH10124383A JP H10124383 A JPH10124383 A JP H10124383A JP 27913396 A JP27913396 A JP 27913396A JP 27913396 A JP27913396 A JP 27913396A JP H10124383 A JPH10124383 A JP H10124383A
Authority
JP
Japan
Prior art keywords
memory
access
additional information
memory access
information
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
JP27913396A
Other languages
Japanese (ja)
Inventor
Shinya Oda
眞也 尾田
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 JP27913396A priority Critical patent/JPH10124383A/en
Publication of JPH10124383A publication Critical patent/JPH10124383A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the memory access control system which makes memory access faster by switching and using speeding-up technique for the memory access. SOLUTION: Information regarding the kind of memory access is added as additional information to address information and outputted from a CPU 1. The said additional information is decoded by access kinds through an additional information decoding part 21. According to the output of the decoding part 21, an access kind judgement part 22 determines speeding-up technique by the access kinds. The speeding-up technique which is thus determined is used by a memory timing control part 23 to control the execution timing of the said memory access.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、メモリアクセス制
御方式に関し、特にメモリアクセスの高速化技術に関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a memory access control system, and more particularly to a technique for speeding up memory access.

【0002】[0002]

【従来の技術】従来、CPUがメモリにアクセスする
際、メモリ制御部は一様に同じ種類のアクセス方法であ
るとして動作していた。即ち、メモリアクセスの高速化
は単一の高速化手法のみで高速化している。
2. Description of the Related Art Conventionally, when a CPU accesses a memory, a memory control unit operates uniformly assuming the same type of access method. That is, the speed of the memory access is increased by only a single speed-up method.

【0003】また例えば特開平2−105384号公報
には、アドレス情報に付加した付加情報を用いてメモリ
アクセスの高速化を行うことが記載されている。
[0003] For example, Japanese Patent Application Laid-Open No. 2-105384 discloses that memory access is speeded up using additional information added to address information.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
技術では、メモリアクセスの高速化は単一の高速化手法
で行われるため、その手法から外れたアクセスが発生し
た場合には、高速化を行なわなかった場合よりも更に性
能が悪化してしまうという問題がある。即ち、高速化と
いっても万能ではなく、ある特定のアクセス手順を想定
し、そのアクセス方法を中心に高速化を考えてあるた
め、例外的なパターンを受けた場合、通常のアクセス時
間に加えて、先行動作した部分の復旧動作を行わなけれ
ばならず、余分に時間を要する。
However, in the prior art, the speed of memory access is increased by a single speed-up method. Therefore, if an access deviating from that method occurs, the speed is increased. There is a problem that the performance is further degraded as compared with the case without the above. In other words, speeding up is not versatile, but rather is based on a specific access procedure and speeding up focusing on that access method. Thus, the recovery operation of the part that has performed the preceding operation must be performed, which requires extra time.

【0005】それ故に本発明の課題は、メモリアクセス
の高速化手法を切り替えて使うことによりメモリアクセ
スの更なる高速化を可能にしたメモリアクセス制御方式
を提供することにある。
It is therefore an object of the present invention to provide a memory access control system which can further increase the speed of memory access by switching and using the method of increasing the speed of memory access.

【0006】[0006]

【課題を解決するための手段】本発明によれば、メモリ
に対するアクセスを制御するメモリアクセス制御方式に
おいて、アクセスすべきデータに関する情報をアドレス
情報に付加情報として付加してCPUから出力させ、メ
モリ制御部で前記付加情報を参照して前記メモリの高速
動作モードを決めるようにしたことを特徴とするメモリ
アクセス制御方式が得られる。
According to the present invention, in a memory access control system for controlling access to a memory, information relating to data to be accessed is added to address information as additional information and output from a CPU. A high-speed operation mode of the memory is determined by referring to the additional information.

【0007】また本発明によれば、メモリアクセスを制
御するメモリアクセス制御方式において、アクセス種別
に関する情報をアドレス情報に付加情報として付加して
出力するCPUと、前記付加情報をアクセス種別毎にデ
コードする付加情報デコード部と、前記デコード部の出
力にしたがいアクセス種別毎に高速化手法を決定するア
クセス種別判断部と、決定された高速化手法を使い前記
メモリアクセスの実行タイミングを制御するメモリタイ
ミング制御部とを含むことを特徴とするメモリアクセス
制御方式が得られる。
According to the present invention, in a memory access control system for controlling memory access, a CPU for adding information about an access type to address information as additional information and outputting the information, and decoding the additional information for each access type An additional information decoding unit, an access type determination unit that determines a speed-up method for each access type according to an output of the decoding unit, and a memory timing control unit that controls execution timing of the memory access using the determined speed-up method And a memory access control method characterized by including the following.

【0008】前記付加情報はアクセスすべきデータの種
別に関するやアクセス頻度に関するものであるとよい。
[0008] The additional information may be related to a type of data to be accessed or an access frequency.

【0009】[0009]

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

【0010】図1は本発明の実施の形態に係るメモリア
クセス制御方式を示し、アクセス種別を示す付加情報を
アドレス情報に付加して出力するCPU1と、実際に情
報を記憶するためのメモリ3と、CPU1からのアドレ
ス情報と付加情報を元にメモリ3の制御を行うメモリ制
御部2とを含んでいる。
FIG. 1 shows a memory access control method according to an embodiment of the present invention, in which a CPU 1 for adding additional information indicating an access type to address information and outputting the address information, and a memory 3 for actually storing the information. And a memory control unit 2 for controlling the memory 3 based on the address information and the additional information from the CPU 1.

【0011】図2はメモリ制御部2を詳細に示してい
る。メモリ制御部2は、CPU1からの付加情報を元に
アクセス種別を判断するためのデコードを行う付加情報
デコード部21、アクセス種別をどういった高速化手法
に対応付けるかを判断するアクセス種別判断部22、及
び決定された高速化手法に基きメモリ制御のためのタイ
ミングを生成するメモリタイミング制御部23を含んで
いる。
FIG. 2 shows the memory control unit 2 in detail. The memory control unit 2 includes an additional information decoding unit 21 that performs decoding for determining an access type based on the additional information from the CPU 1 and an access type determination unit 22 that determines which speeding method is associated with the access type. , And a memory timing control unit 23 that generates timing for memory control based on the determined high-speed technique.

【0012】このメモリアクセス制御方式の動作につい
て、図1および図2を参照して詳細に説明する。
The operation of the memory access control method will be described in detail with reference to FIGS.

【0013】CPU1は、メモリをアクセスする際にま
ずアドレス情報を提示するが、この際にアクセスの種別
に関する情報を同時に出力する。このアクセスの種別と
しての情報の内容は、アクセスの連続性、アクセスの間
隔、アクセスの系統等を類推できるような何らかの情報
を出力する。また、この情報を付加する手段としては、
図1のようにアドレス情報と全く別の付加情報として通
知してもよいし、アドレス情報の一部を使って情報を重
畳させてもよい。
The CPU 1 first presents address information when accessing the memory, and at this time, simultaneously outputs information on the type of access. As the content of the information as the type of the access, some information is output so that the continuity of the access, the interval of the access, the access system, and the like can be inferred. As means for adding this information,
As shown in FIG. 1, notification may be made as additional information completely different from the address information, or information may be superimposed using part of the address information.

【0014】付加情報の生成方法にはいくつかの手法が
考えられる。CPU1内に自動的に情報を検出するため
の機構を持たせてもよいし、プログラム生成時に陽に指
定する方法や、カーネルプログラムによって実行時に属
性を決定する方法でもよい。
There are several methods for generating the additional information. A mechanism for automatically detecting information may be provided in the CPU 1, a method of explicitly specifying information at the time of generating a program, or a method of determining an attribute at the time of execution by a kernel program may be used.

【0015】このようにして出力された付加情報は、ア
ドレス情報とともにメモリ制御部2に入力される。メモ
リ制御部2では、まず付加情報デコード部21で、伝達
された付加情報を使ってアクセス種別の情報を復元し、
アクセス種別判断部22で、復元されたアクセス種別は
どの高速化手法を用いてアクセスするかの対応付けを行
う。
The additional information thus output is input to the memory control unit 2 together with the address information. In the memory control unit 2, first, the additional information decoding unit 21 restores the information of the access type using the transmitted additional information,
The access type determination unit 22 associates the restored access type with which speeding method is used for access.

【0016】一般的に用いられる手法としては、アクセ
スのページ動作、ページ書き戻し動作の遅延、キャッシ
ュラインを持つメモリに対するライン選択先読み動作等
である。ここで決定された高速化手法を用いてメモリタ
イミング制御部23はメモリ3をアクセスする。
Commonly used techniques include access page operation, page write-back operation delay, line selection prefetch operation for a memory having a cache line, and the like. The memory timing control unit 23 accesses the memory 3 using the speed-up method determined here.

【0017】さらに図1及び図2を纏めた図3と共に図
5及び図5を参照して説明を続ける。
The description will be continued with reference to FIGS. 5 and 5 together with FIG. 3 which combines FIGS. 1 and 2.

【0018】ユーザープログラムが実行される場合、カ
ーネルプログラムにメモリエリアの使用要求を出して得
られた領域のみを使用できる。このようにカーネルプロ
グラムはユーザープログラムが使用するメモリを全て把
握しているため、カーネルプログラムにアクセス種別を
決定させるのは妥当である。
When a user program is executed, only an area obtained by issuing a use request of a memory area to a kernel program can be used. As described above, since the kernel program knows all the memories used by the user program, it is appropriate to make the kernel program determine the access type.

【0019】またアドレスを大きなグループに分け、そ
のグループ毎にアクセス種別を対応付けることができれ
ば、アドレス情報以外に付加情報専用の信号を用意する
必要がなくなる。
If addresses can be divided into large groups and the access type can be associated with each group, there is no need to prepare a signal dedicated to additional information other than address information.

【0020】カーネルプログラムはユーザープログラム
が要求してきたメモリ割り当て要求を分析し、その要求
が、プログラム領域のものか、データ領域のものか、ス
タック領域のものかを判断する。データ領域であった場
合データの大きさをある閾値で分け、大データ領域と小
データ領域とに分類する。
The kernel program analyzes a memory allocation request requested by the user program, and determines whether the request is for a program area, a data area, or a stack area. If it is a data area, the size of the data is divided by a certain threshold and classified into a large data area and a small data area.

【0021】ここで切り分けられたアクセス種別毎にカ
ーネルプログラムは異なったアドレス領域を割り当てる
ようにする。この例では図4のように00000〜プロ
グラム領域、04000〜大データ領域、08000〜
小データ領域、〜10000スタック領域に割り当てる
こととする。
The kernel program allocates a different address area to each of the divided access types. In this example, as shown in FIG. 4, 00000 program area, 04000 large data area, 08000
It is allocated to the small data area and the 10,000 stack area.

【0022】プログラムが実行されてメモリにアクセス
しようとした場合、これらのどれかのアドレス領域の一
つとしてアクセスするので、そのアドレスを判断すると
どのアクセス種別のものか判断できる。
When an attempt is made to access a memory by executing a program, the memory is accessed as one of these address areas. By judging the address, it is possible to determine which access type it is.

【0023】付加情報デコード部はこのようにアドレス
情報を元に図4のアドレス領域に分類することにより、
アクセス種別を判断する。
The additional information decoding unit classifies the address information into the address areas shown in FIG.
Determine the access type.

【0024】次にアクセス種別判断部22は、上記アク
セス種別に最も適していると思われる高速化手法を以下
に説明するように対応付ける。図5のようにプログラム
領域の場合、連続した次のアドレスがアクセスされる確
率が大きいため、次のアドレスの先読みを行い、大デー
タ領域の場合、メモリ3内のキャッシュライン”0”側
を優先的に使う。小データ領域の場合は同様にメモリ3
内のキャッシュライン”0”側を優先的に使うが、その
近傍が連続してアクセスされる確率が高いためページヒ
ットしたままの状態を保ったままにする。スタック領域
の場合はデータと全く異なったタイミングで使用される
ためメモリのキャッシュライン”1”側を優先的に使
う。
Next, the access type judging unit 22 associates a high-speed technique which is considered to be most suitable for the access type as described below. As shown in FIG. 5, in the case of the program area, there is a high probability that the next successive address will be accessed. Therefore, the next address is read ahead, and in the case of the large data area, the cache line "0" side in the memory 3 has priority. Use For small data area, memory 3
The cache line "0" side is preferentially used, but the vicinity thereof is highly likely to be accessed continuously, so that the page hit state is maintained. In the case of the stack area, the cache line "1" side of the memory is used preferentially because it is used at a timing completely different from the data.

【0025】メモリタイミング制御部23は、ここで決
定された高速化手法とアドレス情報とをもとにメモリア
クセスを行う。換言すると、メモリタイミング制御部2
3は、決定された高速化手法を使いメモリアクセスの実
行タイミングを制御する。
The memory timing control unit 23 performs memory access based on the speed-up method and the address information determined here. In other words, the memory timing control unit 2
3 controls the execution timing of the memory access using the determined speed-up method.

【0026】[0026]

【発明の効果】本発明のメモリ制御方式によると、アク
セスの種別毎に最適な高速化手法を採ることができるた
め、メモリアクセス性能が向上する。その理由は、高速
化手法を切り替えることができるため、単一の高速化手
法の場合、予測が外れた場合の性能低下が性能向上の妨
げとなっていたが、この妨げが取り除かれるためであ
る。
According to the memory control method of the present invention, an optimum speed-up method can be adopted for each type of access, so that the memory access performance is improved. The reason is that, since the speed-up method can be switched, in the case of a single speed-up method, the performance degradation due to a misprediction hinders the performance improvement, but this hindrance is removed. .

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

【図1】本発明の実施の形態に係るメモリアクセス制御
方式を説明するためのブロック図。
FIG. 1 is a block diagram for explaining a memory access control method according to an embodiment of the present invention.

【図2】図1のメモリ制御部の内部を詳細に示したブロ
ック図。
FIG. 2 is a block diagram showing the inside of a memory control unit of FIG. 1 in detail;

【図3】図1と図2を纏めて示したブロック図。FIG. 3 is a block diagram collectively showing FIGS. 1 and 2;

【図4】アクセス種別とアドレス領域との対応関係を示
した説明図。
FIG. 4 is an explanatory diagram showing the correspondence between access types and address areas.

【図5】アクセス種別とこれに対応した高速化手法との
関係を示した説明図。
FIG. 5 is an explanatory diagram showing a relationship between an access type and a corresponding high-speed technique.

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

1 CPU 2 メモリ制御部 3 メモリ 21 付加情報デーコード部 22 アクセス種別判断部 23 メモリタイミング制御部 DESCRIPTION OF SYMBOLS 1 CPU 2 Memory control part 3 Memory 21 Additional information data decoding part 22 Access type judgment part 23 Memory timing control part

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 メモリに対するアクセスを制御するメモ
リアクセス制御方式において、アクセスすべきデータに
関する情報をアドレス情報に付加情報として付加してC
PUから出力させ、メモリ制御部で前記付加情報を参照
して前記メモリの高速動作モードを決めるようにしたこ
とを特徴とするメモリアクセス制御方式。
In a memory access control method for controlling access to a memory, information on data to be accessed is added to address information as additional information.
A memory access control method, wherein a high-speed operation mode of the memory is determined by outputting the data from a PU and referring to the additional information in a memory control unit.
【請求項2】 メモリアクセスを制御するメモリアクセ
ス制御方式において、アクセス種別に関する情報をアド
レス情報に付加情報として付加して出力するCPUと、
前記付加情報をアクセス種別毎にデコードする付加情報
デコード部と、前記デコード部の出力にしたがいアクセ
ス種別毎に高速化手法を決定するアクセス種別判断部
と、決定された高速化手法を使い前記メモリアクセスの
実行タイミングを制御するメモリタイミング制御部とを
含むことを特徴とするメモリアクセス制御方式。
2. In a memory access control method for controlling memory access, a CPU for adding information on an access type to address information as additional information and outputting the information.
An additional information decoding unit that decodes the additional information for each access type, an access type determination unit that determines a speed-up method for each access type according to the output of the decoding unit, and the memory access using the determined speed-up method A memory timing control unit for controlling execution timing of the memory access control.
【請求項3】 前記付加情報はアクセスすべきデータの
種別に関するものである請求項1又は2に記載のメモリ
アクセス制御方式。
3. The memory access control method according to claim 1, wherein the additional information relates to a type of data to be accessed.
【請求項4】 前記付加情報はアクセス頻度に関するも
のである請求項1又は2に記載のメモリアクセス制御方
式。
4. The memory access control method according to claim 1, wherein the additional information is related to an access frequency.
JP27913396A 1996-10-22 1996-10-22 Memory access control system Pending JPH10124383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27913396A JPH10124383A (en) 1996-10-22 1996-10-22 Memory access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27913396A JPH10124383A (en) 1996-10-22 1996-10-22 Memory access control system

Publications (1)

Publication Number Publication Date
JPH10124383A true JPH10124383A (en) 1998-05-15

Family

ID=17606901

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27913396A Pending JPH10124383A (en) 1996-10-22 1996-10-22 Memory access control system

Country Status (1)

Country Link
JP (1) JPH10124383A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159057A (en) * 2006-12-22 2008-07-10 Intel Corp Prefetch from dynamic random access memory to static random access memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159057A (en) * 2006-12-22 2008-07-10 Intel Corp Prefetch from dynamic random access memory to static random access memory
JP4658112B2 (en) * 2006-12-22 2011-03-23 インテル コーポレイション Prefetching from dynamic random access memory to static random access memory

Similar Documents

Publication Publication Date Title
JPH0628180A (en) Prefetch buffer
KR930022210A (en) Cache miss buffer
JPH10154098A (en) Data processing system having cache and method for it
JP2001060169A (en) Cache controller and computer system
JPH10124383A (en) Memory access control system
JPH11282746A (en) Dram access method and dram controller
JPH0784879A (en) Cache memory device
JP2000047942A (en) Device and method for controlling cache memory
JP3169878B2 (en) Memory control circuit
JPS6240555A (en) Prefetch control system
JPH04291642A (en) Cache control system
JP2883335B2 (en) Information processing device
KR19990086857A (en) Cache system with serial / parallel cache structure with selective control
JPH0816390A (en) Microprocessor
KR950013116B1 (en) Locking apparatus and its control method in ticom system
JP2002319292A (en) Memory device and read-out method for the memory device
JP2001306335A (en) Computer
JPH06348592A (en) Write buffer control system
JPH10187531A (en) Prefetch system for cache memory
JPH08272608A (en) Pipeline processor
JP2005071046A (en) Method for using cache memory
JPH02307123A (en) Computer
JPH01266643A (en) Cache control system
JPH10254782A (en) Data processor
JPH1055303A (en) Memory system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020605