Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4273435B2 - Storage device and access method - Google Patents
[go: Go Back, main page]

JP4273435B2 - Storage device and access method - Google Patents

Storage device and access method Download PDF

Info

Publication number
JP4273435B2
JP4273435B2 JP2006233634A JP2006233634A JP4273435B2 JP 4273435 B2 JP4273435 B2 JP 4273435B2 JP 2006233634 A JP2006233634 A JP 2006233634A JP 2006233634 A JP2006233634 A JP 2006233634A JP 4273435 B2 JP4273435 B2 JP 4273435B2
Authority
JP
Japan
Prior art keywords
address
data
image data
bank
memory
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.)
Expired - Fee Related
Application number
JP2006233634A
Other languages
Japanese (ja)
Other versions
JP2006320030A (en
Inventor
哲二郎 近藤
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2006233634A priority Critical patent/JP4273435B2/en
Publication of JP2006320030A publication Critical patent/JP2006320030A/en
Application granted granted Critical
Publication of JP4273435B2 publication Critical patent/JP4273435B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Storing Facsimile Image Data (AREA)

Description

本発明は、記憶装置およびアクセス方法に関し、特に、例えば、画像を、画素数の異なる複数の階層に分割する階層符号化を行う場合などに用いて好適な記憶装置およびアクセス方法に関する。   The present invention relates to a storage device and an access method, and more particularly, to a storage device and an access method suitable for use in, for example, performing hierarchical coding in which an image is divided into a plurality of layers having different numbers of pixels.

例えば、高解像度の画像データを、最下位階層または第1の階層の画像データとして、それより画素数の少ない第2の階層の画像データを形成し、さらに、それより画素数の少ない第3の階層の画像データを形成し、以下、同様にして、最上位階層までの画像データを形成する符号化手法がある。このような符号化は、階層符号化と呼ばれ、各階層の画像データは、その階層に対応した解像度(画素数)のモニタで表示される。従って、ユーザ側では、階層符号化された画像データのうち、自身が有するモニタの解像度に対応するものを選択することで、その画像データを視聴することができる。   For example, the image data of the second resolution having a smaller number of pixels is formed as the image data of the high resolution as the image data of the lowest hierarchy or the first hierarchy, and further, the third data having a smaller number of pixels is formed. There is an encoding method in which image data of a hierarchy is formed and image data up to the highest hierarchy is formed in the same manner. Such encoding is called hierarchical encoding, and image data of each layer is displayed on a monitor having a resolution (number of pixels) corresponding to the layer. Therefore, the user can view the image data by selecting the image data corresponding to the resolution of the monitor that the user has from among the hierarchically encoded image data.

ところで、ある解像度の画像データを最下位階層(第1階層)の画像データとして、上位階層の画像データを、順次形成し、それらのすべてを、そのまま記憶や伝送などする場合には、最下位階層の画像データだけを記憶等する場合に比較して、上位階層の画像データの分だけ、記憶容量や伝送容量が余計に必要となる。   By the way, when image data of a certain resolution is used as image data of the lowest hierarchy (first hierarchy) and image data of the upper hierarchy is sequentially formed and all of them are stored or transmitted as they are, the lowest hierarchy As compared with the case of storing only the image data, the storage capacity and the transmission capacity are required for the image data of the upper layer.

そこで、そのような記憶容量等の増加を低減する階層符号化方法を、本件出願人は先に提案している。   Therefore, the present applicant has previously proposed a hierarchical encoding method for reducing such an increase in storage capacity and the like.

即ち、例えば、いま、2×2画素(横×縦)の4画素の加算値を、上位階層の画素(画素値)とし、3階層の階層符号化を行うものとする。この場合、いま、最下位階層の画像として、例えば、図9(A)に示すように、8×8画素を考えると、その左上の2×2画素の4画素h00,h10,h01,h11の加算値m0が演算され、これが、第2階層の左上の1画素とされる。同様にして、最下位階層の画像の右上の4画素h20,h30,h21,h31の加算値m1、左下の4画素h02,h12,h03,h13の加算値m2、右下の4画素h22,h32,h23,h33の加算値m3が演算され、それぞれが、第2階層の右上、左下、右下の1画素とされる。さらに、第2階層の2×2画素の4画素m0,m1,m2,m3の加算値q0が演算され、これが、第3階層、即ち、ここでは、最上位階層の画像の画素とされる。   That is, for example, it is assumed that an added value of 4 pixels of 2 × 2 pixels (horizontal × vertical) is an upper layer pixel (pixel value), and three layer hierarchical encoding is performed. In this case, as an image in the lowest layer, for example, as shown in FIG. 9A, when 8 × 8 pixels are considered, the upper left 2 × 2 pixels of 4 pixels h00, h10, h01, h11 The added value m0 is calculated, and this is set as one pixel at the upper left of the second hierarchy. Similarly, the addition value m1 of the upper right four pixels h20, h30, h21, h31, the addition value m2 of the lower left four pixels h02, h12, h03, h13, and the lower right four pixels h22, h32 of the image of the lowest hierarchy. , H23, and h33 are calculated, and each is set as one pixel at the upper right, lower left, and lower right of the second layer. Further, an addition value q0 of 4 pixels m0, m1, m2, and m3 of 2 × 2 pixels in the second layer is calculated, and this is set as a pixel of the image in the third layer, that is, the highest layer here.

以上の画素h00乃至h33,m0乃至m3,q0を、そのまま全部記憶などさせたのでは、上述のように、第2階層の画素m0乃至m3、第3階層の画素q0の分だけ余分に記憶容量等が必要となる。   If all the pixels h00 to h33, m0 to m3, and q0 are stored as they are, the storage capacity is extra as much as the pixels m0 to m3 in the second hierarchy and the pixel q0 in the third hierarchy as described above. Etc. are required.

そこで、図9(B)に示すように、第3階層の画素q0を、第2階層の画素m0乃至m3のうちの、例えば、右下の画素m3の位置に配置する。これにより、第2階層は、画素m0乃至m2およびq0で構成されることになる。   Therefore, as shown in FIG. 9B, the pixel q0 in the third hierarchy is arranged, for example, at the position of the lower right pixel m3 among the pixels m0 to m3 in the second hierarchy. As a result, the second hierarchy is composed of pixels m0 to m2 and q0.

そして、図9(C)に示すように、第2階層の画素m0を、それを求めるのに用いた第1階層の画素h00,h10,h01,h11のうちの、例えば、右下の画素h11の位置に配置する。第2階層の残りの画素m1,m2,q0も、同様に、第1階層の画素h31,h13,h33に代えて配置する。なお、画素q0は、第1階層の画素h22,h32,h23,h33から直接求められたものではないが、それらから直接求められたm3に代えて第2階層に配置されているものであるから、画素h33の位置に画素m3を配置する代わりに、画素q0を配置する。   Then, as shown in FIG. 9C, for example, the pixel h11 at the lower right of the pixels h00, h10, h01, and h11 of the first layer used for obtaining the pixel m0 of the second layer. Place at the position. Similarly, the remaining pixels m1, m2, and q0 in the second hierarchy are arranged in place of the pixels h31, h13, and h33 in the first hierarchy. The pixel q0 is not directly obtained from the pixels h22, h32, h23, and h33 in the first layer, but is arranged in the second layer instead of m3 obtained directly from them. Instead of arranging the pixel m3 at the position of the pixel h33, the pixel q0 is arranged.

以上のようにすることで、図9(C)に示すように、全画素数は4×4の16画素となり、図9(A)に示した最下位階層の画素だけの場合と変わらない。従って、この場合、記憶容量等の増加を低減することができる。   As described above, as shown in FIG. 9C, the total number of pixels becomes 16 pixels of 4 × 4, which is not different from the case of only the pixels in the lowest hierarchy shown in FIG. Therefore, in this case, an increase in storage capacity or the like can be reduced.

なお、画素q0と代えられた画素m3およびh33、画素m0乃至m2とそれぞれ代えられた画素h11,h31,h13の復号は、次のようにして行うことができる。   Decoding of the pixels m3 and h33 replaced with the pixel q0 and the pixels h11, h31, and h13 replaced with the pixels m0 to m2 can be performed as follows.

即ち、q0は、m0乃至m3の加算値であるから、式q0=m0+m1+m2+m3が成り立つ。従って、式m3=q0−(m0+m1+m2)により、m3を求めることができる。   That is, since q0 is an added value of m0 to m3, the expression q0 = m0 + m1 + m2 + m3 holds. Therefore, m3 can be obtained by the equation m3 = q0− (m0 + m1 + m2).

また、m0は、h00,h10,h01,h11の加算値であるから、式m0=h00+h10+h01+h11が成り立つ。従って、式h11=m0−(h00+h10+h01)により、h11を求めることができる。同様にして、h31,h13,h33も求めることができる。なお、h33は、上述したようにしてm3を求めてから求めることになる。   Since m0 is an added value of h00, h10, h01, and h11, the expression m0 = h00 + h10 + h01 + h11 holds. Therefore, h11 can be obtained by the equation h11 = m0− (h00 + h10 + h01). Similarly, h31, h13, and h33 can be obtained. Note that h33 is obtained after obtaining m3 as described above.

ところで、以上のような階層符号化を行うにあたっては、従来においては、その階層符号化結果を記憶する汎用的なメモリ(例えば、SRAM(Static Random Access Memory)やDRAM(Dynamic RAM)など)の他に、第1階層の画素(画素値)のラインディレイを行うための遅延回路などが必要であった。   By the way, in performing hierarchical encoding as described above, conventionally, in addition to a general-purpose memory (for example, SRAM (Static Random Access Memory), DRAM (Dynamic RAM), etc.) for storing the hierarchical encoding result. In addition, a delay circuit for performing a line delay of the pixels (pixel values) in the first layer is necessary.

即ち、例えば、図9に示した場合において、第2階層の画素m0を求めるためには、式m0=h00+h01+h02+h03を演算する必要があるが、第2階層の画素m0を求めるためには、2ラインに亘る第1階層の画素h00,h10,h01,h11が必要であり、また、メモリへの画像データの供給は、一般に、ライン単位で、上から下の方向に順次行われる。そして、メモリに対する画像データの読み書きも、そのようなライン単位で行われる。   That is, for example, in the case shown in FIG. 9, in order to obtain the pixel m0 in the second hierarchy, it is necessary to calculate the expression m0 = h00 + h01 + h02 + h03, but in order to obtain the pixel m0 in the second hierarchy, The first-layer pixels h00, h10, h01, and h11 are necessary, and the image data is generally supplied to the memory in order from the top to the bottom in line units. The reading / writing of the image data with respect to the memory is also performed in such line units.

従って、h00で始まるラインを、1ライン分遅延し、h01で始まるラインが供給されるのを待って、m0を計算して、h00で始まるラインおよびh01で始まるラインのメモリへの書き込みを行う必要がある。   Therefore, it is necessary to delay the line starting with h00 by one line, wait for the line starting with h01 to be supplied, calculate m0, and write to the memory of the line starting with h00 and the line starting with h01. There is.

このように、従来においては、階層符号化結果を記憶させるためのメモリの他に、画像データのラインディレイを行う遅延回路が必要であり、装置が大型化する課題があった。   As described above, conventionally, in addition to the memory for storing the hierarchical encoding result, a delay circuit for performing line delay of the image data is necessary, and there is a problem that the apparatus becomes large.

本発明は、このような状況に鑑みてなされたものであり、装置の小型化を図ることができるようにするものである。   The present invention has been made in view of such a situation, and is intended to reduce the size of the apparatus.

本発明の一側面は、入力画像データから、前記入力画像データより少ない数の画素により構成される画像データであって、前記入力画像データを構成する画素のうち、所定の位置の複数の画素の画素値を加算して得られる値が画素値とされ、その複数の画素に対応して定まる1つの画素のそれぞれにより構成される画像データである階層データを算出し階層符号化を行う場合に用いられ、前記入力画像データと前記階層データを記憶する記憶装置であって、前記入力画像データを構成する画素位置を特定する水平方向および垂直方向の位置に対応した第1のアドレスによってアドレス指定され、その指定されたアドレスに、入力画像データの画素値をそれぞれ記憶する第1の記憶手段と、前記第1のアドレスを表すビット列の一部によって表される第2のアドレスによってアドレス指定され、その指定されたアドレスに、前記入力画像データの画素値から前記階層データの画素値を算出するための処理途中のデータである第1の処理データ、若しくは前記第1の処理データと前記入力画像データの画素値とを用いて算出された前記階層データの画素値、または前記入力画像データの画素値から前記第1の記憶手段に記憶されていない前記入力画像データの画素値を算出するための処理途中のデータである第2の処理データ、若しくは前記第2の処理データと前記入力画像データの画素値とを用いて算出された前記第1の記憶手段に記憶されていない前記入力画像データの画素値をそれぞれ記憶する第2の記憶手段と、前記第1および第2の記憶手段に対するデータの読み書きを制御するととともに、そのデータに対して前記階層データの画素値を算出するための処理または前記入力画像データの画素値を算出するための処理を施す制御手段とを備える記憶装置である。   One aspect of the present invention is image data composed of a smaller number of pixels than the input image data from the input image data, and a plurality of pixels at a predetermined position among the pixels constituting the input image data. A value obtained by adding pixel values is used as a pixel value, and is used when hierarchical data, which is image data composed of one pixel determined corresponding to the plurality of pixels, is calculated and hierarchical encoding is performed. A storage device that stores the input image data and the hierarchical data, and is addressed by a first address corresponding to a horizontal position and a vertical position that specify pixel positions constituting the input image data; The first storage means for storing the pixel value of the input image data at the designated address, and a part of the bit string representing the first address. First processing data that is data in the middle of processing for calculating the pixel value of the hierarchical data from the pixel value of the input image data, or The input image not stored in the first storage means from the pixel value of the hierarchical data calculated using the first processing data and the pixel value of the input image data or the pixel value of the input image data In the first storage means calculated using the second processing data, which is data in the middle of processing for calculating the pixel value of the data, or using the second processing data and the pixel value of the input image data Second storage means for storing pixel values of the input image data that are not stored, and control of reading and writing of data to and from the first and second storage means That when together, a storage device and a control means for performing processing for calculating the pixel value of the processing or the input image data for calculating the pixel value of the hierarchical data for the data.

前記第1の記憶手段が、それぞれに対して指定されたアドレスに基づいて同時にアクセス可能な複数のブロックに分割され、前記第2の記憶手段が、それぞれに対して指定されたアドレスに基づいて同時にアクセス可能な複数のブロックであって、前記第1の記憶手段の各ブロックの個々に対応する同一数のブロックに分割され、前記第2の記憶手段のブロックのうちの第1のブロックに、前記第1の処理データ、または前記階層データの画素値が記憶され、前記第2の記憶手段のブロックのうちの第2のブロックに、前記第2の処理データまたは前記入力画像データの画素値が記憶されるようにすることができる。   The first storage means is divided into a plurality of blocks that can be simultaneously accessed based on addresses designated for each, and the second storage means is simultaneously designated based on the addresses designated for each. A plurality of accessible blocks, divided into the same number of blocks corresponding to each of the blocks of the first storage means, and the first block of the blocks of the second storage means; The pixel value of the first process data or the hierarchical data is stored, and the pixel value of the second process data or the input image data is stored in a second block of the blocks of the second storage means. Can be done.

前記第1の記憶手段のブロックのうちの第3のブロックを指定する前記第1のアドレスと、前記第2の記憶手段の前記第1のブロックを指定する前記第2のアドレスとを同時に生成するアドレス指定手段と、前記第1のアドレスにより特定される画素位置を、前記入力画像データと前記階層データの画素数の差異に基づいて特定される画素列の分だけずらすことで、前記第1のアドレスを遅延させたアドレスであって、前記第1の記憶手段のブロックのうちの第4のブロックを指定する第1の遅延アドレスと、前記第1の遅延アドレスを表すビット列の一部によって表されるアドレスであって、前記第2の記憶手段の前記第2のブロックを指定する第2の遅延アドレスとを、前記第1のアドレスおよび前記第2のアドレスが生成されるのと同時に生成する遅延アドレス指定手段とをさらに備えるようにすることができる。   The first address designating a third block of the blocks of the first storage means and the second address designating the first block of the second storage means are simultaneously generated. By shifting the pixel position specified by the address specifying means and the first address by the pixel column specified based on the difference in the number of pixels of the input image data and the hierarchical data, the first address The address is a delayed address, and is represented by a first delay address designating a fourth block of the blocks of the first storage means and a part of a bit string representing the first delay address. The second delay address designating the second block of the second storage means is the same as that for generating the first address and the second address. May further comprises a delay addressing means for generating the.

前記第1の記憶手段のそれぞれのブロックにおいて、指定されるアドレスに対応する個々の記憶領域の数が、前記入力画像データの1画面を構成する画素数から、前記第2の記憶手段のそれぞれのブロックにおいて指定可能なアドレス数を減算した数とされるようにすることができる。   In each block of the first storage means, the number of individual storage areas corresponding to the designated address is determined based on the number of pixels constituting one screen of the input image data. The number of addresses that can be specified in the block can be subtracted.

前記制御手段は、前記アドレス指定手段により生成された前記第2のアドレスにより指定される前記第2の記憶手段の記憶領域に、前記第2のアドレスに対応する複数の前記第1のアドレスにより指定される前記第1の記憶手段の記憶領域のそれぞれに書き込まれるデータを加算して得られる前記第1の処理データまたは前記階層データの画素値を書き込む第1の処理と、前記遅延アドレス指定手段により生成された前記第2の遅延アドレスにより指定される前記第2の記憶手段の記憶領域に記憶されている前記階層データの画素値を読み出し、その階層データの画素値から、前記第2の遅延アドレスに対応する複数の前記第1の遅延アドレスにより指定される前記第1の記憶手段の記憶領域のそれぞれに記憶されている前記入力画像データの画素値を減算して得られる前記第2の処理データまたは前記第1の記憶手段に記憶されていない前記入力画像データの画素値を、前記第2の遅延アドレスにより指定される前記第2の記憶手段の記憶領域に書き込む第2の処理とを同時に実行するようにすることができる。   The control means designates the storage area of the second storage means designated by the second address generated by the address designation means by a plurality of the first addresses corresponding to the second address. A first process for writing pixel values of the first processing data or the hierarchical data obtained by adding data written to each of the storage areas of the first storage means, and the delay address designating means The pixel value of the hierarchical data stored in the storage area of the second storage means designated by the generated second delay address is read, and the second delay address is read from the pixel value of the hierarchical data The input image data stored in each of the storage areas of the first storage means specified by a plurality of the first delay addresses corresponding to The second storage data specified by the second delay address is the second processing data obtained by subtracting the pixel value or the pixel value of the input image data not stored in the first storage means. The second process of writing to the storage area of the means can be executed simultaneously.

本発明の一側面は、入力画像データから、前記入力画像データより少ない数の画素により構成される画像データであって、前記入力画像データを構成する画素のうち、所定の位置の複数の画素の画素値を加算して得られる値が画素値とされ、その複数の画素に対応して定まる1つの画素のそれぞれにより構成される画像データである階層データを算出し階層符号化を行う場合に用いられ、前記入力画像データと前記階層データを記憶する記憶装置であって、前記入力画像データを構成する画素位置を特定する水平方向および垂直方向の位置に対応した第1のアドレスによってアドレス指定され、その指定されたアドレスに、入力画像データの画素値をそれぞれ記憶する第1の記憶手段と、前記第1のアドレスを表すビット列の一部によって表される第2のアドレスによってアドレス指定され、その指定されたアドレスに、前記入力画像データの画素値から前記階層データの画素値を算出するための処理途中のデータである第1の処理データ、若しくは前記第1の処理データと前記入力画像データの画素値とを用いて算出された前記階層データの画素値、または前記入力画像データから前記第1の記憶手段に記憶されていない前記入力画像データの画素値を算出するための処理途中のデータである第2の処理データ、若しくは前記第2の処理データと前記第1の記憶手段に記憶されていない前記入力画像データの画素値とを用いて算出された前記入力画像データの画素値をそれぞれ記憶する第2の記憶手段とを備える記憶装置におけるアクセス方法であって、前記入力画像データの画素値のそれぞれを前記第1の記憶手段に記憶するのと同時に、前記第2の記憶手段に、前記入力画像データの画素値から前記階層データの画素値を算出するための処理途中のデータである第1の処理データ、若しくは前記第1の処理データと前記入力画像データの画素値とを用いて算出された前記階層データ、または前記入力画像データから前記第1の記憶手段に記憶されていない前記入力画像データの画素値を算出するための処理途中のデータである第2の処理データ、若しくは前記第2の処理データと前記入力画像データの画素値とを用いて算出された前記第1の記憶手段に記憶されていない前記入力画像データの画素値をそれぞれ記憶するアクセス方法である。   One aspect of the present invention is image data composed of a smaller number of pixels than the input image data from the input image data, and a plurality of pixels at a predetermined position among the pixels constituting the input image data. A value obtained by adding pixel values is used as a pixel value, and is used when hierarchical data, which is image data composed of one pixel determined corresponding to the plurality of pixels, is calculated and hierarchical encoding is performed. A storage device that stores the input image data and the hierarchical data, and is addressed by a first address corresponding to a horizontal position and a vertical position that specify a pixel position that constitutes the input image data; The first storage means for storing the pixel value of the input image data at the designated address, and a part of the bit string representing the first address. First processing data that is data in the middle of processing for calculating the pixel value of the hierarchical data from the pixel value of the input image data, or Pixel values of the hierarchical data calculated using first processing data and pixel values of the input image data, or pixels of the input image data not stored in the first storage means from the input image data Calculated using second processing data that is data in the middle of calculating the value, or using the second processing data and the pixel value of the input image data that is not stored in the first storage means. And an access method in a storage device comprising second storage means for storing pixel values of the input image data, respectively. At the same time as storing each of the values in the first storage means, the second storage means is data in the middle of processing for calculating the pixel value of the hierarchical data from the pixel value of the input image data. The first processing data, the hierarchical data calculated using the first processing data and the pixel value of the input image data, or the input image data not stored in the first storage means Second processing data, which is data in the middle of processing for calculating a pixel value of input image data, or the first storage calculated using the second processing data and the pixel value of the input image data An access method for storing pixel values of the input image data not stored in the means.

図1は、本発明を適用した記憶装置の一実施の形態の構成例を示している。   FIG. 1 shows a configuration example of an embodiment of a storage device to which the present invention is applied.

この記憶装置は、例えば、1チップのCMOS(Complementary Metal Oxide Semiconductor)などで構成され、そこに入力される入力画像から画素数の異な
る、例えば、3階層の画像を形成する階層符号化を行うようになされている。
This storage device is composed of, for example, a one-chip CMOS (Complementary Metal Oxide Semiconductor) or the like, and performs hierarchical encoding that forms, for example, a three-layer image having a different number of pixels from an input image input thereto. Has been made.

即ち、アドレス供給回路1には、記憶装置に入力される画像を構成する画素の水平方向または垂直方向の位置に対応したアドレスそれぞれとしての水平アドレスまたは垂直アドレスが供給されるようになされている。   That is, the address supply circuit 1 is supplied with a horizontal address or a vertical address as an address corresponding to the position in the horizontal direction or the vertical direction of the pixels constituting the image input to the storage device.

なお、本実施の形態では、例えば、図2に示すような、水平方向が512画素で、垂直方向が512ラインで1画面が構成される画像(ディジタル画像データ)が入力されるものとする。従って、水平アドレスおよび垂直アドレスは、いずれも9(=log2512)ビットで表される。 In the present embodiment, for example, as shown in FIG. 2, an image (digital image data) in which one screen is composed of 512 pixels in the horizontal direction and 512 lines in the vertical direction is input. Therefore, both the horizontal address and the vertical address are represented by 9 (= log 2 512) bits.

アドレス供給回路1は、そこに供給される水平アドレスおよび垂直アドレスを必要に応じて加工して、第1階層メモリ2、第2階層メモリ3、および第3階層メモリ4に供給するようになされている。なお、アドレス供給回路1には、水平アドレスおよび垂直アドレスの他、クロック(後述する図3乃至図6および図8においては図示せず)、R/W(Read/Write)信号、および階層フラグも供給されるようになされており、アドレス供給回路1は、そのクロックに同期して、第1階層メモリ2、第2階層メモリ3、および第3階層メモリ4にアドレスを供給するようになされている。また、アドレス供給回路1は、R/W信号や階層フラグに対応して、そこに供給される水平アドレスおよび垂直アドレスを加工するようになされている。さらに、アドレス供給回路1は、必要に応じて、所定の制御信号を、RMW回路5に供給するようになされている。   The address supply circuit 1 processes the horizontal address and the vertical address supplied to the address supply circuit 1 as necessary, and supplies the processed addresses to the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4. Yes. The address supply circuit 1 includes a horizontal address and a vertical address, a clock (not shown in FIGS. 3 to 6 and 8 described later), an R / W (Read / Write) signal, and a hierarchy flag. The address supply circuit 1 supplies addresses to the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4 in synchronization with the clock. . Further, the address supply circuit 1 processes a horizontal address and a vertical address supplied thereto corresponding to the R / W signal and the hierarchy flag. Furthermore, the address supply circuit 1 supplies a predetermined control signal to the RMW circuit 5 as necessary.

ここで、R/W信号は、記憶装置からの画像データの読み出し、または記憶装置への画像データの書き込みを指示する信号であり、階層フラグは、記憶装置に記憶された画像を読み出す場合に、後述する第1乃至第3階層の画像のうちのいずれを読み出すかを指示するための、例えば2ビットのフラグである。なお、画像データの書き込みは、例えば、第1階層メモリ2、第2階層メモリ3、および第3階層メモリ4に対して同時に行われるようになされており、従って、R/W信号が書き込みを表している場合は、階層フラグは無視される(意味をもたない)。また、読み出しは、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4それぞれについて個別に行われるようになされており、従って、階層フラグは、読み出し時においてのみ有効となる。但し、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4からの読み出しも同時に行うようにすることが可能である。この場合、階層フラグは用いる必要がない。   Here, the R / W signal is a signal for instructing reading of image data from the storage device or writing of image data to the storage device, and the hierarchy flag is used when reading an image stored in the storage device. For example, it is a 2-bit flag for instructing which one of the first to third layer images to be described later is read. Note that the image data is written to the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4, for example, so that the R / W signal represents the writing. The hierarchy flag is ignored (meaningless). Further, reading is performed individually for each of the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4, and therefore the hierarchy flag is valid only at the time of reading. However, it is possible to simultaneously read from the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4. In this case, the hierarchy flag need not be used.

第1階層メモリ2は、アドレス供給回路1によって指定されるアドレスに、RMW回路5から供給される画像データを記憶し、また、そのアドレスに記憶されている画像データを読み出してRMW回路5に出力するようになされている。なお、第1階層メモリ2は、第1階層の画像、即ち、ここでは、記憶装置に入力される画像データをそのまま記憶するようになされている。また、第1階層メモリ2は、少なくとも、1画面分の第1階層の画像、即ち、ここでは、図2に示したように、512×512画素の画像データを記憶することができるようになされている。さらに、第1階層メモリ2を構成するメモリセルは、少なくとも、第1階層の画像を構成する画素に割り当てられたビット数と同一のデータ長を有している。即ち、第1階層の画像を構成する画素が、例えば、8ビットで表されるとき、第1階層メモリ2を構成するメモリセルは、少なくとも8ビットのデータ長を有している。   The first hierarchical memory 2 stores the image data supplied from the RMW circuit 5 at the address specified by the address supply circuit 1, and reads out the image data stored at the address and outputs it to the RMW circuit 5. It is made to do. The first layer memory 2 stores the first layer image, that is, here, the image data input to the storage device as it is. Further, the first hierarchy memory 2 can store at least one screen of the first hierarchy image, that is, here, image data of 512 × 512 pixels as shown in FIG. ing. Further, the memory cells constituting the first hierarchy memory 2 have at least the same data length as the number of bits allocated to the pixels constituting the first hierarchy image. That is, when the pixels constituting the first layer image are represented by, for example, 8 bits, the memory cells constituting the first layer memory 2 have a data length of at least 8 bits.

第2階層メモリ3は、アドレス供給回路1によって指定されるアドレスに、RMW回路5から供給される画像データを記憶し、また、そのアドレスに記憶されている画像データを読み出してRMW回路5に出力するようになされている。なお、第2階層メモリ3は、第2階層の画像を記憶するようになされている。即ち、本実施の形態では、例えば、図9における場合と同様にして、第1階層の画像を構成する2×2(横×縦)の4画素から、第2階層の1の画素が形成されるようになされており、第2階層メモリ3は、そのような画素で構成される第2階層の画像を記憶するようになされている。また、第2階層メモリ3は、少なくとも、1画面分の第2階層の画像を記憶することのできる記憶容量を有している。即ち、ここでは、第1階層の2×2画素から第2階層の1の画素が形成されるから、第2階層の画像の1画面は、256×256(=512/2×512/2)画素で構成されることになる。従って、第2階層メモリ2は、そのような数の画素数で構成される第2階層の画像を、少なくとも記憶することができるようになされている。さらに、第2階層メモリ3を構成するメモリセルは、少なくとも、第2階層の画像を構成する画素を桁落ちさせずに記憶することのできるデータ長を有している。即ち、本実施の形態では、第1階層の画素が8ビットで表されるから、そのような8ビットの画素の4つの加算値である第2階層の画素は10(=log2(28+28+28+28))ビットで表されることになる。従って、第2階層メモリ3を構成するメモリセルは、少なくとも10ビットのデータ長を有している。 The second hierarchical memory 3 stores the image data supplied from the RMW circuit 5 at the address specified by the address supply circuit 1, and reads out the image data stored at the address and outputs it to the RMW circuit 5. It is made to do. The second hierarchical memory 3 is configured to store the second hierarchical image. That is, in the present embodiment, for example, as in the case of FIG. 9, 1 pixel in the second layer is formed from 2 × 2 (horizontal × vertical) 4 pixels constituting the image in the first layer. The second layer memory 3 is configured to store a second layer image composed of such pixels. The second hierarchy memory 3 has a storage capacity capable of storing at least a second hierarchy image for one screen. In other words, since one pixel of the second layer is formed from 2 × 2 pixels of the first layer, one screen of the image of the second layer is 256 × 256 (= 512/2 × 512/2). It is composed of pixels. Therefore, the second hierarchy memory 2 can store at least a second hierarchy image having such a number of pixels. Further, the memory cells constituting the second hierarchy memory 3 have at least a data length that can store the pixels constituting the second hierarchy image without dropping them. That is, in the present embodiment, since the pixels of the first layer are represented by 8 bits, the pixels of the second layer which are four addition values of such 8-bit pixels are 10 (= log 2 (2 8 +2 8 +2 8 +2 8 )) bits. Therefore, the memory cells constituting the second hierarchy memory 3 have a data length of at least 10 bits.

第3階層メモリ4は、アドレス供給回路1によって指定されるアドレスに、RMW回路5から供給される画像データを記憶し、また、そのアドレスに記憶されている画像データを読み出してRMW回路5に出力するようになされている。なお、第3階層メモリ4は、第3階層の画像を記憶するようになされている。即ち、本実施の形態では、例えば、図9における場合と同様にして、第2階層の画像を構成する2×2の4画素、従って、第1階層の画像を構成する4×4画素から、第3階層の1の画素が形成されるようになされており、第3階層メモリ4は、そのような画素で構成される第3階層の画像を記憶するようになされている。また、第3階層メモリ4は、少なくとも、1画面分の第3階層の画像を記憶することのできる記憶容量を有している。即ち、ここでは、第2階層の2×2画素から第3階層の1の画素が形成されるから、第2階層の画像の1画面は、128×128(=256/2×256/2)画素で構成されることになる。従って、第3階層メモリ4は、そのような数の画素数で構成される第3階層の画像を、少なくとも記憶することができるようになされている。さらに、第3階層メモリ4を構成するメモリセルは、少なくとも、第3階層の画像を構成する画素を桁落ちさせずに記憶することができるデータ長を有している。即ち、本実施の形態では、第2階層の画素が、上述したように10ビットで表されるから、そのような10ビットの画素の4つの加算値である第3階層の画素は12(=log2(210+210+210+210))ビットで表されることになる。従って、第3階層メモリ4を構成するメモリセルは、少なくとも12ビットのデータ長を有している。 The third hierarchical memory 4 stores the image data supplied from the RMW circuit 5 at the address specified by the address supply circuit 1, and reads out the image data stored at the address and outputs it to the RMW circuit 5. It is made to do. The third hierarchy memory 4 is adapted to store the third hierarchy image. That is, in the present embodiment, for example, in the same manner as in FIG. 9, from 2 × 2 4 pixels constituting the second layer image, and accordingly, from 4 × 4 pixels constituting the first layer image, One pixel in the third hierarchy is formed, and the third hierarchy memory 4 stores a third hierarchy image composed of such pixels. The third hierarchy memory 4 has a storage capacity capable of storing at least a third hierarchy image for one screen. That is, in this case, since one pixel of the third layer is formed from 2 × 2 pixels of the second layer, one screen of the image of the second layer is 128 × 128 (= 256/2 × 256/2). It is composed of pixels. Therefore, the third hierarchy memory 4 can store at least a third hierarchy image having such a number of pixels. Further, the memory cells constituting the third hierarchy memory 4 have a data length that can store at least the pixels constituting the third hierarchy image without dropping digits. That is, in the present embodiment, since the second layer pixel is represented by 10 bits as described above, the third layer pixel, which is four addition values of such 10 bit pixels, is 12 (= log 2 (2 10 +2 10 +2 10 +2 10 )) bits. Accordingly, the memory cells constituting the third hierarchy memory 4 have a data length of at least 12 bits.

なお、第1階層メモリ2、第2階層メモリ3、および第3階層メモリ4には、クロックが供給されるようになされており、このクロックに同期して、データの読み書きが行われるようになされている。   Note that a clock is supplied to the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4, and data is read and written in synchronization with this clock. ing.

RMW回路5は、記憶装置に供給される画像データを、第1階層の画像として、第1階層メモリ2に書き込むようになされている。また、RMW回路5は、第1階層の画像から第2階層の画像を算出する処理を行い、第2階層メモリ3に書き込むようになされている。さらに、RMW回路5は、第1階層の画像(または第2階層の画像)から第3階層の画像を算出する処理を行い、第3階層メモリ4に書き込むようになされている。また、RMW回路5は、第1階層メモリ2、第2階層メモリ3、または第3階層メモリ4にそれぞれ記憶された画像データを読み出して出力するようにもなされている。なお、RMW回路5には、クロック、R/W信号、階層フラグ、アドレス供給回路1が出力する制御信号が供給されるようになされており、RMW回路5は、クロックに同期し、R/W信号、階層フラグ、制御信号に基づいて各種の処理を行うようになされている。   The RMW circuit 5 writes image data supplied to the storage device in the first hierarchy memory 2 as a first hierarchy image. Further, the RMW circuit 5 performs a process of calculating a second layer image from the first layer image, and writes it in the second layer memory 3. Further, the RMW circuit 5 performs a process of calculating the third layer image from the first layer image (or the second layer image) and writes the third layer image in the third layer memory 4. The RMW circuit 5 is also configured to read out and output the image data stored in the first hierarchical memory 2, the second hierarchical memory 3, or the third hierarchical memory 4, respectively. The RMW circuit 5 is supplied with a clock, an R / W signal, a hierarchy flag, and a control signal output from the address supply circuit 1. The RMW circuit 5 synchronizes with the clock, and the R / W Various processes are performed based on the signal, the hierarchy flag, and the control signal.

次に、その動作について、図3乃至図5を参照して説明する。   Next, the operation will be described with reference to FIGS.

なお、ここでは、上述の図2に示したように、1画面が512×512画素で構成され、各画素が8ビットで表される画像データが、第1階層の画像として記憶装置に供給されるものとする。また、画像データは、いわゆる順次走査されて供給されるものとする。   Here, as shown in FIG. 2 described above, one screen is composed of 512 × 512 pixels, and image data in which each pixel is represented by 8 bits is supplied to the storage device as an image of the first layer. Shall be. The image data is supplied by being sequentially scanned.

さらに、第1階層の画像を構成する画素を、その最も左上の画素をh(0,0)とし、以下、同様にして、左からx+1番目で、上からy+1番目にある画素をh(x,y)と表す。第1階層の画像は、上述したように、512×512画素で構成されるから、x,yは、いずれも0乃至511(=29−1)の範囲の整数値をとる。 Further, the pixel constituting the first layer image is h (0, 0) in the upper left pixel, and the pixel in the x + 1th position from the left and the y + 1th position from the top is set to h (x , Y). Since the first layer image is composed of 512 × 512 pixels as described above, both x and y take integer values in the range of 0 to 511 (= 2 9 −1).

また、0乃至255(=29/2−1)の範囲の整数値をとる変数s,tを考
えると、第2階層の画像を構成する画素は、第1階層の隣接する2×2画素
h(2s,2t), h(2s+1,2t),
h(2s,2t+1),h(2s+1,2t+1)
の加算値となるが、それをm(s,t)と表す。従って、式
m(s,t)=h(2s,2t)+h(2s+1,2t)+h(2s,2t+1)+h(2s+1,2t+1)
・・・(1)
が成り立つ。
Also, considering variables s and t that take integer values in the range of 0 to 255 (= 2 9 / 2-1), the pixels constituting the second layer image are adjacent 2 × 2 pixels in the first layer. h (2s, 2t), h (2s + 1, 2t),
h (2s, 2t + 1), h (2s + 1, 2t + 1)
Is represented by m (s, t). Therefore, the formula
m (s, t) = h (2s, 2t) + h (2s + 1,2t) + h (2s, 2t + 1) + h (2s + 1,2t + 1)
... (1)
Holds.

さらに、0乃至127(=29/4−1)の範囲の整数値をとる変数m,nを
考えると、第3階層の画像を構成する画素は、第2階層の隣接する2×2画素
m(2m,2n), m(2m+1,2n),
m(2m,2n+1),m(2m+1,2n+1)
の加算値、即ち、第1階層の隣接する4×4画素
h(4m,4n), h(4m+1,4n), h(4m+2,4n), h(4m+3,4n),
h(4m,4n+1),h(4m+1,4n+1),h(4m+2,4n+1),h(4m+3,4n+1),
h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),
h(4m,4n+3),h(4m+1,4n+3),h(4m+2,4n+3),h(4m+3,4n+3)
の加算値となるが、それをq(m,n)と表す。従って、式
q(m,n)=m(2m,2n)+m(2m+1,2n)+m(2m,2n+1)+m(2m+1,2n+1)
=h(4m,4n)+h(4m+1,4n)+h(4m+2,4n)+h(4m+3,4n)
+h(4m,4n+1)+h(4m+1,4n+1)+h(4m+2,4n+1)+h(4m+3,4n+1)
+h(4m,4n+2)+h(4m+1,4n+2)+h(4m+2,4n+2)+h(4m+3,4n+2)
+h(4m,4n+3)+h(4m+1,4n+3)+h(4m+2,4n+3)+h(4m+3,4n+3)
・・・(2)
が成り立つ。
Further, considering variables m and n taking integer values in the range of 0 to 127 (= 2 9 / 4-1), the pixels constituting the third layer image are adjacent 2 × 2 pixels in the second layer. m (2m, 2n), m (2m + 1, 2n),
m (2m, 2n + 1), m (2m + 1, 2n + 1)
Value, that is, adjacent 4 × 4 pixels in the first layer
h (4m, 4n), h (4m + 1,4n), h (4m + 2,4n), h (4m + 3,4n),
h (4m, 4n + 1), h (4m + 1,4n + 1), h (4m + 2,4n + 1), h (4m + 3,4n + 1),
h (4m, 4n + 2), h (4m + 1,4n + 2), h (4m + 2,4n + 2), h (4m + 3,4n + 2),
h (4m, 4n + 3), h (4m + 1,4n + 3), h (4m + 2,4n + 3), h (4m + 3,4n + 3)
It is expressed as q (m, n). Therefore, the formula
q (m, n) = m (2m, 2n) + m (2m + 1,2n) + m (2m, 2n + 1) + m (2m + 1,2n + 1)
= h (4m, 4n) + h (4m + 1,4n) + h (4m + 2,4n) + h (4m + 3,4n)
+ h (4m, 4n + 1) + h (4m + 1,4n + 1) + h (4m + 2,4n + 1) + h (4m + 3,4n + 1)
+ h (4m, 4n + 2) + h (4m + 1,4n + 2) + h (4m + 2,4n + 2) + h (4m + 3,4n + 2)
+ h (4m, 4n + 3) + h (4m + 1,4n + 3) + h (4m + 2,4n + 3) + h (4m + 3,4n + 3)
... (2)
Holds.

また、アドレス供給回路1には、データの書き込み時および読み出し時のいずれの場合も、水平アドレスHAおよび垂直アドレスVAの組合せ(HA,VA)が、例えば、
(0,0),(1,0),・・・,(511,0),
(0,1),(1,1),・・・,(511,1),



(511,0),(511,1),・・・,(511,511)
の順(順次走査に対応する順)で、クロックに同期して供給されるものとする。
The address supply circuit 1 has a combination of the horizontal address HA and the vertical address VA (HA, VA), for example, in both cases of data writing and reading, for example,
(0,0), (1,0), ..., (511,0),
(0, 1), (1, 1), ..., (511, 1),



(511,0), (511,1), ..., (511,511)
In this order (the order corresponding to the sequential scanning), the signals are supplied in synchronization with the clock.

さらに、9ビットの水平アドレスHAの各ビットを、その最下位ビットをha0として、ha1,ha2,・・・,ha8(ha8は最上位ビット)と表すとともに、9ビットの垂直アドレスVAの各ビットも同様に、その最下位ビットをva0として、va1,va2,・・・,va8(va8は最上位ビット)と表す。   Further, each bit of the 9-bit horizontal address HA is represented as ha1, ha2,..., Ha8 (ha8 is the most significant bit) with its least significant bit ha0, and each bit of the 9-bit vertical address VA. Similarly, va0 is represented as va1, va2,..., Va8 (va8 is the most significant bit) with the least significant bit as va0.

また、記憶装置への画像データの書き込み時には、RMW回路5には、第1階層の画像が、クロックに同期して順次走査されて供給され、これに伴い、アドレス供給回路1には、水平アドレスHAおよび垂直アドレスVAが、上述したように供給されるものとする。   At the time of writing image data to the storage device, the first layer image is sequentially scanned and supplied to the RMW circuit 5 in synchronization with the clock, and accordingly, the address supply circuit 1 receives the horizontal address. It is assumed that HA and vertical address VA are supplied as described above.

この場合、第1階層メモリ2へのアクセスは、次のようにして行われる。   In this case, access to the first hierarchy memory 2 is performed as follows.

即ち、図3に示すように、まず書き込み時(R/W信号が書き込みを表している場合)においては、アドレス供給回路1は、そこに供給される水平アドレスHAおよび垂直アドレスVAを、そのまま、第1階層メモリ2のアドレス端子(ADh,ADv)に供給する。一方、RMW回路5は、そこに供給される第1階層の画像データを、水平アドレスHAおよび垂直アドレスVAによって指定されている第1階層メモリ2のメモリセル(図示せず)に書き込む。以下、同様の処理が行われることで、512×512画素で構成される1画面分の第1階層の画像が、第1階層メモリ2に記憶される。即ち、これにより、第1階層メモリ2のアドレス
(0,0),(1,0),・・・,(511,0),
(0,1),(1,1),・・・,(511,1),
・・・
(511,0),(511,1),・・・,(511,511)
には、第1階層の画素(画素値)
h(0,0),h(1,0),・・・,h(511,0),
h(0,1),h(1,1),・・・,h(511,1),
・・・
h(511,0),h(511,1),・・・,h(511,511)
がそれぞれ記憶される。
That is, as shown in FIG. 3, at the time of writing (when the R / W signal indicates writing), the address supply circuit 1 uses the horizontal address HA and the vertical address VA supplied thereto as they are. This is supplied to the address terminals (ADh, ADv) of the first hierarchy memory 2. On the other hand, the RMW circuit 5 writes the first layer image data supplied thereto into the memory cells (not shown) of the first layer memory 2 specified by the horizontal address HA and the vertical address VA. Thereafter, the same processing is performed, so that the first layer image for one screen composed of 512 × 512 pixels is stored in the first layer memory 2. That is, as a result, the addresses (0, 0), (1, 0),..., (511, 0),
(0, 1), (1, 1), ..., (511, 1),
...
(511,0), (511,1), ..., (511,511)
Includes the first layer pixel (pixel value)
h (0,0), h (1,0),..., h (511,0),
h (0, 1), h (1, 1), ..., h (511, 1),
...
h (511,0), h (511,1),..., h (511,511)
Are stored respectively.

読み出し時(R/W信号が読み出しを表している場合)においては、アドレス供給回路1は、階層フラグが第1階層を表していれば、やはり、そこに供給される水平アドレスHAおよび垂直アドレスVAを、そのまま、第1階層メモリ2のアドレス端子に供給する。そして、RMW回路5は、水平アドレスHAおよび垂直アドレスVAによって指定されている第1階層メモリ2のメモリセルに記憶されている第1階層の画像データを読み出し、以下、同様の処理が行われることで、512×512画素で構成される1画面分の第1階層の画像が、第1階層メモリ2から読み出される。即ち、これにより、順次走査された第1階層の画像が出力される。   At the time of reading (when the R / W signal indicates reading), the address supply circuit 1 also supplies the horizontal address HA and the vertical address VA supplied thereto if the hierarchy flag indicates the first hierarchy. Is supplied to the address terminal of the first hierarchical memory 2 as it is. The RMW circuit 5 reads the first layer image data stored in the memory cell of the first layer memory 2 designated by the horizontal address HA and the vertical address VA, and the same processing is performed thereafter. Thus, a first layer image for one screen composed of 512 × 512 pixels is read from the first layer memory 2. That is, the first-layer image scanned sequentially is thereby output.

次に、第2階層メモリ3へのアクセスについて説明する。   Next, access to the second hierarchy memory 3 will be described.

まず書き込み時においては、アドレス供給回路1は、例えば、図4に示すように、そこに供給される水平アドレスHAの一部としての、そのうちの最下位ビットha0を除く上位8ビットha1乃至ha8と、垂直アドレスVAの一部としての、最下位ビットva0を除く上位8ビットva1乃至va8を、第2階層メモリ3のアドレス端子に供給する。さらに、アドレス供給回路1は、水平アドレスHAの最下位ビットha0と、垂直アドレスVAの最下位ビットva0を、制御信号として、RMW回路5に出力する。   First, at the time of writing, as shown in FIG. 4, for example, the address supply circuit 1 has higher 8 bits ha1 to ha8 excluding the least significant bit ha0 as a part of the horizontal address HA supplied thereto. The upper 8 bits va1 to va8 excluding the least significant bit va0 as a part of the vertical address VA are supplied to the address terminals of the second hierarchical memory 3. Further, the address supply circuit 1 outputs the least significant bit ha0 of the horizontal address HA and the least significant bit va0 of the vertical address VA to the RMW circuit 5 as control signals.

従って、例えば、図2にD1で示すような第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)が、RMW回路5に供給されるタイミングにおいては、いずれのタイミングでも、アドレス供給回路1は、第2階層メモリ3の同一アドレス(s,t)を指定する信号を、第2階層メモリ3に出力する。   Therefore, for example, 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer as indicated by D1 in FIG. At any timing supplied to the RMW circuit 5, the address supply circuit 1 outputs a signal designating the same address (s, t) of the second hierarchy memory 3 to the second hierarchy memory 3. .

一方、RMW回路5では、そこに供給される第1階層の画像データが、演算器13に入力される。演算器13には、第1階層の画像データの他、スイッチ12の出力が供給されるようになされており、演算器13は、それらを加算して、書き込み部14に供給するようになされている。   On the other hand, in the RMW circuit 5, the first layer image data supplied thereto is input to the computing unit 13. The computing unit 13 is supplied with the output of the switch 12 in addition to the first layer image data, and the computing unit 13 adds them and supplies them to the writing unit 14. Yes.

スイッチ12は、NORゲート15の出力に対応して、端子12aまたは12bのうちのいずれか一方を選択するようになされており、また、端子12aまたは12bには、読み出し部11の出力または0がそれぞれ供給されるようになされている。NORゲート15には、アドレス供給回路1からの水平アドレスHAの最下位ビットha0と、垂直アドレスVAの最下位ビットva0とが供給されるようになされており、従って、その出力は、最下位ビットha0およびva0がいずれも0の場合、即ち、第1階層の2×2画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの左上の画素h(2s,2t)が、演算器13に供給されるタイミングの場合のみ、Hレベルとなり、他の場合はLレベルとなるようになされている。   The switch 12 selects one of the terminals 12a and 12b corresponding to the output of the NOR gate 15, and the terminal 12a or 12b receives the output of the reading unit 11 or 0. Each is supplied. The NOR gate 15 is supplied with the least significant bit ha0 of the horizontal address HA from the address supply circuit 1 and the least significant bit va0 of the vertical address VA. Therefore, the output of the NOR gate 15 is the least significant bit. When both ha0 and va0 are 0, that is, out of 2 × 2 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer The pixel h (2s, 2t) at the upper left is set to the H level only at the timing when it is supplied to the calculator 13, and is set to the L level in other cases.

そして、スイッチ12は、NORゲート15の出力がLレベルまたはHレベルのとき、端子12aまたは12bをそれぞれ選択するようになされている。   The switch 12 selects the terminal 12a or 12b when the output of the NOR gate 15 is L level or H level.

また、読み出し部11は、アドレス供給回路1が出力する信号に対応するアドレスに記憶されているデータ(記憶データ)を読み出すようになされている。   The reading unit 11 reads data (stored data) stored at an address corresponding to a signal output from the address supply circuit 1.

従って、第1階層の2×2画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの左上の画素h(2s,2t)が演算器13に供給されるタイミングにおいては、読み出し部11において、第2階層メモリ3のアドレス(s,t)に記憶されたデータが読み出され、端子12aに供給されるが、この場合、水平アドレスHAの最下位ビットha0、および垂直アドレスVAの最下位ビットva0はいずれも0であるから、NORゲート15の出力はHレベルとなり、スイッチ12は端子12bを選択する。   Accordingly, the upper left pixel h (2s, 2t) among the 2 × 2 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer is obtained. At the timing supplied to the arithmetic unit 13, the data stored in the address (s, t) of the second hierarchical memory 3 is read by the reading unit 11 and supplied to the terminal 12 a. Since the least significant bit ha0 of the address HA and the least significant bit va0 of the vertical address VA are both 0, the output of the NOR gate 15 becomes H level, and the switch 12 selects the terminal 12b.

その結果、演算器13には、スイッチ12を介して0が供給される。   As a result, 0 is supplied to the calculator 13 via the switch 12.

演算器13では、この0と第1階層の画素h(2s,2t)とが加算され、その加算値(0+h(2s,2t))が、書き込み部14に供給される。書き込み部14は、演算器13の出力を、アドレス供給回路1が出力する信号に対応するアドレス、即ち、第2階層メモリ3のアドレス(s,t)に書き込む。   In the arithmetic unit 13, the 0 and the first-layer pixel h (2s, 2t) are added, and the added value (0 + h (2s, 2t)) is supplied to the writing unit 14. The writing unit 14 writes the output of the arithmetic unit 13 to the address corresponding to the signal output from the address supply circuit 1, that is, the address (s, t) of the second hierarchy memory 3.

次に、第1階層の2×2画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの左上の画素h(2s,2t)の右隣の画素h(2s+1,2t)が演算器13に供給されるタイミングにおいては、読み出し部11において、やはり、第2階層メモリ3のアドレス(s,t)に記憶されたデータ(ここでは、0+h(2s,2t))が読み出され、端子12aに供給される。   Next, the upper left pixel h (2s, 2t) of the 2 × 2 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer At the timing at which the pixel h (2s + 1, 2t) on the right side of the signal is supplied to the calculator 13, the data stored in the address (s, t) of the second hierarchical memory 3 in the reading unit 11 (here, , 0 + h (2s, 2t)) is read and supplied to the terminal 12a.

一方、この場合、水平アドレスHAの最下位ビットha0は1で、垂直アドレスVAの最下位ビットva0は0となっているから、NORゲート15の出力はLレベルとなり、スイッチ12は端子12aを選択する。   On the other hand, in this case, since the least significant bit ha0 of the horizontal address HA is 1 and the least significant bit va0 of the vertical address VA is 0, the output of the NOR gate 15 becomes L level, and the switch 12 selects the terminal 12a. To do.

その結果、演算器13には、スイッチ12を介して、読み出し部11において読み出されたデータ(記憶データ)(ここでは、0+h(2s,2t))が供給される。   As a result, the data (stored data) read in the reading unit 11 (here, 0 + h (2s, 2t)) is supplied to the arithmetic unit 13 via the switch 12.

演算器13では、スイッチ12を介して供給されるデータと、第1階層の画素h(2s+1,2t)とが加算され、その加算値(0+h(2s,2t)+h(2s+1,2t))が、書き込み部14に供給される。書き込み部14は、演算器13の出力を、アドレス供給回路1が出力する信号に対応するアドレス、即ち、第2階層メモリ3のアドレス(s,t)に書き込む。   In the arithmetic unit 13, the data supplied via the switch 12 is added to the pixel h (2s + 1, 2t) in the first layer, and the added value (0 + h (2s, 2t) + h (2s + 1, 2t)) is obtained. , Supplied to the writing unit 14. The writing unit 14 writes the output of the arithmetic unit 13 to the address corresponding to the signal output from the address supply circuit 1, that is, the address (s, t) of the second hierarchy memory 3.

その後、第1階層の上から2t+1ライン目の画像データの供給が開始され、第1階層の2×2画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの左下の画素h(2s,2t+1)が、演算器13に供給されると、読み出し部11において、やはり、第2階層メモリ3のアドレス(s,t)に記憶されたデータ(ここでは、0+h(2s,2t)+h(2s+1,2t))が読み出され、端子12aに供給される。   Thereafter, the supply of image data on the 2t + 1 line from the top of the first layer is started, and 2 × 2 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h of the first layer are started. When the lower left pixel h (2s, 2t + 1) of (2s + 1, 2t + 1) is supplied to the calculator 13, it is also stored in the address (s, t) of the second hierarchical memory 3 in the reading unit 11. The data (here, 0 + h (2s, 2t) + h (2s + 1, 2t)) is read and supplied to the terminal 12a.

一方、この場合、水平アドレスHAの最下位ビットha0は0で、垂直アドレスVAの最下位ビットva0は1となっているから、NORゲート15の出力はLレベルとなり、スイッチ12は端子12aを選択する。   On the other hand, in this case, since the least significant bit ha0 of the horizontal address HA is 0 and the least significant bit va0 of the vertical address VA is 1, the output of the NOR gate 15 becomes L level, and the switch 12 selects the terminal 12a. To do.

その結果、演算器13には、スイッチ12を介して、読み出し部11において読み出されたデータ(記憶データ)(ここでは、0+h(2s,2t)+h(2s+1,2t))が供給される。   As a result, the data (stored data) read in the reading unit 11 (here, 0 + h (2s, 2t) + h (2s + 1, 2t)) is supplied to the arithmetic unit 13 via the switch 12.

演算器13では、スイッチ12を介して供給されるデータと、第1階層の画素h(2s,2t+1)とが加算され、その加算値(0+h(2s,2t)+h(2s+1,2t)+h(2s,2t+1))が、書き込み部14に供給される。書き込み部14は、演算器13の出力を、アドレス供給回路1が出力する信号に対応するアドレス、即ち、第2階層メモリ3のアドレス(s,t)に書き込む。   The arithmetic unit 13 adds the data supplied via the switch 12 and the pixel h (2s, 2t + 1) in the first layer and adds the value (0 + h (2s, 2t) + h (2s + 1, 2t) + h ( 2s, 2t + 1)) is supplied to the writing unit 14. The writing unit 14 writes the output of the arithmetic unit 13 to the address corresponding to the signal output from the address supply circuit 1, that is, the address (s, t) of the second hierarchy memory 3.

次に、第1階層の2×2画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの左下の画素h(2s,2t+1)の右隣の画素h(2s+1,2t+1)が、演算器13に供給されると、読み出し部11において、やはり、第2階層メモリ3のアドレス(s,t)に記憶されたデータ(ここでは、0+h(2s,2t)+h(2s+1,2t)+h(2s,2t+1))が読み出され、端子12aに供給される。   Next, the lower left pixel h (2s, 2t + 1) of 2 × 2 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer When the pixel h (2s + 1, 2t + 1) on the right side is supplied to the computing unit 13, the data stored in the address (s, t) of the second hierarchy memory 3 (here, 0 + h (2s, 2t) + h (2s + 1, 2t) + h (2s, 2t + 1)) is read and supplied to the terminal 12a.

一方、この場合、水平アドレスHAの最下位ビットha0および垂直アドレスVAの最下位ビットva0は、いずれも1となっているから、NORゲート15の出力はLレベルとなり、スイッチ12は端子12aを選択する。   On the other hand, in this case, since the least significant bit ha0 of the horizontal address HA and the least significant bit va0 of the vertical address VA are both 1, the output of the NOR gate 15 becomes L level, and the switch 12 selects the terminal 12a. To do.

その結果、演算器13には、スイッチ12を介して、読み出し部11において読み出されたデータ(記憶データ)(ここでは、0+h(2s,2t)+h(2s+1,2t)+h(2s,2t+1))が供給される。   As a result, the arithmetic unit 13 receives the data (stored data) read by the reading unit 11 via the switch 12 (here, 0 + h (2s, 2t) + h (2s + 1, 2t) + h (2s, 2t + 1)). ) Is supplied.

演算器13では、スイッチ12を介して供給されるデータと、第1階層の画素h(2s+1,2t+1)とが加算され、その加算値(0+h(2s,2t)+h(2s+1,2t)+h(2s,2t+1)+h(2s+1,2t+1))が、書き込み部14に供給される。書き込み部14は、演算器13の出力を、アドレス供給回路1が出力する信号に対応するアドレス、即ち、第2階層メモリ3のアドレス(s,t)に書き込む。   The computing unit 13 adds the data supplied via the switch 12 and the pixel h (2s + 1, 2t + 1) in the first layer and adds the value (0 + h (2s, 2t) + h (2s + 1, 2t) + h ( 2s, 2t + 1) + h (2s + 1, 2t + 1)) is supplied to the writing unit 14. The writing unit 14 writes the output of the arithmetic unit 13 to the address corresponding to the signal output from the address supply circuit 1, that is, the address (s, t) of the second hierarchy memory 3.

従って、第2階層メモリ3のアドレス(s,t)には、最終的には、式h(2s,2t)+h(2s+1,2t)+h(2s,2t+1)+h(2s+1,2t+1)で表される加算値、即ち、上述の式(1)に示した第2階層の画素(画素値)m(s,t)が記憶されることになる。   Therefore, the address (s, t) of the second hierarchical memory 3 is finally expressed by the equation h (2s, 2t) + h (2s + 1, 2t) + h (2s, 2t + 1) + h (2s + 1, 2t + 1). In other words, the second-layer pixel (pixel value) m (s, t) shown in the above equation (1) is stored.

以上のようにして、第2階層メモリ3には、256×256画素で1画面が構成される第2階層の画像が記憶される。   As described above, the second hierarchy memory 3 stores the second hierarchy image in which one screen is configured by 256 × 256 pixels.

以上のように、第1階層の画像データを、水平アドレスHAおよび垂直アドレスVAによって指定される第1階層メモリ2のアドレス(HA,VA)に書き込むとともに、水平アドレスHAおよび垂直アドレスVAの一部ha1乃至ha8およびva1乃至va8によって指定される第2階層メモリのアドレスから、そこに記憶されている記憶データを読み出し、その記憶データと第1階層の画像データとを加算する処理を行い、その加算値(第1の処理データ)を記憶データが記憶されていた第2階層メモリのアドレスに書き込むようにしたので、第1階層の画像データを記憶するのと同時に、第2階層の画像データを生成して記憶することができる。即ち、リアルタイムで、第2階層の画像データを得ることができる。   As described above, the first layer image data is written to the address (HA, VA) of the first layer memory 2 specified by the horizontal address HA and the vertical address VA, and a part of the horizontal address HA and the vertical address VA. The storage data stored in the second hierarchical memory address designated by ha1 to ha8 and va1 to va8 is read out, and the storage data and the first hierarchical image data are added, and the addition is performed. Since the value (first processing data) is written to the address of the second hierarchy memory where the stored data was stored, the image data of the second hierarchy is generated simultaneously with the storage of the image data of the first hierarchy And memorize it. That is, the image data of the second hierarchy can be obtained in real time.

さらに、この場合、第2階層の画像を記憶する第2階層メモリ3が、従来のラインディレイを行う回路の役割をも果たしており、従って、そのような回路を設ける必要がないので、装置の小型化を図ることができる。   Further, in this case, the second layer memory 3 for storing the second layer image also serves as a circuit for performing a conventional line delay. Therefore, it is not necessary to provide such a circuit, so that the size of the apparatus can be reduced. Can be achieved.

次に、第2階層メモリ3からの第2階層の画像の読み出しについて説明する。   Next, reading of the second layer image from the second layer memory 3 will be described.

読み出し時においては、アドレス供給回路1は、階層フラグが第2階層を表している場合、やはり、そこに供給される水平アドレスHAまたは垂直アドレスVAのそれぞれ上位8ビットha1乃至ha8またはva1乃至va8を、第2階層メモリ2のアドレス端子に供給するとともに、それぞれの最下位ビットha0またはva0を、制御信号として、RMW回路5に出力する。   At the time of reading, when the hierarchy flag indicates the second hierarchy, the address supply circuit 1 again uses the upper 8 bits ha1 to ha8 or va1 to va8 of the horizontal address HA or the vertical address VA supplied thereto, respectively. Are supplied to the address terminals of the second hierarchical memory 2, and the least significant bits ha0 or va0 are output to the RMW circuit 5 as control signals.

一方、RMW回路5では、読み出し部11に対して、階層フラグ、R/W信号、およびNORゲート15の出力が供給されるようになされており、読み出し部11は、R/W信号が読み出しを表しており、かつ階層フラグが第2階層を表している場合には、例えば、NORゲート15の出力がHレベルのときだけ、アドレス供給回路1が出力する信号に対応するアドレスに記憶されている第2階層の画像データを読み出して出力する。   On the other hand, in the RMW circuit 5, the hierarchy flag, the R / W signal, and the output of the NOR gate 15 are supplied to the reading unit 11, and the reading unit 11 reads the R / W signal. When the level flag indicates the second level, for example, only when the output of the NOR gate 15 is at the H level, it is stored in the address corresponding to the signal output from the address supply circuit 1. Read and output the second layer image data.

即ち、上述したことから、水平アドレスHAと垂直アドレスVAとの組が(2s,2t),(2s+1,2t),(2s,2t+1),(2s+1,2t+1)の場合は、アドレス供給回路1からは、いずれも同一のアドレス(s,t)が、第2階層メモリ3に対して出力される。従って、単純に、アドレス供給回路1が出力する信号に対応する第2階層メモリ3のアドレスからデータを読み出したのでは、同一のデータが4回重複して読み出されることになる。   That is, from the above, when the set of the horizontal address HA and the vertical address VA is (2s, 2t), (2s + 1, 2t), (2s, 2t + 1), (2s + 1, 2t + 1), the address supply circuit 1 , The same address (s, t) is output to the second hierarchical memory 3. Therefore, when data is simply read from the address of the second hierarchical memory 3 corresponding to the signal output from the address supply circuit 1, the same data is read four times.

そこで、読み出し部11では、水平アドレスHAと垂直アドレスVAとの組が(2s,2t),(2s+1,2t),(2s,2t+1),(2s+1,2t+1)のうちの、例えば、(2s,2t)となるときだけ、即ち、NORゲート15の出力がHレベルのときだけ、第2階層メモリ3のアドレス(s,t)から、第2階層の画素(画素値)m(s,t)を読み出すようになっている。   Therefore, in the reading unit 11, a set of the horizontal address HA and the vertical address VA is (2s, 2t), (2s + 1, 2t), (2s, 2t + 1), (2s + 1, 2t + 1), for example, (2s, 2t), that is, only when the output of the NOR gate 15 is at the H level, from the address (s, t) of the second hierarchy memory 3, the pixel (pixel value) m (s, t) of the second hierarchy Is read out.

読み出し部11が読み出した第2階層の画像データは、スイッチ16に供給される。スイッチ16は、R/W信号が読み出しを表している場合のみオンになり、他の場合はオフになっており、従って、いまの場合、スイッチ16はオンになっているから、読み出し部11によって読み出された第2階層の画像データは、スイッチ16を介して出力される。   The second layer image data read by the reading unit 11 is supplied to the switch 16. The switch 16 is turned on only when the R / W signal indicates reading, and is turned off in other cases. Therefore, in this case, the switch 16 is turned on. The read second layer image data is output via the switch 16.

以上のようにして、第2階層メモリ3からは、そこに記憶されている256×256画素で構成される1画面分の第2階層の画像が読み出される。即ち、これにより、順次走査された第2階層の画像が出力される。   As described above, the second hierarchy image stored in the second hierarchy memory 3 is read out from the second hierarchy image for one screen composed of 256 × 256 pixels. That is, the second-level image scanned sequentially is output.

次に、第3階層メモリ4へのアクセスについて説明する。   Next, access to the third hierarchy memory 4 will be described.

まず書き込み時においては、アドレス供給回路1は、例えば、図5に示すように、そこに供給される水平アドレスHAの一部としての、そのうちの下位2ビットha0およびha1を除く上位7ビットha2乃至ha8と、垂直アドレスVAの一部としての、下位2ビットva0およびva1を除く上位7ビットva2乃至va8を、第3階層メモリ4のアドレス端子に供給する。さらに、アドレス供給回路1は、水平アドレスHAの下位2ビットha0およびha1と、垂直アドレスVAの下位2ビットva0およびva1を、制御信号として、RMW回路5に出力する。   First, at the time of writing, as shown in FIG. 5, for example, the address supply circuit 1 uses the upper 7 bits ha2 to ha2 and excluding the lower 2 bits ha0 and ha1 as part of the horizontal address HA supplied thereto. ha8 and the upper 7 bits va2 to va8 excluding the lower 2 bits va0 and va1 as a part of the vertical address VA are supplied to the address terminals of the third hierarchy memory 4. Furthermore, the address supply circuit 1 outputs the lower 2 bits ha0 and ha1 of the horizontal address HA and the lower 2 bits va0 and va1 of the vertical address VA to the RMW circuit 5 as control signals.

従って、例えば、図2にD2で示すような第1階層の4×4の16画素h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+1,4n+1),h(4m+2,4n+1),h(4m+3,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+1,4n+3),h(4m+2,4n+3),h(4m+3,4n+3)が、RMW回路5に供給されるタイミングにおいては、いずれのタイミングでも、アドレス供給回路1は、第3階層メモリ4の同一アドレス(m,n)を指定する信号を出力する。   Therefore, for example, as shown by D2 in FIG. 2, 4 × 4 16 pixels h (4m, 4n), h (4m + 1, 4n), h (4m + 2, 4n), h (4m + 3, 4n), h (4m, 4n + 1), h (4m + 1, 4n + 1), h (4m + 2, 4n + 1), h (4m + 3, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2), h (4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 1, 4n + 3), h (4m + 2, 4n + 3), h (4m + 3, 4n + 3) are supplied to the RMW circuit 5 at any timing. The address supply circuit 1 outputs a signal designating the same address (m, n) of the third hierarchy memory 4.

一方、RMW回路5では、そこに供給される第1階層の画像データが、演算器23に入力される。演算器23には、第1階層の画像データの他、スイッチ22の出力が供給されるようになされており、演算器23は、それらを加算して、書き込み部24に供給するようになされている。   On the other hand, in the RMW circuit 5, the first layer image data supplied thereto is input to the computing unit 23. The computing unit 23 is supplied with the output of the switch 22 in addition to the image data of the first layer, and the computing unit 23 adds them and supplies them to the writing unit 24. Yes.

スイッチ22は、NORゲート25の出力に対応して、端子22aまたは22bのうちのいずれか一方を選択するようになされており、また、端子22aまたは22bには、読み出し部21の出力または0がそれぞれ供給されるようになされている。NORゲート25には、アドレス供給回路1からの水平アドレスHAの下位2ビットha0およびha1と、垂直アドレスVAの下位2ビットva0およびva1とが供給されるようになされており、従って、その出力は、下位2ビットha0およびha1並びにva0およびva1がいずれも0の場合、即ち、第1階層の4×4画素h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+1,4n+1),h(4m+2,4n+1),h(4m+3,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+1,4n+3),h(4m+2,4n+3),h(4m+3,4n+3)のうちの左上の画素h(4m,4n)が、演算器23に供給されるタイミングの場合のみ、Hレベルとなり、他の場合はLレベルとなるようになされている。   The switch 22 selects one of the terminals 22a and 22b corresponding to the output of the NOR gate 25. The terminal 22a or 22b receives the output of the reading unit 21 or 0. Each is supplied. The NOR gate 25 is supplied with the lower 2 bits ha0 and ha1 of the horizontal address HA from the address supply circuit 1 and the lower 2 bits va0 and va1 of the vertical address VA. When the lower 2 bits ha0 and ha1 and va0 and va1 are both 0, that is, 4 × 4 pixels h (4m, 4n), h (4m + 1, 4n), h (4m + 2, 4n), h in the first layer (4m + 3, 4n), h (4m, 4n + 1), h (4m + 1, 4n + 1), h (4m + 2, 4n + 1), h (4m + 3, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2), h ( 4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 1, 4n + 3), h (4m + 2, 4n + 3), h (4m 3, 4n + 3) top left pixel h (4m of, 4n) is the case of the timing to be supplied to the arithmetic unit 23 only, the H level, in other cases have been made so as to be L level.

そして、スイッチ22は、NORゲート25の出力がLレベルまたはHレベルのとき、端子22aまたは22bをそれぞれ選択するようになされている。   The switch 22 selects the terminal 22a or 22b when the output of the NOR gate 25 is L level or H level.

また、読み出し部21は、アドレス供給回路1が出力する信号に対応するアドレスに記憶されているデータ(記憶データ)を読み出すようになされている。   The reading unit 21 reads data (stored data) stored at an address corresponding to a signal output from the address supply circuit 1.

従って、第1階層の画素h(4m,4n)が演算器23に供給されるタイミングにおいては、読み出し部21において、第3階層メモリ4のアドレス(m,n)に記憶されたデータが読み出され、端子22aに供給されるが、この場合、水平アドレスHAの下位2ビットha0およびha1、並びに垂直アドレスVAの下位2ビットva0およびva1はいずれも0であるから、NORゲート25の出力はHレベルとなり、スイッチ22は端子22bを選択する。   Therefore, at the timing when the pixel h (4m, 4n) in the first hierarchy is supplied to the computing unit 23, the data stored at the address (m, n) in the third hierarchy memory 4 is read out by the readout unit 21. In this case, since the lower 2 bits ha0 and ha1 of the horizontal address HA and the lower 2 bits va0 and va1 of the vertical address VA are both 0, the output of the NOR gate 25 is H The switch 22 selects the terminal 22b.

その結果、演算器23には、スイッチ22を介して0が供給される。   As a result, 0 is supplied to the computing unit 23 via the switch 22.

演算器23では、この0と第1階層の画素h(4m,4n)とが加算され、その加算値(0+h(4m,4n))が、書き込み部24に供給される。書き込み部24は、演算器23の出力を、アドレス供給回路1が出力する信号に対応するアドレス、即ち、第3階層メモリ4のアドレス(m,n)に書き込む。   In the computing unit 23, 0 and the pixel h (4m, 4n) of the first layer are added, and the added value (0 + h (4m, 4n)) is supplied to the writing unit 24. The writing unit 24 writes the output of the arithmetic unit 23 to the address corresponding to the signal output from the address supply circuit 1, that is, the address (m, n) of the third hierarchy memory 4.

次に、第1階層の画素h(4m,4n)の右隣の画素h(4m+1,4n)が演算器23に供給されるタイミングにおいては、読み出し部21において、やはり、第3階層メモリ4のアドレス(m,n)に記憶されたデータ(ここでは、0+h(4m,4n))が読み出され、端子22aに供給される。   Next, at the timing when the pixel h (4m + 1, 4n) on the right side of the pixel h (4m, 4n) in the first hierarchy is supplied to the computing unit 23, the readout unit 21 again stores the third hierarchy memory 4 in the third hierarchy memory 4. Data stored in the address (m, n) (here, 0 + h (4m, 4n)) is read and supplied to the terminal 22a.

一方、この場合、水平アドレスHAの下位2ビットha0またはha1はそれぞれ1または0で、垂直アドレスVAの下位2ビットva0およびva1はいずれも0となっているから、NORゲート25の出力はLレベルとなり、スイッチ22は端子22aを選択する。   On the other hand, in this case, the lower 2 bits ha0 or ha1 of the horizontal address HA are 1 or 0, respectively, and the lower 2 bits va0 and va1 of the vertical address VA are both 0. Therefore, the output of the NOR gate 25 is L level. Thus, the switch 22 selects the terminal 22a.

その結果、演算器23には、スイッチ22を介して、読み出し部21において読み出されたデータ(記憶データ)(ここでは、0+h(4m,4n))が供給される。   As a result, the data (stored data) read in the reading unit 21 (here, 0 + h (4m, 4n)) is supplied to the computing unit 23 via the switch 22.

演算器23では、スイッチ22を介して供給されるデータと、第1階層の画素h(4m+1,4n)とが加算され、その加算値(0+h(4m,4n)+h(4m+1,4n))が、書き込み部24に供給される。書き込み部24は、演算器23の出力を、アドレス供給回路1が出力する信号に対応するアドレス、即ち、第3階層メモリ4のアドレス(m,n)に書き込む。   In the computing unit 23, the data supplied via the switch 22 and the pixel h (4m + 1, 4n) of the first layer are added, and the added value (0 + h (4m, 4n) + h (4m + 1, 4n)) is obtained. , Supplied to the writing unit 24. The writing unit 24 writes the output of the arithmetic unit 23 to the address corresponding to the signal output from the address supply circuit 1, that is, the address (m, n) of the third hierarchy memory 4.

次に、第1階層の画素h(4m+1,4n)の右隣の画素h(4m+2,4n)が演算器23に供給されるタイミングにおいては、読み出し部21において、やはり、第3階層メモリ4のアドレス(m,n)に記憶されたデータ(ここでは、0+h(4m,4n)+h(4m+1,4n))が読み出され、端子22aに供給される。   Next, at the timing when the pixel h (4m + 2, 4n) on the right side of the pixel h (4m + 1, 4n) in the first hierarchy is supplied to the computing unit 23, the readout unit 21 again stores the third hierarchy memory 4 in the third hierarchy memory 4. Data stored in the address (m, n) (here, 0 + h (4m, 4n) + h (4m + 1, 4n)) is read and supplied to the terminal 22a.

一方、この場合、水平アドレスHAの下位2ビットha0またはha1はそれぞれ0または1で、垂直アドレスVAの下位2ビットva0およびva1はいずれも0となっているから、NORゲート25の出力はLレベルとなり、スイッチ22は端子22aを選択する。   On the other hand, in this case, since the lower 2 bits ha0 or ha1 of the horizontal address HA are 0 or 1, respectively, and the lower 2 bits va0 and va1 of the vertical address VA are both 0, the output of the NOR gate 25 is L level. Thus, the switch 22 selects the terminal 22a.

その結果、演算器23には、スイッチ22を介して、読み出し部21において読み出されたデータ(記憶データ)(ここでは、0+h(4m,4n)+h(4m+1,4n))が供給される。   As a result, the data (stored data) read in the reading unit 21 (here, 0 + h (4m, 4n) + h (4m + 1, 4n)) is supplied to the computing unit 23 via the switch 22.

演算器23では、スイッチ22を介して供給されるデータと、第1階層の画素h(4m+2,4n)とが加算され、その加算値(0+h(4m,4n)+h(4m+1,4n)+h(4m+2,4n))が、書き込み部24に供給される。書き込み部24は、演算器23の出力を、アドレス供給回路1が出力する信号に対応するアドレス、即ち、第3階層メモリ4のアドレス(m,n)に書き込む。   In the arithmetic unit 23, the data supplied via the switch 22 and the pixel h (4m + 2, 4n) of the first layer are added, and the added value (0 + h (4m, 4n) + h (4m + 1, 4n) + h ( 4m + 2, 4n)) is supplied to the writing unit 24. The writing unit 24 writes the output of the arithmetic unit 23 to the address corresponding to the signal output from the address supply circuit 1, that is, the address (m, n) of the third hierarchy memory 4.

以下、第1階層の画素h(4m+3,4n),h(4m,4n+1),h(4m+1,4n+1),h(4m+2,4n+1),h(4m+3,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+1,4n+3),h(4m+2,4n+3),h(4m+3,4n+3)が、演算器23に供給されるタイミングにおいては、いずれにおいても、上述の場合と同様の処理が行われ、これにより、第3階層メモリ4のアドレス(m,n)には、最終的には、上述の式(2)に示した第3階層の画素(画素値)q(m,n)が記憶されることになる。   Hereinafter, pixels h (4m + 3, 4n), h (4m, 4n + 1), h (4m + 1, 4n + 1), h (4m + 2, 4n + 1), h (4m + 3, 4n + 1), h (4m, 4n + 2), h in the first layer (4m + 1, 4n + 2), h (4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 1, 4n + 3), h (4m + 2, 4n + 3), h (4m + 3, 4n + 3) In any case, the same processing as described above is performed at the timing supplied to the device 23, and as a result, the address (m, n) of the third hierarchical memory 4 is finally set to the above-described case. The pixel (pixel value) q (m, n) in the third hierarchy shown in Expression (2) is stored.

以上のようにして、第3階層メモリ4には、128×128画素で1画面が構成される第3階層の画像が記憶される。   As described above, the third hierarchy memory 4 stores the third hierarchy image in which one screen is composed of 128 × 128 pixels.

従って、第1階層の画像データを記憶するのと同時に、第2階層の画像データ、さらには、第3階層の画像データを生成して記憶することができる。即ち、リアルタイムで、第2および第3階層の画像データを得ることができる。   Accordingly, at the same time as storing the image data of the first layer, the image data of the second layer, and further, the image data of the third layer can be generated and stored. That is, the second and third layer image data can be obtained in real time.

さらに、この場合においても、第3階層の画像を記憶する第3階層メモリ4が、従来のラインディレイを行う回路の役割をも果たしており、従って、そのような回路を設ける必要がないので、装置の小型化を図ることができる。   In this case as well, the third layer memory 4 for storing the third layer image also serves as a circuit for performing a conventional line delay, and therefore it is not necessary to provide such a circuit. Can be miniaturized.

次に、第3階層メモリ4からの第3階層の画像の読み出しについて説明する。   Next, reading of the third layer image from the third layer memory 4 will be described.

読み出し時においては、アドレス供給回路1は、階層フラグが第3階層を表している場合、やはり、そこに供給される水平アドレスHAまたは垂直アドレスVAのそれぞれ上位7ビットha2乃至ha8またはva2乃至va8を、第2階層メモリ2のアドレス端子に供給するとともに、それぞれの下位2ビットha0およびha1またはva0およびva1を、制御信号として、RMW回路5に出力する。   At the time of reading, when the hierarchy flag indicates the third hierarchy, the address supply circuit 1 again uses the upper 7 bits ha2 to ha8 or va2 to va8 of the horizontal address HA or the vertical address VA supplied thereto, respectively. The lower two bits ha0 and ha1 or va0 and va1 are output to the RMW circuit 5 as control signals.

一方、RMW回路5では、読み出し部21に対して、階層フラグ、R/W信号、およびNORゲート25の出力が供給されるようになされており、読み出し部21は、R/W信号が読み出しを表しており、かつ階層フラグが第3階層を表している場合には、例えば、NORゲート25の出力がHレベルのときだけ、アドレス供給回路1が出力する信号に対応するアドレスに記憶されている第3階層の画像データを読み出して出力する。   On the other hand, in the RMW circuit 5, the hierarchy flag, the R / W signal, and the output of the NOR gate 25 are supplied to the reading unit 21, and the reading unit 21 reads the R / W signal. In the case where the level flag indicates the third level, for example, only when the output of the NOR gate 25 is at the H level, it is stored in the address corresponding to the signal output from the address supply circuit 1. Read and output the third layer image data.

即ち、上述したことから、水平アドレスHAと垂直アドレスVAとの組が、(4m,4n),(4m+1,4n),(4m+2,4n),(4m+3,4n),(4m,4n+1),(4m+1,4n+1),(4m+2,4n+1),(4m+3,4n+1),(4m,4n+2),(4m+1,4n+2),(4m+2,4n+2),(4m+3,4n+2),(4m,4n+3),(4m+1,4n+3),(4m+2,4n+3),(4m+3,4n+3)の場合は、アドレス供給回路1からは、いずれも同一のアドレス(m,n)が出力される。従って、単純に、アドレス供給回路1が出力する信号に対応する第3階層メモリ4のアドレスからデータを読み出したのでは、同一のデータが16回重複して読み出されることになる。   That is, from the above, the set of the horizontal address HA and the vertical address VA is (4m, 4n), (4m + 1, 4n), (4m + 2, 4n), (4m + 3, 4n), (4m, 4n + 1), ( 4m + 1, 4n + 1), (4m + 2, 4n + 1), (4m + 3, 4n + 1), (4m, 4n + 2), (4m + 1, 4n + 2), (4m + 2, 4n + 2), (4m + 3, 4n + 2), (4m, 4n + 3), (4m + 1, In the case of (4n + 3), (4m + 2, 4n + 3), (4m + 3, 4n + 3), the address supply circuit 1 outputs the same address (m, n). Therefore, simply reading out data from the address of the third hierarchical memory 4 corresponding to the signal output from the address supply circuit 1, the same data is read out 16 times.

そこで、読み出し部21では、水平アドレスHAと垂直アドレスVAとの組が、上述のうちの、例えば、(4m,4n)となるときだけ、即ち、NORゲート25の出力がHレベルのときだけ、第3階層メモリ4のアドレス(m,n)から、第3階層の画素(画素値)m(m,n)を読み出すようになっている。   Therefore, in the reading unit 21, only when the set of the horizontal address HA and the vertical address VA is, for example, (4m, 4n), that is, only when the output of the NOR gate 25 is at the H level. The third layer pixel (pixel value) m (m, n) is read from the address (m, n) of the third layer memory 4.

読み出し部21が読み出した第3階層の画像データは、スイッチ26に供給される。スイッチ26は、R/W信号が読み出しを表している場合のみオンになり、他の場合はオフになっており、従って、いまの場合、スイッチ26はオンになっているから、読み出し部21によって読み出された第3階層の画像データは、スイッチ26を介して出力される。   The third layer image data read by the reading unit 21 is supplied to the switch 26. The switch 26 is turned on only when the R / W signal indicates reading, and is turned off in other cases. Therefore, in this case, the switch 26 is turned on. The read third layer image data is output via the switch 26.

以上のようにして、第3階層メモリ4からは、そこに記憶されている128×128画素で構成される1画面分の第3階層の画像が読み出される。即ち、これにより、順次走査された第3階層の画像が出力される。   As described above, from the third hierarchy memory 4, the image of the third hierarchy for one screen composed of 128 × 128 pixels stored therein is read out. That is, the third-layer image scanned sequentially is output.

なお、第2階層メモリ3からの第2階層の画像データの読み出しは、上述したようにして行う他、例えば、アドレス供給回路1から、水平アドレスHAの下位8ビットha0乃至ha7と、垂直アドレスVAの下位8ビットva0乃至va7を、第2階層メモリ3のアドレスとして与えることにより行うことも可能である。同様に、第3階層メモリ4からの第3階層の画像データの読み出しも、アドレス供給回路1から、水平アドレスHAの下位7ビットha0乃至ha6と、垂直アドレスVAの下位7ビットva0乃至va6を、第3階層メモリ4のアドレスとして与えることにより行うことが可能である。   The reading of the image data of the second hierarchy from the second hierarchy memory 3 is performed as described above. For example, the lower 8 bits ha0 to ha7 of the horizontal address HA and the vertical address VA are supplied from the address supply circuit 1. The lower 8 bits va0 to va7 can be given as addresses of the second hierarchical memory 3. Similarly, the reading of the third layer image data from the third layer memory 4 is also performed by reading from the address supply circuit 1 the lower 7 bits ha0 to ha6 of the horizontal address HA and the lower 7 bits va0 to va6 of the vertical address VA. This can be done by giving it as the address of the third hierarchy memory 4.

次に、図9で説明したことから、第1階層の隣接する2×2画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの1つである、例えば、右下の画素h(2s+1,2t+1)は、残りの第1階層の画素h(2s,2t),h(2s+1,2t),h(2s,2t+1)と、それらの加算値である第2階層の画素m(s,t)とから求めることができる。   Next, from what has been described with reference to FIG. 9, among the adjacent 2 × 2 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), and h (2s + 1, 2t + 1) in the first layer For example, the lower right pixel h (2s + 1, 2t + 1) is the remaining first layer pixel h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), and Can be obtained from the pixel m (s, t) in the second layer, which is the added value of.

即ち、第1階層の画素h(2s+1,2t+1)は、式
h(2s+1,2t+1)=m(s,t)-(h(2s,2t)+h(2s+1,2t)+h(2s,2t+1))
によって求めることができる。
That is, the pixel h (2s + 1, 2t + 1) in the first layer
h (2s + 1,2t + 1) = m (s, t)-(h (2s, 2t) + h (2s + 1,2t) + h (2s, 2t + 1))
Can be obtained.

従って、第1階層の画素h(2s+1,2t+1)は記憶しておかなくても、上式から得ることができる。   Therefore, the pixel h (2s + 1, 2t + 1) in the first layer can be obtained from the above equation without being stored.

そこで、第1階層メモリ2は、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの1つであるh(2s+1,2t+1)を記憶するメモリセルを設けずに構成することができる。   Therefore, the first hierarchy memory 2 is one of 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) of the first hierarchy. It is possible to configure without providing a memory cell for storing h (2s + 1, 2t + 1).

即ち、上述の場合においては、第1階層メモリ2は、少なくとも、512×512画素の画像データを記憶することができるメモリセルを有することとしたが、第1階層の画素h(2s+1,2t+1)を記憶しない場合には、少なくとも、512×512×3/4画素の画像データを記憶することができるメモリセルで構成することができる。この場合、第1階層メモリ2は、第1階層の画像の1画面を構成する画素数から、第2階層メモリ3のアドレス数(第2階層の1画面を構成する画素数(256×256))を減算した数に対応するメモリセル(記憶容量)を有することになる。   That is, in the above case, the first layer memory 2 has at least memory cells capable of storing image data of 512 × 512 pixels, but the first layer pixels h (2s + 1, 2t + 1). In the case where is not stored, at least 512 × 512 × 3/4 pixel image data can be stored in the memory cell. In this case, the first hierarchy memory 2 calculates the number of addresses of the second hierarchy memory 3 (the number of pixels constituting one screen of the second hierarchy (256 × 256)) from the number of pixels constituting one screen of the first hierarchy image. ) Is subtracted from the number of memory cells (storage capacity).

また、第2階層の隣接する2×2画素m(2m,2n),m(2m+1,2n),m(2m,2n+1),m(2m+1,2n+1)のうちの1つである、例えば、右下の画素m(2m+1,2n+1)も、やはり、残りの第2階層の画素m(2m,2n),m(2m+1,2n),m(2m,2n+1)と、それらの加算値である第3階層の画素q(m,n)とから求めることができる。   Further, it is one of adjacent 2 × 2 pixels m (2m, 2n), m (2m + 1, 2n), m (2m, 2n + 1), m (2m + 1, 2n + 1) in the second layer, for example, right The lower pixel m (2m + 1, 2n + 1) is also the remaining second-layer pixel m (2m, 2n), m (2m + 1, 2n), m (2m, 2n + 1), and the third added value thereof. It can be obtained from the pixel q (m, n) of the hierarchy.

即ち、第2階層の画素m(2m+1,2n+1)は、式
m(2m+1,2n+1)=q(m,n)-(m(2m,2n)+m(2m+1,2n)+m(2m,2n+1))
によって求めることができる。
That is, the pixel m (2m + 1, 2n + 1) in the second hierarchy is expressed by the equation
m (2m + 1,2n + 1) = q (m, n)-(m (2m, 2n) + m (2m + 1,2n) + m (2m, 2n + 1))
Can be obtained.

従って、第2階層の画素m(2m+1,2n+1)は記憶しておかなくても得ることができる。   Accordingly, the pixel m (2m + 1, 2n + 1) in the second layer can be obtained without being stored.

そこで、第2階層メモリ3も、第2階層の2×2の4画素m(2m,2n),m(2m+1,2n),m(2m,2n+1),m(2m+1,2n+1)のうちの1つであるm(2m+1,2n+1)を記憶するメモリセルを設けずに構成することができる。   Therefore, the second layer memory 3 is also one of 2 × 2 4 pixels m (2m, 2n), m (2m + 1, 2n), m (2m, 2n + 1), m (2m + 1, 2n + 1) in the second layer. It is possible to configure without providing memory cells for storing m (2m + 1, 2n + 1).

即ち、上述の場合においては、第2階層メモリ3は、少なくとも、256×256画素の画像データを記憶することができるメモリセルを有することとしたが、第2階層の画素m(2m+1,2n+1)を記憶しない場合には、少なくとも、256×256×3/4画素の画像データを記憶することができるメモリセルで構成することができる。この場合、第2階層メモリ3は、第2階層の画像の1画面を構成する画素数から、第3階層メモリ4のアドレス数(第3階層の1画面を構成する画素数(128×128))を減算した数に対応するメモリセル(記憶容量)を有することになる。   That is, in the above-described case, the second hierarchical memory 3 has at least memory cells capable of storing image data of 256 × 256 pixels. However, the second hierarchical pixel m (2m + 1, 2n + 1). In the case where is not stored, the memory cell can be configured to store at least image data of 256 × 256 × 3/4 pixels. In this case, the second hierarchy memory 3 calculates the number of addresses of the third hierarchy memory 4 (the number of pixels constituting one screen of the third hierarchy (128 × 128)) from the number of pixels constituting one screen of the second hierarchy image. ) Is subtracted from the number of memory cells (storage capacity).

第1階層メモリ2および第2階層メモリ3を、上述のように、少ない記憶容量のものとした場合においても、第1階層メモリ2、第2階層メモリ3、および第3階層メモリ4への画像データの書き込みは、図3乃至図5でそれぞれ説明したようにして行うことができる。但し、第1階層メモリ2には、第1階層の画素h(2s+1,2t+1)を記憶するメモリセル、即ち、アドレス(2s+1,2t+1)に対応するメモリセルがなく、従って、アドレス供給回路1から第1階層メモリ2に対して、アドレス(2s+1,2t+1)が供給されるとともに、RMW回路5から第1階層の画素h(2s+1,2t+1)が供給されても、その画素h(2s+1,2t+1)は、第1階層メモリ2に記憶されない。   Even when the first hierarchy memory 2 and the second hierarchy memory 3 have a small storage capacity as described above, the images to the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4 are displayed. Data writing can be performed as described with reference to FIGS. However, the first layer memory 2 does not have a memory cell that stores the pixel h (2s + 1, 2t + 1) in the first layer, that is, a memory cell corresponding to the address (2s + 1, 2t + 1). The address (2s + 1, 2t + 1) is supplied to the first layer memory 2, and even if the first layer pixel h (2s + 1, 2t + 1) is supplied from the RMW circuit 5, the pixel h (2s + 1, 2t + 1) Are not stored in the first hierarchy memory 2.

同様に、第2階層メモリ3には、第2階層の画素m(2m+1,2n+1)を記憶するメモリセル、即ち、アドレス(2m+1,2n+1)に対応するメモリセルがなく、従って、アドレス供給回路1から第2階層メモリ3に対して、アドレス(2m+1,2n+1)が供給されるとともに、RMW回路5(書き込み部14(図4))から第2階層の画素m(2m+1,2n+1)が供給されても、その画素m(2m+1,2n+1)は、第2階層メモリ3に記憶されない。   Similarly, the second hierarchy memory 3 has no memory cell for storing the pixel m (2m + 1, 2n + 1) in the second hierarchy, that is, the memory cell corresponding to the address (2m + 1, 2n + 1). Therefore, the address supply circuit 1 Address (2m + 1, 2n + 1) is supplied to the second hierarchy memory 3 from the RMW circuit 5 (writing unit 14 (FIG. 4)) and the pixel m (2m + 1, 2n + 1) of the second hierarchy is supplied. However, the pixel m (2m + 1, 2n + 1) is not stored in the second hierarchical memory 3.

また、記憶装置に記憶された第3階層の画像の読み出しは、上述の図5における場合と同様に行うことができるが、第1または第2階層の画像の読み出しは、次のようにして行われる。   Further, the third layer image stored in the storage device can be read in the same manner as in FIG. 5 described above. However, the first or second layer image can be read as follows. Is called.

即ち、図6は、第1階層メモリ2の記憶容量を少ないものにした場合において、第1階層の画像を読み出すときの、図1の記憶装置の構成例を示している。   That is, FIG. 6 shows a configuration example of the storage device of FIG. 1 when reading the image of the first hierarchy when the storage capacity of the first hierarchy memory 2 is small.

この場合、アドレス供給回路1は、遅延回路31および選択回路32乃至34で構成される。遅延回路31には、水平アドレスHAおよび垂直アドレスVAが入力され、そこでは、例えば、そのうちの垂直アドレスVAの上位7ビットva2乃至va8が、その下位3ビット目va2の変化に対応してラッチされて出力されるようになされている。   In this case, the address supply circuit 1 includes a delay circuit 31 and selection circuits 32 to 34. The delay circuit 31 receives the horizontal address HA and the vertical address VA. For example, the upper 7 bits va2 to va8 of the vertical address VA are latched corresponding to the change of the lower third bit va2. Output.

即ち、遅延回路31は、垂直アドレスVAの下位3ビット目va2が0から1に変化するときと、1から0に変化するときとを検出し、その変化の直前の垂直アドレスVAの上位7ビットva2乃至va8をラッチして、残りの垂直アドレスおよび水平アドレスとともに出力するようになされている。従って、遅延回路31が出力する水平アドレスHAおよび垂直アドレスVAは、アドレス供給回路1に供給される水平アドレスHAおよび垂直アドレスVAを4(=23-1)ライン分だけ遅延したものとなる。なお、遅延回路31では、垂直アドレスVAの下位3ビット目va2が変化するときの、その変化直前の垂直アドレスVAの上位7ビットva2乃至va8をラッチすれば良いから、従来における画像をラインディレイするための遅延回路のように、大型のものにはならない。即ち、遅延回路31は、垂直アドレスVAの上位7ビットva2乃至va8をラッチする、例えば、7個のフリップフロップなどで構成することができ、従って、小型に構成することができる。 That is, the delay circuit 31 detects when the lower third bit va2 of the vertical address VA changes from 0 to 1 and when it changes from 1 to 0, and the upper 7 bits of the vertical address VA immediately before the change. va2 to va8 are latched and output together with the remaining vertical and horizontal addresses. Therefore, the horizontal address HA and the vertical address VA output from the delay circuit 31 are obtained by delaying the horizontal address HA and the vertical address VA supplied to the address supply circuit 1 by 4 (= 2 3-1 ) lines. The delay circuit 31 only needs to latch the upper 7 bits va2 to va8 of the vertical address VA immediately before the change when the lower third bit va2 of the vertical address VA changes, so that the conventional image is line-delayed. Therefore, it does not become a large-sized one like a delay circuit. That is, the delay circuit 31 can be configured by, for example, seven flip-flops that latch the upper 7 bits va2 to va8 of the vertical address VA, and thus can be configured in a small size.

ここで、以下、適宜、遅延回路31が発生する4ライン前の水平アドレスHAまたは垂直アドレスVAを、それぞれ遅延水平アドレスHAまたは遅延垂直アドレス(所定のアドレス信号)という。   Here, the horizontal address HA or vertical address VA four lines before generated by the delay circuit 31 will be referred to as a delayed horizontal address HA or a delayed vertical address (predetermined address signal), respectively.

遅延水平アドレスHAおよび遅延垂直アドレスVAは、選択回路32に供給される。また、遅延水平アドレスHAおよび遅延垂直アドレスVAのうちの、遅延水平アドレスHAの最下位ビットha0を除く上位8ビットha1乃至ha8、および遅延垂直アドレスVAの最下位ビットva0を除く上位8ビットva1乃至va8は、選択回路33に供給される。さらに、遅延水平アドレスHAおよび遅延垂直アドレスVAのうちの、遅延水平アドレスHAの下位2ビットha0,ha1を除く上位7ビットha2乃至ha8、および遅延垂直アドレスVAの下位2ビットva0,va1を除く上位7ビットva2乃至va8は、選択回路34に供給される。   The delayed horizontal address HA and the delayed vertical address VA are supplied to the selection circuit 32. Of the delayed horizontal address HA and the delayed vertical address VA, the upper 8 bits ha1 to ha8 excluding the least significant bit ha0 of the delayed horizontal address HA and the upper 8 bits va1 to va0 except for the least significant bit va0 of the delayed vertical address VA. va8 is supplied to the selection circuit 33. Further, of the delayed horizontal address HA and the delayed vertical address VA, the higher 7 bits ha2 to ha8 excluding the lower 2 bits ha0 and ha1 of the delayed horizontal address HA and the upper 2 bits excluding the lower 2 bits va0 and va1 of the delayed vertical address VA. The 7 bits va2 to va8 are supplied to the selection circuit 34.

選択回路32には、遅延水平アドレスHAおよび遅延垂直アドレスVAの他、アドレス供給回路1に供給される水平アドレスHAおよび垂直アドレスVAがそのまま供給されるとともに、垂直アドレスVAのうちの下位3ビット目va2が、制御信号として供給されるようになされている。そして、選択回路32では、制御信号va2に対応して、遅延水平アドレスHAおよび遅延垂直アドレスVAと、水平アドレスHAおよび垂直アドレスVAのうちの一方がAバンクアドレスとして、他方がBバンクアドレスとして、それぞれ選択され、第1階層メモリ2のAバンクアドレス端子と、Bバンクアドレス端子にそれぞれ供給されるようになされている。   In addition to the delayed horizontal address HA and the delayed vertical address VA, the selection circuit 32 is supplied with the horizontal address HA and the vertical address VA supplied to the address supply circuit 1 as they are, and the lower third bit of the vertical address VA. va2 is supplied as a control signal. In the selection circuit 32, in response to the control signal va2, one of the delayed horizontal address HA and the delayed vertical address VA, the horizontal address HA and the vertical address VA is an A bank address, and the other is a B bank address. These are selected and supplied to the A bank address terminal and the B bank address terminal of the first hierarchical memory 2 respectively.

即ち、選択回路32は、例えば、遅延水平アドレスHAおよび遅延垂直アドレスVAをAバンクアドレスとして、水平アドレスHAおよび垂直アドレスVAをBバンクアドレスとして、それぞれ選択している場合において、制御信号va2が変化すると、遅延水平アドレスHAおよび遅延垂直アドレスVAをBバンクアドレスとして、水平アドレスHAおよび垂直アドレスVAをAバンクアドレスとして、それぞれ選択する。さらに、その後、選択回路32は、制御信号va2が再度変化すると、遅延水平アドレスHAおよび遅延垂直アドレスVAをAバンクアドレスとして、水平アドレスHAおよび垂直アドレスVAをBバンクアドレスとして、それぞれ再び選択する。従って、選択回路32では、制御信号va2が変化するごとに、遅延水平アドレスHAおよび遅延垂直アドレスVAが、AバンクアドレスまたはBバンクアドレスとして交互に選択されるとともに、水平アドレスHAおよび垂直アドレスVAが、BバンクアドレスまたはAバンクアドレスとして交互に選択される。   That is, for example, when the selection circuit 32 selects the delayed horizontal address HA and the delayed vertical address VA as the A bank address and the horizontal address HA and the vertical address VA as the B bank address, the control signal va2 changes. Then, the delayed horizontal address HA and delayed vertical address VA are selected as B bank addresses, and the horizontal address HA and vertical address VA are selected as A bank addresses, respectively. Further, after that, when the control signal va2 changes again, the selection circuit 32 again selects the delayed horizontal address HA and the delayed vertical address VA as the A bank address and the horizontal address HA and the vertical address VA as the B bank address, respectively. Therefore, in the selection circuit 32, every time the control signal va2 changes, the delayed horizontal address HA and the delayed vertical address VA are alternately selected as the A bank address or the B bank address, and the horizontal address HA and the vertical address VA are changed. , B bank address or A bank address are alternately selected.

選択回路33には、遅延水平アドレスHAの上位8ビットha1乃至ha8および遅延垂直アドレスVAの上位8ビットva1乃至va8の他、アドレス供給回路1に供給される水平アドレスHAの上位8ビットha1乃至ha8および垂直アドレスVAの上位8ビットva1乃至va8が供給されるとともに、垂直アドレスVAのうちの下位3ビット目va2が、制御信号として供給されるようになされている。そして、選択回路33においても、選択回路32における場合と同様に、制御信号va2が変化するごとに、遅延水平アドレスHAの上位8ビットha1乃至ha8および遅延垂直アドレスVAの上位8ビットva1乃至va8が、AバンクアドレスまたはBバンクアドレスとして交互に選択されるとともに、水平アドレスHAの上位8ビットha1乃至ha8および垂直アドレスVAの上位8ビットva1乃至va8が、BバンクアドレスまたはAバンクアドレスとして交互に選択されるようになされている。   The selection circuit 33 includes the upper 8 bits ha1 to ha8 of the delayed horizontal address HA and the upper 8 bits va1 to va8 of the delayed vertical address VA, as well as the upper 8 bits ha1 to ha8 of the horizontal address HA supplied to the address supply circuit 1. The upper 8 bits va1 to va8 of the vertical address VA are supplied, and the lower third bit va2 of the vertical address VA is supplied as a control signal. In the selection circuit 33, as in the selection circuit 32, each time the control signal va2 changes, the upper 8 bits ha1 to ha8 of the delayed horizontal address HA and the upper 8 bits va1 to va8 of the delayed vertical address VA are changed. Are alternately selected as the A bank address or the B bank address, and the upper 8 bits ha1 to ha8 of the horizontal address HA and the upper 8 bits va1 to va8 of the vertical address VA are alternately selected as the B bank address or the A bank address. It is made to be done.

選択回路33において、AバンクアドレスまたはBバンクアドレスとして選択されたものは、第2階層メモリ3のAバンクアドレス端子またはBバンクアドレス端子にそれぞれ供給されるようになされている。   What is selected as the A bank address or the B bank address in the selection circuit 33 is supplied to the A bank address terminal or the B bank address terminal of the second hierarchical memory 3, respectively.

選択回路34には、遅延水平アドレスHAの上位7ビットha2乃至ha8および遅延垂直アドレスVAの上位7ビットva2乃至va8の他、アドレス供給回路1に供給される水平アドレスHAの上位7ビットha2乃至ha8および垂直アドレスVAの上位7ビットva2乃至va8が供給されるとともに、垂直アドレスVAのうちの下位3ビット目va2が、制御信号として供給されるようになされている。そして、選択回路34においても、選択回路32における場合と同様に、制御信号va2が変化するごとに、遅延水平アドレスHAの上位7ビットha2乃至ha8および遅延垂直アドレスVAの上位7ビットva2乃至va8が、AバンクアドレスまたはBバンクアドレスとして交互に選択されるとともに、水平アドレスHAの上位7ビットha2乃至ha8および垂直アドレスVAの上位7ビットva2乃至va8が、BバンクアドレスまたはAバンクアドレスとして交互に選択されるようになされている。   The selection circuit 34 includes the upper 7 bits ha2 to ha8 of the delayed horizontal address HA and the upper 7 bits va2 to va8 of the delayed vertical address VA, as well as the upper 7 bits ha2 to ha8 of the horizontal address HA supplied to the address supply circuit 1. The upper 7 bits va2 to va8 of the vertical address VA are supplied, and the lower third bit va2 of the vertical address VA is supplied as a control signal. In the selection circuit 34, as in the selection circuit 32, each time the control signal va2 changes, the upper 7 bits ha2 to ha8 of the delayed horizontal address HA and the upper 7 bits va2 to va8 of the delayed vertical address VA are changed. Are alternately selected as the A bank address or the B bank address, and the upper 7 bits ha2 to ha8 of the horizontal address HA and the upper 7 bits va2 to va8 of the vertical address VA are alternately selected as the B bank address or the A bank address. It is made to be done.

選択回路34において、AバンクアドレスまたはBバンクアドレスとして選択されたものは、第3階層メモリ4のAバンクアドレス端子またはBバンクアドレス端子にそれぞれ供給されるようになされている。   What is selected as the A bank address or the B bank address in the selection circuit 34 is supplied to the A bank address terminal or the B bank address terminal of the third layer memory 4, respectively.

図6の実施の形態においては(後述する図8においても同様)、第1階層メモリ2のアドレス空間は、AバンクとBバンクの2つのバンク(ブロック)に分割されている。即ち、ここでは、図2において、例えば、第8αライン乃至第8α+3ラインの画素を記憶するための第1階層メモリ2の記憶領域がAバンクと、第8α+4ライン乃至第8α+7ラインの画素を記憶するための第1階層メモリ2の記憶領域がBバンクと、それぞれされている(但し、α=0,1,2,・・・,63)。   In the embodiment of FIG. 6 (the same applies to FIG. 8 described later), the address space of the first hierarchical memory 2 is divided into two banks (blocks) of A bank and B bank. That is, in FIG. 2, for example, the storage area of the first hierarchical memory 2 for storing pixels of the 8α to 8α + 3 lines stores the A bank and the pixels of the 8α + 4 to 8α + 7 lines. The storage areas of the first hierarchical memory 2 for this purpose are designated as B banks (where α = 0, 1, 2,..., 63).

そして、AバンクとBバンクの両方に同時にアクセスが可能なように、Aバンクにアクセスするためのアドレス端子(Aバンクアドレス端子)と、Bバンクにアクセスするためのアドレス端子(Bバンクアドレス端子)の2つのアドレス端子が設けられている。さらに、Aバンク、Bバンクそれぞれに対してデータを読み書きするための入出力端子であるデータ端子も、Aバンクデータ端子およびBバンクデータ端子の2つが設けられている。   An address terminal (A bank address terminal) for accessing the A bank and an address terminal (B bank address terminal) for accessing the B bank so that both the A bank and the B bank can be accessed simultaneously. These two address terminals are provided. Furthermore, two data terminals, that is, an A bank data terminal and a B bank data terminal, are provided as input / output terminals for reading / writing data from / to the A bank and B bank.

従って、第1階層メモリ2では、Aバンクアドレス端子に入力されたアドレス(Aバンクアドレス)に対して、Aバンクデータ端子を介して、データ(Aバンクデータ)の読み書きを行うとともに、Bバンクアドレス端子に入力されたアドレス(Bバンクアドレス)に対して、Bバンクデータ端子を介して、データ(Bバンクデータ)の読み書きを行うことができる。   Therefore, in the first hierarchical memory 2, data (A bank data) is read from and written to the address (A bank address) input to the A bank address terminal via the A bank data terminal, and the B bank address is read. Data (B bank data) can be read from and written to the address (B bank address) input to the terminal via the B bank data terminal.

ここで、本実施の形態では、遅延水平アドレスHAおよび遅延垂直アドレスVAは、水平アドレスHAおよび垂直アドレスVAを4ライン分(第1段階の画像の4ライン分)遅延したものとなっている。従って、選択回路32において、例えば、水平アドレスHAおよび垂直アドレスVAがAバンクアドレスとして、遅延水平アドレスHAおよび遅延垂直アドレスVAがBバンクアドレスとして、それぞれ選択されている場合、第1階層メモリ2においては、水平アドレスHAおよび垂直アドレスVAに対応するAバンクのメモリセルにアクセスがなされるが、このとき、同時に、その4ライン分の時間だけ前にアクセスされた、遅延水平アドレスHAおよび遅延垂直アドレスVAに対応するBバンクのメモリセルにもアクセスがなされる。   In this embodiment, the delayed horizontal address HA and the delayed vertical address VA are obtained by delaying the horizontal address HA and the vertical address VA by 4 lines (4 lines of the first stage image). Therefore, in the selection circuit 32, for example, when the horizontal address HA and the vertical address VA are selected as the A bank address and the delayed horizontal address HA and the delayed vertical address VA are selected as the B bank address, respectively, Are accessed to the memory cells in the A bank corresponding to the horizontal address HA and the vertical address VA. At this time, the delayed horizontal address HA and the delayed vertical address accessed at the same time by the time corresponding to the four lines at the same time. A memory cell in B bank corresponding to VA is also accessed.

即ち、例えば、図7に示すように、第1階層メモリ2を、Aバンクとしての記憶領域と、Bバンクとしての記憶領域とに分けて考えれば、Aバンクのあるメモリセルにアクセスがなされているとき、同時に、そのメモリセルに対応するBバンクのメモリセルにもアクセスがなされる。この同時にアクセスされるAバンクおよびBバンクの、対応するメモリセルが、本実施の形態では、4ラインに相当する分だけ離れている。ここで、このように同時にアクセスされるAバンクおよびBバンクのメモリセルを、4ラインに相当する分だけ離したのは、本実施の形態では、最上位階層である第3階層の1つの画素が、第1階層の4×4画素を単位として生成されるため、バンクは、少なくとも、そのような単位とするのが好ましいからである。従って、ここでは、4ラインごとに、交互に、AバンクとBバンクとに分けたが、その他、例えば、4列ごとに分けることも可能であるし、バンク数も、AバンクおよびBバンクの2つに限定されるものではない。さらに、横および縦方向の両方向に、即ち、いわば格子状に、バンクをきることも可能である。   That is, for example, as shown in FIG. 7, if the first-tier memory 2 is divided into a storage area as A bank and a storage area as B bank, a memory cell with A bank is accessed. At the same time, the memory cell in the B bank corresponding to the memory cell is also accessed. In the present embodiment, the corresponding memory cells in the A bank and B bank that are accessed simultaneously are separated by an amount corresponding to four lines. Here, the memory cells in the A bank and the B bank that are simultaneously accessed in this way are separated by an amount corresponding to four lines. In this embodiment, one pixel in the third hierarchy, which is the highest hierarchy, is separated. However, since 4 × 4 pixels in the first layer are generated as a unit, it is preferable that the bank be at least such a unit. Therefore, here, every four lines are alternately divided into A bank and B bank. However, for example, it is also possible to divide into four columns, and the number of banks is the same as that of A bank and B bank. It is not limited to two. Furthermore, it is also possible to open banks in both the horizontal and vertical directions, that is, in a so-called lattice pattern.

図6に戻り、第2階層メモリ3においても、第1階層メモリ2と同様に、そのアドレス空間がAバンクとBバンクの2つのバンクに分割されている。但し、本実施の形態では、第2階層の画像を構成する横または縦の画素数それぞれは、第1階層の画像の1/2であるから、第2階層メモリ3においては、第2階層の第4αラインおよび第4α+1ラインの画素を記憶するための第2階層メモリ3の記憶領域がAバンクと、第4α+2ラインおよび第4α+3ラインの画素を記憶するための第2階層メモリ3の記憶領域がBバンクと、それぞれされている。   Returning to FIG. 6, in the second hierarchy memory 3, as in the first hierarchy memory 2, the address space is divided into two banks, A bank and B bank. However, in the present embodiment, the number of horizontal or vertical pixels constituting the second layer image is ½ of the first layer image. Therefore, in the second layer memory 3, the second layer image The storage area of the second hierarchy memory 3 for storing the pixels of the 4α line and the 4α + 1 line is the A bank, and the storage area of the second hierarchy memory 3 for storing the pixels of the 4α + 2 line and the 4α + 3 line B bank, respectively.

第3階層メモリ4においても、第1階層メモリ2と同様に、そのアドレス空間がAバンクとBバンクの2つのバンクに分割されている。但し、本実施の形態では、第3階層の画像を構成する横または縦の画素数それぞれは、第1階層の画像の1/4であるから、第3階層メモリ4においては、第3階層の第2αラインの画素を記憶するための第3階層メモリ4の記憶領域がAバンクと、第2α+1ラインの画素を記憶するための第3階層メモリ4の記憶領域がBバンクと、それぞれされている。   In the third hierarchy memory 4, as in the first hierarchy memory 2, the address space is divided into two banks, A bank and B bank. However, in the present embodiment, since the number of horizontal or vertical pixels constituting the third layer image is 1/4 of the first layer image, the third layer memory 4 has the third layer image. The storage area of the third hierarchy memory 4 for storing pixels of the second α line is designated as A bank, and the storage area of the third hierarchy memory 4 for storing pixels of the second α + 1 line is designated as B bank. .

第1階層メモリ2のAバンクまたはBバンクそれぞれから読み出されたデータ(AバンクデータまたはBバンクデータ)が出力されるAバンクデータ端子またはBバンクデータ端子は、いずれも選択回路41に接続されている。また、選択回路41には、アドレス供給回路1から、垂直アドレスVAの下位3ビット目va2が、制御信号として供給されるようになされており、選択回路41では、制御信号va2に対応して、Aバンクデータ端子またはBバンクデータ端子のうちの一方が読み出し部44に接続され、他方が読み出し部45に接続されるようになされている。   Both the A bank data terminal and the B bank data terminal from which data (A bank data or B bank data) read from the A bank or B bank of the first hierarchy memory 2 is output are connected to the selection circuit 41. ing. The selection circuit 41 is supplied with the lower third bit va2 of the vertical address VA from the address supply circuit 1 as a control signal. In the selection circuit 41, the selection circuit 41 corresponds to the control signal va2. One of the A bank data terminal and the B bank data terminal is connected to the reading unit 44, and the other is connected to the reading unit 45.

即ち、選択回路41は、ある時点において、例えば、Aバンクデータ端子またはBバンクデータ端子を、読み出し部44または45にそれぞれ接続している場合において、制御信号va2が変化すると、Aバンクデータ端子またはBバンクデータ端子を、読み出し部45または44にそれぞれ接続する。さらに、その後、制御信号va2が再度変化すると、選択回路41は、Aバンクデータ端子またはBバンクデータ端子を、読み出し部44または45にそれぞれ再び接続する。従って、選択回路41によれば、制御信号va2が変化するごとに、Aバンクデータ端子が読み出し部44または45に交互に接続されるとともに、Bバンクデータ端子が読み出し部45または44に交互に接続される。   That is, at a certain point in time, for example, when the A bank data terminal or the B bank data terminal is connected to the reading unit 44 or 45, the selection circuit 41 changes the A bank data terminal or The B bank data terminal is connected to the reading unit 45 or 44, respectively. Further, after that, when the control signal va2 changes again, the selection circuit 41 reconnects the A bank data terminal or the B bank data terminal to the reading unit 44 or 45, respectively. Therefore, according to the selection circuit 41, every time the control signal va2 changes, the A bank data terminal is alternately connected to the reading unit 44 or 45, and the B bank data terminal is alternately connected to the reading unit 45 or 44. Is done.

第2階層メモリ3のAバンクに書き込まれるデータが供給されるとともに、Aバンクから読み出されたデータが出力されるAバンクデータ端子、およびそのBバンクに書き込まれるデータが供給されるとともに、Bバンクから読み出されたデータが出力されるBバンクデータ端子は、いずれも選択回路42に接続されている。また、選択回路42にも、アドレス供給回路1から、垂直アドレスVAの下位3ビット目va2が、制御信号として供給されるようになされており、選択回路42では、制御信号va2に対応して、Aバンクデータ端子またはBバンクデータ端子のうちの一方が書き込み部46および読み出し部47に接続され、他方が書き込み部48および読み出し部49に接続されるようになされている。   The data to be written to the A bank of the second hierarchical memory 3 is supplied, the A bank data terminal to which the data read from the A bank is output, and the data to be written to the B bank are supplied, and B The B bank data terminals to which data read from the bank is output are all connected to the selection circuit 42. The selection circuit 42 is also supplied with the lower third bit va2 of the vertical address VA from the address supply circuit 1 as a control signal. The selection circuit 42 corresponds to the control signal va2, One of the A bank data terminal and the B bank data terminal is connected to the writing unit 46 and the reading unit 47, and the other is connected to the writing unit 48 and the reading unit 49.

即ち、選択回路42は、ある時点において、例えば、Aバンクデータ端子を書き込み部46および読み出し部47に接続し、Bバンクデータ端子を書き込み部48および読み出し部49に接続している場合において、制御信号va2が変化すると、Aバンクデータ端子を書き込み部48および読み出し部49に接続し、Bバンク端子を書き込み部46および読み出し部47に接続する。さらに、その後、制御信号va2が再度変化すると、選択回路42は、Aバンクデータ端子を書き込み部46および読み出し部47に再び接続するとともに、Bバンクデータ端子を書き込み部48および読み出し部49に再び接続する。従って、選択回路42によれば、制御信号va2が変化するごとに、Aバンクデータ端子が、書き込み部46と読み出し部47、または書き込み部48と読み出し部49に交互に接続されるとともに、Bバンクデータ端子が、書き込み部48と読み出し部49、または書き込み部46と読み出し部47に交互に接続される。   That is, the selection circuit 42 is controlled at a certain point in time when, for example, the A bank data terminal is connected to the writing unit 46 and the reading unit 47 and the B bank data terminal is connected to the writing unit 48 and the reading unit 49. When the signal va2 changes, the A bank data terminal is connected to the writing unit 48 and the reading unit 49, and the B bank terminal is connected to the writing unit 46 and the reading unit 47. Further, after that, when the control signal va2 changes again, the selection circuit 42 reconnects the A bank data terminal to the writing unit 46 and the reading unit 47 and reconnects the B bank data terminal to the writing unit 48 and the reading unit 49. To do. Therefore, according to the selection circuit 42, every time the control signal va2 changes, the A bank data terminal is alternately connected to the writing unit 46 and the reading unit 47, or the writing unit 48 and the reading unit 49, and the B bank Data terminals are alternately connected to the writing unit 48 and the reading unit 49 or between the writing unit 46 and the reading unit 47.

第3階層メモリ4のAバンクに書き込まれるデータが供給されるとともに、Aバンクから読み出されたデータが出力されるAバンクデータ端子、およびそのBバンクに書き込まれるデータが供給されるとともに、Bバンクから読み出されたデータが出力されるBバンクデータ端子は、いずれも選択回路43に接続されている。また、選択回路43にも、アドレス供給回路1から、垂直アドレスVAの下位3ビット目va2が、制御信号として供給されるようになされている。そして、選択回路43においても、選択回路42における場合と同様に、制御信号va2が変化するごとに、Aバンクデータ端子が、書き込み部50と読み出し部51、または書き込み部52と読み出し部53に交互に接続されるとともに、Bバンクデータ端子が、書き込み部52と読み出し部53、または書き込み部50と読み出し部51に交互に接続されるようになされている。   The data to be written to the A bank of the third hierarchy memory 4 is supplied, the A bank data terminal to which the data read from the A bank is output, and the data to be written to the B bank are supplied, and B The B bank data terminals to which data read from the bank are output are all connected to the selection circuit 43. Further, the lower third bit va2 of the vertical address VA is supplied from the address supply circuit 1 to the selection circuit 43 as a control signal. In the selection circuit 43, as in the selection circuit 42, each time the control signal va <b> 2 changes, the A bank data terminal alternates between the writing unit 50 and the reading unit 51 or between the writing unit 52 and the reading unit 53. And the B bank data terminal is alternately connected to the writing unit 52 and the reading unit 53 or between the writing unit 50 and the reading unit 51.

読み出し部44または45は、選択回路41を介して、第1階層メモリ2からデータを読み出すようになされている。読み出し部44が読み出したデータは、演算器54および選択回路58に供給されるとともに、スイッチ61を介して演算器56に供給されるようになされている。また、読み出し部45が読み出したデータは、演算器55および57に供給されるようになされている。書き込み部46は、演算器54の出力を、選択回路42を介して、第2階層メモリ3に書き込むようになされている。読み出し部47は、選択回路42を介して、第2階層メモリ3からデータを読み出し、演算器54および選択回路58に供給するようになされている。書き込み部48は、演算器55の出力を、選択回路42を介して、第2階層メモリ3に書き込むようになされている。読み出し部49は、選択回路42を介して、第2階層メモリ3からデータを読み出し、演算器55およびスイッチ62に供給するようになされている。書き込み部50は、演算器56の出力を、選択回路43を介して、第3階層メモリ4に書き込むようになされている。読み出し部51は、選択回路43を介して、第3階層メモリ4からデータを読み出し、演算器56および選択回路58に供給するようになされている。書き込み部52は、演算器57の出力を、選択回路43を介して、第3階層メモリ4に書き込むようになされている。読み出し部53は、選択回路43を介して、第3階層メモリ4からデータを読み出し、演算器57に供給するようになされている。   The reading unit 44 or 45 reads data from the first hierarchy memory 2 via the selection circuit 41. The data read by the reading unit 44 is supplied to the computing unit 54 and the selection circuit 58 and is also supplied to the computing unit 56 via the switch 61. The data read by the reading unit 45 is supplied to the calculators 55 and 57. The writing unit 46 writes the output of the computing unit 54 into the second hierarchy memory 3 via the selection circuit 42. The reading unit 47 reads data from the second hierarchical memory 3 via the selection circuit 42 and supplies the data to the arithmetic unit 54 and the selection circuit 58. The writing unit 48 writes the output of the computing unit 55 into the second hierarchy memory 3 via the selection circuit 42. The reading unit 49 reads data from the second hierarchy memory 3 via the selection circuit 42 and supplies the data to the arithmetic unit 55 and the switch 62. The writing unit 50 writes the output of the computing unit 56 into the third hierarchy memory 4 via the selection circuit 43. The reading unit 51 reads data from the third hierarchy memory 4 via the selection circuit 43 and supplies the data to the arithmetic unit 56 and the selection circuit 58. The writing unit 52 writes the output of the computing unit 57 into the third hierarchy memory 4 via the selection circuit 43. The reading unit 53 reads data from the third hierarchy memory 4 via the selection circuit 43 and supplies the data to the calculator 57.

演算器54は、読み出し部47の出力から、読み出し部44の出力を減算して、その減算結果を、書き込み部46に供給するようになされている。演算器55は、読み出し部45および49の出力どうしを加算し、その加算結果を、書き込み部48に供給するようになされている。演算器56は、読み出し部51の出力から、スイッチ61を介して供給される信号を減算し、書き込み部50に供給するようになされている。演算器57は、読み出し部45および53の出力どうしを加算し、その加算結果を、書き込み部52に供給するようになされている。なお、演算器57は、スイッチ62がオン状態になっており、これにより、読み出し部49の出力が供給される場合は、その出力も加算の対象とするようになされている。   The computing unit 54 subtracts the output of the reading unit 44 from the output of the reading unit 47 and supplies the subtraction result to the writing unit 46. The computing unit 55 adds the outputs of the reading units 45 and 49 and supplies the addition result to the writing unit 48. The computing unit 56 subtracts the signal supplied via the switch 61 from the output of the reading unit 51 and supplies it to the writing unit 50. The computing unit 57 adds the outputs of the reading units 45 and 53 and supplies the addition result to the writing unit 52. In addition, when the switch 62 is in the ON state, and the output of the reading unit 49 is supplied to the calculator 57, the output is also added.

選択回路58は、ANDゲート59および60の出力に対応して、読み出し部44,47、または51の出力のうちのいずれかを選択して出力するようになされている。ANDゲート59には、アドレス供給回路1から、水平アドレスHAの最下位ビットha0と、垂直アドレスVAの最下位ビットva0が、制御信号として供給されるようになされており、ANDゲート59は、その論理積を演算して、選択回路58に供給するようになされている。ANDゲート60には、アドレス供給回路1から、水平アドレスHAの下位2ビット目ha1と、垂直アドレスVAの下位2ビット目va1が、制御信号として供給されるようになされており、ANDゲート60は、その論理積を演算して、選択回路58に供給するようになされている。   The selection circuit 58 selects and outputs one of the outputs of the reading units 44, 47, or 51 corresponding to the outputs of the AND gates 59 and 60. The AND gate 59 is supplied from the address supply circuit 1 with the least significant bit ha0 of the horizontal address HA and the least significant bit va0 of the vertical address VA as control signals. A logical product is calculated and supplied to the selection circuit 58. The AND gate 60 is supplied with the lower second bit ha1 of the horizontal address HA and the lower second bit va1 of the vertical address VA from the address supply circuit 1 as control signals. The logical product is calculated and supplied to the selection circuit 58.

スイッチ61は、ANDゲート59の出力に対応して、端子61aまたは61bのうちのいずれか一方を選択するようになされている。なお、端子61aまたは61bには、読み出し部44または47の出力がそれぞれ供給されるようになされている。スイッチ62は、NORゲート63の出力に対応してオン/オフし、読み出し部49の出力を、演算器57に供給するようになされている。NORゲート63には、ANDゲート59と同様に、最下位ビットha0とva0が供給されるようになされており、その出力によって、スイッチ62のオン/オフが制御されるようになされている。   The switch 61 selects one of the terminals 61a and 61b corresponding to the output of the AND gate 59. Note that the output of the reading unit 44 or 47 is supplied to the terminal 61a or 61b, respectively. The switch 62 is turned on / off in response to the output of the NOR gate 63, and supplies the output of the reading unit 49 to the computing unit 57. As with the AND gate 59, the least significant bits ha0 and va0 are supplied to the NOR gate 63, and on / off of the switch 62 is controlled by the output.

ここでは、以上の選択回路41乃至43、読み出し部44,45、書き込み部46、読み出し部47、書き込み部48、読み出し部49、書き込み部50、読み出し部51、書き込み部52、読み出し部53、演算器54乃至57、選択回路58、ANDゲート59,60、スイッチ61,62、およびNORゲート63で、RMW回路5が構成されている。   Here, the above selection circuits 41 to 43, reading units 44 and 45, writing unit 46, reading unit 47, writing unit 48, reading unit 49, writing unit 50, reading unit 51, writing unit 52, reading unit 53, calculation The RMW circuit 5 is composed of the devices 54 to 57, the selection circuit 58, the AND gates 59 and 60, the switches 61 and 62, and the NOR gate 63.

なお、図6(後述する図8においても同様)においては、クロック、R/W信号、および階層フラグの図示は省略してある。   In FIG. 6 (the same applies to FIG. 8 described later), the clock, the R / W signal, and the hierarchy flag are not shown.

次に、その動作について説明する。   Next, the operation will be described.

いま、選択回路32において、例えば、アドレス供給回路1に供給された水平アドレスHAおよび垂直アドレスVAがAバンクアドレスとして、遅延水平アドレスHAおよび遅延垂直アドレスVAがBバンクアドレスとして、それぞれ選択されているとする。   Now, in the selection circuit 32, for example, the horizontal address HA and the vertical address VA supplied to the address supply circuit 1 are selected as the A bank address, and the delayed horizontal address HA and the delayed vertical address VA are selected as the B bank address, respectively. And

この場合、選択回路33および34においても、同様にして、AバンクアドレスおよびBバンクアドレスが選択される。即ち、選択回路33では、水平アドレスHAの上位8ビットha1乃至ha8および垂直アドレスVAの上位8ビットva1乃至va8が、Aバンクアドレスとして、遅延水平アドレスHAの上位8ビットha1乃至ha8および遅延垂直アドレスVAの上位8ビットva1乃至va8が、Bバンクアドレスとして、それぞれ選択される。また、選択回路34では、水平アドレスHAの上位7ビットha2乃至ha8および垂直アドレスVAの上位7ビットva2乃至va8が、Aバンクアドレスとして、遅延水平アドレスHAの上位7ビットha2乃至ha8および遅延垂直アドレスVAの上位7ビットva2乃至va8が、Bバンクアドレスとして、それぞれ選択される。   In this case, in the selection circuits 33 and 34, the A bank address and the B bank address are selected in the same manner. That is, in the selection circuit 33, the upper 8 bits ha1 to ha8 of the horizontal address HA and the upper 8 bits va1 to va8 of the vertical address VA are used as the A bank address as the upper 8 bits ha1 to ha8 of the delayed horizontal address HA and the delayed vertical address. The upper 8 bits va1 to va8 of VA are selected as B bank addresses, respectively. In the selection circuit 34, the upper 7 bits ha2 to ha8 of the horizontal address HA and the upper 7 bits va2 to va8 of the vertical address VA are used as the A bank address as the upper 7 bits ha2 to ha8 of the delayed horizontal address HA and the delayed vertical address. The upper 7 bits va2 to va8 of VA are selected as B bank addresses, respectively.

選択回路32乃至34において選択されたAバンクアドレスとBバンクアドレスは、第1階層メモリ2、第2階層メモリ3、または第3階層メモリ4それぞれのAバンクアドレス端子とBバンクアドレス端子に供給される。   The A bank address and the B bank address selected by the selection circuits 32 to 34 are supplied to the A bank address terminal and the B bank address terminal of the first hierarchy memory 2, the second hierarchy memory 3, or the third hierarchy memory 4, respectively. The

さらに、この場合、選択回路41においては、第1階層メモリ2のAバンクデータ端子が読み出し部44に接続されるとともに、そのBバンクデータ端子が読み出し部45に接続される。また、選択回路42では、第2階層メモリ3のAバンクデータ端子が、書き込み部46および読み出し部47に接続されるとともに、そのBバンクデータ端子が、書き込み部48および読み出し部49に接続される。さらに、選択回路43では、第3階層メモリ4のAバンクデータ端子が、書き込み部50および読み出し部51に接続されるとともに、そのBバンクデータ端子が、書き込み部52および読み出し部53に接続される。   Further, in this case, in the selection circuit 41, the A bank data terminal of the first hierarchical memory 2 is connected to the reading unit 44 and the B bank data terminal is connected to the reading unit 45. In the selection circuit 42, the A bank data terminal of the second hierarchical memory 3 is connected to the writing unit 46 and the reading unit 47, and the B bank data terminal is connected to the writing unit 48 and the reading unit 49. . Further, in the selection circuit 43, the A bank data terminal of the third hierarchy memory 4 is connected to the writing unit 50 and the reading unit 51, and the B bank data terminal is connected to the writing unit 52 and the reading unit 53. .

読み出し部44は、第1階層メモリ2から、選択回路32が出力するAバンクアドレスに記憶されている第1階層の画素(画素値)を、選択回路41を介して読み出し、演算器54、選択回路58、およびスイッチ61の端子61aに供給する。   The reading unit 44 reads the first layer pixel (pixel value) stored in the A bank address output from the selection circuit 32 from the first layer memory 2 via the selection circuit 41, and selects the computing unit 54. This is supplied to the circuit 58 and the terminal 61 a of the switch 61.

選択回路58は、ANDゲート59の出力が1でないとき(0のとき)、読み出し部44の出力を、第1階層の画素として選択して出力する。即ち、ANDゲート59の出力が1でないときというのは、ha0またはva0のうちの少なくとも一方が0であるときであり、図2にD1で示すような第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの、右下の画素h(2s+1,2t+1)を除く画素h(2s,2t),h(2s+1,2t),h(2s,2t+1)の中のいずれかが読み出されるタイミングである。h(2s,2t),h(2s+1,2t),h(2s,2t+1)は、いずれも、第1階層メモリ2に記憶されているから、その第1階層メモリ2から読み出された値が、そのまま、選択回路58で選択されて出力される。   When the output of the AND gate 59 is not 1 (when it is 0), the selection circuit 58 selects and outputs the output of the reading unit 44 as a pixel in the first hierarchy. That is, when the output of the AND gate 59 is not 1, it is when at least one of ha0 or va0 is 0, and 2 × 2 4 pixels h in the first hierarchy as indicated by D1 in FIG. Among the (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1), the pixel h (2s, 2t) excluding the lower right pixel h (2s + 1, 2t + 1), This is the timing at which one of h (2s + 1, 2t) and h (2s, 2t + 1) is read. Since h (2s, 2t), h (2s + 1, 2t), and h (2s, 2t + 1) are all stored in the first hierarchy memory 2, the values read from the first hierarchy memory 2 are As it is, it is selected by the selection circuit 58 and outputted.

一方、読み出し部47は、第2階層メモリ3から、選択回路33が出力するAバンクアドレスに記憶されている第2階層の画素(画素値)を、選択回路42を介して読み出し、演算器54、選択回路58、およびスイッチ61の端子61bに供給する。   On the other hand, the readout unit 47 reads out the pixel (pixel value) in the second hierarchy stored in the A bank address output from the selection circuit 33 from the second hierarchy memory 3 via the selection circuit 42, and the arithmetic unit 54. , To the selection circuit 58 and the terminal 61b of the switch 61.

ここで、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)にアクセスがなされるタイミングにおいては、即ち、第1階層メモリ2のAバンクアドレス(2s,2t),(2s+1,2t),(2s,2t+1),(2s+1,2t+1)にアクセスがなされる場合においては、上述したことから、いずれの場合においても、第2階層メモリ3のAバンクアドレス(s,t)にアクセスがなされる。   Here, at the timing when access is made to 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first hierarchy, In the case where access is made to the A bank addresses (2s, 2t), (2s + 1, 2t), (2s, 2t + 1), (2s + 1, 2t + 1) of the first hierarchy memory 2, either of the above cases is explained. Also, the A bank address (s, t) of the second hierarchy memory 3 is accessed.

従って、読み出し部44が、第1階層メモリ2から、第1階層の画素h(2s,2t),h(2s+1,2t),h(2s,2t+1)を読み出し、演算器54に供給するとき、読み出し部47においては、第2階層メモリ3のAバンクアドレス(s,t)からデータが読み出され、演算器54に供給される。   Therefore, when the reading unit 44 reads the pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1) of the first layer from the first layer memory 2 and supplies them to the computing unit 54, In the reading unit 47, data is read from the A bank address (s, t) of the second hierarchy memory 3 and supplied to the computing unit 54.

演算器54では、読み出し部47の出力から読み出し部44の出力が減算され、書き込み部46に供給される。書き込み部46は、演算器54の出力を、選択回路42を介して、第2階層メモリ3のAバンクアドレス(s,t)に書き込む。   In the computing unit 54, the output of the reading unit 44 is subtracted from the output of the reading unit 47 and supplied to the writing unit 46. The writing unit 46 writes the output of the computing unit 54 to the A bank address (s, t) of the second hierarchical memory 3 via the selection circuit 42.

従って、最初は、第2階層メモリ3のAバンクアドレス(s,t)には、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)の加算値である第2階層の画素m(s,t)が記憶されているが、読み出し部44が、第1階層の画素h(2s,2t)を読み出すとともに、読み出し部47が、第2階層メモリ3のAバンクアドレス(s,t)に記憶されているデータ(ここでは、m(s,t))を読み出すことで、演算器54において、それらの減算値(m(s,t)−h(2s,2t))が求められ、書き込み部46において、第2階層メモリ3のAバンクアドレス(s,t)に書き込まれる。   Therefore, at first, the A bank address (s, t) of the second hierarchy memory 3 is set to 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, t) of the first hierarchy. 2t + 1), h (2s + 1, 2t + 1), which is the added value of the second layer pixel m (s, t), is stored, but the reading unit 44 reads the first layer pixel h (2s, 2t). At the same time, the readout unit 47 reads out the data (here, m (s, t)) stored in the A bank address (s, t) of the second hierarchical memory 3, so that the computing unit 54 A subtraction value (m (s, t) −h (2s, 2t)) is obtained and written to the A bank address (s, t) of the second hierarchy memory 3 by the writing unit 46.

さらに、読み出し部44が、第1階層の画素h(2s+1,2t)を読み出すとともに、読み出し部47が、第2階層メモリ3のAバンクアドレス(s,t)に記憶されているデータ(ここでは、m(s,t)−h(2s,2t))を読み出すことで、演算器54において、それらの減算値(m(s,t)−h(2s,2t)−h(2s+1,2t))が求められ、書き込み部46において、第2階層メモリ3のAバンクアドレス(s,t)に書き込まれる。   Further, the readout unit 44 reads out the pixel h (2s + 1, 2t) in the first hierarchy, and the readout unit 47 stores data (here, the A bank address (s, t) in the second hierarchy memory 3). , M (s, t) −h (2s, 2t)), the subtracted value (m (s, t) −h (2s, 2t) −h (2s + 1, 2t)) is obtained in the computing unit 54. ) Is obtained, and is written into the A bank address (s, t) of the second hierarchical memory 3 by the writing unit 46.

その後、読み出し部44が、第1階層の画素h(2s,2t+1)を読み出すとともに、読み出し部47が、第2階層メモリ3のAバンクアドレス(s,t)に記憶されているデータ(ここでは、m(s,t)−h(2s,2t)−h(2s+1,2t))を読み出すことで、演算器54において、それらの減算値(m(s,t)−h(2s,2t)−h(2s+1,2t)−h(2s,2t+1))が求められ、書き込み部46において、第2階層メモリ3のAバンクアドレス(s,t)に書き込まれる。即ち、第2階層メモリ3のAバンクアドレス(s,t)には、第1階層の画素h(2s+1,2t+1)(=m(s,t)−h(2s,2t)−h(2s+1,2t)−h(2s,2t+1))が書き込まれる。   Thereafter, the reading unit 44 reads the pixel h (2s, 2t + 1) in the first layer, and the reading unit 47 stores data (here, the A bank address (s, t) of the second layer memory 3). , M (s, t) −h (2s, 2t) −h (2s + 1, 2t)), the subtraction value (m (s, t) −h (2s, 2t)) is obtained in the computing unit 54. −h (2s + 1, 2t) −h (2s, 2t + 1)) is obtained and written to the A bank address (s, t) of the second hierarchical memory 3 by the writing unit 46. That is, the A bank address (s, t) of the second layer memory 3 includes the pixel h (2s + 1, 2t + 1) (= m (s, t) −h (2s, 2t) −h (2s + 1, 2t) -h (2s, 2t + 1)) is written.

従って、第1階層メモリ2のAバンクアドレス(2s+1,2t+1)(ここでは、このアドレスに対応するメモリセルはなく、従って、このアドレスにアクセスがなされても、例えば、何も書き込まれず、何も読み出されない)にアクセスがなされるタイミングにおいては、読み出し部47が、第2階層メモリ3のAバンクアドレス(s,t)から読み出すデータは、図2にD1で示すような第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの、右下の画素(画素値)h(2s+1,2t+1)(但し、h(4m+3,4n+3)を除く)になっている。   Accordingly, the A bank address (2s + 1, 2t + 1) of the first layer memory 2 (here, there is no memory cell corresponding to this address, and therefore, nothing is written, for example, even if this address is accessed) The data read from the A bank address (s, t) of the second hierarchical memory 3 by the reading unit 47 at the timing when access is made to (not read) is the first hierarchical 2 as shown by D1 in FIG. The lower right pixel (pixel value) h (2s + 1, 2t + 1) out of 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) of x2 (However, h (4m + 3, 4n + 3) is excluded).

一方、選択回路58は、ANDゲート59または60の出力のうちの、ANDゲート59の出力のみが1のとき(従って、ANDゲート60の出力は0)、読み出し部47の出力を、第1階層の画素として選択して出力する。即ち、ANDゲート59の出力のみが1のときというのは、ha0およびva0の両方が1で、ha1またはva1のうちのいずれか一方、または両方が0であるときであり、図2にD1で示すような第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの、右下の画素h(2s+1,2t+1)(但し、h(4m+3,4n+3)を除く)が読み出されるタイミングである。この画素h(2s+1,2t+1)は、上述したように、第2階層メモリ3のAバンクアドレス(s,t)から、読み出し部47によって読み出されるから、読み出し部47の出力が、選択回路58で選択されて出力される。   On the other hand, when only the output of the AND gate 59 is 1 among the outputs of the AND gate 59 or 60 (therefore, the output of the AND gate 60 is 0), the selection circuit 58 outputs the output of the reading unit 47 to the first hierarchy. The pixel is selected and output. That is, when only the output of the AND gate 59 is 1, it is when both ha0 and va0 are 1 and either one of ha1 or va1 or both are 0, and D1 in FIG. The lower right pixel h (2) of 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first hierarchy as shown in FIG. 2s + 1, 2t + 1) (excluding h (4m + 3, 4n + 3)). Since the pixel h (2s + 1, 2t + 1) is read by the reading unit 47 from the A bank address (s, t) of the second hierarchical memory 3 as described above, the output of the reading unit 47 is output by the selection circuit 58. Selected and output.

一方、読み出し部51は、第3階層メモリ4から、選択回路34が出力するAバンクアドレスに記憶されている第3階層の画素(画素値)を、選択回路43を介して読み出し、演算器56および選択回路58に供給する。   On the other hand, the reading unit 51 reads out the third layer pixel (pixel value) stored in the A bank address output from the selection circuit 34 from the third layer memory 4 via the selection circuit 43, and calculates the arithmetic unit 56. And is supplied to the selection circuit 58.

ここで、図2にD2で示すような第1階層の4×4の16画素h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+1,4n+1),h(4m+2,4n+1),h(4m+3,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+1,4n+3),h(4m+2,4n+3),h(4m+3,4n+3)にアクセスがなされるタイミングでは、上述したことから、いずれの場合においても、第3階層メモリ4のAバンクアドレス(m,n)にアクセスがなされる。   Here, 4 × 4 16 pixels h (4m, 4n), h (4m + 1, 4n), h (4m + 2, 4n), h (4m + 3, 4n), h in the first layer as shown by D2 in FIG. (4m, 4n + 1), h (4m + 1, 4n + 1), h (4m + 2, 4n + 1), h (4m + 3, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2), h (4m + 2, 4n + 2), h ( 4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 1, 4n + 3), h (4m + 2, 4n + 3), and h (4m + 3, 4n + 3) are accessed at any timing from the above. The A bank address (m, n) of the third hierarchy memory 4 is accessed.

従って、読み出し部44が、第1階層メモリ2から、第1階層の2×2画素のうちの右下の画素h(2s+1,2t+1)を除く第1階層の画素h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+2,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+2,4n+3)を読み出し、端子61aに供給するとき、読み出し部51においては、第3階層メモリ4のAバンクアドレス(m,n)からデータが読み出され、演算器56に供給される。   Accordingly, the reading unit 44 removes from the first layer memory 2 the first layer pixels h (4m, 4n), h excluding the lower right pixel h (2s + 1, 2t + 1) among the 2 × 2 pixels of the first layer. (4m + 1, 4n), h (4m + 2, 4n), h (4m + 3, 4n), h (4m, 4n + 1), h (4m + 2, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2), h ( 4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 2, 4n + 3) are read and supplied to the terminal 61a. Data is read from (m, n) and supplied to the computing unit 56.

スイッチ61は、ANDゲート59の出力が0のとき、端子61aを選択するようになされており、従って、読み出し部44が出力する第1階層の画素h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+2,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+2,4n+3)は、スイッチ61を介して演算器56に供給される。   The switch 61 selects the terminal 61a when the output of the AND gate 59 is 0. Therefore, the first-layer pixels h (4m, 4n) and h (4m + 1, 4n) output from the readout unit 44 are selected. ), H (4m + 2, 4n), h (4m + 3, 4n), h (4m, 4n + 1), h (4m + 2, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2), h (4m + 2, 4n + 2) , H (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 2, 4n + 3) are supplied to the computing unit 56 via the switch 61.

また、読み出し部47が、上述したようにして、第1階層の2×2画素の右下の画素h(2s+1,2t+1)に相当する画素h(4m+1,4n+1),h(4m+3,4n+1),h(4m+1,4n+3)を出力するとき、即ち、ANDゲート59の出力が1のとき、スイッチ61は、端子61bを選択するようになされており、従って、読み出し部47が出力する第1階層の画素h(4m+1,4n+1),h(4m+3,4n+1),h(4m+1,4n+3)も、スイッチ61を介して演算器56に供給される。   In addition, as described above, the reading unit 47 performs pixels h (4m + 1, 4n + 1), h (4m + 3, 4n + 1), corresponding to the lower right pixel h (2s + 1, 2t + 1) of the 2 × 2 pixels in the first layer, When outputting h (4m + 1, 4n + 3), that is, when the output of the AND gate 59 is 1, the switch 61 is configured to select the terminal 61b, and accordingly, the first layer output from the reading unit 47 is output. Pixels h (4m + 1, 4n + 1), h (4m + 3, 4n + 1), and h (4m + 1, 4n + 3) are also supplied to the calculator 56 via the switch 61.

演算器56では、読み出し部51の出力からスイッチ61の出力が減算され、書き込み部50に供給される。書き込み部50は、演算器56の出力を、選択回路43を介して、第3階層メモリ4のAバンクアドレス(m,n)に書き込む。   In the computing unit 56, the output of the switch 61 is subtracted from the output of the reading unit 51 and supplied to the writing unit 50. The writing unit 50 writes the output of the computing unit 56 to the A bank address (m, n) of the third hierarchy memory 4 via the selection circuit 43.

従って、最初は、第3階層メモリ4のAバンクアドレス(m,n)には、第1階層の、上述の4×4の16画素の加算値である第3階層の画素q(m,n)が記憶されているが、読み出し部44が、第1階層の画素h(4m,4n)を読み出すとともに、読み出し部51が、第3階層メモリ4のAバンクアドレス(m,n)に記憶されているデータ(ここでは、q(m,n))を読み出すことで、演算器56において、それらの減算値(q(m,n)−h(4m,4n))が求められ、書き込み部50において、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。   Therefore, at first, the A-bank address (m, n) of the third-layer memory 4 has the third-layer pixel q (m, n), which is the added value of the above-mentioned 4 × 4 16 pixels in the first layer. ) Is stored, but the reading unit 44 reads the pixel h (4m, 4n) in the first layer, and the reading unit 51 is stored in the A bank address (m, n) of the third layer memory 4. The subtracted value (q (m, n) -h (4m, 4n)) is obtained by the computing unit 56 by reading the data (here, q (m, n)), and the writing unit 50 Are written in the A bank address (m, n) of the third hierarchical memory 4.

さらに、読み出し部44が、第1階層の画素h(4m+1,4n)を読み出すとともに、読み出し部51が、第3階層メモリ4のAバンクアドレス(m,n)に記憶されているデータ(ここでは、q(m,n)−h(4m,4n))を読み出すことで、演算器56において、それらの減算値(q(m,n)−h(4m,4n)−h(4m+1,4n))が求められ、書き込み部50において、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。   Further, the reading unit 44 reads the pixel h (4m + 1, 4n) in the first layer, and the reading unit 51 stores data (here, the A bank address (m, n) of the third layer memory 4). , Q (m, n) −h (4m, 4n)), the subtracted value (q (m, n) −h (4m, 4n) −h (4m + 1,4n)) is obtained in the computing unit 56. ) Is obtained, and is written in the A bank address (m, n) of the third hierarchy memory 4 in the writing unit 50.

以下、同様にして、第3階層メモリ4のAバンクアドレス(m,n)の記憶値が書き換えられていく。   Thereafter, similarly, the stored value of the A bank address (m, n) of the third hierarchy memory 4 is rewritten.

そして、読み出し部47において、第1階層の2×2画素のうちの右下の画素h(2s+1,2t+1)に相当する第1階層の画素h(4m+1,4n+1)が読み出されると、これは、上述したように、スイッチ61を介して、演算器56に供給される。このとき、第3階層メモリ4のAバンクアドレス(m,n)には、式q(m,n)−h(4m,4n)−h(4m+1,4n)−h(4m+2,4n)−h(4m+3,4n)−h(4m,4n+1)で表されるデータが記憶されており、読み出し部51では、このデータが読み出され、演算器56に供給される。   When the reading unit 47 reads out the first layer pixel h (4m + 1, 4n + 1) corresponding to the lower right pixel h (2s + 1, 2t + 1) of the 2 × 2 pixels in the first layer, As described above, the data is supplied to the computing unit 56 via the switch 61. At this time, the A bank address (m, n) of the third hierarchy memory 4 has an expression q (m, n) −h (4m, 4n) −h (4m + 1, 4n) −h (4m + 2, 4n) −h. Data represented by (4m + 3, 4n) −h (4m, 4n + 1) is stored, and the reading unit 51 reads this data and supplies it to the computing unit 56.

演算器56では、読み出し部51の出力から読み出し部47の出力が減算され、その減算値(q(m,n)−h(4m,4n)−h(4m+1,4n)−h(4m+2,4n)−h(4m+3,4n)−h(4m,4n+1)−h(4m+1,4n+1))が、書き込み部50によって、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。   In the computing unit 56, the output of the reading unit 47 is subtracted from the output of the reading unit 51, and the subtraction value (q (m, n) -h (4m, 4n) -h (4m + 1,4n) -h (4m + 2,4n) is obtained. ) −h (4m + 3,4n) −h (4m, 4n + 1) −h (4m + 1,4n + 1)) is written to the A bank address (m, n) of the third hierarchy memory 4 by the writing unit 50.

以下、同様にして、最終的には、即ち、読み出し部44が、第1階層の画素h(4m+2,4n+3)を読み出すとともに、読み出し部51が、第3階層メモリ4のAバンクアドレス(m,n)に記憶されているデータ(ここでは、q(m,n)−h(4m,4n)−h(4m+1,4n)−h(4m+2,4n)−h(4m+3,4n)−h(4m,4n+1)−h(4m+1,4n+1)−h(4m+2,4n+1)−h(4m+3,4n+1)−h(4m,4n+2)−h(4m+1,4n+2)−h(4m+2,4n+2)−h(4m+3,4n+2)−h(4m,4n+3)−h(4m+1,4n+3))を読み出すことで、演算器56において、それらの減算値が求められ、書き込み部50において、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。即ち、第3階層メモリ4のAバンクアドレス(m,n)には、第1階層の画素h(4m+3,4n+3)(=q(m,n)−h(4m,4n)−h(4m+1,4n)−h(4m+2,4n)−h(4m+3,4n)−h(4m,4n+1)−h(4m+1,4n+1)−h(4m+2,4n+1)−h(4m+3,4n+1)−h(4m,4n+2)−h(4m+1,4n+2)−h(4m+2,4n+2)−h(4m+3,4n+2)−h(4m,4n+3)−h(4m+1,4n+3)−h(4m+2,4n+3))が書き込まれる。   Thereafter, in the same manner, finally, that is, the reading unit 44 reads the pixel h (4m + 2, 4n + 3) in the first layer, and the reading unit 51 reads the A bank address (m, n) data (here, q (m, n) -h (4m, 4n) -h (4m + 1,4n) -h (4m + 2,4n) -h (4m + 3,4n) -h (4m , 4n + 1) -h (4m + 1,4n + 1) -h (4m + 2,4n + 1) -h (4m + 3,4n + 1) -h (4m, 4n + 2) -h (4m + 1,4n + 2) -h (4m + 2,4n + 2) -h (4m + 3) 4n + 2) −h (4m, 4n + 3) −h (4m + 1, 4n + 3)) is read out by the computing unit 56, and the writing unit 50 determines the A band of the third hierarchical memory 4. Address (m, n) is written into. That is, the A bank address (m, n) of the third layer memory 4 includes the first layer pixel h (4m + 3, 4n + 3) (= q (m, n) −h (4m, 4n) −h (4m + 1, 4n) -h (4m + 2,4n) -h (4m + 3,4n) -h (4m, 4n + 1) -h (4m + 1,4n + 1) -h (4m + 2,4n + 1) -h (4m + 3,4n + 1) -h (4m, 4n + 2) ) −h (4m + 1,4n + 2) −h (4m + 2,4n + 2) −h (4m + 3,4n + 2) −h (4m, 4n + 3) −h (4m + 1,4n + 3) −h (4m + 2,4n + 3)) is written.

従って、第1階層メモリ2のAバンクアドレス(4m+3,4n+3)(ここでは、このアドレスに対応するメモリセルはなく、従って、このアドレスにアクセスがなされても、例えば、何も書き込まれず、何も読み出されない)にアクセスがなされるタイミングにおいては、読み出し部51が、第3階層メモリ4のAバンクアドレス(m,n)から読み出すデータは、図2にD2で示すような第1階層の4×4の16画素のうちの、右下の画素(画素値)h(4m+3,4n+3)になっている。   Therefore, the A bank address (4m + 3, 4n + 3) of the first layer memory 2 (here, there is no memory cell corresponding to this address, and therefore, nothing is written, for example, nothing is accessed even if this address is accessed. The data read by the reading unit 51 from the A bank address (m, n) of the third layer memory 4 is 4 in the first layer as indicated by D2 in FIG. Of the 16 pixels of × 4, the lower right pixel (pixel value) is h (4m + 3, 4n + 3).

一方、選択回路58は、ANDゲート59および60の両方の出力が1のとき、読み出し部51の出力を、第1階層の画素として選択して出力する。即ち、ANDゲート59および50の両方の出力が1のときというのは、ha0,va0,ha1,va1のすべてが1であるときであり、図2にD2で示すような第1階層の4×4の16画素のうちの、右下の画素h(4m+3,4n+3)が読み出されるタイミングである。この画素h(4m+3,4n+3)は、上述したように、第3階層メモリ4のAバンクアドレス(m,n)から、読み出し部51によって読み出されるから、読み出し部51の出力が、選択回路58で選択されて出力される。   On the other hand, when both the outputs of the AND gates 59 and 60 are 1, the selection circuit 58 selects and outputs the output of the reading unit 51 as a pixel in the first hierarchy. That is, when both the outputs of the AND gates 59 and 50 are 1, this is when all of ha0, va0, ha1, va1 are 1, and 4 × of the first hierarchy as shown by D2 in FIG. This is the timing at which the lower right pixel h (4m + 3, 4n + 3) is read out of the four 16 pixels. Since the pixel h (4m + 3, 4n + 3) is read out from the A bank address (m, n) of the third hierarchical memory 4 by the reading unit 51 as described above, the output of the reading unit 51 is output by the selection circuit 58. Selected and output.

ところで、以上のようにして、第1階層の画素が読み出されていくと、第2階層メモリ3には、第1階層の画素h(2s+1,2t+1)(但し、h(4m+3,4n+3)を除く)が記憶されるようになり、また、第3階層メモリ4には、第1階層の画素h(4m+3,4n+3)が記憶されるようになる。   By the way, when pixels in the first layer are read out as described above, the pixels h (2s + 1, 2t + 1) (however, h (4m + 3, 4n + 3) in the first layer are stored in the second layer memory 3. The third layer memory 4 stores the first layer pixels h (4m + 3, 4n + 3).

即ち、第2階層メモリ3または第3階層メモリ4の記憶値は、第2または第3階層の画素それぞれから、第1階層の画素に書き換えられる。   That is, the stored value of the second hierarchy memory 3 or the third hierarchy memory 4 is rewritten from the second or third hierarchy pixel to the first hierarchy pixel.

従って、このように書き換えられた第2階層メモリ3または第3階層メモリ4の記憶値を、それぞれ、元の第2または第3階層の画素に戻す必要がある(但し、必要がなければ、戻さなくてもよい)。   Therefore, it is necessary to return the stored values of the second hierarchy memory 3 or the third hierarchy memory 4 rewritten in this way to the original pixels of the second or third hierarchy, respectively. Not required).

そこで、上述したように、第1階層メモリ2は、第8αライン乃至第8α+3ラインの画素を記憶するためのAバンクと、第8α+4ライン乃至第8α+7ラインの画素を記憶するためのBバンクとに分離されている。さらに、第2階層メモリ3は、第2階層の第4αラインおよび第4α+1ラインの画素を記憶するためのAバンクと、第2階層の第4α+2ラインおよび第4α+3ラインの画素を記憶するためのBバンクとに分離されており、また、第3階層メモリ4は、第3階層の第2αラインの画素を記憶するためのAバンクと、第2α+1ラインの画素を記憶するためのBバンクとに分離されている。   Therefore, as described above, the first hierarchy memory 2 is divided into the A bank for storing the pixels of the 8α to 8α + 3 lines and the B bank for storing the pixels of the 8α + 4 lines to the 8α + 7 lines. It is separated. Further, the second hierarchy memory 3 stores the A bank for storing the pixels of the 4α line and the 4α + 1 line of the second hierarchy, and the B for storing the pixels of the 4α + 2 line and the 4α + 3 line of the second hierarchy. The third hierarchy memory 4 is divided into A bank for storing the pixels of the second α line of the third hierarchy and B bank for storing the pixels of the second α + 1 line. Has been.

そして、本実施の形態では、遅延水平アドレスHAおよび遅延垂直アドレスVAは、水平アドレスHAおよび垂直アドレスVAを4ライン分遅延したものとなっており、上述したように、水平アドレスHAおよび垂直アドレスVAがAバンクアドレスとして、遅延水平アドレスHAおよび遅延垂直アドレスVAがBバンクアドレスとして、それぞれ選択されている場合には、第1階層メモリ2においては、水平アドレスHAおよび垂直アドレスVAに対応するAバンクのメモリセルにアクセスがなされるが、このとき、同時に、その4ライン分だけ前にアクセスされた、遅延水平アドレスHAおよび遅延垂直アドレスVAに対応するBバンクのメモリセル(Aバンクのメモリセルの位置に対応するBバンクのメモリセル)にもアクセスがなされる。   In this embodiment, the delayed horizontal address HA and the delayed vertical address VA are obtained by delaying the horizontal address HA and the vertical address VA by four lines, and as described above, the horizontal address HA and the vertical address VA. Is selected as the A bank address, and the delayed horizontal address HA and the delayed vertical address VA are selected as the B bank addresses, respectively, in the first hierarchy memory 2, the A bank corresponding to the horizontal address HA and the vertical address VA At this time, at the same time, the memory cells in the B bank corresponding to the delayed horizontal address HA and the delayed vertical address VA accessed by the previous four lines (the memory cells in the A bank) are accessed. B bank memory cell corresponding to the location is not accessed. That.

同様に、第2階層メモリ3においては、Aバンクのメモリセルにアクセスがなされるとともに、2ライン分だけ前にアクセスされたBバンクのメモリセルにアクセスがなされる。さらに、第3階層メモリ4においては、Aバンクのメモリセルにアクセスがなされるとともに、1ライン分だけ前にアクセスされたBバンクのメモリセルにアクセスがなされる。   Similarly, in the second hierarchical memory 3, access is made to the memory cells in the A bank and access is made to the memory cells in the B bank that are accessed two lines before. Further, in the third hierarchical memory 4, access is made to the memory cells in the A bank, and access is made to the memory cells in the B bank that are accessed by one line before.

従って、読み出し部44が、第1階層メモリ2のAバンクから、第1階層の画素h(2s,2t),h(2s+1,2t),h(2s,2t+1)を読み出すとき、読み出し部45においては、選択回路41を介して、第1階層メモリ2のBバンクから、4ライン前にアクセスされた第1階層の画素h(2s,2t’),h(2s+1,2t’),h(2s,2t’+1)がそれぞれ読み出され、演算器55に供給される。ここで、t’=t−2である。   Therefore, when the reading unit 44 reads the pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1) of the first layer from the A bank of the first layer memory 2, the reading unit 45 The pixels h (2s, 2t ′), h (2s + 1, 2t ′), h (2s) of the first layer accessed four lines before from the B bank of the first layer memory 2 via the selection circuit 41. , 2t ′ + 1) are read out and supplied to the computing unit 55. Here, t ′ = t−2.

また、読み出し部45が、第1階層メモリ2のBバンクから、第1階層の画素h(2s,2t’),h(2s+1,2t’),h(2s,2t’+1)を読み出すとき、読み出し部49においては、いずれのときも、選択回路42を介して、第2階層メモリ3のBバンクにおけるアドレス(所定のアドレス)(s,t’)から、データが読み出され、演算器55に供給される。   When the reading unit 45 reads out the pixels h (2s, 2t ′), h (2s + 1, 2t ′), and h (2s, 2t ′ + 1) of the first layer from the B bank of the first layer memory 2, In any case, the reading unit 49 reads data from the address (predetermined address) (s, t ′) in the B bank of the second hierarchical memory 3 via the selection circuit 42, and the arithmetic unit 55. To be supplied.

演算器55では、読み出し部45の出力と読み出し部49の出力とが加算され、その加算値は、書き込み部48に供給される。書き込み部48は、演算器55の出力を、選択回路42を介して、第2階層メモリ3のBバンクアドレス(s,t’)に書き込む。   In the computing unit 55, the output of the reading unit 45 and the output of the reading unit 49 are added, and the added value is supplied to the writing unit 48. The writing unit 48 writes the output of the calculator 55 to the B bank address (s, t ′) of the second hierarchical memory 3 via the selection circuit 42.

従って、最初は、第2階層メモリ3のBバンクアドレス(s,t’)には、第2階層について2ライン分(第1階層については4ライン分)だけ前にアクセスされることによって求められた第1階層の画素h(2s+1,2t’+1)が記憶されているが、読み出し部45が、第1階層メモリ2のBバンクから、第1階層の画素h(2s,2t’)を読み出すとともに、読み出し部49が、第2階層メモリ3のBバンクアドレス(s,t’)に記憶されているデータ(ここでは、h(2s+1,2t’+1))を読み出すことで、演算器55において、それらの加算値(h(2s,2t’)+h(2s+1,2t’+1))が求められ、書き込み部48において、第2階層メモリ3のBバンクアドレス(s,t’)に書き込まれる。   Therefore, at first, the B bank address (s, t ′) of the second hierarchy memory 3 is obtained by being accessed by two lines before the second hierarchy (four lines for the first hierarchy). The first-layer pixel h (2s + 1, 2t ′ + 1) is stored, but the reading unit 45 reads the first-layer pixel h (2s, 2t ′) from the B bank of the first-layer memory 2. At the same time, the reading unit 49 reads the data (here, h (2s + 1, 2t ′ + 1)) stored in the B bank address (s, t ′) of the second hierarchy memory 3, so that the computing unit 55 The added value (h (2s, 2t ′) + h (2s + 1, 2t ′ + 1)) is obtained and written in the B bank address (s, t ′) of the second hierarchical memory 3 by the writing unit 48.

さらに、読み出し部45が、第1階層メモリ2のBバンクから、第1階層の画素h(2s+1,2t’)を読み出すとともに、読み出し部49が、第2階層メモリ3のBバンクアドレス(s,t’)に記憶されているデータ(ここでは、h(2s,2t’)+h(2s+1,2t’+1))を読み出すことで、演算器55において、それらの加算値(h(2s,2t’)+h(2s+1,2t)+h(2s+1,2t’+1))が求められ、書き込み部48において、第2階層メモリ3のBバンクアドレス(s,t’)に書き込まれる。   Further, the reading unit 45 reads the pixel h (2s + 1, 2t ′) of the first layer from the B bank of the first layer memory 2, and the reading unit 49 reads the B bank address (s, By reading the data (here, h (2s, 2t ′) + h (2s + 1, 2t ′ + 1)) stored in t ′), the arithmetic unit 55 adds the added values (h (2s, 2t ′). ) + H (2s + 1, 2t) + h (2s + 1, 2t ′ + 1)) is obtained and written in the B bank address (s, t ′) of the second hierarchical memory 3 by the writing unit 48.

その後、読み出し部45が、第1階層メモリ2のBバンクから、第1階層の画素h(2s,2t’+1)を読み出すとともに、読み出し部49が、第2階層メモリ3のBバンクアドレス(s,t’)に記憶されているデータ(ここでは、h(2s,2t’)+h(2s+1,2t)+h(2s+1,2t’+1))を読み出すことで、演算器55において、それらの加算値(h(2s,2t’)+h(2s+1,2t)+h(2s,2t’+1)+h(2s+1,2t’+1))が求められ、書き込み部48において、第2階層メモリ3のBバンクアドレス(s,t’)に書き込まれる。即ち、第2階層メモリ3のBバンクアドレス(s,t’)には、元の第2階層の画素m(s,t’)(=h(2s,2t’)+h(2s+1,2t)+h(2s,2t’+1)+h(2s+1,2t’+1))が書き込まれる。   After that, the reading unit 45 reads the pixel h (2s, 2t ′ + 1) of the first layer from the B bank of the first layer memory 2 and the reading unit 49 reads the B bank address (s of the second layer memory 3). , T ′) by reading out the data (here, h (2s, 2t ′) + h (2s + 1, 2t) + h (2s + 1, 2t ′ + 1)), the arithmetic unit 55 adds them. (H (2s, 2t ′) + h (2s + 1, 2t) + h (2s, 2t ′ + 1) + h (2s + 1, 2t ′ + 1)) is obtained, and the write unit 48 uses the B bank address ( s, t ′). In other words, the B bank address (s, t ′) of the second layer memory 3 includes the original second layer pixel m (s, t ′) (= h (2s, 2t ′) + h (2s + 1, 2t) + h. (2s, 2t ′ + 1) + h (2s + 1, 2t ′ + 1)) is written.

また、読み出し部44が、第1階層メモリ2のAバンクから、第1階層の2×2画素のうちの右下の画素h(2s+1,2t+1)を除く第1階層の画素h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+2,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+2,4n+3)を読み出すとき、読み出し部45においては、第1階層メモリ2のBバンクから、選択回路41を介して、4ライン前の第1階層の画素h(4m,4n’),h(4m+1,4n’),h(4m+2,4n’),h(4m+3,4n’),h(4m,4n’+1),h(4m+2,4n’+1),h(4m,4n’+2),h(4m+1,4n’+2),h(4m+2,4n’+2),h(4m+3,4n’+2),h(4m,4n’+3),h(4m+2,4n’+3)がそれぞれ読み出され、演算器57に供給される。但し、n’=n−1である。   In addition, the reading unit 44 removes the lower right pixel h (2s + 1, 2t + 1) out of the 2 × 2 pixels of the first hierarchy from the A bank of the first hierarchy memory 2, and the pixel h (4m, 4n) of the first hierarchy. ), H (4m + 1, 4n), h (4m + 2, 4n), h (4m + 3, 4n), h (4m, 4n + 1), h (4m + 2, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2) , H (4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 2, 4n + 3), the reading unit 45 selects the selection circuit from the B bank of the first hierarchy memory 2. 41, the pixels h (4m, 4n ′), h (4m + 1, 4n ′), h (4m + 2, 4n ′), h (4m + 3, 4n ′), h (4m, 4n '+ 1), h (4m + 2 4n ′ + 1), h (4m, 4n ′ + 2), h (4m + 1, 4n ′ + 2), h (4m + 2, 4n ′ + 2), h (4m + 3, 4n ′ + 2), h (4m, 4n ′ + 3), h (4m + 2, 4n ′ + 3) is read out and supplied to the computing unit 57. However, n ′ = n−1.

さらに、この場合、読み出し部53においては、選択回路43を介して、第3階層メモリ4のBバンクアドレス(m,n’)からデータが読み出され、演算器57に供給される。   Further, in this case, in the reading unit 53, data is read from the B bank address (m, n ′) of the third hierarchy memory 4 via the selection circuit 43 and supplied to the calculator 57.

演算器57には、さらに、スイッチ62を介して、読み出し部49の出力も供給されるようになされている。スイッチ62は、NORゲート63の出力がHレベルの場合(ha0=va0=0の場合)のみオンし、他の場合はオフするようになされている。従って、スイッチ62は、読み出し部49が、第2階層メモリ3のBバンクから、第1階層の画素h(4m+1,4n’+1),h(4m+3,4n’+1),h(4m+1,4n’+3)を読み出すときのみオンし、その結果、その第1階層の画素h(4m+1,4n’+1),h(4m+3,4n’+1),h(4m+1,4n’+3)は、スイッチ62を介して演算器57に供給される。   The computing unit 57 is also supplied with the output of the reading unit 49 via the switch 62. The switch 62 is turned on only when the output of the NOR gate 63 is at the H level (when ha0 = va0 = 0), and turned off otherwise. Accordingly, in the switch 62, the readout unit 49 causes the pixels h (4m + 1, 4n ′ + 1), h (4m + 3, 4n ′ + 1), h (4m + 1, 4n ′) of the first hierarchy from the B bank of the second hierarchy memory 3. +3) is turned on only when reading out. As a result, the pixels h (4m + 1, 4n ′ + 1), h (4m + 3, 4n ′ + 1), h (4m + 1, 4n ′ + 3) in the first layer are connected via the switch 62. To the calculator 57.

演算器57では、読み出し部45の出力と読み出し部53の出力とが加算され、さらに、スイッチ62がオンしており、読み出し部49の出力が供給される場合には、その出力も加算され、その加算値は、書き込み部52に供給される。書き込み部52は、演算器57の出力を、選択回路43を介して、第3階層メモリ4のBバンクアドレス(m,n’)に書き込む。   In the computing unit 57, the output of the reading unit 45 and the output of the reading unit 53 are added, and when the switch 62 is on and the output of the reading unit 49 is supplied, the output is also added, The added value is supplied to the writing unit 52. The writing unit 52 writes the output of the arithmetic unit 57 to the B bank address (m, n ′) of the third hierarchy memory 4 via the selection circuit 43.

従って、最初は、第3階層メモリ4のAバンクアドレス(m,n’)には、第3階層について1ライン分(第1階層については4ライン分)だけ前にアクセスされることによって求められた第1階層の画素h(4m+3,4n’+3)が記憶されているが、読み出し部45または49が、第1階層の画素h(4m,4n’)またはh(4m+1,4n’+1)をそれぞれ読み出すとともに、読み出し部53が、第3階層メモリ4のBバンクアドレス(m,n’)に記憶されているデータ(ここでは、h(4m+3,4n’+3))を読み出すことで、演算器57において、それらの加算値(h(4m,4n’)+h(4m+1,4n’+1)+h(4m+3,4n’+3))が求められ、書き込み部52において、第3階層メモリ4のBバンクアドレス(m,n’)に書き込まれる。   Therefore, at first, the A bank address (m, n ′) of the third hierarchy memory 4 is obtained by being accessed by one line before the third hierarchy (four lines for the first hierarchy). The first-layer pixel h (4m + 3, 4n ′ + 3) is stored, but the readout unit 45 or 49 selects the first-layer pixel h (4m, 4n ′) or h (4m + 1, 4n ′ + 1). The readout unit 53 reads out the data (here, h (4m + 3, 4n ′ + 3)) stored in the B bank address (m, n ′) of the third hierarchy memory 4, thereby calculating the computing unit. 57, the added value (h (4m, 4n ′) + h (4m + 1, 4n ′ + 1) + h (4m + 3, 4n ′ + 3)) is obtained, and the B band of the third hierarchy memory 4 is obtained in the writing unit 52. Address (m, n ') are written in.

さらに、読み出し部45が、第1階層の画素h(4m+1,4n’)を読み出すとともに、読み出し部53が、第3階層メモリ4のBバンクアドレス(m,n’)に記憶されているデータ(ここでは、h(4m,4n’)+h(4m+1,4n’+1)+h(4m+3,4n’+3))を読み出すことで、演算器57において、それらの加算値(h(4m,4n’)+h(4m+1,4n’)+h(4m+1,4n’+1)+h(4m+3,4n’+3))が求められ、書き込み部52において、第3階層メモリ4のBバンクアドレス(m,n’)に書き込まれる。   Further, the readout unit 45 reads out the pixel h (4m + 1, 4n ′) in the first layer, and the readout unit 53 stores the data (the memory (B) (m, n ′) in the third layer memory 4 ( Here, by reading out h (4m, 4n ′) + h (4m + 1, 4n ′ + 1) + h (4m + 3, 4n ′ + 3)), the arithmetic unit 57 adds those values (h (4m, 4n ′) + h (4m + 1,4n ′) + h (4m + 1,4n ′ + 1) + h (4m + 3,4n ′ + 3)) is obtained and written to the B bank address (m, n ′) of the third-level memory 4 by the writing unit 52. .

以下、同様にして、最終的には、即ち、読み出し部45が、第1階層の画素h(4m+2,4n’+3)を読み出すとともに、読み出し部53が、第3階層メモリ4のBバンクアドレス(m,n’)に記憶されているデータ(ここでは、h(4m,4n’)+h(4m+1,4n’)+h(4m+2,4n’)+h(4m+3,4n’)+h(4m,4n’+1)+h(4m+1,4n’+1)+h(4m+2,4n’+1)+h(4m+3,4n’+1)+h(4m,4n’+2)+h(4m+1,4n’+2)+h(4m+2,4n’+2)+h(4m+3,4n’+2)+h(4m,4n’+3)+h(4m+1,4n’+3)+h(4m+3,4n’+3))を読み出すことで、演算器57において、それらの加算値が求められ、書き込み部52において、第3階層メモリ4のBバンクアドレス(m,n’)に書き込まれる。即ち、第3階層メモリ4のBバンクアドレス(m,n’)には、元の第3階層の画素q(m,n’)(=h(4m,4n’)+h(4m+1,4n’)+h(4m+2,4n’)+h(4m+3,4n’)+h(4m,4n’+1)+h(4m+1,4n’+1)+h(4m+2,4n’+1)+h(4m+3,4n’+1)+h(4m,4n’+2)+h(4m+1,4n’+2)+h(4m+2,4n’+2)+h(4m+3,4n’+2)+h(4m,4n’+3)+h(4m+1,4n’+3)+h(4m+2,4n’+3)+h(4m+3,4n’+3))が書き込まれる。   Thereafter, similarly, finally, that is, the reading unit 45 reads the pixel h (4m + 2, 4n ′ + 3) in the first layer, and the reading unit 53 reads the B bank address ( m, n ′) (here, h (4m, 4n ′) + h (4m + 1,4n ′) + h (4m + 2,4n ′) + h (4m + 3,4n ′) + h (4m, 4n ′ + 1) ) + H (4m + 1,4n ′ + 1) + h (4m + 2,4n ′ + 1) + h (4m + 3,4n ′ + 1) + h (4m, 4n ′ + 2) + h (4m + 1,4n ′ + 2) + h (4m + 2,4n ′ + 2) + h By reading (4m + 3, 4n ′ + 2) + h (4m, 4n ′ + 3) + h (4m + 1, 4n ′ + 3) + h (4m + 3, 4n ′ + 3)), the arithmetic unit 57 obtains the added value thereof. book In write unit 52, and written bank B address in the third layer memory 4 (m, n ') in the. That is, the B bank address (m, n ′) of the third layer memory 4 includes the original third layer pixel q (m, n ′) (= h (4m, 4n ′) + h (4m + 1, 4n ′). + H (4m + 2,4n ′) + h (4m + 3,4n ′) + h (4m, 4n ′ + 1) + h (4m + 1,4n ′ + 1) + h (4m + 2,4n ′ + 1) + h (4m + 3,4n ′ + 1) + h (4m, 4n ′ + 2) + h (4m + 1,4n ′ + 2) + h (4m + 2,4n ′ + 2) + h (4m + 3,4n ′ + 2) + h (4m, 4n ′ + 3) + h (4m + 1,4n ′ + 3) + h (4m + 2,4n ′) +3) + h (4m + 3, 4n ′ + 3)) is written.

その後、垂直アドレスVAの下位3ビット目va2が変化すると、選択回路32において、アドレス供給回路1に供給された水平アドレスHAおよび垂直アドレスVAがBバンクアドレスとして、遅延水平アドレスHAおよび遅延垂直アドレスVAがAバンクアドレスとして、それぞれ選択される。   Thereafter, when the lower third bit va2 of the vertical address VA changes, in the selection circuit 32, the horizontal address HA and the vertical address VA supplied to the address supply circuit 1 are used as the B bank address, and the delayed horizontal address HA and the delayed vertical address VA. Are selected as A bank addresses, respectively.

この場合、選択回路33および34においても、同様にして、AバンクアドレスおよびBバンクアドレスが選択される。即ち、選択回路33では、水平アドレスHAの上位8ビットha1乃至ha8および垂直アドレスVAの上位8ビットva1乃至va8が、Bバンクアドレスとして、遅延水平アドレスHAの上位8ビットha1乃至ha8および遅延垂直アドレスVAの上位8ビットva1乃至va8が、Aバンクアドレスとして、それぞれ選択される。また、選択回路34では、水平アドレスHAの上位7ビットha2乃至ha8および垂直アドレスVAの上位7ビットva2乃至va8が、Bバンクアドレスとして、遅延水平アドレスHAの上位7ビットha2乃至ha8および遅延垂直アドレスVAの上位7ビットva2乃至va8が、Aバンクアドレスとして、それぞれ選択される。   In this case, in the selection circuits 33 and 34, the A bank address and the B bank address are selected in the same manner. That is, in the selection circuit 33, the upper 8 bits ha1 to ha8 of the horizontal address HA and the upper 8 bits va1 to va8 of the vertical address VA are used as the B bank address as the upper 8 bits ha1 to ha8 and the delayed vertical address of the delayed horizontal address HA. The upper 8 bits va1 to va8 of VA are selected as A bank addresses, respectively. In the selection circuit 34, the upper 7 bits ha2 to ha8 of the horizontal address HA and the upper 7 bits va2 to va8 of the vertical address VA are used as the B bank address as the upper 7 bits ha2 to ha8 and the delayed vertical address of the delayed horizontal address HA. The upper 7 bits va2 to va8 of VA are selected as A bank addresses, respectively.

選択回路32乃至34において選択されたAバンクアドレスとBバンクアドレスは、第1階層メモリ2、第2階層メモリ3、または第3階層メモリ4のそれぞれAバンクアドレス端子とBバンクアドレス端子に供給される。   The A bank address and the B bank address selected by the selection circuits 32 to 34 are supplied to the A bank address terminal and the B bank address terminal of the first hierarchy memory 2, the second hierarchy memory 3, or the third hierarchy memory 4, respectively. The

さらに、選択回路41においては、第1階層メモリ2のBバンクデータ端子が読み出し部44に接続されるとともに、そのAバンクデータ端子が読み出し部45に接続される。また、選択回路42では、第2階層メモリ3のBバンクデータ端子が、書き込み部46および読み出し部47に接続されるとともに、そのAバンクデータ端子が、書き込み部48および読み出し部49に接続される。さらに、選択回路43では、第3階層メモリ4のBバンクデータ端子が、書き込み部50および読み出し部51に接続されるとともに、そのAバンクデータ端子が、書き込み部52および読み出し部53に接続される。   Further, in the selection circuit 41, the B bank data terminal of the first hierarchy memory 2 is connected to the reading unit 44, and the A bank data terminal is connected to the reading unit 45. In the selection circuit 42, the B bank data terminal of the second hierarchical memory 3 is connected to the writing unit 46 and the reading unit 47, and the A bank data terminal is connected to the writing unit 48 and the reading unit 49. . Further, in the selection circuit 43, the B bank data terminal of the third hierarchy memory 4 is connected to the writing unit 50 and the reading unit 51, and the A bank data terminal is connected to the writing unit 52 and the reading unit 53. .

そして、上述の処理におけるAバンクまたはBバンクを、BバンクまたはAバンクとそれぞれ読み替えた処理が行われる。   Then, a process is performed in which A bank or B bank in the above-described process is replaced with B bank or A bank, respectively.

以下、同様の処理が行われ、第1階層の画素が選択回路58から出力されていくとともに、それに伴い書き換えられる第2階層メモリ3および第3階層メモリ4の記憶内容が、元の値に、再度書き換えられる。   Thereafter, the same processing is performed, and the first layer pixels are output from the selection circuit 58, and the contents stored in the second layer memory 3 and the third layer memory 4 rewritten accordingly are changed to the original values. It will be rewritten again.

次に、図8は、第1階層メモリ2および第2階層メモリ3を、上述のように、少ない記憶容量のものとした場合における、第2階層の画像を読み出すときの、図1の記憶装置の構成例を示している。なお、図8においては、第1階層メモリ2に関する部分の図示は省略してある。   Next, FIG. 8 shows the storage device shown in FIG. 1 when reading the image of the second hierarchy when the first hierarchy memory 2 and the second hierarchy memory 3 have a small storage capacity as described above. The example of a structure is shown. In FIG. 8, the portion related to the first hierarchy memory 2 is not shown.

この場合、アドレス供給回路1は、遅延回路71、並びに選択回路73および74で構成される。遅延回路31、選択回路73,74は、図6における遅延回路31、選択回路33,34とそれぞれ同様に構成されている。   In this case, the address supply circuit 1 includes a delay circuit 71 and selection circuits 73 and 74. The delay circuit 31 and the selection circuits 73 and 74 are configured in the same manner as the delay circuit 31 and the selection circuits 33 and 34 in FIG.

また、第2階層メモリ3および第3階層メモリ4も、図6における場合と同様に構成されている。   Also, the second hierarchy memory 3 and the third hierarchy memory 4 are configured in the same manner as in FIG.

さらに、RMW回路5は、選択回路81,82、読み出し部84,85、書き込み部86、読み出し部87、書き込み部88、読み出し部89、スイッチ91,92、演算器94,95、選択回路98,ANDゲート99,100で構成されている。   Further, the RMW circuit 5 includes selection circuits 81 and 82, reading units 84 and 85, writing unit 86, reading unit 87, writing unit 88, reading unit 89, switches 91 and 92, arithmetic units 94 and 95, selection circuits 98, It consists of AND gates 99 and 100.

第2階層メモリ3のAバンクまたはBバンクそれぞれから読み出されたデータ(AバンクデータまたはBバンクデータ)が出力されるAバンクデータ端子またはBバンクデータ端子は、いずれも選択回路81に接続されている。また、選択回路81には、アドレス供給回路1から、垂直アドレスVAの下位3ビット目va2が、制御信号として供給されるようになされており、選択回路81では、制御信号va2に対応して、Aバンクデータ端子またはBバンクデータ端子のうちの一方が読み出し部84に接続され、他方が読み出し部85に接続されるようになされている。   Both the A bank data terminal and the B bank data terminal from which data (A bank data or B bank data) read from the A bank or B bank of the second hierarchical memory 3 is output are connected to the selection circuit 81. ing. The selection circuit 81 is supplied with the lower third bit va2 of the vertical address VA from the address supply circuit 1 as a control signal. In the selection circuit 81, the selection circuit 81 corresponds to the control signal va2. One of the A bank data terminal and the B bank data terminal is connected to the reading unit 84, and the other is connected to the reading unit 85.

即ち、選択回路81は、ある時点において、例えば、Aバンクデータ端子またはBバンクデータ端子を、読み出し部84または85にそれぞれ接続している場合において、制御信号va2が変化すると、Aバンクデータ端子またはBバンクデータ端子を、読み出し部85または84にそれぞれ接続する。さらに、その後、制御信号va2が再度変化すると、選択回路81は、Aバンクデータ端子またはBバンクデータ端子を、読み出し部84または85にそれぞれ再び接続する。従って、選択回路81によれば、制御信号va2が変化するごとに、Aバンクデータ端子が読み出し部84または85に交互に接続されるとともに、Bバンクデータ端子が読み出し部85または84に交互に接続される。   That is, at a certain point in time, for example, when the A bank data terminal or the B bank data terminal is connected to the reading unit 84 or 85, respectively, the selection circuit 81 changes the A bank data terminal or The B bank data terminal is connected to the reading unit 85 or 84, respectively. Further, after that, when the control signal va2 changes again, the selection circuit 81 connects the A bank data terminal or the B bank data terminal to the reading unit 84 or 85 again. Therefore, according to the selection circuit 81, every time the control signal va2 changes, the A bank data terminal is alternately connected to the reading unit 84 or 85, and the B bank data terminal is alternately connected to the reading unit 85 or 84. Is done.

第3階層メモリ4のAバンクに書き込まれるデータが供給されるとともに、Aバンクから読み出されたデータが出力されるAバンクデータ端子、およびそのBバンクに書き込まれるデータが供給されるとともに、Bバンクから読み出されたデータが出力されるBバンクデータ端子は、いずれも選択回路82に接続されている。また、選択回路82にも、アドレス供給回路1から、垂直アドレスVAの下位3ビット目va2が、制御信号として供給されるようになされており、選択回路82では、制御信号va2に対応して、Aバンクデータ端子またはBバンクデータ端子のうちの一方が書き込み部86および読み出し部87に接続され、他方が書き込み部88および読み出し部89に接続されるようになされている。   The data to be written to the A bank of the third hierarchy memory 4 is supplied, the A bank data terminal to which the data read from the A bank is output, and the data to be written to the B bank are supplied, and B The B bank data terminals to which data read from the bank are output are all connected to the selection circuit 82. The selection circuit 82 is also supplied with the lower third bit va2 of the vertical address VA from the address supply circuit 1 as a control signal. The selection circuit 82 corresponds to the control signal va2, One of the A bank data terminal and the B bank data terminal is connected to the writing unit 86 and the reading unit 87, and the other is connected to the writing unit 88 and the reading unit 89.

即ち、選択回路82は、ある時点において、例えば、Aバンクデータ端子を書き込み部86および読み出し部87に接続し、Bバンクデータ端子を書き込み部88および読み出し部89に接続している場合において、制御信号va2が変化すると、Aバンクデータ端子を、書き込み部88および読み出し部89に接続し、Bバンク端子を、書き込み部86および読み出し部87に接続する。さらに、その後、制御信号va2が再度変化すると、選択回路82は、Aバンクデータ端子を書き込み部86および読み出し部87に再び接続するとともに、Bバンクデータ端子を書き込み部88および読み出し部89に再び接続する。従って、選択回路82によれば、制御信号va2が変化するごとに、Aバンクデータ端子が、書き込み部86と読み出し部87、または書き込み部88と読み出し部89に交互に接続されるとともに、Bバンクデータ端子が、書き込み部88と読み出し部89、または書き込み部86と読み出し部87に交互に接続される。   That is, the selection circuit 82 is controlled at a certain point in time when, for example, the A bank data terminal is connected to the writing unit 86 and the reading unit 87 and the B bank data terminal is connected to the writing unit 88 and the reading unit 89. When the signal va2 changes, the A bank data terminal is connected to the writing unit 88 and the reading unit 89, and the B bank terminal is connected to the writing unit 86 and the reading unit 87. Further, after that, when the control signal va2 changes again, the selection circuit 82 reconnects the A bank data terminal to the writing unit 86 and the reading unit 87, and reconnects the B bank data terminal to the writing unit 88 and the reading unit 89. To do. Therefore, according to the selection circuit 82, every time the control signal va2 changes, the A bank data terminal is alternately connected to the writing unit 86 and the reading unit 87, or the writing unit 88 and the reading unit 89, and the B bank. Data terminals are alternately connected to the writing unit 88 and the reading unit 89 or between the writing unit 86 and the reading unit 87.

読み出し部84または85は、選択回路81を介して、第2階層メモリ3からデータを読み出すようになされている。読み出し部84が読み出したデータは、スイッチ91の端子91bおよび選択回路98に供給されるようになされている。また、読み出し部85が読み出したデータは、スイッチ92の端子92bに供給されるようになされている。書き込み部86は、演算器94の出力を、選択回路82を介して、第3階層メモリ4に書き込むようになされている。読み出し部87は、選択回路82を介して、第3階層メモリ4からデータを読み出し、演算器94および選択回路98に供給するようになされている。書き込み部88は、演算器95の出力を、選択回路82を介して、第3階層メモリ4に書き込むようになされている。読み出し部89は、選択回路82を介して、第3階層メモリ4からデータを読み出し、演算器95に供給するようになされている。   The reading unit 84 or 85 reads data from the second hierarchy memory 3 via the selection circuit 81. The data read by the reading unit 84 is supplied to the terminal 91b of the switch 91 and the selection circuit 98. Further, the data read by the reading unit 85 is supplied to the terminal 92b of the switch 92. The writing unit 86 writes the output of the arithmetic unit 94 into the third hierarchy memory 4 via the selection circuit 82. The reading unit 87 reads data from the third hierarchy memory 4 via the selection circuit 82 and supplies the data to the arithmetic unit 94 and the selection circuit 98. The writing unit 88 is configured to write the output of the arithmetic unit 95 into the third hierarchy memory 4 via the selection circuit 82. The reading unit 89 reads data from the third hierarchy memory 4 via the selection circuit 82 and supplies the data to the arithmetic unit 95.

スイッチ91は、ANDゲート99の出力に対応して、端子91aまたは91bのうちのいずれか一方を選択するようになされており、その出力は、演算器94に供給されるようになされている。なお、端子91bには、0が供給されるようになされている。スイッチ92も、ANDゲート99の出力に対応して、端子92aまたは92bのうちのいずれか一方を選択するようになされており、その出力は、演算器95に供給されるようになされている。なお、端子92bには、0が供給されるようになされている。   The switch 91 selects one of the terminals 91a and 91b corresponding to the output of the AND gate 99, and the output is supplied to the arithmetic unit 94. Note that 0 is supplied to the terminal 91b. The switch 92 selects one of the terminals 92a and 92b corresponding to the output of the AND gate 99, and the output is supplied to the arithmetic unit 95. Note that 0 is supplied to the terminal 92b.

演算器94は、読み出し部87の出力から、スイッチ91の出力を減算して、その減算結果を、書き込み部86に供給するようになされている。演算器95は、読み出し部89の出力とスイッチ92の出力とを加算し、その加算結果を、書き込み部88に供給するようになされている。   The arithmetic unit 94 subtracts the output of the switch 91 from the output of the reading unit 87 and supplies the subtraction result to the writing unit 86. The computing unit 95 adds the output of the reading unit 89 and the output of the switch 92 and supplies the addition result to the writing unit 88.

選択回路98は、ANDゲート99および100の出力に対応して、読み出し部84または87の出力のうちのいずれかを選択して出力するようになされている。ANDゲート99には、アドレス供給回路1から、水平アドレスHAの最下位ビットha0と、垂直アドレスVAの最下位ビットva0が、制御信号として供給されるようになされており、ANDゲート99は、その論理積を演算して、選択回路98、並びにスイッチ91および92に供給するようになされている。ANDゲート100には、アドレス供給回路1から、水平アドレスHAの下位2ビット目ha1と、垂直アドレスVAの下位2ビット目va1が、制御信号として供給されるようになされており、ANDゲート100は、その論理積を演算して、選択回路98に供給するようになされている。   The selection circuit 98 selects and outputs one of the outputs of the reading unit 84 or 87 corresponding to the outputs of the AND gates 99 and 100. The AND gate 99 is supplied with the least significant bit ha0 of the horizontal address HA and the least significant bit va0 of the vertical address VA from the address supply circuit 1 as control signals. The logical product is calculated and supplied to the selection circuit 98 and the switches 91 and 92. The AND gate 100 is supplied from the address supply circuit 1 with the lower second bit ha1 of the horizontal address HA and the lower second bit va1 of the vertical address VA as control signals. The logical product is calculated and supplied to the selection circuit 98.

次に、その動作について説明する。   Next, the operation will be described.

いま、選択回路73および74において、例えば、アドレス供給回路1に供給された水平アドレスHAおよび垂直アドレスVAがAバンクアドレスとして、遅延水平アドレスHAおよび遅延垂直アドレスVAがBバンクアドレスとして、それぞれ選択されているとする。   Now, in the selection circuits 73 and 74, for example, the horizontal address HA and vertical address VA supplied to the address supply circuit 1 are selected as A bank addresses, and the delayed horizontal address HA and delayed vertical address VA are selected as B bank addresses, respectively. Suppose that

即ち、選択回路73では、水平アドレスHAの上位8ビットha1乃至ha8および垂直アドレスVAの上位8ビットva1乃至va8が、Aバンクアドレスとして、遅延水平アドレスHAの上位8ビットha1乃至ha8および遅延垂直アドレスVAの上位8ビットva1乃至va8が、Bバンクアドレスとして、それぞれ選択されているとする。また、選択回路74では、水平アドレスHAの上位7ビットha2乃至ha8および垂直アドレスVAの上位7ビットva2乃至va8が、Aバンクアドレスとして、遅延水平アドレスHAの上位7ビットha2乃至ha8および遅延垂直アドレスVAの上位7ビットva2乃至va8が、Bバンクアドレスとして、それぞれ選択されているとする。   That is, in the selection circuit 73, the upper 8 bits ha1 to ha8 of the horizontal address HA and the upper 8 bits va1 to va8 of the vertical address VA are used as the A bank address as the upper 8 bits ha1 to ha8 of the delayed horizontal address HA and the delayed vertical address. It is assumed that the upper 8 bits va1 to va8 of VA are selected as B bank addresses, respectively. In the selection circuit 74, the upper 7 bits ha2 to ha8 of the horizontal address HA and the upper 7 bits va2 to va8 of the vertical address VA are used as the A bank address as the upper 7 bits ha2 to ha8 of the delayed horizontal address HA and the delayed vertical address. It is assumed that the upper 7 bits va2 to va8 of VA are selected as B bank addresses.

選択回路73または74において選択されたAバンクアドレスとBバンクアドレスは、第2階層メモリ3または第3階層メモリ4それぞれのAバンクアドレス端子とBバンクアドレス端子に供給される。   The A bank address and the B bank address selected by the selection circuit 73 or 74 are supplied to the A bank address terminal and the B bank address terminal of the second hierarchical memory 3 or the third hierarchical memory 4, respectively.

さらに、この場合、選択回路81においては、第2階層メモリ3のAバンクデータ端子が読み出し部84に接続されるとともに、そのBバンクデータ端子が読み出し部85に接続される。また、選択回路82では、第3階層メモリ4のAバンクデータ端子が、書き込み部86および読み出し部87に接続されるとともに、そのBバンクデータ端子が、書き込み部88および読み出し部89に接続される。   Further, in this case, in the selection circuit 81, the A bank data terminal of the second hierarchical memory 3 is connected to the reading unit 84 and the B bank data terminal is connected to the reading unit 85. In the selection circuit 82, the A bank data terminal of the third hierarchy memory 4 is connected to the writing unit 86 and the reading unit 87, and the B bank data terminal is connected to the writing unit 88 and the reading unit 89. .

読み出し部84は、第2階層メモリ3から、選択回路73が出力するAバンクアドレスに記憶されている第2階層の画素(画素値)を、選択回路81を介して読み出し、スイッチ91の端子91bおよび選択回路98に供給する。   The readout unit 84 reads out the second layer pixel (pixel value) stored in the A bank address output from the selection circuit 73 from the second layer memory 3 via the selection circuit 81, and outputs the terminal 91 b of the switch 91. And is supplied to the selection circuit 98.

選択回路98は、ANDゲート99および100の出力のうちの、例えば、ANDゲート99の出力のみが1のとき、読み出し部84の出力を、第2階層の画素として選択して出力する。即ち、ANDゲート99の出力のみが1のときというのは、ha0およびva0の両方が1で、ha1またはva1のうちのいずれか一方、または両方が0であるときであり、図2にD1で示すような第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの、右下の画素h(2s+1,2t+1)(但し、h(4m+3,4n+3)を除く)が読み出されるタイミングである。   For example, when only the output of the AND gate 99 is 1 among the outputs of the AND gates 99 and 100, the selection circuit 98 selects and outputs the output of the reading unit 84 as a pixel in the second hierarchy. That is, when only the output of the AND gate 99 is 1, it is when both ha0 and va0 are 1 and either one of ha1 or va1 or both are 0, and D1 in FIG. As shown in the figure, the lower right pixel h (2) of 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first hierarchy as shown in FIG. 2s + 1, 2t + 1) (excluding h (4m + 3, 4n + 3)).

一方、上述したことから、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)にアクセスがなされるタイミングでは、いずれにおいても、第2階層の画素m(s,t)にアクセスがなされる。従って、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)にアクセスがなされるタイミングのいずれにおいても、第2階層メモリ3から読み出されるデータ、つまり、第2階層の画素m(s,t)を出力することとすると、同一の画素が4回重複して出力されることになる。   On the other hand, from the above, the timing at which access is made to 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer. In any case, the pixel m (s, t) in the second layer is accessed. Therefore, at any timing when the 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer are accessed. If the data read from the second hierarchy memory 3, that is, the pixel m (s, t) of the second hierarchy is output, the same pixel is output four times.

そこで、選択回路98では、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの、右下の画素h(2s+1,2t+1)(但し、画素h(4m+3,4n+3)を除く)が読み出されるタイミングにおいてのみ、読み出し部84の出力、即ち、第2階層の画素m(s,t)が選択されて出力される。   Therefore, in the selection circuit 98, the lower right of the 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer The output of the reading unit 84, that is, the pixel m (s, t) in the second layer is selected only at the timing when the pixel h (2s + 1, 2t + 1) (except the pixel h (4m + 3, 4n + 3)) is read out. Is output.

なお、同様の理由から、スイッチ91も、第1階層の画素h(2s+1,2t+1)が読み出し部84から出力されるタイミング(ANDゲート99の出力が1になるタイミング)においてのみ、端子91bを選択するようになされており、他の場合は、端子91aを選択している。即ち、これにより、演算器94には、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの、右下の画素h(2s+1,2t+1)が読み出されるタイミングにおいてのみ、読み出し部84が出力する第2階層の画素m(s,t)が供給され、他の場合は0が供給される。   For the same reason, the switch 91 also selects the terminal 91b only at the timing when the pixel h (2s + 1, 2t + 1) in the first layer is output from the readout unit 84 (the timing when the output of the AND gate 99 becomes 1). In other cases, the terminal 91a is selected. In other words, the arithmetic unit 94 has 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer. Only at the timing when the lower right pixel h (2s + 1, 2t + 1) is read out, the pixel m (s, t) of the second hierarchy output from the reading unit 84 is supplied, and 0 is supplied in other cases.

一方、読み出し部87は、第3階層メモリ4から、選択回路74が出力するAバンクアドレスに記憶されている第3階層の画素(画素値)を、選択回路82を介して読み出し、演算器94および選択回路98に供給する。   On the other hand, the readout unit 87 reads out the third layer pixel (pixel value) stored in the A bank address output from the selection circuit 74 from the third layer memory 4 via the selection circuit 82, and calculates the arithmetic unit 94. And is supplied to the selection circuit 98.

即ち、読み出し部87では、第1階層メモリ2のアドレス(4m,4n),(4m+1,4n),(4m+2,4n),(4m+3,4n),(4m,4n+1),(4m+1,4n+1),(4m+2,4n+1),(4m+3,4n+1),(4m,4n+2),(4m+1,4n+2),(4m+2,4n+2),(4m+3,4n+2),(4m,4n+3),(4m+1,4n+3),(4m+2,4n+3),(4m+3,4n+3)にアクセスがなされるタイミングで、いずれも、第3階層メモリ4のAバンクアドレス(m,n)からデータが読み出され、演算器94に供給される。   That is, in the reading unit 87, the addresses (4m, 4n), (4m + 1, 4n), (4m + 2, 4n), (4m + 3, 4n), (4m, 4n + 1), (4m + 1, 4n + 1), (4m + 1, 4n + 1), (4m + 2, 4n + 1), (4m + 3, 4n + 1), (4m, 4n + 2), (4m + 1, 4n + 2), (4m + 2, 4n + 2), (4m + 3, 4n + 2), (4m, 4n + 3), (4m + 1, 4n + 3), (4m + 2) , 4n + 3), (4m + 3, 4n + 3), the data is read from the A bank address (m, n) of the third layer memory 4 and supplied to the arithmetic unit 94 at any timing.

上述したことから、スイッチ91は、第1階層メモリ2のアドレス(2s+1,2t+1)に相当する(4m+1,4n+1),(4m+3,4n+1),(4m+1,4n+3),(4m+3,4n+3)を除くアドレス(4m,4n),(4m+1,4n),(4m+2,4n),(4m+3,4n),(4m,4n+1),(4m+2,4n+1),(4m,4n+2),(4m+1,4n+2),(4m+2,4n+2),(4m+3,4n+2),(4m,4n+3),(4m+2,4n+3)にアクセスがなされるタイミングでは、端子91bを選択している。従って、この場合においては、演算器94では、第3階層メモリ4のAバンクアドレス(m,n)から読み出されたデータから、0が減算され、その減算値、即ち、第3階層メモリ4のAバンクアドレス(m,n)から読み出されたデータそのものが、書き込み部86に供給される。書き込み部86では、演算器94からのデータが、選択回路82を介して、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。従って、この場合、第3階層メモリ4のAバンクアドレス(m,n)の記憶値は、直前のもののまま変化しない。   As described above, the switch 91 is an address excluding (4m + 1, 4n + 1), (4m + 3, 4n + 1), (4m + 1, 4n + 3), and (4m + 3, 4n + 3) corresponding to the address (2s + 1, 2t + 1) of the first hierarchy memory 2. (4m, 4n), (4m + 1, 4n), (4m + 2, 4n), (4m + 3, 4n), (4m, 4n + 1), (4m + 2, 4n + 1), (4m, 4n + 2), (4m + 1, 4n + 2), (4m + 2) , 4n + 2), (4m + 3, 4n + 2), (4m, 4n + 3), and (4m + 2, 4n + 3), the terminal 91b is selected. Accordingly, in this case, the arithmetic unit 94 subtracts 0 from the data read from the A bank address (m, n) of the third hierarchy memory 4, and the subtraction value, ie, the third hierarchy memory 4 The data itself read from the A bank address (m, n) is supplied to the writing unit 86. In the writing unit 86, the data from the arithmetic unit 94 is written to the A bank address (m, n) of the third hierarchy memory 4 via the selection circuit 82. Accordingly, in this case, the stored value of the A bank address (m, n) of the third hierarchy memory 4 remains unchanged.

一方、第1階層メモリ2のアドレス(4m+1,4n+1),(4m+3,4n+1),(4m+1,4n+3)にアクセスがなされるタイミングにおいては、スイッチ91は、端子91bを選択する。この場合、読み出し部84では、第2階層メモリ3から、第2階層の画素m(2m,2n),m(2m+1,2n),m(2m,2n+1)が、それぞれ読み出され、スイッチ91を介して、演算器94に供給される。   On the other hand, at the timing when the addresses (4m + 1, 4n + 1), (4m + 3, 4n + 1), and (4m + 1, 4n + 3) of the first hierarchy memory 2 are accessed, the switch 91 selects the terminal 91b. In this case, in the reading unit 84, the pixels m (2m, 2n), m (2m + 1, 2n), and m (2m, 2n + 1) in the second layer are read from the second layer memory 3 and the switch 91 is turned on. To the arithmetic unit 94.

演算器94では、読み出し部87の出力から読み出し部84の出力が減算され、書き込み部86に供給される。書き込み部86は、演算器94の出力を、選択回路82を介して、第3階層メモリ4のAバンクアドレス(m,n)に書き込む。   In the arithmetic unit 94, the output of the reading unit 84 is subtracted from the output of the reading unit 87 and supplied to the writing unit 86. The writing unit 86 writes the output of the arithmetic unit 94 to the A bank address (m, n) of the third hierarchy memory 4 via the selection circuit 82.

従って、最初は、第3階層メモリ4のAバンクアドレス(m,n)には、第1階層の4×4の16画素h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+1,4n+1),h(4m+2,4n+1),h(4m+3,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+1,4n+3),h(4m+2,4n+3),h(4m+3,4n+3)の加算値、即ち、第2階層の2×2の4画素m(2m,2n),m(2m+1,2n),m(2m,2n+1),m(2m+1,2n+1)の加算値である第3階層の画素q(m,n)が記憶されているが、第1階層メモリ2のアドレス(4m+1,4n+1)にアクセスがなされるタイミングにおいては、演算器94には、スイッチ91を介して読み出し部84から、第2階層の画素m(2m,2n)が供給されるとともに、読み出し部87から、第3階層メモリ4のAバンクアドレス(m,n)に記憶されているデータ(ここでは、q(m,n))が供給される。   Therefore, at first, the A bank address (m, n) of the third layer memory 4 has 4 × 4 16 pixels h (4m, 4n), h (4m + 1, 4n), h (4m + 2, 2) in the first layer. 4n), h (4m + 3, 4n), h (4m + 4n + 1), h (4m + 1, 4n + 1), h (4m + 2, 4n + 1), h (4m + 3, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2) ), H (4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 1, 4n + 3), h (4m + 2, 4n + 3), h (4m + 3, 4n + 3), A third-layer pixel q (m, 2), which is an addition value of 2 × 2 4 pixels m (2m, 2n), m (2m + 1,2n), m (2m, 2n + 1), m (2m + 1,2n + 1) in two layers. n) is stored, but the first layer At the timing when the address (4m + 1, 4n + 1) of the memory 2 is accessed, the arithmetic unit 94 is supplied with the pixel m (2m, 2n) of the second hierarchy from the readout unit 84 via the switch 91. The data (here, q (m, n)) stored in the A bank address (m, n) of the third hierarchy memory 4 is supplied from the reading unit 87.

演算器94では、それらの減算値(q(m,n)−m(2m,2n))が求められ、書き込み部86において、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。   The arithmetic unit 94 obtains these subtraction values (q (m, n) -m (2m, 2n)) and writes them in the A bank address (m, n) of the third hierarchy memory 4 in the writing unit 86. .

さらに、第1階層メモリ2のアドレス(4m+3,4n+1)にアクセスがなされるタイミングにおいては、演算器94には、スイッチ91を介して読み出し部84から、第2階層の画素m(2m+1,2n)が供給されるとともに、読み出し部87から、第3階層メモリ4のAバンクアドレス(m,n)に記憶されているデータ(ここでは、q(m,n)−m(2m,2n))が供給される。   Further, at the timing when the address (4m + 3, 4n + 1) of the first hierarchy memory 2 is accessed, the arithmetic unit 94 sends the pixel m (2m + 1, 2n) of the second hierarchy from the readout unit 84 via the switch 91. And the data stored in the A bank address (m, n) of the third hierarchy memory 4 (here, q (m, n) −m (2m, 2n)) are supplied from the reading unit 87. Supplied.

演算器94では、それらの減算値(q(m,n)−m(2m,2n)−m(2m+1,2n))が求められ、書き込み部86において、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。   The arithmetic unit 94 obtains these subtraction values (q (m, n) −m (2m, 2n) −m (2m + 1,2n)), and the writing unit 86 uses the A bank address ( m, n).

その後、第1階層メモリ2のアドレス(4m+1,4n+3)にアクセスがなされるタイミングとなると、演算器94には、スイッチ91を介して読み出し部84から、第2階層の画素m(2m,2n+1)が供給されるとともに、読み出し部87から、第3階層メモリ4のAバンクアドレス(m,n)に記憶されているデータ(ここでは、q(m,n)−m(2m,2n)−m(2m+1,2n))が供給される。   Thereafter, when it is time to access the address (4m + 1, 4n + 3) of the first hierarchy memory 2, the computing unit 94 receives the pixel m (2m, 2n + 1) of the second hierarchy from the readout unit 84 via the switch 91. Is supplied from the reading unit 87 to the data (here, q (m, n) −m (2m, 2n) −m) stored in the A bank address (m, n) of the third hierarchical memory 4. (2m + 1, 2n)) is supplied.

演算器94では、それらの減算値(q(m,n)−m(2m,2n)−m(2m+1,2n)−m(2m,2n+1))が求められ、書き込み部86において、第3階層メモリ4のAバンクアドレス(m,n)に書き込まれる。   The arithmetic unit 94 obtains these subtraction values (q (m, n) -m (2m, 2n) -m (2m + 1,2n) -m (2m, 2n + 1)). The data is written to the A bank address (m, n) of the memory 4.

即ち、第3階層メモリ4のAバンクアドレス(m,n)には、第2階層の画素m(2m+1,2n+1)(=q(m,n)−m(2m,2n)−m(2m+1,2n)−m(2m,2n+1))が書き込まれる。   That is, the A bank address (m, n) of the third layer memory 4 includes the pixel m (2m + 1, 2n + 1) (= q (m, n) -m (2m, 2n) -m (2m + 1, 2n) -m (2m, 2n + 1)) is written.

従って、第1階層メモリ2のAバンクアドレス(4m+3,4n+3)(ここでは、このアドレスに対応するメモリセルはなく、従って、このアドレスにアクセスがなされても、例えば、何も書き込まれず、何も読み出されない)にアクセスがなされるタイミング(第2階層メモリ3のAバンクアドレス(2m+1,2n+1)(ここでは、このアドレスに対応するメモリセルもない)にアクセスがなされるタイミング)においては、読み出し部87が、第3階層メモリ4のAバンクアドレス(m,n)から読み出すデータは、図2にD2で示すような第1階層の4×4の16画素のうちの、右下の2×2画素h(4m+2,4n+2),h(4m+3,4n+2),h(4m+2,4n+3),h(4m+3,4n+3)の加算値(第2階層の画素m(2m+1,2n+1))になっている。   Therefore, the A bank address (4m + 3, 4n + 3) of the first layer memory 2 (here, there is no memory cell corresponding to this address, and therefore, nothing is written, for example, nothing is accessed even if this address is accessed. At the timing when access is made at the time of not being read (the timing at which access is made to the A bank address (2m + 1, 2n + 1) of the second hierarchy memory 3 (there is no memory cell corresponding to this address)) The data read out from the A bank address (m, n) of the third layer memory 4 by the unit 87 is 2 × 4 in the lower right of the 16 × 4 pixels in the first layer as indicated by D2 in FIG. 2 pixels h (4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m + 2, 4n + 3), h (4m + 3, 4n + 3) added value (second layer) Pixel m (2m + 1, 2n + 1)).

一方、選択回路98は、ANDゲート99および100の両方の出力が1のとき、読み出し部51の出力を、第2階層の画素として選択して出力する。即ち、ANDゲート99および50の両方の出力が1のときというのは、ha0,va0,ha1,va1のすべてが1であるときであり、第1階層メモリ2のアドレス(4m+3,4n+3)にアクセスがなされるタイミングである。このタイミングでは、上述したように、第3階層メモリ4のAバンクアドレス(m,n)から、読み出し部87が読み出すデータは、第2階層の画素m(2m+1,2n+1)になっており、このデータが、選択回路98で選択されて出力される。   On the other hand, when both the outputs of the AND gates 99 and 100 are 1, the selection circuit 98 selects and outputs the output of the reading unit 51 as the second-layer pixel. That is, when both the outputs of the AND gates 99 and 50 are 1, it is when all of ha0, va0, ha1, and va1 are 1, and the address (4m + 3, 4n + 3) of the first hierarchy memory 2 is accessed. Is the timing when At this timing, as described above, the data read by the reading unit 87 from the A bank address (m, n) of the third hierarchy memory 4 is the pixel m (2m + 1, 2n + 1) in the second hierarchy. Data is selected by the selection circuit 98 and output.

ところで、以上のようにして、第2階層の画素が読み出されていくと、図6における場合と同様に、第3階層メモリ4には、第2階層の画素m(2m+1,2n+1)が記憶されるようになる。   By the way, when the pixels of the second hierarchy are read out as described above, the pixels m (2m + 1, 2n + 1) of the second hierarchy are stored in the third hierarchy memory 4 as in the case of FIG. Will come to be.

即ち、第3階層メモリ4の記憶値は、第3階層の画素から、第2階層の画素に書き換えられる。   That is, the stored value of the third hierarchy memory 4 is rewritten from the pixel of the third hierarchy to the pixel of the second hierarchy.

従って、このように書き換えられた第3階層メモリ4の記憶値を、元の第3階層の画素に戻す必要がある。   Therefore, it is necessary to return the stored value of the third layer memory 4 rewritten in this way to the original pixel of the third layer.

そこで、上述したように、例えば、水平アドレスHAおよび垂直アドレスVAがAバンクアドレスとして、遅延水平アドレスHAおよび遅延垂直アドレスVAがBバンクアドレスとして、それぞれ選択されている場合には、第1階層メモリ2においては、水平アドレスHAおよび垂直アドレスVAに対応するAバンクのメモリセルにアクセスがなされるが、このとき、同時に、その4ライン分だけ前にアクセスされた、遅延水平アドレスHAおよび遅延垂直アドレスVAに対応するBバンクのメモリセルにもアクセスがなされる。   Therefore, as described above, for example, when the horizontal address HA and the vertical address VA are selected as the A bank address and the delayed horizontal address HA and the delayed vertical address VA are selected as the B bank address, respectively, the first hierarchical memory 2, the memory cells in the A bank corresponding to the horizontal address HA and the vertical address VA are accessed. At this time, the delayed horizontal address HA and the delayed vertical address accessed at the same time four lines earlier are simultaneously accessed. A memory cell in B bank corresponding to VA is also accessed.

同様に、第2階層メモリ3においては、Aバンクのメモリセルにアクセスがなされるとともに、2ライン分だけ前にアクセスされたBバンクのメモリセルにアクセスがなされる。さらに、第3階層メモリ4においては、Aバンクのメモリセルにアクセスがなされるとともに、1ライン分だけ前にアクセスされたBバンクのメモリセルにアクセスがなされる。   Similarly, in the second hierarchical memory 3, access is made to the memory cells in the A bank and access is made to the memory cells in the B bank that are accessed two lines before. Further, in the third hierarchical memory 4, access is made to the memory cells in the A bank, and access is made to the memory cells in the B bank that are accessed by one line before.

従って、読み出し部84が、第2階層メモリ3のAバンクから、第2階層の画素m(2m,2n),m(2m+1,2n),m(2m,2n+1)を読み出すとき、読み出し部85においては、選択回路81を介して、第2階層メモリ3のBバンクから、第2階層の画素m(2m,2n’),m(2m+1,2n’),m(2m,2n’+1)がそれぞれ読み出され、スイッチ92の端子bに供給される。ここで、n’=n−1である。   Therefore, when the reading unit 84 reads the pixels m (2m, 2n), m (2m + 1, 2n), and m (2m, 2n + 1) in the second layer from the A bank of the second layer memory 3, the reading unit 85 The second layer pixels m (2m, 2n ′), m (2m + 1, 2n ′), and m (2m, 2n ′ + 1) are respectively transmitted from the B bank of the second layer memory 3 via the selection circuit 81. It is read out and supplied to the terminal b of the switch 92. Here, n ′ = n−1.

スイッチ92は、スイッチ91と同様に、第1階層の画素h(2s+1,2t+1)が読み出し部84から出力されるタイミング(ANDゲート99の出力が1になるタイミング)においてのみ、端子92bを選択するようになされており、他の場合は、端子92aを選択している。即ち、これにより、演算器95には、第1階層の2×2の4画素h(2s,2t),h(2s+1,2t),h(2s,2t+1),h(2s+1,2t+1)のうちの、右下の画素h(2s+1,2t+1)が読み出されるタイミングにおいてのみ、読み出し部85が出力する第2階層の画素が供給され、他の場合は0が供給される。   Similarly to the switch 91, the switch 92 selects the terminal 92b only at the timing when the pixel h (2s + 1, 2t + 1) in the first layer is output from the reading unit 84 (the timing when the output of the AND gate 99 becomes 1). In other cases, the terminal 92a is selected. In other words, the computing unit 95 has 2 × 2 4 pixels h (2s, 2t), h (2s + 1, 2t), h (2s, 2t + 1), h (2s + 1, 2t + 1) in the first layer. Only at the timing when the lower right pixel h (2s + 1, 2t + 1) is read out, the second layer pixel output from the reading unit 85 is supplied, and in other cases, 0 is supplied.

また、読み出し部85が、第2階層メモリ3のBバンクから、第2階層の画素m(2m,2n’),m(2m+1,2n’),m(2m,2n’+1)を読み出すとき、読み出し部89においては、いずれのときも、選択回路82を介して、第3階層メモリ4のBバンクにおけるアドレス(m,n’)から、データが読み出され、演算器95に供給される。   When the reading unit 85 reads out the pixels m (2m, 2n ′), m (2m + 1, 2n ′), and m (2m, 2n ′ + 1) in the second layer from the B bank of the second layer memory 3. In any case, the reading unit 89 reads data from the address (m, n ′) in the B bank of the third hierarchy memory 4 via the selection circuit 82 and supplies the data to the arithmetic unit 95.

演算器95では、読み出し部85の出力と読み出し部89の出力とが加算され、その加算値は、書き込み部88に供給される。書き込み部88は、演算器95の出力を、選択回路82を介して、第3階層メモリ4のBバンクアドレス(m,n’)に書き込む。   In the arithmetic unit 95, the output of the reading unit 85 and the output of the reading unit 89 are added, and the added value is supplied to the writing unit 88. The writing unit 88 writes the output of the arithmetic unit 95 to the B bank address (m, n ′) of the third hierarchy memory 4 via the selection circuit 82.

従って、最初は、第3階層メモリ4のBバンクアドレス(m,n’)には、第2階層について2ライン分(第1階層については4ライン分)だけ前にアクセスされることによって求められた第2階層の画素m(2m+1,2n’+1)が記憶されているが、読み出し部85が、第2階層メモリ3のBバンクから、第2階層の画素m(2m,2n’)を読み出すとともに、読み出し部89が、第3階層メモリ4のBバンクアドレス(m,n’)に記憶されているデータ(ここでは、第2階層の画素m(2m+1,2n’+1))を読み出すことで、演算器95において、それらの加算値(m(2m,2n’)+m(2m+1,2n’+1))が求められ、書き込み部88において、第3階層メモリ4のBバンクアドレス(m,n’)に書き込まれる。   Therefore, at first, the B bank address (m, n ′) of the third layer memory 4 is obtained by being accessed by two lines before the second layer (four lines for the first layer). The second-layer pixel m (2m + 1, 2n ′ + 1) is stored, but the reading unit 85 reads the second-layer pixel m (2m, 2n ′) from the B bank of the second-layer memory 3. At the same time, the reading unit 89 reads the data (here, the pixel m (2m + 1, 2n ′ + 1) in the second hierarchy) stored in the B bank address (m, n ′) of the third hierarchy memory 4. The arithmetic unit 95 obtains the added value (m (2m, 2n ′) + m (2m + 1, 2n ′ + 1)), and the writing unit 88 stores the B bank address (m, n ′) of the third hierarchy memory 4. ) That.

さらに、読み出し部85が、第2階層メモリ3のBバンクから、第2階層の画素m(2m+1,2n’)を読み出すとともに、読み出し部89が、第3階層メモリ4のBバンクアドレス(m,n’)に記憶されているデータ(ここでは、m(2m,2n’)+m(2m+1,2n’+1))を読み出すことで、演算器95において、それらの加算値(m(2m,2n’)+m(2m+1,2n)+m(2m+1,2n’+1))が求められ、書き込み部88において、第3階層メモリ4のBバンクアドレス(m,n’)に書き込まれる。   Further, the reading unit 85 reads the pixel m (2m + 1, 2n ′) of the second hierarchy from the B bank of the second hierarchy memory 3, and the reading unit 89 reads the B bank address (m, n ′) by reading out the data (here, m (2m, 2n ′) + m (2m + 1, 2n ′ + 1)), the arithmetic unit 95 adds those values (m (2m, 2n ′) ) + M (2m + 1, 2n) + m (2m + 1, 2n ′ + 1)) is obtained and written to the B bank address (m, n ′) of the third-level memory 4 by the writing unit 88.

その後、読み出し部85が、第2階層メモリ3のBバンクから、第2階層の画素m(2m,2n’+1)を読み出すとともに、読み出し部89が、第3階層メモリ4のBバンクアドレス(m,n’)に記憶されているデータ(ここでは、m(2m,2n’)+m(2m+1,2n)+m(2m+1,2n’+1))を読み出すことで、演算器95において、それらの加算値(m(2m,2n’)+m(2m+1,2n)+m(2m,2n’+1)+m(2m+1,2n’+1))が求められ、書き込み部88において、第3階層メモリ4のBバンクアドレス(m,n’)に書き込まれる。即ち、第3階層メモリ4のBバンクアドレス(m,n’)には、元の第3階層の画素q(m,n’)(=m(2m,2n’)+m(2m+1,2n)+m(2m,2n’+1)+m(2m+1,2n’+1)=h(4m,4n),h(4m+1,4n),h(4m+2,4n),h(4m+3,4n),h(4m,4n+1),h(4m+1,4n+1),h(4m+2,4n+1),h(4m+3,4n+1),h(4m,4n+2),h(4m+1,4n+2),h(4m+2,4n+2),h(4m+3,4n+2),h(4m,4n+3),h(4m+1,4n+3),h(4m+2,4n+3),h(4m+3,4n+3))が書き込まれる。   Thereafter, the readout unit 85 reads out the pixel m (2m, 2n ′ + 1) of the second hierarchy from the B bank of the second hierarchy memory 3, and the readout unit 89 reads the B bank address (m of the third hierarchy memory 4). , N ′) (in this case, m (2m, 2n ′) + m (2m + 1, 2n) + m (2m + 1, 2n ′ + 1)) is read out by the arithmetic unit 95. (M (2m, 2n ′) + m (2m + 1, 2n) + m (2m, 2n ′ + 1) + m (2m + 1, 2n ′ + 1)) is obtained, and the B bank address (third layer memory 4) ( m, n ′). That is, the B bank address (m, n ′) of the third layer memory 4 includes the original third layer pixel q (m, n ′) (= m (2m, 2n ′) + m (2m + 1, 2n) + m. (2m, 2n ′ + 1) + m (2m + 1, 2n ′ + 1) = h (4m, 4n), h (4m + 1, 4n), h (4m + 2, 4n), h (4m + 3, 4n), h (4m, 4n + 1) , H (4m + 1, 4n + 1), h (4m + 2, 4n + 1), h (4m + 3, 4n + 1), h (4m, 4n + 2), h (4m + 1, 4n + 2), h (4m + 2, 4n + 2), h (4m + 3, 4n + 2), h (4m, 4n + 3), h (4m + 1, 4n + 3), h (4m + 2, 4n + 3), h (4m + 3, 4n + 3)) are written.

その後、垂直アドレスVAの下位3ビット目va2が変化すると、選択回路73および74において、AバンクアドレスおよびBバンクアドレスの選択が変更される。即ち、選択回路73では、水平アドレスHAの上位8ビットha1乃至ha8および垂直アドレスVAの上位8ビットva1乃至va8が、Bバンクアドレスとして、遅延水平アドレスHAの上位8ビットha1乃至ha8および遅延垂直アドレスVAの上位8ビットva1乃至va8が、Aバンクアドレスとして、それぞれ選択される。また、選択回路74では、水平アドレスHAの上位7ビットha2乃至ha8および垂直アドレスVAの上位7ビットva2乃至va8が、Bバンクアドレスとして、遅延水平アドレスHAの上位7ビットha2乃至ha8および遅延垂直アドレスVAの上位7ビットva2乃至va8が、Aバンクアドレスとして、それぞれ選択される。   Thereafter, when the lower third bit va2 of the vertical address VA changes, the selection of the A bank address and the B bank address is changed in the selection circuits 73 and 74. That is, in the selection circuit 73, the upper 8 bits ha1 to ha8 of the horizontal address HA and the upper 8 bits va1 to va8 of the vertical address VA are used as the B bank address as the upper 8 bits ha1 to ha8 and the delayed vertical address of the delayed horizontal address HA. The upper 8 bits va1 to va8 of VA are selected as A bank addresses, respectively. In the selection circuit 74, the upper 7 bits ha2 to ha8 of the horizontal address HA and the upper 7 bits va2 to va8 of the vertical address VA are used as the B bank address as the upper 7 bits ha2 to ha8 and the delayed vertical address of the delayed horizontal address HA. The upper 7 bits va2 to va8 of VA are selected as A bank addresses, respectively.

選択回路73または74において選択されたAバンクアドレスとBバンクアドレスは、第2階層メモリ3または第3階層メモリ4のそれぞれAバンクアドレス端子とBバンクアドレス端子に供給される。   The A bank address and the B bank address selected by the selection circuit 73 or 74 are supplied to the A bank address terminal and the B bank address terminal of the second hierarchy memory 3 or the third hierarchy memory 4, respectively.

さらに、選択回路81においては、第2階層メモリ3のBバンクデータ端子が読み出し部84に接続されるとともに、そのAバンクデータ端子が読み出し部85に接続される。また、選択回路82では、第3階層メモリ4のBバンクデータ端子が、書き込み部86および読み出し部87に接続されるとともに、そのAバンクデータ端子が、書き込み部88および読み出し部89に接続される。   Further, in the selection circuit 81, the B bank data terminal of the second hierarchy memory 3 is connected to the reading unit 84 and the A bank data terminal is connected to the reading unit 85. In the selection circuit 82, the B bank data terminal of the third hierarchy memory 4 is connected to the writing unit 86 and the reading unit 87, and the A bank data terminal is connected to the writing unit 88 and the reading unit 89. .

そして、上述の処理におけるAバンクまたはBバンクを、BバンクまたはAバンクとそれぞれ読み替えた処理が行われる。   Then, a process is performed in which A bank or B bank in the above-described process is replaced with B bank or A bank, respectively.

以下、同様の処理が行われ、第2階層の画素が選択回路98から出力されていくとともに、それに伴い書き換えられる第3階層メモリ4の記憶内容が、元の値に、再度書き換えられる。   Thereafter, the same processing is performed, and the pixels of the second hierarchy are output from the selection circuit 98, and the storage contents of the third hierarchy memory 4 rewritten accordingly are rewritten to the original values.

以上のように、第1階層メモリ2、第2階層メモリ3、および第3階層メモリ4のAバンクおよびBバンクの2つに分割し、その両方のバンクに、並列にアクセスするようにすることで、第2階層メモリ3や第3階層メモリ4の記憶値を、第1または第2階層の画素に書き換えるとともに、書き換えたデータを、元のデータに、再度書き換えることができる。   As described above, the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4 are divided into two banks A and B, and both banks are accessed in parallel. Thus, the stored values of the second hierarchy memory 3 and the third hierarchy memory 4 can be rewritten to the pixels of the first or second hierarchy, and the rewritten data can be rewritten to the original data again.

即ち、例えば、水平アドレスHAおよび垂直アドレスVAによって指定される第1階層メモリ2のAバンクアドレスに記憶されている第1階層の画素を読み出すとともに、水平アドレスHAおよび垂直アドレスVAの一部によって指定される第2階層メモリ3のAバンクアドレスに記憶されている第2階層の画素(第1の処理データ)を読み出し、その第2階層の画素から第1階層の画素を減算することにより、最終的には、第1の画素(第2の処理データ)を算出し、第2階層の画素が記憶されていた第2階層メモリ3のアドレスに書き込むことができる。そして、それと同時に、遅延水平アドレスHAおよび遅延垂直アドレスVAによって指定される第1階層メモリ2のBバンクアドレスに記憶されている第1階層の画素を読み出すとともに、遅延水平アドレスHAおよび遅延垂直アドレスVAの一部によって指定される第2階層メモリ3のBバンクアドレスに記憶されている第1階層の画素(第2の処理データ)を読み出し、それらの第1階層の画素どうしを加算することにより、最終的には、元の第2階層の画素(第1の処理データ)を算出し、その第2階層の画素に、第1階層の画素に書き換えられた第2階層メモリ3のBバンクアドレスの記憶値を、再度書き換えることができる。   That is, for example, the pixel of the first layer stored in the A bank address of the first layer memory 2 designated by the horizontal address HA and the vertical address VA is read and designated by a part of the horizontal address HA and the vertical address VA. The second layer pixel (first processing data) stored in the A bank address of the second layer memory 3 is read and the first layer pixel is subtracted from the second layer pixel to obtain the final Specifically, the first pixel (second processing data) can be calculated and written to the address of the second hierarchical memory 3 in which the second hierarchical pixel was stored. At the same time, the pixels of the first hierarchy stored in the B bank address of the first hierarchy memory 2 designated by the delayed horizontal address HA and the delayed vertical address VA are read, and the delayed horizontal address HA and the delayed vertical address VA are read. By reading the first layer pixels (second processing data) stored in the B bank address of the second layer memory 3 specified by a part of the first layer pixels, and adding the pixels of the first layer, Finally, the original second layer pixel (first processing data) is calculated, and the second layer pixel is replaced with the B bank address of the second layer memory 3 rewritten to the first layer pixel. The stored value can be rewritten again.

なお、本実施の形態では、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4を、AバンクとBバンクとの2つのバンクに分割するようにしたが、バンクの切り方は、上述したように、これに限定されるものではない。   In the present embodiment, the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4 are divided into two banks, A bank and B bank. As described above, the present invention is not limited to this.

また、本実施の形態では、AバンクまたはBバンクから読み出したデータを用いて、加算や減算などを行うようにしたが、AバンクまたはBバンクから読み出したデータを用いての処理は、加算や減算などに限定されるものではない。   In this embodiment, addition or subtraction is performed using data read from the A bank or B bank. However, processing using data read from the A bank or B bank is performed using addition or subtraction. It is not limited to subtraction.

さらに、本実施の形態では、第2階層メモリ3や第3階層メモリ4に対しては、第1階層メモリ2に与える水平アドレスHAおよび垂直アドレスVAの一部を与えてアクセスするようにしたが、第2階層メモリ3や第3階層メモリ4には、第1階層メモリ2に与える水平アドレスHAおよび垂直アドレスVAとは別に、専用の(独立の)アドレスを与えてアクセスするようにすることも可能である。   Further, in the present embodiment, the second hierarchical memory 3 and the third hierarchical memory 4 are accessed by giving a part of the horizontal address HA and the vertical address VA given to the first hierarchical memory 2. The second hierarchical memory 3 and the third hierarchical memory 4 may be accessed by giving dedicated (independent) addresses separately from the horizontal address HA and the vertical address VA given to the first hierarchical memory 2. Is possible.

また、本実施の形態では、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4に対して、画像を構成する画素の水平または垂直方向の位置にそれぞれ対応する水平アドレスまたは垂直アドレスを与えてアクセスするようにしたが、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4には、その他、例えば、時間方向に対応するアドレスをさらに与えてアクセスするようにすることなども可能である。この場合、第2や第3階層の画素は、横および縦の空間方向に散らばる第1階層の画素の他、時間方向に散らばる第1階層の画素も加算して形成されることになる。   In the present embodiment, the horizontal address or the vertical address corresponding to the horizontal or vertical position of the pixels constituting the image with respect to the first hierarchical memory 2, the second hierarchical memory 3, and the third hierarchical memory 4, respectively. However, for example, the first hierarchical memory 2, the second hierarchical memory 3, and the third hierarchical memory 4 may be accessed by further giving addresses corresponding to the time direction, for example. Etc. are also possible. In this case, the second and third layer pixels are formed by adding the first layer pixels scattered in the time direction in addition to the first layer pixels scattered in the horizontal and vertical spatial directions.

さらに、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4は、それぞれ物理的に1つのメモリである必要はなく、それらのすべてを、1のメモリで構成することも可能である。この場合、1のメモリの記憶領域を、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4の3つそれぞれに割り当てるようにすれば良い。   Furthermore, the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4 do not have to be physically one memory, and all of them can be configured by one memory. . In this case, the storage area of one memory may be allocated to each of the first hierarchy memory 2, the second hierarchy memory 3, and the third hierarchy memory 4.

また、本実施の形態では、アドレス供給回路1、第1階層メモリ2、第2階層メモリ3、第3階層メモリ4、およびRMW回路5のすべてを、1チップ上に形成するようにしたが、これらは、必ずしも1チップ上に形成する必要はない。   In this embodiment, the address supply circuit 1, the first hierarchy memory 2, the second hierarchy memory 3, the third hierarchy memory 4, and the RMW circuit 5 are all formed on one chip. These are not necessarily formed on one chip.

さらに、本実施の形態では、第1階層の画素のビット割当量を8ビットとし、第1階層メモリ2、第2階層メモリ3、または第3階層メモリ4のメモリセルのデータ長を、第1乃至第3階層の画素の桁落ちがないように、それぞれ8,10、または12ビットとしたが、第1階層メモリ2、第2階層メモリ3、および第3階層メモリ4のメモリセルのデータ長は、例えば、一律に8ビットなどとすることも可能である。但し、この場合、第2または第3階層の画素については、第1または第2階層の2×2画素の加算値の下位2ビットを切り捨てた値(この値は、加算値を4で除算したものに相当するから、平均値となる)をそれぞれ記憶させることになり、従って、桁落ちが生じるので、データの可逆性は失われることになる。   Furthermore, in the present embodiment, the bit allocation amount of the pixels in the first hierarchy is 8 bits, and the data length of the memory cells in the first hierarchy memory 2, the second hierarchy memory 3, or the third hierarchy memory 4 is set to the first Or 8 bits, 10 bits, or 12 bits so as not to drop the pixels in the third layer, but the data lengths of the memory cells of the first layer memory 2, the second layer memory 3, and the third layer memory 4 For example, it may be uniformly 8 bits. However, in this case, for pixels in the second or third hierarchy, a value obtained by rounding down the lower 2 bits of the addition value of the 2 × 2 pixels in the first or second hierarchy (this value is obtained by dividing the addition value by 4). Therefore, the loss of data will be lost.

即ち、例えば、上述したように、第1階層メモリ2および第2階層メモリ3の記憶容量を少なくし、第1および第2階層の画素の一部を記憶しないようにした場合において、桁落ちがないようにしたときには、記憶していない第1階層の画素や第2階層の画素(画素値)は、上述の式(1)や(2)によって正確に求めることができる。これに対して、第1および第2階層の画素の一部を記憶しないようにした場合において、桁落ちが生じるようにしたときには、記憶していない第1階層の画素や第2階層の画素については、正確な値は求めることができなくなる。   That is, for example, as described above, when the storage capacities of the first hierarchy memory 2 and the second hierarchy memory 3 are reduced and some of the pixels of the first and second hierarchies are not stored, digits are lost. If not, the first-layer pixels and the second-layer pixels (pixel values) that are not stored can be accurately obtained by the above formulas (1) and (2). On the other hand, when a part of the pixels of the first and second hierarchies is not memorized and a digit loss occurs, the pixels of the first hierarchies and the pixels of the second hierarchies that are not memorized are stored. Will not be able to determine the exact value.

また、本発明は、ノンインターレース走査される画像およびインターレース走査される画像のいずれにも適用可能である。   The present invention is applicable to both non-interlaced scanned images and interlaced scanned images.

さらに、本実施の形態では、階層数を3としたが、階層数は2であっても良いし、あるいは、4以上であっても良い。   Furthermore, in the present embodiment, the number of hierarchies is three, but the number of hierarchies may be two, or four or more.

また、本実施の形態では、下位階層の2×2の4画素の加算値を、その1つ上位の上位階層の画素(画素値)とするようにしたが、上位階層の画素の形成の仕方は、これに限定されるものではない。   In the present embodiment, the addition value of 2 × 2 4 pixels in the lower layer is set as the upper layer pixel (pixel value) that is one level higher. Is not limited to this.

さらに、本実施の形態では、本発明をハードウェアによって実現することとしたが、本発明は、コンピュータに、上述の処理を行わせるようなプログラムを実行させることによっても実現可能である。   Furthermore, in the present embodiment, the present invention is realized by hardware, but the present invention can also be realized by causing a computer to execute a program that performs the above-described processing.

また、本実施の形態では、画素(画素値)を、例えば、RAM(Random Access Memory)などに代表されるメモリに記憶させるようにしたが、画素は、その他、例えば、磁気ディスクや、光磁気ディスク、磁気テープ、光カードなどの記録媒体に記憶(記録)させるようにすることも可能である。   In this embodiment, pixels (pixel values) are stored in a memory represented by, for example, a RAM (Random Access Memory). However, the pixels may be stored in, for example, a magnetic disk or a magneto-optical device. It is also possible to store (record) in a recording medium such as a disk, a magnetic tape, or an optical card.

本発明の記憶装置の一実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of one Embodiment of the memory | storage device of this invention. 第1階層の画像の1画面の構成例を示す図である。It is a figure which shows the structural example of 1 screen of the image of a 1st hierarchy. 図1の記憶装置の第1の機能的構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a first functional configuration example of the storage device of FIG. 1. 図1の記憶装置の第2の機能的構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a second functional configuration example of the storage device in FIG. 1. 図1の記憶装置の第3の機能的構成例を示すブロック図である。FIG. 4 is a block diagram illustrating a third functional configuration example of the storage device in FIG. 1. 図1の記憶装置の第4の機能的構成例を示すブロック図である。FIG. 6 is a block diagram illustrating a fourth functional configuration example of the storage device in FIG. 1. AバンクとBバンクとに分割されている図6の第1階層メモリ2を説明するための図である。It is a figure for demonstrating the 1st hierarchy memory 2 of FIG. 6 divided | segmented into A bank and B bank. 図1の記憶装置の第5の機能的構成例を示すブロック図である。FIG. 7 is a block diagram illustrating a fifth functional configuration example of the storage device in FIG. 1. 階層符号化を説明するための図である。It is a figure for demonstrating hierarchical encoding.

符号の説明Explanation of symbols

1 アドレス供給回路, 2 第1階層メモリ, 3 第2階層メモリ, 4 第3階層メモリ, 5 RMW回路, 11 読み出し部, 12 スイッチ, 12a,12b 端子, 13 演算器, 14 書き込み部, 15 NORゲート, 16 スイッチ, 21 読み出し部, 22 スイッチ, 22a,22b 端子, 23 演算器, 24 書き込み部, 25 NORゲート, 26 スイッチ, 31 遅延回路, 32乃至34,41乃至43 選択回路, 44,45 読み出し部, 46 書き込み部, 47 読み出し部, 48 書き込み部, 49 読み出し部, 50 書き込み部, 51 読み出し部, 52 書き込み部, 53 読み出し部, 54乃至57 演算器, 58 選択回路, 59,60 ANDゲート, 61 スイッチ, 61a,61b 端子, 62 スイッチ, 63 NORゲート, 71 遅延回路, 73,74,81,82 選択回路, 84,85 読み出し部, 86 書き込み部, 87 読み出し部, 88 書き込み部, 89 読み出し部, 91 スイッチ, 91a,91b 端子, 92 スイッチ, 92a,92b 端子, 94,95 演算器, 98 選択回路, 99,100 ANDゲート   DESCRIPTION OF SYMBOLS 1 Address supply circuit, 2 1st hierarchy memory, 3 2nd hierarchy memory, 4 3rd hierarchy memory, 5 RMW circuit, 11 reading part, 12 switch, 12a, 12b terminal, 13 calculator, 14 writing part, 15 NOR gate , 16 switch, 21 reading unit, 22 switch, 22a, 22b terminal, 23 arithmetic unit, 24 writing unit, 25 NOR gate, 26 switch, 31 delay circuit, 32 to 34, 41 to 43 selection circuit, 44, 45 reading unit , 46 writing unit, 47 reading unit, 48 writing unit, 49 reading unit, 50 writing unit, 51 reading unit, 52 writing unit, 53 reading unit, 54 to 57 computing unit, 58 selection circuit, 59, 60 AND gate, 61 Sui , 61a, 61b terminal, 62 switch, 63 NOR gate, 71 delay circuit, 73, 74, 81, 82 selection circuit, 84, 85 read unit, 86 write unit, 87 read unit, 88 write unit, 89 read unit, 91 Switch, 91a, 91b terminal, 92 switch, 92a, 92b terminal, 94, 95 arithmetic unit, 98 selection circuit, 99, 100 AND gate

Claims (6)

入力画像データから、前記入力画像データより少ない数の画素により構成される画像データであって、前記入力画像データを構成する画素のうち、所定の位置の複数の画素の画素値を加算して得られる値が画素値とされ、その複数の画素に対応して定まる1つの画素のそれぞれにより構成される画像データである階層データを算出し階層符号化を行う場合に用いられ、前記入力画像データと前記階層データを記憶する記憶装置であって、
前記入力画像データを構成する画素位置を特定する水平方向および垂直方向の位置に対応した第1のアドレスによってアドレス指定され、その指定されたアドレスに、入力画像データの画素値をそれぞれ記憶する第1の記憶手段と、
前記第1のアドレスを表すビット列の一部によって表される第2のアドレスによってアドレス指定され、その指定されたアドレスに、前記入力画像データの画素値から前記階層データの画素値を算出するための処理途中のデータである第1の処理データ、若しくは前記第1の処理データと前記入力画像データの画素値とを用いて算出された前記階層データの画素値、または前記入力画像データの画素値から前記第1の記憶手段に記憶されていない前記入力画像データの画素値を算出するための処理途中のデータである第2の処理データ、若しくは前記第2の処理データと前記入力画像データの画素値とを用いて算出された前記第1の記憶手段に記憶されていない前記入力画像データの画素値をそれぞれ記憶する第2の記憶手段と、
前記第1および第2の記憶手段に対するデータの読み書きを制御するととともに、そのデータに対して前記階層データの画素値を算出するための処理または前記入力画像データの画素値を算出するための処理を施す制御手段とを備える
記憶装置。
Image data composed of a smaller number of pixels than the input image data from the input image data, and obtained by adding pixel values of a plurality of pixels at predetermined positions among the pixels constituting the input image data. The obtained value is used as a pixel value, and is used when hierarchical data, which is image data composed of each of the pixels determined corresponding to the plurality of pixels, is calculated and hierarchical encoding is performed. A storage device for storing the hierarchical data,
A first address is specified by a first address corresponding to a horizontal position and a vertical position that specify a pixel position constituting the input image data, and each of the pixel values of the input image data is stored at the specified address. Storage means,
Addressed by a second address represented by a part of the bit string representing the first address, and for calculating the pixel value of the hierarchical data from the pixel value of the input image data at the designated address From the first processing data which is data in the middle of processing, the pixel value of the hierarchical data calculated using the first processing data and the pixel value of the input image data, or the pixel value of the input image data Second processing data which is data in the middle of processing for calculating pixel values of the input image data not stored in the first storage means, or pixel values of the second processing data and the input image data Second storage means for storing pixel values of the input image data that are not stored in the first storage means calculated using
Controlling reading and writing of data to and from the first and second storage means, and processing for calculating the pixel value of the hierarchical data for the data or processing for calculating the pixel value of the input image data A storage device.
前記第1の記憶手段が、それぞれに対して指定されたアドレスに基づいて同時にアクセス可能な複数のブロックに分割され、
前記第2の記憶手段が、それぞれに対して指定されたアドレスに基づいて同時にアクセス可能な複数のブロックであって、前記第1の記憶手段の各ブロックの個々に対応する同一数のブロックに分割され、
前記第2の記憶手段のブロックのうちの第1のブロックに、前記第1の処理データ、または前記階層データの画素値が記憶され、
前記第2の記憶手段のブロックのうちの第2のブロックに、前記第2の処理データまたは前記入力画像データの画素値が記憶される
請求項1に記載の記憶装置。
The first storage means is divided into a plurality of simultaneously accessible blocks based on addresses designated for each;
The second storage means is a plurality of blocks that can be simultaneously accessed based on addresses designated for each, and is divided into the same number of blocks corresponding to each of the blocks of the first storage means And
The first processing data or the pixel value of the hierarchical data is stored in a first block of the blocks of the second storage means,
The storage device according to claim 1, wherein a pixel value of the second processing data or the input image data is stored in a second block of the blocks of the second storage unit.
前記第1の記憶手段のブロックのうちの第3のブロックを指定する前記第1のアドレスと、前記第2の記憶手段の前記第1のブロックを指定する前記第2のアドレスとを同時に生成するアドレス指定手段と、
前記第1のアドレスにより特定される画素位置を、前記入力画像データと前記階層データの画素数の差異に基づいて特定される画素列の分だけずらすことで、前記第1のアドレスを遅延させたアドレスであって、前記第1の記憶手段のブロックのうちの第4のブロックを指定する第1の遅延アドレスと、前記第1の遅延アドレスを表すビット列の一部によって表されるアドレスであって、前記第2の記憶手段の前記第2のブロックを指定する第2の遅延アドレスとを、前記第1のアドレスおよび前記第2のアドレスが生成されるのと同時に生成する遅延アドレス指定手段とをさらに備える
請求項2に記載の記憶装置。
The first address designating a third block of the blocks of the first storage means and the second address designating the first block of the second storage means are simultaneously generated. Addressing means;
The first address is delayed by shifting the pixel position specified by the first address by the amount of the pixel column specified based on the difference in the number of pixels of the input image data and the hierarchical data. An address represented by a first delay address designating a fourth block of the blocks of the first storage means and a part of a bit string representing the first delay address, A second delay address designating the second block of the second storage means, and a delay address designating means for generating at the same time as the first address and the second address are generated. The storage device according to claim 2.
前記第1の記憶手段のそれぞれのブロックにおいて、指定されるアドレスに対応する個々の記憶領域の数が、前記入力画像データの1画面を構成する画素数から、前記第2の記憶手段のそれぞれのブロックにおいて指定可能なアドレス数を減算した数とされる
請求項3に記載の記憶装置。
In each block of the first storage means, the number of individual storage areas corresponding to the designated address is determined based on the number of pixels constituting one screen of the input image data. The storage device according to claim 3, wherein the number is obtained by subtracting the number of addresses that can be specified in a block.
前記制御手段は、
前記アドレス指定手段により生成された前記第2のアドレスにより指定される前記第2の記憶手段の記憶領域に、前記第2のアドレスに対応する複数の前記第1のアドレスにより指定される前記第1の記憶手段の記憶領域のそれぞれに書き込まれるデータを加算して得られる前記第1の処理データまたは前記階層データの画素値を書き込む第1の処理と、
前記遅延アドレス指定手段により生成された前記第2の遅延アドレスにより指定される前記第2の記憶手段の記憶領域に記憶されている前記階層データの画素値を読み出し、その階層データの画素値から、前記第2の遅延アドレスに対応する複数の前記第1の遅延アドレスにより指定される前記第1の記憶手段の記憶領域のそれぞれに記憶されている前記入力画像データの画素値を減算して得られる前記第2の処理データまたは前記第1の記憶手段に記憶されていない前記入力画像データの画素値を、前記第2の遅延アドレスにより指定される前記第2の記憶手段の記憶領域に書き込む第2の処理と
を同時に実行する
ことを特徴とする請求項4に記載の記憶装置。
The control means includes
The first area specified by the plurality of first addresses corresponding to the second address in the storage area of the second storage means specified by the second address generated by the address specifying means. A first process for writing pixel values of the first process data or the hierarchical data obtained by adding data written to each of the storage areas of the storage means;
Read the pixel value of the hierarchical data stored in the storage area of the second storage means specified by the second delay address generated by the delay address specifying means, and from the pixel value of the hierarchical data, Obtained by subtracting the pixel value of the input image data stored in each of the storage areas of the first storage means specified by the plurality of first delay addresses corresponding to the second delay address. A second value for writing the pixel value of the input image data not stored in the second processing data or the first storage means to the storage area of the second storage means specified by the second delay address. The storage device according to claim 4, wherein:
入力画像データから、前記入力画像データより少ない数の画素により構成される画像データであって、前記入力画像データを構成する画素のうち、所定の位置の複数の画素の画素値を加算して得られる値が画素値とされ、その複数の画素に対応して定まる1つの画素のそれぞれにより構成される画像データである階層データを算出し階層符号化を行う場合に用いられ、前記入力画像データと前記階層データを記憶する記憶装置であって、
前記入力画像データを構成する画素位置を特定する水平方向および垂直方向の位置に対応した第1のアドレスによってアドレス指定され、その指定されたアドレスに、入力画像データの画素値をそれぞれ記憶する第1の記憶手段と、
前記第1のアドレスを表すビット列の一部によって表される第2のアドレスによってアドレス指定され、その指定されたアドレスに、前記入力画像データの画素値から前記階層データの画素値を算出するための処理途中のデータである第1の処理データ、若しくは前記第1の処理データと前記入力画像データの画素値とを用いて算出された前記階層データの画素値、または前記入力画像データから前記第1の記憶手段に記憶されていない前記入力画像データの画素値を算出するための処理途中のデータである第2の処理データ、若しくは前記第2の処理データと前記第1の記憶手段に記憶されていない前記入力画像データの画素値とを用いて算出された前記入力画像データの画素値をそれぞれ記憶する第2の記憶手段とを備える記憶装置におけるアクセス方法であって、
前記入力画像データの画素値のそれぞれを前記第1の記憶手段に記憶するのと同時に、
前記第2の記憶手段に、前記入力画像データの画素値から前記階層データの画素値を算出するための処理途中のデータである第1の処理データ、若しくは前記第1の処理データと前記入力画像データの画素値とを用いて算出された前記階層データ、または前記入力画像データから前記第1の記憶手段に記憶されていない前記入力画像データの画素値を算出するための処理途中のデータである第2の処理データ、若しくは前記第2の処理データと前記入力画像データの画素値とを用いて算出された前記第1の記憶手段に記憶されていない前記入力画像データの画素値をそれぞれ記憶する
アクセス方法。
Image data composed of a smaller number of pixels than the input image data from the input image data, and obtained by adding pixel values of a plurality of pixels at predetermined positions among the pixels constituting the input image data. The obtained value is used as a pixel value, and is used when hierarchical data, which is image data composed of each of the pixels determined corresponding to the plurality of pixels, is calculated and hierarchical encoding is performed. A storage device for storing the hierarchical data,
A first address is specified by a first address corresponding to a horizontal position and a vertical position that specify a pixel position constituting the input image data, and each of the pixel values of the input image data is stored at the specified address. Storage means,
Addressed by a second address represented by a part of the bit string representing the first address, and for calculating the pixel value of the hierarchical data from the pixel value of the input image data at the designated address The first processing data that is data in the middle of processing, the pixel value of the hierarchical data calculated using the first processing data and the pixel value of the input image data, or the first image data based on the input image data. Stored in the second storage data or the second processing data and the first storage means, which is data in the middle of processing for calculating the pixel value of the input image data not stored in the storage means. And a second storage means for storing each of the pixel values of the input image data calculated using the pixel values of the input image data not included in the storage device. A that access method,
Simultaneously storing each of the pixel values of the input image data in the first storage means,
In the second storage means, the first processing data which is data in the middle of processing for calculating the pixel value of the hierarchical data from the pixel value of the input image data, or the first processing data and the input image The hierarchical data calculated using the pixel value of the data, or data in the middle of processing for calculating the pixel value of the input image data not stored in the first storage means from the input image data Second processing data, or pixel values of the input image data not stored in the first storage means calculated using the second processing data and the pixel values of the input image data are stored. how to access.
JP2006233634A 2006-08-30 2006-08-30 Storage device and access method Expired - Fee Related JP4273435B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006233634A JP4273435B2 (en) 2006-08-30 2006-08-30 Storage device and access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006233634A JP4273435B2 (en) 2006-08-30 2006-08-30 Storage device and access method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP20437497A Division JP4251675B2 (en) 1997-07-30 1997-07-30 Storage device and access method

Publications (2)

Publication Number Publication Date
JP2006320030A JP2006320030A (en) 2006-11-24
JP4273435B2 true JP4273435B2 (en) 2009-06-03

Family

ID=37540187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006233634A Expired - Fee Related JP4273435B2 (en) 2006-08-30 2006-08-30 Storage device and access method

Country Status (1)

Country Link
JP (1) JP4273435B2 (en)

Also Published As

Publication number Publication date
JP2006320030A (en) 2006-11-24

Similar Documents

Publication Publication Date Title
JP4236713B2 (en) Storage device and access method
JPH08320946A (en) Texture pattern memory circuit
JP4099578B2 (en) Semiconductor device and image data processing apparatus
JP4224876B2 (en) Storage device, writing method and reading method
JP4251675B2 (en) Storage device and access method
JP3861957B2 (en) Storage device, writing method and reading method
JP3787823B2 (en) Image processing apparatus and image processing method
US20070216695A1 (en) Image processing apparatus and image processing method
JP4273435B2 (en) Storage device and access method
JP3937418B2 (en) Storage device and storage read control method
JP3879110B2 (en) Storage device and data processing method
CN116312412A (en) A bicubic interpolation circuit based on FPGA
JP3702508B2 (en) Memory device for digital image signals.
JP4210950B2 (en) Image processing apparatus and image processing method
JP4650459B2 (en) Semiconductor device and data processing device
ES2399953T3 (en) Image storage device and access method
JP3532137B2 (en) Data generation circuit
JP3988522B2 (en) Data processing apparatus and semiconductor device
JP2007249791A (en) Image processing apparatus, image processing method, and program
JP2633251B2 (en) Image memory device
JPH07110786A (en) Semiconductor memory device
JPH01142986A (en) Picture memory element
JPWO2012032583A1 (en) Image data forming method, image data writing method, and image data processing circuit
JPS62271185A (en) Semiconductor memory and memory devices using multiple memory devices

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060830

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090202

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090205

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090218

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120313

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130313

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140313

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees