JPH0488534A - Memory access controller - Google Patents

Memory access controller

Info

Publication number
JPH0488534A
JPH0488534A JP20255190A JP20255190A JPH0488534A JP H0488534 A JPH0488534 A JP H0488534A JP 20255190 A JP20255190 A JP 20255190A JP 20255190 A JP20255190 A JP 20255190A JP H0488534 A JPH0488534 A JP H0488534A
Authority
JP
Japan
Prior art keywords
read
address
data
memory
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.)
Pending
Application number
JP20255190A
Other languages
Japanese (ja)
Inventor
Kazuhisa Kima
来間 和久
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP20255190A priority Critical patent/JPH0488534A/en
Publication of JPH0488534A publication Critical patent/JPH0488534A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the pre-reading of effective data and to perform fast readout processing by providing a control means which controls the transfer of held pre-read data to an access request means. CONSTITUTION:When a read cycle for memory is started from a request device 2 that becomes the access request means, a difference detector 15 detects address difference from the request device 2 by monitoring a read address requested almost simultaneously sequentially. The adder 17 of an arithmetic means predicts the next read address from the address difference. A data register 21 that is a holding means holds the data pre-read from the memory based on a computed address. The control means controls the transfer of the pre-read data held in the data register 21 when the next read access for image memory 3 is performed from the request device 2.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、ホストより指示されるメモリに対するリー
ドアクセスを制御するメモリアクセス制御装置に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory access control device that controls read access to memory instructed by a host.

[従来の技術1 従来、この種のメモリコントローラにおいては、メモリ
の特定アドレスに記憶されたデータの読み出しを要求す
るホスト(主としてCPU、DMAC等)からデータに
対するリード要求がなされると、すぐに有効なデータを
出力するのではなく、ある一定の時間が過ぎてから有効
なデータを出力する。こ、の一定の時間中は、データの
リード要求を行ったホスト側からみると待ち時間となり
、処理速度に影響を及ぼすこととなる。
[Conventional technology 1] Conventionally, in this type of memory controller, when a read request for data is made from a host (mainly a CPU, DMAC, etc.) requesting to read data stored at a specific address in the memory, the request becomes effective immediately. Instead of outputting valid data, valid data is output after a certain amount of time has passed. During this certain period of time, from the perspective of the host that made the data read request, it becomes a waiting time, which affects the processing speed.

一般に、メモリに対するリード要求は、アドレスが連続
して行われることが多く、従来より種々の方式によりメ
モリアクセスに関する処理速度の改善がなされている。
In general, read requests to memory are often made to consecutive addresses, and various methods have been used to improve the processing speed regarding memory access.

例えばデータのリード要求が行われたアドレスに「1」
を加算し、要求されたアドレスに連続するアドレスが示
すメモリの内容を事前に先読みし、次にデータのリード
要求が行われた時、リード要求されたアドレスと先読み
したデータのアドレスとが等しければ、先読みしたデー
タをメモリのデータとして待ち時間なしでデータ要求先
に返す処理を行っている。
For example, "1" is added to the address where the data read request was made.
The contents of the memory indicated by the address consecutive to the requested address are pre-read in advance, and the next time a data read request is made, if the read-requested address and the address of the pre-read data are equal. , the prefetched data is returned to the data request destination as memory data without waiting time.

[発明が解決しようとする課題1 ところが、データとして画像データのように特定の領域
に集中するようなデータ構造を有する場合、例えば第4
図に示すようにデイスプレィに表示する画像データ■を
想定すると、画像データ■に対するリードアドレスは全
てが連続ではない。
[Problem to be Solved by the Invention 1] However, when the data has a data structure that is concentrated in a specific area, such as image data, for example,
Assuming image data (2) to be displayed on the display as shown in the figure, the read addresses for the image data (2) are not all consecutive.

第5図は、第4図に示した画像データ■に対す画像メモ
リのメモリマツプを示す模式図である。
FIG. 5 is a schematic diagram showing a memory map of the image memory for the image data (1) shown in FIG.

この図から分かるように、画像データ■は、デイスプレ
ィに対するデータとメモリ上のデータとは1対1に対応
するビットマツプに記憶されており、画像データ■を連
続してリードすると、その当該リードアドレスは一定の
差分を持って変化する特性を持つデータ構造となる。
As can be seen from this figure, the image data ■ is stored in a bitmap with a one-to-one correspondence between the data for the display and the data on the memory, and when the image data ■ is read continuously, the corresponding read address is It becomes a data structure with characteristics that change with a certain difference.

従って、従来のように連続するアドレスに対してのみ有
効となる先読みアクセス処理では、上記のような画像デ
ータを高速に読み出すことはできず、画像データ処理効
率が著しく低下するといった問題点があった。
Therefore, with conventional read-ahead access processing that is effective only for consecutive addresses, it is not possible to read the image data at high speed as described above, and there is a problem in that the image data processing efficiency is significantly reduced. .

この発明は、上記の問題点を解決するためになされたも
ので、読出しアドレスが一定の差分を持って周期的に格
納されるといったデータの構造に着目し、メモリに格納
されたデータに対する読出しサイクル中に要求されたリ
ードアドレスを監視して最適な先読みアドレスを予測す
ることにより、特定のデータ構造を有するメモリ内デー
タを高速に読出し処理できるメモリアクセス制御装置を
得ることを目的とする。
This invention was made to solve the above problems, and focuses on the structure of data in which read addresses are periodically stored with a certain difference, and the read cycle for data stored in memory is It is an object of the present invention to provide a memory access control device that can read and process data in a memory having a specific data structure at high speed by monitoring read addresses requested during the process and predicting an optimal read-ahead address.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るメモリアクセス制御装置は、アクセス要
求手段から相前後して要求されるリードアドレスを順次
監視してアドレス差分を検出する検圧手段と、この検出
手段により検出されたアドレス差分に基づいて次回のリ
ードアドレスを予測演算する演算手段と、この演算手段
により演算されたアドレスに基づいてメモリから先読み
された先読みデータを保持する保持手段と、アクセス要
求手段から要求されるメモリに対する次回のリードアク
セス時に、演算手段により演算されたリードアドレスと
アクセス要求手段から要求されるアドレスとを順次比較
して、保持手段に保持された先読みデータのアクセス要
求手段への転送を制御する制御手段とを設けたものであ
る。
The memory access control device according to the present invention includes a pressure detection means for sequentially monitoring read addresses requested one after another by an access requesting means and detecting an address difference, and a pressure detection means for detecting an address difference by sequentially monitoring read addresses requested one after another by an access requesting means; a calculation means for predicting and calculating the next read address; a holding means for holding the pre-read data read ahead from the memory based on the address calculated by the calculation means; and a next read access to the memory requested by the access request means. and control means for sequentially comparing the read address calculated by the calculation means with the address requested by the access request means and controlling the transfer of the pre-read data held in the holding means to the access request means. It is something.

[作用] この発明においては、アクセス要求手段よりメモリに対
するリードサイクルが開始されると、検出手段がアクセ
ス要求手段から相前後して要求されるリードアドレスを
順次監視してアドレス差分を検出する。この検出したア
ドレス差分から演算手段がアドレス差分に基づいて次回
のリードアドレスを予測演算する。そして、保持手段が
演算されたアドレスに基づいてメモリから先読みされた
先読みデータを保持し、アクセス要求手段から要求され
るメモリに対する次回のリードアクセス時に、制御手段
が演算された次回のリードアドレスとアクセス要求手段
から要求されるアドレスとを順次比較して保持手段に保
持された先読みデータのアクセス要求手段への転送を制
御し、アクセス要求手段から要求されたデータとして先
読みデータを転送することを可能とする。
[Operation] In the present invention, when a read cycle for the memory is started by the access requesting means, the detection means sequentially monitors read addresses successively requested by the access requesting means and detects an address difference. Based on the detected address difference, a calculation means predicts and calculates the next read address based on the address difference. The holding means holds the pre-read data pre-read from the memory based on the calculated address, and at the time of the next read access to the memory requested by the access requesting means, the control means uses the calculated next read address and the access. It is possible to control the transfer of the preread data held in the holding means to the access requesting means by sequentially comparing the addresses requested by the requesting means, and to transfer the preread data as data requested by the access requesting means. do.

[実施例1 第1図はこの発明の一実施例を示すメモリアクセス制御
装置の構成を説明するブロック図であり、1はメモリア
クセスコントローラで、画像メモリ3に対してデータの
リード要求を行うアクセス要求手段となる要求装置2(
例えばDMAC。
[Embodiment 1] FIG. 1 is a block diagram illustrating the configuration of a memory access control device showing an embodiment of the present invention. Reference numeral 1 denotes a memory access controller, and numeral 1 denotes a memory access controller that performs an access request to read data from the image memory 3. A requesting device 2 (which serves as a requesting means)
For example, DMAC.

MPU等)からのアドレス線L1を介してメモリアクセ
スを受は付け、画像メモリ3から読み出された画像デー
タをデータ線L2を介して返信する。
It accepts memory accesses from the image memory 3 (MPU, etc.) via an address line L1, and returns image data read from the image memory 3 via a data line L2.

11はセレクタで、制御部12から送出される切り換え
制御信号に基づいてアドレスレジスタ13またはアドレ
スレジスタ14の何れかを順次相互に選択しながら要求
されたリードアドレスを書き込む。アドレスレジスタ1
3またはアドレスレジスタ14にはセレクタ11により
順次最近の2回のリードアドレスが保持される。15は
検出手段として機能する差分検出器で、アドレスレジス
タ13またはアドレスレジスタ14に保持されるリード
アドレスが有効である場合に、各アドレスデータに基づ
いて新しい方のアドレスデータから古い方のアドレスデ
ータを差し引いて差分アドレスを検出し、その差分アド
レスを加算器17に出力する。16はセレクタで、制御
部12から゛送出される選択制御信号に基づいてアドレ
スレジスタ13またはアドレスレジスタ14の何れかの
うちから新しい方のリードアドレスを選択して、当該新
しいリードアドレスを順次加算器17に送出する。制御
部12は、セレクタ11.差分検出器15、セレクタ1
6を制御するためのもので、アドレスレジスタ13.1
4に格納されているアドレスデータの有効性と、どちら
に新しいアドレスデータが格納されているかを管理し、
その状態をセレクタ11.差分検出器15.セレクタ1
6に通知する。17は加算器で、差分検出器15より出
力されるアドレスの差分とセレクタ16より出力される
アドレスのデータの加算を行う。18はメモリアクセス
制御部で、加算器17の出力するデータが有効ならばそ
のデータをアドレスデータとして画像メモリ3へのデー
タの先読み処理を制御し、先読みされた画像データはデ
ータレジスタ21に格納される。
A selector 11 writes a requested read address while sequentially selecting either the address register 13 or the address register 14 based on a switching control signal sent from the control section 12. address register 1
3 or the address register 14 holds the two most recent read addresses in sequence by the selector 11. 15 is a difference detector which functions as a detection means, and when the read address held in the address register 13 or the address register 14 is valid, it detects the old address data from the new address data based on each address data. The difference address is detected by subtraction, and the difference address is output to the adder 17. 16 is a selector which selects the newer read address from either the address register 13 or the address register 14 based on the selection control signal sent from the control unit 12, and sequentially selects the new read address from the adder. Send on 17th. The control unit 12 has a selector 11 . Difference detector 15, selector 1
6, address register 13.1
4. Manage the validity of the address data stored in 4 and which address data is stored with new address data.
Select that state with selector 11. Difference detector 15. Selector 1
6 will be notified. 17 is an adder that adds the difference between the addresses output from the difference detector 15 and the address data output from the selector 16; Reference numeral 18 denotes a memory access control unit which, if the data output from the adder 17 is valid, controls the pre-reading process of the data to the image memory 3 using the data as address data, and the pre-read image data is stored in the data register 21. Ru.

19は比較器で、要求装置2が画像メモリ3にリード要
求を行った時のアドレスと加算器17より出力される画
像メモリ3への先読みを行った先読みアドレスを比較判
定し、その結果をメモリアクセス制御部18およびセレ
クタ20に通知する。メモリアクセス制御部18は先に
示した先読み制御の他に比較器19の通知して(る比較
判定の結果が現在、要求装置2が画像メモリ3に対して
行っているリード要求のアドレスとデータの先読みを行
ったアドレスが異なることを示すものである場合には、
画像メモリ3に対して要求装置2の要求するリード要求
のアドレスについて画像メモリ3にデータのリードも行
う。
19 is a comparator that compares and determines the address at which the requesting device 2 made a read request to the image memory 3 with the pre-read address outputted from the adder 17 and read ahead into the image memory 3, and sends the result to the memory. The access control unit 18 and selector 20 are notified. In addition to the above-mentioned prefetch control, the memory access control unit 18 notifies the comparator 19 that the result of the comparison judgment is the address and data of the read request currently being made by the requesting device 2 to the image memory 3. If the prefetched address is different,
Data is also read from the image memory 3 regarding the address of the read request requested by the requesting device 2 to the image memory 3.

この結果、画像メモリ3より出力されるデータは、セレ
クタ20に入力される。セレクタ20は比較器19の通
知してくる結果が、現在要求装置2が画像メモリ3に対
して行っているリード要求のアドレスとデータの先読み
を行ったアドレスとが等しいことを示すものであれば、
データレジスタ21に格納されている先読みしたデータ
を、さもなければメモリアクセス制御部18が画像メモ
リ3に対して行うデータのリード結果を要求装置2に返
すための切り換えを行う。L3はアドレス線で、画像メ
モリ3に対して行われるリード要求のアドレスを指示す
る。L4はデータ線で、リード要求に対して読み出され
たデータをデータレジスタ21またはセレクタ20に出
力する。
As a result, the data output from the image memory 3 is input to the selector 20. If the result notified by the comparator 19 indicates that the address of the read request currently made by the requesting device 2 to the image memory 3 is equal to the address at which the data was read ahead, the selector 20 selects ,
Switching is performed to return the pre-read data stored in the data register 21 to the requesting device 2, or the result of the data read performed by the memory access control unit 18 from the image memory 3. L3 is an address line that indicates the address of a read request made to the image memory 3. L4 is a data line that outputs data read in response to a read request to the data register 21 or selector 20.

このように構成されたメモリアクセス制御装置において
、アクセス要求手段となる要求装置2よリメモリ(この
実施例では画像メモリ3)に対するリードサイクルが開
始されると、検出手段(この実施例では差分検出器15
)が要求装置2から相前後して要求されるリードアドレ
スを順次監視してアドレス差分を検出する。この検出し
たアドレス差分から演算手段(この実施例では力す算器
17)がアドレス差分に基づいて次回のリードアドレス
を予測演算する。そして、保持手段(この実施例ではデ
ータセレクタ21)が演算されたアドレスに基づいてメ
モリから先読みされた先読みデータを保持し、要求装置
2から要求される画像メモリ3に対する次回のリードア
クセス時に、制御手段(この実施例ではメモリアクセス
制御部18、比較器19.セレクタ20等により構成)
が演算された次回のリードアドレスと要求装置2から要
求されるアドレスとを順次比較してデータレジスタ21
に保持された先読みデータのアクセス要求手段への転送
を制御し、要求装置2から要求されたデータとして先読
みデータを転送する。
In the memory access control device configured as described above, when a read cycle is started from the requesting device 2 serving as the access requesting device to the rememory (in this embodiment, the image memory 3), the detection device (in this embodiment, the difference detector 15
) sequentially monitors the read addresses requested one after another from the requesting device 2 and detects an address difference. Based on the detected address difference, a calculation means (in this embodiment, the calculator 17) predicts and calculates the next read address based on the address difference. Then, the holding means (data selector 21 in this embodiment) holds the pre-read data pre-read from the memory based on the calculated address, and controls the data at the time of the next read access to the image memory 3 requested by the requesting device 2. Means (in this embodiment, it is composed of a memory access control unit 18, a comparator 19, a selector 20, etc.)
The data register 21 sequentially compares the calculated next read address with the address requested by the requesting device 2.
It controls the transfer of the pre-read data held in the request device 2 to the access requesting means, and transfers the pre-read data as data requested by the requesting device 2.

次に、第2図、第3図を参照しながらこの発明に係るメ
モリアクセス制御装置におけるデータ処理動作について
説明する。
Next, data processing operations in the memory access control device according to the present invention will be explained with reference to FIGS. 2 and 3.

第2図は、第1図に示したメモリアクセスコントローラ
1と要求装置2とのデータ処理状態を説明する模式図で
あり、横軸は時間を示す。
FIG. 2 is a schematic diagram illustrating a data processing state between the memory access controller 1 and the requesting device 2 shown in FIG. 1, and the horizontal axis indicates time.

図において、TO,T2.T4はリードタイミングを示
し、この間に要求装置2が画像メモリ3に対してデータ
のリードを行っていることを示す。Tl、T3.T5は
先読み処理タイミングを示し、リードタイミングTo、
T2.T4とは競合しない空き時間を利用して、差分ア
ドレスに対応するデータがデータレジスタ21に格納さ
れる。
In the figure, TO, T2. T4 indicates a read timing, and indicates that the requesting device 2 is reading data from the image memory 3 during this time. Tl, T3. T5 indicates pre-read processing timing, read timing To,
T2. Data corresponding to the differential address is stored in the data register 21 using free time that does not conflict with T4.

なお、リードタイミングTo、T2.T4は要求装置2
の行うリード処理の最短の時間を示し、この発明に係る
先読み処理を実行しない場合には、リードタイミングT
o、T2.T’4において画像メモリ3のデータが有効
となるまでの時間を満たす時間が加算される。
Note that read timing To, T2. T4 is requesting device 2
Indicates the shortest time for read processing performed by
o, T2. At T'4, the time required to make the data in the image memory 3 valid is added.

第3図はこの発明に係るメモリアクセス処理手順の一例
を説明するフローチャートである。なお、(1)〜(7
)は各ステップを示す。
FIG. 3 is a flowchart illustrating an example of a memory access processing procedure according to the present invention. In addition, (1) to (7
) indicates each step.

先ず、要求装置2が画像メモリ3にデータのリード要求
を行ったかどうかを判断しく1)、リード要求が行われ
たら、アドレスレジスタ13.14に格納されているデ
ータの有効性(例えば現在までに要求装置2が画像メモ
リ3に対して一度もリード要求を行っていないか、また
は−度しかリード要求を行っていない状態であれば、ア
ドレスレジスタ13.14の開方もしくは一方に格納さ
れているデータは無効である)を詭べ、さらにアドレス
レジスタ13およびアドレスレジスタ14に格納されて
いるデータが有効であれば、比較器19の通知してくる
比較判定結果を調べ(2)、比較器19の通知して(る
比較判定結果が加算器17の出力によって示される画像
メモリ3に対するデータの先読みを行ったアドレスと現
在の要求装置2が画像メモリ3に対してリード要求を行
っているアドレスとが等しいことを示すものである場合
には、ステップ(3)に進み、さもなければステップ(
4)に進む。
First, it is determined whether the requesting device 2 has made a data read request to the image memory 3 (1). If a read request has been made, the validity of the data stored in the address registers 13 and 14 (for example, If the requesting device 2 has never made a read request to the image memory 3 or has made a read request only - times, the address register 13 is stored in one or both of the address registers 13 and 14. If the data stored in the address register 13 and the address register 14 are valid, the comparison judgment result notified by the comparator 19 is checked (2), and the comparator 19 The result of the comparison is indicated by the output of the adder 17, and the address at which the data was pre-fetched to the image memory 3 and the address at which the requesting device 2 is currently making a read request to the image memory 3. indicates equality, proceed to step (3), otherwise proceed to step (
Proceed to 4).

すなわち、アドレスレジスタ13.14の内容がともに
有効で、かつ画像メモリ3に対してデータの先読みを行
ったアドレスと現在の要求装置2が画像メモリ3に対し
てリード要求を行っているアドレスが等しいかどうかを
判断しく2)  YESならば要求装置2が現在画像メ
モリ3に対してリード要求の結果として、先読みされて
いるデータが正しいものとしてデータレジスタ21に格
納されているデータを要求装置2に返しく3)、ステッ
プ(5)以降に進み、Noならば先読みされているデー
タは無効として、メモリアクセス制御部18が現在の要
求装置2が画像メモリ3に対して行っているリード要求
を実行しく4)、その結果を要求装置2に返信する。
In other words, the contents of the address registers 13 and 14 are both valid, and the address at which the data was prefetched to the image memory 3 is equal to the address at which the requesting device 2 is currently issuing a read request to the image memory 3. 2) If YES, the requesting device 2 assumes that the pre-read data is correct as a result of the current read request to the image memory 3, and sends the data stored in the data register 21 to the requesting device 2. Return 3), proceed to step (5) and after, and if No, the pre-read data is invalidated and the memory access control unit 18 executes the read request that the requesting device 2 is currently making to the image memory 3. 4) and sends the result back to the requesting device 2.

次いで、要求装置2が画像メモリ3に対して要求したリ
ード要求のアドレスをアドレスレジスタ13またはアド
レスレジスタ14のどちらかに格納する(5)  なお
、格納するアドレスレジスタ13.14の選択は、制御
部12によって行われ、より古いアドレスデータを保持
しているレジスタに対して新しいアドレスが格納される
Next, the address of the read request requested by the requesting device 2 to the image memory 3 is stored in either the address register 13 or the address register 14 (5). Note that the selection of the address register 13 or 14 to be stored is determined by the control unit. 12, the new address is stored in the register holding the older address data.

次いで、アドレスレジスタ13.14に格納されている
データの有効性を判定しく6)  Noならばステップ
(1)に戻り、YES、すなわちともにデータが有効で
あれば、制御部12の通知してくる内容に従ってアドレ
スレジスタ13およびアドレスレジスタ14に格納され
ているデータに基づいてアドレス差分の検出を行い、そ
して、画像メモリ3に対して先読みを行うアドレスを生
成し、メモリアクセス制御部18によって先読みを行い
、その結果をデータレジスタ21に格納して(7)  
一連の処理が終了したらステップ(1)に戻る。
Next, determine the validity of the data stored in the address registers 13 and 14. 6) If no, return to step (1), and if YES, that is, both data are valid, the control unit 12 will notify you. According to the contents, an address difference is detected based on the data stored in the address register 13 and the address register 14, an address for pre-reading is generated for the image memory 3, and the pre-reading is performed by the memory access control unit 18. , store the result in the data register 21 (7)
When the series of processing is completed, return to step (1).

なお、上記実施例では2つのアドレスレジスタ13.1
4を有し、各アドレスレジスタ13゜14に最近2回の
画像メモリ3に対するリード要求のアドレスを保持する
ことで、差分の検出および先読みするアドレスの保持を
達成しているが、これに限定されるものではなく、他の
構成であっても良い。
In the above embodiment, two address registers 13.1
4, and by holding the addresses of the last two read requests to the image memory 3 in each address register 13 and 14, detection of the difference and holding the address to be read ahead is achieved, but the present invention is not limited to this. However, other configurations may be used.

また、上記実施例では画像メモリ3に対してリード要求
を行う要求装置2とメモリアクセスコントローラ1とが
独立する構成とする場合について説明したが、このよう
な構成に限定されるものではなく、例えば画像メモリ3
に対してリード要求を行う装置中に組み込まれる構成で
あっても差し支えない。
Further, in the above embodiment, a case has been described in which the requesting device 2 that makes a read request to the image memory 3 and the memory access controller 1 are configured independently, but the configuration is not limited to such a configuration, and for example, Image memory 3
The configuration may be incorporated into a device that makes a read request to a device.

[発明の効果〕 以上説明したように、この発明はアクセス要求手段から
相前後して要求されるリードアドレスを順次監視してア
ドレス差分を検出する検出手段と、この検出手段により
検出されたアドレス差分に基づいて次回のリードアドレ
スを予測演算する演算手段と、この演算手段により演算
されたアドレスに基づいてメモリから先読みされた先読
みデータを保持する保持手段と、アクセス要求手段から
要求されるメモリに対する次回のリードアクセス時に、
演算手段により演算されたリードアドレスとアクセス要
求手段から要求されるアドレスとを順次比較して、保持
手段に保持された先読みデータのアクセス要求手段への
転送を制御する制御手段とを設けたので、連続したアド
レスでなく一定の差分をもったアドレスの連続アクセス
が行われるようなメモリに対してリードサイクルを実行
する場合、アクセス要求手段に対して有効なデータを先
読みすることができる。従って、特定のデータ構造を有
するメモリ内データを高速に読出し処理できる等の効果
を奏する。
[Effects of the Invention] As explained above, the present invention includes a detecting means for detecting an address difference by sequentially monitoring read addresses requested one after another by an access requesting means, and an address difference detected by the detecting means. a calculation means for predicting and calculating the next read address based on the calculation means; a holding means for holding the preread data read ahead from the memory based on the address calculated by the calculation means; and a calculation means for predicting the next read address based on the address calculated by the calculation means; During read access,
Since the control means is provided to sequentially compare the read address calculated by the calculation means and the address requested by the access request means and control the transfer of the pre-read data held in the holding means to the access request means, When performing a read cycle on a memory in which consecutive accesses are made not to consecutive addresses but to addresses with a certain difference, data valid for the access requesting means can be read in advance. Therefore, it is possible to read and process data in memory having a specific data structure at high speed.

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

第1図はこの発明の一実施例を示すメモリアクセス制御
装置の構成を説明するブロック図、第2図は、第1図に
示したメモリアクセスコントローラと要求装置とのデー
タ処理状態を説明する模式図、第3図はこの発明に係る
メモリアクセス処理手順の一例を説明するフローチャー
ト、第4図は表示用の画像データの構造を説明する模式
図、第5図は、第4図に示した画像データに対す画像メ
モリのメモリマツプを示す模式図である。 図中、1はメモリアクセスコントローラ、2は要求装置
、3は画像メモリ、11,16.20はセレクタ、12
は制御部、13.14はアドレスレジスタ、15は差分
検出器、17は加算器、18はメモリアクセス制御部、
19は比較器、21はデータセレクタである。 第2図 を 第4図 朱 図 弔 図
FIG. 1 is a block diagram explaining the configuration of a memory access control device showing an embodiment of the present invention, and FIG. 2 is a schematic diagram explaining the data processing state between the memory access controller and the requesting device shown in FIG. 3 is a flowchart explaining an example of the memory access processing procedure according to the present invention, FIG. 4 is a schematic diagram explaining the structure of image data for display, and FIG. 5 is an image of the image shown in FIG. 4. FIG. 3 is a schematic diagram showing a memory map of an image memory for data. In the figure, 1 is a memory access controller, 2 is a requesting device, 3 is an image memory, 11, 16.20 is a selector, 12
is a control unit, 13.14 is an address register, 15 is a difference detector, 17 is an adder, 18 is a memory access control unit,
19 is a comparator, and 21 is a data selector. Figure 2 and Figure 4

Claims (1)

【特許請求の範囲】[Claims]  メモリに対してデータのリード要求を行うアクセス要
求手段と、このアクセス要求手段からのリードアドレス
に基づいて前記メモリから読み出されたデータを前記ア
クセス要求手段に転送するアクセス制御手段とを備えた
メモリアクセス制御装置において、前記アクセス要求手
段から相前後して要求されるリードアドレスを順次監視
してアドレス差分を検出する検出手段と、この検出手段
により検出されたアドレス差分に基づいて次回のリード
アドレスを予測演算する演算手段と、この演算手段によ
り演算されたアドレスに基づいて前記メモリから先読み
された先読みデータを保持する保持手段と、前記アクセ
ス要求手段から要求される前記メモリに対する次回のリ
ードアクセス時に、前記演算手段により演算されたリー
ドアドレスと前記アクセス要求手段から要求されるアド
レスとを順次比較して、前記保持手段に保持された先読
みデータの前記アクセス要求手段への転送を制御する制
御手段とを具備したことを特徴とするメモリアクセス制
御装置。
A memory comprising: access requesting means for requesting the memory to read data; and access control means for transferring data read from the memory to the access requesting means based on a read address from the access requesting means. The access control device includes a detection means for sequentially monitoring read addresses requested one after another by the access request means and detecting an address difference, and a detection means for detecting an address difference detected by the detection means, and a detection means for determining the next read address based on the address difference detected by the detection means. a calculation means for performing a predictive calculation; a holding means for holding pre-read data pre-read from the memory based on the address calculated by the calculation means; and upon the next read access to the memory requested by the access request means; control means for sequentially comparing the read address calculated by the calculation means and the address requested by the access request means to control the transfer of the pre-read data held in the holding means to the access request means; A memory access control device comprising:
JP20255190A 1990-08-01 1990-08-01 Memory access controller Pending JPH0488534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20255190A JPH0488534A (en) 1990-08-01 1990-08-01 Memory access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20255190A JPH0488534A (en) 1990-08-01 1990-08-01 Memory access controller

Publications (1)

Publication Number Publication Date
JPH0488534A true JPH0488534A (en) 1992-03-23

Family

ID=16459378

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20255190A Pending JPH0488534A (en) 1990-08-01 1990-08-01 Memory access controller

Country Status (1)

Country Link
JP (1) JPH0488534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9864993B2 (en) 2000-04-24 2018-01-09 Visa International Service Association Account authentication service with chip card

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6235949A (en) * 1985-08-10 1987-02-16 Ricoh Co Ltd Memory device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6235949A (en) * 1985-08-10 1987-02-16 Ricoh Co Ltd Memory device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9864993B2 (en) 2000-04-24 2018-01-09 Visa International Service Association Account authentication service with chip card
US10572875B2 (en) 2000-04-24 2020-02-25 Visa International Service Association Online account authentication service

Similar Documents

Publication Publication Date Title
JPH03127147A (en) Information processing system
JPH06222992A (en) Cache system and method for control of cache controller
JPH08235060A (en) Method and system for management of cache memory using plurality of hash functions
US5659760A (en) Microprocessor having interrupt vector generation unit and vector fetching command unit to initiate interrupt processing prior to returning interrupt acknowledge information
US7058767B2 (en) Adaptive memory access speculation
TW200410133A (en) A method to reduce memory latencies by performing two levels of speculation
JPS62120574A (en) Vector processor
JPH0488534A (en) Memory access controller
KR960007833B1 (en) Method and apparatus for fast page mode selection
JPH03116345A (en) Data processor
JPH06161868A (en) Memory controller
JPH05250258A (en) Cache control system
JP3034013B2 (en) Display memory processing device
JPH06274415A (en) Shared memory system
JPH0520188A (en) Cache controller
JPH02259945A (en) Storing processing system
JPH02259946A (en) Separation control system for cache memory
JPH011044A (en) memory access control device
JPH06124235A (en) Cache control system
JPH086853A (en) Storage control method
JPH01319825A (en) Cache memory control system
JPS61128371A (en) Vector processor
JP2000194595A (en) Microprocessor
JPH04312155A (en) Bus adaptor
JPH09198300A (en) Method for controlling memory access