JPH0883215A - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH0883215A
JPH0883215A JP6216984A JP21698494A JPH0883215A JP H0883215 A JPH0883215 A JP H0883215A JP 6216984 A JP6216984 A JP 6216984A JP 21698494 A JP21698494 A JP 21698494A JP H0883215 A JPH0883215 A JP H0883215A
Authority
JP
Japan
Prior art keywords
write
memory
access
processing
caching
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
JP6216984A
Other languages
Japanese (ja)
Inventor
Masahide Tsuboi
正英 坪井
Takashi Moriyama
隆志 森山
Hiroshi Murashima
寛志 村嶋
Toshiro Akiyama
俊郎 秋山
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.)
Hitachi Ltd
Hitachi Chubu Software Ltd
Original Assignee
Hitachi Ltd
Hitachi Chubu Software 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 Hitachi Ltd, Hitachi Chubu Software Ltd filed Critical Hitachi Ltd
Priority to JP6216984A priority Critical patent/JPH0883215A/en
Publication of JPH0883215A publication Critical patent/JPH0883215A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To improve the performance and reliability of a system which has hierarchical memory structure. CONSTITUTION: This controller is equipped with a comparator 6 which decides a write-back or write-through process according to an access address, a register 5 which holds a comparison address, a non-caching mode flag, etc., a write-back/ write-through control circuit 4, and a forcible mode control circuit 7 which controls a non-caching process, etc. When the write-through process is decided because of write access and the non-caching mode is set, data in an object area of the write-through process are not cached in a high-order memory 2 and the write-access process is performed by using only a low-order memory 3. The write-back process can be performed for an area wherein high-speed memory access is required and the write-through process can be done for an area wherein the memory contents of a high and a low layer need to match each other; and the non-caching process where the data in the area of the write- through process are not stored in the high-order memory is actualized.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、階層メモリ構造を持つ
システムに関わり、特にシステムの性能及び信頼性を向
上させるのに好適なメモリ制御装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system having a hierarchical memory structure, and more particularly to a memory controller suitable for improving system performance and reliability.

【0002】[0002]

【従来の技術】近年、メモリの高速アクセスを実現する
ために、階層メモリ構造を持つシステムが主流となって
いる。通常、上位階層のメモリには下位階層のメモリ内
容の一部がコピーされ、上位メモリの内容が更新された
場合、ライトバック処理、または、ライトスルー処理に
より下位メモリの内容も更新される。ライトバック処理
は上位メモリ内容の更新のみを行い、下位メモリの内容
を新たに上位メモリにコピーする際、更新されたメモリ
内容を下位メモリに反映させ、そして下位メモリ内いに
存在するアクセス先内容を、上位メモリにコピーしライ
トまたは、リードアクセスを行う処理であり、一時的に
上下階層間でメモリ内容に不一致が生じるが、メモリア
クセスを高速に処理することができる。一方、ライトス
ルー処理は上位メモリ内容の更新と同時に下位メモリ内
容も更新することで、常に上下階層間でメモリ内容が一
致している反面、メモリアクセスを高速に処理すること
が難しくなる。例えば、特開平5−204754号公報
に記載された「キャッシュ装置」は、ライトスルー方式
のキャッシュ装置において、性能低下要因となっている
主記憶装置に対する部分書き込みアクセスの頻度を減少
させるため、書き込みブロック内の全バイトの書替えを
示す信号と、ライトアクセス時のキャッシュヒット状態
を示す信号で、書き込みデ−タを合成し、主記憶装置に
全書き込みを行うものであった。
2. Description of the Related Art In recent years, systems having a hierarchical memory structure have become mainstream in order to realize high-speed memory access. Usually, a part of the memory content of the lower layer is copied to the memory of the upper layer, and when the content of the upper memory is updated, the content of the lower memory is also updated by the write back process or the write through process. The write-back process only updates the upper memory contents, when the contents of the lower memory are newly copied to the upper memory, the updated memory contents are reflected in the lower memory, and the access destination contents existing in the lower memory Is a process of copying to the upper memory and performing write or read access, and although the memory contents do not match temporarily between the upper and lower layers, the memory access can be processed at high speed. On the other hand, in the write-through process, since the lower memory contents are updated at the same time as the upper memory contents are updated, the memory contents always match between the upper and lower layers, but it is difficult to process the memory access at high speed. For example, the "cache device" described in Japanese Patent Laid-Open No. 5-204754 is a write-through type cache device, which reduces the frequency of partial write access to the main storage device, which is a cause of performance degradation, and therefore a write block. In this case, the write data is combined with the signal indicating the rewriting of all bytes in the memory and the signal indicating the cache hit state at the time of write access, and the entire writing is performed in the main memory.

【0003】[0003]

【発明が解決しようとする課題】上記特開平5−204
754号公報に記載された技術では、ライトスルー方式
のキャッシュシステムであるにもかかわらず、一時的に
キャッシュと主記憶間でのデータの一致性が崩れてしま
うと共に、書き込みブッロク内の全バイトの書替えを示
す信号の作成回路と、書き込みデータ合成回路を備え、
ライトスルー動作の一部として制御しなくてはいけな
い。このため、データの一致性とライトスルー処理性能
を向上させるのが困難である。さらに、この装置では、
階層メモリ構造を有するシステムにおいて、何らかの障
害により上位メモリが使用不能となった場合の処理、あ
るいはライト保護エリアのデータ書込み規制については
配慮がなされていない。本発明の目的は、このような問
題点を改善し、階層メモリ構造を有するシステムの性能
及び信頼性を向上させるとともに、上位メモリが使用不
能となった場合あるいはライト保護エリアのデータ書込
み規制に柔軟に対応可能なメモリ制御装置を提供するこ
とにある。すなわち、高速アクセスを要求される領域に
はライトバック処理を、データの一致性を要求される領
域にはライトスルー処理を、それぞれアクセスアドレス
により切り分け実行させること、及びライトスルー処理
対象エリアのデータを上位メモリに格納しない、ノン・
キャッシング処理を実現させることを目的とする。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
In the technique described in Japanese Patent No. 754, although the cache system of the write-through system is used, the data consistency between the cache and the main memory is temporarily destroyed, and all the bytes in the write block are written. It is provided with a signal generation circuit for indicating rewriting and a write data synthesis circuit,
It must be controlled as part of the write-through operation. Therefore, it is difficult to improve the data consistency and the write-through processing performance. Furthermore, with this device,
In a system having a hierarchical memory structure, no consideration has been given to the processing when the upper memory becomes unusable due to some kind of failure, or the data write regulation of the write protected area. An object of the present invention is to improve such a problem, improve the performance and reliability of a system having a hierarchical memory structure, and flexibly control data writing in a write protected area when the upper memory becomes unavailable. It is to provide a memory control device that can handle the above. That is, write-back processing is executed for areas requiring high-speed access, write-through processing is executed for areas requiring data consistency, and data in the write-through processing target area is executed. Not stored in upper memory, non-
The purpose is to realize the caching process.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、本発明のメモリ制御装置は、階層メモリ構造を有す
るシステムにおいて、メモリライトアクセスが発生した
場合、アクセスアドレスの値によりライトバック処理と
ライトスルー処理の何れを行うかを判別する手段(図1
の5、6)と、ライトバック処理およびライトスルー処
理を制御する手段(図1の4)と、ライトスルー処理の
対象となるメモリ領域を上位メモリ(図1の2)内に取
り込まず、下位メモリ(図1の3)内だけで処理を行う
ノン・キャッシングモードを設定する手段(図1の5)
と、上記判別手段にてライトスルー処理と判別され、上
記設定手段にてノン・キャッシングモードが設定されて
いる場合には、上記制御手段にノン・キャッシング処理
を指示する手段(図1の7)とを備え、ライトスルー処
理領域に対するメモリライトアクセスが発生し、ノン・
キャッシングモードが設定されていれば、上位メモリへ
のアクセスを抑止し下位メモリのみへライトアクセスす
ることに特徴がある。
In order to achieve the above object, the memory control device of the present invention, in a system having a hierarchical memory structure, when a memory write access occurs, write back processing and write are performed according to the value of the access address. A means for determining which of the through processing is to be performed (see FIG.
5) and 6), a means for controlling the write-back process and the write-through process (4 in FIG. 1), and a memory area to be the target of the write-through process are not taken into the upper memory (2 in FIG. 1) Means (5 in FIG. 1) for setting the non-caching mode in which processing is performed only in the memory (3 in FIG. 1)
And a means for instructing the control means to perform non-caching processing when the non-caching mode is set by the setting means (7 in FIG. 1). And a memory write access to the write-through processing area occurs,
If the caching mode is set, it is characterized in that access to the upper memory is suppressed and write access is performed only to the lower memory.

【0005】[0005]

【作用】本発明においては、上記判別/制御手段によっ
て、ライトバック/ライトスルー処理をそれぞれのアク
セスアドレスより判断し実行するので、高速メモリアク
セスが要求されるエリアについてはライトバック処理
を、上下階層間でのメモリ内容一致性が要求されるエリ
アについてはライトスルー処理を行うようにすることが
可能となる。また、例えば上位メモリが使用不能となっ
た場合等、ノン・キャッシングモードを設定することに
より、ライトスルー処理領域については上位メモリに下
位メモリの内容をコピーせず、常に下位メモリとのみア
クセスを行うノン・キャッシング処理を実現させること
が可能となる。なお、対象メモリ領域に対するライトバ
ック/ライトスルーモード、及びノン・キャッシングモ
ードに加えて、全エリアに対し強制的にライトバック処
理あるいはライトスルー処理を行わせるモード(例え
ば、強制モードフラグと強制モード制御回路にて実現)
を設けた場合には、ライトバック/ライトスルー処理を
より効率的に混在制御することができる。
According to the present invention, the write-back / write-through process is executed by judging the write-back / write-through process from each access address by the above-mentioned discrimination / control means. It is possible to perform the write-through processing for the areas where the matching of the memory contents between the areas is required. In addition, by setting the non-caching mode, for example, when the upper memory becomes unusable, the write-through processing area does not copy the contents of the lower memory to the upper memory, and always accesses only the lower memory. It is possible to realize non-caching processing. In addition to the write-back / write-through mode for the target memory area and the non-caching mode, a mode for forcibly performing write-back processing or write-through processing for all areas (for example, compulsory mode flag and compulsory mode control) Realized with a circuit)
In the case of providing, the write-back / write-through processing can be more efficiently mixedly controlled.

【0006】[0006]

【実施例】以下に本発明の一実施例を図1に従い説明す
る。図1において、1はMPU等メモリに対しアクセス
を要求する要求元、2は上位メモリ、3は下位メモリで
あって、メモリ(記憶装置)2,3は階層構造を有す
る。また、4は、ライトバック処理、及びライトスルー
処理を制御するライトバック/ライトスルー制御回路、
5は、ライトバック/ライトスルー処理の切り分けアド
レス、ライトバック/ライトスルー処理を全エリアで強
制的に実行することを示す強制モードフラグ、及びノン
・キャッシングモードフラグを保持する比較アドレス/
モードフラグ・レジスタ、6は、アクセスアドレスと切
り分けアドレスを比較する比較器、7は、強制モード制
御回路、8,9は、アクセスアドレスセレクタ、24
は、下位メモリライトデ−タセレクタである。本実施例
では、以上の装置間を、アクセスアドレス10、ライト
データ11、切り分けアドレス13、上位メモリ読み出
しデータ18、下位階層書き込みデータ20,22、上
位メモリアクセスアドレス21、下位メモリアクセスア
ドレス23、ライトバックアクセスアドレス19でそれ
ぞれ接続し、制御信号12でレジスタ5の切り分けアド
レス及びモードフラグを、比較結果14及びモードフラ
グ15で強制モード制御回路7を、処理モード制御信号
16でライトバック/ライトスルー制御回路4を、セレ
クタ制御信号17でアクセスアドレスセレクタ8,9及
び下位メモリライトデータセレクタ24を、それぞれ制
御することで動作する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described below with reference to FIG. In FIG. 1, 1 is a request source for requesting access to a memory such as MPU, 2 is an upper memory, 3 is a lower memory, and memories (storage devices) 2 and 3 have a hierarchical structure. Further, 4 is a write back / write through control circuit for controlling the write back process and the write through process,
Reference numeral 5 denotes a comparison address that holds a division address for write-back / write-through processing, a compulsory mode flag indicating that the write-back / write-through processing is forcibly executed in all areas, and a non-caching mode flag.
Mode flag register, 6 is a comparator for comparing the access address and the cut-off address, 7 is a forced mode control circuit, 8 and 9 are access address selectors, 24
Is a lower memory write data selector. In the present embodiment, among the above devices, access address 10, write data 11, division address 13, upper memory read data 18, lower layer write data 20, 22, upper memory access address 21, lower memory access address 23, write The back access address 19 is used for connection, and the control signal 12 is used for the division address and mode flag of the register 5, the comparison result 14 and the mode flag 15 are used for the compulsory mode control circuit 7, and the processing mode control signal 16 is used for write back / write through control. The circuit 4 operates by controlling the access address selectors 8 and 9 and the lower memory write data selector 24 by the selector control signal 17, respectively.

【0007】次に本実施例の処理動作について述べる。
要求元1が、上位メモリ2に対しライトアクセスアドレ
ス10及びライトデータ11を出力してライトアクセス
を要求する。上位メモリ2内にライトアクセスアドレス
10に対応したデータが存在していれば、ライトデータ
11を書き込み内容の更新を行う。これと同時に、比較
器6に対してもアクセスアドレス10が入力され、下位
メモリ3に対して、ライトバック/ライトスルー処理の
どちらの処理を行うかを判別する。この比較判別動作
は、予め設定された比較アドレス/モードフラグ・レジ
スタ5の切り分けアドレスとアクセスアドレス10との
大小比較を行って比較結果14を出力し、アクセスアド
レスが切り分けアドレス以下の場合は、下位メモリ3に
対しライトバック処理を実行させ、アクセスアドレスが
切り分けアドレスより大きい場合には、下位メモリ3に
対しライトスルー処理を実行させるための制御信号16
を、強制モード制御回路7より出力する。なお、上記動
作は、レジスタ5にてモードフラグにより強制ノン・キ
ャッシング処理または強制ライトバック処理/強制ライ
トスルー処理が設定されてない場合に動作する。
Next, the processing operation of this embodiment will be described.
The request source 1 outputs a write access address 10 and write data 11 to the upper memory 2 to request a write access. If data corresponding to the write access address 10 exists in the upper memory 2, the write data 11 is updated. At the same time, the access address 10 is also input to the comparator 6, and it is determined which of the write-back / write-through processing is to be performed on the lower memory 3. This comparison / determination operation compares the preset division address of the comparison address / mode flag register 5 with the access address 10 and outputs a comparison result 14, and if the access address is less than or equal to the division address, the lower order A control signal 16 for causing the memory 3 to execute the write-back process and executing the write-through process for the lower memory 3 when the access address is larger than the division address.
Is output from the forced mode control circuit 7. The above operation is performed when the forced non-caching process or forced write back process / forced write through process is not set by the mode flag in the register 5.

【0008】例えば、下位メモリ3に対しライトスルー
処理が指定された場合、制御回路4より出力されるセレ
クタ制御信号17で、アクセスアドレスセレクタ8,9
を制御しアクセスアドレス10を上位メモリ2に接続す
ると共に、下位メモリライトデータセレクタ24を制御
しライトデータ11を下位メモリ3に接続して下位メモ
リ3に対してもライト動作を行い、ライトスルー処理を
実行する。また、下位メモリ3に対しライトバック処理
が指定された場合は、上位メモリ2にたいしてのみライ
ト動作を行う、その後別のアクセスにより上位メモリ2
のメモリ内容入替えが発生した場合、以下の動作を実行
する。制御回路4よりセレクタ制御信号17、ライトバ
ックアクセスアドレス19を出力する。セレクタ制御信
号17で、アクセスアドレスセレクタ8を制御しライト
バックアドレス19を上位メモリ2に接続する。上位メ
モリ2は、ライトバックアドレス19に対応する上位メ
モリ読み出しデータ18を出力する。次に、データ18
を下位メモリ3に書き込むため、セレクタ制御信号17
で、アクセスアドレスセレクタ9を制御しライトバック
アドレス19を下位メモリ3に接続すると共に、下位メ
モリライトデータセレクタ24を制御し下位階層書き込
みデータ20を下位メモリ3に接続して、下位メモリ3
に対しライトバック処理を実行する。そして下位メモリ
3内に存在するアクセス先内容を、上位メモリ2にコピ
ーしアクセスを行う。以上の動作で、アクセスアドレス
によるライトバック処理、または、ライトスルー処理の
切り分けを行う。
For example, when write-through processing is specified for the lower memory 3, the access address selectors 8 and 9 are selected by the selector control signal 17 output from the control circuit 4.
To connect the access address 10 to the upper memory 2 and to control the lower memory write data selector 24 to connect the write data 11 to the lower memory 3 to perform a write operation to the lower memory 3 as well, and perform a write through process. To execute. When write back processing is specified for the lower memory 3, the write operation is performed only for the upper memory 2, and then the upper memory 2 is accessed by another access.
When the memory contents of are replaced, the following operations are executed. The control circuit 4 outputs the selector control signal 17 and the write back access address 19. The selector control signal 17 controls the access address selector 8 to connect the write back address 19 to the upper memory 2. The upper memory 2 outputs upper memory read data 18 corresponding to the write back address 19. Next, data 18
To the lower memory 3, the selector control signal 17
Then, the access address selector 9 is controlled to connect the write-back address 19 to the lower memory 3, and the lower memory write data selector 24 is controlled to connect the lower layer write data 20 to the lower memory 3 so that the lower memory 3
A write back process is executed for. Then, the contents of the access destination existing in the lower memory 3 are copied to the upper memory 2 and accessed. By the above operation, write back processing or write through processing is divided according to the access address.

【0009】次にライトスルー処理の対象となるメモリ
領域を上位メモリ2内に取り込まず、下位メモリ3内だ
けで処理を行うノン・キャッシング処理について説明す
る。制御信号12により、レジスタ5のモードフラグを
ノン・キャッシングモードにあらかじめ設定しておく。
この状態でライトアクセスが発生した場合、比較器6が
動作して比較結果14が出力されるが、この比較結果1
4がライトスルー処理の対象となるメモリ領域へのアク
セスを示していたら、強制モード制御回路7はノン・キ
ャッシングモードであることを示す処理モード制御信号
16を出力する。これにより、上位メモリ2へのライト
アクセスを抑止すると共に、下位メモリ3へのみライト
アクセスを実行させる。
Next, a non-caching process will be described in which the memory area which is the target of the write-through process is not taken into the upper memory 2 but is processed only in the lower memory 3. The mode flag of the register 5 is preset to the non-caching mode by the control signal 12.
When a write access occurs in this state, the comparator 6 operates and the comparison result 14 is output.
If 4 indicates access to the memory area that is the target of the write-through processing, the compulsory mode control circuit 7 outputs the processing mode control signal 16 indicating the non-caching mode. As a result, the write access to the upper memory 2 is suppressed and the write access to only the lower memory 3 is executed.

【0010】さらに全エリアに対して、常にライトバッ
ク処理、または、ライトスルー処理を実行させる動作に
ついて説明する。制御信号12により、レジスタ5のモ
ードフラグを強制ライトバックモードまたは、強制ライ
トスルーモードのどちらかにあらかじめ設定しておく。
この状態でライトアクセスが発生した場合、比較器6が
動作して比較結果14が出力されるが、この比較結果1
4に関係なくレジスタ5のモードフラグの状態による処
理モード制御信号16が出力され、上記の全エリアに対
するライトスルー/ライトバック処理が実行される。以
上の動作で、アクセスアドレスに関係なく常にライトバ
ック処理、または、ライトスルー処理を実行させる。
Further, the operation of always executing the write-back process or the write-through process for all the areas will be described. The mode flag of the register 5 is set in advance to either the forced write-back mode or the forced write-through mode by the control signal 12.
When a write access occurs in this state, the comparator 6 operates and the comparison result 14 is output.
Regardless of 4, the processing mode control signal 16 according to the state of the mode flag of the register 5 is output, and the write-through / write-back processing for all the above areas is executed. With the above operation, the write back process or the write through process is always executed regardless of the access address.

【0011】なお、本実施例に示した方式は、演算部と
階層メモリ構造の一部を一つのチップ内に納めたワンチ
ップMPUシステム、及び、演算部と階層メモリ構造を
別々のチップで構成するシステム、さらに、階層メモリ
構造の一部が外部記憶装置であるシステム等に適用する
ことができる。また、上記ノン・キャッシングモードを
実現する場合、通常のライトスルー処理とノン・キャッ
シング処理の何れを行うかをアクセスアドレスにより判
別するように構成してもよい。さらに、本実施例ではモ
ードフラグをレジスタ5に設定する方法を用いたが、例
えば外部のピンによってモードを設定する方法を用いて
もよい。
In the system shown in this embodiment, a one-chip MPU system in which a part of the arithmetic unit and the hierarchical memory structure are housed in one chip, and the arithmetic unit and the hierarchical memory structure are composed of separate chips. System, and a system in which a part of the hierarchical memory structure is an external storage device. Further, in the case of realizing the non-caching mode, it may be configured such that whether the normal write-through process or the non-caching process is performed is determined by the access address. Further, although the method of setting the mode flag in the register 5 is used in the present embodiment, for example, a method of setting the mode by an external pin may be used.

【0012】[0012]

【発明の効果】本発明によれば、階層メモリ構造を持つ
システムにおいて、高速メモリアクセスが要求されるエ
リアについてはライトバック処理を、上下階層間でのメ
モリ内容一致性が要求されるエリアについてはライトス
ルー処理をそれぞれ行うことにより、システムの性能と
信頼性の向上をはかることができる。さらに、ライトス
ルー処理時に上位メモリに下位メモリの内容をコピーせ
ず、常に下位メモリとのみアクセスを行うノン・キャッ
シング処理を実現させることができるので、上位メモリ
が使用不能となった場合あるいはライト保護エリアのデ
ータ書込み規制に柔軟に対応することが可能である。な
お、ライトバック/ライトスルー処理を全エリアに強制
的に実現するためのモードを設けた場合には、ライトバ
ック/ライトスルー処理をより効率的に混在制御するこ
とができる。
According to the present invention, in a system having a hierarchical memory structure, write-back processing is performed for areas requiring high-speed memory access, and for areas requiring memory content consistency between upper and lower layers. By performing each write through process, it is possible to improve the system performance and reliability. In addition, since the contents of the lower memory are not copied to the upper memory during write-through processing, non-caching processing that always accesses only the lower memory can be realized, so if the upper memory becomes unavailable or write protection is performed. It is possible to flexibly comply with area data writing restrictions. When a mode for forcibly implementing the write back / write through processing in all areas is provided, the write back / write through processing can be mixed and controlled more efficiently.

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

【図1】本発明の一実施例におけるメモリ制御システム
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a memory control system according to an embodiment of the present invention.

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

1:MPU等メモリに対しアクセスを要求する要求元、
2:上位メモリ、3:下位メモリ、4:制御装置、5:
ライトバック/ライトスルー処理の切り分けアドレス、
強制ライトバック/ライトスルーモードフラグ、及びノ
ン・キャッシングモードフラグを保持する比較アドレス
/モードフラグ・レジスタ、6:比較器、7:強制モー
ド制御回路、8,9:アクセスアドレスセレクタ、1
0:アクセスアドレス、11:ライトデータ、12:制
御信号、13:切り分けアドレス、14:比較結果、1
5:モードフラグ、16:処理モード制御信号、17:
セレクタ制御信号、18:上位メモリ読み出しデータ、
19:ライトバックアクセスアドレス、20,22:下
位階層書き込みデータ、21:上位メモリアクセスアド
レス、23:下位メモリアクセスアドレス、24:下位
メモリライトデータセレクタ。
1: a request source requesting access to a memory such as MPU,
2: Upper memory, 3: Lower memory, 4: Control device, 5:
Separate address for write back / write through processing,
Comparison address / mode flag register holding forced write-back / write-through mode flag and non-caching mode flag, 6: comparator, 7: forced mode control circuit, 8, 9: access address selector, 1
0: access address, 11: write data, 12: control signal, 13: division address, 14: comparison result, 1
5: Mode flag, 16: Processing mode control signal, 17:
Selector control signal, 18: upper memory read data,
19: write back access address, 20, 22: lower hierarchy write data, 21: upper memory access address, 23: lower memory access address, 24: lower memory write data selector.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 村嶋 寛志 愛知県尾張旭市晴丘町池上1番地 株式会 社日立製作所オフィスシステム事業部内 (72)発明者 秋山 俊郎 愛知県名古屋市中区栄三丁目10番22号 日 立中部ソフトウェア株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Hiroshi Murashima 1 Ikegami, Haruoka-cho, Owariasahi-shi, Aichi Hitachi Ltd. Office Systems Division (72) Inventor Toshiro Akiyama 10-22 Sakae, Naka-ku, Nagoya-shi, Aichi No. in Nihon Chubu Software Co. Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 階層メモリ構造を有するシステムにおい
て、 メモリライトアクセスが発生した場合、アクセスアドレ
スの値によりライトバック処理とライトスルー処理の何
れを行うかを判別する手段と、 ライトバック処理およびライトスルー処理を制御する手
段と、 ライトスルー処理の対象となるメモリ領域を上位メモリ
内に取り込まず、下位メモリ内だけで処理を行うノン・
キャッシングモードを設定する手段と、 上記判別の結果と上記設定の有無により、上記制御手段
にノン・キャッシング処理を指示する手段とを備え、 ライトスルー処理領域に対するメモリライトアクセスが
発生し、上記設定手段にてノン・キャッシングモードが
設定されている場合には、上記指示手段にて上記制御手
段にノン・キャッシング処理を指示し、上位メモリへの
アクセスを抑止して下位メモリのみへライトアクセスす
るように構成したことを特徴とするメモリ制御装置。
1. In a system having a hierarchical memory structure, when a memory write access occurs, a means for discriminating between write back processing and write through processing depending on a value of an access address, and write back processing and write through. Non-processing means that controls the process and the memory area that is the target of the write-through process is not taken into the upper memory, but is processed only in the lower memory.
A means for setting a caching mode and a means for instructing the control means to perform non-caching processing depending on the result of the discrimination and the presence / absence of the setting are set. If the non-caching mode is set in, the instruction means instructs the control means to perform the non-caching process, and the access to the upper memory is suppressed and only the lower memory is write-accessed. A memory control device characterized by being configured.
JP6216984A 1994-09-12 1994-09-12 Memory controller Pending JPH0883215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6216984A JPH0883215A (en) 1994-09-12 1994-09-12 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6216984A JPH0883215A (en) 1994-09-12 1994-09-12 Memory controller

Publications (1)

Publication Number Publication Date
JPH0883215A true JPH0883215A (en) 1996-03-26

Family

ID=16697001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6216984A Pending JPH0883215A (en) 1994-09-12 1994-09-12 Memory controller

Country Status (1)

Country Link
JP (1) JPH0883215A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007293440A (en) * 2006-04-21 2007-11-08 Toshiba Corp Storage device using nonvolatile cache memory and its control method
EP2782015A1 (en) 2013-03-22 2014-09-24 Fujitsu Limited Processor, information processing apparatus, and method for controlling cache write-back
JP2015503816A (en) * 2012-01-16 2015-02-02 クアルコム,インコーポレイテッド Hybrid write-through / write-back cache policy manager and related systems and methods
US11494224B2 (en) * 2019-05-24 2022-11-08 Texas Instruments Incorporated Controller with caching and non-caching modes

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007293440A (en) * 2006-04-21 2007-11-08 Toshiba Corp Storage device using nonvolatile cache memory and its control method
JP2015503816A (en) * 2012-01-16 2015-02-02 クアルコム,インコーポレイテッド Hybrid write-through / write-back cache policy manager and related systems and methods
EP2782015A1 (en) 2013-03-22 2014-09-24 Fujitsu Limited Processor, information processing apparatus, and method for controlling cache write-back
US9323674B2 (en) 2013-03-22 2016-04-26 Fujitsu Limited Processor, information processing apparatus, and control method of processor
US11494224B2 (en) * 2019-05-24 2022-11-08 Texas Instruments Incorporated Controller with caching and non-caching modes

Similar Documents

Publication Publication Date Title
EP0902922B1 (en) Method and apparatus for caching system management mode information with other information
KR100327854B1 (en) Cache Memory System
EP0777183B1 (en) Computer cache system
JPS6134178B2 (en)
US20030061452A1 (en) Processor and method of arithmetic processing thereof
US5835934A (en) Method and apparatus of low power cache operation with a tag hit enablement
US5717894A (en) Method and apparatus for reducing write cycle wait states in a non-zero wait state cache system
US6952761B2 (en) Bus interface selection by page table attributes
US7356647B1 (en) Cache with integrated capability to write out entire cache
US6049852A (en) Preserving cache consistency in a computer system having a plurality of memories with overlapping address ranges
JPH0883215A (en) Memory controller
JPH10301850A (en) Method and system for providing pseudo fine inclusion system in sectored cache memory so as to maintain cache coherency inside data processing system
US5950227A (en) CPU write-back cache coherency mechanism that transfers data from a cache memory to a main memory after access of the main memory by an alternative bus master
JPH01213732A (en) Extended storage system
EP0640930A2 (en) A multiprocessor system and a method of controlling such a system
US5611072A (en) Cache with an extended single cycle read/write system and method
EP0864983A2 (en) Computer system including memory adress management circuit for protecting memory from illegal writing
US6298417B1 (en) Pipelined cache memory deallocation and storeback
JP2502406B2 (en) Storage control system and data processing device
JPH06309229A (en) Data processor
JP2542284B2 (en) Buffer storage device and buffer storage device system
JP3522465B2 (en) Data processing device
JPH10133948A (en) Cache memory device
JPH06231048A (en) Computer system and cache memory controller
JPH1055308A (en) Cache memory