JPH0553909A - Cache memory control system for image data processing - Google Patents

Cache memory control system for image data processing

Info

Publication number
JPH0553909A
JPH0553909A JP3211228A JP21122891A JPH0553909A JP H0553909 A JPH0553909 A JP H0553909A JP 3211228 A JP3211228 A JP 3211228A JP 21122891 A JP21122891 A JP 21122891A JP H0553909 A JPH0553909 A JP H0553909A
Authority
JP
Japan
Prior art keywords
address
cache memory
block
data
image
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
JP3211228A
Other languages
Japanese (ja)
Inventor
Aritoshi Shirae
有利 白江
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP3211228A priority Critical patent/JPH0553909A/en
Publication of JPH0553909A publication Critical patent/JPH0553909A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To constitute one block of a cache memory while containing the longitudinal picture elements of an image memory. CONSTITUTION:This system is equipped with a cache memory 10 to copy one part of the picture elements in an image memory 1 with the plural picture elements longitudinally and laterally continued in the image memory 1 as the data of one block and a tag table 9 to store data as the index of a block 2 stored in the cache memory 10 while using the address of the image memory 1. The cache memory 10 is composed of data blocks corresponding to the respective tags of the tag table 9 and defines a byte select address in the block of the cache memory 10 by combining the value of one digit or plural digits containing the least significant digits of digits 7 and 8 expressing the horizontal address of the image memory 1 outputted from a processor with the value of one or plural digits containing the least significant digits of digits 4, 5 and 6 expressing the longitudinal position of the image memory 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,キャッシュメモリを備
えた画像データ処理におけるキャッシュメモリ制御方式
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache memory control system in image data processing provided with a cache memory.

【0002】画像データ処理システムにおいては,高速
のキャッシュメモリに画像メモリのデータの一部を複写
し,複写されたデータについてはキャッシュメモリにア
クセスすることにより画像生成,変更等を行なうように
し,画像処理の高速化を図っている。
In an image data processing system, a part of the image data in the image memory is copied to a high speed cache memory, and the copied data is accessed in the cache memory so that an image is created or changed. We are trying to speed up the process.

【0003】[0003]

【従来の技術】図4は従来のキャッシュメモリを備えた
画像データ処理システムを示す。図において,100は
プロセッサ,101は画像メモリ,102は画像データ
の一部,103は画像データの一部102を複写するキ
ャッシュメモリである。104は画像メモリにおいて,
キャッシュメモリ103にデータを複写する単位のブロ
ックであって,複数の連続画素よりなるものである。1
04’はブロック104の複写を表す。
2. Description of the Related Art FIG. 4 shows an image data processing system having a conventional cache memory. In the figure, 100 is a processor, 101 is an image memory, 102 is a part of image data, and 103 is a cache memory for copying a part 102 of the image data. 104 is an image memory,
The block is a unit of copying data to the cache memory 103, and is composed of a plurality of continuous pixels. 1
04 'represents a copy of block 104.

【0004】図の構成の動作は次の通りである。画像プ
ロセッサ100は,直線,円等の画像生成のための演算
をし,演算結果を画像メモリ101に書き込む。また,
画像メモリ101に描画されている画像を変更する場合
は,プロセッサ100は画像メモリ101から画像デー
タを読み出して演算し,演算結果を画像メモリ101に
書き込む。
The operation of the configuration shown in the figure is as follows. The image processor 100 performs a calculation for generating an image such as a straight line and a circle, and writes the calculation result in the image memory 101. Also,
When changing the image drawn in the image memory 101, the processor 100 reads the image data from the image memory 101, performs an operation, and writes the operation result in the image memory 101.

【0005】以上の処理において,プロセッサ100が
画像データを読み出す時,プロセッサ100はキャッシ
ュメモリ103にアクセスし,読み出すアドレスの画像
データがあれば,そのデータを読み出して演算し,キャ
ッシュメモリに書き戻し,同時に同じ画像メモリ上のデ
ータも書き直す。キャッシュメモリ103に読み出すア
ドレスのデータがなければ,画像メモリ101からデー
タを読み出し,演算結果を画像メモリの同じアドレスに
書き戻す。そして,演算結果のアドレスの画素を含む連
続した複数画素を1ブロックとしてキャッシュメモリ1
03の1ブロックのデータとリプレイスする。
In the above processing, when the processor 100 reads the image data, the processor 100 accesses the cache memory 103, and if there is image data at the read address, the data is read, the operation is performed, and the data is written back to the cache memory. At the same time, the data on the same image memory is rewritten. If there is no data at the address to be read in the cache memory 103, the data is read from the image memory 101 and the calculation result is written back to the same address in the image memory. Then, a plurality of consecutive pixels including the pixel of the address of the calculation result are regarded as one block and the cache memory 1
Replace with the data of 1 block of 03.

【0006】上記のような構成によれば,キャッシュメ
モリ103のアクセス時間は画像メモリ101のアクセ
ス時間と比較して短いので,キャッシュメモリ103の
アクセスで処理できる割合(ヒット率)が高ければ処理
が高速化される。
According to the above configuration, since the access time of the cache memory 103 is shorter than the access time of the image memory 101, if the ratio (hit rate) that can be processed by the access of the cache memory 103 is high, the processing will be executed. It will be faster.

【0007】図5は従来の画像メモリのアドレス配列と
キャッシュメモリのブロックの関係を表す。図におい
て,105は画像メモリであって,横2048ビット
(256バイト),縦1024ビットの画像イメージに
対応させた配列を表す。105’は一水平ラインであっ
て,画像メモリを縦と横の配列で表した場合の横方向を
表す。そして,画像メモリの横8ドット×縦1ビットを
1バイトとし,画像メモリの配列の左上から順次水平方
向(図の第1水平ライン,第2水平ラインの矢印の方
向)連続番号でアドレスを設定し,右端に達すると一行
下の左端に続き再び右方向に進む。106はm番地の画
素を表す。107はm番地の画素106の縦方向の1つ
上の画素である(m−256番地),108はm番地の
画素106の縦方向の1つ下の画素である(m+256
番地)。109はキャッシュメモリに格納する1ブロッ
クの画素を表す。
FIG. 5 shows the relationship between the address array of the conventional image memory and the block of the cache memory. In the figure, 105 is an image memory, which represents an array corresponding to an image image of 2048 bits (256 bytes) in the horizontal direction and 1024 bits in the vertical direction. Reference numeral 105 'denotes one horizontal line, which represents the horizontal direction when the image memory is represented by a vertical and horizontal array. Then, the horizontal 8 dots x vertical 1 bit of the image memory is set as 1 byte, and the addresses are sequentially set in the horizontal direction (the arrow directions of the first horizontal line and the second horizontal line in the figure) from the upper left of the image memory array. Then, when it reaches the right end, it continues to the right end following the left end one line down. 106 represents the pixel at address m. 107 is a pixel vertically above the pixel 106 at the address m (m-256), and 108 is a pixel vertically below the pixel 106 at the address m (m + 256).
address). Reference numeral 109 represents one block of pixels stored in the cache memory.

【0008】従来は,キャッシュメモリに複写する場
合,画像メモリ上で横方向に連続する画素を1ブロック
として複写していた。例えば,図示のように,m番地か
ら横方向に連続する16×8画素(16バイト)のデー
タが1ブロックのデータとして複写されていた。
Conventionally, when copying to the cache memory, pixels that are continuous in the horizontal direction on the image memory are copied as one block. For example, as shown in the drawing, data of 16 × 8 pixels (16 bytes) continuous from the address m in the horizontal direction is copied as one block of data.

【0009】図6は従来のキャッシュ制御方式を示す。
図において,110はCPUアドレス(32ビット)で
あって,プロセッサから出力される画像メモリのアドレ
スである。そして,キャッシメモリ112にアクセスす
る場合には図示のようにアドレス構成されるものであ
る。111はタグテーブルであって,キャッシュメモリ
に格納されるデータの索引テーブルとなるものである。
112はキャッシュメモリ,113はキャッシュメモリ
に格納された1ブロック(16バイト)のデータを表
す。114はCPUアドレスにおけるタグ部(上位20
ビット)であって,キャッシュメモリに書き込まれた
時,検索索引となる部分であり,タグテーブルに書き込
まれるデータとなる部分である。115はインデックス
部(8ビット)であって,タグテーブル111にタグ部
を書き込む位置のインデックス(アドレス)を与えるも
のである。116はブロック内のバイト選択アドレス部
(4ビット)であって,ブロックにおけるバイト選択ア
ドレスを与えるものである。117は比較器であって,
CPUアドレス110のインデックス部115でタグテ
ーブル111を参照し,タグ部114が一致するか否か
を判定するものである。
FIG. 6 shows a conventional cache control method.
In the figure, 110 is a CPU address (32 bits), which is the address of the image memory output from the processor. When accessing the cache memory 112, the addresses are configured as shown in the figure. A tag table 111 serves as an index table for data stored in the cache memory.
Reference numeral 112 represents a cache memory, and 113 represents one block (16 bytes) of data stored in the cache memory. Reference numeral 114 is a tag portion (upper 20
(Bit), which is a search index when written in the cache memory and is data that is written in the tag table. An index portion (8 bits) 115 gives an index (address) of the position where the tag portion is written to the tag table 111. Reference numeral 116 denotes a byte selection address portion (4 bits) in the block, which gives a byte selection address in the block. 117 is a comparator,
The index table 115 of the CPU address 110 refers to the tag table 111 to determine whether the tag parts 114 match.

【0010】図の構成の動作を説明する。データを読み
出す場合は,CPUアドレス110のインデックス部1
15でタグテーブル111を参照し,タグ部114と一
致した場合には,CPUアドレス110のバイト選択ア
ドレス部116により,一致したブロックのデータを読
み出す。
The operation of the configuration shown in the figure will be described. When reading data, the index part 1 of the CPU address 110
If the tag table 114 is referred to in step 15 and the tag table 114 is matched, the byte selection address part 116 of the CPU address 110 reads the data of the matched block.

【0011】また,キャッシュメモリ112に書き込む
場合には,CPUアドレス110のインデックス部11
5でタグテーブル111を参照し,(例えば,8ビット
のインデックス部が10進数の4を表していれば,タグ
テーブルの4番目を参照し)タグ部114と一致した場
合には,ブロック内のバイト選択アドレス116によ
り,求めたアドレスにデータを格納する。
When writing to the cache memory 112, the index section 11 of the CPU address 110 is used.
5 to refer to the tag table 111 (for example, if the 8-bit index part represents a decimal number 4 and then refer to the fourth part of the tag table), if the tag part 114 matches, Data is stored at the obtained address by the byte selection address 116.

【0012】[0012]

【発明が解決しようとする課題】従来のキャッシュ制御
方式では,1ブロックのデータは画像イメージ上では横
方向に連続していたので,縦方向に描画する場合,ヒッ
トする確率は低かった。例えば,図5において,m番地
のデータを処理した後,m番地から横方向に連続する画
素をキャッシュメモリに格納したとき,次に,m+25
6番地のデータを処理する場合,そのデータは直前にキ
ャッシュメモリ上に複写したブロックには存在しない。
そのため,別のブロックにキャッシュヒットしない限り
はプロセッサは画像メモリにアクセスしてm+256番
地のデータを読み出さなければならなかった。
In the conventional cache control method, since one block of data is continuous in the horizontal direction on the image, the probability of hitting is low when drawing in the vertical direction. For example, in FIG. 5, when the data at the address m is processed and the pixels consecutive from the address m in the horizontal direction are stored in the cache memory, next, m + 25
When processing the data at address 6, the data does not exist in the block copied to the cache memory immediately before.
Therefore, the processor had to access the image memory and read the data at the address m + 256 unless a cache hit was made to another block.

【0013】また,画像メモリ上の縦方向の画素を含ん
で1ブロックとする場合には,画像メモリにおけるアド
レス配列を変更しなければならなかった。図7により発
明が解決しようとする課題におけるこの点を説明する。
Further, in the case of including one pixel in the vertical direction on the image memory into one block, the address array in the image memory has to be changed. This point in the problem to be solved by the invention will be described with reference to FIG.

【0014】(a)は従来のブロックの構成を示す。図に
おいて,120はCPUアドレス(CPUから出力され
る画像メモリのアドレスを表す。以下同じ)であって,
図はm番地のブロック内のバイト選択アドレス(下位4
ビット)121が「0000」の場合を示す。
(A) shows the structure of a conventional block. In the figure, 120 is a CPU address (representing the address of the image memory output from the CPU. The same applies hereinafter),
The figure shows the byte selection address in the block at address m (lower 4
It shows the case where the bit) 121 is “0000”.

【0015】122はm番地から連続する16×8画素
(16バイト)のデータを表す。図示のように,CPU
アドレスのブロック内の選択アドレス(下位4ビット)
を使ってキャッシュメモリの1ブロック内のアクセスを
行なっていた。
Reference numeral 122 represents data of 16 × 8 pixels (16 bytes) continuous from the address m. CPU as shown
Selected address in address block (lower 4 bits)
Was used to access one block of the cache memory.

【0016】図 (b)は,従来の画像メモリの配列で,縦
方向のデータを含めてブロックとする場合を説明する。
図において130は横8×8画素,縦2画素を1ブロッ
クとする場合を示す。m番地のCPUアドレスの下位4
ビットをブロック内のバイト選択アドレスとすると,m
番地とm+256番地で下位3ビットが同じアドレスに
なる。同様に,m+1番地とm+257番地等も下位3
ビットが同じアドレスになり,下位4ビットのCPUア
ドレスはキャッシュメモリのブロック内のバイト選択ア
ドレスとしては使用できない。
FIG. 1B illustrates an arrangement of a conventional image memory, which is a block including vertical data.
In the figure, reference numeral 130 indicates a case where horizontal 8 × 8 pixels and vertical 2 pixels form one block. Lower 4 of CPU address at address m
If the bit is the byte selection address in the block, m
The lower 3 bits of the address and the address m + 256 have the same address. Similarly, the m + 1 address and the m + 257 address are the lower 3
The bits have the same address, and the lower 4 bits of the CPU address cannot be used as a byte selection address in the block of the cache memory.

【0017】本発明は,CPUアドレスを用いて,画像
メモリ上の縦方向の画素を含むようにキャッシュメモリ
の1ブロックを構成することを可能としたキャッシュ制
御方式を提供することを目的とする。
It is an object of the present invention to provide a cache control system which makes it possible to configure one block of a cache memory so as to include a vertical pixel on an image memory by using a CPU address.

【0018】[0018]

【課題を解決するための手段】本発明は,CPUアドレ
スとキャッシュメモリのアドレスの対応を変えること
で,標準的な画像メモリのアドレス配列を変更すること
なく,画像メモリ上の縦方向の画素を含むキャッシュメ
モリを1ブロックデータとすることを可能にした。
According to the present invention, by changing the correspondence between the CPU address and the address of the cache memory, the vertical pixel on the image memory can be displayed without changing the address array of the standard image memory. It became possible to make the included cache memory one block of data.

【0019】図1は本発明の基本構成を示す。図におい
て,1は画像メモリであって,例として横8バイト×縦
4ビットの場合を示す。また,キャッシュメモリに書き
込む1ブロックは図示のように横2×8画素×縦2画素
からなる場合を例として示す。2はキャッシュメモリに
書き込む1ブロックを表す。画像メモリの左上の画素の
アドレスを「・・・00000」とし,それぞれの画素
アドレスの下位5桁を図示する。例えば,画像単位A
(1バイト画素)は「・・・00010」等である。
3,3’はCPUアドレスであって,最下位桁と水平
方向アドレスを表す桁の数値の組でキャッシュメモリ
のブロック内のバイト選択アドレスを表す。CPUアド
レス3’の下位の側の複数桁の内からブロック内のバイ
ト選択アドレス8,6を除いた部分5,7をインデック
ス部として,タグテーブル9のインデックスとする。C
PUアドレス3’の上位複数桁はタグ部4とする。9は
タグテーブル,10はキャッシュメモリ,11はタグテ
ーブルに書き込まれたタグ部4のデータであって,イン
デックス部5,7の値により書き込み位置を指定された
ものである。12はキャッシュメモリに書き込まれたブ
ロックであって,画像メモリ1のブロック2を複写した
ものである。14はタグ部4とタグテーブル9のデータ
11とを比較する比較器,15はキャッシュメモリ10
のデータを出力するデータ出力制御部である。
FIG. 1 shows the basic configuration of the present invention. In the figure, reference numeral 1 is an image memory, and as an example, a case of horizontal 8 bytes x vertical 4 bits is shown. Also, as an example, one block written in the cache memory is composed of horizontal 2 × 8 pixels × vertical 2 pixels. Reference numeral 2 represents one block written in the cache memory. The address of the upper left pixel of the image memory is "... 00000", and the lower 5 digits of each pixel address are shown. For example, image unit A
(1 byte pixel) is "... 00010" or the like.
Reference numerals 3 and 3'represent CPU addresses, which represent a byte selection address in a block of the cache memory by a set of a numerical value of a least significant digit and a digit representing a horizontal address. The portions 5 and 7 of the lower digits of the CPU address 3'excluding the byte selection addresses 8 and 6 in the block from the lower digits are used as the index portion and used as the index of the tag table 9. C
The high-order plural digits of the PU address 3'are the tag section 4. Reference numeral 9 is a tag table, 10 is a cache memory, and 11 is data of the tag unit 4 written in the tag table, and the writing position is specified by the values of the index units 5 and 7. Reference numeral 12 is a block written in the cache memory, which is a copy of the block 2 of the image memory 1. Reference numeral 14 is a comparator for comparing the tag unit 4 with the data 11 in the tag table 9, and 15 is a cache memory 10.
Is a data output control unit that outputs the data.

【0020】[0020]

【作用】図示のブロック2のデータをキャッシュメモリ
10に複写する場合を例として説明する。
The operation of copying the data of the illustrated block 2 to the cache memory 10 will be described as an example.

【0021】ブロック2の画像単位Aのアドレスの下位
5桁は「00010」であるから,ブロック内のバイト
選択アドレス(,)は,(0,0)である。従って
Aのブロック内のバイト選択アドレスは(0,0)であ
る。画像単位B,C,Dも同様にブロック内の選択アド
レス(,)の組で表すと,それぞれ(0,1),
(1,0),(1,1)となる。インデックス部5,7
は3桁とすると「001」である。従って,タグテーブ
ルのインデックス「001」の位置にタグ部の値を書き
込み,それに対応するキャッシュメモリのブロックに画
像単位A,B,C,Dのデータをそれぞれ書き込む。
Since the lower 5 digits of the address of the image unit A of the block 2 is "00010", the byte selection address (,) in the block is (0,0). Therefore, the byte selection address in the block of A is (0,0). Similarly, the image units B, C, and D are represented by a set of selected addresses (,) in the block, respectively (0, 1),
It becomes (1,0) and (1,1). Index part 5, 7
Is "001" when it has three digits. Therefore, the value of the tag portion is written in the position of the index "001" of the tag table, and the data of the image units A, B, C, D are written in the corresponding blocks of the cache memory.

【0022】キャッシュメモリ10のデータを読み出す
時は,まずCPUアドレス3のタグ部のデータにタグテ
ーブル9の中のタグデータ11と,比較器14で比較す
る。その結果一致すれば,CPUアドレスのデータはキ
ャッシュメモリ10に存在するので,次に,タグテーブ
ル9に対応するキャッシュメモリ10のブロックを選択
し,CPUアドレスのブロック内のバイト選択アドレス
により必要とするデータをデータ出力制御部15より出
力する。
When reading the data of the cache memory 10, first, the comparator 14 compares the tag data of the CPU address 3 with the tag data 11 in the tag table 9. If there is a match, the CPU address data exists in the cache memory 10. Therefore, the block of the cache memory 10 corresponding to the tag table 9 is selected, and it is needed by the byte selection address in the CPU address block. The data is output from the data output control unit 15.

【0023】[0023]

【実施例】図2は本発明を適用する画像メモリの実施例
を示す。図において,20は画像メモリであって,横2
048ビット(256バイト)縦1024ビットの画像
イメージに対応させた配列を表す。20’は1水平ライ
ンであって,画像メモリの横方向を表す。そして,画像
メモリの配列の左上から順次水平方向に連続番号でアド
レス指定をする。21は1ブロックを表し,横32×縦
4画素の128画素(16バイト)で構成される。Aは
m番地の画素を表す。D,E,I,M,Pはそれぞれm
+3番地,m+256番地,m+512番地,m+76
8番地,m+771番地の画素を表す。
FIG. 2 shows an embodiment of an image memory to which the present invention is applied. In the figure, reference numeral 20 denotes an image memory, which has a width of 2
This represents an array corresponding to a 048-bit (256-byte) vertical 1024-bit image. 20 'is one horizontal line and represents the horizontal direction of the image memory. Then, the addresses are sequentially specified in the horizontal direction from the upper left of the array of the image memory in the horizontal direction. Reference numeral 21 represents one block, which is composed of 128 pixels (16 bytes) of 32 pixels horizontally by 4 pixels vertically. A represents the pixel at the address m. D, E, I, M, P are each m
+3, m + 256, m + 512, m + 76
It represents the pixel at address 8 and m + 771.

【0024】本発明では,1ブロックを,例えば縦方向
に連続する画素E,I,M等を含めた画素により構成す
る。図3は本発明の実施例構成を示す。
In the present invention, one block is composed of pixels including, for example, pixels E, I, M which are continuous in the vertical direction. FIG. 3 shows the configuration of an embodiment of the present invention.

【0025】図において,30はCPUアドレスであっ
て,32ビット(桁)で構成され,下位8ビット(00
桁〜07桁)は水平方向におけるアドレスを指定するも
のである。31はタグテーブルであって,256エント
リ(256アドレス)であり,20ビット(桁)のタグ
部35のデータを書き込むものである。32はキャッシ
ュメモリであって,タグテーブルのインデックスに対応
した縦256アドレスを持ち,16アドレスで1ブロッ
クの画素を格納するものである。33は比較器であっ
て,CPUアドレス30のタグ部35とタグテーブルの
データを比較するものである。34はキャッシュメモリ
32の1ブロックのデータを表す(図におけるA,D,
E,I,M,Pは図2のそれぞれに対応する)。
In the figure, 30 is a CPU address, which is composed of 32 bits (digits), and the lower 8 bits (00
Digits to 07 digits) specify an address in the horizontal direction. Reference numeral 31 is a tag table, which has 256 entries (256 addresses) and is used to write 20-bit (digit) data in the tag section 35. Reference numeral 32 denotes a cache memory which has vertical 256 addresses corresponding to the index of the tag table and stores pixels of one block at 16 addresses. Reference numeral 33 is a comparator for comparing the tag section 35 of the CPU address 30 with the data of the tag table. Reference numeral 34 represents one block of data in the cache memory 32 (A, D,
E, I, M and P correspond to each of FIG. 2).

【0026】35はCPUアドレス30におけるタグ部
であって,CPUアドレスの上位20ビット(12桁〜
31桁)の部分である。36,37はインデックス部で
あって,8ビット(02桁〜07桁と08桁〜09桁)
で構成されるものである。38,39はキャッシュメモ
リ32のブロック内の選択アドレスであって,CPUア
ドレスの08桁〜09桁()と00桁〜01桁()
のデータの組によりブロック内のアドレスを指定するも
のである。ブロック内の選択アドレスは図2のブロッ
ク内の垂直方向での位置を与えるアドレスである。
Reference numeral 35 denotes a tag portion in the CPU address 30, which is the upper 20 bits (12 digits to 12 digits) of the CPU address.
(31 digits). 36 and 37 are index parts, which are 8 bits (02 digits to 07 digits and 08 digits to 09 digits)
It is composed of. 38 and 39 are selected addresses in the block of the cache memory 32, and are 08 digits to 09 digits () and 00 digits to 01 digits () of the CPU address.
The address in the block is specified by the data set of. The selected address within the block is an address that gives the position in the vertical direction within the block of FIG.

【0027】図の構成の動作を説明する。必要に応じて
図2を参照する。図2のブロック21を複写する場合に
ついて説明する。書き込む場合は,まず,インデックス
部36,37の8ビットのデータから,タグテーブル3
1のアドレスを指定し,タグ部35のデータをタグテー
ブル31に書き込む。さらに,それに対応するキャッシ
ュメモリ32に,ブロック内の選択アドレスが00
()00()のデータAを先頭にして,各データB
〜Pを書き込む。このとき,各データは4バイト毎に番
地が飛んでいるが,キャッシュメモリのブロック内の選
択アドレスがCPUアドレス30の(,)の桁で指
定されるので,A,B,C,D,E〜Pの順に,ブロッ
ク内の選択アドレスが(0000)〜(1111)まで
連続アドレスとなる。
The operation of the configuration shown in the figure will be described. Refer to FIG. 2 as needed. A case where the block 21 in FIG. 2 is copied will be described. When writing, first, from the 8-bit data of the index parts 36 and 37, the tag table 3
The address of 1 is designated and the data of the tag section 35 is written in the tag table 31. Furthermore, the selected address in the block is set to 00 in the corresponding cache memory 32.
Data A of () 00 () is set to the head, and each data B
Write ~ P. At this time, the address of each data is skipped every 4 bytes, but since the selected address in the block of the cache memory is specified by the digit of (,) of the CPU address 30, A, B, C, D, E In the order of to P, the selected addresses in the block are continuous addresses from (0000) to (1111).

【0028】読み出す場合には,CPUアドレス30の
タグ部35(12桁〜31桁)の20ビットをタグテー
ブル31に書き込まれているデータと比較器33で比較
する。そして,一致すれは,CPUアドレスのとに
より,キャッシュメモリ32のブロック内の選択アドレ
スとして対応するデータを出力する。
When reading, 20 bits of the tag portion 35 (12 digits to 31 digits) of the CPU address 30 are compared with the data written in the tag table 31 by the comparator 33. Then, if there is a match, the corresponding data is output as the selected address in the block of the cache memory 32 according to the CPU address.

【0029】本発明によれば,キャッシュメモリの1ブ
ロックに,画像メモリにおける縦方向の画素を含んでい
るので,縦方向の描画においてのヒット率が高くなる。
例えば,m番地でヒットしなかったとき,m番地を先頭
とするブロック21の画素データがキャッシュメモリに
書き込まれる(画像メモリからキャッシュメモリにコピ
ーされる)。次にm+256番地のデータを書き直す場
合,キャッシュメモリにはm+256番地の画素Eが書
き込まれているので,プロセッサはキャッシュメモリに
リードアクセスして,取り出し,演算処理した後に,再
度キャッシュメモリおよび画像メモリに書き戻せば良
い。
According to the present invention, since one block of the cache memory includes pixels in the vertical direction in the image memory, the hit rate in drawing in the vertical direction is high.
For example, when there is no hit at the address m, the pixel data of the block 21 starting from the address m is written in the cache memory (copied from the image memory to the cache memory). When rewriting the data at the address m + 256, since the pixel E at the address m + 256 is written in the cache memory, the processor performs read access to the cache memory, retrieves the data, performs arithmetic processing, and then again in the cache memory and the image memory. Just write it back.

【0030】[0030]

【発明の効果】本発明によれば,画像メモリの標準的な
アドレス配列で,キャッシュメモリに複写するブロック
に連続する縦方向の画素を含ませることができる。その
ため,縦方向の画像処理におけるヒット率が向上し,画
像処理を高速化することができる。
According to the present invention, with the standard address arrangement of the image memory, it is possible to include consecutive pixels in the vertical direction in the block to be copied in the cache memory. Therefore, the hit rate in the image processing in the vertical direction is improved, and the image processing can be speeded up.

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

【図1】本発明の基本構成を示す図である。FIG. 1 is a diagram showing a basic configuration of the present invention.

【図2】本発明の画像メモリのアドレス配列とキャッシ
ュメモリのブロックの関係を示す図である。
FIG. 2 is a diagram showing a relationship between an address array of an image memory and blocks of a cache memory according to the present invention.

【図3】本発明の実施例構成を示す図である。FIG. 3 is a diagram showing a configuration of an embodiment of the present invention.

【図4】従来のキャッシュメモリを備えた画像データ処
理システムを示す図である。
FIG. 4 is a diagram showing an image data processing system including a conventional cache memory.

【図5】従来の画像メモリのアドレス配列とキャッシュ
メモリのブロックの関係を示す図である。
FIG. 5 is a diagram showing a relationship between an address array of a conventional image memory and a block of a cache memory.

【図6】従来のキャッシュ制御方式を示す図である。FIG. 6 is a diagram showing a conventional cache control method.

【図7】発明が解決しようとする課題の説明図である。FIG. 7 is an explanatory diagram of a problem to be solved by the invention.

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

1 :画像メモリ 2 :ブロック 3,3’:CPUアドレス 4 :タグ部 5 :インデックス部 6 :ブロック内のバイト選択アドレス 7 :インデックス部 8 :ブロック内のバイト選択アドレス 9 :タグテーブル 10:キャッシュメモリ 11:タグ部のデータ 12:複写データ 14:比較器 15:データ出力制御部 1: Image memory 2: Block 3, 3 ': CPU address 4: Tag part 5: Index part 6: Byte selection address in block 7: Index part 8: Byte selection address in block 9: Tag table 10: Cache memory 11: Data of tag part 12: Copy data 14: Comparator 15: Data output control part

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 画像データ処理におけるキャッシュメモ
リ制御方式において,画像メモリ(1) の縦方向および横
方向に連続する複数画素を1ブロックのデータとして画
像メモリ(1) の画素の一部を複写するキャッシュメモリ
(10)と,画像メモリ(1) のアドレスを用いてキャッシュ
メモリに格納したブロックの索引としてデータを格納す
るタグテーブル(9) とを備え,キャッシュメモリ(10)
は,マトリックスの縦方向にブロックを配列し,マトリ
ックスの横方向にブロック(2)の各画素を配列し,プロ
セッサから出力される画像メモリ(1) のアドレスの水平
方向を表す桁の最下位桁を含む1桁もしくは複数桁と,
画像メモリ(1) の縦方向の位置を表す桁の最下位桁を含
む1桁もしくは複数桁との値の組でキャッシュメモリの
ブロック内のバイト選択アドレスとし,プロセッサから
出力される画像メモリ(1) アドレスのタグ部とタグテー
ブル(9) の索引を比較し,一致した場合には,上記バイ
ト選択アドレス(6,8) で索引に対応するブロックのデー
タの読み出しもしくは書き込みを行うことを特徴とする
画像データ処理におけるキャッシュメモリ制御方式。
1. A cache memory control method for image data processing, wherein a part of the pixels of the image memory (1) is copied with a plurality of pixels continuous in the vertical and horizontal directions of the image memory (1) as one block of data. Cache memory
(10) and a tag table (9) that stores data as an index of the block stored in the cache memory using the address of the image memory (1), and the cache memory (10)
Is the lowest digit of the digit representing the horizontal direction of the address of the image memory (1) output from the processor, in which the blocks are arranged in the vertical direction of the matrix and the pixels of block (2) are arranged in the horizontal direction of the matrix. One or more digits including
The image memory (1) output from the processor is used as the byte selection address in the block of the cache memory with a set of one digit or multiple digits including the least significant digit of the vertical position of the image memory (1). ) The tag part of the address is compared with the index of the tag table (9), and if they match, the data of the block corresponding to the index is read or written at the byte selection address (6, 8). Cache memory control method for image data processing.
【請求項2】 請求項1において,画像メモリ(1) のア
ドレスの最下位の桁を含む1つもしくは複数桁と水平方
向のアドレスを表す最上位の桁の次の上位の桁を含む1
つもしくは複数桁との値の組によりキャッシュメモリ(1
0)の1ブロックのブロック内のバイト選択アドレス(6,
8) とし,上位の側の桁の一部をタグ部(4) としてブロ
ックの索引とし,上記ブロック内のバイト選択アドレス
部分(6,8)およびタグ部(4) を除いた部分の一部もしく
は全部をタグテーブルの索引に書き込む位置を表すイン
デックスとしたことを特徴とする画像データ処理におけ
るキャッシュメモリ制御方式。
2. The image memory (1) according to claim 1, comprising one or more digits including a least significant digit of an address of the image memory (1) and an upper digit next to a most significant digit representing a horizontal address.
A cache memory (1
Byte selection address (6,
8), and a part of the upper digits is used as the index of the block as the tag part (4), and part of the part excluding the byte selection address part (6,8) and the tag part (4) in the above block. Alternatively, the cache memory control method in image data processing is characterized in that an index indicating the position of writing the whole in the index of the tag table is used.
JP3211228A 1991-08-23 1991-08-23 Cache memory control system for image data processing Pending JPH0553909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3211228A JPH0553909A (en) 1991-08-23 1991-08-23 Cache memory control system for image data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3211228A JPH0553909A (en) 1991-08-23 1991-08-23 Cache memory control system for image data processing

Publications (1)

Publication Number Publication Date
JPH0553909A true JPH0553909A (en) 1993-03-05

Family

ID=16602409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3211228A Pending JPH0553909A (en) 1991-08-23 1991-08-23 Cache memory control system for image data processing

Country Status (1)

Country Link
JP (1) JPH0553909A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017640A1 (en) * 2002-08-13 2004-02-26 Renesas Technology Corp. Signal processor and system
JP2005215911A (en) * 2004-01-29 2005-08-11 Hitachi Ltd Information processor
JP2005262651A (en) * 2004-03-18 2005-09-29 Seiko Epson Corp Printer, image printing system, and printing method
JP2008033688A (en) * 2006-07-28 2008-02-14 Fujitsu Ltd Cache memory control method and device
JP2009087139A (en) * 2007-10-01 2009-04-23 Mitsubishi Electric Corp Cache memory control device
US8261023B2 (en) 2008-12-16 2012-09-04 Kabushiki Kaisha Toshiba Data processor
JP2012238154A (en) * 2011-05-11 2012-12-06 Toshiba Corp Image processing apparatus, image processing system and image processing method
JP2014513883A (en) * 2011-03-07 2014-06-05 日本テキサス・インスツルメンツ株式会社 Caching method and system for video encoding
JP2014235689A (en) * 2013-06-05 2014-12-15 富士通株式会社 Image cache memory device and semiconductor integrated circuit
JP2016502211A (en) * 2012-12-27 2016-01-21 インテル・コーポレーション Image memory access optimization

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03154977A (en) * 1989-11-13 1991-07-02 Sharp Corp Cache memory device
JPH04153753A (en) * 1990-10-18 1992-05-27 Fujitsu Ltd Cache memory control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03154977A (en) * 1989-11-13 1991-07-02 Sharp Corp Cache memory device
JPH04153753A (en) * 1990-10-18 1992-05-27 Fujitsu Ltd Cache memory control system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017640A1 (en) * 2002-08-13 2004-02-26 Renesas Technology Corp. Signal processor and system
JP2005215911A (en) * 2004-01-29 2005-08-11 Hitachi Ltd Information processor
JP2005262651A (en) * 2004-03-18 2005-09-29 Seiko Epson Corp Printer, image printing system, and printing method
JP2008033688A (en) * 2006-07-28 2008-02-14 Fujitsu Ltd Cache memory control method and device
US8266380B2 (en) 2006-07-28 2012-09-11 Fujitsu Semiconductor Limited Cache memory control method and cache memory apparatus
JP2009087139A (en) * 2007-10-01 2009-04-23 Mitsubishi Electric Corp Cache memory control device
US8261023B2 (en) 2008-12-16 2012-09-04 Kabushiki Kaisha Toshiba Data processor
JP2014513883A (en) * 2011-03-07 2014-06-05 日本テキサス・インスツルメンツ株式会社 Caching method and system for video encoding
JP2012238154A (en) * 2011-05-11 2012-12-06 Toshiba Corp Image processing apparatus, image processing system and image processing method
JP2016502211A (en) * 2012-12-27 2016-01-21 インテル・コーポレーション Image memory access optimization
JP2014235689A (en) * 2013-06-05 2014-12-15 富士通株式会社 Image cache memory device and semiconductor integrated circuit

Similar Documents

Publication Publication Date Title
JP3172950B2 (en) Predictive caching system
US5606650A (en) Method and apparatus for storage and retrieval of a texture map in a graphics display system
JPS58102381A (en) Buffer memory
JP5039334B2 (en) Cache memory control method and apparatus
JP2681398B2 (en) Storage device
JPH0553909A (en) Cache memory control system for image data processing
US5923864A (en) Virtual storage address space access control system including auxiliary translation lookaside buffer
US5052046A (en) Image processing method and apparatus therefor
US5818433A (en) Grapics memory apparatus and method
JPS6318756B2 (en)
JPH0562348B2 (en)
EP0536414A1 (en) Apparatus for processing image
JPH08220510A (en) Display controller
JPH0119589B2 (en)
KR0171845B1 (en) Address changing method and circuit of memory device
JP3014749B2 (en) Image memory device
JP2704043B2 (en) Image processing device
JP3270665B2 (en) Encoding / decoding apparatus and method
JPH02188849A (en) Cache memory system
JP2771350B2 (en) Image processing device
JPS63298673A (en) Image memory element
KR0161477B1 (en) Memory mapping method in 24bpp mode
KR900005491B1 (en) Method of storing and restoring of character image
JPH0516451A (en) Printer
JPH0418686A (en) Picture processing method