JP5454618B2 - Memory device, memory controller and memory system - Google Patents

Memory device, memory controller and memory system Download PDF

Info

Publication number
JP5454618B2
JP5454618B2 JP2012120473A JP2012120473A JP5454618B2 JP 5454618 B2 JP5454618 B2 JP 5454618B2 JP 2012120473 A JP2012120473 A JP 2012120473A JP 2012120473 A JP2012120473 A JP 2012120473A JP 5454618 B2 JP5454618 B2 JP 5454618B2
Authority
JP
Japan
Prior art keywords
bank
memory
address
access
data
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
JP2012120473A
Other languages
Japanese (ja)
Other versions
JP2012160256A (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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2012120473A priority Critical patent/JP5454618B2/en
Publication of JP2012160256A publication Critical patent/JP2012160256A/en
Application granted granted Critical
Publication of JP5454618B2 publication Critical patent/JP5454618B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は,デジタル画像データをはじめとする二次元配列データを記録するメモリ装置,そのメモリ装置のメモリコントローラ,及びメモリシステムに関し,特に,単位時間に処理できるデータ数を意味する帯域幅を実効的に大きくするメモリ装置,メモリコントローラ及びメモリシステムに関する。   The present invention relates to a memory device that records two-dimensional array data such as digital image data, a memory controller of the memory device, and a memory system, and more particularly, effectively reduces the bandwidth that means the number of data that can be processed per unit time. The present invention relates to a memory device, a memory controller, and a memory system.

デジタル画像データなどの二次元に配列されたデータを記録するメモリ装置は,デジタル放送やインターネットによる動画配信などの普及に伴ってますます大きな市場規模になりつつある。デジタル画像データは,画素の階調情報を複数ビット(例えば8ビット,256階調)で構成したデータ群であり,例えば,ハイビジョン放送用の画像データは,1フレームが1920×1040画素の画像データで構成される。そして,このフレーム単位の画像データが,所定のマッピング方法にしたがって,画像メモリ内のアドレス空間内に配置される。   Memory devices that record two-dimensionally arranged data such as digital image data are becoming an increasingly large market with the spread of digital broadcasting and video distribution via the Internet. The digital image data is a data group in which pixel gradation information is composed of a plurality of bits (for example, 8 bits, 256 gradations). For example, image data for high-definition broadcasting is image data of 1920 × 1040 pixels per frame. Consists of. The image data in units of frames is arranged in the address space in the image memory according to a predetermined mapping method.

このメモリマッピングは,現在普及している同期型DRAM(SDRAM)のメモリ構成と動作に基づいて,最も効率的なアクセスが可能になるように定められている。例えば,SDRAMは,複数のバンクを有し,各バンクが複数のワード線及びビット線とそれらの交差位置の複数のメモリセルとビット線に対応するセンスアンプとを有し,複数のバンクが独立してアクティブ動作を実行可能である。SDRAMにおけるアクティブ動作とは,ロウアドレスに基づいてワード線を選択しセンスアンプを活性化する一連の動作である。また,SDRAMのリード動作とは,コラムアドレスに基づいてセンスアンプで増幅されたビット線電位をリードデータとして入出力端子に出力する一連の動作であり,ライト動作とは,入出力端子から入力された選択されたライトデータをコラムアドレスに基づいて選択されたビット線に入力する一連の動作である。   This memory mapping is determined so that the most efficient access is possible based on the memory configuration and operation of a synchronous DRAM (SDRAM) that is currently popular. For example, an SDRAM has a plurality of banks, each bank has a plurality of word lines and bit lines, a plurality of memory cells at intersections thereof, and a sense amplifier corresponding to the bit lines, and the plurality of banks are independent. Thus, the active operation can be executed. The active operation in the SDRAM is a series of operations for selecting the word line based on the row address and activating the sense amplifier. The SDRAM read operation is a series of operations for outputting the bit line potential amplified by the sense amplifier based on the column address to the input / output terminal as read data. The write operation is input from the input / output terminal. This is a series of operations for inputting the selected write data to the bit line selected based on the column address.

SDRAMにおけるメモリ内のアドレス空間は,バンクアドレスとロウアドレスとで選択可能な複数のページ領域で構成され,各ページ領域はコラムアドレスで選択可能なビット群またはバイト群を有する。このコラムアドレスにより選択されたバイト群(またはビット群)が,複数の入出力端子を介して入出力される。   The address space in the memory in the SDRAM is composed of a plurality of page areas selectable by bank address and row address, and each page area has a bit group or byte group selectable by a column address. The byte group (or bit group) selected by this column address is input / output via a plurality of input / output terminals.

そして,一般的なマッピング方法によれば,デジタル画像データの画素が,ページ領域内のコラムアドレスで選択可能なバイト群(またはビット群)の各バイト(またはビット)に対応付けられる。さらに,このマッピング方法によれば,SDRAMの各バンクが独立してアクティブ動作とリードまたはライト動作とを実行することができるので,デジタル画像データの画素の配置に対応付けられる複数のページ領域が,画像上の上下左右に隣接するページ領域が異なるバンクアドレスに対応するように配置される。例えば,SDRAMが4バンク構成の場合は,奇数行にはバンクアドレスBA=0,1のページ領域を交互に配置し,偶数行にはバンクアドレスBA=2,3のページ領域を交互に配置する。このように配置することで,1フレームの画像データのリードまたはライトを行う場合,異なるバンクを交互に且つ時間的にオーバーラップしてアクティブ動作及びリードまたはライト動作を実行することができ,単位時間当たりに処理可能な画素数である帯域幅を飛躍的に高めることができる。   According to a general mapping method, a pixel of digital image data is associated with each byte (or bit) of a byte group (or bit group) that can be selected by a column address in the page area. Furthermore, according to this mapping method, each bank of the SDRAM can independently execute an active operation and a read or write operation, so that a plurality of page regions associated with the pixel arrangement of the digital image data are The page areas adjacent to the top, bottom, left, and right on the image are arranged so as to correspond to different bank addresses. For example, when the SDRAM has a 4-bank configuration, page areas with bank addresses BA = 0 and 1 are alternately arranged in odd rows, and page areas with bank addresses BA = 2 and 3 are alternately arranged in even rows. . With this arrangement, when reading or writing one frame of image data, it is possible to execute active operation and read or write operation by alternately and temporally overlapping different banks, and unit time The bandwidth, which is the number of pixels that can be processed per hit, can be dramatically increased.

特許文献1,2には,画像データを記憶する半導体メモリにおいて,複数の行に同時にアクセス可能にして,アクセス効率を高めることが記載されている。   Patent Documents 1 and 2 describe that in a semiconductor memory that stores image data, a plurality of rows can be accessed simultaneously to improve access efficiency.

また,特許文献3には,DRAMを画像伸長処理に用いる場合,ページをまたいでデータを読み出さなければならず,読み出し時間が長くなり且つ消費電力が多くなることを解決するために,入力ロウアドレスに割り付けられたサブアレイと1つ上位のロウアドレスに割り付けられたサブアレイとを同時に活性化されるように制御するサブアレイ選択回路を設けたメモリ装置が記載されている。しかし,特許文献3では,画像の行方向に連続する水平アクセスの効率を高めることを目的としており,矩形アクセスについては記載されていない。   Further, in Patent Document 3, when a DRAM is used for image decompression processing, data must be read across pages, and in order to solve the problem that reading time becomes long and power consumption increases, input row address There is described a memory device provided with a sub-array selection circuit for controlling the sub-array allocated to 1 and the sub-array allocated to the next higher row address to be activated simultaneously. However, Patent Document 3 aims to increase the efficiency of horizontal access that continues in the row direction of an image, and does not describe rectangular access.

さらに,特許文献4には,バス制御部がバーストモードでアクセス中の記憶領域とは異なる記憶領域への,データ処理部からのアクセス指示によりアドレスアクティブコマンドを発行し,あらかじめアクセスアドレスの設定を可能にするデータ処理システムが記載されている。つまり,メモリコントローラが1つのバンクをアクティブにしてアクセス中に,他のバンクにアクティブコマンドを発行してあらかじめアクティブ動作をさせておくことでリードライト動作の高速化を実現することが記載されている。   Furthermore, in Patent Document 4, an address active command is issued in response to an access instruction from the data processing unit to a storage area different from the storage area being accessed by the bus control unit in burst mode, and an access address can be set in advance. A data processing system is described. That is, it is described that the memory controller activates one bank and accesses the other bank to issue an active command to perform an active operation in advance, thereby realizing a high-speed read / write operation. .

そして,特許文献5には,画像メモリと,任意のバンクにアクセスしている間にカラムアドレスを連続的に発生して同一ページ内の任意のアドレスに連続アクセス可能とすると共に,この後にアクセスするバンクを前もってロウアクティブしておくことにより,アクセスするバンクが切り替わってもこれを直ちにアクセスできるように制御するコントローラ手段とを備える画像処理装置が開示されている。つまり,メモリコントローラがアドレス順序予測回路を有し,次にアクセスされるバンクを予測し,メモリにアクティブコマンドを発行することが記載されている。   In Patent Document 5, column addresses are continuously generated while accessing an image memory and an arbitrary bank so that an arbitrary address in the same page can be continuously accessed and accessed thereafter. There is disclosed an image processing apparatus including controller means for controlling a bank so that it can be accessed immediately even if the bank to be accessed is switched by making the row active in advance. That is, it is described that the memory controller has an address order prediction circuit, predicts a bank to be accessed next, and issues an active command to the memory.

特許文献6には,揮発性メモリが複数のバンクに設けられ,オートリフレッシュコマンドでリフレッシュ対象バンクが指定され,リフレッシュ対象バンクでリフレッシュ動作中に,リフレッシュ対象バンク以外は通常メモリ動作コマンドに応答して通常メモリ動作を実行するメモリシステムが記載されている。ただし,複数のリフレッシュ回数を予め設定してリフレッシュ制御することは記載されていない。   In Patent Document 6, a volatile memory is provided in a plurality of banks, a refresh target bank is specified by an auto-refresh command, and during a refresh operation in the refresh target bank, in response to a normal memory operation command except for the refresh target bank A memory system that performs normal memory operations is described. However, there is no description of performing refresh control by setting a plurality of refresh times in advance.

特許文献7には,デュアルポートDRAMを複数のバンクに分割し,1つのバンクに対するデータ読み出し転送サイクルと,その他のバンクに対するリフレッシュサイクルとを同時に行うメモリ装置が記載されている。   Patent Document 7 describes a memory device in which a dual-port DRAM is divided into a plurality of banks, and a data read transfer cycle for one bank and a refresh cycle for other banks are performed simultaneously.

特許文献8には,2つのバンクを有するSDRAMに対し,メモリコントローラはアクセス制御してライト又はリードを行い,アクセスされているバンクと異なるバンクにアクティブコマンドとプリチャージコマンドとを発行してリフレッシュ動作を行うことが記載されている。   In Patent Document 8, a memory controller performs a write or read by controlling access to an SDRAM having two banks, and issues an active command and a precharge command to a bank different from the bank being accessed to perform a refresh operation. It is described to do.

特許文献9には,2つのブロックを有するDRAMにおいて,アクセスとリフレッシュとが同時に発生した場合,または既に一方のブロックにアクセスが発生している場合,アービタが他方のブロックにリフレッシュ動作を,一方のブロックにアクセス動作を実行させることが記載されている。   In Patent Document 9, in a DRAM having two blocks, when an access and a refresh occur simultaneously, or when an access has already occurred in one block, the arbiter performs a refresh operation on the other block, It is described that the block performs an access operation.

特開2001−312885号公報JP 2001-312885 A 特開平08−180675号公報Japanese Patent Laid-Open No. 08-180675 特開平09−231745号公報JP 09-231745 A 特開2002−132577号公報JP 2002-132777 A 特開平10−105367号公報JP-A-10-105367 米国特許公開US2005/0265104A1公報US Patent Publication US2005 / 0265104A1 特開平08−115594号公報Japanese Patent Laid-Open No. 08-115594 特開平09−129881号公報Japanese Patent Laid-Open No. 09-129881 特開平10−11348号公報Japanese Patent Laid-Open No. 10-11348

デジタル画像データを格納する画像メモリでは,画像データの書き込みと読み出しを,マトリクス状の画素の配置順に行う水平アクセスと,マトリクス状の画素の部分的な矩形領域に対して行う矩形アクセスとが必要になる。水平アクセスは,例えば,1フレームの画像データを水平スキャンを繰り返して書き込んだり読み出したりするラスタスキャン動作に対応する。また,矩形アクセスは,例えば,MPEGなどのエンコード動作において,小さい矩形形状のブロックの画像データを読み出して動きベクトルを求めたりする動作や,デコード動作での画像再生において,ブロックの画像データを読み出したり書き込んだりする動作に対応する。   An image memory that stores digital image data requires horizontal access for writing and reading image data in the order of arrangement of matrix-like pixels and rectangular access for partial rectangular areas of matrix-like pixels. Become. The horizontal access corresponds to, for example, a raster scan operation in which one frame of image data is written or read by repeating horizontal scanning. In addition, the rectangular access is, for example, an operation of reading out image data of a small rectangular block in an encoding operation such as MPEG to obtain a motion vector, or of reading out image data of a block in image reproduction in a decoding operation. Corresponds to the operation to write.

しかしながら,前述のメモリマッピングによりメモリのアドレス空間内に画素の画像データが記憶されるので,矩形アクセスにおける実効的な帯域幅の低下が問題になる。第1に,バンクアドレスとロウアドレスで選択されるページ領域内において,コラムアドレスによりバイト群,つまり複数バイト(または複数ビット)が同時にアクセスされる。しかし,矩形アクセスにおいてアクセスしたい矩形画像領域と,コラムアドレスにより選択される複数バイト(または複数ビット)とが一致しない場合は,1つのコラムアドレスによるアクセスにおいて無駄な入出力データが発生する。第2に,矩形アクセスにおいてアクセスしたい矩形画像領域とアドレス空間内のページ領域とが一致しない場合は,ページ領域の境界を越えて複数のページ領域に対してアクセスすることが要求され,複雑なメモリ制御が必要になる。   However, since the pixel image data is stored in the address space of the memory by the memory mapping described above, there is a problem of effective bandwidth reduction in rectangular access. First, in a page area selected by a bank address and a row address, a byte group, that is, a plurality of bytes (or a plurality of bits) are simultaneously accessed by a column address. However, if the rectangular image area to be accessed in the rectangular access and the plurality of bytes (or a plurality of bits) selected by the column address do not match, useless input / output data is generated in the access by one column address. Secondly, when the rectangular image area to be accessed in the rectangular access and the page area in the address space do not match, it is required to access a plurality of page areas across the boundary of the page area. Control is required.

上記第1,第2の問題点は,アクセス対象の矩形画像領域が,ページ領域とも一致せず且つコラムアドレスで選択される複数バイト(または複数ビット)とも一致しない場合は,さらに,メモリ制御が複雑になり,実効的な帯域幅の低下を招く。   The first and second problems are that if the rectangular image area to be accessed does not match the page area and does not match the multiple bytes (or multiple bits) selected by the column address, the memory control is further performed. It becomes complex and causes a reduction in effective bandwidth.

実効的な帯域幅の低下は,矩形アクセスに限らず生じる。一般的な同期型DRAM(SDRAM)は,メモリコントローラが発行するオートリフレッシュコマンドに応答して,メモリ内に共通に設けられたリフレッシュアドレスカウンタのリフレッシュアドレスに基づき,全てのバンクで並行してリフレッシュ動作を行う。そのため,一旦リフレッシュ動作が始まると,水平アクセス及び矩形アクセスのいずれも実行することができず,そのリフレッシュ動作が完了するまでアクセス動作を待機させることが必要になる。その結果,実効的な帯域幅が低下することになる。   Effective bandwidth reduction occurs not only in rectangular access. In general synchronous DRAM (SDRAM), in response to an auto-refresh command issued by the memory controller, a refresh operation is performed in parallel in all banks based on the refresh address of a refresh address counter provided in the memory in common. I do. For this reason, once the refresh operation starts, neither horizontal access nor rectangular access can be executed, and it is necessary to wait for the access operation until the refresh operation is completed. As a result, the effective bandwidth is reduced.

そこで,本発明の目的は,メモリ装置のリフレッシュ動作による実効的な帯域幅の低下を解決したメモリ装置,メモリ装置のメモリコントローラ,及びメモリシステムを提供することにある。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a memory device, a memory controller of the memory device, and a memory system in which the effective bandwidth reduction caused by the refresh operation of the memory device is solved.

上記の目的を達成するために,本発明の第1の側面によれば,メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,バックグランドリフレッシュコマンドとリフレッシュバースト長情報に応答して,リフレッシュ対象バンク内のメモリコアに該リフレッシュバースト長情報に対応する回数のリフレッシュ動作を連続して実行させる制御回路とを有するメモリ装置である。   In order to achieve the above object, according to a first aspect of the present invention, a plurality of banks each having a memory core including a memory cell array and selected by a bank address, a background refresh command, and refresh burst length information And a control circuit that causes the memory core in the refresh target bank to continuously execute the refresh operation corresponding to the refresh burst length information.

上記の目的を達成するために,本発明の第2の側面によれば,メモリコントローラからのコマンドに応答して動作するメモリ装置において,メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,バックグランドリフレッシュコマンドに応答して,前記メモリコントローラにより設定されたリフレッシュ対象バンク内のメモリコアに,前記メモリコントローラにより設定されたリフレッシュバースト長の回数のリフレッシュ動作を連続して実行させ,前記リフレッシュ対象バンク内のメモリコアが前記リフレッシュ動作を実行中に,通常動作コマンドに応答して,前記リフレッシュ対象バンク以外のバンクであって前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させる制御回路とを有する。   To achieve the above object, according to a second aspect of the present invention, in a memory device that operates in response to a command from a memory controller, each memory core including a memory cell array is selected by a bank address. In response to a background refresh command, the memory cores in the refresh target bank set by the memory controller are continuously refreshed for the number of refresh burst lengths set by the memory controller. In response to a normal operation command while the memory core in the refresh target bank is executing the refresh operation, the memory core in the bank other than the refresh target bank and selected by the bank address is executed. In addition, the normal operation command Usually correspond to command and a control circuit for executing the memory operations.

本発明の第2の側面において,第1の好ましい態様によれば,メモリ装置は,さらに,前記複数のバンクそれぞれに,または前記複数のバンクの複数組それぞれに,対応するバンク内のリフレッシュ対象アドレスをカウントするリフレッシュアドレスカウンタを有する。そして,前記制御回路は,前記バックグランドリフレッシュコマンドに応答して,前記設定されたリフレッシュ対象バンクにリフレッシュ制御信号を出力するバックグランドリフレッシュ制御部と,前記リフレッシュバースト長が設定されるリフレッシュバースト長レジスタと,前記複数のバンクそれぞれに設けられ,前記バックグランドリフレッシュ制御信号に応答して,前記リフレッシュバースト長レジスタに設定されたリフレッシュバースト長の回数だけ,前記リフレッシュアドレスカウンタのアドレスについて前記メモリコアにリフレッシュ動作を実行させるコアコントローラとを有する。   In the second aspect of the present invention, according to the first preferred embodiment, the memory device further includes a refresh target address in a bank corresponding to each of the plurality of banks or each of the plurality of sets of the plurality of banks. Has a refresh address counter. The control circuit includes a background refresh control unit that outputs a refresh control signal to the set refresh target bank in response to the background refresh command, and a refresh burst length register in which the refresh burst length is set. Provided in each of the plurality of banks and in response to the background refresh control signal, the memory core is refreshed for the address of the refresh address counter by the number of times of the refresh burst length set in the refresh burst length register. A core controller for executing the operation.

本発明の第2の側面において,第2の好ましい態様によれば,1回のリフレッシュサイクルで同時に活性化されるメモリブロック数を示すリフレッシュブロック数が,前記メモリコントローラにより設定され,前記制御回路は,前記バックグランドリフレッシュコマンドに応答して,前記リフレッシュブロック数のブロックを同時に活性化するリフレッシュ動作を,前記設定されたリフレッシュバースト長の回数,リフレッシュ対象バンクに実行させる。このリフレッシュブロック数は,予めモードレジスタに設定される。または,リフレッシュブロック数は,バックグランドリフレッシュコマンドと共に入力されて設定される。   In the second aspect of the present invention, according to the second preferred embodiment, a refresh block number indicating the number of memory blocks simultaneously activated in one refresh cycle is set by the memory controller, and the control circuit is In response to the background refresh command, a refresh operation for simultaneously activating the number of refresh blocks is executed in the refresh target bank for the set number of refresh burst lengths. The number of refresh blocks is preset in the mode register. Alternatively, the refresh block number is input and set together with the background refresh command.

本発明の第2の側面において,第3の好ましい態様によれば,前記バックグランドリフレッシュコマンドと同時に前記リフレッシュバースト長やリフレッシュブロック数を入力する。または,モードレジスタ設定コマンドと同時に前記リフレッシュバースト長やリフレッシュブロック数を入力する。前者の場合は,前記リフレッシュバースト長レジスタが前記バンクに対応して設けられ,入力された前記リフレッシュバースト長がリフレッシュ対象バンク内のリフレッシュバースト長レジスタに設定される。また,リフレッシュブロック数レジスタが設けられ,入力されたリフレッシュブロック数が前記リフレッシュブロック数レジスタに設定される。後者の場合は,前記リフレッシュバースト長レジスタがモードレジスタ内に設けられ,入力された前記リフレッシュバースト長が前記モードレジスタに設定される。同様に,リフレッシュブロック数レジスタがモードレジスタ内に設けられ,入力されたリフレッシュブロック数が当該モードレジスタに設定される。   In the second aspect of the present invention, according to the third preferred embodiment, the refresh burst length and the number of refresh blocks are input simultaneously with the background refresh command. Alternatively, the refresh burst length and the number of refresh blocks are input simultaneously with the mode register setting command. In the former case, the refresh burst length register is provided corresponding to the bank, and the input refresh burst length is set in the refresh burst length register in the refresh target bank. Further, a refresh block number register is provided, and the inputted refresh block number is set in the refresh block number register. In the latter case, the refresh burst length register is provided in the mode register, and the input refresh burst length is set in the mode register. Similarly, a refresh block number register is provided in the mode register, and the input refresh block number is set in the mode register.

本発明の第2の側面において,第3の好ましい態様において,前記コアコントローラは,前記リフレッシュバースト長の回数のリフレッシュ動作中に,新たに入力されたバックグランドリフレッシュコマンドに応答して,前記リフレッシュ動作の残り回数に前記リフレッシュバースト長を加えた回数,前記リフレッシュ対象バンク内のメモリコアに前記リフレッシュ動作を連続して実行させる。   In the second aspect of the present invention, in the third preferred embodiment, the core controller performs the refresh operation in response to a newly input background refresh command during the refresh operation for the number of times of the refresh burst length. The refresh operation is continuously performed by the memory core in the refresh target bank by the number obtained by adding the refresh burst length to the remaining number of times.

または,前記コアコントローラは,前記リフレッシュバースト長の回数のリフレッシュ動作中に,新たに入力されたバックグランドリフレッシュコマンドに応答して,前記リフレッシュ動作の残り回数にかかわらず,前記リフレッシュバースト長の回数,前記リフレッシュ対象バンク内のメモリコアに前記リフレッシュ動作を連続して実行させる。   Alternatively, the core controller responds to a newly input background refresh command during the refresh burst length refresh operation, regardless of the remaining refresh operation count, the refresh burst length count, The refresh operation is continuously executed by the memory cores in the refresh target bank.

さらに,前記コアコントローラは,リフレッシュオールコマンドに応答して,前記リフレッシュアドレスカウンタ内のアドレスから残りのアドレスまで,前記リフレッシュ対象バンク内のメモリコアにリフレッシュ動作を繰り返し実行させる。   Further, in response to the refresh all command, the core controller causes the memory cores in the refresh target bank to repeatedly perform a refresh operation from the address in the refresh address counter to the remaining addresses.

本発明の第2の側面において,第4の好ましい態様によれば,前記コアコントローラは,前記リフレッシュバースト長の回数のリフレッシュ動作中に,バックグランドリフレッシュ停止コマンドに応答して,前記リフレッシュ対象バンク内のメモリコアにリフレッシュ動作を停止させる。このリフレッシュ動作の停止制御は,前記リフレッシュ対象バンク内のメモリコアに前記実行中のリフレッシュ動作を終了させた後に,次のリフレッシュ動作を開始させないように行われる。   In the second aspect of the present invention, according to the fourth preferred embodiment, the core controller responds to a background refresh stop command in the refresh target bank during the refresh operation of the number of refresh burst lengths. The refresh operation is stopped in the memory core. This stop control of the refresh operation is performed so that the memory core in the refresh target bank does not start the next refresh operation after the refresh operation being executed is terminated.

本発明の第2の側面において,第5の好ましい態様によれば,モードレジスタへのアクティブリフレッシュ連動フラグの設定に基づき,前記バックグランドリフレッシュ制御部は,通常メモリ動作コマンドに応答して,入力されるバンクアドレスに対応するアクセス対象バンク以外のバンクに,前記バックグランドリフレッシュ制御信号を供給する。これにより,メモリコントローラは,バックグランドリフレッシュコマンドを発行することなく,通常メモリ動作コマンドの発行で,アクセス対象バンク以外のバンクでのリフレッシュ動作を実行させることができる。   In the second aspect of the present invention, according to the fifth preferred embodiment, the background refresh control unit is input in response to a normal memory operation command based on the setting of the active refresh interlock flag in the mode register. The background refresh control signal is supplied to banks other than the access target bank corresponding to the bank address to be accessed. Thus, the memory controller can execute a refresh operation in a bank other than the bank to be accessed by issuing a normal memory operation command without issuing a background refresh command.

上記の目的を達成するために,本発明の第3の側面によれば,メモリ装置は,メモリセルアレイとデコーダ含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクを有し,メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶する。そして,メモリ装置は,前記二次元配列データを水平方向にアクセスする水平アクセス期間中において,通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させると共に,バックグランドリフレッシュコマンドに応答して,前記水平アクセス対象バンク以外のリフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させる制御回路を有する。さらに,制御回路は,前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセス期間中において,前記通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンクと当該選択されたバンクに隣接するバンク内のメモリコアに,前記通常メモリ動作を実行させ,当該通常メモリ動作中においてリフレッシュ動作を禁止する。   In order to achieve the above object, according to a third aspect of the present invention, a memory device includes a memory cell array and a memory core including a decoder, each having a plurality of banks selected by bank addresses, and a memory logic Based on memory mapping in which a space has a plurality of page areas selected by the bank address and row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses, The plurality of banks store two-dimensional array data. Then, the memory device responds to the normal operation command during the horizontal access period in which the two-dimensional array data is accessed in the horizontal direction, and sends the normal operation command to the memory core in the bank selected by the bank address. A control circuit for executing a corresponding normal memory operation and causing a memory core in a refresh target bank other than the horizontal access target bank to execute a refresh operation in response to a background refresh command. Further, the control circuit, in a rectangular access period for accessing the two-dimensional array data to an arbitrary rectangular area, responds to the normal operation command and the bank selected by the bank address and the selected bank The memory core in the bank adjacent to the memory core is caused to execute the normal memory operation, and the refresh operation is prohibited during the normal memory operation.

上記の第3の側面によれば,メモリ装置は,水平アクセス期間中は,特定のバンクで通常メモリ動作が繰り返されるので,選択されたバンクでは通常メモリ動作を行い,水平アクセス対象バンク以外のリフレッシュ対象バンクではリフレッシュ動作を行う。ただし,矩形アクセス期間中は,メモリアクセス対象のバンクが予測できないので,通常メモリ動作と共に行うリフレッシュ動作は禁止する。これにより,バックグランドリフレッシュ動作中でも水平アクセスを継続することができ,実効的な帯域幅を大きくすることができる。   According to the third aspect, the memory device repeats normal memory operation in a specific bank during a horizontal access period. Therefore, the memory device performs normal memory operation in the selected bank and refreshes other than the horizontal access target bank. A refresh operation is performed in the target bank. However, during the rectangular access period, the memory access target bank cannot be predicted, so the refresh operation performed together with the normal memory operation is prohibited. As a result, horizontal access can be continued even during the background refresh operation, and the effective bandwidth can be increased.

上記の目的を達成するために,本発明の第4の側面によれば,メモリシステムは,上記第1または第2の側面のメモリ装置と,そのメモリ装置にコマンドを供給するメモリコントローラとを有する。   To achieve the above object, according to a fourth aspect of the present invention, a memory system includes the memory device according to the first or second aspect and a memory controller that supplies a command to the memory device. .

上記の目的を達成するために,本発明の第5の側面によれば,メモリコントローラは,上記第1または第2の側面のメモリ装置にコマンドとリフレッシュバンク情報とリフレッシュバースト長とリフレッシュブロック数とを供給する。   In order to achieve the above object, according to a fifth aspect of the present invention, a memory controller includes a command, a refresh bank information, a refresh burst length, and a refresh block number in the memory device of the first or second aspect. Supply.

本発明によれば,リフレッシュ対象バンクにおいて設定された複数回のリフレッシュ回数だけメモリコアにリフレッシュ動作を実行させるので,バックグランドリフレッシュ動作終了後短時間で,リフレッシュ対象バンクに対して通常メモリ動作を開始することができ,実効的な帯域幅の低下を抑えることができる。   According to the present invention, since the memory core performs the refresh operation for the number of refresh times set in the refresh target bank, the normal memory operation is started for the refresh target bank in a short time after the background refresh operation is completed. It is possible to suppress the decrease in effective bandwidth.

本発明によれば,他のメモリバンクが通常メモリ動作を実行中に,設定されたリフレッシュ対象バンクにおいて設定された複数回のリフレッシュ回数だけメモリコアにリフレッシュ動作を実行させるので,リフレッシュ動作と通常メモリ動作とを並列に実行することができ,リフレッシュ動作に起因する通常メモリ動作における実効的な帯域幅の低下を抑えることができる。しかも,通常メモリ動作中のバックグランドリフレッシュ動作の回数があらかじめ設定されているので,バックグランドリフレッシュ動作終了後短時間で,リフレッシュ対象バンクに対して通常メモリ動作を開始することができ,実効的な帯域幅の低下を抑えることができる。   According to the present invention, while another memory bank is executing a normal memory operation, the memory core is caused to execute a refresh operation by a plurality of refresh times set in the set refresh target bank. The operation can be executed in parallel, and the reduction in effective bandwidth in the normal memory operation due to the refresh operation can be suppressed. Moreover, since the number of background refresh operations during normal memory operation is set in advance, normal memory operation can be started for the refresh target bank in a short time after the background refresh operation is completed. A decrease in bandwidth can be suppressed.

本実施の形態における画像メモリのメモリマッピングを示す図である。It is a figure which shows the memory mapping of the image memory in this Embodiment. 画像メモリにおける2つのアクセスを示す図である。It is a figure which shows two accesses in an image memory. 水平アクセスの課題を示す図である。It is a figure which shows the subject of a horizontal access. 矩形アクセスの第1の課題を示す図である。It is a figure which shows the 1st subject of a rectangular access. 矩形アクセスの第2の課題を示す図である。It is a figure which shows the 2nd subject of a rectangular access. 本実施の形態の全体の動作を示す図である。It is a figure which shows the whole operation | movement of this Embodiment. 本実施の形態の全体の動作の別の例を示す図である。It is a figure which shows another example of the whole operation | movement of this Embodiment. 本実施の形態における画像処理システムの構成図である。It is a block diagram of the image processing system in this Embodiment. 本実施の形態における画像メモリの構成図である。It is a block diagram of the image memory in this Embodiment. バイトバウンダリ機能を説明する図である。It is a figure explaining a byte boundary function. バイトバウンダリ機能におけるタイミングチャートを示す図である。It is a figure which shows the timing chart in a byte boundary function. 異なるマッピングに対するバイトバウンダリ機能を説明する図である。It is a figure explaining the byte boundary function with respect to different mapping. 図12のビッグエンディアンとリトルエンディアンとを説明する図である。It is a figure explaining the big endian and little endian of FIG. 特殊なメモリマッピングにおけるバイトバウンダリ機能を説明する図である。It is a figure explaining the byte boundary function in special memory mapping. 図14の特殊なメモリマッピングを説明する図である。It is a figure explaining the special memory mapping of FIG. 矩形アクセスにおけるバイトバウンダリ機能を示すタイミングチャート図である。It is a timing chart figure which shows the byte boundary function in rectangular access. バイトバウンダリ機能を実現するための画像処理システムの構成図である。It is a block diagram of the image processing system for implement | achieving a byte boundary function. バイトバウンダリ機能を示す図である。It is a figure which shows a byte boundary function. 簡素化されたバイトバウンダリ機能を実現する画像処理システムの構成図である。1 is a configuration diagram of an image processing system that realizes a simplified byte boundary function. FIG. 図19の簡素化されたバイトバウンダリ機能を実現する画像処理システムを説明する図である。It is a figure explaining the image processing system which implement | achieves the simplified byte boundary function of FIG. バイトバウンダリ機能を有するメモリ構成の概念を示す図である。It is a figure which shows the concept of the memory structure which has a byte boundary function. バイトバウンダリ機能を有する画像メモリの第1の例を示す図である。It is a figure which shows the 1st example of the image memory which has a byte boundary function. 図22の動作を説明する図である。It is a figure explaining the operation | movement of FIG. 図24は,バイトバウンダリ機能を有する画像メモリの第2の例を示す図である。FIG. 24 is a diagram illustrating a second example of an image memory having a byte boundary function. 図24の動作を説明する図である。It is a figure explaining the operation | movement of FIG. バイトバウンダリ機能を有する画像メモリの第2の例の変形例(1)の動作を示す図である。It is a figure which shows operation | movement of the modification (1) of the 2nd example of the image memory which has a byte boundary function. バイトバウンダリ機能を有する画像メモリの第2の例の変形例(2)の動作を示す図である。It is a figure which shows operation | movement of the modification (2) of the 2nd example of the image memory which has a byte boundary function. バイトバウンダリ機能を有する画像メモリの第2の例の変形例(3)の動作を示す図である。It is a figure which shows operation | movement of the modification (3) of the 2nd example of the image memory which has a byte boundary function. バイトバウンダリ機能を有する画像メモリの第3の例を示す図である。It is a figure which shows the 3rd example of the image memory which has a byte boundary function. 図29の動作を説明する図である。It is a figure explaining the operation | movement of FIG. バイトバウンダリ機能を有する画像メモリの入出力端子との対応手段を示す図である。It is a figure which shows a corresponding means with the input-output terminal of the image memory which has a byte boundary function. 図31の動作を示す図である。It is a figure which shows the operation | movement of FIG. バイトバウンダリ機能を有する画像メモリの入出力端子との対応手段を示す図である。It is a figure which shows a corresponding means with the input-output terminal of the image memory which has a byte boundary function. 図33の動作を示す図である。It is a figure which shows the operation | movement of FIG. バイトバウンダリ機能を有する画像メモリであってエンディアンに対応可能な画像メモリの構成図(1)である。It is a block diagram (1) of the image memory which has a byte boundary function, and can respond to an endian. バイトバウンダリ機能を有する画像メモリであってエンディアンに対応可能な画像メモリの構成図(2)である。It is a block diagram (2) of the image memory which has a byte boundary function, and can respond to an endian. バイトバウンダリ機能を有する画像メモリであってエンディアンに対応可能な画像メモリの構成図(3)である。It is a block diagram (3) of the image memory which has a byte boundary function, and can respond to an endian. 図37のDDRメモリにおけるアップモードの動作タイミングチャート図である。FIG. 38 is an operation timing chart of the up mode in the DDR memory of FIG. 37. 図37のDDRメモリにおけるダウンモードの動作タイミングチャート図である。FIG. 38 is an operation timing chart of the down mode in the DDR memory of FIG. 37. バイトバウンダリ機能におけるバウンダリの指定方法について説明する図である。It is a figure explaining the specification method of the boundary in a byte boundary function. スタートバイトSBとシフトバリューSVとの変換回路を示す図である。It is a figure which shows the conversion circuit of start byte SB and shift value SV. バイトバウンダリ機能を利用した自動矩形アクセスを説明する図である。It is a figure explaining the automatic rectangular access using a byte boundary function. 自動矩形アクセスでのタイミングチャート図である。It is a timing chart figure in automatic rectangular access. 自動矩形アクセスに必要な内部コラムアドレス演算器の構成図である。It is a block diagram of an internal column address calculator required for automatic rectangular access. バイトバウンダリ機能によるアクセスがページ領域の末尾に及んだ場合のメモリ動作の例を示す図である。It is a figure which shows the example of a memory operation | movement when the access by a byte boundary function reaches the end of a page area. バイトバウンダリ機能によるアクセスがページ領域の末尾に及んだ場合のメモリ動作の別の例を示す図である。It is a figure which shows another example of the memory operation | movement when the access by a byte boundary function reaches the end of a page area. バイトバウンダリ機能によるアクセスがページ領域の末尾に及んだ場合のメモリ動作の別の例を示す図である。It is a figure which shows another example of the memory operation | movement when the access by a byte boundary function reaches the end of a page area. バイトバウンダリ機能のその他の用途を説明する図である。It is a figure explaining the other use of a byte boundary function. バイトバウンダリ機能のその他の用途を説明する図である。It is a figure explaining the other use of a byte boundary function. バイトバウンダリ機能のその他の用途を説明する図である。It is a figure explaining the other use of a byte boundary function. 画像処理システムの構成図である。1 is a configuration diagram of an image processing system. メモリ制御部(メモリコントローラ)の入力及び出力信号を示す図である。It is a figure which shows the input and output signal of a memory control part (memory controller). フレーム画像内で読み出し対象の参照画像領域を説明する図である。It is a figure explaining the reference image area | region of reading object in a frame image. メモリ制御部の詳細な構成図である。It is a detailed block diagram of a memory control part. 参照画像読み出し制御部514での演算処理部515の演算を説明する図である。It is a figure explaining the calculation of the arithmetic process part 515 in the reference image read-out control part 514. FIG. 参照画像読み出し制御部514での演算処理部515の演算例を示す図である。It is a figure which shows the example of a calculation of the arithmetic process part 515 in the reference image read-out control part 514. メモリマッピング例を示す図である。It is a figure which shows the example of memory mapping. メモリマッピング12におけるページ領域14の構成を示す図である。3 is a diagram illustrating a configuration of a page area 14 in the memory mapping 12. FIG. 図56の参照画像領域のメモリマップ上での配置を示す図である。FIG. 57 is a diagram showing an arrangement of a reference image area in FIG. 56 on a memory map. 参照画像領域のメモリマップ上での別の配置例を示す図である。It is a figure which shows another example of arrangement | positioning on the memory map of a reference image area | region. バイトバウンダリ機能を有しないメモリに対するメモリコントローラでのタイミングチャート図である。It is a timing chart figure in a memory controller with respect to the memory which does not have a byte boundary function. バイトバウンダリ機能を有するメモリに対するメモリコントローラでのタイミングチャート図である。It is a timing chart figure in a memory controller with respect to the memory which has a byte boundary function. バイトバウンダリ機能とマルチバンクアクセス機能を有しないメモリに対するメモリコントローラでのタイミングチャート図である。FIG. 10 is a timing chart in a memory controller for a memory that does not have a byte boundary function and a multi-bank access function. マルチバンクアクセス機能とバイトバウンダリ機能を有するメモリに対するメモリコントローラにおけるタイミングチャート図である。FIG. 4 is a timing chart in a memory controller for a memory having a multi-bank access function and a byte boundary function. メモリコントローラの制御動作のフローチャート図である。It is a flowchart figure of control operation of a memory controller. メモリコントローラの制御動作のフローチャート図である。It is a flowchart figure of control operation of a memory controller. 本実施の形態におけるマルチバンクアクセスについて概略説明図である。It is a schematic explanatory drawing about the multibank access in this Embodiment. 本実施の形態におけるマルチバンクアクセスを説明する図である。It is a figure explaining the multibank access in this Embodiment. マルチバンク情報SA’がバンク数情報(=4)の場合のタイミングチャート図である。It is a timing chart figure in case multibank information SA 'is bank number information (= 4). マルチバンク情報SA’が矩形領域のサイズ情報(W=8バイト,H=8行)の場合のタイミングチャート図である。FIG. 11 is a timing chart when the multi-bank information SA ′ is rectangular area size information (W = 8 bytes, H = 8 rows). マルチバンクアクセス機能を有するメモリ装置の構成図である。It is a block diagram of a memory device having a multi-bank access function. マルチバンク活性化制御部88の第1の例を示す図である。6 is a diagram illustrating a first example of a multi-bank activation control unit 88. FIG. マルチバンク活性化制御部88の第1の例を示す図である。6 is a diagram illustrating a first example of a multi-bank activation control unit 88. FIG. マルチバンク活性化制御部88の第2の例を示す図である。6 is a diagram illustrating a second example of a multi-bank activation control unit 88. FIG. マルチバンク活性化制御部88の第2の例を示す図である。6 is a diagram illustrating a second example of a multi-bank activation control unit 88. FIG. マルチバンク活性化制御部88の第3の例を示す図である。FIG. 10 is a diagram illustrating a third example of the multi-bank activation control unit 88. マルチバンク活性化制御部88の第3の例を示す図である。FIG. 10 is a diagram illustrating a third example of the multi-bank activation control unit 88. バンク活性化タイミングの例1を示す図である。It is a figure which shows the example 1 of a bank activation timing. バンク活性化タイミングの例2を示す図である。It is a figure which shows the example 2 of a bank activation timing. 活性化バンク制御回路88Cのバンク活性化タイミング制御の論理を説明する図である。It is a figure explaining the logic of the bank activation timing control of the activation bank control circuit 88C. バンク活性化タイミングの例3を示す図である。It is a figure which shows the example 3 of a bank activation timing. 本実施の形態におけるマルチバンクアクセスでのロウアドレス生成を説明する図である。It is a figure explaining row address generation in multi-bank access in this embodiment. 本実施の形態におけるロウアドレス演算部の例1を示す図である。It is a figure which shows Example 1 of the row address calculating part in this Embodiment. 本実施の形態におけるロウアドレス演算部の例2を示す図である。It is a figure which shows Example 2 of the row address calculating part in this Embodiment. 2つのメモリマッピング例を示す図である。It is a figure which shows two memory mapping examples. 2種類のメモリマッピングに対するバンクアドレス切換回路861を示す図である。It is a figure which shows the bank address switching circuit 861 with respect to two types of memory mapping. マルチバンクアクセスとバイトバウンダリが発生した場合のタイミングチャートを示す図である。It is a figure which shows the timing chart when multibank access and byte boundary generate | occur | produce. マルチバンクアクセスとバイトバウンダリ機能とを有するメモリ装置の構成図である。1 is a configuration diagram of a memory device having multi-bank access and a byte boundary function. FIG. メモリマッピングの一例を示す図である。It is a figure which shows an example of memory mapping. 本実施の形態におけるメモリコントローラの構成図である。It is a block diagram of the memory controller in this Embodiment. アクセス元ブロックとインターフェース間の信号を示す図である。It is a figure which shows the signal between an access origin block and an interface. アクセス対象領域のデータを説明する図である。It is a figure explaining the data of an access object area | region. アクセス元ブロックとインターフェース間の信号のタイミングチャート図である。It is a timing chart figure of the signal between an access origin block and an interface. メモリコントローラの動作概略を示す図である。It is a figure which shows the operation | movement outline | summary of a memory controller. シーケンサSEQの構成図である。It is a block diagram of sequencer SEQ. 中間パラメータを生成する演算式を説明するための図である。It is a figure for demonstrating the computing equation which produces | generates an intermediate parameter. コマンド/アドレス生成部における動作フローチャート図である。It is an operation | movement flowchart in a command / address generation part. メモリコントローラとメモリ装置との間のタイミングチャート図である。It is a timing chart figure between a memory controller and a memory device. 本実施の形態におけるバックグランドリフレッシュの概略説明図である。It is a schematic explanatory drawing of the background refresh in this Embodiment. 本実施の形態におけるバックグランドリフレッシュを行うメモリシステムの概略説明図である。It is a schematic explanatory drawing of the memory system which performs background refresh in this Embodiment. バックグランドリフレッシュを制御するメモリコントローラの動作フローチャート図である。It is an operation | movement flowchart figure of the memory controller which controls background refresh. 本実施の形態におけるバックグランドリフレッシュと水平アクセスとの関係を示す図である。It is a figure which shows the relationship between the background refresh and horizontal access in this Embodiment. 本実施の形態におけるバックグランドリフレッシュと水平アクセス及び矩形アクセスとの関係を示す図である。It is a figure which shows the relationship between the background refresh in this Embodiment, a horizontal access, and a rectangular access. 本実施の形態におけるバックグランドリフレッシュの回数とブロック数を説明する図である。It is a figure explaining the frequency | count of background refresh and the number of blocks in this Embodiment. 本実施の形態におけるバックグランドリフレッシュの動作タイミングチャート図である。FIG. 10 is an operation timing chart of background refresh in the present embodiment. 本実施の形態におけるリフレッシュバースト長を説明する図である。It is a figure explaining the refresh burst length in this Embodiment. 本実施の形態におけるリフレッシュバースト長を説明する図である。It is a figure explaining the refresh burst length in this Embodiment. バックグランドリフレッシュ機能を有するメモリ装置の全体構成図である。1 is an overall configuration diagram of a memory device having a background refresh function. バックグランドリフレッシュ機能を有するメモリ装置のバンク構成図である。It is a bank block diagram of a memory device having a background refresh function. バックグランドリフレッシュ機能を有するメモリ装置のバンク構成図である。It is a bank block diagram of a memory device having a background refresh function. メモリ装置の他のバンク構成図である。It is another bank block diagram of a memory device. 本実施の形態におけるバックグランドリフレッシュ動作を説明する図である。It is a figure explaining the background refresh operation | movement in this Embodiment. 第1,第2のリフレッシュバンクデコーダの回路を示す図である。It is a figure which shows the circuit of the 1st, 2nd refresh bank decoder. 第3のリフレッシュバンクデコーダの回路を示す図である。It is a figure which shows the circuit of the 3rd refresh bank decoder. 第4のリフレッシュバンクデコーダの回路を示す図である。It is a figure which shows the circuit of a 4th refresh bank decoder. 第5のリフレッシュバンクデコーダの回路を示す図である。It is a figure which shows the circuit of the 5th refresh bank decoder. 第6のリフレッシュバンクデコーダの回路を示す図である。It is a figure which shows the circuit of a 6th refresh bank decoder. 第7のリフレッシュバンクデコーダの回路を示す図である。It is a figure which shows the circuit of the 7th refresh bank decoder. コア制御回路の構成図である。It is a block diagram of a core control circuit. コア制御回路の動作を示すタイミングチャート図である。It is a timing chart figure which shows operation | movement of a core control circuit. アドレスラッチ回路の構成と動作を示す図である。It is a figure which shows the structure and operation | movement of an address latch circuit. リフレッシュバースト動作を示すタイミングチャート図である。It is a timing chart figure which shows refresh burst operation. リフレッシュバースト動作を制御するコア制御回路の構成図である。It is a block diagram of the core control circuit which controls refresh burst operation. リフレッシュバースト動作を制御するコア制御回路の別の構成図である。It is another block diagram of the core control circuit which controls refresh burst operation. コア制御回路内のタイミングコントロール回路1190とリフレッシュコントロール回路1191の詳細回路図である。FIG. 11 is a detailed circuit diagram of a timing control circuit 1190 and a refresh control circuit 1191 in the core control circuit. コア制御回路内のタイミングコントロール回路1190とリフレッシュコントロール回路1191の別の詳細回路図である。FIG. 10 is another detailed circuit diagram of the timing control circuit 1190 and the refresh control circuit 1191 in the core control circuit. リフレッシュバースト長カウンタ1230,リフレッシュバースト長レジスタ1231,リフレッシュバースト終了検出回路1232の構成図である。12 is a configuration diagram of a refresh burst length counter 1230, a refresh burst length register 1231, and a refresh burst end detection circuit 1232. FIG. アドレスラッチ回路の構成図である。It is a block diagram of an address latch circuit. リフレッシュバースト動作のタイミングチャート図である。It is a timing chart figure of refresh burst operation. リフレッシュバースト停止動作の概略を示す図である。It is a figure which shows the outline of refresh burst stop operation | movement. リフレッシュバースト停止機能を有するコア制御回路の構成図である。It is a block diagram of a core control circuit having a refresh burst stop function. リフレッシュ状態コントロール回路の回路図である。It is a circuit diagram of a refresh state control circuit. コア制御回路のタイミングコントロール回路1190とリフレッシュコントロール回路1191の回路図である。3 is a circuit diagram of a timing control circuit 1190 and a refresh control circuit 1191 of a core control circuit. FIG. コア制御回路のタイミングコントロール回路1190とリフレッシュコントロール回路1191の別の回路図である。FIG. 10 is another circuit diagram of the timing control circuit 1190 and the refresh control circuit 1191 of the core control circuit. 図133の動作を示すタイミングチャート図である。It is a timing chart figure which shows the operation | movement of FIG. リフレッシュ停止機能を実現するコマンドデコーダの回路図である。It is a circuit diagram of the command decoder which implement | achieves a refresh stop function. カウントダウン型のリフレッシュバースト制御を行うコア制御回路1085の構成図である。It is a block diagram of the core control circuit 1085 which performs countdown type refresh burst control. リフレッシュバースト長レジスタ1231に設定されるリフレッシュバースト長と,アドレス端子A<3:0>との対応を示す真理値表である。10 is a truth table showing the correspondence between the refresh burst length set in the refresh burst length register 1231 and the address terminals A <3: 0>. カウントダウン型のリフレッシュバースト制御を行うコア制御回路1085の別の構成図である。It is another block diagram of the core control circuit 1085 which performs countdown type refresh burst control. コア制御回路1085内のタイミングコントロール回路1190とリフレッシュコントロール回路1191の回路図である。3 is a circuit diagram of a timing control circuit 1190 and a refresh control circuit 1191 in a core control circuit 1085. FIG. リフレッシュバースト長レジスタ1231とリフレッシュバースト長カウンタ1230の回路図である。12 is a circuit diagram of a refresh burst length register 1231 and a refresh burst length counter 1230. FIG. リフレッシュバースト長レジスタ1231とリフレッシュバースト長カウンタ1230の回路図である。12 is a circuit diagram of a refresh burst length register 1231 and a refresh burst length counter 1230. FIG. リフレッシュアドレスカウンタ1083とリフレッシュアドレス比較回路1370の回路図である。10 is a circuit diagram of a refresh address counter 1083 and a refresh address comparison circuit 1370. FIG. カウントダウン型のコア制御回路のRBL=3の場合のタイミングチャート図である。FIG. 6 is a timing chart when the countdown type core control circuit has RBL = 3. カウントダウン型のコア制御回路のリフレッシュ停止動作のタイミングチャート図である。6 is a timing chart of a refresh stop operation of a countdown type core control circuit. FIG. カウントダウン型のコア制御回路のリフレッシュ停止動作のタイミングチャート図である。6 is a timing chart of a refresh stop operation of a countdown type core control circuit. FIG. カウントダウン型のコア制御回路のリフレッシュオール動作を示すタイミングチャート図である。FIG. 6 is a timing chart illustrating a refresh all operation of a countdown type core control circuit. カウントダウン型のコア制御回路のリフレッシュコマンド再設定の動作を示すタイミングチャート図である。FIG. 10 is a timing chart illustrating an operation for resetting a refresh command of a countdown type core control circuit. カウントダウン型のコア制御回路のリフレッシュコマンド再設定の動作を示すタイミングチャート図である。FIG. 10 is a timing chart illustrating an operation for resetting a refresh command of a countdown type core control circuit. アクティブとリフレッシュ連動制御を示すタイミングチャート図である。It is a timing chart figure which shows active and refresh interlocking control. アクティブとリフレッシュ連動制御におけるリフレッシュバンクデコーダの回路図である。It is a circuit diagram of a refresh bank decoder in active and refresh interlocking control. アクティブとリフレッシュ連動制御におけるコア制御回路の回路図である。It is a circuit diagram of the core control circuit in active and refresh interlocking control. アクティブとリフレッシュ連動制御におけるアドレスラッチ回路の回路図である。It is a circuit diagram of an address latch circuit in active and refresh interlocking control. バンク回路の構成図である。It is a block diagram of a bank circuit. リフレッシュブロック数に応じたコア内のメモリブロックの制御を示す図である。It is a figure which shows control of the memory block in a core according to the number of refresh blocks. アドレスラッチ回路の回路図である。It is a circuit diagram of an address latch circuit. ロウデコーダ内のプリデコーダ回路の回路図である。It is a circuit diagram of a predecoder circuit in a row decoder. バックグランドリフレッシュ機能を有するメモリシステムの構成図である。It is a block diagram of a memory system having a background refresh function. メモリマッピング例を示す図である。It is a figure which shows the example of memory mapping. 水平アクセスと矩形アクセスにおける先頭画素アドレス,サイズ情報を示す図である。It is a figure which shows the head pixel address and size information in horizontal access and rectangular access. メモリコントローラの構成図である。It is a block diagram of a memory controller. メモリコントローラの動作タイミングチャート図である。It is an operation | movement timing chart figure of a memory controller. アクティブバンク番号生成部のデコーダDEC0とセレクタSEL0を説明する図表である。6 is a chart for explaining a decoder DEC0 and a selector SEL0 of an active bank number generation unit. レジスタ543のACTBAに設定されうる値000b〜111bの意味を説明する図表である。12 is a chart for explaining the meaning of values 000b to 111b that can be set in ACTBA of a register 543. デコーダDEC1の変換テーブルを示す図である。It is a figure which shows the conversion table of decoder DEC1. レジスタ設定値の第1例に対応するデコーダDEC1の変換動作を示す図表である。It is a chart which shows the conversion operation | movement of the decoder DEC1 corresponding to the 1st example of a register setting value. レジスタ設定値の第2例に対応するデコーダDEC1の変換動作を示す図表である。It is a chart which shows the conversion operation | movement of the decoder DEC1 corresponding to the 2nd example of a register setting value. セレクタSEL1の動作を示す図表である。7 is a chart showing an operation of a selector SEL1. デコーダDEC2の変換テーブルを示す図表である。It is a chart which shows the conversion table of decoder DEC2. 第1のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。It is a figure which shows operation | movement of the decoder DEC2 in the case of a 1st register setting value. 第2のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。It is a figure which shows operation | movement of the decoder DEC2 in the case of a 2nd register setting value. 第3のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。It is a figure which shows operation | movement of the decoder DEC2 in the case of a 3rd register setting value. 第4のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。It is a figure which shows operation | movement of the decoder DEC2 in the case of a 4th register setting value. バイトバウンダリにおけるスタートバイト信号SBを示す図である。It is a figure which shows the start byte signal SB in a byte boundary. バイト組み合わせデータの第2の情報BMRと第1の情報SB(スタートバイト)との関係を示す図である。It is a figure which shows the relationship between the 2nd information BMR of byte combination data, and 1st information SB (start byte). ロウアドレスステップRSを示す図である。It is a figure which shows row address step RS. メモリマッピング情報ARを示す図である。It is a figure which shows the memory mapping information AR. バックグランドリフレッシュにおけるリフレッシュバースト長RBLとリフレッシュブロック数RBCとを示す図である。It is a figure which shows refresh burst length RBL and refresh block number RBC in background refresh. メモリ装置内の専用入力端子とその入力バッファ及びモードレジスタの構成を示す図である。It is a figure which shows the structure of the exclusive input terminal in a memory device, its input buffer, and a mode register. メモリ装置内の専用入力端子とその入力バッファ及びモードレジスタの構成を示す図である。It is a figure which shows the structure of the exclusive input terminal in a memory device, its input buffer, and a mode register. モードレジスタの一例を示す図である。It is a figure which shows an example of a mode register. イネーブル信号生成回路の一例を示す図である。It is a figure which shows an example of an enable signal generation circuit. シングルデータレート(SDR)における入力方法を示す図である。It is a figure which shows the input method in a single data rate (SDR). ダブルデータレート(DDR)における入力方法を示す図である。It is a figure which shows the input method in a double data rate (DDR). ADQマルチプレクス入力方式における入力方法を示す図である。It is a figure which shows the input method in an ADQ multiplex input system. アドレスマルチプレクス入力方式における入力方法を示す図である。It is a figure which shows the input method in an address multiplex input system. ダブルデータレート(DDR)でアドレスマルチプレクス方式における入力方法を示す図である。It is a figure which shows the input method in an address multiplex system by a double data rate (DDR). ダブルデータレート(DDR)でアドレスマルチプレクス方式における入力方法を示す図である。It is a figure which shows the input method in an address multiplex system by a double data rate (DDR).

以下,図面にしたがって本発明の実施の形態について説明する。但し,本発明の技術的範囲はこれらの実施の形態に限定されず,特許請求の範囲に記載された事項とその均等物まで及ぶものである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to these embodiments, but extends to the matters described in the claims and equivalents thereof.

[画像メモリのメモリマッピングと問題点]
図1は,本実施の形態における画像メモリのメモリマッピングを示す図である。図1において,表示デバイス10を含む画像処理システムにおける表示画像データは,画像メモリ15内に記憶される。表示画像データは,各画素の輝度信号Yと色差信号Cb,Crや,各画素のRGB階調信号などのデータで構成され,各信号は例えば8ビット(1バイト)のデータで構成される。
[Memory mapping and problems of image memory]
FIG. 1 is a diagram showing memory mapping of the image memory in the present embodiment. In FIG. 1, display image data in an image processing system including the display device 10 is stored in an image memory 15. The display image data is composed of data such as a luminance signal Y and color difference signals Cb and Cr of each pixel and an RGB gradation signal of each pixel, and each signal is composed of, for example, 8-bit (1 byte) data.

一方,画像メモリ15は,一般的にSDRAMなどの半導体基板上に集積回路が形成された大容量且つ高速の半導体メモリ装置からなる。このような画像メモリは,複数のバンクBank0〜3(図1では4つのバンク)で構成され,各バンクBank0は複数のブロックBLK−0を有し,各ブロックは複数のワード線WLとビット線BLとその交差位置のメモリセルMCとを有する。メモリセルは,図示しないがワード線にゲートが接続されたMOSトランジスタとトランジスタに接続されたキャパシタとで構成される。そして,図1の例では,4つのバンクはバンクアドレスBA0−BA3に対応付けられ,ワード線はロウアドレスRA0−RA7に対応付けられ,ビット線はコラムアドレスCA0−CA127に対応付けられる。バンクアドレスBAとロウアドレスRAの組み合わせであるバンク内のワード線が選択され,コラムアドレスCAによりビット線が選択される。バンクアドレスBA,ロウアドレスRA,コラムアドレスCAにより,4バイトBY0−3のデータがアクセスされる。1バイトは8ビットで構成されるので,一回のアクセスで4バイト,つまり4×8=32ビットのデータがメモリの入出力端子に関連付けられて,読み出しまたは書き込みが行われる。一般に,上記の1バイトのデータ(8ビットデータ)が画素の信号に対応する。一度のアクセスで4バイトデータを入出力することで,画像メモリに対する単位時間に処理できる画素数を意味する帯域幅を大きくすることができる。   On the other hand, the image memory 15 is generally composed of a large-capacity and high-speed semiconductor memory device in which an integrated circuit is formed on a semiconductor substrate such as SDRAM. Such an image memory is composed of a plurality of banks Bank 0 to 3 (four banks in FIG. 1), each bank Bank 0 has a plurality of blocks BLK-0, and each block has a plurality of word lines WL and bit lines. It has BL and memory cell MC at the intersection. Although not shown, the memory cell includes a MOS transistor having a gate connected to a word line and a capacitor connected to the transistor. In the example of FIG. 1, four banks are associated with bank addresses BA0-BA3, word lines are associated with row addresses RA0-RA7, and bit lines are associated with column addresses CA0-CA127. A word line in the bank which is a combination of the bank address BA and the row address RA is selected, and a bit line is selected by the column address CA. The 4-byte data BY0-3 is accessed by the bank address BA, row address RA, and column address CA. Since one byte is composed of 8 bits, data of 4 bytes, that is, 4 × 8 = 32 bits, is read or written in association with the input / output terminal of the memory in one access. In general, the 1-byte data (8-bit data) corresponds to a pixel signal. By inputting / outputting 4-byte data in one access, the bandwidth, which means the number of pixels that can be processed per unit time for the image memory, can be increased.

表示画像データに対するメモリマッピング12によれば,バンクアドレスBAとロウアドレスRAにより特定されるページ領域14が行列に配置される。そして,1つのページ領域14は,拡大領域14Eに示されるとおり,コラムアドレスCA0−127で特定される128のメモリ単位領域を有し,各メモリ単位領域は4バイトBY0−3のデータを記憶する。この4バイトBY0−3のデータが,メモリの入出力端子DQ0−7,DQ8−15,DQ16−23,DQ24−31の,合計32の入出力端子を経由して入出力される。この各バイトの8ビットデータが画素の信号データに対応する。   According to the memory mapping 12 for the display image data, the page area 14 specified by the bank address BA and the row address RA is arranged in a matrix. One page area 14 has 128 memory unit areas specified by column addresses CA0-127 as shown in the enlarged area 14E, and each memory unit area stores 4-byte data BY0-3. . The 4-byte data BY0-3 is input / output via a total of 32 input / output terminals, ie, memory input / output terminals DQ0-7, DQ8-15, DQ16-23, and DQ24-31. The 8-bit data of each byte corresponds to the pixel signal data.

上記のメモリマッピング12は,複数バンク構成のSDRAMなどの画像メモリ15を高速動作させるのに適している。SDRAMは,バンクアドレスBAとロウアドレスRAと共に与えられるアクティブコマンドに応答して,選択されたバンク内の選択されたワード線を駆動し,メモリセルのデータをビット線に読み出し,ビット線に対応付けられたセンスアンプを活性化してビット線電位を増幅するアクティブ動作を行い,その後,コラムアドレスCAと共に与えられるリードコマンドに応答して,選択されたビット線からデータを読み出すリード動作を行う。あるいは,SDRAMは,アクティブ動作後に,コラムアドレスCAと書き込みデータと共に与えられるライトコマンドに応答して,選択されたビット線に書き込みデータを書き込むライト動作を行う。リード動作またはライト動作の後にプリチャージコマンドによるプリチャージ動作が行われ,再度,アクティブ動作,リードまたはライト動作になる。このように,SDRAMでは,各バンクが独立してアクティブ動作,リード動作,ライト動作を行うことができる。   The memory mapping 12 is suitable for operating the image memory 15 such as SDRAM having a plurality of banks at high speed. The SDRAM drives the selected word line in the selected bank in response to an active command given together with the bank address BA and the row address RA, reads the memory cell data to the bit line, and associates it with the bit line. An active operation for activating the sense amplifier and amplifying the bit line potential is performed, and then a read operation for reading data from the selected bit line is performed in response to a read command given together with the column address CA. Alternatively, the SDRAM performs a write operation for writing the write data to the selected bit line in response to a write command given together with the column address CA and the write data after the active operation. After the read operation or write operation, a precharge operation by a precharge command is performed, and the active operation, read operation, or write operation is performed again. As described above, in the SDRAM, each bank can independently perform an active operation, a read operation, and a write operation.

図1のメモリマッピング12によれば,上下左右に隣接するページ領域14には異なるバンクアドレスBA0−3が対応付けられる。すなわち,メモリマッピング12の奇数行にはバンクアドレスBA0,1が交互に配置され,偶数行にはバンクアドレスBA2,3が交互に配置される。さらに,メモリマッピング12のラスタ方向(行方向)に,ロウアドレスRA0−7が2つずつ繰り返しながらインクリメントされ,メモリマッピング12の各行は,4つのロウアドレスRA0−3,RA4−7で折り返されている。   According to the memory mapping 12 of FIG. 1, different bank addresses BA0-3 are associated with page areas 14 that are adjacent vertically and horizontally. That is, bank addresses BA0, 1 are alternately arranged in odd rows of the memory mapping 12, and bank addresses BA2, 3 are alternately arranged in even rows. Further, in the raster direction (row direction) of the memory mapping 12, the row address RA0-7 is incremented while being repeated two by two, and each row of the memory mapping 12 is folded at four row addresses RA0-3 and RA4-7. Yes.

このように画像上のページ領域を,メモリ上において,同一バンクのページ領域がロウ方向とコラム方向のいずれにも隣接しないように割り当てるメモリマッピングを採用すれば,画像メモリへの代表的なアクセスである水平アクセス,つまりページ領域14を行方向に移動して選択するアクセスでは,2つのバンクで同時にアクティブ動作とリード・ライト動作とを実行させながらアクセスすることができ,アクセス効率を高めることができる。また,垂直方向にアクセスする場合も同様である。   In this way, if memory mapping is used in which the page area on the image is allocated so that the page area of the same bank is not adjacent in either the row direction or the column direction on the memory, a typical access to the image memory is possible. In a certain horizontal access, that is, an access in which the page area 14 is moved and selected in the row direction, the access can be performed while simultaneously executing the active operation and the read / write operation in two banks, and the access efficiency can be improved. . The same applies to access in the vertical direction.

図2は,画像メモリにおける2つのアクセスを示す図である。図2(A)の水平アクセスは,映像のフレーム画像の入出力時に多く発生するアクセスであり,画像を左上から右下に向けて水平方向20にアクセスするラスタスキャンに相当する。一方,図2(B)の矩形アクセスは,MPEGなどの画像の圧縮と伸長処理で多く発生するアクセスで,任意の縦横比の矩形22内を左上から右下に向けて矢印24のようにアクセスする動作に相当する。矩形領域22は,MPEGの動きベクトル抽出対象のブロックなどに対応する。   FIG. 2 is a diagram showing two accesses in the image memory. The horizontal access shown in FIG. 2A is an access that frequently occurs when inputting and outputting a video frame image, and corresponds to a raster scan in which the image is accessed in the horizontal direction 20 from the upper left to the lower right. On the other hand, the rectangular access in FIG. 2B is an access that frequently occurs in image compression and decompression processing such as MPEG, and is accessed as indicated by the arrow 24 from the upper left to the lower right in the rectangle 22 having an arbitrary aspect ratio. It corresponds to the operation. The rectangular area 22 corresponds to an MPEG motion vector extraction target block or the like.

一般に,画像メモリを使用する画像システムでは,フレームメモリである画像メモリの転送レートが画面表示動作よりも速く設定され,画像メモリの水平アクセスで読み出された画像データを画面表示している間に,矩形アクセスにより新しいフレームデータを作成し,とぎれることなくフレームデータの作成とフレームデータの出力とが行えるようになっている。このため,実際の画像システムでは水平アクセスと矩形アクセスとが混在することになる。   In general, in an image system using an image memory, the transfer rate of the image memory, which is a frame memory, is set faster than the screen display operation, and image data read out by horizontal access of the image memory is displayed on the screen. New frame data is created by rectangular access, and frame data can be created and output without interruption. For this reason, in an actual image system, horizontal access and rectangular access are mixed.

水平アクセスでは,水平方向20にスキャンされるので,隣接するバンクを同時にアクティブさせながら効率的にメモリアクセスを行うことができる。一方,矩形アクセスでは,アクセスされる矩形領域22の位置を,単一のバンクを越えないようにし,更にバンク内のページ領域を超えないようにすることで,バンクアドレスBAとロウアドレスRAとを指定する1回のアクティブ動作で矩形領域22内のデータをアクセスできるので,水平アクセスと同様に効率的なメモリアクセスを行うことができる。   In the horizontal access, since scanning is performed in the horizontal direction 20, memory access can be efficiently performed while simultaneously activating adjacent banks. On the other hand, in the rectangular access, the bank address BA and the row address RA are obtained by preventing the position of the accessed rectangular area 22 from exceeding a single bank and further from exceeding the page area in the bank. Since the data in the rectangular area 22 can be accessed by one designated active operation, efficient memory access can be performed in the same way as horizontal access.

図3は,水平アクセスの課題を示す図である。前述のメモリマップ12において水平方向20にアクセスする水平アクセスのタイミングチャート30が示されている。このタイミングチャートでは,メモリマップ12の4行目のページ領域(BA0/RA4,BA1/RA4,BA0/RA5,BA1/RA5)を水平アクセス(図中20)している時に,自動リフレッシュコマンドAREFが発生している。タイミングチャート30には,コマンドCMD,クロックCLK,バンクアドレスBA,ロウアドレスRA,コラムアドレスCA,入出力端子DQが示されている。   FIG. 3 is a diagram illustrating a problem of horizontal access. A horizontal access timing chart 30 for accessing the horizontal direction 20 in the memory map 12 is shown. In this timing chart, when the page area (BA0 / RA4, BA1 / RA4, BA0 / RA5, BA1 / RA5) in the fourth row of the memory map 12 is accessed horizontally (20 in the figure), the automatic refresh command AREF is It has occurred. The timing chart 30 shows a command CMD, a clock CLK, a bank address BA, a row address RA, a column address CA, and an input / output terminal DQ.

前提としてバーストレングスBLは4に設定されている。アクティブコマンドACT32でBA0/RA4のページ領域がアクティブ動作し,リードコマンドRD33でBA0/CA0の読み出しが指示されると,所定のレイテンシ(図中では4クロック)後に4組の32ビットデータが入出力端子DQから4クロックサイクルで連続して出力される。つまり,ページ領域BA0/RA4内のコラムアドレスCA0〜CA3における4組の32ビットデータが4回に分けて連続出力される。このバースト動作は,SDRAMが規格上要求されている動作である。図1の拡大されたページ領域14EのコラムアドレスCA0〜CA3の各4バイト(32ビット)データが4回に分けて連続出力されることを意味する。   As a premise, the burst length BL is set to 4. When the page area of BA0 / RA4 is activated by the active command ACT32 and reading of BA0 / CA0 is instructed by the read command RD33, four sets of 32-bit data are input / output after a predetermined latency (4 clocks in the figure). It is continuously output from the terminal DQ in 4 clock cycles. That is, four sets of 32-bit data at column addresses CA0 to CA3 in the page area BA0 / RA4 are continuously output in four steps. This burst operation is an operation in which SDRAM is required by the standard. This means that each 4-byte (32-bit) data of the column addresses CA0 to CA3 in the enlarged page area 14E in FIG.

次に,アクティブコマンドACT34とリードコマンドRD35で,ページ領域BA1/RA4の4バイトデータが出力される。同様に,アクティブコマンドACT36とリードコマンドRD37で,ページ領域BA0/RA5の4バイトデータが,アクティブコマンドACT38とリードコマンドRD39で,ページ領域BA1/RA5の4バイトデータがそれぞれ出力される。   Next, 4-byte data of the page area BA1 / RA4 is output by the active command ACT34 and the read command RD35. Similarly, 4-byte data of page area BA0 / RA5 is output by active command ACT36 and read command RD37, and 4-byte data of page area BA1 / RA5 is output by active command ACT38 and read command RD39, respectively.

この時点で,ロウアドレスRA6を指定する自動リフレッシュコマンドAREF40が発生すると,画像メモリを構成するSDRAMメモリは,内蔵する全てのバンク,4バンクBA0−3でリフレッシュ動作を並列に実行する。つまり,4バンク内のロウアドレスRA6のワード線が同時に駆動され,センスアンプが活性化され,再書き込みが行われ,プリチャージ動作が行われる。このリフレッシュ動作は,図3中のメモリマップ12中の4つのページ領域31に対して行われることを意味する。そのため,リフレッシュ動作期間tREFの間,水平アクセス(矢印20)は一時的に停止する。そして,リフレッシュ動作期間tREF後に,再度アクティブコマンドACT41とリードコマンドRD(図示せず)により次のページ領域BA0/RA6をアクセスすることで,水平アクセスを再開する。   At this time, when an automatic refresh command AREF 40 for designating the row address RA6 is generated, the SDRAM memory constituting the image memory executes the refresh operation in parallel in all the built-in banks, the four banks BA0-3. That is, the word lines of the row address RA6 in the four banks are simultaneously driven, the sense amplifier is activated, rewriting is performed, and a precharge operation is performed. This refresh operation means that the four page areas 31 in the memory map 12 in FIG. 3 are performed. Therefore, the horizontal access (arrow 20) is temporarily stopped during the refresh operation period tREF. Then, after the refresh operation period tREF, the horizontal access is resumed by accessing the next page area BA0 / RA6 again with the active command ACT41 and the read command RD (not shown).

自動リフレッシュコマンドAREFによるリフレッシュ動作が4バンク同時に行われるので,水平アクセス中にリフレッシュコマンドが発生すると水平アクセスが一時的に中断することになり,実効的な帯域幅が狭くなる。これが,水平アクセスにおける課題である。   Since the refresh operation by the automatic refresh command AREF is performed at the same time for four banks, if a refresh command is generated during horizontal access, the horizontal access is temporarily interrupted and the effective bandwidth is narrowed. This is a problem in horizontal access.

図4は,矩形アクセスの第1の課題を示す図である。図4(A)に水平アクセスの例が,図4(B)に矩形アクセスの例が示される。いずれもコラムアドレスCAで選択されるメモリ単位領域(4バイト領域)45の境界を越えるアクセスである。前述したとおり,一般的なメモリマップによれば,バンクアドレスBAとロウアドレスRAで特定されるページ領域14内は,コラムアドレスCA0−127で選択される複数のメモリ単位領域45に区分され,1つのコラムアドレスCAにより4バイトBY0−3のデータが同時にアクセスされる。各バイトの8ビットデータが画素の信号に対応する。   FIG. 4 is a diagram illustrating a first problem of rectangular access. FIG. 4A shows an example of horizontal access, and FIG. 4B shows an example of rectangular access. In either case, the access exceeds the boundary of the memory unit area (4-byte area) 45 selected by the column address CA. As described above, according to a general memory map, the page area 14 specified by the bank address BA and the row address RA is divided into a plurality of memory unit areas 45 selected by the column addresses CA0-127. Data of 4 bytes BY0-3 are simultaneously accessed by two column addresses CA. The 8-bit data of each byte corresponds to the pixel signal.

そのため,水平アクセスでは比較的無駄なくアクセスが行われるが,矩形アクセスでは無駄なデータの入出力が発生し,実効的な帯域幅が低下する。   For this reason, access is performed with relatively little waste in horizontal access, but wasteful data input / output occurs in rectangular access, and the effective bandwidth is reduced.

図4(A)の水平アクセスでは,領域22Aをアクセスする場合,ページ領域BA0/RA0を指定するアクティブコマンドACTに続いて,4つのリードコマンドRDがコラムアドレスCA0−3について発行され,コラムアドレスCA0−3それぞれの4バイトデータBY0−3が連続して入出力される。この場合,領域22Aは,コラムアドレスCA0のバイトBY2,3からコラムアドレスCA3のバイトBY0,1までを含むので,コラムアドレスCA0に対応する4バイトの入出力DQのうち,バイトBY0,1のデータは必要なく,コラムアドレスCA3に対応する4バイトの入出力DQのうち,バイトBY2,3のデータも必要ない。よって,有効出力データは,12バイト/16バイトである。   In the horizontal access shown in FIG. 4A, when the area 22A is accessed, four read commands RD are issued for the column address CA0-3 following the active command ACT designating the page area BA0 / RA0, and the column address CA0. -3, 4-byte data BY0-3 is input / output continuously. In this case, since the area 22A includes the bytes BY2 and 3 of the column address CA0 to the bytes BY0 and 1 of the column address CA3, the data of the bytes BY0 and 1 of the 4-byte input / output DQ corresponding to the column address CA0. Is not required, and the data of bytes BY2 and 3 among the 4-byte input / output DQ corresponding to the column address CA3 is not required. Therefore, the valid output data is 12 bytes / 16 bytes.

これに対して,図4(B)の矩形アクセスでは,矩形領域22Bをアクセスする場合,ページ領域BA0/RA0を指定するアクティブコマンドACTに続いて,6つのリードコマンドRDがコラムアドレスCA0,1,4,5,8,9について発行され,それらのコラムアドレスCA0,1,4,5,8,9それぞれの4バイトデータBY0−3が連続して入出力される。しかし,矩形領域22Bがコラムアドレスで選択されるメモリ単位領域(4バイト領域)45の境界と一致せず且つ4バイト領域の境界を越えているので,各4バイトデータBY0−3のうちそれぞれ半分は必要のないデータになる。つまり,有効出力データは,12バイト/24バイトである。図4(B)はワーストケースを示している。   On the other hand, in the rectangular access shown in FIG. 4B, when the rectangular area 22B is accessed, the six read commands RD are added to the column addresses CA0, 1, following the active command ACT specifying the page area BA0 / RA0. 4, 5, 8, 9 are issued, and 4-byte data BY 0-3 of the column addresses CA 0, 1, 4, 5, 8, 9 is input / output continuously. However, since the rectangular area 22B does not coincide with the boundary of the memory unit area (4-byte area) 45 selected by the column address and exceeds the boundary of the 4-byte area, each of the 4-byte data BY0-3 is half. Becomes unnecessary data. That is, valid output data is 12 bytes / 24 bytes. FIG. 4B shows the worst case.

このように,同じバイト数のデータであっても,上記の矩形アクセスは,6回のリードコマンドRDにより24バイトのデータを入出力する必要があるが,水平アクセスでは,4回のリードコマンドRDにより16バイトのデータを入出力すれば良い。よって,1つのコラムアドレスで選択される4バイト領域(メモリ単位領域)45の境界を越える矩形領域のアクセスは,実効的な帯域幅が低下する。これが,矩形アクセスの第1の課題である。   As described above, even in the case of data of the same number of bytes, the above rectangular access needs to input / output 24 bytes of data by six read commands RD, but in horizontal access, four read commands RD. Therefore, 16 bytes of data may be input / output. Therefore, an effective bandwidth decreases when accessing a rectangular area exceeding the boundary of the 4-byte area (memory unit area) 45 selected by one column address. This is the first problem of rectangular access.

図5は,矩形アクセスの第2の課題を示す図である。矩形アクセスは,任意の矩形領域に対するアクセスであり,矩形領域が隣接するページ領域14の境界14BOUを越える場合がある。図5には,矩形領域22(A)が同じページ領域BA1/RA6内の16バイト領域の場合と,矩形領域22(B)が4つの隣接するページ領域BA3/RA2,BA2/RA3,BA1/RA6,BA0/RA7にまたがる16バイト領域の場合とが示されている。   FIG. 5 is a diagram illustrating a second problem of rectangular access. The rectangular access is an access to an arbitrary rectangular area, and the rectangular area may exceed the boundary 14BOU of the adjacent page area 14. In FIG. 5, the rectangular area 22 (A) is a 16-byte area in the same page area BA1 / RA6, and the rectangular area 22 (B) is four adjacent page areas BA3 / RA2, BA2 / RA3, BA1 /. A case of a 16-byte area extending over RA6, BA0 / RA7 is shown.

矩形領域22(A)の場合は,タイミングチャートに示されるとおり,ページ領域BA1/RA6についての1回のアクティブコマンドACT(図中50)と,コラムアドレスCA6,7,10,11についての4回のリードコマンドRD(図中52)を発行すれば,16バイトのデータを入出力できる。   In the case of the rectangular area 22 (A), as shown in the timing chart, one active command ACT (50 in the figure) for the page area BA1 / RA6 and four times for the column addresses CA6, 7, 10, 11 are shown. 16 bytes of data can be input / output by issuing a read command RD (52 in the figure).

一方,矩形領域22(B)の場合は,タイミングチャートに示されるとおり,ページ領域BA3/RA2,BA2/RA3,BA1/RA6,BA0/RA7についての4回のアクティブコマンドACT(図中54)と,コラムアドレスCA127(BA3),CA124(BA2),CA3(BA1),CA0(BA0)についての4回のリードコマンドRD(図中56)を発行しなければ,16バイトのデータを入出力できない。つまり,矩形領域22が隣接するページ領域を含む場合は,異なるバンクをアクティブ動作させるために,複数回のアクティブコマンドACTを発行し,それぞれのバンク内のコラムアドレスでリードRDまたはライトコマンドWRを発行しなければならない。よって,単位時間当たりにアクセスできるデータ量が減り,実効的な帯域幅が狭くなる。   On the other hand, in the case of the rectangular area 22 (B), as shown in the timing chart, four active commands ACT (54 in the figure) for the page areas BA3 / RA2, BA2 / RA3, BA1 / RA6, BA0 / RA7 and 16-byte data cannot be input / output unless four read commands RD (56 in the figure) are issued for column addresses CA127 (BA3), CA124 (BA2), CA3 (BA1), and CA0 (BA0). That is, when the rectangular area 22 includes adjacent page areas, the active command ACT is issued a plurality of times to activate different banks, and the read RD or write command WR is issued with the column address in each bank. Must. Therefore, the amount of data that can be accessed per unit time is reduced, and the effective bandwidth is reduced.

図5の矩形領域22(B)が,コラムアドレスで選択されるメモリ単位領域(4バイト領域)の途中で区画される場合は,図4で示した第1の課題も同時に有することになり,複数回のアクティブコマンドを必要とすることに加えて(第2の課題),リードコマンドに対する入出力データDQ内に不必要なデータが含まれる(第1の課題)ことになり,より一層,実効的な帯域幅の低下を招く。   When the rectangular area 22 (B) in FIG. 5 is partitioned in the middle of the memory unit area (4-byte area) selected by the column address, the first problem shown in FIG. In addition to requiring multiple active commands (second problem), unnecessary data is included in the input / output data DQ for the read command (first problem). Resulting in lower bandwidth.

以上のとおり,画像メモリにおいてSDRAMの構造上の特性を利用したメモリマッピングを採用した場合,第1に水平アクセス中のリフレッシュコマンドの発生でアクセスが中断するという課題,第2に矩形アクセス領域がコラムアドレスで選択されるメモリ単位領域(4バイト領域)の境界を越える場合に入出力データに無駄が生じるという課題,第3に矩形アクセス領域がバンクアドレスで特定されるページ領域の境界を越える場合に複数のバンクアクティブコマンドを発行する必要が生じるという課題などを有する。   As described above, when memory mapping utilizing the structural characteristics of the SDRAM is adopted in the image memory, the first problem is that access is interrupted by the occurrence of a refresh command during horizontal access, and the second is that the rectangular access area is a column. The problem that input / output data is wasted when the boundary of the memory unit area (4-byte area) selected by the address is exceeded. Third, when the rectangular access area exceeds the boundary of the page area specified by the bank address There is a problem that it is necessary to issue a plurality of bank active commands.

[本実施の形態の概略説明]
以下は,それらの課題を解決する構成と動作について概略的に説明する。
[Overview of this embodiment]
Below, the structure and operation | movement which solves those subjects are demonstrated roughly.

本実施の形態では,リフレッシュ動作に起因するアクセスの中断,矩形アクセスによるアクセス効率の低下などを解決するものであり,第1に,水平アクセス時にはアクセス動作と平行してバックグランドでリフレッシュ動作を可能にし,第2に矩形アクセス時にコラムアドレスで選択されるメモリ単位領域(4バイト領域)とずれた領域またはメモリ単位領域を超える領域へのアクセスを効率的に行う機能を可能にし,さらに第3に矩形アクセス時にページ領域の境界を越えて複数のページ領域を含む矩形領域へのアクセスを効率的に行う機能を可能にする。   In this embodiment, access interruption caused by refresh operation and access efficiency decrease due to rectangular access are solved. First, refresh operation can be performed in the background in parallel with access operation during horizontal access. Second, it enables a function to efficiently access an area shifted from the memory unit area (4-byte area) selected by the column address at the time of rectangular access or an area exceeding the memory unit area. This enables a function for efficiently accessing a rectangular area including a plurality of page areas across the boundary of the page area at the time of rectangular access.

図6は,本実施の形態における全体の動作を示す図である。前述したとおり,画像メモリを利用する画像システムでは,画像メモリへの水平アクセスと矩形アクセスとが混在して発生する。図6の例は,メモリマップ12の1行目のバンクアドレスBA0,BA1のページ領域に対する水平アクセス20−1と,2行目のページ領域BA2/RA2に対する矩形アクセス22と,2行目のバンクアドレスBA2,BA3のページ領域に対する水平アクセス20−2とが順番に発生する例である。矩形アクセス22では,1つのページ領域BA2/RA2内のメモリ単位領域(4バイト領域)45の境界を越えた矩形領域に対してアクセスが行われている。   FIG. 6 is a diagram showing the overall operation in the present embodiment. As described above, in an image system using an image memory, horizontal access and rectangular access to the image memory occur together. In the example of FIG. 6, the horizontal access 20-1 for the page area of the bank address BA0, BA1 in the first row of the memory map 12, the rectangular access 22 for the page area BA2 / RA2 in the second row, and the bank in the second row. This is an example in which horizontal access 20-2 to the page areas of addresses BA2 and BA3 occurs in order. In the rectangular access 22, an access is made to a rectangular area that exceeds the boundary of the memory unit area (4-byte area) 45 in one page area BA2 / RA2.

この場合,矩形アクセスでは,メモリの任意のバンクにアクセスが発生するが,水平アクセスでは,ある一定期間は決められたバンクにしかアクセスが発生しない。例えば,メモリマップ12内の1行目の水平アクセス中は,バンクBA0,1にしかアクセスが発生せず,2行目のバンクBA2,3にはアクセスは発生しない。逆に,2行目の水平アクセス中は,バンクBA2,3にしかアクセスが発生せず,1行目のバンクBA0,1にはアクセスは発生しない。   In this case, in the rectangular access, an access is made to an arbitrary bank of the memory, but in the horizontal access, the access is made only to a predetermined bank for a certain period. For example, during the horizontal access of the first row in the memory map 12, only the bank BA0, 1 is accessed, and the bank BA2, 3 of the second row is not accessed. Conversely, during horizontal access on the second row, access occurs only in the banks BA2 and BA3, and access does not occur in the banks BA0 and BA1 on the first row.

そこで,水平アクセス20−1において,メモリアクセスに入る前に,今後しばらくアクセスが発生しないバンクを指定するバックグランド・リフレッシュコマンドBRENを発行して,アクセスが発生しないバンク情報SA=2/3をメモリに通知する。つまり,バックグランド・リフレッシュコマンドBRENで指定されたバンクSAには,その後の自動リフレッシュ動作を許可する。よって,リフレッシュ動作を指定されたバンクSA=2,3への通常アクセスは禁止される。   Therefore, in the horizontal access 20-1, before entering the memory access, a background refresh command BREN for designating a bank that will not be accessed for a while will be issued, and bank information SA = 2/3 that will not be accessed is stored in the memory. Notify That is, a subsequent automatic refresh operation is permitted to the bank SA designated by the background refresh command BREN. Therefore, normal access to the banks SA = 2 and 3 designated for the refresh operation is prohibited.

図6の水平アクセス20−1では,バックグランド・リフレッシュコマンドBREN(図中60)と共にその後のリフレッシュ動作を許可するリフレッシュバンク情報SA(図中61)が発行され,その後,アクティブコマンドACTでページ領域BA0/RA0がアクティブ動作され,リードコマンドRD(BA0,CA0)でコラムアドレスCA0の4バイトデータBY0−3が入出力端子DQに出力される。同様に,アクティブコマンドACTでページ領域BA1/RA0がアクティブ動作され,リードコマンドRD(BA1,CA0)でコラムアドレスCA0の4バイトデータBY0−3が入出力端子DQに出力される。但し,図6では,BL=4に対応する4組の4バイトデータの出力は省略されている。   In the horizontal access 20-1 in FIG. 6, refresh bank information SA (61 in the figure) for permitting the subsequent refresh operation is issued together with the background refresh command BREN (60 in the figure), and then the page area by the active command ACT. BA0 / RA0 is activated and 4-byte data BY0-3 of column address CA0 is output to input / output terminal DQ by read command RD (BA0, CA0). Similarly, page area BA1 / RA0 is activated by active command ACT, and 4-byte data BY0-3 of column address CA0 is output to input / output terminal DQ by read command RD (BA1, CA0). However, in FIG. 6, the output of four sets of 4-byte data corresponding to BL = 4 is omitted.

この水平アクセス20−1の期間内において,画像メモリ内でバックグランドリフレッシュコマンドBRENにより起動される自動リフレッシュリクエスト(図示せず)が発行されると,バンクBA2,3に対するリフレッシュ動作が開始される。しかし,水平アクセスは,バンクBA0,1に対するアクセスしか発生せず,且つSDRAMでは異なるバンクは独立してアクティブ動作可能であるので,バンクBA2,3でのリフレッシュ動作により水平アクセスがディスターブされて中断することはない。   When an automatic refresh request (not shown) activated by a background refresh command BREN is issued in the image memory during the horizontal access 20-1, the refresh operation for the banks BA2 and BA3 is started. However, the horizontal access only causes access to the banks BA0 and BA1, and different banks can be independently activated in the SDRAM, so the horizontal access is disturbed and interrupted by the refresh operation in the banks BA2 and BA3. There is nothing.

次に,図6の矩形アクセスでは,矩形領域22が同じページ領域BA2/RA2内であって,コラムアドレスCA0内の後半の2バイトBY2,3と,コラムアドレスCA1の前半の2バイトBY0,1とを含んでいる。この場合,SDRAMの一般的なリードコマンドによれば,コラムアドレスCA0,1に対して2回のリードコマンドRDを発行する必要がある。   Next, in the rectangular access of FIG. 6, the rectangular area 22 is in the same page area BA2 / RA2, and the latter two bytes BY2, 3 in the column address CA0 and the first two bytes BY0, 1 in the column address CA1. Including. In this case, according to a general read command of SDRAM, it is necessary to issue two read commands RD to the column addresses CA0, CA1.

しかし,本実施の形態では,コラムアドレスCA0(図中63)に対するリードコマンドRD(図中62)を発行し,そのアクセスでのバイト組み合わせ情報SB(図中64)を供給することで,バイト組み合わせ情報SBに対応する4バイトを自動的に入出力端子DQに対応付けることができる。上記の例では,バイト組み合わせ情報SBとして,2バイトシフトするバイトシフト情報SB=2を指定することで,コラムアドレスCA0の4バイトデータのうち2バイトシフトしたバイトBY2,3のデータと,その隣のコラムアドレスCA1の4バイトデータのうち最初の2バイトのバイトBY0,1のデータとを自動的に出力する。   However, in this embodiment, by issuing a read command RD (62 in the figure) for the column address CA0 (63 in the figure) and supplying byte combination information SB (64 in the figure) for the access, the byte combination Four bytes corresponding to the information SB can be automatically associated with the input / output terminal DQ. In the above example, by specifying byte shift information SB = 2 to be shifted by 2 bytes as the byte combination information SB, among the 4 byte data of the column address CA0, the data of bytes BY2 and 3 shifted by 2 bytes and the adjacent data Of the 4-byte data at the column address CA1, the first 2-byte bytes BY0, 1 are automatically output.

図6の矩形アクセスでは,ページ領域BA2/RA2に対するアクティブコマンドACTに続いて,BA2/CA0(図中63)を指定するリードコマンドRD62がバイト組み合わせ情報SB=2(図中64)と共に発行される。このバイト組み合わせ情報SB=2は,4バイト領域内の2バイトシフトしたバイトBY2から4バイトのデータの組み合わせを意味している。あるいは,このバイト組み合わせ情報SB=2は,4バイト領域内の最初のバイト位置(スタートバイト)がBY2であることを意味している。これに応答して,画像メモリは,コラムアドレスCA0の4バイトデータのうち,2バイトシフトした(またはスタートバイトBY2からの)バイトBY2,3のデータと,コラムアドレスCA1のバイトデータBY0,1のデータとを4バイトの入出力端子DQに対応させて出力する。メモリコントローラは,コラムアドレスCA0,1に対するリードコマンドRDを2回発行する必要はない。しかも,4バイトの入出力端子DQには全て必要なデータのみが出力され,不必要なデータは出力されずアクセス効率が高くなる。   In the rectangular access in FIG. 6, following the active command ACT for the page area BA2 / RA2, a read command RD62 designating BA2 / CA0 (63 in the figure) is issued together with the byte combination information SB = 2 (64 in the figure). . This byte combination information SB = 2 means a combination of 4-byte data from the byte BY2 shifted by 2 bytes in the 4-byte area. Alternatively, this byte combination information SB = 2 means that the first byte position (start byte) in the 4-byte area is BY2. In response to this, the image memory stores the data of the bytes BY2 and 3 shifted by 2 bytes (or from the start byte BY2) and the byte data BY0 and 1 of the column address CA1 among the 4-byte data of the column address CA0. Data is output in correspondence with the 4-byte input / output terminal DQ. The memory controller does not need to issue the read command RD for the column addresses CA0, CA twice. Moreover, only necessary data is output to the 4-byte input / output terminals DQ, and unnecessary data is not output, resulting in high access efficiency.

更に,画像メモリは,BA2/CA4を指定するリードコマンドRDが組み合わせ情報SB=2と共に発行されると,コラムアドレスCA4,5内それぞれ2バイトからなる4バイトデータを出力し,BA2/CA8を指定するリードコマンドRDが組み合わせ情報SB=2と共に発行されると,コラムアドレスCA8,9内それぞれ2バイトからなる4バイトデータを出力し,BA2/CA12を指定するリードコマンドRDが組み合わせ情報SB=2と共に発行されると,コラムアドレスCA12,13内それぞれ2バイトからなる4バイトデータを出力する。   Further, when the read command RD for specifying BA2 / CA4 is issued together with the combination information SB = 2, the image memory outputs 4-byte data consisting of 2 bytes in the column addresses CA4 and 5 and specifies BA2 / CA8. When the read command RD to be issued is issued together with the combination information SB = 2, 4-byte data consisting of 2 bytes each in the column addresses CA8 and 9 is output, and the read command RD for specifying BA2 / CA12 is output together with the combination information SB = 2 When issued, 4-byte data consisting of 2 bytes each in the column addresses CA12 and CA13 is output.

その結果,矩形アクセス領域22が8つのコラムアドレスCA0,1,4,5,8,9,12,13のメモリ単位領域(4バイト領域)を含んでいても,リードコマンドRDは,コラムアドレスCA0,4,8,12に対して4回発行するだけでよく,且つ,入出力端子には不必要なデータの出力はなく,アクセス効率を2倍に高めることができる。   As a result, even if the rectangular access area 22 includes the memory unit areas (4-byte areas) of the eight column addresses CA0, 1, 4, 5, 8, 9, 12, and 13, the read command RD receives the column address CA0. , 4, 8, and 12 are only required to be issued four times, and there is no unnecessary data output at the input / output terminals, and the access efficiency can be doubled.

矩形アクセス後の水平アクセス20−2では,メモリマップ12の2行目のページ領域へのアクセスであるので,当分の間はバンクBA0,1への通常アクセスは発生しない。そこで,前述と同様に,バックグランド・リフレッシュコマンドBREN(図中65)と共にリフレッシュ動作を許可するバンク情報SA(図中66)としてSA=0/1が指定され,その後のバンクBA2,3への通常アクセスに平行して,バンクBA0,1への自動リフレッシュ動作が許可される。   Since the horizontal access 20-2 after the rectangular access is an access to the page area of the second row of the memory map 12, the normal access to the banks BA0 and BA1 does not occur for the time being. Therefore, similarly to the above, SA = 0/1 is designated as the bank information SA (66 in the figure) permitting the refresh operation together with the background refresh command BREN (65 in the figure), and the subsequent bank BA2 and 3 are transferred to the banks BA2 and BA3. In parallel with the normal access, an automatic refresh operation to the banks BA0 and BA1 is permitted.

以上のとおり,水平アクセス20−1,20−2では,通常アクセス中にバックグランドでの自動リフレッシュを許可し,矩形アクセスではバックグランドでの自動リフレッシュを許可しない。その結果,水平アクセス20−1では,バンクBA0,1で通常アクセス動作,バンクBA2,3でリフレッシュ動作が平行して可能になり,水平アクセス20−2では,バンクBA2,3で通常アクセス動作,バンクBA0,1でリフレッシュ動作が平行して可能になる。これにより,リフレッシュ動作による水平アクセスのディスターブを回避することができ,実効的な帯域幅の低下を抑えることができる。   As described above, in the horizontal accesses 20-1 and 20-2, automatic refresh in the background is permitted during normal access, and in the rectangular access, automatic refresh in the background is not permitted. As a result, in the horizontal access 20-1, a normal access operation in the banks BA0, 1 and a refresh operation in the banks BA2, 3 are possible in parallel, and in the horizontal access 20-2, a normal access operation in the banks BA2, 3. Refresh operations can be performed in parallel in banks BA0 and BA1. As a result, horizontal access disturbance due to the refresh operation can be avoided, and an effective reduction in bandwidth can be suppressed.

また,矩形アクセスでは,バックグランドリフレッシュ動作を禁止する。これにより,任意の領域への矩形アクセスが,リフレッシュ動作によって中断されることを防止することができる。よって,トータルの実効的な帯域幅の低下を抑制できる。   In rectangular access, the background refresh operation is prohibited. Thereby, rectangular access to an arbitrary area can be prevented from being interrupted by the refresh operation. Therefore, a decrease in total effective bandwidth can be suppressed.

そして,矩形アクセスでは,バイトの組み合わせ情報SBをリードコマンドと共に指定することで,リードコマンドのコラムアドレスCAを先頭として任意のバイトの組み合わせで,組み合わされたバイトデータを4バイトの入出力端子DQに出力することができる。バイトの組み合わせ情報SBは,アクティブコマンドに先立ってモードレジスタを設定するコマンドと共に指定することも可能である。   In the rectangular access, the byte combination information SB is specified together with the read command, and the combined byte data is input to the 4-byte input / output terminal DQ with any byte combination starting from the column address CA of the read command. Can be output. The byte combination information SB can be specified together with a command for setting the mode register prior to the active command.

図7は,本実施の形態における全体の動作の別の例を示す図である。この例は,メモリマップの1行目のページ領域への水平アクセス20−1と,矩形アクセス22と,メモリマップの2行目のページ領域への水平アクセス20−2とが順に行われる例である。そして,矩形アクセス22では,矩形領域22がページ領域の境界14BOUを越えて4つのページ領域BA3/RA2,BA2/RA3,BA1/RA6。BA0/RA7を含んでいる。   FIG. 7 is a diagram showing another example of the overall operation in the present embodiment. In this example, horizontal access 20-1 to the page area of the first row of the memory map, rectangular access 22, and horizontal access 20-2 to the page area of the second row of the memory map are sequentially performed. is there. In the rectangular access 22, the rectangular area 22 exceeds the page area boundary 14BOU, and is divided into four page areas BA3 / RA2, BA2 / RA3, BA1 / RA6. Includes BA0 / RA7.

水平アクセス20−1,20−2では,図6と同様に,バックグランド・リフレッシュコマンドBRENと共にリフレッシュバンク情報SAを発行することで,そのバンクへのその後の自動リフレッシュ動作を許可して,水平アクセスがリフレッシュ動作でディスターブされることを防止する。そして,複数ページ領域,すなわち複数バンクを含む矩形領域22への矩形アクセスでは,同時にアクティブ動作させるバンク情報としてマルチバンク情報SA’をアクティブコマンドACTと共に発行する。これに応答して,画像メモリは,アクティブコマンドACTと共に発行されるアドレス情報BA,RAを左上として,マルチバンク情報SA’で指定された複数バンクのページ領域を同時にアクティブ動作する。その結果,1回のアクティブコマンドACTに応答して,複数バンクを同時にアクティブ動作することができ,その後は,各バンクに対するリードコマンドRDをバンクアドレスBAとコラムアドレスCAと共に発行することで,各バンク内のコラムアドレスCAで選択されたメモリ単位領域(4バンク領域)の4バンクデータを入出力端子DQに出力することができる。   In the horizontal accesses 20-1 and 20-2, as in FIG. 6, by issuing the refresh bank information SA together with the background refresh command BREN, the subsequent automatic refresh operation to the bank is permitted, and the horizontal access is performed. Is prevented from being disturbed by the refresh operation. In a rectangular access to a rectangular area 22 including a plurality of page areas, that is, a plurality of banks, multi-bank information SA ′ is issued together with an active command ACT as bank information to be simultaneously activated. In response to this, the image memory simultaneously performs an active operation on the page areas of a plurality of banks designated by the multi-bank information SA ′ with the address information BA and RA issued together with the active command ACT as the upper left. As a result, in response to one active command ACT, a plurality of banks can be activated simultaneously, and thereafter, a read command RD for each bank is issued together with a bank address BA and a column address CA, whereby each bank 4 bank data of the memory unit area (4 bank area) selected by the column address CA can be output to the input / output terminal DQ.

図7の矩形アクセスの例では,アクティブコマンドACT(図中70)と共に左上のページ領域を特定するアドレス情報BA3,RA2(図中71)が発行され,それと同時に,マルチバンク情報SA’=0−3(図中72)も発行されている。これに応答して,画像メモリは,左上のページ領域のバンクBA3を先頭にして,マルチバンク情報SA’で指定された4バンクBA3,BA2,BA1,BA0を同時にアクティブ動作し,それに続く4つのリードコマンドRDで指定されたバンクBA/コラムアドレスCAの4バイトデータを順に出力する。ライトコマンドの場合も同様である。図中では,4つのリードコマンドRDに対して,BA3/CA127,BA2/CA124,BA1/CA3,BA0/CA0が供給され,それぞれの4バイトデータが出力されている。   In the example of rectangular access in FIG. 7, address information BA3 and RA2 (71 in the figure) specifying the upper left page area are issued together with the active command ACT (70 in the figure), and at the same time, the multibank information SA ′ = 0− 3 (72 in the figure) is also issued. In response to this, the image memory simultaneously activates the four banks BA3, BA2, BA1, BA0 designated by the multibank information SA ′ with the bank BA3 in the upper left page area as the head, and the subsequent four The 4-byte data of the bank BA / column address CA specified by the read command RD is output in order. The same applies to the write command. In the figure, BA3 / CA127, BA2 / CA124, BA1 / CA3, BA0 / CA0 are supplied to four read commands RD, and 4-byte data of each is output.

マルチバンク情報SA’が「横方向の2バンク」であれば,アクティブコマンドACTで供給されるバンクアドレスBAに対応する左上バンクの右隣のバンクも同時にアクティブ動作され,「縦方向の2バンク」であれば左上バンクの下隣のバンクも同時にアクティブ動作される。同様に,マルチバンク情報SA’が「縦横4バンク」であれば,左上バンクの右隣,下隣,右下隣の4つのバンクも同時にアクティブ動作される。したがって,マルチバンクを自動的にアクティブ動作させるためには,メモリマップの各行のロウアドレスRAがどのように配置されているか,具体的にはロウアドレスRAがどの単位で各行を折り返されているかの情報(ロウアドレスステップ情報)をあらかじめレジスタなどに設定しておくことが好ましい。   If the multi-bank information SA ′ is “2 banks in the horizontal direction”, the bank on the right of the upper left bank corresponding to the bank address BA supplied by the active command ACT is also activated at the same time. If so, the banks below the upper left bank are simultaneously activated. Similarly, if the multi-bank information SA 'is "4 banks vertically and horizontally", the four banks adjacent to the right, bottom, and bottom right of the upper left bank are simultaneously activated. Therefore, in order to automatically activate the multibank, how the row address RA of each row of the memory map is arranged, specifically, in what unit the row address RA is folded back to each row It is preferable to set information (row address step information) in a register or the like in advance.

図7の矩形アクセスにおいて,アクティブコマンドACT時のマルチバンク情報SA’に加えて,図6で説明したバイト組み合わせ情報SBがリードコマンドRDと共に指定されると,ページ領域14の境界14BOUを越えて,且つコラムアドレスCAで選択されるメモリ単位領域(4バンク領域)の一部のバイトの組み合わせについて,自動的に入出力端子DQに対応付けることができる。   In the rectangular access of FIG. 7, when the byte combination information SB described in FIG. 6 is specified together with the read command RD in addition to the multi-bank information SA ′ at the time of the active command ACT, the boundary 14BOU of the page area 14 is exceeded, In addition, some byte combinations in the memory unit area (four bank area) selected by the column address CA can be automatically associated with the input / output terminal DQ.

図8は,本実施の形態における画像処理システムの構成図である。画像処理システムは,メモリコントローラに対応する画像処理チップ80と,画像処理対象の画像データを記憶する画像メモリチップ86とで構成される。画像処理チップ80とメモリチップ86は半導体チップであり,それぞれ単一の半導体基板に集積回路が形成されている。   FIG. 8 is a configuration diagram of the image processing system in the present embodiment. The image processing system includes an image processing chip 80 corresponding to a memory controller and an image memory chip 86 that stores image data to be processed. The image processing chip 80 and the memory chip 86 are semiconductor chips, and an integrated circuit is formed on each single semiconductor substrate.

画像処理チップ80は,例えばMPEGの画像圧縮と伸長に対応するエンコーダ,デコーダなどの画像処理を行う画像処理制御部81と,画像処理制御部81からの画像領域の指定を含むメモリアクセス要求に応答して,画像メモリチップ86へのアクセス制御を行うメモリ制御部82とを有する。メモリ制御部82は,水平アクセスでのバックグランドリフレッシュ動作を制御するバックグランドリフレッシュ制御部84と,矩形アクセスでメモリ単位領域(4バイト領域)内の任意のバイトの組み合わせのアクセスを制御するバイトバウンダリ制御部85と,矩形アクセスで複数のページ領域を含むアクセスを制御するマルチバンク活性化制御部83とを有する。これらの制御により,それぞれの動作に必要なコマンドとバンクアドレス,ロウアドレス,コラムアドレス,バイト組み合わせ情報SB,リフレッシュバンク情報SA,マルチバンク情報SA’などを,画像メモリ86に発行する。   The image processing chip 80 responds to a memory access request including an image processing control unit 81 that performs image processing, such as an encoder and a decoder corresponding to MPEG image compression and decompression, and an image area designation from the image processing control unit 81. And a memory control unit 82 for controlling access to the image memory chip 86. The memory control unit 82 includes a background refresh control unit 84 that controls the background refresh operation in horizontal access, and a byte boundary that controls access to any combination of bytes in the memory unit area (4-byte area) through rectangular access. It has a control unit 85 and a multi-bank activation control unit 83 that controls access including a plurality of page areas by rectangular access. With these controls, commands and bank addresses, row addresses, column addresses, byte combination information SB, refresh bank information SA, multi-bank information SA ′, and the like necessary for each operation are issued to the image memory 86.

画像メモリ86は,メモリコア92内に複数のバンクBank0−3を有し,これらのメモリコア92に対して,主にアクティブ動作の制御を行うロウ制御部87と,リードやライト動作の制御を行うコラム制御部90と,バックグランドリフレッシュ制御部89とを有する。ロウ制御部87はマルチバンク活性化制御部88を有し,コラム制御部90はバイトバウンダリ制御部91を有する。また,各バンクBank0−3内には,ロウデコーダRowDecと,コラムデコーダColDecと,メモリアレイMAと,センスアンプ群SAと,メモリアレイMAと入出力端子DQとを対応付ける入出力ユニット93などが含まれる。   The image memory 86 has a plurality of banks Bank 0 to 3 in the memory core 92, and controls the row control unit 87 that mainly controls the active operation and the read and write operations for these memory cores 92. A column control unit 90 to perform and a background refresh control unit 89 are provided. The row controller 87 has a multi-bank activation controller 88, and the column controller 90 has a byte boundary controller 91. Each bank Bank0-3 includes a row decoder RowDec, a column decoder ColDec, a memory array MA, a sense amplifier group SA, an input / output unit 93 for associating the memory array MA and an input / output terminal DQ. It is.

図9は,本実施の形態における画像メモリの構成図である。画像メモリチップ86は,外部端子群93には,クロックCLKに加えて,RAS,CAS,WE,CSからなるコマンド端子,バンクアドレス端子BA0,BA1,リフレッシュバンク情報端子SA0,SA1,複数個のアドレス端子Add,所定ビット数のバイト組み合わせ情報端子SB,所定ビット数のデータ入出力端子DQ,そして,図示しないマルチバンク情報端子SA’などが含まれる。   FIG. 9 is a configuration diagram of the image memory in the present embodiment. In the image memory chip 86, the external terminal group 93 includes a command terminal including RAS, CAS, WE, and CS, bank address terminals BA0 and BA1, refresh bank information terminals SA0 and SA1, and a plurality of addresses in addition to the clock CLK. A terminal Add, a byte combination information terminal SB having a predetermined number of bits, a data input / output terminal DQ having a predetermined number of bits, a multi-bank information terminal SA ′ not shown, and the like are included.

なお,前述のバイトバウンダリ機能,マルチバンクアセス機能,バックグランドリフレッシュ機能に必要な端子SB,SA’,SAは,共通の特殊ピンによっても実現可能である。それらの情報は,異なるコマンドと共に供給されるので,供給コマンドに応じて特殊ピン入力データを対応するレジスタに設定すればよい。   Note that the terminals SB, SA ', and SA required for the aforementioned byte boundary function, multi-bank access function, and background refresh function can also be realized by a common special pin. Since such information is supplied together with different commands, the special pin input data may be set in the corresponding register in accordance with the supplied command.

また,これらの端子SB,SA’,SAは,使用されていない端子で実現可能である。例えば,リード動作において,ロウアドレスがアドレス端子Add0〜12で入力され,コラムアドレスがアドレス端子Add0〜9で入力されるとすると,コラムアドレスが入力されるときアドレス端子Add10〜12は使用されていない。よって,コラムアドレス入力時に使用されていないアドレス端子Add10〜12から制御データSB,SA’,SAを入力することができる。   Further, these terminals SB, SA ', and SA can be realized by unused terminals. For example, in the read operation, if the row address is input at the address terminals Add0 to 12 and the column address is input at the address terminals Add0 to 9, the address terminals Add10 to 12 are not used when the column address is input. . Therefore, the control data SB, SA ′, SA can be input from the address terminals Add10 to 12 that are not used when the column address is input.

これらの外部端子群93には,それぞれバッファ94を介して内部回路に接続される。上記のコマンド群はコマンド制御部95に入力され,コマンドに対応した制御信号が内部回路に供給される。また,モードレジスタセットコマンドに応答して,コマンド制御部95は,アドレスピンAddに供給される設定データに基づいて,モードレジスタ96に所定の設定値を設定する。モードレジスタ96に設定された設定情報は内部回路に供給される。ロウ制御部87は,マルチバンク活性化制御部88を有し,さらにマルチバンク活性化に必要なロウアドレス演算部97と有する。マルチバンク活性化制御部88からは,活性化すべきバンクにアクティブパルスが供給される。また,ロウアドレス演算部97からは,活性化すべきロウアドレスが各バンクに供給される。そして,バンクBank内にはバンク内のリフレッシュ対象のロウアドレスを指示するリフレッシュロウアドレス指示部98が設けられる。リフレッシュロウアドレス指示部98は,例えばリフレッシュカウンタを有し,自動リフレッシュコマンド発生時に必要なロウアドレスを生成する。バンク内の構成は前述の通りである。   Each of these external terminal groups 93 is connected to an internal circuit via a buffer 94. The command group is input to the command control unit 95, and a control signal corresponding to the command is supplied to the internal circuit. In response to the mode register set command, the command control unit 95 sets a predetermined setting value in the mode register 96 based on the setting data supplied to the address pin Add. The setting information set in the mode register 96 is supplied to the internal circuit. The row control unit 87 includes a multi-bank activation control unit 88, and further includes a row address calculation unit 97 necessary for multi-bank activation. From the multi-bank activation control unit 88, an active pulse is supplied to the bank to be activated. The row address calculation unit 97 supplies a row address to be activated to each bank. In the bank Bank, a refresh row address instructing unit 98 for instructing a row address to be refreshed in the bank is provided. The refresh row address instruction unit 98 has a refresh counter, for example, and generates a row address necessary when an automatic refresh command is generated. The configuration in the bank is as described above.

以下,図6,7で説明したバイトバウンダリ機能と,マルチバンクアクティブ機能と,バックグランド・リフレッシュ機能とについて,順番に,画像メモリとメモリコントローラの詳細を説明する。
《バイトバウンダリ》
図10は,バイトバウンダリ機能を説明する図である。この図は,あるバンク内のロウアドレスRAとコラムアドレスCAとにより選択されるバイト群(またはビット群)を示している。前述したとおり,この例も,ロウアドレスRAとコラムアドレスCAとにより4バイトのデータ領域(メモリ単位領域)が選択され,32ビットの入出力端子DQ0−31と関連付けられる。よって,ロウアドレスRAとコラムアドレスCAの交差位置の「0123」は,それぞれバイトBY0,BY1,BY2,BY3を意味している。または,4バイトの代わりに4ビットであっても良い。その場合は,ロウアドレスRAとコラムアドレスCAとにより4ビットのデータ領域(メモリ単位領域)が選択され,4ビットの入出力端子DQ0−3と関連付けられる。以下は,簡単のために4バイトの例で説明する。
Hereinafter, the details of the image memory and the memory controller will be described in order for the byte boundary function, the multi-bank active function, and the background refresh function described with reference to FIGS.
《Byte Boundary》
FIG. 10 is a diagram for explaining the byte boundary functions. This figure shows a byte group (or bit group) selected by a row address RA and a column address CA in a certain bank. As described above, also in this example, a 4-byte data area (memory unit area) is selected by the row address RA and the column address CA, and is associated with the 32-bit input / output terminals DQ0-31. Therefore, “0123” at the intersection of the row address RA and the column address CA means the bytes BY0, BY1, BY2, and BY3, respectively. Alternatively, 4 bits may be used instead of 4 bytes. In this case, a 4-bit data area (memory unit area) is selected by the row address RA and the column address CA, and is associated with the 4-bit input / output terminals DQ0-3. The following is an example of 4 bytes for simplicity.

図10(A)は従来例に対応し,ロウアドレスRAとコラムアドレスCAとにより4バイトのデータ領域が一意に決定し,常に4バイト領域(メモリ単位領域)100,101の32ビットが入出力端子DQ0−31と関連付けられる。   FIG. 10A corresponds to the conventional example, and a 4-byte data area is uniquely determined by the row address RA and the column address CA, and 32 bits of the 4-byte area (memory unit area) 100 and 101 are always input / output. Associated with terminals DQ0-31.

それに対して,図10(B)は本実施の形態に対応し,ロウアドレスRAとコラムアドレスCAとで特定される4バイト領域を先頭にして,任意のバイトの組み合わせで入出力端子DQ0−31と関連付けることができる。図中,RA=0,CA=0で選択される4バイト領域100は全てそのまま入出力端子DQ0−31と関連付けている。一方,RA=2,CA=1で選択される4バイト領域内の2バイトシフトした3バイト目から連続する4バイトの領域102を入出力端子DQ0−31と関連付けている。この場合は,RA=2,CA=1で選択される4バイト領域内のどのバイトを先頭にするかの第1の情報(スタートバイト)と,その先頭バイトからアップ方向に4バイト連続かダウン方向に4バイト連続かアップ方向に1つ置きかダウン方向に1つ置きかなどの第2の情報(ビッグエンディアンまたはリトルエンディアン)とが,リードコマンドやライトコマンドと共に与えられる。   On the other hand, FIG. 10B corresponds to the present embodiment, and the input / output terminals DQ0-31 are combined with arbitrary bytes, starting with a 4-byte area specified by the row address RA and the column address CA. Can be associated with In the figure, all 4-byte areas 100 selected when RA = 0 and CA = 0 are directly associated with the input / output terminals DQ0-31. On the other hand, the 4-byte area 102 continuous from the third byte shifted by 2 bytes in the 4-byte area selected by RA = 2 and CA = 1 is associated with the input / output terminals DQ0-31. In this case, the first information (start byte) indicating which byte in the 4-byte area selected by RA = 2 and CA = 1 is the head, and whether 4 bytes are continuous or down from the head byte. Second information (big endian or little endian) such as whether 4 bytes are continuous in the direction, every other one in the up direction or every other one in the down direction is given together with the read command and the write command.

そして,上記の第1,第2の情報からなるバイト組み合わせ情報に基づいて,画像メモリの入出力ユニットは,ページ内の異なるコラムアドレスCAに対応するバイトデータのうち合計で4バイトを抽出し,入出力端子DQ0−31に関連付ける。そして,必要な4バイトのデータを32ビットの入出力端子DQから1回で入出力する。   Based on the byte combination information consisting of the first and second information, the input / output unit of the image memory extracts a total of 4 bytes from the byte data corresponding to different column addresses CA in the page, Associated with input / output terminals DQ0-31. Then, necessary 4-byte data is input / output from the 32-bit input / output terminal DQ at a time.

図11は,バイトバウンダリ機能におけるタイミングチャートを示す図である。この例は,メモリマップ12内の4バイト102をアクセスする例である。まず,アクティブコマンドACT(図中110)と共にバンクアドレスBA=0とロウアドレスRA=2とが与えられ,対応するページ領域がアクティブ動作され,リードコマンドRD(図中111)と共にバンクアドレスBA=0とコラムアドレスCA=1(図中112)とが与えられ,更に,バイトの組み合わせ情報113として,バイトシフト量またはスタートバイトを示す第1の情報SB=2(図中114)と組み合わせパターンを示す第2の情報BMR=UP(図中115)とが与えられる。   FIG. 11 is a diagram showing a timing chart in the byte boundary function. In this example, 4 bytes 102 in the memory map 12 are accessed. First, the bank address BA = 0 and the row address RA = 2 are given together with the active command ACT (110 in the figure), the corresponding page area is activated, and the bank address BA = 0 along with the read command RD (111 in the figure). And column address CA = 1 (112 in the figure), and further, as the byte combination information 113, the first information SB = 2 (114 in the figure) indicating the byte shift amount or the start byte and the combination pattern are shown. Second information BMR = UP (115 in the figure) is given.

画像メモリは,このバイト組み合わせ情報SB=2,BMR=UPに基づいて,コラムアドレスCA=1で選択される4バイト領域の後半の2バイトデータ(BY2,3)と,コラムアドレスCA=2で選択される4バイト領域の前半の2バイトデータ(BY0,1)とを,それぞれ入出力端子DQ16−23,DQ24−31,DQ0−7,DQ8−15に図示されるとおり対応付ける。この対応付けは,たとえば図9のバイトバウンダリ制御部91により入出力ユニット93で行われる。よって,異なるコラムアドレスのデータであるにもかかわらず,リードコマンドRDを1回与えるだけで,任意の組み合わせの4バイトデータを入出力端子DQに対応付けることができる。ライトコマンドの場合も同様である。   Based on the byte combination information SB = 2 and BMR = UP, the image memory uses the latter half of the 4-byte area selected by the column address CA = 1 (BY2, 3) and the column address CA = 2. The first half of the selected 4-byte area (BY0, 1) is associated with the input / output terminals DQ16-23, DQ24-31, DQ0-7, and DQ8-15 as shown in the figure. This association is performed in the input / output unit 93 by the byte boundary control unit 91 of FIG. Therefore, in spite of the data of different column addresses, any combination of 4-byte data can be associated with the input / output terminal DQ by giving the read command RD once. The same applies to the write command.

図11において,ロウアドレスRAとコラムアドレスCAとにより選択される4バイト領域は,4ビット領域であっても同様のバイトバウンダリ機能を適用できる。その場合は,入出力端子DQ0−3に4ビット領域の4ビットデータが対応付けられる。   In FIG. 11, the same byte boundary function can be applied even if the 4-byte area selected by the row address RA and the column address CA is a 4-bit area. In this case, 4-bit data in a 4-bit area is associated with the input / output terminals DQ0-3.

図12は,異なるマッピングに対するバイトバウンダリ機能を説明する図である。図12では,簡単のためにロウアドレスRAとコラムアドレスCAとにより選択されるメモリ単位領域が4ビットで構成されている。図12の左側には画像の画素とメモリ空間との対応を示すメモリマッピング12−1,12−2が,中央にはメモリの論理空間15−1,15−2が,そして,右側にはそれらに対応するタイミングチャートが示されている。   FIG. 12 is a diagram for explaining the byte boundary functions for different mappings. In FIG. 12, for the sake of simplicity, the memory unit area selected by the row address RA and the column address CA is composed of 4 bits. In the left side of FIG. 12, memory mappings 12-1 and 12-2 indicating the correspondence between image pixels and memory spaces are shown, in the center are memory logical spaces 15-1 and 15-2, and on the right side are memory mappings 12-1 and 15-2. A timing chart corresponding to is shown.

中央のメモリ論理空間15−1,15−2内には,ロウアドレスRAとコラムアドレスCAとで選択される4ビット領域内の4ビットを示す「0−3」が示され,入出力端子DQ0−3に対応する。また,左のメモリマッピング12−1,12−2内にも,画像の画素に対応するメモリ論理空間内の4ビットを示す「0−3」が示されている。つまり,画像の各画素がメモリの入出力端子DQ0−3にどのように対応付けられるかが,メモリマッピングに示されている。   In the central memory logical spaces 15-1 and 15-2, "0-3" indicating 4 bits in the 4-bit area selected by the row address RA and the column address CA is shown, and the input / output terminal DQ0 -3. Also in the left memory mappings 12-1 and 12-2, “0-3” indicating 4 bits in the memory logical space corresponding to the image pixels is shown. That is, the memory mapping shows how each pixel of the image is associated with the input / output terminals DQ0-3 of the memory.

画像システムでは,画像の画素を,あるアドレスBA,RA,CAで同時にアクセスされる4ビットの入出力端子DQ0−3のどれに対応付けるかは,システム設計者の自由である。マッピング12−1は,図中左から右の4つの画素をアドレスの進行方向(左から右)と同じ方向の入出力端子DQ0−3にマッピングする例であり,ビッグエンディアンと称されている。一方,マッピング12−2は,4つの画素をアドレスの進行方向と逆方向の入出力端子DQ3−0にマッピングする例であり,リトルエンディアンと称されている。   In the image system, it is up to the system designer to associate the image pixels with any of the 4-bit input / output terminals DQ0-3 that are simultaneously accessed at a certain address BA, RA, CA. Mapping 12-1 is an example of mapping four pixels from left to right in the figure to input / output terminals DQ0-3 in the same direction as the address moving direction (left to right), and is called big endian. On the other hand, the mapping 12-2 is an example in which four pixels are mapped to the input / output terminals DQ3-0 in the direction opposite to the address traveling direction, and is called little endian.

そして,マッピング12−1,12−2においていずれも,画像の左上隅から6画素から9画素までの4画素123,127に矩形アクセスが発生している。しかし,これらのマッピングは,メモリ内の4ビットと逆方向にマッピングされているので,それぞれ異なるアクセスが必要になる。つまり,マッピング12−1の場合は,矢印120のように,画像の左から右の画素に対して,CA=1内のDQ1,CA=1内のDQ2,CA=1内のDQ3,CA=2内のDQ0の順でデータを入出力する必要がある。一方,マッピング12−2の場合は,矢印124のように,画像の左から右の画素に対して,CA=1内のDQ2,CA=1内のDQ1,CA=1内のDQ0,CA=2内のDQ3の順でデータを入出力する必要がある。   In both mappings 12-1 and 12-2, rectangular access occurs in the four pixels 123 and 127 from 6 pixels to 9 pixels from the upper left corner of the image. However, since these mappings are mapped in the opposite direction to the 4 bits in the memory, different accesses are required. That is, in the case of the mapping 12-1, as indicated by the arrow 120, for the pixels from the left to the right of the image, DQ1, CA = 1, DQ2, CA = 1, DQ2, CA = 1, DQ3, CA = It is necessary to input / output data in the order of DQ0 in 2. On the other hand, in the case of the mapping 12-2, as indicated by an arrow 124, DQ 2 in CA = 1, DQ 1 in CA = 1, DQ 0 in CA = 1, CA = It is necessary to input / output data in the order of DQ3 in 2.

このような異なるマッピングに対応するためにビット組み合わせ情報SB,BMRが利用される。つまり,マッピング12−1の場合は,図中121のように,リードコマンドRDと共にBA=0,CA=1からなる先頭アドレスと,SB=1,BMR=UPからなるビット組み合わせ情報とが発行され,それに応答して,図中122のように,CA=1の3ビットDQ1,2,3とCA=2のDQ0とが同時に出力される。   Bit combination information SB and BMR are used to cope with such different mappings. That is, in the case of the mapping 12-1, as shown at 121 in the figure, the read command RD and the head address consisting of BA = 0 and CA = 1 and the bit combination information consisting of SB = 1 and BMR = UP are issued. In response, as shown at 122 in the figure, CA = 1 3-bit DQ1, 2, 3 and CA = 2 DQ0 are output simultaneously.

一方,マッピング12−2の場合は,図中125のように,リードコマンドRDと共にBA=0,CA=1からなる先頭アドレスと,SB=1,BMR=DOWNからなるビット組み合わせ情報とが発行され,それに応答して,図中126のように,CA=1の3ビットDQ0,1,2とCA=2のDQ3とが同時に出力される。   On the other hand, in the case of mapping 12-2, as shown by 125 in the figure, a read command RD and a head address consisting of BA = 0, CA = 1 and bit combination information consisting of SB = 1, BMR = DOWN are issued. In response to this, 3 bits DQ0, 1, 2 with CA = 1 and DQ3 with CA = 2 are output at the same time as 126 in the figure.

このように,ビッグエンディアンとリトルエンディアンという異なるメモリマッピングに対応してビット組み合わせ情報SB,BMRを指定することで,画像メモリは,システム側のメモリマッピングに対応して4ビット同時に入出力することができる。このビット組み合わせ情報の種類を増やすことにより,様々なマッピングに対して柔軟な4ビットアクセスを実現することができる。   Thus, by specifying the bit combination information SB and BMR corresponding to different memory mappings of big endian and little endian, the image memory can input and output 4 bits simultaneously corresponding to the memory mapping on the system side. it can. By increasing the types of bit combination information, flexible 4-bit access can be realized for various mappings.

図13は,図12のビッグエンディアンとリトルエンディアンとを説明する図である。図13は,左右どちらも入出力ビット幅が4ビットのメモリを使っている画像処理システムであり,左がメモリの入出力端子DQのDQ0からDQ3への方向を順方向として扱うビッグエンディアンのシステム,右がメモリのDQのDQ3からDQ0への方向を順方向として扱うリトルエンディアンのシステムである。   FIG. 13 is a diagram for explaining the big endian and the little endian in FIG. 12. FIG. 13 shows an image processing system that uses a memory with an input / output bit width of 4 bits on both the left and right sides. The right is a little endian system that handles the direction from DQ3 to DQ0 of the memory DQ as the forward direction.

画面上の画素位置(X0-X11)は,どちらも同じ画面上の物理位置を示している。そして,各画素位置が持っている「各画素の情報」は,両システムとも同じ"A"〜"L"であり,このことは,どちらのシステムも同じ画像を表示していることを意味している。   The pixel positions (X0 to X11) on the screen both indicate physical positions on the same screen. The “pixel information” at each pixel position is the same “A” to “L” in both systems, which means that both systems display the same image. ing.

ビッグエンディアンのシステムでは,画素位置X0〜X3をメモリのアドレスCA0のDQ0〜DQ3に,画素位置X4〜X7をメモリのアドレスCA1のDQ0〜DQ3に,画素位置X8〜X11をメモリのアドレスCA2のDQ0〜DQ3に対応させている。   In big-endian systems, pixel positions X0 to X3 are assigned to DQ0 to DQ3 at memory address CA0, pixel positions X4 to X7 are assigned to DQ0 to DQ3 at memory address CA1, and pixel positions X8 to X11 are assigned to DQ0 at memory address CA2. It corresponds to ~ DQ3.

一方,リトルエンディアンのシステムでは,画素位置X0〜X3をメモリのアドレスCA0のDQ3〜DQ0に,画素位置X4〜X7をメモリのアドレスCA1のDQ3〜DQ0に,画素位置X8〜X11をメモリのアドレスCA2のDQ3〜DQ0に対応させている。   On the other hand, in the little endian system, pixel positions X0 to X3 are assigned to DQ3 to DQ0 of memory address CA0, pixel positions X4 to X7 are assigned to DQ3 to DQ0 of memory address CA1, and pixel positions X8 to X11 are assigned to memory address CA2. It corresponds to DQ3-DQ0.

つまり,両方のシステムを比較すると,画像処理システム内の画素X0〜X3と入出力端子T0〜T3の対応関係が,ビッグエンディアンとリトルエンディアンとで逆の関係になっている。よって,画素位置X0の画素情報"A"は,ビッグエンディアンのシステムとリトルエンディアンのシステムでは各々異なるメモリセルの物理位置(CA0のDQ0とCA0のDQ3)に格納されることになる。   That is, when both systems are compared, the correspondence between the pixels X0 to X3 and the input / output terminals T0 to T3 in the image processing system is opposite between big endian and little endian. Therefore, the pixel information “A” at the pixel position X0 is stored in different physical positions (DQ0 of CA0 and DQ3 of CA0) in the big-endian system and the little-endian system.

ここで,画像処理システムが画素位置X5-X8の画素情報"F-G-H-I"に対する矩形アクセス(図中130)を発生した場合,ビッグエンディアンのシステムとリトルエンディアンのシステムで,メモリは各々異なるメモリセルの物理位置132,134にアクセスしなくてはならない。そのため,メモリに供給される必要がある最低限の情報は,システムがビッグエンディアン(Up)かリトルエンディアン(Down)かという情報BMRと,起点となるビットが含まれるアドレスCAと,起点となるビットのアドレス内での位置情報SBの3つである。   Here, when the image processing system generates a rectangular access (130 in the figure) for the pixel information “FGHI” at the pixel positions X5 to X8, the memory is a physical memory of different memory cells in the big endian system and the little endian system. Locations 132 and 134 must be accessed. Therefore, the minimum information that needs to be supplied to the memory is information BMR indicating whether the system is big-endian (Up) or little-endian (Down), the address CA containing the starting bit, and the starting bit. Of the location information SB in the address of.

上記のビッグエンディアンとリトルエンディアンは,アドレスRA,CAでアクセスされるメモリ単位領域が4バイト領域(バイト群)の場合も同じである。   The big endian and the little endian are the same when the memory unit area accessed by the addresses RA and CA is a 4-byte area (byte group).

図14は,特殊なメモリマッピングにおけるバイトバウンダリ機能を説明する図である。図14も図12と同様に,左側にメモリマッピング12を,中央にメモリ論理空間15を,そして,右側に対応するタイミングチャートを示す。   FIG. 14 is a diagram for explaining a byte boundary function in special memory mapping. FIG. 14 also shows the memory mapping 12 on the left side, the memory logical space 15 on the center, and the corresponding timing chart on the right side as in FIG.

図中,左側のメモリマッピング12には,フレーム画像内の各画素にメモリのどのビットを割り当てているかの状態を示している。この例では,1画素が2ビットの情報から構成されており,例えば偶数ビットは輝度,奇数ビットは色差を表すデータを保持している。   In the figure, the memory mapping 12 on the left shows the state of which bits of the memory are assigned to each pixel in the frame image. In this example, one pixel is composed of 2-bit information. For example, even bits hold data representing luminance and odd bits hold data representing color difference.

そこで,Grouping-1は左上隅の2画素目から5画素目における輝度情報(偶数ビット)のみを集める矩形アクセスであり,Grouping-2は左上隅の2画素目から5画素目における色差情報(奇数ビット)のみを集める矩形アクセスを意味している。この場合,Grouping-1/2ともに,画像の左上隅の2画素目から5画素目にかけての矩形アクセスだが,矢印140のような輝度(偶数ビット)と矢印144のような色差(奇数ビット)の違いがあるため,タイミングチャートに示されるように,画像処理システムからメモリへのアクセスと入出力端子DQは以下の通りとなる。
Grouping-1:CA=0/SB=2で,BMR=AL(1ビット置きに4ビットを集める指定)(図中141)のアクセスに対して,入出力端子DQ0-3には,CA=1のDQ0,CA=2のDQ0,CA=0のDQ2,CA=1のDQ2が対応付けられる(図中142)。
Grouping-2:CA=0/SB=3で,BMR=AL(1ビット置きに4ビットを集める指定)(図中145)のアクセスに対して,入出力端子DQ0-3には,CA=2のDQ1,CA=1のDQ1,3,CA=0のDQ3が対応付けられる(図中146)。
Therefore, Grouping-1 is a rectangular access that collects only luminance information (even bits) in the second to fifth pixels in the upper left corner, and Grouping-2 is color difference information (odd numbers) in the second to fifth pixels in the upper left corner. Means a rectangular access that only collects bits). In this case, both Grouping-1 / 2 are rectangular accesses from the second pixel to the fifth pixel in the upper left corner of the image, but the luminance (even bit) as indicated by arrow 140 and the color difference (odd bit) as indicated by arrow 144 Due to the difference, as shown in the timing chart, the access from the image processing system to the memory and the input / output terminal DQ are as follows.
Grouping-1: For CA = 0 / SB = 2 and access of BMR = AL (designation of collecting 4 bits every other bit) (141 in the figure), CA = 1 is applied to the input / output terminals DQ0-3. DQ0, CA = 2 DQ0, CA = 0 DQ2, and CA = 1 DQ2 are associated (142 in the figure).
Grouping-2: For CA = 0 / SB = 3 and BMR = AL (designation to collect 4 bits every other bit) (145 in the figure), CA = 2 for I / O terminals DQ0-3 DQ1, CA = 1 DQ1, 3 and CA = 0 DQ3 are associated (146 in the figure).

このように,異なるコラムアドレスの4ビット領域内で同じDQ(例えばGrouping-1ではDQ0やDQ2)を同時にアクセスするので,そのデータを入出力端子DQに転送する入出力ユニットで,一部のデータについては端子を入れ替える処理,つまり別のDQのデータバスを使う処理が必要となる。   In this way, since the same DQ (for example, DQ0 and DQ2 in Grouping-1) is accessed simultaneously in the 4-bit area of different column addresses, some data is transferred to the input / output terminal DQ. For, it is necessary to replace the terminals, that is, to use another DQ data bus.

図15は,図14の特殊なメモリマッピングを説明する図である。図15は,入出力ビット幅が4ビットのメモリを使っている画像処理システムであり,特に,メモリの偶数DQを各画素の輝度情報に,奇数DQを各画素の色差情報に用いる画像処理システムである。そして,図15(A)は輝度情報のみアクセスする場合を示し,図15(B)は色差情報のみアクセスする場合を示す。   FIG. 15 is a diagram for explaining the special memory mapping of FIG. FIG. 15 shows an image processing system using a memory having an input / output bit width of 4 bits. In particular, an image processing system using even DQ of the memory for luminance information of each pixel and odd DQ for color difference information of each pixel. It is. FIG. 15A shows a case where only luminance information is accessed, and FIG. 15B shows a case where only color difference information is accessed.

画面上の画素位置(X0-X5)は,左右どちらも同じ画面上の物理位置を示している。また,各画素位置は「輝度情報」として"A,C,E,G,I,K"を,「色差情報」として"B,D,F,H,J,L"を保持している。   The pixel positions (X0 to X5) on the screen indicate the physical positions on the same screen on the left and right. Each pixel position holds “A, C, E, G, I, K” as “luminance information” and “B, D, F, H, J, L” as “color difference information”.

ここで,画像処理システムが画素位置X1-X4の輝度情報"C-E-G-I"に対する矩形アクセス151を発生した場合は,図15(A)のように,メモリは偶数DQのみにアクセスし(図中153),色差情報"D-F-H-J"に対する矩形アクセス152を発生した場合は,図15(B)のように,メモリは奇数DQのみにアクセス(図中154)しなくてはならない。   Here, when the image processing system generates the rectangular access 151 for the luminance information “CEGI” at the pixel positions X1-X4, the memory accesses only the even DQ as shown in FIG. 15A (153 in the figure). When the rectangular access 152 for the color difference information “DFHJ” is generated, the memory must access only the odd DQ (154 in the figure) as shown in FIG.

このためにメモリが最低限受け取る必要がある情報は,システムが輝度情報を偶数DQに,色差情報を奇数DQに保持する方式を採用しているか(1DQ置きのアクセスが必要かどうか)を示す情報(BMR=AL)と,起点となるビットが含まれるアドレス(CA)と,そのアドレスの4ビット領域内において起点となるビットの位置情報(SB)の3つである。これらのコラムアドレスCAとビット組み合わせ情報SB,BMRについては,図14ですでに説明済みである。   For this reason, the minimum information that the memory needs to receive is information indicating whether the system uses a method that maintains luminance information in even DQ and color difference information in odd DQ (whether access is required every 1 DQ) (BMR = AL), an address (CA) including a bit as a starting point, and position information (SB) of a bit as a starting point in the 4-bit area of the address. These column address CA and bit combination information SB and BMR have already been described with reference to FIG.

また,この場合,異なるアドレスで同じDQ(例えばGrouping-1ではDQ0やDQ2)を同時にアクセスするので,そのデータを入出力端子に転送する入出力ユニットで,一部のデータについては,別のDQのデータバスを使うように端子を入れ替える処理が必要となる。そのために,メモリ内に白丸と黒丸で示した複数のスイッチが設けられ,上記の情報SB,MBRに基づいてこれらのスイッチが制御される。   In this case, the same DQ (for example, DQ0 or DQ2 in Grouping-1) is accessed at different addresses at the same time, so the data is transferred to the input / output terminals. It is necessary to replace the terminals to use the data bus. For this purpose, a plurality of switches indicated by white and black circles are provided in the memory, and these switches are controlled based on the information SB and MBR.

図16は,矩形アクセスにおけるバイトバウンダリ機能を示すタイミングチャート図である。この矩形アクセスは,図6の矩形領域22をアクセスする例である。前述のとおり,矩形アクセスにおいて,コラムアドレスCAで選択されるメモリ単位領域(4バイト領域または4ビット領域)内の任意のバイト位置(またはビット位置)から,任意の組み合わせのバイトデータ(ビットデータ)を読み出すためには,先頭のコラムアドレスCAと,バイトの組み合わせ情報166として第1の情報SBと第2の情報BMRとが必要である。   FIG. 16 is a timing chart showing a byte boundary function in rectangular access. This rectangular access is an example of accessing the rectangular area 22 in FIG. As described above, in rectangular access, any combination of byte data (bit data) from any byte position (or bit position) in the memory unit area (4-byte area or 4-bit area) selected by the column address CA. Are read out, the first information SB and the second information BMR are required as the first column address CA and the byte combination information 166.

図16(A)では,これらのバイト組み合わせ情報SB,BMRが,リードコマンドRDと共に供給される例である。アクティブコマンドACT(図中161)でバンクアドレスBA=2とロウアドレスRA=2とが供給され,続くリードコマンドRD(図中162)でバンクアドレスBA=2,コラムアドレスCA=0と共に,先頭バイト(先頭ビット)位置を示す第1の情報SB=2((図中163)と,バイト(ビット)の組み合わせを示す第2の情報BMR=V(図中165)とが供給される。これにより,図6の矩形領域22の最初の4バイト(4ビット)が入出力端子DQに出力される。矩形領域22の残りの3組の4バイト(4ビット)も同様のバンクアドレスBA,コラムアドレスCAとバイト組み合わせ情報SB,BMRとにより特定される。   FIG. 16A shows an example in which these byte combination information SB and BMR are supplied together with the read command RD. The bank address BA = 2 and the row address RA = 2 are supplied by the active command ACT (161 in the figure), and the head byte is sent together with the bank address BA = 2 and the column address CA = 0 by the subsequent read command RD (162 in the figure). First information SB = 2 ((163 in the figure) indicating the (first bit) position and second information BMR = V (165 in the figure) indicating a combination of bytes (bits) are supplied. 6, the first 4 bytes (4 bits) of the rectangular area 22 are output to the input / output terminal DQ, and the remaining three sets of 4 bytes (4 bits) of the rectangular area 22 are also the same bank address BA and column address. It is specified by CA and byte combination information SB and BMR.

図16(B)では,バイト組み合わせ情報SB,BMRのうち,第2の情報BMR(図中165)は,アクティブコマンドACTが発行される以前に,レジスタアクセスモードでモードレジスタセットコマンドEMRS(図中167)と同時に供給され,この第2の情報BMRはメモリ内のモードレジスタ内に記録される。そして,その後の矩形アクセスでは,この第2の情報BMRに基づいて,コラムアクセスが行われる。矩形アクセスでのアクティブコマンドACT(図中161)とリードコマンドRD(図中162)とは,第2の情報BMRを除いて図16(A)と同じである。   In FIG. 16B, of the byte combination information SB and BMR, the second information BMR (165 in the figure) is the mode register set command EMRS (in the figure) in the register access mode before the active command ACT is issued. 167) and the second information BMR is recorded in a mode register in the memory. In the subsequent rectangular access, column access is performed based on the second information BMR. The active command ACT (161 in the figure) and the read command RD (162 in the figure) in the rectangular access are the same as those in FIG. 16A except for the second information BMR.

上記の第2の情報BMR=Vは,ビッグエンディアン(V=UP),リトルエンディアン(V=DOWN),輝度情報を偶数DQに色差情報を奇数DQに格納する場合(V=AL)などの様々な情報を持つことができる。   The second information BMR = V is various in big endian (V = UP), little endian (V = DOWN), when luminance information is stored in even DQ, and color difference information is stored in odd DQ (V = AL). Can have a lot of information.

画像システムは,図16(A),(B)のいずれの方式でも,矩形アクセスにおけるバイトバウンダリ機能を実現することができる。   The image system can realize a byte boundary function in rectangular access by any of the systems shown in FIGS.

図17は,バイトバウンダリ機能を実現するための画像処理システムの構成図である。図8と同様に,画像メモリ86に対してそれを制御するメモリ制御部82が設けられ,メモリ制御部82からは,アドレス情報BA,RA,CAと,それにより選択される4バイト領域(または4ビット領域)内の先頭バイト(先頭ビット)を示す第1の情報SBと,バイトの組み合わせを示す第2の情報BMRとからなるバイト組み合わせ情報(ビット組み合わせ情報)166と,動作コマンドACT,RD,EMRSが,画像メモリ86に供給される。   FIG. 17 is a configuration diagram of an image processing system for realizing the byte boundary functions. Similarly to FIG. 8, a memory control unit 82 for controlling the image memory 86 is provided. The memory control unit 82 provides address information BA, RA, CA, and a 4-byte area (or selected by the address information). Byte combination information (bit combination information) 166 including first information SB indicating the first byte (first bit) in the 4-bit area) and second information BMR indicating a combination of bytes, and operation commands ACT, RD , EMRS are supplied to the image memory 86.

前述のとおり,タイミングチャート(A)では,リードコマンドRD,または図示しないライトコマンドWTと同時にバイト組み合わせ情報SB,BMR(図中166)が供給される。また,タイミングチャート(B)では,モードレジスタセットコマンドEMRS(図中167)と同時に第2の情報BMRが,リードコマンドRD,または図示しないライトコマンドWTと同時に第1の情報SBが供給される。   As described above, in the timing chart (A), the byte combination information SB and BMR (166 in the figure) are supplied simultaneously with the read command RD or the write command WT (not shown). In the timing chart (B), the second information BMR is supplied simultaneously with the mode register set command EMRS (167 in the figure), and the first information SB is supplied simultaneously with the read command RD or the write command WT (not shown).

図18は,バイトバウンダリ機能を示す図である。この図は,図6の矩形アクセスと同じである。図10以降では,コラムアドレスCAで選択されるメモリ単位領域が4ビット領域の場合を例にして説明してきた。しかし,前述のとおりメモリ単位領域が4バイト領域の場合も同様にバイトバウンダリ機能により矩形アクセスが可能である。図18はそれを改めて示している。   FIG. 18 is a diagram showing a byte boundary function. This figure is the same as the rectangular access in FIG. In FIG. 10 and subsequent figures, the case where the memory unit area selected by the column address CA is a 4-bit area has been described as an example. However, as described above, when the memory unit area is a 4-byte area, rectangular access is possible by the byte boundary function. FIG. 18 shows this again.

図18の例では,ページ領域14(BA=0,RA=0)内の矩形領域22を効率的にアクセスするために,リードコマンドRD(図中167)と共に,バンクアドレスBA,コラムアドレスCAと,第1の情報SBと第2の情報BMRとからなるバイト組み合わせ情報166とが発行される。それに応答して,矩形領域22内の4バイトのデータBY0−3が入出力端子DQに同時に出力される。ライトコマンドWTの場合も同様の動作が行われる。つまり,入出力端子DQの4組の4バイト端子BY0−3には,最初のリードコマンドRDに対応してCA1,CA1,CA0,CA0内の各バイトデータが対応付けられ,次のリードコマンドRDに対応してCA5,CA5,CA4,CA4内の各バイトデータが対応付けられる。残りのリードコマンドRDに対応するコラムアドレスと入出力端子との対応は図示されるとおりである。   In the example of FIG. 18, in order to efficiently access the rectangular area 22 in the page area 14 (BA = 0, RA = 0), together with the read command RD (167 in the figure), the bank address BA, the column address CA and , Byte combination information 166 composed of the first information SB and the second information BMR is issued. In response to this, 4-byte data BY0-3 in the rectangular area 22 is simultaneously output to the input / output terminal DQ. A similar operation is performed in the case of the write command WT. That is, the four 4-byte terminals BY0-3 of the input / output terminal DQ are associated with the byte data in CA1, CA1, CA0, CA0 corresponding to the first read command RD, and the next read command RD. Corresponding to each byte data in CA5, CA5, CA4 and CA4. The correspondence between the column addresses corresponding to the remaining read commands RD and the input / output terminals is as shown in the figure.

このように,入出力端子DQが4ビット幅の場合も32ビット(4バイト)幅の場合も,同じようにビットバウンダリ,バイトバウンダリの機能を実現することができる。   In this manner, the bit boundary and byte boundary functions can be realized in the same manner regardless of whether the input / output terminal DQ is 4 bits wide or 32 bits (4 bytes) wide.

図19は,簡素化されたバイトバウンダリ機能を実現する画像処理システムの構成図である。前述したとおり,システム設計において,ビッグエンディアンとリトルエンディアンの2種類のメモリマッピングのいずれかが選択可能である。それに対応して,前述の実施の形態では,バイト組み合わせ情報の第2の情報BMRに,ビッグエンディアン用のBMR=UPと,リトルエンディアン用のBMR=DOWNとを指定して,バイトシフトした矩形アクセスであっても,画像上の画素とメモリ空間内でのバイト位置とが対応つけられるようにした。   FIG. 19 is a configuration diagram of an image processing system that realizes a simplified byte boundary function. As described above, one of two types of memory mapping, big endian and little endian, can be selected in system design. Correspondingly, in the above-described embodiment, byte-shifted rectangular access is specified by specifying BMR = UP for big endian and BMR = DOWN for little endian in the second information BMR of the byte combination information. Even so, the pixel on the image can be associated with the byte position in the memory space.

図19の例は,メモリマッピング12ではリトルエンディアンに対応した構成に設計される場合,メモリ空間15内ではビッグエンディアンに対応するバイトバウンダリ機能しか対応できなくても,画像メモリ86とメモリ制御部82との間に,入出力端子群の入れ替え手段190を設けることで,システム全体がリトルエンディアンに対応したバイトバウンダリ機能を実現することができる。   In the example of FIG. 19, when the memory mapping 12 is designed to support little endian, the image memory 86 and the memory control unit 82 can be used even if only the byte boundary function corresponding to big endian can be supported in the memory space 15. By providing the input / output terminal group switching means 190 between the two, the whole system can realize a byte boundary function corresponding to little endian.

すなわち,システム側のメモリマッピングがリトルエンディアンの場合は,入れ替え手段190を設けて両者の入出力端子群の0から3を,3から0に入れ替えるようにする。この結果,画像メモリからみるとシステム側がビッグエンディアン対応に見なせるので,第2の情報BMR=UPのみに対応するメモリの構成であっても,リトルエンディアンのバイトバウンダリ機能を実現できる。   That is, when the memory mapping on the system side is little endian, the switching means 190 is provided to replace 0 and 3 of both input / output terminal groups from 3 to 0. As a result, since the system side can be regarded as supporting big endian when viewed from the image memory, a little endian byte boundary function can be realized even with a memory configuration corresponding only to the second information BMR = UP.

図20は,図19の簡素化されたバイトバウンダリ機能を実現する画像処理システムを説明する図である。図20(1)は,画像処理システム80と画像メモリ86とが互いの入出力端子T0−T3を入れ替えしないで接続する接続ユニット200で接続された例であり,図20(2)は,入れ替え接続する接続ユニット190で接続された例である。いずれの場合も,画像メモリ86は,ビッグエンディアン対応のビットバウンダリ機能のみを有し,画像処理システム80は,入出力ビット幅の4ビットのデータを,画素位置X0-X3を入出力端子T3-T1に対応付けるリトルエンディアンタイプである。   FIG. 20 is a diagram illustrating an image processing system that implements the simplified byte boundary function of FIG. FIG. 20 (1) is an example in which the image processing system 80 and the image memory 86 are connected by the connection unit 200 that is connected without replacing the input / output terminals T0 to T3. FIG. This is an example in which the connection unit 190 is connected. In any case, the image memory 86 has only a bit boundary function corresponding to big endian, and the image processing system 80 uses the 4-bit data of the input / output bit width as the pixel position X0-X3 and the input / output terminal T3- It is a little endian type corresponding to T1.

図20(1)において,アドレス単位のアクセスをしている場合(A)では,画面上の画素位置(X0-X7)とメモリ側のアドレス(CA)が1対1(X0-X3とCA=0, X4-X7とCA=1)で対応しているので問題ない。しかし,信号SBを指定してビット単位のアクセスをしようとする場合(B)は,ビッグエンディアン対応のビットバウンダリ機能(BMR=UPのみ)しか存在しないメモリでは,画素位置のシフト(X1-X4(BCDE),図中200)とメモリセルの物理位置のシフト(CBAH,図中201)の関係が一致せず,誤ったデータCBAHが転送されてしまう。この場合は,リトルエンディアン対応のビットバウンダリ機能(BMR=DOWN)があれば,メモリセル上のBCDEを出力することができる。しかし,ビッグエンディアンとリトルエンディアンの両方に対応可能なビットバウンダリ機能をメモリに持たせることはコストアップを招く。   In FIG. 20 (1), when the address unit is accessed (A), the pixel position (X0-X7) on the screen and the address (CA) on the memory side are one-to-one (X0-X3 and CA = 0, X4-X7 and CA = 1), so there is no problem. However, when the signal SB is designated to perform bit-by-bit access (B), in a memory having only a bit boundary function (only BMR = UP) corresponding to big endian, the pixel position shift (X1-X4 ( BCDE), 200 in the figure, and the shift of the physical position of the memory cell (CBAH, 201 in the figure) do not match, and erroneous data CBAH is transferred. In this case, if there is a bit boundary function (BMR = DOWN) corresponding to little endian, BCDE on the memory cell can be output. However, providing the memory with a bit boundary function that can handle both big endian and little endian causes an increase in cost.

そこで,図20(2)のように,システム側とメモリ側で入出力端子をタスキがけ接続する接続ユニット190を設けて,画像上の画素X0-X3がメモリセル上でもDQ0-DQ3に対応するようにすれば,リトルエンディアンの画像処理システム80が,みかけ上,メモリ86からはビッグエンディアンのシステムにみえるようになるため,画素位置のシフト200とメモリセルの物理位置のシフト202の関係が一致し,ビッグエンディアン対応のビットシフトしたアクセスを行っても正常なデータBCDEを転送することができる。   Therefore, as shown in FIG. 20 (2), a connection unit 190 for connecting the input / output terminals on the system side and the memory side is provided, so that the pixels X0-X3 on the image correspond to DQ0-DQ3 also on the memory cells. By doing so, the little-endian image processing system 80 appears to be a big-endian system from the memory 86, so that the relationship between the pixel position shift 200 and the memory cell physical position shift 202 is one. Therefore, normal data BCDE can be transferred even if bit-shifted access corresponding to big endian is performed.

以上の通り,入れ替え接続するたすきがけ変換可能な接続ユニット190を利用することで,ビッグエンディアン対応のビットバウンダリ(またはバイトバウンダリ)機能しかないメモリであっても,リトルエンディアン対応の画像処理システムに対してビットバウンダリ(またはバイトバウンダリ)機能を実現することができる。また,ビッグエンディアンとリトルエンディアンの両方に対応したビットバウンダリ(またはバイトバウンダリ)機能を有するメモリの場合は,入れ替え接続しない接続ユニット200でメモリとシステムとを接続すればよい。   As described above, by using the connection unit 190 that can be switched and connected by replacement, even a memory having only a bit boundary (or byte boundary) function supporting big endian can be used for an image processing system supporting little endian. Thus, a bit boundary (or byte boundary) function can be realized. In addition, in the case of a memory having a bit boundary (or byte boundary) function corresponding to both big endian and little endian, the memory and the system may be connected by the connection unit 200 that is not switched and connected.

図21は,バイトバウンダリ機能を有するメモリ構成の概念を示す図である。このメモリは,1以上の任意数(Nb)のビットでビット群を構成し,前記任意数(Nb)のビットの2以上の倍数(N)の入出力端子(Nb x N)を持ち,前記所定の倍数(N)より多い複数のビット群(Ng)で全記憶領域(Nb x Ng)を構成し,第1の動作コードに同期して複数のビット群(Ng)の内の任意の1つを選択可能なアドレス情報を受け取り,前記アドレス情報で選択された任意の1つのビット群を起点に所定の規則に従い倍数(N)と同数のビット群を選択し,前記選択されたビット群に属する複数のビット(Nb x N)は,入出力端子(Nb x N)を通して,同時に記憶情報の受け渡しを行う。   FIG. 21 is a diagram showing a concept of a memory configuration having a byte boundary function. This memory comprises a bit group with an arbitrary number (Nb) of 1 or more, and has an input / output terminal (Nb x N) of multiples (N) of 2 or more of the arbitrary number (Nb) of bits. The entire storage area (Nb × Ng) is configured by a plurality of bit groups (Ng) greater than a predetermined multiple (N), and any one of the plurality of bit groups (Ng) is synchronized with the first operation code. Address information that can be selected, and select the same number of bit groups as multiples (N) according to a predetermined rule starting from any one bit group selected by the address information. The plurality of bits (Nb x N) to which they belong simultaneously transfers the stored information through the input / output terminals (Nb x N).

上記の任意数のビット(Nb)とは,ビット単位とバイト単位の両方を含む概念であり,前述の実施の形態例に従えば,Nb=8(1バイト)である。また,倍数(N)とは,1つのアドレスから,任意数のビット(Nb)の何倍のデータをアクセスするかを表現したもので,Nb×Nが入出力端子数に対応する。前述の実施の形態例に従えばN=4で,4バイト分の入出力端子数を有する。つまり,より正確には,入出力端子数はNb×Nとなり,入出力端子数=32(=8x4)となる。   The arbitrary number of bits (Nb) is a concept including both a bit unit and a byte unit, and Nb = 8 (1 byte) according to the above-described embodiment. The multiple (N) expresses how many times the arbitrary number of bits (Nb) is accessed from one address, and Nb × N corresponds to the number of input / output terminals. According to the above embodiment, N = 4 and the number of input / output terminals for 4 bytes. That is, more precisely, the number of input / output terminals is Nb × N, and the number of input / output terminals = 32 (= 8 × 4).

また,複数(Ng)のビット群のNgとは,メモリが有する全てのビットまたはバイトのかたまり(Nbビットのビット群)の数のことであり,全記憶領域の容量をNbで割った数字と等価である。通常,一度に入出力されるビット群の数である倍数(N)より遥かに大きい数字になる。例えば64Mビットのメモリにおいて,Nb=1であればNg=64M, Nb=8であればNg=8Mである。これまでの例に従い,64Mビットのメモリで考えれば,Nb=8でNg=8Mになる。   Ng of multiple (Ng) bit groups is the number of all bits or bytes in the memory (Nb bit bit groups), and is the number obtained by dividing the capacity of the entire storage area by Nb. Is equivalent. Usually, the number is much larger than a multiple (N) that is the number of bit groups input / output at a time. For example, in a 64-Mbit memory, Ng = 64M if Nb = 1 and Ng = 8M if Nb = 8. If we consider a 64Mbit memory according to previous examples, Nb = 8 and Ng = 8M.

任意の1つのビット群を選択可能なアドレス情報とは,これまでの例に従えば,アドレス(BA,RA,CA)と起点となるビットを示す情報(SB)であり,アドレス(BA,RA,CA)により4バイトに絞り込んだデータを,さらに起点となるバイトを示す情報(SB)により,起点となるバイトに限定していた。   According to the examples so far, address information that can select any one bit group is information (SB) indicating an address (BA, RA, CA) and a starting bit, and the address (BA, RA , CA), the data narrowed down to 4 bytes is further limited to the starting byte by the information (SB) indicating the starting byte.

規則に従い倍数(N)と同数のビット群を選択とは,これまでの例に従えば,起点となるバイトと同時にアクセスされるバイトの組み合わせに関する情報(BMR)に従い複数バイトを選ぶことであり,N=4なので,BMR=Upとすれば,ある任意のバイトから,Up方向に連続した4バイトを同時にアクセスすることになる。   Selecting the same number of bits as multiples (N) according to the rule means that according to the previous examples, selecting multiple bytes according to the information (BMR) on the combination of bytes accessed simultaneously with the starting byte, Since N = 4, if BMR = Up, four consecutive bytes in the Up direction are accessed simultaneously from any given byte.

この任意の1つのビット群(これまでの例に従えば1バイト)を選択可能な情報(BA,RA,CA)と,起点となるバイトの情報(SB)と同時にアクセスされるバイトの組み合わせに関する情報(BMR)により選ばれた4バイトは,32ビット(=NbxN)の入出力端子を介して,画像処理システムにアクセスされる。   This is a combination of information (BA, RA, CA) that can select any one bit group (1 byte according to the previous examples) and bytes that are accessed at the same time as the starting byte information (SB). The 4 bytes selected by the information (BMR) are accessed to the image processing system via a 32-bit (= NbxN) input / output terminal.

図21に示されたメモリ装置は,メモリ容量が64ビットである。よって,Nb=8ビットからなるビット群がNg=8群存在する。そして,アドレス(BA,RA,CA)とスタートバイトSBとが合計3ビットで構成され,よってNg=8のビット群から1つのビット群が選択される。さらに,同時にアクセスされるN=4群のビット群は,組み合わせ情報(BMR)により決定される。よって,図21の例では,アドレス(BA,RA,CA)とスタートバイトSBとで第2群が選択され,組み合わせ情報BMR=UPにより,第2群から連続する4群(2〜5群)が同時に入出力端子からアクセスされる。   The memory device shown in FIG. 21 has a memory capacity of 64 bits. Therefore, there are Ng = 8 groups of bits consisting of Nb = 8 bits. The address (BA, RA, CA) and the start byte SB are composed of a total of 3 bits, and thus one bit group is selected from the bit group of Ng = 8. Further, N = 4 bit groups that are accessed simultaneously are determined by combination information (BMR). Accordingly, in the example of FIG. 21, the second group is selected by the address (BA, RA, CA) and the start byte SB, and the four groups (2 to 5 groups) that are continuous from the second group by the combination information BMR = UP. Are simultaneously accessed from the input / output terminals.

もし,同じ64ビットのメモリ容量であって,アドレスが1ビット増えると,Nb=4ビット単位のビット群がNg=16群存在し,入出力端子がNb×N=32のままだとすると,所定の倍数N=8となり,組み合わせ情報BMRにより他の7つのビット群が選択されることになる。   If the memory capacity is the same 64 bits and the address increases by 1 bit, there are Ng = 16 groups of bits in units of Nb = 4 bits, and the input / output terminals are still Nb × N = 32. Multiple N = 8, and the other seven bit groups are selected by combination information BMR.

[バイトバウンダリ機能を有するメモリ]
次に,バイトバウンダリ機能を有する画像メモリの構成を詳細に説明する。バイトバウンダリ機能は,コラムアドレスで選択可能なメモリ単位領域(4バイト領域)の境界を越えて4バイトのデータへのアクセスを可能にする。そのために,メモリ内では,必要な4バイトのデータを入出力する機能が付加される。以下の説明では,簡単のために,バイト組み合わせ情報として第1の情報SB(スタートバイトまたはスタートビットと称する)のみが与えられる場合を例にして説明する。第2の情報BMRはUP固定の例である。
[Memory with byte boundary functions]
Next, the configuration of an image memory having a byte boundary function will be described in detail. The byte boundary function enables access to 4-byte data across the boundary of a memory unit area (4-byte area) selectable by a column address. Therefore, a function for inputting / outputting necessary 4-byte data in the memory is added. In the following description, for the sake of simplicity, a case where only the first information SB (referred to as a start byte or a start bit) is given as byte combination information will be described as an example. The second information BMR is an example of fixed UP.

[内部コラム制御例]
まず,メモリ内部のコラム制御の具体例を幾つか説明する。
[Internal column control example]
First, some specific examples of column control in the memory will be described.

図22は,バイトバウンダリ機能を有する画像メモリの第1の例を示す図である。また,図23は,図22の動作を説明する図である。   FIG. 22 is a diagram illustrating a first example of an image memory having a byte boundary function. FIG. 23 is a diagram for explaining the operation of FIG.

図22において,図9の画像メモリと同じ構成要素には同じ引用文献番号が与えられている。アドレス信号Aはマルチプル方式で入力され,ロウアドレスRAはロウアドレスバッファ94Rに,コラムアドレスCAはコラムアドレスバッファ94Cにそれぞれラッチされる。ロウ制御部87は,選択されたメモリバンク92のロウデコーダ223にロウアドレスRAを供給する。また,コラムバッファ94C内のコラムアドレスCAも,選択されたメモリバンク内のコラムデコーダ222に供給される。   In FIG. 22, the same reference number is assigned to the same component as the image memory of FIG. The address signal A is input in a multiple manner, the row address RA is latched in the row address buffer 94R, and the column address CA is latched in the column address buffer 94C. The row control unit 87 supplies the row address RA to the row decoder 223 of the selected memory bank 92. The column address CA in the column buffer 94C is also supplied to the column decoder 222 in the selected memory bank.

メモリバンク92は,4つのメモリブロックであるバイト領域Byte0−3に分割され,各バイト領域は,メモリセルアレイ224と,第2アンプ225と,1対のデータラッチ226,227と,データバススイッチ228とを有し,1回のアクセスで1バイト(8ビット)のデータを入出力する。4つのバイト領域から合計で32ビット(4バイト)のデータが入出力バスI/Obusに入出力される。入出力バスI/Obusは32ビットの入出力端子DQ0−31にバッファを介して接続される。なお,図22には,1つのメモリバンク92のみ示され,残りの3つのメモリバンクは省略されている。   The memory bank 92 is divided into four memory blocks, byte areas Byte0-3. Each byte area includes a memory cell array 224, a second amplifier 225, a pair of data latches 226, 227, and a data bus switch 228. 1 byte (8 bits) of data is input / output in one access. A total of 32 bits (4 bytes) of data are input / output to / from the input / output bus I / Obus from the four byte areas. The input / output bus I / Obus is connected to 32-bit input / output terminals DQ0-31 via a buffer. In FIG. 22, only one memory bank 92 is shown, and the remaining three memory banks are omitted.

コラム制御部90は,コラムデコーダ222の動作タイミングを制御するコラムタイミングコントローラ220と,データラッチ回路226,227とデータバススイッチ228を制御するデータラッチセレクタ221とを有する。データラッチセレクタ221は,コラムアドレスCAとスタートバイト信号SBとに応じて,各バイト領域Byte0−3内のデータラッチ回路226,227とデータバススイッチ228とを制御する。   The column control unit 90 includes a column timing controller 220 that controls the operation timing of the column decoder 222, a data latch circuit 226, 227, and a data latch selector 221 that controls the data bus switch 228. The data latch selector 221 controls the data latch circuits 226 and 227 and the data bus switch 228 in each byte area Byte0-3 according to the column address CA and the start byte signal SB.

図23に示されるとおり,ロウアドレスRA0のページ領域内において,コラムアドレスCA0の2バイト目からコラムアドレスCA1の1バイト目までの4バイトデータをアクセスするものと仮定する。よって,スタートバイト信号SB=1である。   As shown in FIG. 23, it is assumed that 4-byte data from the second byte of the column address CA0 to the first byte of the column address CA1 is accessed in the page area of the row address RA0. Therefore, the start byte signal SB = 1.

図23のメモリチップ86には,メモリ空間と入出力端子DQとの関係が示されている。図23では,コラムアドレスCAにより一度に選択されるメモリ単位領域の4バイトデータをQ00〜Q15で示している。つまり,コラムアドレスCA0により4バイトデータQ00−03が選択され,コラムアドレスCA1により4バイトデータQ04−07が選択される。   The memory chip 86 in FIG. 23 shows the relationship between the memory space and the input / output terminals DQ. In FIG. 23, 4-byte data of the memory unit area selected at one time by the column address CA is indicated by Q00 to Q15. That is, the 4-byte data Q00-03 is selected by the column address CA0, and the 4-byte data Q04-07 is selected by the column address CA1.

図23の右側にはタイミングチャートが示されている。まず,アクティブコマンドACTと共に,図示しないバンクアドレスと共にロウアドレスRA0が与えられ,対応するバンク内のワード線が駆動されセンスアンプが活性化される。その後,リードコマンドRDと共にコラムアドレスCA0とバンク組み合わせ情報としてスタートバイト信号SB=1が与えられる。これに応答して,選択されたメモリバンク92内のコラムデコーダ222は,コラムアドレスCA0に対応する内部デコード信号222Dと,CA0を+1インクリメントしたCA1に対応する内部でコード信号222Dとを時分割で4つのバイト領域Byte0−3に出力し,各バイト領域では,CA0とCA1に対応する2組の1バイトデータをデータラッチ回路226,227にキャッシュする。そして,データバススイッチ228は,各バイト領域でのCA0とSB1の組み合わせに応じて選択される1バイトデータをいずれかのデータラッチ回路226,227から入出力バスI/Obusに出力する。つまり,CA0のデータQ01,Q02,Q03と,CA1のデータQ04とが入出力バスI/Obusに出力される。ライト動作のときは,入出力バスからいずれかのデータラッチ回路に1バイトのデータが入力される。   A timing chart is shown on the right side of FIG. First, along with the active command ACT, a row address RA0 is given together with a bank address (not shown), the word line in the corresponding bank is driven, and the sense amplifier is activated. Thereafter, the column address CA0 and the start byte signal SB = 1 are given as bank combination information together with the read command RD. In response to this, the column decoder 222 in the selected memory bank 92 time-divides the internal decode signal 222D corresponding to the column address CA0 and the code signal 222D internally corresponding to CA1 obtained by incrementing CA0 by +1. The data is output to four byte areas Byte0-3. In each byte area, two sets of 1-byte data corresponding to CA0 and CA1 are cached in the data latch circuits 226 and 227. Then, the data bus switch 228 outputs 1-byte data selected according to the combination of CA0 and SB1 in each byte area from one of the data latch circuits 226 and 227 to the input / output bus I / Obus. That is, CA0 data Q01, Q02, Q03 and CA1 data Q04 are output to the I / O bus I / Obus. During a write operation, 1-byte data is input from the input / output bus to one of the data latch circuits.

すなわち,コラムデコーダは1回のアクセスで各バイト領域で1バイト分のコラム線(ビット線)を選択する。リード動作では,各バイト領域のメモリセルアレイ224から1バイト分のデータが選択され第2アンプ225で増幅されデータラッチ回路226,227にキャッシュされる。このとき、各バイト領域では,同じコラムアドレスCAにマッピングされたメモリセルにアクセスする。コラムアドレスで選択できるメモリ単位領域(4バイト領域)の境界をまたぐバイトバウンダリアクセスを実現する為、コラムデコーダ222は1回目のアクセス終了後に再度コラム線の選択を行う。このコラム線のアドレスは前回のアドレスCA0より1番地進行したCA1である。メモリセルアレイ224から読み出された1バイトのデータは第2アンプで増幅され、1回目のアクセスとは異なるデータラッチ回路227にキャッシュされる。   That is, the column decoder selects a column line (bit line) for one byte in each byte area in one access. In the read operation, one byte of data is selected from the memory cell array 224 in each byte area, amplified by the second amplifier 225, and cached in the data latch circuits 226 and 227. At this time, in each byte area, a memory cell mapped to the same column address CA is accessed. In order to realize byte boundary access that crosses the boundary of the memory unit area (4-byte area) that can be selected by the column address, the column decoder 222 selects the column line again after the first access is completed. The address of this column line is CA1, which is one address ahead of the previous address CA0. The 1-byte data read from the memory cell array 224 is amplified by the second amplifier and cached in the data latch circuit 227 different from the first access.

したがって,データラッチ回路226,227には1回のアクセスで入出力端子DQが必要とする4バイトの2倍の8バイト分のデータが存在する為,データバススイッチ228は,各バイト領域のデータラッチ回路にキャッシュされた2バイト分のデータから半分の1バイト分のデータを選択し,入出力バスI/Obusに転送する。データラッチセレクタ221は,コラムアドレスCA0とスタートバイト信号SB=1に応じて,各バイト領域内のデータラッチ回路226,227へのキャッシュ動作と,データバススイッチ228でのスイッチ動作とを制御する。これにより,各バイト領域から異なるコラムアドレスCA0,CA1に対応するバイトデータを入出力バスI/Obusに転送することができる。   Therefore, since the data latch circuits 226 and 227 have 8 bytes of data, which is twice the 4 bytes required by the input / output terminal DQ in one access, the data bus switch 228 has data in each byte area. One half of the data is selected from the two bytes of data cached in the latch circuit and transferred to the input / output bus I / Obus. The data latch selector 221 controls the cache operation to the data latch circuits 226 and 227 in each byte area and the switch operation at the data bus switch 228 according to the column address CA0 and the start byte signal SB = 1. Thus, byte data corresponding to different column addresses CA0 and CA1 can be transferred from each byte area to the input / output bus I / Obus.

その結果,図23に示されるとおり,入出力バスI/Obusを経由して,入出力端子DQには,4バイトのデータQ04,Q01,Q02,Q03がそれぞれ転送される。このように,第2アンプ225,データラッチ回路226,227,データバススイッチ228で,入出力ユニット93が構成される。   As a result, as shown in FIG. 23, 4-byte data Q04, Q01, Q02, and Q03 are transferred to the input / output terminal DQ via the input / output bus I / Obus. As described above, the input / output unit 93 is configured by the second amplifier 225, the data latch circuits 226 and 227, and the data bus switch 228.

図24は,バイトバウンダリ機能を有する画像メモリの第2の例を示す図である。また,図25は,図24の動作を説明する図である。   FIG. 24 is a diagram illustrating a second example of an image memory having a byte boundary function. FIG. 25 is a diagram for explaining the operation of FIG.

図24において,図22と異なる構成は,メモリバンク92内の各バイト領域Byte0−3において,メモリセルアレイが2つのアレイ224−0,224−1に分割され,それぞれに第2アンプ225,データラッチ回路226,227が設けられている。1対のメモリセルアレイ224−0,224−1は,コラムアドレスCAが偶数(CA[0]=0)と,奇数(CA[0]=1)とに対応している。そして,コラムデコーダ222は,与えられたコラムアドレスCA0から,CA0とCA1のデコード信号を時分割で出力するのではなく,それら2つのデコード信号222D0,222D1を同時に分割された1対のメモリセルアレイ224−0,224−1に出力する。それに応答して,1対のメモリセルアレイは,それぞれ1バイトデータをデータラッチ回路226,227に出力する。これにより,各バイト領域は供給されたコラムアドレスCAと+1インクリメントしたコラムアドレスの2バイトのデータを同時にキャッシュすることになる。そして,データラッチセレクタ221が,コラムアドレスCAとスタートバイト信号SBとに応じて,データバススイッチ228の切り替えを制御し,必要な1バイトデータを入出力バスに転送する。4つのバイト領域がそれぞれ1バイトずつのデータを出力し,合計で4バイトのデータが入出力端子DQから出力される。   In FIG. 24, the configuration different from that in FIG. 22 is that the memory cell array is divided into two arrays 224-0 and 224-1 in each byte area Byte0-3 in the memory bank 92. Circuits 226 and 227 are provided. In the pair of memory cell arrays 224-0 and 224-1, the column address CA corresponds to an even number (CA [0] = 0) and an odd number (CA [0] = 1). The column decoder 222 does not output the decode signals of CA0 and CA1 from the given column address CA0 in a time division manner, but a pair of memory cell arrays 224 obtained by dividing the two decode signals 222D0 and 222D1 simultaneously. Output to -0, 224-1. In response to this, the pair of memory cell arrays output 1-byte data to the data latch circuits 226 and 227, respectively. As a result, each byte area simultaneously caches the supplied column address CA and 2-byte data of the column address incremented by +1. Then, the data latch selector 221 controls switching of the data bus switch 228 according to the column address CA and the start byte signal SB, and transfers necessary 1-byte data to the input / output bus. Each of the four byte areas outputs 1 byte of data, and a total of 4 bytes of data is output from the input / output terminal DQ.

ライトコマンドの場合は,入出力端子DQに供給された4バイトのデータが,コラムアドレスCAとスタートバイト信号SBとに応じて切替制御されたデータバススイッチ228を介して,2つのデータラッチ回路226,227に格納され,2つのメモリセルアレイ224−0,224−1に書き込まれる。   In the case of a write command, the 4-byte data supplied to the input / output terminal DQ is transferred to the two data latch circuits 226 via the data bus switch 228 whose switching is controlled according to the column address CA and the start byte signal SB. , 227 and written to the two memory cell arrays 224-0 and 224-1.

図25には,スタートバイト信号SB=1,バースト長BL=4の場合の動作が示されている。リードコマンドRDと同時にコラムアドレスCA0とスタートバイト信号SB=1が供給され,バースト長BL=4がモードレジスタにセットされているとすると,コラムデコーダ222が,コラムアドレスCA0とそれを+1インクリメントしたCA1に対応するデコード信号222D0,1を同時に,各バイト領域Byte0−3に供給する。それに応答して,各バイト領域の1対のメモリセルアレイ224−0,224−1が,第2アンプ225を介して,それぞれ1バイトのデータをデータラッチ回路226,227に出力する。これにより,各バイト領域から2バイトのデータがキャッシュされる。そして,データラッチセレクタ221が,コラムデータCAとスタートバイト信号SBに基づいて,各バイト領域においていずれのデータラッチ回路のデータを選択するかの制御信号S221(4つのバイト領域に1ビットずつ合計4ビット)をデータバススイッチ228に供給し,データバススイッチ内のスイッチ動作を制御する。その結果,最初のサイクルでは,4バイトのデータQ04,Q01−03が入出力バスI/Obusに転送される。   FIG. 25 shows the operation when the start byte signal SB = 1 and the burst length BL = 4. Assuming that the column address CA0 and the start byte signal SB = 1 are supplied simultaneously with the read command RD and the burst length BL = 4 is set in the mode register, the column decoder 222 has the column address CA0 and CA1 obtained by incrementing it by +1. Are simultaneously supplied to the byte areas Byte0-3. In response to this, the pair of memory cell arrays 224-0 and 224-1 in each byte area outputs 1-byte data to the data latch circuits 226 and 227 via the second amplifier 225, respectively. As a result, 2-byte data is cached from each byte area. Then, based on the column data CA and the start byte signal SB, the data latch selector 221 controls which data latch circuit data is selected in each byte area (total of 4 bits in 4 byte areas, one bit at a time). Bit) is supplied to the data bus switch 228 to control the switch operation in the data bus switch. As a result, in the first cycle, 4-byte data Q04 and Q01-03 are transferred to the input / output bus I / Obus.

図25では,バースト長BL=4であるため,コラムタイミングコントローラ220の制御にしたがって,コラムデコーダ222は,コラムアドレスCA2,CA3に対応するデコード信号222D0,222D1を発行し,更に8バイトのデータをデータラッチ回路22,227にキャッシュする。データラッチ回路226,227は,CA0,CA1の8バイトデータも保持する必要があるので,各データラッチ回路はそれぞれ2バイトのデータを保持できる構成になっている。その結果,新たに8バイトデータQ08−Q15がデータラッチ回路にラッチされる。そして,前クロックサイクルで保持していた8バイトデータQ00−Q15と現クロックサイクルで保持した8バイトデータQ08−A15から,4バイトデータQ05−Q08がデータバススイッチ228により入出力バスに転送される。よって,この場合のデータラッチセレクタ221のセレクト信号S221は,8ビット(各バイト領域に2ビット)で構成される。   In FIG. 25, since the burst length BL = 4, the column decoder 222 issues decode signals 222D0 and 222D1 corresponding to the column addresses CA2 and CA3 under the control of the column timing controller 220, and further outputs 8-byte data. The data latch circuits 22 and 227 are cached. Since the data latch circuits 226 and 227 need to hold 8-byte data of CA0 and CA1, each data latch circuit is configured to hold 2 bytes of data. As a result, 8-byte data Q08-Q15 are newly latched in the data latch circuit. Then, 4-byte data Q05-Q08 is transferred to the input / output bus by data bus switch 228 from 8-byte data Q00-Q15 held in the previous clock cycle and 8-byte data Q08-A15 held in the current clock cycle. . Therefore, the select signal S221 of the data latch selector 221 in this case is composed of 8 bits (2 bits in each byte area).

そして,次のクロックサイクルで,コラムデコーダ222は,コラムアドレスCA4,CA5に対応するデコード信号222D0,222D1を発行し,更に8バイトのデータQ16−Q23をデータラッチ回路にキャッシュする。そして,データバススイッチ228は,4バイトのデータQ09−Q12を転送する。そして,更に次のクロックサイクルでは,データバススイッチ228が4バイトデータQ13−Q16を入出力バスに転送する。この時は,メモリセルアレイから新たに8バイトデータをキャッシュする必要はない。   In the next clock cycle, the column decoder 222 issues decode signals 222D0 and 222D1 corresponding to the column addresses CA4 and CA5, and caches 8-byte data Q16 to Q23 in the data latch circuit. Data bus switch 228 transfers 4-byte data Q09-Q12. In the next clock cycle, the data bus switch 228 transfers the 4-byte data Q13-Q16 to the input / output bus. At this time, it is not necessary to cache new 8-byte data from the memory cell array.

ライト動作も,前述と同様であり,バースト長BL=4の場合は,4サイクルで4バイトデータが入出力端子DQに供給され,データバススイッチ228を介してデータラッチ回路226,227に格納される。そして,コラムデコーダ222からのコラムアドレスCA0,1,CA2,3,CA4,5のデコード信号に応答して,合計で16バイトデータが3サイクルでメモリセルアレイ内に書き込まれる。   The write operation is the same as described above. When the burst length BL = 4, 4 bytes of data are supplied to the input / output terminal DQ in 4 cycles and stored in the data latch circuits 226 and 227 via the data bus switch 228. The In response to the decode signals of column addresses CA0, 1, CA2, 3, CA4, and 5 from the column decoder 222, a total of 16 byte data is written into the memory cell array in three cycles.

図26は,バイトバウンダリ機能を有する画像メモリの第2の例の変形例(1)の動作を示す図である。図25の例では,各バイト領域Byte0−3が2バイトのデータを1対のデータラッチ回路226,227に同時にキャッシュしていた。それに対して,図26の変型例では,リードコマンドRD後の最初のコラム制御では,コラムデコーダ222がコラムアドレスCA0,CA1の内部デコード信号222D0,222D1を同時に発行して,各バイト領域で2バイトのデータを1対のデータラッチ回路に同時にキャッシュする。そして,その後のキャッシュ動作では,コラムデコーダ222が,偶数側(CA2,CA4)の内部デコード信号222D0と奇数側(CA3)の内部デコード信号222D1とを,交互に発行し,各バイト領域は1バイトデータを1対のデータラッチ回路226,227に交互にキャッシュする。   FIG. 26 is a diagram illustrating an operation of the modification (1) of the second example of the image memory having the byte boundary functions. In the example of FIG. 25, each byte area Byte0-3 caches 2 bytes of data in the pair of data latch circuits 226 and 227 simultaneously. On the other hand, in the modified example of FIG. 26, in the first column control after the read command RD, the column decoder 222 issues the internal decode signals 222D0 and 222D1 of the column addresses CA0 and CA1 simultaneously, and 2 bytes in each byte area. Are simultaneously cached in a pair of data latch circuits. In the subsequent cache operation, the column decoder 222 alternately issues the internal decode signal 222D0 on the even side (CA2, CA4) and the internal decode signal 222D1 on the odd side (CA3), and each byte area has 1 byte. Data is alternately cached in a pair of data latch circuits 226 and 227.

つまり,最初は8バイトデータQ00−Q07をキャッシュし,次からは4バイトデータQ08−Q11,Q12−Q15,Q16−Q19をデータラッチ回路にキャッシュする。そして,データバススイッチ228が,転送すべき4バイトデータDQ1−DQ4,Q05−Q08,Q09−Q12,Q13−Q16を入出力バスに順番に転送する。この場合も,データラッチセレクタ221のセレクト信号S221は,8ビット(各バイト領域に2ビット)で構成される。以上のように,リード動作において,コラムアドレスのデコード信号によるメモリセルアレイからのデータのデータラッチ回路へのキャッシュ動作は4サイクルで行われ,データラッチ回路から入出力バスへのデータ転送動作も4サイクルで行われる。   That is, the 8-byte data Q00-Q07 is first cached, and the 4-byte data Q08-Q11, Q12-Q15, Q16-Q19 are cached in the data latch circuit from the next. Then, the data bus switch 228 sequentially transfers the 4-byte data DQ1-DQ4, Q05-Q08, Q09-Q12, Q13-Q16 to be transferred to the input / output bus. Also in this case, the select signal S221 of the data latch selector 221 is composed of 8 bits (2 bits in each byte area). As described above, in the read operation, the cache operation of the data from the memory cell array to the data latch circuit by the decode signal of the column address is performed in 4 cycles, and the data transfer operation from the data latch circuit to the input / output bus is also performed in 4 cycles. Done in

書き込み動作の場合も,4サイクルで4バイトデータが入出力端子DQに供給され,4サイクルでデータバススイッチ228を介してデータラッチ回路226,227に格納される。そして,コラムデコーダ222からのコラムアドレスCA0/1,CA2,CA3,CA4のデコード信号に応答して,合計で16バイトデータが4サイクルでメモリセルアレイ内に書き込まれる。   Also in the case of the write operation, 4 bytes of data are supplied to the input / output terminal DQ in 4 cycles, and stored in the data latch circuits 226 and 227 via the data bus switch 228 in 4 cycles. Then, in response to the decode signals of column addresses CA0 / 1, CA2, CA3, and CA4 from the column decoder 222, a total of 16 byte data is written into the memory cell array in 4 cycles.

図27は,バイトバウンダリ機能を有する画像メモリの第2の例の変形例(2)の動作を示す図である。この例は,DDR(Double Data Rate)に適用される例である。DDRのSDRAMは,クロックCLKの立ち上がりエッジと立ち下がりエッジの両方でDQ端子からデータの入出力を行う。つまり,立ち上がりエッジで4バイトデータQ05−Q08,立ち下がりエッジで4バイトデータQ09−Q12がそれぞれ入出力される。   FIG. 27 is a diagram illustrating the operation of the modification (2) of the second example of the image memory having the byte boundary functions. This example is an example applied to DDR (Double Data Rate). The DDR SDRAM inputs and outputs data from the DQ terminal at both the rising and falling edges of the clock CLK. That is, 4-byte data Q05-Q08 is input / output at the rising edge, and 4-byte data Q09-Q12 is input / output at the falling edge.

このように入出力レートが2倍になるので,メモリ内部のキャッシュするデータ量も2倍にする必要がある。図27の例では,リードコマンドRDの後の最初のキャッシュサイクルで16バイトのデータQ00−Q03,Q04−Q07,Q08−Q11,Q12−Q15が同時にデータラッチ回路にキャッシュされ,16バイトデータから4バイトデータQ05−Q08がクロックの立ち上がりエッジでI/Oバスに転送され,次の4バイトデータQ09−Q12がクロックの立ち下がりエッジでI/Oバスに転送される。   Since the input / output rate is doubled in this way, it is necessary to double the amount of data cached in the memory. In the example of FIG. 27, 16 bytes of data Q00-Q03, Q04-Q07, Q08-Q11, Q12-Q15 are simultaneously cached in the data latch circuit in the first cache cycle after the read command RD, and 4 bytes from the 16-byte data. Byte data Q05-Q08 is transferred to the I / O bus at the rising edge of the clock, and the next 4-byte data Q09-Q12 is transferred to the I / O bus at the falling edge of the clock.

図27のような16バイトデータの一括キャッシュを可能にするために,メモリは,図24におけるバイト領域Byte0−3内で,4つのメモリセルアレイに分割され,それぞれに第2アンプ,データラッチ回路が設けられる。そして,各バイト領域で,コラムデコーダ222は,先頭コラムアドレスCA1に対応してコラムアドレスCA0−3の内部デコード信号を,4つのメモリセルアレイに供給し,4バイトデータが4つのデータラッチ回路にキャッシュされる。そして,4つのデータラッチ回路からデータラッチセレクト信号S221によりデータバススイッチ228により選択されたデータラッチ回路の1バイトデータが入出力バスに転送される。図中,コアバスCorebusは,メモリセルアレイの入出力バスに対応し,それらのデータはデータラッチ回路にキャッシュされる。   In order to enable batch cache of 16-byte data as shown in FIG. 27, the memory is divided into four memory cell arrays in the byte area Byte0-3 in FIG. 24, and a second amplifier and a data latch circuit are respectively provided. Provided. In each byte area, the column decoder 222 supplies the internal decode signal of the column address CA0-3 corresponding to the head column address CA1 to the four memory cell arrays, and the 4-byte data is cached in the four data latch circuits. Is done. Then, 1-byte data of the data latch circuit selected by the data bus switch 228 by the data latch select signal S221 is transferred from the four data latch circuits to the input / output bus. In the figure, a core bus Corebus corresponds to an input / output bus of a memory cell array, and those data are cached in a data latch circuit.

なお,図27の例では,入力コラムアドレスCAのLSB(CA[0])を無視する構成になっていて,入力コラムアドレスCA0,CA1のいずれの場合も,常にコラムアドレスCA0−3に対応するデータがアクセスされる。つまり,入力コラムアドレスが奇数,偶数に関わりなく,ペアリングされるコラムアドレスは固定的になっている。   In the example of FIG. 27, the LSB (CA [0]) of the input column address CA is ignored, and the input column addresses CA0 and CA1 always correspond to the column addresses CA0-3. Data is accessed. In other words, the paired column address is fixed regardless of whether the input column address is odd or even.

さらに,次のクロックサイクルでは,コラムデコーダ222がコラムアドレスCA4−7の内部デコード信号を4つのメモリセルアレイに発行し,さらに4バイトデータを4つのデータラッチ回路にキャッシュする。これにより,16バイトデータQ16−Q31がデータラッチ回路にラッチされ,そのなかから選択された,4バイトデータQ13−Q16と,4バイトデータQ17−Q20とが,クロックの立ち上がりエッジと立ち下がりエッジでそれぞれ出力される。   Further, in the next clock cycle, the column decoder 222 issues an internal decode signal of the column address CA4-7 to the four memory cell arrays, and further caches 4-byte data in the four data latch circuits. As a result, the 16-byte data Q16 to Q31 are latched by the data latch circuit, and the 4-byte data Q13 to Q16 and the 4-byte data Q17 to Q20 selected from the latches are generated at the rising and falling edges of the clock. Each is output.

ライト動作では,上記と逆方向に書き込みデータが入出力端子DQからデータラッチ回路を介してメモリセルアレイ内に書き込まれる。   In the write operation, write data is written in the memory cell array from the input / output terminal DQ through the data latch circuit in the reverse direction.

図27の場合も,データラッチセレクト信号S221は,各バイト領域に2ビット,合計で8ビットの制御信号である。そのようなデータラッチセレクト信号は,コラム制御部90内のデータラッチセレクタ220がコラムアドレスCAとスタートバイト信号SBに応じて生成する。   In the case of FIG. 27 as well, the data latch select signal S221 is a control signal of 8 bits in total for 2 bits in each byte area. Such a data latch select signal is generated by the data latch selector 220 in the column controller 90 according to the column address CA and the start byte signal SB.

図28は,バイトバウンダリ機能を有する画像メモリの第2の例の変形例(3)の動作を示す図である。これも図27と同様にDDRに対応する動作例であり,図27と異なる点は,入力コラムアドレスCAが奇数か偶数かに応じて,同時にコラムアクセスされるアドレスの組み合わせが異なる。つまり,入力コラムアドレスCAとそれに+1,+2,+3したCAに対応するデータが同時にアクセスされる。つまり,入力コラムアドレスCA1の場合は,CA1,CA2,CA3,CA4のデータがアクセスされる。つまり,コラムデコーダは,入力コラムアドレスCAのLSB(CA[0])を監視して,同時アクセスすべきコラムアドレスを決定する。   FIG. 28 is a diagram illustrating the operation of the modification (3) of the second example of the image memory having the byte boundary functions. This is also an example of an operation corresponding to DDR as in FIG. 27. The difference from FIG. 27 is that the combination of addresses accessed simultaneously is different depending on whether the input column address CA is odd or even. That is, the data corresponding to the input column address CA and the +1, +2, +3 CA are simultaneously accessed. That is, in the case of the input column address CA1, the data of CA1, CA2, CA3, CA4 are accessed. That is, the column decoder monitors the LSB (CA [0]) of the input column address CA and determines the column address to be accessed simultaneously.

図28に示されるとおり,入力コラムアドレスCA1に対して,コラムデコーダは,CA1−CA4の内部デコード信号222D0−3を生成し,各バイト領域で4バイトデータ,合計で16バイトデータがデータラッチ回路にキャッシュされる。そして,次のクロックサイクルではCA5−CA8の内部デコード信号222D0−3を生成し,更に16バイトデータがキャッシュされる。よって,キャッシュされる16バイトデータが,図27と4バイトだけずれている。   As shown in FIG. 28, for the input column address CA1, the column decoder generates an internal decode signal 222D0-3 of CA1-CA4, and 4 bytes data in each byte area, a total of 16 bytes data is a data latch circuit. Cached. In the next clock cycle, internal decode signals 222D0-3 of CA5-CA8 are generated, and 16-byte data is cached. Therefore, the cached 16-byte data is shifted by 4 bytes from FIG.

よって,図28のリード動作及びライト動作も図27と同様のメモリ構成で実現できる。   Therefore, the read operation and the write operation of FIG. 28 can be realized with the same memory configuration as that of FIG.

図29は,バイトバウンダリ機能を有する画像メモリの第3の例を示す図である。また,図30は,図29の動作を説明する図である。第3の例では,バイトバウンダリ機能により入出力される4バイトデータQ01−Q04を,各バイト領域Byte0−3への1回のコラムアクセスによりアクセスし,入出力バスに転送する。つまり,前述の第1,第2の例のように隣接するコラムアドレスのメモリ単位領域に対する4バイトデータのアクセスのために,それより多い8バイトデータまたは16バイトデータを隣接コラムアドレスの複数メモリ単位領域からキャッシュをすることはしない。   FIG. 29 is a diagram illustrating a third example of an image memory having a byte boundary function. FIG. 30 is a diagram for explaining the operation of FIG. In the third example, 4-byte data Q01-Q04 input / output by the byte boundary function is accessed by one column access to each byte area Byte0-3 and transferred to the input / output bus. That is, in order to access 4-byte data to the memory unit area of the adjacent column address as in the first and second examples described above, a larger number of 8-byte data or 16-byte data is stored in a plurality of memory units of the adjacent column address. Do not cache from the region.

図29に示されるとおり,コラム制御部90は,コラムアドレスコントローラ290を有し,メモリバンク92内の各バイト領域Byte0−3内のコラムシフタ回路291に,コラムアドレスCAを+1シフトすべきか否かのシフト制御信号S290を供給する。各バイト領域は,コラムシフタ291と,その出力をデコードするコラムデコーダ222と,内部デコード信号222Dにより1バイトデータを入出力するメモリセルアレイ224と,第2アンプと,データラッチ回路226と,データバススイッチ回路228とを有する。各バイト領域内のコラムシフタ291は,シフト制御信号S290に応答して,コラムアドレスCAを+1シフトする又はシフトしないでコラムアドレスをコラムデコーダ222に出力する。データラッチ回路226は,1バイトデータのみ保持できればよい。したがって,データバススイッチ回路228は,データラッチ回路226内の1バイトデータを常に選択して,入出力バスI/Obusに転送するだけである。   As shown in FIG. 29, the column control unit 90 includes a column address controller 290, and determines whether or not the column address CA should be shifted +1 to the column shifter circuit 291 in each byte area Byte 0-3 in the memory bank 92. The shift control signal S290 is supplied. Each byte area includes a column shifter 291, a column decoder 222 that decodes the output, a memory cell array 224 that inputs and outputs 1-byte data by an internal decode signal 222D, a second amplifier, a data latch circuit 226, a data bus And a switch circuit 228. In response to the shift control signal S290, the column shifter 291 in each byte area outputs the column address to the column decoder 222 with or without shifting the column address CA by +1. The data latch circuit 226 only needs to hold 1-byte data. Therefore, the data bus switch circuit 228 always selects 1-byte data in the data latch circuit 226 and transfers it to the input / output bus I / Obus.

図30の動作を示す図によれば,コラムアドレスコントローラ290が,入力コラムアドレスCA0とスタートバイト信号SBとに応じて,バイト領域Byte0のコラムシフタ291にコラムアドレスCA0を+1シフトしてCA1を生成させるよう制御し,他のバイト領域Byte1−3のコラムシフタには+1シフトさせないよう制御する。その結果,バイト領域Byte0では,コラムアドレスCA1に対応する内部デコード信号222Dに基づいて1バイトデータQ04がアクセスされ,データラッチ回路226にラッチされる。また,他のバイト領域Byte1−3では,コラムアドレスCA0に対応する内部デコード信号222Dにもとづいて各1バイトデータQ01,Q02,Q03がアクセスされ,データラッチ回路226にラッチされる。   Referring to FIG. 30, the column address controller 290 generates CA1 by shifting the column address CA0 by +1 to the column shifter 291 in the byte area Byte0 in accordance with the input column address CA0 and the start byte signal SB. Control is performed so that the column shifters of other byte areas Byte1-3 do not shift by +1. As a result, in the byte area Byte0, 1-byte data Q04 is accessed based on the internal decode signal 222D corresponding to the column address CA1, and is latched by the data latch circuit 226. In the other byte areas Byte1-3, the 1-byte data Q01, Q02, Q03 are accessed based on the internal decode signal 222D corresponding to the column address CA0 and latched by the data latch circuit 226.

上記のとおり,図29,図30の第3の例では,メモリ内部でコラムアドレスをアクセス対象の4バイトデータに対応させて発生しているので,その分コラムデコーダ側が複雑な構成になるが,4バイトより多いバイトデータのキャッシュ動作をなくすことができるので,入出力ユニット93での構成がシンプル化され,且つメモリバンク内の消費電力を削減することができる。   As described above, in the third example of FIGS. 29 and 30, since the column address is generated in the memory in correspondence with the 4-byte data to be accessed, the column decoder side has a complicated structure. Since it is possible to eliminate the cache operation of byte data having more than 4 bytes, the configuration of the input / output unit 93 is simplified and the power consumption in the memory bank can be reduced.

リード動作では,各バイト領域でコラムデコーダ222からのコラムアドレスに対応する1バイトデータをデータラッチ回路226に出力し,データバススイッチ228を介して入出力端子DQに転送する。ライト動作では,入出力端子DQに入力された4バイトデータが,各バイト領域でデータバススイッチ228を介してデータラッチ回路226にラッチされる。そして,各バイト領域でコラムデコーダ222からのコラムアドレスに対応するメモリにラッチされたデータが書き込まれる。   In the read operation, 1-byte data corresponding to the column address from the column decoder 222 is output to the data latch circuit 226 in each byte area, and transferred to the input / output terminal DQ via the data bus switch 228. In the write operation, 4-byte data input to the input / output terminal DQ is latched by the data latch circuit 226 via the data bus switch 228 in each byte area. Then, the latched data is written in the memory corresponding to the column address from the column decoder 222 in each byte area.

上記の図22〜図31に示したバンク内の4つのバイト領域は,コラムアドレスで選択されるメモリ単位領域が4ビットで構成される場合は,4つのビット領域になり,各ビット領域からは1ビット単位のデータが複数組または単数組でアクセスされる。   The four byte areas in the bank shown in FIGS. 22 to 31 are four bit areas when the memory unit area selected by the column address is composed of four bits. One bit unit of data is accessed as a plurality of sets or a single set.

[入出力端子との対応制御]
次に,画像メモリ内における入出力端子DQとメモリセルアレイ内のバスまたはデータラッチ回路との対応制御例について説明する。
[Control with input / output terminals]
Next, an example of correspondence control between the input / output terminal DQ in the image memory and the bus or data latch circuit in the memory cell array will be described.

図31は,バイトバウンダリ機能を有する画像メモリの入出力端子との対応手段を示す図である。図32は,図31の動作を示す図である。この入出力端子との対応手段では,図32に示されるとおり,メモリ空間内のコラムアドレスCAに対応する4バイトデータは,常に同じ入出力端子群DQ[7:0]〜DQ[31:24]に対応付けられ,動的に対応関係を入れ替えることは行わない。つまり,入出力端子DQとメモリ内のバス(メモリセルアレイ224の入出力バス)との対応関係(割付関係)は,スタートバイト信号SBの影響を受けず常に固定的である。よって,ライト時とリード時でスタートバイト信号SBが異なっていても,ライト時に入力される入出力端子DQとリード時に出力される入出力端子DQとは同じ端子である。   FIG. 31 is a diagram showing a correspondence means with an input / output terminal of an image memory having a byte boundary function. FIG. 32 is a diagram illustrating the operation of FIG. In the means for correspondence with the input / output terminals, as shown in FIG. 32, 4-byte data corresponding to the column address CA in the memory space is always the same input / output terminal group DQ [7: 0] to DQ [31:24 ], And the correspondence relationship is not dynamically changed. That is, the correspondence (assignment relationship) between the input / output terminal DQ and the bus in the memory (input / output bus of the memory cell array 224) is always fixed without being affected by the start byte signal SB. Therefore, even if the start byte signal SB is different between writing and reading, the input / output terminal DQ input during writing and the input / output terminal DQ output during reading are the same terminal.

図31には,コラムアドレスCAで選択される4バイト領域の境界をまたぐ4バイトアクセスする場合のDQ端子との接続方法が示されている。この図ではコラムアドレスCA0内の4バイト領域のByte1(Q01)からのリード動作(SB=1)を想定している。   FIG. 31 shows a connection method with the DQ terminal in the case of performing 4-byte access across the boundary of the 4-byte area selected by the column address CA. This figure assumes a read operation (SB = 1) from Byte1 (Q01) in the 4-byte area in the column address CA0.

入出力端子DQの入れ替えを行わない場合、Byte1のデータとして記憶したデータはスタートバイト信号SBに依存せずに必ずByte1に対応するDQ端子に出力される。そのため、メモリセルアレイ224と入出力バッファ94I/Oの接続は常に固定的に割り付けられる。従って、スタートバイト信号SBの指定は,単にメモリセルアレイ224のどのコラムアドレスCAのバスを入出力バッファ94I/Oに接続すべきかの判別に利用される。   When the input / output terminal DQ is not exchanged, the data stored as Byte1 data is always output to the DQ terminal corresponding to Byte1 without depending on the start byte signal SB. Therefore, the connection between the memory cell array 224 and the input / output buffer 94 I / O is always fixedly assigned. Therefore, the designation of the start byte signal SB is simply used to determine which column address CA bus of the memory cell array 224 should be connected to the input / output buffer 94 I / O.

図31の例は,図22の第1の例,図24の第2の例に対応する構成例であり,各バイト領域Byte0−3が1対の領域(奇数コラムアドレス,CA[0]=0と,偶数コラムアドレス,CA[0]=1)に分割されている。つまり,図24と同様に,コラムアドレスCAが奇数と偶数の2つのメモリセル領域が存在し、その中がさらに4つのByte領域に分割されている。バイト領域Byte0 Area〜Byte3 Areaは,コラムデコーダからデータラッチ回路までを含むものとする。リード動作の場合、1回のアクセスに必要なデータの2倍のデータがByte Areaから出力され,データバススイッチ228のスイッチ群(図中8個の四角)でその半分の4バイトデータが入出力バッファ94I/Oに接続される。   The example of FIG. 31 is a configuration example corresponding to the first example of FIG. 22 and the second example of FIG. 24, and each byte area Byte0-3 is a pair of areas (odd column address, CA [0] = 0 and even column address, CA [0] = 1). That is, as in FIG. 24, there are two memory cell areas with odd and even column addresses CA, which are further divided into four byte areas. The byte areas Byte0 Area to Byte3 Area include from the column decoder to the data latch circuit. In the case of a read operation, twice the data required for one access is output from the Byte Area, and half of the 4-byte data is input / output by the switch group of the data bus switch 228 (eight squares in the figure). Connected to buffer 94 I / O.

このように入出力端子DQの入れ替えを行わない場合,メモリセルのByte1 Areaから出力されたデータQ01は入出力バッファ94I/OのByte1に相当する入出力端子DQ[15:8]に必ず接続される。従って,バイトスタート信号SBを用いたデータバススイッチ228の制御は,2つのコラムアドレスCAに対応する領域のいずれのデータラッチ回路を入出力バッファ94I/Oと接続するかの制御である。   When the input / output terminal DQ is not replaced in this way, the data Q01 output from the Byte1 Area of the memory cell is always connected to the input / output terminal DQ [15: 8] corresponding to Byte1 of the input / output buffer 94I / O. The Therefore, the control of the data bus switch 228 using the byte start signal SB is control of which data latch circuit in the area corresponding to the two column addresses CA is connected to the input / output buffer 94 I / O.

図24における4つのバイト領域Byte0−3内のデータバススイッチ228が,図31のデータバススイッチ228にまとめて示されている。よって,各バイト領域のデータバススイッチ228は,図31内の同じ入出力端子DQに対応する1対のスイッチで構成される。   The data bus switches 228 in the four byte areas Byte0-3 in FIG. 24 are collectively shown as the data bus switch 228 in FIG. Therefore, the data bus switch 228 in each byte area is composed of a pair of switches corresponding to the same input / output terminal DQ in FIG.

図33は,バイトバウンダリ機能を有する画像メモリの入出力端子との対応手段を示す図である。図34は,図33の動作を示す図である。この入出力端子との対応手段では,図34に示されるとおり,メモリ空間内のコラムアドレスCAに対応する4バイトデータは,スタートバイト信号SBに応じて先頭バイトから順番に入出力端子群DQ[7:0]〜DQ[31:24]に対応付けられ,メモリセルアレイ224と入出力端子群DQとの間で動的に対応関係が入れ替えられる。つまり,入出力端子群DQとメモリ内のバスと対応関係(割付関係)はスタートバイト信号SBの影響を受けて動的に変化する。よって,ライト時とリード時でスタートバイト信号SBが異なっていると,ライト時に入力される入出力端子群DQとリード時に出力される入出力端子群DQとは異なる端子になる。   FIG. 33 is a diagram showing a correspondence means with an input / output terminal of an image memory having a byte boundary function. FIG. 34 is a diagram illustrating the operation of FIG. In the means corresponding to the input / output terminals, as shown in FIG. 34, the 4-byte data corresponding to the column address CA in the memory space is sequentially input / output terminal group DQ [ 7: 0] to DQ [31:24], and the correspondence relationship is dynamically switched between the memory cell array 224 and the input / output terminal group DQ. That is, the correspondence relationship (allocation relationship) between the input / output terminal group DQ and the bus in the memory changes dynamically under the influence of the start byte signal SB. Therefore, if the start byte signal SB is different between writing and reading, the input / output terminal group DQ input during writing and the input / output terminal group DQ output during reading become different terminals.

図34から明らかなとおり,スタートバイト信号SB=1の場合は,メモリ内のデータQ01−Q04が入出力端子群DQ[7:0]〜DQ[31:24]に対応付けられる。つまり,スタートバイト信号SBに応じてメモリセルアレイ内のバス又はデータラッチ回路と入出力端子群との対応を,先頭のバイトデータは入出力端子DQ[7:0]に,残りの3バイトデータは残りの入出力端子DQに順次対応するようにする。そのために,図33のデータバススイッチ228には,入出力バス群I/Obusとメモリセルアレイ224のバスまたはデータラッチ回路との全ての交差位置にスイッチが設けられる。そして,これらのスイッチ群をデータラッチセレクタ221からのデータラッチセレクト信号S221によりオン・オフ制御することで,上記のような動的な対応付けを実現することができる。   As is clear from FIG. 34, when the start byte signal SB = 1, the data Q01-Q04 in the memory are associated with the input / output terminal groups DQ [7: 0] to DQ [31:24]. That is, the correspondence between the bus or data latch circuit in the memory cell array and the input / output terminal group according to the start byte signal SB, the first byte data at the input / output terminal DQ [7: 0], and the remaining 3 byte data at Corresponding to the remaining input / output terminals DQ sequentially. For this purpose, the data bus switch 228 of FIG. 33 is provided with switches at all intersections between the input / output bus group I / Obus and the bus or data latch circuit of the memory cell array 224. The above-described dynamic association can be realized by controlling on / off of these switch groups by the data latch select signal S221 from the data latch selector 221.

このように,スタートバイト信号SBに応じて,メモリセルアレイ内のバスまたはデータラッチ回路に対して入出力端子DQの入れ替えを行う。具体的には,メモリセルアレイ内のバイト領域Byte1から出力されたバイトデータQ01は,SB="1"の場合には入出力バッファ94I/OのByte0に相当するDQ[7:0]に接続され,SB="0"の場合はDQ[15:8]に接続される。バイト領域Byte1のバイトデータQ05は,SB="3"の場合はDQ[23:16]に接続され,SB="2"の場合はDQ[31:24]に接続される。つまり,図33中の閉じた状態の4つのスイッチの位置が,スタートバイト信号SBに応じて右方向にずれることになる。   In this way, the input / output terminal DQ is switched for the bus or data latch circuit in the memory cell array in accordance with the start byte signal SB. Specifically, the byte data Q01 output from the byte area Byte1 in the memory cell array is connected to DQ [7: 0] corresponding to Byte0 of the input / output buffer 94I / O when SB = "1". , SB = "0", connected to DQ [15: 8]. The byte data Q05 in the byte area Byte1 is connected to DQ [23:16] when SB = "3", and is connected to DQ [31:24] when SB = "2". That is, the positions of the four switches in the closed state in FIG. 33 are shifted to the right according to the start byte signal SB.

次に,入出力端子との対応制御において,ビッグエンディアンとリトルエンディアンへの対応制御について説明する。   Next, the correspondence control between big endian and little endian in correspondence control with input / output terminals will be described.

図35は,バイトバウンダリ機能を有する画像メモリであってエンディアンに対応可能な画像メモリの構成図(1)である。この例は,図19,図20で説明した画像メモリと同様に,メモリコア350内の構成はビッグエンディアン(アップモード)にのみ対応している。つまり,バイトバウンダリ動作において,スタートバイト信号SBに対応するバイト位置から4バイトデータをアップモードでアクセスする機能のみである。その場合であっても,データバススイッチ228のスイッチ群を制御することで,ビッグエンディアン対応の画像システムとも,リトルエンディアン対応の画像システムとも正しいデータの入出力を実現することができる。   FIG. 35 is a configuration diagram (1) of an image memory having a byte boundary function and capable of corresponding to endian. In this example, as in the image memory described with reference to FIGS. 19 and 20, the configuration in the memory core 350 is compatible only with big endian (up mode). That is, in the byte boundary operation, only the function of accessing the 4-byte data in the up mode from the byte position corresponding to the start byte signal SB. Even in such a case, by controlling the switch group of the data bus switch 228, it is possible to realize correct data input / output with both a big endian compatible image system and a little endian compatible image system.

図中,モードレジスタ96には,アップモードかダウンモードかを示すバイト組み合わせ情報の第2の情報BMRが与えられ,いずれかのモードに設定される。ただし,図29などのコラムデコーダ,メモリセルアレイ,第2アンプを含むメモリコア350は,アップモード制御にしか対応していない。つまり,コラム制御回路にはアップモードコントローラ351のみを有し,ダウンモードコントローラは有していない。   In the figure, the mode register 96 is given second information BMR of byte combination information indicating the up mode or the down mode, and is set to one of the modes. However, the memory core 350 including the column decoder, the memory cell array, and the second amplifier shown in FIG. 29 is compatible only with the up mode control. That is, the column control circuit has only the up mode controller 351 and does not have the down mode controller.

図35(A)は,アップモードの場合のデータバススイッチ228を示している。つまり,ビッグエンディアンであるアップモードの場合は,メモリコア350はアップモードコントローラ351によりアップモードに制御される。よって,データバススイッチ228は,データラッチ回路226の4バイトのデータByte0−3をそのまま入出力バッファ94I/Oに接続する。つまり,メモリコア350のコアデータバスcdb00z〜cdb31zが,I/Oデータバスpdb00z〜pdb31zにストレートに接続される。   FIG. 35A shows the data bus switch 228 in the up mode. That is, in the up mode that is big endian, the memory core 350 is controlled to the up mode by the up mode controller 351. Therefore, the data bus switch 228 connects the 4-byte data bytes 0-3 of the data latch circuit 226 to the input / output buffer 94I / O as they are. That is, the core data buses cdb00z to cdb31z of the memory core 350 are directly connected to the I / O data buses pdb00z to pdb31z.

一方,図35(B)は,ダウンモードに設定された場合のデータバススイッチ228を示している。つまり,リトルエンディアンであるダウンモードの場合,メモリコア350はアップモードコントローラ351によりアップモードに制御されるが,データバススイッチ228は,データラッチ回路226の4バイトデータByte0,1,2,3を,たすきがけして入出力バッファ94I/Oの4バイトByte3,2,1,0に対応付ける。この場合は,バイト単位でコアバスcdbxxzとI/Oバスpdbxxzとが切り替えられる。   On the other hand, FIG. 35B shows the data bus switch 228 when the down mode is set. In other words, in the case of the down mode which is little endian, the memory core 350 is controlled to the up mode by the up mode controller 351, but the data bus switch 228 stores the 4-byte data Byte 0, 1, 2 and 3 of the data latch circuit 226. , And correspond to the 4-byte bytes 3, 2, 1, 0 of the input / output buffer 94 I / O. In this case, the core bus cdbxxz and the I / O bus pdbxxz are switched in byte units.

図35(B)のデータバススイッチ228は,図19,20に示した入出力端子群の入れ替え手段190と同じものを,画像メモリ86内に設けた例である。このように,メモリコアの構成はビッグエンディアンとリトルエンディアンのいずれかに対応可能な構成にし,上記のようなデータバススイッチ228を設けて,そのスイッチをダウンモードまたはアップモードに応じて切り替えることで,両方のエンディアンに対応することが可能になる。   The data bus switch 228 shown in FIG. 35B is an example in which the same one as the input / output terminal group switching means 190 shown in FIGS. As described above, the configuration of the memory core can be adapted to either big endian or little endian, and the data bus switch 228 as described above is provided, and the switch is switched according to the down mode or the up mode. , Both endian can be supported.

図36は,バイトバウンダリ機能を有する画像メモリであってエンディアンに対応可能な画像メモリの構成図(2)である。この画像メモリは,図35と同様に,アップモード制御にのみ対応可能なメモリコア構成を有し,データバススイッチ228をモードレジスタ96に設定された第2の情報BMR=UP/DOWNに応じて切り替えることで,いずれのモードにも対応可能にしている。そして,図35と異なるところは,データバススイッチ228によるデータの入れ替えは,MSB(DQ31)とLSB(DQ00)とが入れ替えられるよう行われる。つまり,4バイトの入れ替えに加えて,各バイトの8ビットのデータも入れ替えられる。   FIG. 36 is a configuration diagram (2) of an image memory having a byte boundary function and capable of corresponding to endian. Similar to FIG. 35, this image memory has a memory core configuration that can only handle up mode control, and the data bus switch 228 is set in accordance with the second information BMR = UP / DOWN set in the mode register 96. By switching, any mode can be supported. 35, the data exchange by the data bus switch 228 is performed so that the MSB (DQ31) and the LSB (DQ00) are exchanged. That is, in addition to the replacement of 4 bytes, the 8-bit data of each byte is also replaced.

図37は,バイトバウンダリ機能を有する画像メモリであってエンディアンに対応可能な画像メモリの構成図(3)である。この画像メモリは,図29の画像メモリに対応し,メモリコア350内の4つのバイト領域にのコラムアドレスの組み合わせを,動作モードに対応して変更制御し,スタートバイト信号SBに対応したバイトからアップ方向またはダウン方向の4バイトデータを4つのメモリアレイから入出力する。   FIG. 37 is a configuration diagram (3) of an image memory having a byte boundary function and capable of corresponding to endian. This image memory corresponds to the image memory of FIG. 29, controls the change of the combination of column addresses in the four byte areas in the memory core 350 corresponding to the operation mode, and starts from the byte corresponding to the start byte signal SB. 4-byte data in the up direction or down direction is input / output from the four memory arrays.

例えば,図30に示したようにコラムアドレスCA0,スタートバイト信号SB=1の場合は,4つのバイト領域Byte0−3の内部コラムアドレスは,アップモードであればCA1,CA0,CA0,CA0となり,データQ04,Q01,Q02,Q03が4バイトの入出力端子DQから入出力される。一方,ダウンモードであればCA0,CA0,CA1,CA1となり,データQ00,Q01,Q06,Q07が4バイトの入出力端子DQから入出力される。   For example, as shown in FIG. 30, when the column address CA0 and the start byte signal SB = 1, the internal column addresses of the four byte areas Byte0-3 are CA1, CA0, CA0, CA0 in the up mode, Data Q04, Q01, Q02, and Q03 are input / output from the 4-byte input / output terminal DQ. On the other hand, in the down mode, they are CA0, CA0, CA1, CA1, and data Q00, Q01, Q06, Q07 are input / output from the 4-byte input / output terminal DQ.

このように,コラムシフタ291により,アップモードとダウンモードとで,メモリコア内の4つのバイト領域Byte0−3に与えるコラムデータを切り替える。そして,スタートバイト信号SBとモード信号BMRとにより一意に決まるコラムアドレスの組み合わせが,コラムシフタ291を介して,メモリコア350内の各バイト領域に供給される。このコラムシフタ291は,コラムアドレス制御部90Aからの4つのコラムアドレスcaby0z-caby3zのうち切り替えが必要な2つのうちいずれかを,アップモード・ダウンモードUp/Downに応じて選択する。つまり,バイト領域Byte0では,caby0z,caby3zのいずれかが選択され,バイト領域Byte1では,caby1z,caby2zのいずれかが選択され,バイト領域Byte2では,caby1z,caby2zのいずれかが選択され,そして,バイト領域Byte3では,caby0z,caby3zのいずれかが選択される。   In this way, the column shifter 291 switches column data to be given to the four byte areas Byte0-3 in the memory core between the up mode and the down mode. A combination of column addresses uniquely determined by the start byte signal SB and the mode signal BMR is supplied to each byte area in the memory core 350 via the column shifter 291. The column shifter 291 selects one of the four column addresses caby0z-caby3z from the column address control unit 90A that needs to be switched according to the up mode / down mode Up / Down. In other words, in the byte area Byte0, either caby0z or caby3z is selected, in the byte area Byte1, either caby1z or caby2z is selected, in the byte area Byte2, either caby1z or caby2z is selected, and the byte In the area Byte3, either caby0z or caby3z is selected.

シングルデータレート(SDR)の場合は,1回のアクセスで4バイトデータを入出力できれば良いので,図29で説明したとおり,各バイト領域に対応するデータラッチ回路に保持された1バイトデータをそのまま入出力バスに転送すればよい。   In the case of a single data rate (SDR), it is sufficient that 4-byte data can be input / output in one access. Therefore, as described with reference to FIG. 29, 1-byte data held in the data latch circuit corresponding to each byte area is used as it is. Transfer to the input / output bus.

一方,ダブルデータレート(DDR)の場合は,1回のアクセスで8バイトデータを4バイトずつ入出力する必要がある。よって,図29の構成において,各バイト領域Byte0−3内に偶数コラムアドレス(CA[0]=0)のブロックと奇数コラムアドレス(CA[0]=1)のブロックとを有し,それら1対のブロックにスタートバイト信号SBとモード信号BMRとにより一意に決まる組み合わせのコラムデータをコラムシフタ291から供給し,データバススイッチ228により必要な4バイトデータを選択して入出力バスI/Obusに転送する。その場合は,データバススイッチ228内の各スイッチは,データラッチセレクタ221からの制御信号dabyaz-dabydzに応じて,偶数ブロックか奇数ブロックのデータを選択して入出力バスI/Obusに転送する。そのため,データラッチセレクタ221には,コラムアドレス制御部90Bからデータバス用のコラムアドレスdaby0z-daby3zが供給され,データラッチセレクタ221が,アップモード・ダウンモードUp/Downに応じて,4つのバイト領域の中から切り替えが必要な2つのうちのいずれかを選択する。この切り替え候補の組み合わせは,前述のコラムシフタ291と同じである。   On the other hand, in the case of double data rate (DDR), it is necessary to input / output 8 bytes of data 4 bytes at a time in one access. Therefore, in the configuration of FIG. 29, each byte area Byte0-3 has a block of even column address (CA [0] = 0) and a block of odd column address (CA [0] = 1). The column data of the combination uniquely determined by the start byte signal SB and the mode signal BMR is supplied from the column shifter 291 to the pair of blocks, and the necessary 4-byte data is selected by the data bus switch 228 to the input / output bus I / Obus. Forward. In this case, each switch in the data bus switch 228 selects even-numbered block or odd-numbered block data according to the control signal dabyaz-dabydz from the data latch selector 221 and transfers it to the input / output bus I / Obus. For this reason, the data latch selector 221 is supplied with the data bus column address daby0z-daby3z from the column address control unit 90B, and the data latch selector 221 has four byte areas according to the up / down mode Up / Down. Select one of the two that needs to be switched. This combination of switching candidates is the same as that of the column shifter 291 described above.

図37のように,コラムアドレスの組み合わせを制御することで,データバススイッチ228のスイッチ群のスイッチ数を減らすことができる。すなわち,図35,36に示したデータバススイッチでは,入出力端子DQ数がNバイトの場合,2N*8個のスイッチが必要となる。しかし,図37のようにコラムアドレスの組み合わせを制御することで,コラムシフタ291とデータバススイッチ228にそれぞれ2N個のスイッチが必要となり,合計で4N個のスイッチが必要になる。よって,図35,36よりもスイッチ数を1/4に減らすことができる。   As shown in FIG. 37, the number of switches in the switch group of the data bus switch 228 can be reduced by controlling the combination of column addresses. That is, in the data bus switch shown in FIGS. 35 and 36, if the number of input / output terminals DQ is N bytes, 2N * 8 switches are required. However, by controlling the combination of column addresses as shown in FIG. 37, 2N switches are required for the column shifter 291 and the data bus switch 228, respectively, and a total of 4N switches are required. Therefore, the number of switches can be reduced to ¼ as compared with FIGS.

図38,図37のDDRメモリにおけるアップモードの動作タイミングチャート図である。この例は,コラムアドレスCA1とスタートバイト信号SB=1の例であり,ビッグエンディアンでメモリ86に記憶したデータDQ05―DQ08を読み出す例である。つまり,メモリ86内のコラムアドレスに対するデータQ00-Q19と入出力端子DQとの関係は図示される通りである。   FIG. 38 is an operation timing chart of an up mode in the DDR memory of FIGS. 38 and 37. This example is an example of the column address CA1 and the start byte signal SB = 1, and is an example of reading data DQ05 to DQ08 stored in the memory 86 with big endian. That is, the relationship between the data Q00 to Q19 and the input / output terminal DQ with respect to the column address in the memory 86 is as illustrated.

前述したとおり,DDRメモリの場合は,メモリセルアレイ内の各バイト領域が偶数コラムアドレスのブロック(CA[0]=0)と奇数コラムアドレスのブロック(CA[0]=1)とを有し,それらのブロックに制御された組み合わせのコラムアドレスcabyが供給され,データバススイッチ228に制御された組み合わせのデータバス切り替え用のコラムアドレスdabyが供給される。   As described above, in the case of the DDR memory, each byte area in the memory cell array has an even column address block (CA [0] = 0) and an odd column address block (CA [0] = 1). The controlled combination column address caby is supplied to these blocks, and the controlled data bus switching column address daby is supplied to the data bus switch 228.

すなわち,基点となるコラムアドレスCAとしてCA1を入力する。それに伴って,各バイト領域Byte0−3内の偶数ブロック(CA[0]="0")と奇数ブロック(CA[0]="1")とに供給されるコラムアドレスCAが制御され,偶数ブロック(CA[0]="0")の領域はコラムアドレスCA2のコラム線が活性化され,奇数ブロック(CA[0]="1")の領域は,バイト領域Byte 0ではコラムアドレスCA3のコラム線が活性化され,バイト領域Byte1,2,3ではコラムアドレスCA1のコラム線が活性化される。   That is, CA1 is input as the column address CA serving as the base point. Accordingly, the column address CA supplied to the even number block (CA [0] = "0") and the odd number block (CA [0] = "1") in each byte area Byte0-3 is controlled. In the block (CA [0] = "0") area, the column line of the column address CA2 is activated, and in the odd block (CA [0] = "1"), the byte area Byte 0 has the column address CA3. The column line is activated, and the column line of the column address CA1 is activated in the byte areas Byte1, 2, and 3.

この結果、メモリコアのコアバスにはデータQ05〜Q12が出力される。つまり,偶数ブロックのコアバスにはデータQ08-Q11が出力され,奇数ブロックのコアバスにはデータQ5-Q7,Q12が出力される。   As a result, data Q05 to Q12 are output to the core bus of the memory core. That is, data Q08-Q11 is output to the even-numbered core bus, and data Q5-Q7, Q12 is output to the odd-numbered core bus.

DDRメモリでは,この8バイトのデータから入出力バスI/Obusに4バイトデータを転送する必要がある。そこで,データバススイッチが,スタートバイト信号SBとコラムアドレスCAに基づいて,バイト領域Byte0のみ偶数ブロック(CA[0]="0")のデータを選択し,その結果,データQ05〜Q08を入出力端子DQに出力することができる。   In DDR memory, it is necessary to transfer 4-byte data from this 8-byte data to the I / O bus. Therefore, the data bus switch selects the data of the even block (CA [0] = "0") only in the byte area Byte0 based on the start byte signal SB and the column address CA, and inputs the data Q05 to Q08 as a result. Can be output to the output terminal DQ.

ここで、偶数,奇数(CA[0]="0"/"1")の各領域で,内部コラムアドレスcabyazはcaby0zを選択し、内部コラムアドレスcabybzはcaby1zを,cabyczはcaby2zを,cabydzはcaby3zをそれぞれ選択している。同様に,偶数,奇数(CA[0]="0"/"1")の各領域でデータバス用のコラムアドレスdabyazはdaby0zを選択し,同様に,dabybzはdaby1zを,dabyczはdaby2zを,dabydzはdaby3zをそれぞれ選択している。   Here, in each of the even and odd areas (CA [0] = "0" / "1"), the internal column address cabyaz selects caby0z, the internal column address cabybz selects caby1z, cabycz selects caby2z, and cabydz Each caby3z is selected. Similarly, column address dabyaz for the data bus selects daby0z in each of the even and odd areas (CA [0] = "0" / "1"). Similarly, dabybz selects daby1z, dabycz selects daby2z, dabydz has selected daby3z respectively.

図39は,図37のDDRメモリにおけるダウンモードの動作タイミングチャート図である。この例は,コラムアドレスCA1とスタートバイト信号SB=2の例であり,リトルエンディアンでメモリ86に記憶したデータDQ05―DQ08を読み出す例である。つまり,メモリ86内のコラムアドレスに対するデータQ00-Q19と入出力端子DQとの関係は図示される通りである。図38とは,4バイトのデータと入出力端子DQとの関係が逆方向になっている。   FIG. 39 is an operation timing chart of the down mode in the DDR memory of FIG. This example is an example of the column address CA1 and the start byte signal SB = 2, and is an example of reading data DQ05 to DQ08 stored in the memory 86 in little endian. That is, the relationship between the data Q00 to Q19 and the input / output terminal DQ with respect to the column address in the memory 86 is as illustrated. The relationship between the 4-byte data and the input / output terminal DQ is opposite to that in FIG.

この場合は,基点となるコラムアドレスCAとしてCA1を入力する。それに伴って,各バイト領域Byte0−3内の偶数ブロック(CA[0]="0")と奇数ブロック(CA[0]="1")とに供給されるコラムアドレスCAが制御され、偶数ブロック(CA[0]="0")にはコラムアドレスCA2のコラム線が活性化され,奇数ブロック(CA[0]="1")では,バイト領域Byte 3はコラムアドレスCA3のコラム線が活性化され,バイト領域Byte2,1,0の各領域はコラムアドレスCA1のコラム線が活性化される。   In this case, CA1 is input as the column address CA serving as the base point. Accordingly, the column address CA supplied to the even number block (CA [0] = "0") and the odd number block (CA [0] = "1") in each byte area Byte0-3 is controlled. In the block (CA [0] = "0"), the column line of the column address CA2 is activated, and in the odd block (CA [0] = "1"), the byte area Byte 3 has the column line of the column address CA3. When activated, the column line of the column address CA1 is activated in each of the byte areas Byte2, 1,0.

この結果、メモリコアのコアバスにはデータQ05〜Q12が出力される。つまり,偶数ブロックのコアバスにはデータQ08-Q11が出力され,奇数ブロックのコアバスにはデータQ5-Q7,Q12が出力される。   As a result, data Q05 to Q12 are output to the core bus of the memory core. That is, data Q08-Q11 is output to the even-numbered core bus, and data Q5-Q7, Q12 is output to the odd-numbered core bus.

DDRメモリでは,この8バイトのデータから入出力バスI/Obusに4バイトデータを転送する必要がある。そこで,データバススイッチが,スタートバイト信号SBとコラムアドレスCAとに基づいて,バイト領域Byte3のみ偶数ブロック(CA[0]="0")のデータQ08を選択し,残りは奇数ブロックからデータQ05−07を選択し,4バイトデータQ05〜Q08を入出力端子DQに出力することができる。   In DDR memory, it is necessary to transfer 4-byte data from this 8-byte data to the I / O bus. Therefore, the data bus switch selects the data Q08 of the even block (CA [0] = "0") only in the byte area Byte3 based on the start byte signal SB and the column address CA, and the rest is the data Q05 from the odd block. -07 can be selected and 4-byte data Q05 to Q08 can be output to the I / O terminal DQ.

ここで、偶数,奇数(CA[0]="0"/"1")の各領域で,内部コラムアドレスcabyazはcaby3zを選択し、内部コラムアドレスcabybzはcaby2zを,cabyczはcaby1zを,cabydzはcaby0zをそれぞれ選択している。同様に,偶数,奇数(CA[0]="0"/"1")の各領域でデータバス用のコラムアドレスdabyazはdaby3zを選択し,同様に,dabybzはdaby2zを,dabyczはdaby1zを,dabydzはdaby0zをそれぞれ選択している。   Here, in each of the even and odd areas (CA [0] = "0" / "1"), the internal column address cabyaz selects caby3z, the internal column address cabybz selects caby2z, cabycz selects caby1z, and cabydz Each caby0z is selected. Similarly, the column address dabyaz for the data bus selects daby3z in each of the even and odd areas (CA [0] = "0" / "1"). Similarly, dabybz selects daby2z, dabycz sets daby1z, dabydz selects daby0z.

以上のとおり、図38のアップモードと比較すると,cabyz,dabyz をバイト領域Byte0とByte3で入れ替え、さらにバイト領域Byte1とByte2で入れ替えることで,ビッグエンディアンとリトルエンディアンの2種類のバイトデータの並びに対応することができる。   As described above, compared with the up mode of Fig. 38, by replacing cabyz and dabyz with byte areas Byte0 and Byte3, and further replacing byte areas Byte1 and Byte2, correspondence between two types of byte data, big endian and little endian. can do.

図40は,バイトバウンダリ機能におけるバウンダリの指定方法について説明する図である。図中,コラムアドレスCA[7:0]が#nと#n+1の隣接する4バイト領域の境界を越えてアクセスが行われるバイトバウンダリ機能では,バウンダリの指定方法がスタートバイトSBによる場合と,シフトバリューSVによる場合とが考えられる。スタートバイトSBは,バイトNから4バイトアクセスすることを意味し,シフトバリューSVが,コラムアドレスの4バイト領域の境界からNバイトシフトした位置から4バイトアクセスすることを意味する。   FIG. 40 is a diagram for explaining a boundary designation method in the byte boundary function. In the figure, in the byte boundary function in which the column address CA [7: 0] is accessed beyond the boundary between the adjacent 4-byte areas of #n and # n + 1, the boundary specification method is shifted by the start byte SB. The case of value SV is considered. The start byte SB means that 4 bytes are accessed from the byte N, and the shift value SV means that 4 bytes are accessed from a position shifted N bytes from the boundary of the 4-byte area of the column address.

その場合,エンディアンの2つのモードに対応して,アップモードとダウンモードとでは,スタートバイトSBとシフトバリューSVとの対応関係が異なってくる。つまり,アップモードなら,バイトデータの並びがByte0−3となっているので,SBとSVは等価である。しかし,ダウンモードでは,バイトデータの並びがByte3−0となっているので,SBとSVとは等価にならず,逆の関係になる。   In this case, the correspondence between the start byte SB and the shift value SV is different between the up mode and the down mode, corresponding to the two endian modes. In other words, in the up mode, since the byte data array is Byte0-3, SB and SV are equivalent. However, in the down mode, since the byte data array is Byte 3-0, SB and SV are not equivalent and have an inverse relationship.

したがって,画像メモリがスタートバイト信号SBの端子のみを有し,内部構造がシフトバリューSVに応じて制御される場合は,アップモードかダウンモードかに応じて,スタートバイト信号SBを非反転または反転して,シフトバリューSVに変換する必要がある。画像メモリがシフトバリューSV端子のみを有し,内部構造がスタートバイトSBに応じて制御される場合も同様である。   Therefore, when the image memory has only the terminal of the start byte signal SB and the internal structure is controlled according to the shift value SV, the start byte signal SB is non-inverted or inverted according to the up mode or the down mode. Thus, it is necessary to convert to shift value SV. The same applies when the image memory has only the shift value SV terminal and the internal structure is controlled according to the start byte SB.

図41は,スタートバイトSBとシフトバリューSVとの変換回路を示す図である。変換回路410は,2ビット構成410[0],410[1]であり,CMOSトランスファゲート412,413とインバータ414,415で構成され,入力スタートバイトSBが,アップモードかダウンモードかを示すカウントタイプ信号に応じて,非反転または反転してシフトバリューSVに変換される。変換回路410の真理値表411に示されるとおり,アップモードではSBは非反転されてSVになるが,ダウンモードではSBは反転されてSVになる。   FIG. 41 is a diagram showing a conversion circuit between the start byte SB and the shift value SV. The conversion circuit 410 has a 2-bit configuration 410 [0], 410 [1], and includes CMOS transfer gates 412 and 413 and inverters 414 and 415, and counts indicating whether the input start byte SB is in the up mode or the down mode. Depending on the type signal, it is non-inverted or inverted and converted to a shift value SV. As shown in the truth table 411 of the conversion circuit 410, in the up mode, SB is not inverted and becomes SV, but in the down mode, SB is inverted and becomes SV.

[矩形アクセスでのコラムアドレス制御]
図1に示したように,画像メモリのメモリ空間を画像の画素に対応付けるメモリマッピング12,14Eでは,バンクアドレスBAとロウアドレスRAで選択されるページ領域14内において,画像のマトリクス状の画素の配置に対応して,コラムアドレスCAで選択されるメモリ単位領域(4バイト領域)を所定の折り返し幅(CA Wrap)で折り返すようにマッピングされる。図1の例では,ページ領域14内はコラムアドレスCAが4単位で折り返されている。つまりコラムアドレスの折り返し幅CA Wrapは4である。このコラムアドレスの折り返し幅は,コラムアドレスのステップとも称される。
[Column address control for rectangular access]
As shown in FIG. 1, in the memory mapping 12, 14E that associates the memory space of the image memory with the pixels of the image, in the page area 14 selected by the bank address BA and the row address RA, the matrix pixels of the image Corresponding to the arrangement, the memory unit area (4-byte area) selected by the column address CA is mapped so as to be folded with a predetermined folding width (CA Wrap). In the example of FIG. 1, the column address CA is folded back by 4 units in the page area 14. That is, the column address folding width CA Wrap is 4. This column address folding width is also referred to as a column address step.

このようなコラムアドレスで選択されるメモリ単位領域を所定の折り返し幅で折り返してマッピングすることで,画像メモリで頻繁に行われる矩形アクセスのアクセス効率を高めることができる。つまり,アクティブコマンドによりページ領域をアクティブ動作させた状態で,アクセス対象の矩形領域に対応してリードコマンドとコラムアドレスを繰り返し発行することで,同じページ領域内の矩形領域へのアクセスを行うことができる。1回のアクティブ動作で同じページ領域内の矩形領域にアクセスできるので,効率的なアクセスが可能になる。   By mapping the memory unit area selected by the column address with a predetermined folding width, it is possible to increase the access efficiency of the rectangular access frequently performed in the image memory. In other words, while a page area is activated by an active command, a read command and a column address corresponding to the rectangular area to be accessed are repeatedly issued to access a rectangular area within the same page area. it can. Since a rectangular area within the same page area can be accessed with a single active operation, efficient access is possible.

図16で示されるとおり,このような矩形アクセスでは,リードコマンドRDとバンクアドレスBAとコラムアドレスCAとスタートバイト信号SBとを繰り返し発行することが必要である。しかしながら,メモリのマッピング情報,特にページ領域のコラムアドレスCAの折り返し幅(CA Wrap)があらかじめわかっていれば,矩形領域の先頭コラムアドレスCAと,矩形幅と,矩形サイズとを与えれば,画像メモリは内部で自動的にアクセスすべきコラムアドレスを発行して矩形領域の画像データにアクセスすることができる。その場合は,リードコマンドとコラムアドレスを1回発行すればよく,図16のように複数回発行する必要はない。   As shown in FIG. 16, in such rectangular access, it is necessary to repeatedly issue a read command RD, a bank address BA, a column address CA, and a start byte signal SB. However, if the mapping information of the memory, in particular, the wrapping width (CA Wrap) of the column address CA in the page area is known in advance, the image memory can be obtained by giving the first column address CA, rectangular width, and rectangular size of the rectangular area. Can access image data in a rectangular area by automatically issuing a column address to be accessed internally. In that case, the read command and the column address need only be issued once, and there is no need to issue multiple times as shown in FIG.

図42は,バイトバウンダリ機能を利用した自動矩形アクセスを説明する図である。この例では,メモリマッピング421にアクセスされるデータ領域を矢印で示している。このメモリマッピングでは,ページ領域内でコラムアドレスCAが8で折り返されている。つまり,コラムアドレス折り返し幅CAWrapが8である。よって,ページ領域14の右端のコラムアドレスCAは#07,#0F,#17,#1F(16進数)と折り返し幅CAWrap=8になっている。そして,アクセスすべき矩形領域の先頭アドレスがCA=#0Bで,スタートバイト信号SB=2で,矩形領域の幅Rwidth=2クロック(4バイト×2クロック=8バイト),矩形領域のサイズがバースト長BL=8(4×8=32バイト)である。したがって,矩形領域の高さは,BL/Rwidth=4である。   FIG. 42 is a diagram for explaining automatic rectangular access using the byte boundary function. In this example, the data area accessed by the memory mapping 421 is indicated by an arrow. In this memory mapping, the column address CA is folded back to 8 within the page area. That is, the column address folding width CAWrap is 8. Therefore, the column address CA at the right end of the page area 14 has # 07, # 0F, # 17, # 1F (hexadecimal number) and the folding width CAWrap = 8. The start address of the rectangular area to be accessed is CA = # 0B, the start byte signal SB = 2, the width of the rectangular area Rwidth = 2 clocks (4 bytes × 2 clocks = 8 bytes), and the size of the rectangular area is burst. The length BL = 8 (4 × 8 = 32 bytes). Therefore, the height of the rectangular area is BL / Rwidth = 4.

図43は,自動矩形アクセスでのタイミングチャート図である。図44は,自動矩形アクセスに必要な内部コラムアドレス演算器の構成図である。図42のような矩形アクセスをするためには,供給コラムアドレスCA=#0BとSB=2に応じて,メモリ内部でコラムアドレスCA=#0B/#0C, #0C/#0D, #13/#14, #14/#15, #1B/#1C, #1C/#1D, #23/#24, #24/#25が発行されればよい。つまり,最初のアクセスではByte2,3はCA=#0B,Byte0,1はCA=#0Cにアクセスする。2度目のアクセスではコラムアドレスCAは1だけ進行してByte2、3=#0C,Byte0,1はCA=#0Dにアクセスする。そして,この例では矩形幅RWidth=2 のため,次の3度目のアクセスはコラムアドレスCAを1だけ進行した位置とはならず,折り返されたコラムアドレスCA=#13,#14になる。したがって,コラムアドレス折り返し幅CAWrapと矩形幅Rwidthから3番目のコラムアドレスを演算により求める必要がある。この3度目のアドレスをByte2,3で考えると,現在のコラムアドレスCA=#0C(=12(10進数)),CA Wrap=8,RWidth=2にもとづき,図43中の式(CA+CAWrap−Rwidth+1)により,3度目のアクセスのCAは,CA=12+8−2+1=19(10進数)=#13(16進数)と求められる。   FIG. 43 is a timing chart for automatic rectangular access. FIG. 44 is a block diagram of an internal column address calculator required for automatic rectangular access. In order to perform the rectangular access as shown in FIG. 42, the column addresses CA = # 0B / # 0C, # 0C / # 0D, # 13 / in the memory according to the supply column addresses CA = # 0B and SB = 2. # 14, # 14 / # 15, # 1B / # 1C, # 1C / # 1D, # 23 / # 24, # 24 / # 25 should be issued. That is, in the first access, Byte 2 and 3 access CA = # 0B, and Byte 0 and 1 access CA = # 0C. In the second access, the column address CA advances by 1, and Byte2, 3 = # 0C, and Byte0,1 access CA = # 0D. In this example, since the rectangular width RWidth = 2, the next access for the third time is not the position where the column address CA has advanced by 1, but the folded column addresses CA = # 13 and # 14. Therefore, it is necessary to obtain the third column address by calculation from the column address folding width CAWrap and the rectangular width Rwidth. Considering this third address in Bytes 2 and 3, based on the current column address CA = # 0C (= 12 (decimal number)), CA Wrap = 8, RWidth = 2, the expression (CA + CAWrap−Rwidth + 1) in FIG. ), The CA for the third access is obtained as CA = 12 + 8−2 + 1 = 19 (decimal number) = # 13 (hexadecimal number).

図44にはコラム制御部90内のコラムアドレス演算器が示されている。この演算器は,外部から供給されるコラムアドレスCA,折り返したときのコラムアドレスCA(Wrap)をクロックのタイミングに同期した内部クロックpclenzに同期して+1インクリメントするコラムアドレスカウンタ440と,コラムアドレスカウンタのカウント値にCA Rwapを加算し,Rwidthを減算する演算器441と,矩形領域の折り返し時に演算器441の出力を選択するスイッチ442と,同期クロックpclenzをカウントし,アクセス中の水平方向のカウント値をカウントする矩形幅カウンタ444と,矩形幅カウンタ444の水平方向のカウント値widthzが矩形幅Rwidthと一致することを検出して,スイッチ442に切り替え信号wrapzを生成する比較器445とを有する。   FIG. 44 shows a column address calculator in the column controller 90. This computing unit includes a column address counter 440 that increments the column address CA supplied from the outside, the column address CA (Wrap) when folded back by +1 in synchronization with the internal clock pclenz synchronized with the clock timing, and a column address counter. CA Rwap is added to the count value and the Rwidth is subtracted, the calculation unit 441, the switch 442 for selecting the output of the calculation unit 441 when the rectangular area is folded, and the synchronous clock pclenz are counted, and the horizontal count during access A rectangular width counter 444 that counts the value, and a comparator 445 that detects that the horizontal count value widthz of the rectangular width counter 444 matches the rectangular width Rwidth and generates a switching signal wrapz in the switch 442.

図43のタイミングチャートに従って説明する。まず,矩形領域サイズがバースト長BL=8としてモードレジスタに設定され,また,ページ領域内のコラムアドレスの折り返し幅CAWrap=8もモードレジスタに設定されているものとする。そして,アクティブコマンドに続くリードコマンドと共に,先頭コラムアドレスCA=#0Bと,スタートバイト信号SB=2と,アクセス対象の矩形幅Rwidth=2とが供給される。これに応答して,タイミングクロックpclenzがクロックに同期して発生し,矩形幅カウンタ444がアクセス中の水平方向のカウント値widthzをカウントアップし,コラムアドレスカウンタ440が先頭コラムアドレスCA=#0Bからカウントアップする。   This will be described with reference to the timing chart of FIG. First, it is assumed that the rectangular area size is set in the mode register as the burst length BL = 8, and the column address folding width CAWrap = 8 in the page area is also set in the mode register. Then, along with the read command following the active command, the leading column address CA = # 0B, the start byte signal SB = 2, and the rectangular width Rwidth = 2 to be accessed are supplied. In response to this, the timing clock pclenz is generated in synchronization with the clock, the rectangular width counter 444 counts up the horizontal count value widthz being accessed, and the column address counter 440 starts from the top column address CA = # 0B. Count up.

最初のアクセス用に発行される内部コラムアドレスcaz[7:0]は,図43に示されるとおり,CA=#0B/#0Cである。2番目のアクセスでは,コラムアドレスカウンタ440が+1インクリメントしたコラムアドレスcaz[7:0]=#0Cに対応して, #0C/#0Dが出力される。3番目のアクセスでは,矩形幅の折り返しが必要になり,演算器441の演算値がスイッチ442により選択され,コラムアドレスcaz[7:0]=#03が出力され,それに対応して折り返し後のコラムアドレスCA= #13/#14が生成される。4番目は #14/#15が生成され,5番目で矩形領域の折り返しが行われ, #1B/#1Cが生成される。その後は, #1C/#1D, #23/#24, #24/#25が同様にして生成される。   The internal column address caz [7: 0] issued for the first access is CA = # 0B / # 0C as shown in FIG. In the second access, # 0C / # 0D is output corresponding to the column address caz [7: 0] = # 0C incremented by +1 by the column address counter 440. In the third access, it is necessary to return the rectangle width, the operation value of the arithmetic unit 441 is selected by the switch 442, the column address caz [7: 0] = # 03 is output, and the corresponding result after the return is obtained. Column address CA = # 13 / # 14 is generated. In the fourth, # 14 / # 15 is generated, and in the fifth, the rectangular area is folded and # 1B / # 1C is generated. After that, # 1C / # 1D, # 23 / # 24, # 24 / # 25 are generated in the same way.

この自動矩形アクセスに対応する画像メモリの構成は,例えば,図29に示したとおりであり,4つのバイト領域Byte0-3にバイトバウンダリ機能に対応した4つのコラムアドレスの組み合わせが供給される。つまり,図43の内部コラムアドレスcazのコラムアドレスの組み合わせが,各バイト領域内のコラムデコーダに供給される。その結果,これらのコラムアドレスのデータが4つのバイト領域からそれぞれ出力される。   The configuration of the image memory corresponding to this automatic rectangular access is, for example, as shown in FIG. 29, and a combination of four column addresses corresponding to the byte boundary functions is supplied to the four byte areas Byte0-3. That is, the combination of the column addresses of the internal column address caz in FIG. 43 is supplied to the column decoder in each byte area. As a result, the data of these column addresses are output from the four byte areas, respectively.

上記の例では,矩形アクセスの矩形幅Rwidthをリードコマンドと共に供給したが,あらかじめモードレジスタセットコマンドでモードレジスタに設定してもよい。あるいは,矩形サイズBLと矩形幅Rwidthをリードコマンドと共に供給してもよい。コラムアドレスの折り返し幅CAWrapは,画像システムがあらかじめ設定しているので,モードレジスタセットコマンドで設定するのが望ましい。   In the above example, the rectangular width Rwidth of the rectangular access is supplied together with the read command, but it may be set in the mode register in advance by the mode register set command. Alternatively, the rectangular size BL and the rectangular width Rwidth may be supplied together with the read command. The column address folding width CAWrap is set in advance by the image system, so it is desirable to set it using the mode register set command.

このように,矩形アクセスにおいて,起点となるコラムアドレスCAと,矩形幅Rwidthと,矩形サイズ(BL)とが与えられれば,あらかじめ設定されているコラムアドレスの折り返し幅CAWrapに基づいて,アクセスすべき内部コラムアドレスを自動的に生成することができる。よって,1回のリードコマンドの発行で,矩形アクセスを行うことができる。   In this way, when the column address CA, the rectangle width Rwidth, and the rectangle size (BL) as the starting point are given in the rectangular access, the access should be made based on the preset column address folding width CAWrap. An internal column address can be generated automatically. Therefore, rectangular access can be performed by issuing a single read command.

[ページ領域境界のバイトバウンダリ機能]
バイトバウンダリ機能は,コラムアドレスで選択されるメモリ単位領域(4バイト領域)の境界を越えて所定バイト(4バイト)のデータを効率的にアクセスすることができる。ところが,ページ領域境界を越えて矩形アクセスをする場合は,再度別のアクティブコマンドで隣接するページ領域をアクティブ動作させることが必要になる。
[Byte boundary function of page area boundary]
The byte boundary function can efficiently access data of a predetermined byte (4 bytes) across the boundary of the memory unit area (4 byte area) selected by the column address. However, when performing rectangular access beyond the page area boundary, it is necessary to activate the adjacent page area again with another active command.

図45は,バイトバウンダリ機能によるアクセスがページ領域の末尾に及んだ場合のメモリ動作の例を示す図である。この図では,ページ領域がコラムアドレスCA[7:0]=#00〜#FFで構成され,右端がCA=#FFの例である。この場合,図中矢印で示した4バイトのデータをバイトバウンダリ機能を利用してアクセスすると,アップモードにおいて,SB=0では,4バイトデータを出力することができるが,SB=1,2,3では,ページ領域の右端で折り返して左端のバイトデータをアクセスする。つまり,新たなアクティブ動作を行わずに同じページ領域内で折り返しアクセスが行われる例である。ダウンモードの場合は逆に,SB=0,1,2では左端から右端に折り返す(Wrap)する必要があるが,SB=3のみ折り返しは不要である。   FIG. 45 is a diagram illustrating an example of a memory operation when access by the byte boundary function reaches the end of the page area. In this figure, the page area is composed of column addresses CA [7: 0] = # 00 to #FF, and the right end is an example of CA = # FF. In this case, if 4-byte data indicated by the arrow in the figure is accessed using the byte boundary function, 4-byte data can be output at SB = 0 in the up mode, but SB = 1, 2, In 3, it wraps around the right end of the page area and accesses the byte data on the left end. In other words, this is an example in which return access is performed within the same page area without performing a new active operation. In the down mode, conversely, when SB = 0, 1, 2, it is necessary to wrap from the left end to the right end (Wrap), but only SB = 3 does not require wrapping.

上記のようなアクセスが行われると,無駄なデータが出力されるだけである。ページ領域の末尾から隣のページ領域へのアクセスを行うためには,新たなアクティブコマンドを発行して隣接ページ領域をアクティブ動作させる必要がある。   When the above access is performed, only useless data is output. In order to access the next page area from the end of the page area, it is necessary to activate a neighboring page area by issuing a new active command.

図46は,バイトバウンダリ機能によるアクセスがページ領域の末尾に及んだ場合のメモリ動作の別の例を示す図である。この例は,バースト長BLが8に設定されている例である。BL=8が設定されると,各バンク内のバーストカウンタはBL=8のカウント幅で内部コラムアドレスのカウントを繰り返す。つまり,図46の例では,バーストカウンタにより生成される内部コラムアドレスは,CA=#k8〜#kF(16ビット表記)の幅8である。このようなカウンタによりアクセス領域がバースト長BLを基準にする矩形領域に区分されるメモリの場合にも,図45と同様にバースト長領域CA=#k8〜#kFの右端でバイトバウンダリ機能を利用しようとすると,図45と同様の課題が生じる。図46の例では,アップモードでSB=1,2,3で折り返しが発生し,ダウンモードでSB=0,1,2で折り返しが発生している。これでは,無駄なデータが出力されてしまう。   FIG. 46 is a diagram illustrating another example of the memory operation when the access by the byte boundary function reaches the end of the page area. In this example, the burst length BL is set to 8. When BL = 8 is set, the burst counter in each bank repeats counting of the internal column address with the count width of BL = 8. That is, in the example of FIG. 46, the internal column address generated by the burst counter has a width 8 of CA = # k8 to #kF (16-bit notation). Even in the case of a memory in which the access area is divided into rectangular areas based on the burst length BL by such a counter, the byte boundary function is used at the right end of the burst length area CA = # k8 to #kF as in FIG. Attempting to do so causes the same problem as in FIG. In the example of FIG. 46, folding occurs in SB = 1, 2, 3 in the up mode, and folding occurs in SB = 0, 1, 2 in the down mode. In this case, useless data is output.

図47は,バイトバウンダリ機能によるアクセスがページ領域の末尾に及んだ場合のメモリ動作の別の例を示す図である。この例では,図7で説明した矩形アクセスにおけるマルチバンクアクセス機能を利用してバイトバウンダリ動作を実現する例である。つまり,アクティブコマンドACTでロウアドレスRA=#nが指定され,リードコマンドRDで起点のコラムアドレスCAがページ領域の右端のCA=#FFの場合は,矢印のようにページ領域の境界PBを超えてアクセスが行われる。   FIG. 47 is a diagram illustrating another example of the memory operation when the access by the byte boundary function reaches the end of the page area. In this example, the byte boundary operation is realized by using the multi-bank access function in the rectangular access described with reference to FIG. That is, when the row address RA = # n is specified by the active command ACT and the column address CA of the starting point is CA = # FF at the right end of the page area by the read command RD, it exceeds the boundary PB of the page area as indicated by an arrow. Access.

つまり,アップモードでは,SB=1,2,3の場合,RA=#nのページ領域内のCA=#FFのバイトデータと,RA=#n+1のページ領域内のCA=#00のバイトデータとがアクセスされる。ダウンモードでは,SB=0,1,2の場合,RA=#nのページ領域内のCA=#FFのバイトデータと,RA#n+1のページ領域内のCA=#00のバイトデータとがアクセスされる。この場合,隣接するページ領域へのアクセスが必要であるので,アクティブコマンドACTと共に与えられるロウアドレスRA=#nのページ領域がアクティブ化され,リードコマンドRDと共に供給されるコラムアドレスCA=#FFとスタートバイト信号SB=2に応答して,隣接するロウアドレスRA=#n+1のページ領域がアクティブ化される。つまり,1つのアクティブコマンドACTに応答して,複数のバンク内のワード線がアクティブ化されることを意味する。   That is, in the up mode, when SB = 1, 2, 3, the byte data of CA = # FF in the page area of RA = # n and the byte data of CA = # 00 in the page area of RA = # n + 1. And are accessed. In the down mode, when SB = 0, 1, and 2, the CA = # FF byte data in the RA = # n page area and the CA = # 00 byte data in the RA # n + 1 page area are accessed. Is done. In this case, since access to the adjacent page area is necessary, the page area of the row address RA = # n given together with the active command ACT is activated, and the column address CA = # FF supplied along with the read command RD In response to the start byte signal SB = 2, the page area of the adjacent row address RA = # n + 1 is activated. That is, it means that word lines in a plurality of banks are activated in response to one active command ACT.

このように複数バンクが並行してアクティブ化されるように制御されれば,ページ領域の末尾でバイトバウンダリ機能が要求されても,必要な領域のデータを無駄なく入出力することができる。   Thus, if control is performed so that a plurality of banks are activated in parallel, even if a byte boundary function is requested at the end of the page area, data in the necessary area can be input / output without waste.

[バイトバウンダリ機能のその他の用途]
バイトバウンダリ機能は,メモリに画像データを記憶し任意の画素に対応したデータにアクセスする場合に,効率的なデータの入出力を可能にする。バイトバウンダリ機能は,このような画像メモリ以外の用途においても,同様のメリットを有する。
[Other uses of byte boundary functions]
The byte boundary function enables efficient data input / output when image data is stored in a memory and data corresponding to an arbitrary pixel is accessed. The byte boundary function has the same merit in applications other than such image memory.

図48〜図50は,バイトバウンダリ機能のその他の用途を説明する図である。図48,49は従来例に,図50は本実施の形態に対応する。メモリの構成として同一のコラムアドレスCAに複数のバイト領域を割り付け、一度のアクセスで同一のコラムアドレスCAに割り付けられた複数バイトのデータをアクセスすることが行われている。このような構造では,メモリへのアクセスは,同一のコラムアドレスCAに割り付けられている固定のバイトサイズ(ワード構成)のデータに対する処理については,効率良く行うことができる。   48 to 50 are diagrams for explaining other uses of the byte boundary function. 48 and 49 correspond to the conventional example, and FIG. 50 corresponds to the present embodiment. As a memory configuration, a plurality of byte areas are allocated to the same column address CA, and a plurality of bytes of data allocated to the same column address CA are accessed by one access. In such a structure, access to the memory can be efficiently performed for processing of data of a fixed byte size (word configuration) allocated to the same column address CA.

しかし、システムで処理すべきデータのサイズはメモリのワード構成未満となる場合もある。このような場合の対処方法として,ワード構成サイズ以下のデータが複数のコラムアドレスCAの領域にまたがらないようにパディングをするという方法がある。図48の例では、メモリのワード構成を4バイト(図中483参照),処理するデータサイズの単位を1バイト(図中280のフォーマットA),2バイト(同フォーマットB),4バイト(同フォーマットC)としている。そのため,4バイトサイズのデータはByte0を基点に記憶することでコラムアドレスCAをまたがないようにすることができる。2バイトサイズのデータではByte0,Byte2を基点とする位置に記憶する。1バイトサイズのデータはByte0,Byte1,Byte2,Byte3のいずれの位置を基点とすることも可能とする。   However, the size of data to be processed by the system may be less than the memory word configuration. As a coping method in such a case, there is a method of performing padding so that data of a word configuration size or less does not extend over a plurality of column address CA areas. In the example of FIG. 48, the word configuration of the memory is 4 bytes (see 483 in the figure), the data size unit to be processed is 1 byte (format A of 280 in the figure), 2 bytes (same format B), 4 bytes (same as above) Format C). For this reason, 4-byte size data can be stored so that it does not cross the column address CA by storing Byte0 as a base point. In the case of 2-byte data, it is stored at the position where Byte0 and Byte2 are the base points. 1-byte size data can be based on any position of Byte0, Byte1, Byte2, Byte3.

いま仮に,図中482のライトデータのように,2Byte,4Byte,1Byte,2Byte,2Byte,1Byteのサイズのデータ0〜5を連続してメモリに記憶する場合を考える。この場合,図中481のようにライト動作を行えば,図中483に示されるようにメモリ内の幾つかのバイト領域でパディングが行われ,合計で4バイトの領域は有効なデータの記憶に利用されない。これでは,メモリの容量が有効に利用されていないことになる。ただし,コラムアドレスCAにより4バイト単位で出力すれば,各データを1回のコラムアドレスアクセスで読み出せるので,読み出し速度は速くなる。   Now, suppose that data 0 to 5 having a size of 2 bytes, 4 bytes, 1 byte, 2 bytes, 2 bytes, and 1 byte are continuously stored in the memory as in the write data 482 in the figure. In this case, if a write operation is performed as indicated by reference numeral 481 in the figure, padding is performed in several byte areas in the memory as indicated by reference numeral 483 in the figure, and a total of four bytes area is used for storing valid data. Not used. This means that the memory capacity is not used effectively. However, if data is output in units of 4 bytes by the column address CA, each data can be read by one column address access, so that the reading speed is increased.

しかし、上記の記憶容量の無駄をなくすためには,パディングを行わずにメモリの各バイト領域に連続してデータを記憶すればよい。例えば,図49の図中491のように3サイクルのライトコマンドWRで書き込みを行って,図中493に示される通りにメモリ内のバイト領域にデータを記憶することができる。   However, in order to eliminate the above-mentioned waste of storage capacity, data may be stored continuously in each byte area of the memory without padding. For example, data can be stored in a byte area in the memory as indicated by 493 in FIG. 49 by writing with a write command WR of 3 cycles as indicated by 491 in FIG.

図49のようにデータ書き込みを行えば,メモリの記憶容量を有効に活用することができる。しかし,データ3の2バイトのデータB03,B13のように,あるいは,データ1の4バイトのデータC01−C31のように,異なるコラムアドレスの領域にまたがってデータが記憶された場合は,従来のメモリでは1回のコラムアクセスで読み書きを実行することはできず,2回のアクセスが必要となる。図中491に示されるとおり,データ4の読み出しに2回リードコマンドRDを発行しなければならず,アクセス効率が低下する。   If data is written as shown in FIG. 49, the storage capacity of the memory can be used effectively. However, when data is stored across different column address areas, such as 2-byte data B03, B13 of data 3 or 4-byte data C01-C31 of data 1, the conventional In the memory, reading / writing cannot be executed by one column access, and two accesses are required. As indicated by reference numeral 491 in the figure, the read command RD must be issued twice for reading the data 4, and the access efficiency decreases.

そこで,図50の図中500に示されるように,バイトバウンダリ機能を利用して,1回のリードコマンドRDの発行とスタートバイト信号SB=3の指定を行うことで,異なるコラムアドレスの領域にまたがるデータ3(03,B13)をアクセスすることができる。したがって、バイトバウンダリ機能を有するメモリは,アクセス性能の低下を発生させずにメモリ利用率の向上を実現することが可能である。   Therefore, as indicated by reference numeral 500 in FIG. 50, by using the byte boundary function, issuing a single read command RD and specifying the start byte signal SB = 3 allows different column address areas to be assigned. Data 3 (03, B13) that spans can be accessed. Therefore, a memory having a byte boundary function can improve the memory utilization rate without causing a decrease in access performance.

[バイトバウンダリ機能に対応したメモリコントローラ]
次に,バイトバウンダリ機能に対応したメモリコントローラについて説明する。図8で画像処理システムを説明したが,この画像処理システム内の画像処理チップ80内に,画像処理制御部81とメモリ制御部(メモリコントローラ)82とが含まれる。
[Memory controller that supports byte boundary functions]
Next, a memory controller corresponding to the byte boundary function will be described. Although the image processing system has been described with reference to FIG. 8, an image processing control unit 81 and a memory control unit (memory controller) 82 are included in an image processing chip 80 in the image processing system.

図51は,画像処理システムの構成図である。図8と同様に,画像処理制御部81と,メモリ制御部82と,画像メモリ86とで構成される。画像処理制御部81は,一例としてMPEG復号処理を行う構成である。画像処理部81は,符号化,圧縮されたストリームデータSTMが入力されるエントロピー復号化処理部510と,DCT係数DCT−Fに基づいてデータ処理を行う逆量子化及びIDCT処理部511と,イントラ予測部512と,動きベクトルMVとマイクロブロック分割情報MBdivに基づいてメモリ制御部82に参照画像読み出しを行うインター予測部513と,処理選択部515とを有する。メモリ制御部82は,画像処理制御部81と画像メモリ86との間でコマンドやアドレスの発行などを含むメモリ制御を行う。処理選択部515から出力される復号画像データD−IMGがメモリ制御部82により画像メモリ86に格納される。また,インター予測部513の参照画像読み出し制御部514は,メモリ制御部82を介して画像メモリ86から参照画像R−IMGのデータを取得し,処理選択部515に与える。   FIG. 51 is a block diagram of an image processing system. As in FIG. 8, the image processing control unit 81, the memory control unit 82, and the image memory 86 are configured. The image processing control unit 81 is configured to perform MPEG decoding processing as an example. The image processing unit 81 includes an entropy decoding processing unit 510 to which encoded and compressed stream data STM is input, an inverse quantization and IDCT processing unit 511 that performs data processing based on the DCT coefficient DCT-F, A prediction unit 512, an inter prediction unit 513 that reads a reference image to the memory control unit 82 based on the motion vector MV and the microblock division information MBdiv, and a process selection unit 515 are included. The memory control unit 82 performs memory control including issuance of commands and addresses between the image processing control unit 81 and the image memory 86. The decoded image data D-IMG output from the process selection unit 515 is stored in the image memory 86 by the memory control unit 82. In addition, the reference image read control unit 514 of the inter prediction unit 513 acquires the data of the reference image R-IMG from the image memory 86 via the memory control unit 82 and supplies the data to the process selection unit 515.

MPEGデコーダでは,動きベクトルに基づいてメモリから読み出される過去の画像または未来の画像内の参照画像R−IMGと,その参照画像との差分データとに基づいて,現在の画像データを復号化する。したがって,一旦画像メモリ86に格納した画像から動きベクトルの位置にある矩形の参照画像を読み出す動作が頻繁に行われる。この矩形アクセス制御において,バイトバウンダリ機能を有する画像メモリ86及びそれに対応したメモリ制御部82を利用することで,アクセス効率を高めることができる。   The MPEG decoder decodes the current image data based on the reference image R-IMG in the past image or the future image read from the memory based on the motion vector and the difference data between the reference image. Accordingly, an operation of reading a rectangular reference image at the position of the motion vector from the image once stored in the image memory 86 is frequently performed. In this rectangular access control, the access efficiency can be improved by using the image memory 86 having the byte boundary function and the memory control unit 82 corresponding thereto.

図52は,メモリ制御部(メモリコントローラ)の入力及び出力信号を示す図である。図53は,フレーム画像内の読み出し対象の参照画像領域を説明する図である。フレーム画像FM−IMGにおいて,左上が画素座標の原点(0,0)であり,矩形の参照画像RIMGの領域を特定するためには,矩形の左上の座標(POSX,POSY)と,縦横のサイズSIZEY,SIZEXとが必要である。したがって,画像処理部内の参照画像読み出し制御部514は,参照画像RIMGの領域を特定する上記の情報(POSX,POSY),SIZEY,SIZEXを,メモリコントローラ82に供給する。また,参照画像読み出し制御部514とメモリコントローラ82との間では,ダイレクトメモリアクセス制御信号DMA−CONが入出力される。   FIG. 52 is a diagram illustrating input and output signals of the memory control unit (memory controller). FIG. 53 is a diagram for explaining a reference image area to be read in a frame image. In the frame image FM-IMG, the upper left is the origin (0, 0) of the pixel coordinates, and in order to specify the area of the rectangular reference image RIMG, the upper left coordinates of the rectangle (POSX, POSY) and the vertical and horizontal sizes SIZEY and SIZEX are required. Therefore, the reference image read control unit 514 in the image processing unit supplies the above-described information (POSX, POSY), SIZEY, and SIZEEX specifying the region of the reference image RIMG to the memory controller 82. Further, a direct memory access control signal DMA-CON is input / output between the reference image read control unit 514 and the memory controller 82.

一方,メモリコントローラ82は,上記の参照画像領域を特定する情報(POSX,POSY),SIZEY,SIZEXに基づいて,メモリ空間内のアドレスAdd(バンクアドレス,ロウアドレス,コラムアドレス)を算出し,コマンドCMD,アドレスAdd,マルチバンクアクセス情報SA’,スタートバイト信号SB,書き込みデータDataなどをメモリ86に供給する。また,メモリ86から読み出された読み出しデータDataを受信する。   On the other hand, the memory controller 82 calculates an address Add (bank address, row address, column address) in the memory space based on the information (POSX, POSY), SIZEY, and SIZEX specifying the reference image area, CMD, address Add, multi-bank access information SA ′, start byte signal SB, write data Data, etc. are supplied to the memory 86. In addition, read data Data read from the memory 86 is received.

図54は,メモリ制御部の詳細な構成図である。メモリ制御部82は,前述した画像処理制御部のようにメモリへのアクセスを要求するアクセス要求元ブロック81−1〜81−Nから,アクセス対象の画像領域の情報POSX,POSY,SIZEX,SIZEY,書き込みデータDataを受信するインターフェース制御部541−1〜Nと,これらのインターフェース部を経由して上記の画像領域情報を受け取り,アドレスとコマンドを生成するアドレスコマンド生成部542−1〜Nを有する。これらのインターフェース制御部とアドレスコマンド生成部とは,調停回路540によりいずれが活性化されるべきか調停される。調停回路540により選択され活性化されているアドレスコマンド生成部542が,セレクタSELを経由して,コマンドCMD,アドレスAdd(バンクアドレス,ロウアドレス,コラムアドレス),マルチバンクアクセス情報SA’,スタートバイト信号SBなどをメモリ86に発行する。それにより,メモリ制御部82は,調停により選択されたアクセス要求元ブロックのために,メモリ86へのアクセス制御を行い,データ書き込みまたはデータ読み出しを行う。また,メモリ制御部82は,必要な頻度でメモリに対してリフレッシュ要求なども行う。   FIG. 54 is a detailed configuration diagram of the memory control unit. The memory control unit 82, from the access request source blocks 81-1 to 81-N that request access to the memory, as in the image processing control unit described above, provides information POSX, POSY, SIZEX, SIZEY of the image area to be accessed. The interface control units 541-1 to 541 -N that receive the write data Data, and the address command generation units 542-1 to 542 -N that receive the image area information and generate addresses and commands via these interface units. The interface control unit and the address command generation unit are arbitrated by the arbitration circuit 540 to determine which should be activated. The address command generation unit 542 selected and activated by the arbitration circuit 540 sends a command CMD, an address Add (bank address, row address, column address), multi-bank access information SA ′, start byte via the selector SEL. The signal SB and the like are issued to the memory 86. Thereby, the memory control unit 82 performs access control to the memory 86 and performs data writing or data reading for the access request source block selected by the arbitration. The memory control unit 82 also makes a refresh request to the memory at a necessary frequency.

メモリ制御部82が発行するコマンドCMDには,例えば,モードレジスタセットコマンド,アクティブコマンド,リードコマンド,ライトコマンド,プリチャージコマンド,リフレッシュコマンドなど,通常のSDRAMに必要なコマンドが含まれる。また,メモリ制御部82内の設定レジスタ543には,フレーム画像FM−IMGの左上画素のアドレスや,メモリマッピング情報や,メモリ86が有する機能についての情報が設定される。メモリが有する機能とは,例えば,後述するとおり,マルチバンクアクセス機能や,エンディアンに対応するデータ配列の切り替え機能などであり,コントロール対象のメモリが有する機能の有無がこの設定レジスタ543に設定される。   The command CMD issued by the memory control unit 82 includes commands necessary for a normal SDRAM such as a mode register set command, an active command, a read command, a write command, a precharge command, and a refresh command. In addition, the setting register 543 in the memory control unit 82 is set with the address of the upper left pixel of the frame image FM-IMG, memory mapping information, and information about the function of the memory 86. The functions possessed by the memory are, for example, a multi-bank access function and a data array switching function corresponding to endian as described later, and the presence / absence of the function possessed by the memory to be controlled is set in this setting register 543. .

図55は,参照画像読み出し制御部514でのインター予測部513の演算を説明する図である。MPEGの場合,マクロブロックMBを処理単位にしている。マクロブロックMBは16×16画素の輝度データと,8×8画素の色差(Cb,Cr)データ(Y:U:V=4:2:0の場合)で構成される。そして,このマクロブロックMBを4等分した8×8画素の輝度データを含む1/4マクロブロックQMBが,動きベクトルMV,参照画像RIMGの処理単位である。仮に,現在処理中のマクロブロックMBの左上座標が(MBaddrx,MBaddry),そのマクロブロック分割情報がMbdivx,Mbdivy,動きベクトルMV=(MVx,MVy)とすると,演算処理部515では,図示される演算式の演算により,参照画像RIMGの左上座標(POSX,POSY)と横幅SIZEXと高さSIZEYとが算出される。この横幅SIZEXは,メモリの1回のアクセスで入出力されるバイト数の倍数に設定され,高さSIZEYは垂直方向の画素数に設定される。   FIG. 55 is a diagram for explaining the calculation of the inter prediction unit 513 in the reference image read control unit 514. In the case of MPEG, the macro block MB is used as a processing unit. The macro block MB is composed of 16 × 16 pixel luminance data and 8 × 8 pixel color difference (Cb, Cr) data (in the case of Y: U: V = 4: 2: 0). A quarter macroblock QMB including luminance data of 8 × 8 pixels obtained by equally dividing the macroblock MB into four is a processing unit of the motion vector MV and the reference image RIMG. If the upper left coordinate of the macro block MB currently being processed is (MBaddrx, MBaddry), and the macro block division information is Mbdivx, Mbdivy, and the motion vector MV = (MVx, MVy), the arithmetic processing unit 515 is illustrated. The upper left coordinates (POSX, POSY), the horizontal width SIZEX, and the height SIZEEY of the reference image RIMG are calculated by the calculation of the arithmetic expression. This horizontal width SIZEX is set to a multiple of the number of bytes input / output in one access of the memory, and the height SIZEY is set to the number of pixels in the vertical direction.

上記のようにして算出された参照画像特定情報(POSX,POSY),SIZEY,SIZEXが,参照画像読み出し制御部514からメモリコントローラ82に出力され,メモリコントローラ82内のコマンドアドレス生成部542が,上記参照画像特定情報と,設定レジスタ543内のメモリマッピング情報とフレーム領域の左上のアドレスなどに基づいて,矩形アクセスに必要なメモリ空間のアドレスを生成する。   The reference image specifying information (POSX, POSY), SIZEY, and SIZEX calculated as described above is output from the reference image read control unit 514 to the memory controller 82, and the command address generation unit 542 in the memory controller 82 receives the above information. Based on the reference image specifying information, the memory mapping information in the setting register 543, the upper left address of the frame area, and the like, an address of the memory space necessary for rectangular access is generated.

図56は,参照画像読み出し制御部514でのインター予測部513の演算例を示す図である。図55の具体例である。まず,マクロブロックMBの左上座標が(MBaddrx,MBaddry)=(0,0),マクロブロック分割情報がMbdivx,Mbdivy=8,動きベクトルMV=(MVx,Mvy)=(13,4)であるので,参照画像RIMGの左上座標(POSX,POSY),横幅SIZEXと高さSIZEYは,次の通り演算で求められる。
POSX=0+8+13=21
POSY=0+8+4=12
SIZEX=8,SIZEY=8
上記の参照画像RIMGの矩形領域は,コラムアドレスで選択される4バイト領域の単位と整合しない。4バイト領域の単位と整合させるためには,図56中の拡大領域E−RIMGのように,左上座標(20,12),横幅12,高さ8の領域にアクセスすることが必要になる。しかし,バイトバウンダリ機能を利用することで,4バイト単位の境界を越えてバイト単位でアクセスが可能になる。このように,MPEGなどの参照画像データのアクセスにおいて,バイトバウンダリ機能はアクセス効率の向上に寄与する。
FIG. 56 is a diagram illustrating a calculation example of the inter prediction unit 513 in the reference image read control unit 514. It is a specific example of FIG. First, the upper left coordinate of the macro block MB is (MBaddrx, MBaddry) = (0, 0), the macro block division information is Mbdivx, Mbdivy = 8, and the motion vector MV = (MVx, Mvy) = (13, 4). , The upper left coordinates (POSX, POSY), the horizontal width SIZEX and the height SIZEEY of the reference image RIMG are obtained by the following calculation.
POSX = 0 + 8 + 13 = 21
POSY = 0 + 8 + 4 = 12
SIZEX = 8, SIZEY = 8
The rectangular area of the reference image RIMG is not consistent with the unit of the 4-byte area selected by the column address. In order to match the unit of the 4-byte area, it is necessary to access an area having upper left coordinates (20, 12), a horizontal width of 12, and a height of 8, like the enlarged area E-RIMG in FIG. However, by using the byte boundary function, it becomes possible to access in units of bytes beyond the boundary of units of 4 bytes. As described above, in the access of reference image data such as MPEG, the byte boundary function contributes to improvement of access efficiency.

図57は,メモリマッピング例を示す図である。図1に示したメモリマッピング12と同様に,画像の画素とメモリ空間内のページ領域14とがメモリマッピング12のように対応付けられていて,隣接するページ領域は異なるバンクアドレスBAになるよう配置されている。ページ領域14は,バンクアドレスBAとロウアドレスRAで選択される領域であり,各ページ領域14は,コラムアドレスで選択される複数のメモリ単位領域(4バイト領域)で構成される。図57の例では,ページ領域14は,64画素×16画素の画像データを格納する単位である。   FIG. 57 is a diagram illustrating an example of memory mapping. Similar to the memory mapping 12 shown in FIG. 1, the image pixels and the page area 14 in the memory space are associated like the memory mapping 12, and the adjacent page areas are arranged to have different bank addresses BA. Has been. The page area 14 is an area selected by the bank address BA and the row address RA, and each page area 14 is composed of a plurality of memory unit areas (4-byte areas) selected by the column address. In the example of FIG. 57, the page area 14 is a unit for storing image data of 64 pixels × 16 pixels.

図58は,メモリマッピング12におけるページ領域14の構成を示す図である。バンクBANK0内のロウアドレスRA0で特定されるページ領域14は,コラムアドレスCA0〜CA255のメモリ単位領域を有し,各コラムアドレスにより4バイトが選択され,コラムアドレスCAの折り返し幅(ステップ幅)が16である。よって,ページ領域14は,横幅が64(=4×16)バイト,高さが16(=256/16)バイトの構成になっている。   FIG. 58 is a diagram showing the configuration of the page area 14 in the memory mapping 12. The page area 14 specified by the row address RA0 in the bank BANK0 has memory unit areas of column addresses CA0 to CA255, 4 bytes are selected by each column address, and the folding width (step width) of the column address CA is 16. Therefore, the page area 14 has a configuration in which the width is 64 (= 4 × 16) bytes and the height is 16 (= 256/16) bytes.

図59は,図56の参照画像領域のメモリマップ上での配置を示す図である。図59に示されるとおり,参照画像領域RIMGは,左上座標(21,12),横幅8,高さ8であるので,コラムアドレスCA5を先頭番地とし,バイトBY1から横幅8バイト,高さ8バイトのメモリ領域に対応する。つまり,矩形アクセス領域の左端591は,コラムアドレスCAによる境界590から1バイト(図中592)だけシフトしている。よって,前述のバイトバウンダリ機能を有するメモリに対しては,アクティブコマンドACTと共にバンクアドレスBA0,ロウアドレスRA0を発行し,リードコマンドRD(又はライトコマンドWR)と共に先頭コラムアドレスCA5,CA6〜CA117,CA118とスタートバイト信号SB=1を連続して発行すれば良い。または,図42〜44で示した自動内部コラムアドレス生成機能を有するメモリに対しては,コラムアドレス折り返し幅CAWrap=16を設定しておき,リードコマンドRD(又はライトコマンドWR)と共に先頭コラムアドレスCA5と,スタートバイト信号SB=1と,矩形幅Rwidth=2と,バースト長BL=16とを発行すれば良い。   FIG. 59 is a diagram showing the arrangement of the reference image area in FIG. 56 on the memory map. As shown in FIG. 59, the reference image area RIMG has upper left coordinates (21, 12), a width of 8, and a height of 8. Therefore, the column address CA5 is set as the head address, the byte BY1 is 8 bytes, and the height is 8 bytes. Corresponds to the memory area. That is, the left end 591 of the rectangular access area is shifted by 1 byte (592 in the figure) from the boundary 590 by the column address CA. Therefore, for the memory having the above-described byte boundary function, the bank address BA0 and the row address RA0 are issued together with the active command ACT, and the head column addresses CA5, CA6 to CA117, CA118 together with the read command RD (or write command WR). And the start byte signal SB = 1 may be issued continuously. Alternatively, for the memory having the automatic internal column address generation function shown in FIGS. 42 to 44, the column address folding width CAWrap = 16 is set, and the leading column address CA5 is set together with the read command RD (or write command WR). And a start byte signal SB = 1, a rectangular width Rwidth = 2, and a burst length BL = 16.

図60は,参照画像領域のメモリマップ上での別の配置例を示す図である。この図では,参照画像領域RIMGが,隣接するページ領域14−0,14−1にまたがっている。つまり,ページ領域の境界600を超えている。この場合は,図7で説明したマルチバンクアクセス機能を有するメモリであれば,マルチバンクアクセス情報SA’を発行することで,1回のアクティブコマンドによりアクセスすることができる。メモリがマルチバンクアクセス機能を有していない場合は,バンクBANK0,1に対する複数回のアクティブコマンドを発行してアクセスしなければならない。よって,メモリコントローラは,コントロール対象の画像メモリがマルチバンクアクセス機能を有するか否かをレジスタに設定しておき,その設定情報に応じて,画像メモリへのアクセス制御を変更する必要がある。   FIG. 60 is a diagram showing another arrangement example of the reference image area on the memory map. In this figure, the reference image area RIMG spans adjacent page areas 14-0 and 14-1. That is, it exceeds the boundary 600 of the page area. In this case, if the memory has the multi-bank access function described with reference to FIG. 7, it can be accessed by a single active command by issuing the multi-bank access information SA '. If the memory does not have a multi-bank access function, it must be accessed by issuing a plurality of active commands for the banks BANK0,1. Therefore, the memory controller needs to set in the register whether or not the image memory to be controlled has a multi-bank access function, and change access control to the image memory in accordance with the setting information.

図61は,バイトバウンダリ機能を有しないメモリに対するメモリコントローラでのタイミングチャート図である。図59の参照画像RIMGのアクセス例である。従来のSDRAMにはバイトバウンダリ機能は設けられていない。その場合は,メモリコントローラは,図61に示すような制御を行わなければならない。   FIG. 61 is a timing chart in the memory controller for a memory having no byte boundary function. 60 is an access example of the reference image RIMG of FIG. 59. A conventional SDRAM does not have a byte boundary function. In that case, the memory controller must perform control as shown in FIG.

図61中,参照画像読み出し制御部とメモリコントローラとの間の信号610と,メモリコントローラと画像メモリとの間の信号611とが示されている。前述したとおり,参照画像読み出し制御部514は,メモリコントローラにアクセス要求REQと共に参照画像領域の左上座標POSX,POSYと横幅SIZEX,高さSIZEYの情報を送信し,メモリコントローラはそれに応答してアクノリッジ信号ACKを返信する。メモリマッピング情報とフレーム画像の左上原点のアドレスとはあらかじめ設定レジスタに設定されているものとする。   In FIG. 61, a signal 610 between the reference image read control unit and the memory controller and a signal 611 between the memory controller and the image memory are shown. As described above, the reference image read control unit 514 transmits the information on the upper left coordinates POSX, POSY, the width SIZEX, and the height SIZEEY of the reference image area together with the access request REQ to the memory controller, and the memory controller responds with the acknowledge signal. ACK is returned. It is assumed that the memory mapping information and the address of the upper left origin of the frame image are set in advance in the setting register.

このアクセス要求REQに応答して,メモリコントローラは,画像メモリに対して,アクティブコマンドACTとバンクアドレスBA=0,ロウアドレスRA=0を発行して,メモリにアクティブ動作を行わせる。その後,メモリコントローラは,クロックCLKに同期して,リードコマンドRDとバンクアドレスBA=0,コラムアドレスCA=5,6,7〜117,118,119(24回)を発行して,4バイトデータを24回受信する。その後,メモリコントローラは,ストローブ信号STBをHレベルにしてその受信したデータを読み出し制御部に送信する。   In response to this access request REQ, the memory controller issues an active command ACT, a bank address BA = 0, and a row address RA = 0 to the image memory to cause the memory to perform an active operation. Thereafter, in synchronization with the clock CLK, the memory controller issues a read command RD, a bank address BA = 0, a column address CA = 5, 6, 7 to 117, 118, 119 (24 times) to obtain 4-byte data Is received 24 times. Thereafter, the memory controller sets the strobe signal STB to H level and transmits the received data to the read control unit.

図62は,バイトバウンダリ機能を有するメモリに対するメモリコントローラでのタイミングチャート図である。この図は,図59の参照画像RIMGのアクセス例であり,メモリがバイトバウンダリ機能を有する場合の制御である。図中,参照画像読み出し制御部とメモリコントローラとの間の信号620と,メモリコントローラと画像メモリとの間の信号621とが示されている。   FIG. 62 is a timing chart in the memory controller for a memory having a byte boundary function. This figure is an example of access to the reference image RIMG of FIG. 59, and is control when the memory has a byte boundary function. In the figure, a signal 620 between the reference image reading control unit and the memory controller and a signal 621 between the memory controller and the image memory are shown.

この場合は,参照画像読み出し制御部からメモリコントローラに図61と同じ信号が送信される。メモリコントローラは,画像メモリに対して,アクティブコマンドACTとバンクアドレスBA=0,ロウアドレスRA=0を発行して,メモリにアクティブ動作を行わせ,その後,メモリコントローラは,リードコマンドRDと,バンクアドレスBA=0と,コラムアドレスCA=5,6〜117,118(16回)と,スタートバイト信号SB=01とを発行して,4バイトデータを16回受信する。さらに,メモリコントローラは,ストローブ信号STBをHレベルにしてその受信した64バイトのデータを読み出し制御部に送信する。メモリがバイトバウンダリ機能を有するので,リードコマンドの発行は16回でよく,アクセス効率が高くなる。   In this case, the same signal as in FIG. 61 is transmitted from the reference image read control unit to the memory controller. The memory controller issues an active command ACT, a bank address BA = 0, and a row address RA = 0 to the image memory to cause the memory to perform an active operation. Thereafter, the memory controller performs a read command RD, a bank address Address BA = 0, column address CA = 5, 6 to 117, 118 (16 times) and start byte signal SB = 01 are issued, and 4-byte data is received 16 times. Further, the memory controller sets the strobe signal STB to the H level and transmits the received 64-byte data to the read control unit. Since the memory has a byte boundary function, the read command may be issued 16 times, resulting in high access efficiency.

また,図示していないが,図42〜44で示した自動内部コラムアドレス生成機能を有するメモリに対しては,コラムアドレス折り返し幅CAWrap=16を設定しておき,リードコマンドRDと共に先頭コラムアドレスCA5と,スタートバイト信号SB=01と,矩形幅Rwidth=2と,バースト長BL=16とを発行すれば良い。それに応答して,画像メモリは内部でコラムアドレスを自動生成し矩形領域の4バイトデータを16サイクルで出力し,メモリコントローラは,4バイトデータを16回連続して受信する。   Although not shown, the column address folding width CAWrap = 16 is set for the memory having the automatic internal column address generation function shown in FIGS. 42 to 44, and the head column address CA5 is set together with the read command RD. And a start byte signal SB = 01, a rectangular width Rwidth = 2, and a burst length BL = 16. In response to this, the image memory automatically generates a column address internally and outputs the 4-byte data in the rectangular area in 16 cycles, and the memory controller continuously receives the 4-byte data 16 times.

図63は,バイトバウンダリ機能とマルチバンクアクセス機能を有しないメモリに対するメモリコントローラでのタイミングチャート図である。この例は,図60の参照画像RIMGをアクセスする例であり,マルチバンクアクセス機能を有しない画像メモリに対する制御例である。図中,参照画像読み出し制御部とメモリコントローラとの間の信号630と,メモリコントローラと画像メモリとの間の信号631とが示されている。   FIG. 63 is a timing chart of the memory controller for a memory that does not have a byte boundary function and a multi-bank access function. This example is an example of accessing the reference image RIMG of FIG. 60, and is an example of control for an image memory having no multi-bank access function. In the figure, a signal 630 between the reference image reading control unit and the memory controller and a signal 631 between the memory controller and the image memory are shown.

マルチバンクアクセス機能を有しないメモリは,図45に示したとおり,バンク境界をまたぐ領域へのアクセスは不可能である。したがって,この場合は,メモリコントローラは,アクティブコマンドACTとBA=0,RA=0を発行してページ領域14−0をアクティブ動作させ,リードコマンドRDと共にバンクアドレスBA=0,コラムアドレスCA=15〜127を発行して,8バイトのデータを受信する。さらに,メモリコントローラは,アクティブコマンドACTとBA=1,RA=0を発行してページ領域14−1をアクティブ動作させ,リードコマンドRDと共にバンクアドレスBA=1,コラムアドレスCA=0,1〜112,113を発行して,16バイトのデータを受信する。そして,メモリコントローラは,受信した24バイトのデータを参照画像読み出し制御部に送信する。   As shown in FIG. 45, a memory that does not have a multi-bank access function cannot access an area that crosses a bank boundary. Therefore, in this case, the memory controller issues an active command ACT and BA = 0, RA = 0 to activate the page area 14-0, and together with the read command RD, the bank address BA = 0, column address CA = 15. ~ 127 are issued to receive 8-byte data. Further, the memory controller issues an active command ACT and BA = 1, RA = 0 to activate the page area 14-1, and together with the read command RD, the bank address BA = 1, the column address CA = 0, 1-112. , 113 is issued to receive 16-byte data. Then, the memory controller transmits the received 24-byte data to the reference image read control unit.

図64は,マルチバンクアクセス機能とバイトバウンダリ機能を有するメモリに対するメモリコントローラにおけるタイミングチャート図である。これも図60の参照画像RIMGをアクセスする例である。図中,参照画像読み出し制御部とメモリコントローラとの間の信号640と,メモリコントローラと画像メモリとの間の信号641とが示されている。   FIG. 64 is a timing chart in the memory controller for a memory having a multi-bank access function and a byte boundary function. This is also an example of accessing the reference image RIMG of FIG. In the figure, a signal 640 between the reference image reading control unit and the memory controller and a signal 641 between the memory controller and the image memory are shown.

メモリコントローラは,アクティブコマンドACTと共にバンクアドレスBA=0,ロウアドレスRA=0,そしてマルチバンクアクセス情報SA’=10(横方向に隣接する2バンクのアクセスを示す)を発行する。これに応答して,画像メモリは,バンクBA=0のバンクをアクティブ動作させる。そして,メモリコントローラは,リードコマンドRDと共に,スタートバイト信号SB=01とバンクアドレスBA,コラムアドレスCAを順次発行する。このコラムアドレスCA=15に応答して,画像メモリは,BA=1のバンクもアクティブ動作させる。メモリコントローラは,16回のリードコマンドRDに対応して,16バイトのデータを受信する。さらに,メモリコントローラは,受信した16バイトのデータを参照画像読み出し制御部に送信する。   The memory controller issues a bank address BA = 0, a row address RA = 0, and multi-bank access information SA ′ = 10 (indicating access of two banks adjacent in the horizontal direction) together with the active command ACT. In response to this, the image memory activates the bank with bank BA = 0. Then, the memory controller sequentially issues a start byte signal SB = 01, a bank address BA, and a column address CA together with the read command RD. In response to this column address CA = 15, the image memory also activates the bank with BA = 1. The memory controller receives 16 bytes of data in response to 16 read commands RD. Further, the memory controller transmits the received 16-byte data to the reference image read control unit.

このように,メモリコントローラは,マルチバンクアクセス機能を有するメモリに対しては,異なるバンク領域にまたがるデータであっても,1回のアクティブコマンドを発行すればよい。   As described above, the memory controller may issue a single active command to a memory having a multi-bank access function, even if the data extends over different bank areas.

図65は,メモリコントローラの制御動作のフローチャート図である。まず,上位のCPUによりメモリコントローラ内の設定レジスタにマルチバンクアクティブ機能のON/OFFが設定される(S1)。参照画像読み出し制御部が,動きベクトル情報,マクロブロック分割情報,対象マクロブロック情報により,参照画像ブロックの座標(POSX,POSY)とサイズ(SIZEX,SIZEY)を算出し(S2),矩形アクセスのリクエストをそれらの矩形パラメータと共にメモリコントローラに発行する(S3)。   FIG. 65 is a flowchart of the control operation of the memory controller. First, the host CPU sets ON / OFF of the multi-bank active function in the setting register in the memory controller (S1). The reference image read control unit calculates the coordinates (POSX, POSY) and size (SIZEX, SIZEY) of the reference image block from the motion vector information, macroblock division information, and target macroblock information (S2), and requests for rectangular access Are issued to the memory controller together with the rectangle parameters (S3).

メモリコントローラは,この矩形パラメータ(POSX,POSY)(SIZEX,SIZEY)と,設定レジスタに設定されているメモリマップ情報及びフレーム画像のアドレス情報とから,矩形アクセスで発行すべきBA,RA,CA,SB,SA’を算出する(S4)。マルチバンクアクティブ機能がONの場合は(S5のYES),メモリコントローラは,アクティブコマンドACTと共にBA,RA,SA’を発行し,更に,リードコマンドRDと共にBA,CA,SBを順次発行しながら,リードデータを受信する(S6,S7,S8)。ライト動作の場合は,リードコマンドの代わりにライトコマンドWRと共にBA,CA,SBを順次発行しながら,ライトデータを出力する。   The memory controller uses the rectangular parameters (POSX, POSY) (SIZEX, SIZEY), the memory map information set in the setting register, and the address information of the frame image to issue BA, RA, CA, SB and SA ′ are calculated (S4). When the multi-bank active function is ON (YES in S5), the memory controller issues BA, RA, SA ′ together with the active command ACT, and further issues BA, CA, SB together with the read command RD, Read data is received (S6, S7, S8). In the case of a write operation, write data is output while sequentially issuing BA, CA, and SB together with a write command WR instead of a read command.

また,マルチバンクアクティブ機能がOFFの場合は(S5のNO),メモリコントローラは,リクエストのあった矩形がページ領域,つまりバンクをまたぐか否かをチェックし(S9),またがない場合(S9のNO)は,アクティブコマンドACTと共にBA,RAを発行し,更に,リードコマンドRDと共にBA,CA,SBを順次発行しながら,リードデータを受信する(10,11,12)。ライト動作の場合は,リードコマンドの代わりにライトコマンドWRと共にBA,CA,SBを順次発行しながら,ライトデータを出力する。   If the multi-bank active function is OFF (NO in S5), the memory controller checks whether the requested rectangle crosses the page area, that is, the bank (S9), and if not (S9). NO) issues BA and RA together with the active command ACT, and further receives BA, CA and SB along with the read command RD while receiving read data (10, 11, 12). In the case of a write operation, write data is output while sequentially issuing BA, CA, and SB together with a write command WR instead of a read command.

さらに,バンクをまたぐ場合(S9のYES),バイトバウンダリ機能を利用できないので,メモリコントローラは,図56に示した拡大矩形領域E−RIMGの座標POSXと幅SIZEXを算出し,それに対応する左上座標のアドレスBA,RA,CAを算出する(S13)。そして,拡大矩形領域に対して,アクティブコマンドACTと共にBA,RAを発行を発行し,リードコマンドRDと共にBA,CAを順次発行しながらリードデータを受信する(S15,16,17)。そして,左上座標のバンク内のリードが完了すると(S17のYES,S14のYES),一旦プリチャージコマンドを発生したのち,次のバンクに対してアクティブコマンドを発生し,更にリードコマンドRDと共にBA,CAを順次発行しながらリードデータを受信する(S19,S16,17)。そのバンク内のデータを全て受信し(S17のYES),全てのデータ読み出しが完了したら(S18),メモリ制御を終了する。   Further, when straddling banks (YES in S9), since the byte boundary function cannot be used, the memory controller calculates the coordinates POSX and the width SIZEX of the enlarged rectangular area E-RIMG shown in FIG. 56, and the corresponding upper left coordinates. Addresses BA, RA, and CA are calculated (S13). For the enlarged rectangular area, issue the BA and RA together with the active command ACT, and receive the read data while sequentially issuing BA and CA together with the read command RD (S15, 16, 17). When the reading in the upper left coordinate bank is completed (YES in S17, YES in S14), a precharge command is once generated, then an active command is generated for the next bank, and BA, Read data is received while sequentially issuing CAs (S19, S16, 17). When all the data in the bank is received (YES in S17), and when all the data is read (S18), the memory control is terminated.

なお,メモリコントローラの設定レジスタに,バイトバウンダリ機能をOFFにする設定がある場合は,図65の構成S13〜S18により図61のようにメモリコントローラがアクティブコマンドとリードコマンドと必要なアドレスとを発行する。   If the setting register of the memory controller is set to turn off the byte boundary function, the memory controller issues an active command, a read command, and a necessary address as shown in FIG. 61 by the configuration S13 to S18 of FIG. To do.

このように,メモリコントローラは,内蔵の設定レジスタにバイトバウンダリ機能のON,OFFやマルチバンクアクティブ機能のON,OFFとを設定可能であり,制御対象の画像メモリの機能に応じて,必要なコマンドとアドレス,マルチバンク情報,スタートバイト情報,アップモード,ダウンモード,オルターナティブなどのバイト組み合わせ情報などを適宜発行する。   In this way, the memory controller can set the byte boundary function ON / OFF and the multi-bank active function ON / OFF in the built-in setting register, and the necessary commands can be selected according to the function of the image memory to be controlled. And byte combination information such as address, multi-bank information, start byte information, up mode, down mode, and alternative are issued as appropriate.

図66は,メモリコントローラの制御動作のフローチャート図である。この例は,図35,36に示したエンディアンに対応して入出力データの入れ替え機能を制御対象の画像メモリが有するか否かをメモリコントローラに設定できるようになっている。まず,上位のCPUがメモリコントローラの設定レジスタに,画像メモリにおける出力データの並び替え機能の有無を設定する(S20)。そして,参照画像読み出し制御部が,動きベクトル情報,マクロブロック分割情報,対象マクロブロック情報により,参照画像ブロックの座標(POSX,POSY)とサイズ(SIZEX,SIZEY)を算出し(S21),矩形アクセスのリクエストをそれらの矩形パラメータと共にメモリコントローラに発行する(S22)。   FIG. 66 is a flowchart of the control operation of the memory controller. In this example, it is possible to set in the memory controller whether or not the image memory to be controlled has an input / output data switching function corresponding to the endian shown in FIGS. First, the host CPU sets the presence / absence of the output data rearrangement function in the image memory in the setting register of the memory controller (S20). Then, the reference image read control unit calculates the coordinates (POSX, POSY) and size (SIZEX, SIZEY) of the reference image block from the motion vector information, macroblock division information, and target macroblock information (S21), and rectangular access. Is issued to the memory controller together with the rectangular parameters (S22).

次に,メモリコントローラは,この矩形パラメータ(POSX,POSY)(SIZEX,SIZEY)と,設定レジスタに設定されているメモリマップ情報及びフレーム画像のアドレス情報とから,矩形アクセスで発行すべきBA,RA,CA,SB,SA’を算出する(S23)。そして,出力データの並び替え機能がONに設定されている場合は(S24のYES),メモリコントローラは,アクティブコマンドと共にバンクアドレスBA,ロウアドレスRA,マルチバンク情報SA’を発行し,さらにリードコマンドと共にバンクアドレスBA,コラムアドレスCA,スタートバイト情報SBを発行する(S25)。その後は,全てのデータの読み出しが完了するまで,リードコマンド,BA,CA,SBを繰り返し発行する(S26,S27)。   Next, the memory controller uses the rectangular parameters (POSX, POSY) (SIZE, SIZEY), the memory map information set in the setting register, and the address information of the frame image to issue BA, RA to be issued by rectangular access. , CA, SB, SA ′ are calculated (S23). If the output data rearrangement function is set to ON (YES in S24), the memory controller issues a bank address BA, a row address RA, and multi-bank information SA ′ together with an active command, and further a read command At the same time, a bank address BA, a column address CA, and start byte information SB are issued (S25). Thereafter, the read command, BA, CA, and SB are repeatedly issued until reading of all data is completed (S26, S27).

一方,出力データの並び替え機能がOFFに設定されている場合は(S24のNO),メモリコントローラは,アクティブコマンドと共にバンクアドレスBA,ロウアドレスRA,マルチバンク情報SA’を発行し,さらにリードコマンドと共にバンクアドレスBA,コラムアドレスCA,スタートバイト情報SBを発行する(S25)。その後は,全てのデータの読み出しが完了するまで,リードコマンド,BA,CA,SBを繰り返し発行すると共に,受信したデータの並びが元の画像データの順番になるように並び替えを行う(S28,S29,S30)。   On the other hand, when the output data rearrangement function is set to OFF (NO in S24), the memory controller issues a bank address BA, a row address RA, and multi-bank information SA ′ together with an active command, and further a read command At the same time, a bank address BA, a column address CA, and start byte information SB are issued (S25). Thereafter, until the reading of all data is completed, the read command, BA, CA, and SB are repeatedly issued, and rearrangement is performed so that the received data is in the order of the original image data (S28, S29, S30).

上記の図65と図66とは,設定レジスタの設定項目によって適宜組み合わせることができる。   The above FIG. 65 and FIG. 66 can be appropriately combined depending on the setting items of the setting register.

なお,上記の実施の形態では,複数画素の画像データを二次元配置したデジタル画像データを記憶する画像メモリを例にして説明した。しかしながら,本発明は,画像データを記憶する画像メモリに限定されず,画像データ以外でも二次元配列されたデータを所定のマッピングルールに基づいて記憶するメモリ装置に適用可能である。記憶データが二次元配列されたデータであれば,その二次元配列データ内の任意の矩形領域をアクセスするときに複数のメモリ単位領域に跨ってデータにアクセスすることが求められることがある。その場合にも本発明は適用可能である。   In the above embodiment, the image memory that stores digital image data in which image data of a plurality of pixels is two-dimensionally arranged has been described as an example. However, the present invention is not limited to an image memory that stores image data, and can be applied to a memory device that stores two-dimensionally arranged data other than image data based on a predetermined mapping rule. If the stored data is two-dimensionally arranged data, it may be required to access the data across a plurality of memory unit areas when accessing an arbitrary rectangular area in the two-dimensionally arranged data. In this case, the present invention can be applied.

《マルチバンクアクセス》
次に,矩形アクセスの課題の一つとして,複数のページ領域を含む矩形領域をアクセスする場合のアクセス効率の低下を防止するための,マルチバンクアクセスについて説明する。既に,図7において,矩形アクセス時のマルチバンクアクセス機能について説明した。
《Multi-bank access》
Next, multi-bank access for preventing a decrease in access efficiency when a rectangular area including a plurality of page areas is accessed will be described as one of the problems of rectangular access. The multi-bank access function at the time of rectangular access has already been described with reference to FIG.

図67は,本実施の形態におけるマルチバンクアクセスについての概略説明図である。画像メモリに対する矩形領域へのアクセスは任意の場所に発生する。したがって,図67に示されるとおり,メモリマップ12において矩形アクセス領域22がページ領域の境界を越えることがある。図67の例では,矩形アクセス領域22が4つのページ領域(BA3,RA0のページ領域,BA2,RA1のページ領域,BA1,RA4のページ領域,BA0,RA5のページ領域)を含んでいる。   FIG. 67 is a schematic explanatory diagram of multibank access in the present embodiment. Access to the rectangular area for the image memory occurs at an arbitrary location. Therefore, as shown in FIG. 67, the rectangular access area 22 in the memory map 12 may exceed the boundary of the page area. In the example of FIG. 67, the rectangular access area 22 includes four page areas (a page area for BA3, RA0, a page area for BA2, RA1, a page area for BA1, RA4, and a page area for BA0, RA5).

メモリマッピング12によれば,縦横に隣接するページ領域は異なるバンクに割り付けられている。したがって,図67の矩形領域22をアクセスするためには,メモリ装置86内の4つのバンクBank0−3を,Bank3,2,1,0の順番でアクセスしなければならない。SDRAMでは,バンクアドレスBAとロウアドレスRAを指定してアクティブコマンドが供給されると,そのバンク内のワード線(ページ領域)が活性化される。その後,バンクアドレスBAとコラムアドレスCAを指定するリードコマンドまたはライトコマンドに応答して,活性化されたページ領域内のメモリ単位領域がアクセスされる。そのため,矩形アクセス領域22をアクセスするためには,メモリコントローラが,メモリ装置に4つのバンクに対するアクティブコマンドを4回発行しなければならない。そのようなメモリ制御は,アクセス効率の低下を招く。   According to the memory mapping 12, page areas adjacent vertically and horizontally are assigned to different banks. Therefore, in order to access the rectangular area 22 in FIG. 67, the four banks Bank0-3 in the memory device 86 must be accessed in the order of Bank3, 2, 1, 0. In the SDRAM, when an active command is supplied by designating a bank address BA and a row address RA, a word line (page area) in the bank is activated. Thereafter, the memory unit area in the activated page area is accessed in response to a read command or a write command specifying the bank address BA and the column address CA. Therefore, in order to access the rectangular access area 22, the memory controller must issue four active commands for four banks to the memory device. Such memory control causes a decrease in access efficiency.

そこで,本実施の形態では,図67中のタイミングチャートに示されるとおり,メモリ装置は,拡張モードレジスタセットコマンドEMRS(図中670)に応答して,コマンドと共に供給されるロウアドレスのステップ情報RS=4(図中671)を内蔵するモードレジスタに設定する。このロウアドレスのステップ情報RSは,メモリマッピング12において,ロウアドレスRAが行方向において折り返される数であり,図67の例では,RA0−RA3,RA4−RA7で折り返されているので,RS=4である。通常の画像システムではメモリマッピング12は頻繁に変更されないので,ロウアドレスステップ情報RSは,画像システムが起動されたときなどにメモリ装置内のモードレジスタに設定するのが望ましい。   Therefore, in the present embodiment, as shown in the timing chart of FIG. 67, the memory device responds to the extended mode register set command EMRS (670 in the figure) and step information RS of the row address supplied together with the command. = 4 (671 in the figure) is set in the built-in mode register. The row address step information RS is the number of row addresses RA folded in the row direction in the memory mapping 12, and in the example of FIG. 67, it is folded by RA0-RA3 and RA4-RA7, so RS = 4. It is. Since the memory mapping 12 is not frequently changed in a normal image system, it is desirable to set the row address step information RS in a mode register in the memory device when the image system is activated.

そして,矩形アクセスが発生すると,メモリ装置は,アクティブコマンドACT(図中672)と共にバンクアドレスBA=3,ロウアドレスRA=0,及びマルチバンク情報SA’=4(図中673)を供給される。すなわち,メモリコントローラは,画像処理ユニットからの矩形アクセス要求に対して,アクセス対象の矩形領域がメモリマップ上で4つのページ領域にまたがること,つまり4つのバンクへのアクセスが必要であることを検出したら,アクセス対象バンク数「4」をマルチバンク情報SA’として画像メモリ装置に供給する。   When a rectangular access occurs, the memory device is supplied with an active command ACT (672 in the figure), bank address BA = 3, row address RA = 0, and multi-bank information SA ′ = 4 (673 in the figure). . That is, in response to a rectangular access request from the image processing unit, the memory controller detects that the rectangular area to be accessed extends over four page areas on the memory map, that is, access to four banks is required. Then, the access target bank number “4” is supplied to the image memory device as the multi-bank information SA ′.

このアクティブコマンドACTとマルチバンク情報SA’とに応答して,メモリ装置は,BA3のバンクを先頭にして行方向に隣接するBA2のバンクと,列方向に隣接するBA1のバンクと,右下に隣接するBA0のバンクとを活性化する。その場合,画像メモリ内のロウ制御部は,アクティブコマンドACTと共に供給されるバンクアドレスBA=3とロウアドレスRA=0とマルチバンク情報SA’=4と,モードレジスタに記憶されているロウアドレスのステップ情報RS=4とに基づいて,複数のバンクへのバンク活性化信号を生成し,各バンク内のアクティブ動作対象のロウアドレスを生成する。図中のメモリマッピング12によれば,アクティブ動作対象の4つのロウアドレスは,供給ロウアドレスRAに対して,RA,RA+1,RA+RS,RA+RS+1である。この4つのロウアドレスが,供給バンクアドレスBAに応じて,対応する4つのバンクに供給される。そして,内部で生成されたバンク活性化信号とロウアドレスにより,メモリ装置内の複数のバンクがアクティブ動作を行う。   In response to the active command ACT and the multi-bank information SA ′, the memory device starts with the bank of BA3, the bank of BA2 adjacent in the row direction, the bank of BA1 adjacent in the column direction, and the lower right. Activate the adjacent bank of BA0. In that case, the row control unit in the image memory has the bank address BA = 3, the row address RA = 0, the multi-bank information SA ′ = 4 supplied together with the active command ACT, and the row address stored in the mode register. Based on the step information RS = 4, a bank activation signal for a plurality of banks is generated, and a row address of an active operation target in each bank is generated. According to the memory mapping 12 in the figure, the four row addresses targeted for active operation are RA, RA + 1, RA + RS, and RA + RS + 1 with respect to the supplied row address RA. These four row addresses are supplied to the corresponding four banks according to the supply bank address BA. A plurality of banks in the memory device perform an active operation according to the internally generated bank activation signal and row address.

よって,図67の例では,一回のアクティブコマンドACTに応答して,BA3,RA0のページ領域,BA2,RA1のページ領域,BA1,RA4のページ領域,BA0,RA5のページ領域の合計4つのページ領域が活性化される。具体的な活性化動作では,ワード線WLが立ち上げられ,センスアンプが活性化され,メモリセル内のデータに対応するビット線の電位が増幅される。   Thus, in the example of FIG. 67, in response to one active command ACT, a total of four page areas of BA3, RA0, BA2, RA1, BA1, RA4, and BA0, RA5 page areas. The page area is activated. In a specific activation operation, the word line WL is raised, the sense amplifier is activated, and the potential of the bit line corresponding to the data in the memory cell is amplified.

そして,メモリ装置は,リードコマンドRD(図中674)をバンクアドレスBAとコラムアドレスCAと共に繰り返し供給され,それぞれのリードコマンドに応答して,バンクアドレスBAとコラムアドレスCAで指定されたメモリ単位領域のデータを読み出す。ライトコマンドの場合は,ライトコマンドと共に供給されるバンクアドレスBAとコラムアドレスCAとに対応するメモリ単位領域にデータを書き込む。図67の例では,4つのリードコマンドRDと共に,バンクアドレスBA=3,2,1,0が供給され,4つのバンクに対するコラムアクセスが連続して行われる。   The memory device is repeatedly supplied with a read command RD (674 in the figure) together with a bank address BA and a column address CA, and in response to each read command, a memory unit area designated by the bank address BA and the column address CA. Read the data. In the case of a write command, data is written into the memory unit area corresponding to the bank address BA and the column address CA supplied together with the write command. In the example of FIG. 67, bank addresses BA = 3, 2, 1, 0 are supplied together with four read commands RD, and column access to four banks is continuously performed.

このように,本実施の形態のマルチバンクアクセス機能によれば,メモリ装置は,1回のアクティブコマンド(第1の動作コマンド)に応答し,供給されるバンクアドレスBAとロウアドレスRAとマルチバンク情報SA’と,あらかじめ設定されているロウアドレスのステップ情報RSとに基づいて,アクセス対象の複数のバンクのページ領域をあらかじめアクティブ動作する。よって,その後のコラムアクセスで,リードコマンドまたはライトコマンドと共に,バンクアドレスBA及びコラムアドレスCAが適宜供給されて,矩形アクセスが行われる。   As described above, according to the multi-bank access function of the present embodiment, the memory device responds to one active command (first operation command) and supplies the bank address BA, row address RA, and multi-bank supplied. Based on the information SA ′ and the step information RS of the row address set in advance, the page areas of the plurality of banks to be accessed are activated in advance. Therefore, in the subsequent column access, the bank address BA and the column address CA are appropriately supplied together with the read command or the write command, and the rectangular access is performed.

なお,図67の例では,メモリマッピング12においてロウアドレスステップ情報RS=4を根拠に,メモリ装置側が複数バンクのロウアドレスを演算で求めている。したがって,メモリマッピング12が異なれば,それに対応してロウアドレスの演算式も異なる。よって,拡張モードレジスタセットコマンドEMRSによりメモリマッピング情報も合わせて設定可能にすることもできる。または,メモリマッピング情報に応じてバンクアドレスビットの入れ替えを行い,メモリ装置内では所定のメモリマッピングに応じたロウアドレス演算を行うようにしても良い。   In the example of FIG. 67, the memory device calculates the row addresses of a plurality of banks on the basis of the row address step information RS = 4 in the memory mapping 12. Therefore, if the memory mapping 12 is different, the arithmetic expression of the row address is also different correspondingly. Therefore, the memory mapping information can also be set by the extended mode register set command EMRS. Alternatively, the bank address bits may be exchanged according to the memory mapping information, and the row address calculation corresponding to a predetermined memory mapping may be performed in the memory device.

また,図67の例では,マルチバンク情報SA’=4であるが,横方向の2つのバンクを意味するSA’=2,縦方向の2バンクを意味するSA’=3,単位のバンクを意味するSA’=1が供給された場合は,それに対応するバンクが活性化される。上記の4つの種類を示すマルチバンク情報SA’は2ビットで構成される。   In the example of FIG. 67, multi-bank information SA ′ = 4, but SA ′ = 2 meaning two banks in the horizontal direction, and SA ′ = 3 meaning two banks in the vertical direction. When the meaning SA ′ = 1 is supplied, the corresponding bank is activated. The multi-bank information SA ′ indicating the above four types is composed of 2 bits.

図68は,本実施の形態におけるマルチバンクアクセスを説明する図である。図68では,矩形領域22がアクセス対象領域であり,この矩形アクセス領域22は,4つのページ領域,つまり4つのバンク14−0,1,2,3を含み,BA3,RA2,CA127のメモリ単位領域を先頭にして,横方向は2クロック幅(8バイト)縦方向は8行の高さの矩形領域である。よって,矩形アクセス領域22を特定するためのマルチバンク情報SA’としては,図中のa)矩形領域のサイズ情報(=幅W,高さH),またはb)バンク数情報(=4)のいずれでも良い。   FIG. 68 is a diagram for explaining multi-bank access in the present embodiment. In FIG. 68, a rectangular area 22 is an access target area, and this rectangular access area 22 includes four page areas, that is, four banks 14-0, 1, 2, 3, and memory units BA3, RA2, and CA127. Starting from the area, the horizontal direction is a rectangular area with a width of 2 clocks (8 bytes) and a vertical direction with a height of 8 lines. Therefore, the multi-bank information SA ′ for specifying the rectangular access area 22 includes a) size information (= width W, height H) of the rectangular area, or b) bank number information (= 4) in the figure. Either is fine.

以下,図69,図70を参照して上記2種類のマルチバンク情報SA’に対応するメモリ装置の動作を説明する。   Hereinafter, the operation of the memory device corresponding to the two types of multi-bank information SA ′ will be described with reference to FIGS. 69 and 70.

図69は,マルチバンク情報SA’がバンク数情報(=4)の場合のタイミングチャート図である。図67のタイミングチャートに加えて,図69には入出力端子DQの4バイトBY0−3に対する出力データのコラムアドレスCA(図中691),バンクBank0−3のアクセス状態(活性化状態)(図中690)が示されている。   FIG. 69 is a timing chart when the multi-bank information SA ′ is bank number information (= 4). In addition to the timing chart of FIG. 67, FIG. 69 shows the column address CA (691 in the figure) of the output data for the 4-byte BY0-3 of the input / output terminal DQ and the access state (activated state) of the banks Bank0-3 (FIG. Middle 690) is shown.

まず,メモリ装置は,拡張モードレジスタセットコマンドEMRSにより,メモリマッピングのロウアドレスのステップ数データRS=4をモードレジスタにセットする。次に,アクティブコマンドACTと共に供給される先頭のページ領域を指定するバンクアドレスBA3及びロウアドレスRA2と,マルチバンク情報SA’=4(図中673)とに応答して,メモリ装置は,4つのバンクBank0−3内のロウアドレスRA7,6,3を生成し,供給ロウアドレスRA2と合わせて4つのロウアドレスに対応するページ領域をアクティブ動作する(図中690)。その結果,メモリ装置内では,4つのバンクがアクティブ状態になりメモリアクセス可能になっている。   First, the memory device sets the step number data RS = 4 of the row address of the memory mapping in the mode register by the extended mode register set command EMRS. Next, in response to the bank address BA3 and row address RA2 specifying the top page area supplied together with the active command ACT and the multi-bank information SA ′ = 4 (673 in the figure), the memory device The row addresses RA7, 6, 3 in the banks Bank0-3 are generated, and the page area corresponding to the four row addresses is actively operated together with the supply row address RA2 (690 in the figure). As a result, in the memory device, four banks are in an active state, and the memory can be accessed.

その後,16回のリードコマンドRD(図中674)と共に,アドレスBA3/CA127,BA2/CA124,BA1/CA3,BA0/CA0...が供給され,メモリ装置は,それに応答して,所定のレイテンシ後に,対応するバンク内からそれぞれ4バイトデータを入出力端子DQに出力する。   Thereafter, along with 16 read commands RD (674 in the figure), addresses BA3 / CA127, BA2 / CA124, BA1 / CA3, BA0 / CA0. . . In response, the memory device outputs 4-byte data from the corresponding bank to the input / output terminal DQ after a predetermined latency.

マルチバンク情報SA’としてSA’=4が供給されれば,2×2のページ領域へのアクセスであることが判明するので,メモリ装置は,アクティブコマンドACTに応答して,4つのバンクのアクティブ動作を実行することができる。また,先頭バンクのロウアドレスRAが供給されれば,ロウアドレスステップ情報RSに基づいて残りのバンクのロウアドレスを演算により求めることができる。   If SA ′ = 4 is supplied as the multi-bank information SA ′, it is found that the access is to the 2 × 2 page area, so that the memory device responds to the active command ACT and activates the four banks. The action can be performed. If the row address RA of the first bank is supplied, the row addresses of the remaining banks can be obtained by calculation based on the row address step information RS.

図70は,マルチバンク情報SA’が矩形領域のサイズ情報(W=8バイト,H=8行)の場合のタイミングチャート図である。このタイミングチャートにも入出力端子DQと4つのバンクBank0−3のアクセス状態が示されている。   FIG. 70 is a timing chart when the multi-bank information SA ′ is size information (W = 8 bytes, H = 8 rows) of a rectangular area. This timing chart also shows the access states of the input / output terminals DQ and the four banks Bank0-3.

拡張モードレジスタセットコマンドEMRSによりロウアドレスのステップ数データRS=4(図中671)とページ領域内のコラムアドレスのステップ数データCST=128(図中677)がモードレジスタに設定される。また,アクティブコマンドACTと共に,バンクアドレスBA3,ロウアドレスRA2が供給され(図中672),さらに,マルチバンク情報SA’(図中675)として,矩形アクセス領域のサイズ情報8×8(図中676)が供給される。メモリ装置は,このアクティブコマンドに応答して,供給アドレスBA3,RA2のページ領域をアクティブ動作する(図中700)。そして,メモリ装置は,モードレジスタに設定されているステップ数データCST=128と,最初のリードコマンドRDと共に供給されるコラムアドレスCA127と,矩形サイズ情報8×8とに基づいて,アクセスすべき残りのバンクBank0,1,2とそのロウアドレスRA7,6,3を求め,それらのバンクのページ領域をアクティブ動作する(図中701)。   The extended mode register set command EMRS sets the row address step number data RS = 4 (671 in the figure) and the column address step number data CST = 128 (677 in the figure) in the mode register. Along with the active command ACT, a bank address BA3 and a row address RA2 are supplied (672 in the figure), and further, as multi-bank information SA ′ (675 in the figure), size information 8 × 8 (676 in the figure) of the rectangular access area. ) Is supplied. In response to this active command, the memory device actively operates the page area of the supply addresses BA3 and RA2 (700 in the figure). The memory device then determines the remaining number to be accessed based on the step number data CST = 128 set in the mode register, the column address CA127 supplied together with the first read command RD, and the rectangular size information 8 × 8. Banks 0, 1, and 2 and their row addresses RA7, 6, 3 are obtained, and the page area of those banks is activated (701 in the figure).

その後,16回のリードコマンド(図中674)に応答して,メモリ装置は,対応するバンクからそれぞれ4バイトデータを入出力端子DQに出力する(図中702)。   Thereafter, in response to 16 read commands (674 in the figure), the memory device outputs 4-byte data from the corresponding bank to the input / output terminal DQ (702 in the figure).

このように,マルチバンク情報SA’として矩形サイズが供給される場合は,メモリ装置が,供給コラムアドレスとメモリマッピング(コラムアドレスステップ数CST)に基づき複数バンクにまたがるアクセスか否かを判定して,アクティブ動作対象のバンクの活性化信号と,各バンクのロウアドレスとを生成し,順次アクティブ動作する。よって,バンクBank0,1,2の活性化動作は,先頭のコラムアドレスCA=127が供給された後に行われる。   In this way, when a rectangular size is supplied as the multi-bank information SA ′, the memory device determines whether or not the access extends over a plurality of banks based on the supplied column address and memory mapping (column address step number CST). The activation signal of the bank subject to the active operation and the row address of each bank are generated, and the active operation is sequentially performed. Therefore, the activation operation of the banks Bank0, 1, 2 is performed after the leading column address CA = 127 is supplied.

図71は,マルチバンクアクセス機能を有するメモリ装置の構成図である。図9のメモリ装置の構成図と同等である。メモリ装置86は,マルチバンクアクセス機能を実現するために,ロウ制御部87が,活性化すべきバンクに与えるパルス状のバンク活性化信号actpz0−3を生成するマルチバンク活性化制御部88と,各バンクの活性化すべきロウアドレスRAを生成するロウアドレス演算部97とを有する。また,メモリ装置は,マルチバンク情報SA’を供給するためのスペシャル端子SP0,SP1を有する。   FIG. 71 is a configuration diagram of a memory device having a multi-bank access function. This is equivalent to the configuration diagram of the memory device of FIG. In order to realize the multi-bank access function, the memory device 86 includes a multi-bank activation control unit 88 that generates a pulse-like bank activation signal actpz0-3 to be supplied to a bank to be activated by the row control unit 87, and And a row address calculation unit 97 for generating a row address RA to be activated in the bank. The memory device also has special terminals SP0 and SP1 for supplying multibank information SA '.

コマンド制御部95は,コマンドを特定する信号RAS,CAS,WE,CSの組み合わせから供給されたコマンドをデコードする。拡張モードレジスタセットコマンドEMRSと共に,アドレス端子Addからメモリマッピングのロウアドレスのステップ数データRSが入力され,モードレジスタ96にセットされる。この場合,バンクアドレスBAによりセットされるデータの種別が指定され,そのバンクアドレスBAに対応するレジスタ領域にステップ数データRSがセットされる。   The command control unit 95 decodes a command supplied from a combination of signals RAS, CAS, WE, and CS that specify the command. Along with the extended mode register set command EMRS, the step number data RS of the row address of the memory mapping is input from the address terminal Add and set in the mode register 96. In this case, the type of data set by the bank address BA is designated, and the step number data RS is set in the register area corresponding to the bank address BA.

コマンド制御部95は,アクティブコマンドACTに応答して,ロウ側の動作開始を指令するアクティブパルスactpzを生成する。マルチバンク活性化制御部88は,このアクティブパルスactpzを,供給バンクアドレスBAとマルチバンク数データSA’とから求められる活性化対象のバンクに分配する。この分配されるパルス信号がバンク活性化信号actpz0−3である。このマルチバンク情報SA’は,アクティブコマンドACT発行時に,スペシャル端子SP0,SP1から入力される。また,ロウアドレスRAはアドレス端子Addから入力される。   In response to the active command ACT, the command control unit 95 generates an active pulse actpz that commands the start of the low-side operation. The multi-bank activation control unit 88 distributes the active pulse actpz to the activation target bank obtained from the supply bank address BA and the multi-bank number data SA ′. This distributed pulse signal is a bank activation signal actpz0-3. The multi-bank information SA 'is input from the special terminals SP0 and SP1 when the active command ACT is issued. The row address RA is input from the address terminal Add.

さらに,ロウアドレス演算部97は,供給されるバンクアドレスBAとロウアドレスRAと,モードレジスタ96に設定されているステップ数データRSと,さらにメモリマッピングに基づいて,4つのロウアドレスRA,RA+1,RA+RS,RA+RS+1を生成する。そして,これらの4つのロウアドレスが,供給バンクアドレスBAのバンクを左上にする2×2のバンク群に供給される。   Further, the row address calculation unit 97 generates four row addresses RA, RA + 1, based on the supplied bank address BA and row address RA, step number data RS set in the mode register 96, and memory mapping. RA + RS and RA + RS + 1 are generated. These four row addresses are supplied to a 2 × 2 bank group with the bank of the supply bank address BA at the upper left.

各バンクは,メモリアレイMAやデコーダDecを含むメモリコアと,そのメモリコアを制御するコア制御部(図示せず)とを有し,コア制御部は,上記バンク活性化信号actpz0−3に応答してバンク内のメモリコアを活性化制御する。その場合,上記バンクアドレスBAが各ロウデコーダに供給され,それに対応するワード線が駆動され,その後センスアンプ群が活性化される。これが,バンクでの活性化動作(アクティブ動作)である。   Each bank has a memory core including a memory array MA and a decoder Dec, and a core control unit (not shown) for controlling the memory core. The core control unit responds to the bank activation signals actpz0-3. Then, activation control of the memory core in the bank is performed. In that case, the bank address BA is supplied to each row decoder, the corresponding word line is driven, and then the sense amplifier group is activated. This is the activation operation (active operation) in the bank.

以下,マルチバンクアクセスに求められる機能として,メモリ装置内の活性化すべきバンク選択動作と,バンク活性化のタイミング制御と,ロウアドレス生成動作と,メモリマッピングのバンク割付設定動作とについて具体的に説明する。   Hereinafter, specific description will be given of the bank selection operation to be activated in the memory device, the bank activation timing control, the row address generation operation, and the memory mapping bank allocation setting operation as functions required for multi-bank access. To do.

[バンク選択]
図72,図73は,マルチバンク活性化制御部88の第1の例を示す図である。図72には,マルチバンク活性化制御部88の構成と,タイミングチャートとが示されている。第1の例では,マルチバンク情報SA’として2ビットのバンク数データが供給される。
[Bank selection]
72 and 73 are diagrams showing a first example of the multi-bank activation control unit 88. FIG. FIG. 72 shows the configuration of the multi-bank activation control unit 88 and a timing chart. In the first example, 2-bit bank number data is supplied as the multi-bank information SA ′.

タイミングチャートは前述の例と同じであり,拡張モードレジスタセットコマンドEMRSと共に,バンクアドレス端子BAにレジスタ設定データVが,アドレス端子ADDにステップ数データRSがそれぞれ入力されモードレジスタにセットされ,アクティブコマンドACTと共に,バンクアドレスBA,ロウアドレスRA,マルチバンク情報SA’がそれぞれ入力される。   The timing chart is the same as in the above example. Along with the extended mode register set command EMRS, the register setting data V is input to the bank address terminal BA, the step number data RS is input to the address terminal ADD, and the mode register is set. Along with ACT, a bank address BA, a row address RA, and multi-bank information SA ′ are input.

メモリ装置は,クロックCLKに同期して,各入力バッファ94に入力されたマルチバンク情報SA’0,1とバンクアドレスBA0,1とを,ラッチ回路720にラッチする。マルチバンク活性化制御部88は,バンクアドレスBA0,1をデコードして4つのバンク選択信号bnkz<3:0>を生成するバンクデコーダ88Aと,このバンク選択信号に応じてアクティブパルスactpzを分配したバンク活性化信号actpz<3:0>を生成するバンクアクティブパルス出力回路88Bとを有する。   The memory device latches the multi-bank information SA′0,1 and the bank address BA0,1 input to each input buffer 94 in the latch circuit 720 in synchronization with the clock CLK. The multi-bank activation control unit 88 distributes the active pulse actpz in accordance with the bank decoder 88A that generates the four bank selection signals bnkz <3: 0> by decoding the bank addresses BA0 and BA1, and the bank selection signal bnkz <3: 0>. A bank active pulse output circuit 88B for generating a bank activation signal actpz <3: 0>.

図73には,アクセスされる矩形領域に対応するバンクデコーダ88Aの論理状態が示されている。図73(A)は4種類の矩形領域を示し,4種類の矩形領域と対応するマルチバンク情報SA’(00,01,10,11)を示す。図73(B)は,バンクデコーダの論理処理を示す図表である。これらに示されるとおり,SA’=00の場合は,活性化バンク数は1でバンクデコーダ88AはバンクアドレスBA0,1をデコードする。これにより,バンクデコーダ88Aは,供給バンクアドレスBA0,1で選択される1つのバンクのバンク選択信号bnkz<3:0>のみをHレベルにする。それに伴って,選択バンクにのみバンク活性化信号actpz<3:0>が生成される。   FIG. 73 shows the logical state of the bank decoder 88A corresponding to the rectangular area to be accessed. FIG. 73A shows four types of rectangular areas, and multi-bank information SA ′ (00, 01, 10, 11) corresponding to the four types of rectangular areas. FIG. 73B is a chart showing the logic processing of the bank decoder. As shown in these figures, when SA '= 00, the number of activated banks is 1, and the bank decoder 88A decodes the bank addresses BA0 and BA1. As a result, the bank decoder 88A sets only the bank selection signal bnkz <3: 0> of one bank selected by the supply bank address BA0, 1 to the H level. Accordingly, the bank activation signal actpz <3: 0> is generated only in the selected bank.

SA’=01の場合は,活性化バンク数は水平方向に2個であるので,バンクデコーダ88AはバンクアドレスBA0を縮退(無視)し,バンクアドレスBA1のみで選択される2つのバンクのバンク選択信号bnkz<3:0>をHレベルにする。それに伴って,供給バンクアドレスで選択されるバンクと行方向に隣接するバンクとのバンク活性化信号actpz<3:0>が生成される。   When SA ′ = 01, the number of activated banks is two in the horizontal direction. Therefore, the bank decoder 88A degenerates (ignores) the bank address BA0 and selects two banks selected only by the bank address BA1. The signal bnkz <3: 0> is set to H level. Accordingly, a bank activation signal actpz <3: 0> between the bank selected by the supply bank address and the bank adjacent in the row direction is generated.

SA’=10の場合は,活性化バンク数は垂直方向に2個であるので,バンクデコーダ88AはバンクアドレスBA1を縮退(無視)し,バンクアドレスBA0のみで選択される2つのバンクのバンク選択信号bnkz<3:0>をHレベルにする。それに伴って,供給バンクアドレスで選択されるバンクと列方向に隣接するバンクとのバンク活性化信号actpz<3:0>が生成される。   When SA ′ = 10, since the number of activated banks is two in the vertical direction, the bank decoder 88A degenerates (ignores) the bank address BA1, and selects two banks selected only by the bank address BA0. The signal bnkz <3: 0> is set to H level. Accordingly, a bank activation signal actpz <3: 0> between the bank selected by the supply bank address and the bank adjacent in the column direction is generated.

SA’=11の場合は,活性化バンク数は水平,垂直方向に4個であるので,バンクデコーダ88AはバンクアドレスBA0,BA1を縮退(無視)し,4つのバンクのバンク選択信号bnkz<3:0>を全てHレベルにする。それに伴って,供給バンクアドレスで選択されるバンクと行列方向に隣接する4つのバンクのバンク活性化信号actpz<3:0>が生成される。   When SA ′ = 11, the number of activated banks is four in the horizontal and vertical directions. Therefore, the bank decoder 88A degenerates (ignores) the bank addresses BA0 and BA1, and the bank selection signals bnkz <3 for the four banks. : 0> are all set to H level. Accordingly, bank activation signals actpz <3: 0> of four banks adjacent to the bank selected by the supply bank address in the matrix direction are generated.

上記のバンクデコーダでのバンクアドレスの縮退は,対応するバンクアドレスBAとその反転信号/BAとを共にHレベルにする制御である。これにより,バンクデコーダ88Aは,そのバンクアドレスを無視して,残りのバンクアドレスによりバンク選択を行う。   The degeneration of the bank address in the bank decoder is a control for setting both the corresponding bank address BA and its inverted signal / BA to the H level. As a result, the bank decoder 88A ignores the bank address and performs bank selection based on the remaining bank address.

図74,図75は,マルチバンク活性化制御部88の第2の例を示す図である。図74には,マルチバンク活性化制御部88の構成と,タイミングチャートとが示されている。第2の例では,マルチバンク情報SA’として3ビットの同時活性化バンクデータSA’0−2が供給される。   74 and 75 are diagrams illustrating a second example of the multi-bank activation control unit 88. FIG. FIG. 74 shows a configuration of the multi-bank activation control unit 88 and a timing chart. In the second example, 3-bit simultaneous activation bank data SA'0-2 is supplied as multi-bank information SA '.

また,図75(A)には,メモリマッピング12とバンクアドレスBA0,BA1との関係が示されている。つまり,供給バンクアドレスBA0,1に対して,右のバンクはバンクアドレスBA0を反転してデコードすることで選択でき,下のバンクはバンクアドレスBA1を反転してデコードすることで選択でき,右下のバンクは両バンクアドレスBA0,1を反転してデコードすることで選択できる。   FIG. 75 (A) shows the relationship between the memory mapping 12 and the bank addresses BA0 and BA1. That is, with respect to the supply bank address BA0, 1, the right bank can be selected by inverting and decoding the bank address BA0, and the lower bank can be selected by inverting and decoding the bank address BA1. Can be selected by inverting both bank addresses BA0 and BA1 and decoding them.

図75(B)には,同時活性化バンクデータSA’0−2と,選択するバンクと,バンクデコーダでの論理処理とが示されている。つまり,SA’0=Hの場合は,供給バンクアドレスで選択されるバンクに加えて右側のバンクを選択するために,バンクデコーダはBA0を反転して入力する。SA’1=Hの場合は,供給バンクアドレスで選択されるバンクに加えて下側のバンクを選択するために,バンクデコーダはBA1を反転して入力する。そして,SA’2=Hの場合は,供給バンクアドレスで選択されるバンクに加えて右下のバンクを選択するために,バンクデコーダはBA0,BA1を反転して入力する。   FIG. 75B shows simultaneous activation bank data SA'0-2, a bank to be selected, and logical processing in a bank decoder. That is, when SA'0 = H, the bank decoder inverts and inputs BA0 in order to select the right bank in addition to the bank selected by the supply bank address. When SA'1 = H, the bank decoder inverts and inputs BA1 in order to select the lower bank in addition to the bank selected by the supply bank address. When SA'2 = H, the bank decoder inverts and inputs BA0 and BA1 to select the lower right bank in addition to the bank selected by the supply bank address.

図74に戻り,マルチバンク活性化制御部88は,4つのバンクデコーダ88A0−3と,それらの4つのデコード信号を論理和処理するOR回路88Cと,バンクアクティブパルス出力回路88Bとを有する。アクティブパルス出力回路88Bは,図72と同じである。また,4つのバンクデコーダ88A0−3は,下から順に,供給バンクアドレスBA0,1をデコードして左上バンクを選択するデコーダと,BA0を反転して右のバンクを選択するデコーダと,BA1を反転して下のバンクを選択するデコーダと,BA0,BA1を共に反転して右下のバンクを選択するデコーダとからなる。よって,上から3つのバンクデコーダは,同時活性化バンクデータSA’0−2に応じて活性化され,対応するバンク選択信号bnkz<3:0>を出力する。   Returning to FIG. 74, the multi-bank activation control unit 88 includes four bank decoders 88A0-3, an OR circuit 88C that performs an OR operation on these four decode signals, and a bank active pulse output circuit 88B. The active pulse output circuit 88B is the same as that in FIG. Also, the four bank decoders 88A0-3, in order from the bottom, decode the supply bank addresses BA0, BA1 to select the upper left bank, invert BA0 to select the right bank, and invert BA1. And a decoder that selects the lower right bank by inverting both BA0 and BA1. Therefore, the three bank decoders from the top are activated in accordance with the simultaneously activated bank data SA'0-2 and output the corresponding bank selection signals bnkz <3: 0>.

上記の第2の例によれば,供給されるバンクアドレスにより左上の先頭バンクが選択され,3ビットの同時活性化バンクデータSA’0−2により,右,下,右下のバンクが適宜選択される。したがって,斜め方向に2つのバンクを同時に活性化したり,3つのバンクを同時に活性化したりすることができ,同時活性化対象のバンクの組み合わせをフレキシブルに変更することができる。よって,特殊な領域に対するアクセスにも対応可能である。   According to the second example above, the top left top bank is selected by the supplied bank address, and the right, bottom, and bottom right banks are appropriately selected by the 3-bit simultaneous activation bank data SA'0-2. Is done. Accordingly, two banks can be simultaneously activated in an oblique direction, or three banks can be simultaneously activated, and the combination of banks to be simultaneously activated can be flexibly changed. Therefore, it is possible to handle access to special areas.

図76,図77は,マルチバンク活性化制御部88の第3の例を示す図である。図76には,マルチバンク活性化制御部88の構成と,タイミングチャートとが示されている。第3の例では,スペシャル入力端子SPからマルチバンク情報として矩形サイズ情報W,Hが入力される。そのため,マルチバンク活性化制御部88には,活性化バンク判定回路88Dが設けられ,活性化バンク判定回路88Dは,ページ領域内のコラムアドレスのステップ数データCSTと,矩形サイズ情報W,Hと,コラムアドレスCAとから,同時に活性化すべきバンクを判定する。   76 and 77 are diagrams showing a third example of the multi-bank activation control unit 88. FIG. FIG. 76 shows a configuration of the multi-bank activation control unit 88 and a timing chart. In the third example, rectangular size information W and H are input as multi-bank information from the special input terminal SP. Therefore, the multi-bank activation control unit 88 is provided with an activation bank determination circuit 88D. The activation bank determination circuit 88D includes step number data CST for column addresses in the page area, rectangular size information W and H, and The bank to be activated simultaneously is determined from the column address CA.

図76のタイミングチャートに示されるとおり,メモリ装置は,拡張モードレジスタセットコマンドEMRSと共にメモリマッピングにおけるロウアドレスのステップ数RSと,ページ領域内のコラムアドレスのステップ数データCSTとを入力し,モードレジスタにセットする。次に,メモリ装置は,アクティブコマンドACTと共に,バンクアドレスBA,ロウアドレスRA,矩形領域サイズデータW,Hを入力する。この時,メモリ装置のアドレスがノンマルチプルで入力される場合は,アクティブコマンドACTと共にコラムアドレスCAも入力する。一般的なSDRAMは,アドレスをマルチプルで入力するので,図70で示したとおり,リードコマンドやライトコマンドと共にコラムアドレスCAを入力する。   As shown in the timing chart of FIG. 76, the memory device inputs the row number step number RS in the memory mapping and the column number step number data CST in the page area together with the extended mode register set command EMRS. Set to. Next, the memory device inputs the bank address BA, the row address RA, and the rectangular area size data W and H together with the active command ACT. At this time, if the address of the memory device is input non-multiple, the column address CA is also input together with the active command ACT. Since a general SDRAM inputs an address in multiples, a column address CA is input together with a read command and a write command as shown in FIG.

マルチバンク活性化制御部88内の活性化バンク判定回路88Dは,ステップ数データCSTと,矩形サイズ情報W,Hと,コラムアドレスCAとから,同時に活性化すべきバンクを判定する。その判定アルゴリズムが,図77に示されている。   The activation bank determination circuit 88D in the multi-bank activation control unit 88 determines banks to be activated simultaneously from the step number data CST, the rectangular size information W and H, and the column address CA. The determination algorithm is shown in FIG.

図77(A)は,メモリマッピングのページ領域内の情報を示している。すなわち,一般化されたメモリマッピングによれば,コラムアドレスがMビット,CA[M−1:0],ステップ数CST=2Sとすると,ページ領域14内において,水平方向は下位のコラムアドレスCA[S−1:0]でマッピングされ,垂直方向は上位のコラムアドレスCA[M−1:S]でマッピングされている。つまり,入力されるコラムアドレスCAから,ページ領域14の水平方向の位置はそのコラムアドレスCAの下位のSビットで判定でき,垂直方向の位置は上位のM−Sビットで判定できる。よって,ページ領域内の水平方向の位置とコラムアドレスのステップ数2Sとの差が矩形領域の幅Wより小さければ,矩形領域が水平方向のバンクをまたぐことになり,垂直方向の位置とページ領域の高さ2M-Sとの差が矩形領域の高さHより小さければ,矩形領域が垂直方向のバンクをまたぐことになる。 FIG. 77A shows information in the page area of the memory mapping. That is, according to the generalized memory mapping, when the column address is M bits, CA [M−1: 0], and the number of steps is CST = 2 S , the horizontal direction in the page area 14 is the lower column address CA. Mapping is performed with [S-1: 0], and the vertical direction is mapped with the upper column address CA [M-1: S]. That is, from the input column address CA, the horizontal position of the page area 14 can be determined by the lower S bits of the column address CA, and the vertical position can be determined by the upper MS bits. Therefore, if the difference between the horizontal position in the page area and the column address step number 2 S is smaller than the width W of the rectangular area, the rectangular area will straddle the horizontal bank, and the vertical position and page if the difference between the height 2 MS region is smaller than the height H of the rectangular area, so that the rectangular area straddles the vertical banks.

図77(B)の活性化バンク判定アルゴリズムに示されるとおり,入力コラムアドレスCAに対して,(1)水平方向にバンク(ページ領域)をまたぐ条件は,
2S - CA[S-1:0] < W であり,(2)垂直方向にバンク(ページ領域)をまたぐ条件は,
2M-S - CA[M-1:S] < H である。
As shown in the activation bank determination algorithm in FIG. 77 (B), for the input column address CA, (1) the conditions for straddling the bank (page area) in the horizontal direction are:
2S-CA [S-1: 0] <W, and (2) The conditions for straddling banks (page areas) in the vertical direction are:
2M-S-CA [M-1: S] <H.

図77(C)の例について説明すると,ページ領域14Xは,7ビットのコラムアドレスCA[6:0]で選択される128個のメモリ単位領域を有し,行方向のステップ数CST=16である。このようなページ領域14Xに対して,入力コラムアドレスCA=77(10進数),矩形サイズW=8(8クロック,32バイト),H=8の場合は,下位アドレスCA[3:0]=13,上位アドレスCA[6:4]=4であるので,上記の条件式に基づけば,水平方向も垂直方向も共にまたぐことが判定される。   Referring to the example of FIG. 77C, the page area 14X has 128 memory unit areas selected by the 7-bit column address CA [6: 0], and the number of steps in the row direction is CST = 16. is there. For such a page area 14X, when the input column address CA = 77 (decimal number), the rectangular size W = 8 (8 clocks, 32 bytes), and H = 8, the lower address CA [3: 0] = 13. Since the upper address CA [6: 4] = 4, it is determined that both the horizontal direction and the vertical direction straddle based on the above conditional expression.

上記のような判定アルゴリズムにより,活性化バンク判定回路88Dは,同時に活性化すべきバンクの判定を行う。その結果活性化バンク判定回路88Dは,バンクデコーダ88Aにバンクアドレス縮退信号88Eを出力する。つまり,水平方向のバンクをまたぐ場合はバンクアドレスBA0を縮退させ,垂直方向のバンクをまたぐ場合はバンクアドレスBA1を縮退させる。この縮退信号88Eは,図72のマルチバンク情報SA’0,1と等価である。   By the determination algorithm as described above, the activation bank determination circuit 88D determines which bank should be activated at the same time. As a result, the activation bank determination circuit 88D outputs a bank address degeneration signal 88E to the bank decoder 88A. That is, the bank address BA0 is degenerated when straddling a horizontal bank, and the bank address BA1 is degenerated when straddling a vertical bank. This degeneration signal 88E is equivalent to the multi-bank information SA'0, 1 in FIG.

つまり,第3の例は,第1,第2の例でメモリコントローラが行う活性化バンク判定機能を,メモリ装置内に設けた例である。上記の活性化バンク判定アルゴリズムが,メモリコントローラ内に設けられれば,図72のマルチバンク情報SA’0,1がメモリコントローラからメモリ装置に供給されることになる。   That is, the third example is an example in which the activation bank determination function performed by the memory controller in the first and second examples is provided in the memory device. If the above activation bank determination algorithm is provided in the memory controller, the multi-bank information SA'0, 1 of FIG. 72 is supplied from the memory controller to the memory device.

以上の通り,マルチバンク活性化機能を実現するために,ロウ制御部内のマルチバンク活性化制御部88は,入力データに基づいて,活性化すべきバンク選択信号bnkz<3:0>を生成し,それに基づいてバンク活性化信号actpz<3:0>を生成し,活性化すべきバンクの活性化動作を制御する。   As described above, in order to realize the multi-bank activation function, the multi-bank activation control unit 88 in the row control unit generates the bank selection signal bnkz <3: 0> to be activated based on the input data, Based on this, the bank activation signal actpz <3: 0> is generated to control the activation operation of the bank to be activated.

[バンク活性化タイミング]
マルチバンク活性化制御部88は,活性化すべきバンクにバンク活性化信号actpz<3:0>を供給し,各バンクはこのバンク活性化信号に応答して,ページ領域の活性化動作を開始する。その場合,複数のバンクを活性化するタイミングを制御することが望ましい。たとえば,複数のバンクを同じタイミングで活性化動作させる制御と,または複数のバンクを順次タイミングをずらして活性化動作させる制御とが考えられる。前者の場合はその後のリードコマンドやライトコマンドのタイミングに制約がない。一方,後者の場合は,同時に複数のバンクで活性化動作が行われないので,消費電流が瞬間的に高くなることを回避できる。
[Bank activation timing]
The multi-bank activation control unit 88 supplies a bank activation signal actpz <3: 0> to a bank to be activated, and each bank starts an activation operation of a page area in response to the bank activation signal. . In that case, it is desirable to control the timing for activating a plurality of banks. For example, a control for activating the plurality of banks at the same timing and a control for activating the plurality of banks at different timings can be considered. In the former case, there is no restriction on the timing of subsequent read commands and write commands. On the other hand, in the latter case, since the activation operation is not performed in a plurality of banks at the same time, it is possible to avoid an instantaneous increase in current consumption.

図78は,バンク活性化タイミングの例1を示す図である。この例では,複数のバンクを同時に活性化動作する。マルチバンク活性化制御部88は,前述のとおり,活性化バンクを選択するバンクデコーダ88Aと,その活性化バンク選択信号bnk<3:0>に基づいてコマンド制御部95からのアクティブパルスactpzを選択されたバンクに分配するバンクアクティブパルス出力回路88Bとを有する。図中のタイミングチャートに示されるとおり,バンクアクティブパルス出力回路88Bは4つのANDゲートで構成され,バンク活性化信号actpz<3:0>を同じタイミングで出力する。   FIG. 78 shows a first example of bank activation timing. In this example, a plurality of banks are activated simultaneously. As described above, the multi-bank activation control unit 88 selects the active pulse actpz from the command control unit 95 based on the bank decoder 88A for selecting the activation bank and the activation bank selection signal bnk <3: 0>. And a bank active pulse output circuit 88B that distributes to the banks. As shown in the timing chart in the figure, the bank active pulse output circuit 88B is composed of four AND gates and outputs the bank activation signal actpz <3: 0> at the same timing.

各バンクbank0−3は,メモリセルアレイを含むメモリコア781と,メモリコアを制御するコア制御回路780とを有し,バンク活性化信号actpz<3:0>に応答して,各コア制御回路780は,メモリコア780内のロウデコーダを活性化させ,ロウアドレスに対応するワード線を駆動し,センスアンプ列を活性化する。   Each bank bank 0-3 has a memory core 781 including a memory cell array and a core control circuit 780 for controlling the memory core. In response to the bank activation signal actpz <3: 0>, each core control circuit 780 Activates the row decoder in the memory core 780, drives the word line corresponding to the row address, and activates the sense amplifier row.

図78の例1では,アクティブコマンドACTに応答して活性化すべき複数のバンクが同時にアクティブ動作されるので,その後のリードコマンドまたはライトコマンドを順次入力して複数のバンクにアクセスすることができる。   In Example 1 of FIG. 78, since a plurality of banks to be activated in response to the active command ACT are simultaneously activated, it is possible to access the plurality of banks by sequentially inputting subsequent read commands or write commands.

図79は,バンク活性化タイミングの例2を示す図である。この例では,複数のバンクを順次タイミングをずらして活性化動作させる。コマンド制御部95は,コマンドデコーダ95Aとパルス生成回路95Bに加えて,3つの遅延回路791,792,793を有する。この3つの遅延回路は,活性化バンク数信号790に応答して活性化され,パルス生成回路95Bが生成するアクティブパルスactpz0を所定時間ずつ遅延させて,3つの遅延アクティブパルスactpz1-3を生成する。アクティブパルスactpz0及び遅延アクティブパルスactpz1-3は,バンクアクティブパルス出力回路88Bの4つのセレクタSELにそれぞれ供給される。   FIG. 79 is a diagram illustrating a second example of bank activation timing. In this example, a plurality of banks are activated by sequentially shifting the timing. The command control unit 95 includes three delay circuits 791, 792, and 793 in addition to the command decoder 95A and the pulse generation circuit 95B. The three delay circuits are activated in response to the activation bank number signal 790, and delay the active pulse actpz0 generated by the pulse generation circuit 95B by a predetermined time to generate three delayed active pulses actpz1-3. . The active pulse actpz0 and the delayed active pulse actpz1-3 are respectively supplied to the four selectors SEL of the bank active pulse output circuit 88B.

マルチバンク活性化制御部88は,活性化バンク制御回路88Cとバンクアクティブパルス出力回路88Bで構成され,活性化バンク制御部88Cは,前述のバンクデコーダの機能を内蔵し,供給バンクアドレスBA[1:0]とマルチバンクデータSA’[1:0]とに基づいて,活性化されるべきバンクに対して活性化順番を判定し,セレクタSELに選択信号795を供給する。この選択信号795は8ビットで構成され,2ビットの選択信号が各セレクタに供給され,各セレクタは選択信号795に応答して活性化すべきバンクにバンク活性化信号actpz<3:0>を出力する。   The multi-bank activation control unit 88 includes an activation bank control circuit 88C and a bank active pulse output circuit 88B. The activation bank control unit 88C incorporates the function of the bank decoder described above, and supplies a bank address BA [1 : 0] and the multi-bank data SA ′ [1: 0], the activation order is determined for the bank to be activated, and the selection signal 795 is supplied to the selector SEL. This selection signal 795 is composed of 8 bits, a 2-bit selection signal is supplied to each selector, and each selector outputs a bank activation signal actpz <3: 0> to the bank to be activated in response to the selection signal 795. To do.

なお,遅延回路791〜793は,活性化バンク数データ790に応じて必要な遅延アクティブパルスactpz1-3を生成することで,省電力化を可能にしている。   Note that the delay circuits 791 to 793 generate necessary delay active pulses actpz1-3 according to the activation bank number data 790, thereby enabling power saving.

図80は,活性化バンク制御回路88Cのバンク活性化タイミング制御の論理を説明する図である。図80には,マルチバンクデータSA’[1:0]=11,01,10の場合の,4つのバンクを活性化する順番データ(2ビットの2進数表示)の表800,801,802が示されている。   FIG. 80 is a diagram for explaining the logic of the bank activation timing control of the activation bank control circuit 88C. FIG. 80 shows tables 800, 801, and 802 of order data (2-bit binary display) for activating four banks in the case of multi-bank data SA ′ [1: 0] = 11, 01, 10. It is shown.

マルチバンクデータSA’[1:0]=11の場合は,4つのバンクを全て活性化することになり,活性化順番データ表800に示されるとおり,供給バンクアドレスBA[1:0]に応じて活性化順番データ(00,01,10,11)が異なる。たとえば,供給バンクアドレスBA[1:0]=00の場合は,バンクBank0,1,2,3の順番で活性化制御される。表800内に示されている活性化順番データ(00,01,10,11の8ビット)が,図79に示した活性化バンク制御回路88Cが生成する8ビットの選択信号795に対応する。つまり,4つのセレクタSELが,アクティブパルスactpz0及び3つの遅延アクティブパルスactpz1,actpz2,actpz3をそれぞれ選択する。その結果,バンク活性化信号actpz<0>〜<3>は,順番に生成される。   When the multi-bank data SA ′ [1: 0] = 11, all four banks are activated, and as shown in the activation order data table 800, according to the supply bank address BA [1: 0] The activation order data (00, 01, 10, 11) are different. For example, when the supply bank address BA [1: 0] = 00, activation control is performed in the order of the banks Bank0, 1, 2, and 3. The activation order data (8 bits of 00, 01, 10, 11) shown in the table 800 corresponds to the 8-bit selection signal 795 generated by the activation bank control circuit 88C shown in FIG. That is, the four selectors SEL select the active pulse actpz0 and the three delayed active pulses actpz1, actpz2, actpz3, respectively. As a result, the bank activation signals actpz <0> to <3> are generated in order.

また,供給バンクアドレスBA[1:0]=01の場合は,バンクBank1,0,3,2の順番で活性化制御される。この場合のバンク活性化信号actpz<0>〜<3>が,図79のタイミングチャートに示されている。表800内に示されている活性化順番データ(01,00,11,10の8ビット)が選択信号795としてセレクタに供給され,4つのセレクタSELが,上から順に遅延アクティブパルスactpz1,アクティブパルスactpz0,遅延アクティブパルスactpz3,actpz2をそれぞれ選択する。その結果,タイミングチャートに示すとおり,バンク活性化信号actpz<1>,<0>,<3>,<2>がこの順番で生成される。   When the supply bank address BA [1: 0] = 01, activation control is performed in the order of the banks Bank1, 0, 3, and 2. The bank activation signals actpz <0> to <3> in this case are shown in the timing chart of FIG. The activation order data (8 bits of 01, 00, 11, and 10) shown in the table 800 is supplied to the selector as the selection signal 795, and the four selectors SEL are sequentially supplied with the delayed active pulse actpz1 and the active pulse from the top. Select actpz0 and delayed active pulses actpz3 and actpz2, respectively. As a result, as shown in the timing chart, the bank activation signals actpz <1>, <0>, <3>, <2> are generated in this order.

同様に,マルチバンクデータSA’[1:0]=01の場合は,水平方向の2つのバンクを活性化することになり,活性化順番データ表801に示されるとおり,供給バンクアドレスBA[1:0]に応じて2つの活性化順番データ(00,01)が生成される。   Similarly, when the multi-bank data SA ′ [1: 0] = 01, two banks in the horizontal direction are activated, and as shown in the activation order data table 801, the supply bank address BA [1 : 0], two activation order data (00, 01) are generated.

同様に,マルチバンクデータSA’[1:0]=10の場合は,垂直方向の2つのバンクを活性化することになり,活性化順番データ表802に示されるとおり,供給バンクアドレスBA[1:0]に応じて2つの活性化順番データ(00,10)が生成される。この表802によれば,表800と共通化したため,2つのバンクを活性化するために,アクティブパルスactpz0と遅延アクティブパルスactpz2とを利用して,バンク活性化信号が生成される。つまり,表802の下のタイミングチャート803に示されるとおり,供給されたアクティブコマンドACTに応答して,内部のアクティブコマンドACTがアクティブパルスactpz0と遅延アクティブパルスactpz2のタイミングで生成されている。   Similarly, when the multi-bank data SA ′ [1: 0] = 10, two banks in the vertical direction are activated, and as shown in the activation order data table 802, the supply bank address BA [1 : 0], two activation order data (00, 10) are generated. According to this table 802, since it is shared with the table 800, a bank activation signal is generated using the active pulse actpz0 and the delayed active pulse actpz2 in order to activate the two banks. That is, as shown in the timing chart 803 below the table 802, in response to the supplied active command ACT, the internal active command ACT is generated at the timing of the active pulse actpz0 and the delayed active pulse actpz2.

そこで,マルチバンクデータSA’[1:0]=10の場合は,表802の代わりに表804のような活性化順番データ(00,01)を生成するようにしても良い。この場合は,表804の下のタイミングチャート805に示されるとおり,供給されたアクティブコマンドACTに応答して,内部のアクティブコマンドACTがアクティブパルスactpz0と遅延アクティブパルスactpz1のタイミングで生成される。つまり,同時にアクティブ化される2つのバンクがタイミングをずらしながら連続して活性化される。   Therefore, when the multi-bank data SA ′ [1: 0] = 10, activation order data (00, 01) as shown in the table 804 may be generated instead of the table 802. In this case, as shown in the timing chart 805 below the table 804, in response to the supplied active command ACT, the internal active command ACT is generated at the timing of the active pulse actpz0 and the delayed active pulse actpz1. That is, two banks activated simultaneously are activated successively while shifting the timing.

図81は,バンク活性化タイミングの例3を示す図である。この例では,複数のバンクを順次タイミングをずらして活性化動作させる。図81では,図79の遅延回路791〜793の代わりに,クロックCLKに同期して動作するフリップフロップ回路810〜812を設けている。それ以外の構成は,図79と同じである。活性化バンク制御回路88Cも,図79,図80で説明したとおりである。   FIG. 81 shows a third example of bank activation timing. In this example, a plurality of banks are activated by sequentially shifting the timing. In FIG. 81, flip-flop circuits 810 to 812 that operate in synchronization with the clock CLK are provided instead of the delay circuits 791 to 793 of FIG. The other configuration is the same as FIG. The activation bank control circuit 88C is also as described with reference to FIGS.

この例3によれば,遅延回路がクロックCLKに同期したフリップフロップ回路810〜812であるので,アクティブパルスactpz0からクロックCLKに同期した遅延タイミングで3つの遅延アクティブパルスactpz1-3が生成される。つまり,図81のタイミングチャートに示されるとおり,バンク活性化信号actpz<0>〜<3>が,クロックCLKに同期して順番に出力される。それにより,クロックCLKが高速化されるとバンク活性化信号actpz<0>〜<3>もそれに追従して高速に順次生成され,低速化されると同様に低速に順次生成される。よって,クロック同期の動作が可能である。   According to the third example, since the delay circuit is the flip-flop circuits 810 to 812 synchronized with the clock CLK, three delayed active pulses actpz1-3 are generated from the active pulse actpz0 with a delay timing synchronized with the clock CLK. That is, as shown in the timing chart of FIG. 81, the bank activation signals actpz <0> to <3> are sequentially output in synchronization with the clock CLK. As a result, when the clock CLK is speeded up, the bank activation signals actpz <0> to <3> are also sequentially generated at high speed, and when the speed is decreased, they are sequentially generated at low speed. Therefore, clock synchronous operation is possible.

[ロウアドレス生成]
本実施の形態におけるマルチバンクアクセス機能では,1回のアクティブコマンドACTとバンクアドレス及びロウアドレスに応答して,アクセスが必要なバンクのページ領域を全て活性化制御する。したがって,供給されたバンクアドレスとロウアドレスから,活性化が必要なバンクの判定に加えて,活性化が必要なページ領域を特定するロウアドレスを生成する必要がある。
[Generate row address]
In the multi-bank access function in the present embodiment, in response to one active command ACT and the bank address and row address, activation control is performed for all the page areas of the bank that need access. Therefore, it is necessary to generate a row address for specifying a page area that needs to be activated in addition to determining a bank that needs to be activated from the supplied bank address and row address.

図82は,本実施の形態におけるマルチバンクアクセスでのロウアドレス生成を説明する図である。図中,メモリマッピング12と,矩形アクセス領域RC0−3に対応する供給バンクアドレスBA0,1と,各バンクの活性化対象のロウアドレスRAとを示す論理値表820とが示されている。メモリマッピング12は,前述と同様であり,行列方向に配列されたページ領域は,上下に隣接するページ領域のバンクがそれぞれ異なっていて,上下に隣接する4つのバンクBank0-3毎にロウアドレスが+1ずつインクリメントしている。   FIG. 82 is a diagram for explaining row address generation in multibank access in the present embodiment. In the figure, a memory mapping 12, a supply bank address BA0, 1 corresponding to the rectangular access area RC0-3, and a logical value table 820 showing the activation target row address RA of each bank are shown. The memory mapping 12 is the same as described above. In the page area arranged in the matrix direction, the banks of the page areas adjacent to each other in the upper and lower sides are different, and the row address is set for each of the four banks Bank0-3 vertically adjacent to each other. It is incremented by +1.

そして,このメモリマッピング12によれば,アクセスされる矩形領域RC0の場合は,供給バンクアドレスBA=BA0(=00)と供給ロウアドレスRA=RA0とから,同時に活性化すべきページ領域のアドレスは,BA0/RA0,BA1/RA0,BA2/RA0,BA3/RA0であることが理解できる。矩形領域RC1の場合は,供給されるバンクアドレスBA=BA1(=01)とロウアドレスRA=RA0とから,同時に活性化すべきページ領域のアドレスは,BA1/RA0,BA0/RA1,BA3/RA0,BA2/RA1であり,矩形領域RC2の場合は,供給されるバンクアドレスBA=BA2(=10)とロウアドレスRA=RA0とから,同時に活性化すべきページ領域のアドレスは,BA2/RA0,BA3/RA0,BA0/RA(0+RS),BA2/RA(0+RS)であり,矩形領域RC3の場合は,供給されるバンクアドレスBA=BA3(=11)とロウアドレスRA=RA0とから,同時に活性化すべきページ領域のアドレスは,BA3/RA0,BA2/RA(0+1),BA1/RA(0+RS),BA2/RA(0+RS+1)である。   According to this memory mapping 12, in the case of the rectangular area RC0 to be accessed, the address of the page area to be activated simultaneously from the supply bank address BA = BA0 (= 00) and the supply row address RA = RA0 is It can be understood that they are BA0 / RA0, BA1 / RA0, BA2 / RA0, and BA3 / RA0. In the case of the rectangular area RC1, from the supplied bank address BA = BA1 (= 01) and row address RA = RA0, the addresses of page areas to be activated simultaneously are BA1 / RA0, BA0 / RA1, BA3 / RA0, In the case of BA2 / RA1 and the rectangular area RC2, the address of the page area to be activated at the same time from the supplied bank address BA = BA2 (= 10) and the row address RA = RA0 is BA2 / RA0, BA3 / RA0, BA0 / RA (0 + RS), BA2 / RA (0 + RS). In the case of the rectangular area RC3, the bank address BA = BA3 (= 11) and the row address RA = RA0 to be simultaneously activated should be activated. The page area addresses are BA3 / RA0, BA2 / RA (0 + 1), BA1 / RA (0 + RS), B Is a 2 / RA (0 + RS + 1).

上記を一般化すると,供給ロウアドレスがRA,メモリマッピング12のロウアドレスのステップ数がRSの場合,各バンクBank0-3に発生すべきロウアドレスは,供給バンクアドレスBA0,BA1に応じて論理値表820に示されるとおりである。すなわち,以下の通りである。
BA=00:RA,RA,RA,RA
BA=01:RA+1,RA,RA+1,RA
BA=10:RA+RS,RA+RS,RA,RA
BA=11:RA+RS+1,RA+RS,RA+1,RA
したがって,図71のロウアドレス演算部97は,供給されるバンクアドレスBAとロウアドレスRAとに応じて,上記論理値表820に示したロウアドレスを各バンクBank0-3に生成する。
Generalizing the above, when the supply row address is RA and the number of steps of the row address of the memory mapping 12 is RS, the row address to be generated in each bank Bank0-3 is a logical value according to the supply bank address BA0, BA1. As shown in Table 820. That is, it is as follows.
BA = 00: RA, RA, RA, RA
BA = 01: RA + 1, RA, RA + 1, RA
BA = 10: RA + RS, RA + RS, RA, RA
BA = 11: RA + RS + 1, RA + RS, RA + 1, RA
Therefore, the row address calculation unit 97 in FIG. 71 generates the row address shown in the logical value table 820 in each of the banks Bank0-3 according to the supplied bank address BA and row address RA.

図83は,本実施の形態におけるロウアドレス演算部の例1を示す図である。ロウアドレス演算部97は,供給されるロウアドレスRAに,0,1,RS,RS+1をそれぞれ加算するアドレス加算器831〜834と,それらアドレス加算器の出力のいずれかを選択して各バンク内のアドレスデコーダ836に供給するセレクタSELと,セレクタSELに選択信号835を供給するロウアドレス制御回路830とを有する。ロウアドレス制御回路830は,供給されるバンクアドレスBAに応じて,図82の論理値表821に示された選択信号(各2ビット,合計で8ビット)を生成する。また,ロウアドレスのステップ数データRSと,RS+1とが,モードレジスタ96からアドレス加算器833,834にそれぞれ供給され,固定値「0」「1」がアドレス加算器831,832にそれぞれ供給される。よって,加算器831は,供給ロウアドレスRAをそのまま出力する。   FIG. 83 is a diagram illustrating Example 1 of the row address calculation unit in the present embodiment. The row address calculation unit 97 selects one of the address adders 831 to 834 for adding 0, 1, RS, and RS + 1 to the supplied row address RA, and the output of these address adders. And a row address control circuit 830 for supplying a selection signal 835 to the selector SEL. The row address control circuit 830 generates a selection signal (2 bits each, 8 bits in total) shown in the logical value table 821 of FIG. 82 according to the supplied bank address BA. Further, the step number data RS and RS + 1 of the row address are supplied from the mode register 96 to the address adders 833 and 834, respectively, and the fixed values “0” and “1” are supplied to the address adders 831 and 832, respectively. . Therefore, the adder 831 outputs the supply row address RA as it is.

たとえば,供給バンクアドレスBA=01の場合は,ロウアドレス制御回路832は,選択信号835として「01,00,01,00」を生成し,それに応じて,各セレクタSELは,上から順に,RA+1,RA,RA+1,RAを選択して,各バンクのアドレスデコーダ836に供給する。各バンクは,前述のバンク活性化信号actpz<3:0>に応答して,選択されたバンクのアドレスデコーダ836が活性化され,活性化されたアドレスデコーダが上記のロウアドレスRA+1,RA,RA+1,RAをデコードし,対応するワード線を活性化する。   For example, when the supply bank address BA = 01, the row address control circuit 832 generates “01, 00, 01, 00” as the selection signal 835, and accordingly, each selector SEL sequentially receives RA + 1 from the top. , RA, RA + 1, RA are selected and supplied to the address decoder 836 of each bank. In each bank, in response to the bank activation signal actpz <3: 0>, the address decoder 836 of the selected bank is activated, and the activated address decoder becomes the row address RA + 1, RA, RA + 1. , RA are decoded, and the corresponding word line is activated.

図84は,本実施の形態におけるロウアドレス演算部の例2を示す図である。この例では,ロウアドレス演算部97は,供給されるロウアドレスRAに,セレクタSELで選択された定数0,1,RS,RS+1を加算する4つのアドレス加算器841〜844と,セレクタSELに選択信号835を供給するロウアドレス制御回路830とを有する。ロウアドレス制御回路830は,図83と同じである。そして,このロウアドレス制御回路830の選択信号に応じて,各セレクタSELは,4つの定数0,1,RS,RS+1のいずれかを選択し,アドレス加算器に出力する。つまり,ロウアドレス演算器97は,供給ロウアドレスRAに加算する定数0,1,RS,RS+1をセレクタで選択し,選択された定数をアドレス加算器に与える。図83のロウアドレス演算器97は,4つのアドレス加算器の出力をセレクタで選択したが,図84のロウアドレス演算器97は,4つの定数をセレクタで選択している。この点で異なるだけである。   FIG. 84 is a diagram illustrating Example 2 of the row address calculation unit in the present embodiment. In this example, the row address calculation unit 97 selects four address adders 841 to 844 that add the constants 0, 1, RS, and RS + 1 selected by the selector SEL to the supplied row address RA, and the selector SEL. And a row address control circuit 830 for supplying a signal 835. The row address control circuit 830 is the same as FIG. Then, according to the selection signal of the row address control circuit 830, each selector SEL selects one of the four constants 0, 1, RS, and RS + 1 and outputs it to the address adder. That is, the row address calculator 97 selects the constants 0, 1, RS, and RS + 1 to be added to the supplied row address RA with the selector, and gives the selected constant to the address adder. The row address calculator 97 in FIG. 83 selects the outputs of the four address adders with a selector, but the row address calculator 97 in FIG. 84 selects four constants with the selector. The only difference is in this respect.

以上のように,ロウアドレス演算器97は,供給されるロウアドレスRAから,必要な4つのロウアドレスを生成する。よって,メモリ装置は,1回のアクティブコマンドでロウアドレスを入力すれば,内部で必要な4つのロウアドレスを生成することができ,複数のバンクを活性化することができる。   As described above, the row address calculator 97 generates necessary four row addresses from the supplied row address RA. Therefore, if a memory device inputs a row address with one active command, it can generate four necessary row addresses internally, and can activate a plurality of banks.

[メモリマッピング設定]
マルチバンク活性化機能を実現するためには,メモリ装置にメモリマッピング情報を設定しておくことが必要である。例えば,図82で説明したとおり,メモリマッピング12に基づいて4種類の矩形アクセス領域RC0−3において活性化すべきバンクが選択され,生成すべきロウアドレスが演算される。よって,より上位のシステムにおけるメモリマッピングが異なると,メモリ装置はそれに応じて活性化すべきページ領域の判定処理を変更することが求められる。
[Memory mapping settings]
In order to realize the multi-bank activation function, it is necessary to set memory mapping information in the memory device. For example, as described with reference to FIG. 82, banks to be activated are selected in the four types of rectangular access areas RC0-3 based on the memory mapping 12, and row addresses to be generated are calculated. Therefore, if the memory mapping in the higher system is different, the memory device is required to change the determination process of the page area to be activated accordingly.

図85は,2つのメモリマッピング例を示す図である。メモリマッピング12Aは,前述してきたメモリマッピングと同じであり,奇数行にはバンクBank0,1が,偶数行にはバンクBank2,3が配置され,ロウアドレスRAが図示されるように配置される。また,メモリマッピング12Bは,奇数行には偶数のバンクBank0,2が,偶数行には奇数のバンクBank1,3が配置され,ロウアドレスRAは12Aと同じである。   FIG. 85 is a diagram showing two memory mapping examples. The memory mapping 12A is the same as the memory mapping described above, with the banks Bank0, 1 being arranged in the odd rows, the banks Bank2, 3 being arranged in the even rows, and the row address RA being arranged as shown. In the memory mapping 12B, even-numbered banks Bank0, 2 are arranged in odd rows, odd-numbered banks Bank1, 3 are arranged in even rows, and the row address RA is the same as 12A.

図86は,上記の2種類のメモリマッピングに対するバンクアドレス切換回路861を示す図である。図86(B)の構成図には,クロック端子CLK,特殊入力端子SP0,バンクアドレス端子BA0,BA1に対して,それぞれ入力バッファ94が設けられ,クロックCLKに同期してそれぞれの信号をラッチするラッチ回路860が設けられている。   FIG. 86 is a diagram showing a bank address switching circuit 861 for the above two types of memory mapping. In the configuration diagram of FIG. 86B, an input buffer 94 is provided for each of the clock terminal CLK, the special input terminal SP0, and the bank address terminals BA0 and BA1, and the respective signals are latched in synchronization with the clock CLK. A latch circuit 860 is provided.

図86(A)のタイミングチャート図に示されるとおり,拡張モードレジスタセットコマンドEMRSと共にバンクアドレス端子BAから設定データVが,特殊端子SP0からメモリマッピング情報ARが,アドレス端子ADDからロウアドレスのステップ数データRSがそれぞれ入力される。そして,設定データV,メモリマッピング情報AR,ステップ数データRSは,モードレジスタ96にセットされる。   As shown in the timing chart of FIG. 86 (A), the setting data V from the bank address terminal BA, the memory mapping information AR from the special terminal SP0, and the number of steps from the address terminal ADD to the row address together with the extended mode register set command EMRS. Each data RS is input. The setting data V, the memory mapping information AR, and the step number data RS are set in the mode register 96.

このモードレジスタ96にセットされたメモリマッピング情報ARに応じて,バンクアドレス切換回路861内のセレクタSELが,2ビットのバンクアドレスBA0,BA1のいずれかを選択し,内部バンクアドレスba0z,ba1zを生成する。図中に示されるとおり,メモリマッピング情報AR=Lの場合は,内部バンクアドレスは,ba0z=BA0,ba1z=BA1にされ,メモリマッピング情報AR=Hの場合は,内部バンクアドレスは,ba0z=BA1,ba1z=BA0にされる。   In accordance with the memory mapping information AR set in the mode register 96, the selector SEL in the bank address switching circuit 861 selects one of the 2-bit bank addresses BA0 and BA1, and generates internal bank addresses ba0z and ba1z. To do. As shown in the figure, when the memory mapping information AR = L, the internal bank address is set to ba0z = BA0 and ba1z = BA1, and when the memory mapping information AR = H, the internal bank address is set to ba0z = BA1. , Ba1z = BA0.

このように,入力部でバンクアドレスBA0,BA1をメモリマッピング情報ARに基づいて切り替えることにより,メモリ装置内部のバンク選択機能やロウアドレス生成機能は,共通のメモリマッピング12Aに基づく構成にすることができる。   Thus, by switching the bank addresses BA0 and BA1 based on the memory mapping information AR at the input unit, the bank selection function and the row address generation function inside the memory device can be configured based on the common memory mapping 12A. it can.

なお,上記の実施の形態では,また,マルチバンク情報(SA’)、同時活性化バンクデータ(SA’0−2)、矩形領域サイズデータ(W,H)等をスペシャル入力端子SPから入力したが、使用されていない端子で実現可能である。例えば,リード動作において,ロウアドレスがアドレス端子Add0〜12で入力され,コラムアドレスがアドレス端子Add0〜9で入力されるとすると,コラムアドレスが入力されるときアドレス端子Add10〜12は使用されていない。よって,コラムアドレス入力時に使用されていないアドレス端子Add10〜12からこれら制御データSA’,W,H等を入力することができる。その場合にも本発明は適用可能である。   In the above embodiment, multi-bank information (SA ′), simultaneous activation bank data (SA′0-2), rectangular area size data (W, H), and the like are input from the special input terminal SP. However, this can be realized with terminals that are not used. For example, in the read operation, if the row address is input at the address terminals Add0 to 12 and the column address is input at the address terminals Add0 to 9, the address terminals Add10 to 12 are not used when the column address is input. . Therefore, the control data SA ', W, H, etc. can be input from the address terminals Add10 to 12 which are not used when the column address is input. In this case, the present invention can be applied.

また、拡張モードレジスタセットコマンドEMRSによりモードレジスタに設定される各種情報は上記実施の形態に限定されることなく、アドレス端子から入力されることも本発明の適用範囲である。   Further, the various information set in the mode register by the extended mode register set command EMRS is not limited to the above embodiment, but is also applied from the address terminal.

《マルチバンクアクセスとバイトバウンダリ》
バンクアドレスとコラムアドレスで選択されるメモリ単位領域を超える矩形アクセスの場合に対応して,メモリ装置がバイトバウンダリ機能を有することを説明した。また,バンクアドレスとロウアドレスで選択されるページ領域を超える矩形アクセスの場合に対応して,メモリ装置がマルチバンクアクセス機能を有することも説明した。そこで,矩形アクセス領域が,ページ領域を超えるとともにメモリ単位領域を超える場合に,両方の機能により,1回のアクティブコマンドでアクセス可能にし且つ無駄なデータ出力をなくすことができる。以下,具体的に説明する。
《Multi-bank access and byte boundary》
It has been described that the memory device has a byte boundary function in response to a rectangular access exceeding the memory unit area selected by the bank address and the column address. It has also been described that the memory device has a multi-bank access function corresponding to the case of rectangular access exceeding the page area selected by the bank address and row address. Therefore, when the rectangular access area exceeds the page area and exceeds the memory unit area, both functions can be accessed with one active command and useless data output can be eliminated. This will be specifically described below.

図87は,マルチバンクアクセスとバイトバウンダリが発生した場合のタイミングチャートを示す図である。図示されるとおり,矩形アクセス領域22がページ領域を超えて複数のバンクBA3,BA2,BA1,BA0にまたがり,且つメモリ単位領域を超えてコラムアクセスが必要な例である。この例では,マルチバンク情報SA’=4(=11),スタートバイト信号SB=2である。   FIG. 87 is a diagram showing a timing chart when a multi-bank access and a byte boundary occur. As shown in the figure, the rectangular access area 22 extends over a plurality of banks BA3, BA2, BA1, and BA0 beyond the page area, and column access is required beyond the memory unit area. In this example, the multi-bank information SA ′ = 4 (= 11) and the start byte signal SB = 2.

図88は,マルチバンクアクセス機能とバイトバウンダリ機能とを有するメモリ装置の構成図である。このメモリ装置86には,簡単のために,2つのバンクBank2,3のみが示されているが,これに加えて図示しない2つのバンクBank0,1が設けられている。モードレジスタ96には,メモリマッピングにおけるロウアドレスのステップ数データRSと,コラムアドレスのステップ数データCSTとがあらかじめ設定される。   FIG. 88 is a configuration diagram of a memory device having a multi-bank access function and a byte boundary function. In this memory device 86, only two banks Bank2 and 3 are shown for simplicity, but in addition to this, two banks Bank0 and 1 (not shown) are provided. In the mode register 96, row number step number data RS and column address step number data CST in memory mapping are preset.

ロウ制御部としては,バンクアドレスBAとマルチバンク情報SA’とから活性化すべきバンクへのバンク活性化信号actpz<3:0>を生成するマルチバンク活性化制御部88と,バンクアドレスBAとロウアドレスRAとロウアドレスのステップ数データRSとから各バンクのロウアドレスを演算するロウアドレス演算部97−2,97−3とが設けられている。このロウアドレス演算部97−2,97−3は,図83,図84で説明した構成の一部分である。また,図78で説明したとおり,バンク活性化信号actpzは各バンク内のコア制御部に供給される。但し,図88にはコア制御部は省略されている。   The row control unit includes a multi-bank activation control unit 88 that generates a bank activation signal actpz <3: 0> to a bank to be activated from the bank address BA and the multi-bank information SA ′, and a bank address BA and a row. Row address calculation units 97-2 and 97-3 for calculating the row address of each bank from the address RA and the step number data RS of the row address are provided. The row address calculation units 97-2 and 97-3 are a part of the configuration described with reference to FIGS. As described with reference to FIG. 78, the bank activation signal actpz is supplied to the core control unit in each bank. However, the core control unit is omitted in FIG.

コラム制御部90には,供給されるコラムアドレスCAとバンクアドレスBAと,スタートバイト信号SBとコラムアドレスのステップ数データCSTとから,各バンクに内部コラムアドレスI−CA−2,3を生成するコラムアドレスコントローラ290−2,290−3を有する。このコラムアドレスコントローラ290は,図44に示したコラムアドレス生成器と同等であり,これにバンクアドレスBAを追加することで,バンクの境界をまたいでバイトバウンダリに必要なコラムアドレスの生成を可能にする。なお,ステップ数データCSTは,図44のコラムアドレス折り返しデータCAWrapと同じである。   The column controller 90 generates internal column addresses I-CA-2 and 3 for each bank from the supplied column address CA and bank address BA, start byte signal SB and column address step number data CST. Column address controllers 290-2 and 290-3 are provided. This column address controller 290 is equivalent to the column address generator shown in FIG. 44, and by adding a bank address BA to this, it is possible to generate a column address necessary for byte boundary across the bank boundary. To do. The step number data CST is the same as the column address return data CAWrap of FIG.

さらに,コラム制御部90は,供給されるバンクアドレスBAとコラムアドレスCAとスタートバイト信号SBとに基づいて,各バンク内のバイト領域Byte0−3のデータを選択する制御信号S221を生成する。この制御信号S221により,各バンクの4つのバイト領域Byte0−3内のデータラッチ回路が選択され,入出力バスI/Obusに接続される。各バンク内のバイト領域Byte0−3の構成と動作は,図22,24,29で説明したのと同じである。各バンクに4つのバイト領域があるので,上記の制御信号S221は,4×4=16ビットの選択信号である。   Further, the column controller 90 generates a control signal S221 for selecting data of the byte areas Byte0-3 in each bank based on the supplied bank address BA, column address CA, and start byte signal SB. By this control signal S221, the data latch circuits in the four byte areas Byte0-3 of each bank are selected and connected to the input / output bus I / Obus. The configuration and operation of the byte areas Byte0-3 in each bank are the same as those described with reference to FIGS. Since there are four byte areas in each bank, the control signal S221 is a selection signal of 4 × 4 = 16 bits.

次に,図87の矩形領域22がアクセスされる時の動作について説明する。図87のタイミングチャートに示されるとおり,拡張モードレジスタセットコマンドEMRSと共にコラムアドレスのステップ数データCST=4(図中871)と,ロウアドレスのステップ数データRS=4(図中872)とが入力され,モードレジスタ96に設定される。   Next, the operation when the rectangular area 22 in FIG. 87 is accessed will be described. As shown in the timing chart of FIG. 87, column mode step number data CST = 4 (871 in the figure) and row address step number data RS = 4 (872 in the figure) are input together with the extended mode register set command EMRS. And set in the mode register 96.

次に,アクティブコマンドACT(図中876)と共に,矩形アクセス領域の左上の画素を含むページ領域のバンクアドレスBAとロウアドレスRA,及びマルチバンク情報SA’=4(図中873)が入力される。SA’=4では,2×2=4つのバンクを同時にアクティブ化することを要請されている。これに応答して,マルチバンク活性化制御部88は,4つのバンクにバンク活性化信号actpz<3:0>を出力する。また,ロウアドレス演算部97−2,3が,各バンクのロウアドレスを演算する。そして,4つのバンク内のロウデコーダが演算されたロウアドレスをデコードして対応するワード線を駆動し,バンクを活性化する。   Next, together with the active command ACT (876 in the figure), the bank address BA and row address RA of the page area including the upper left pixel of the rectangular access area, and multi-bank information SA ′ = 4 (873 in the figure) are input. . In SA '= 4, 2 × 2 = 4 banks are requested to be activated simultaneously. In response to this, the multi-bank activation control unit 88 outputs bank activation signals actpz <3: 0> to the four banks. In addition, the row address calculation units 97-2 and 97 calculate the row address of each bank. The row decoders in the four banks decode the calculated row address, drive the corresponding word line, and activate the bank.

そして,リードコマンドRD(図中877)と同時に,バンクアドレスBA=3とコラムアドレスCA=126,スタートバイト信号SB=2(図中874)とバイト組み合わせ情報の第2の情報BMR=UP(図中875)とを入力する。このバンクアドレスBAに対応するバンクBank3のコラムアドレスコントローラ290−3は,供給されたコラムアドレスCA=126と,スタートバイト信号SB=2に基づきコラムアドレスCA=127を生成し,内部コラムアドレスI−CA−3として出力する。これにより,バンクBank3は,各バイト領域Byte0−3にコラムアドレス126,127のデータを出力させる。そして,データラッチセレクタ221からの制御信号S221に応じて,バイト領域Byte2,3はコラムアドレスCA=126のデータを,バイト領域Byte0,1はコラムアドレスCA=127のデータを入出力バスI/Obusに出力する。   Simultaneously with the read command RD (877 in the figure), the bank address BA = 3, the column address CA = 126, the start byte signal SB = 2 (874 in the figure), and the second information BMR = UP (byte figure). Middle 875). The column address controller 290-3 of the bank Bank3 corresponding to the bank address BA generates a column address CA = 127 based on the supplied column address CA = 126 and the start byte signal SB = 2, and the internal column address I− Output as CA-3. As a result, the bank Bank3 outputs the data at the column addresses 126 and 127 to the byte areas Byte0-3. In response to the control signal S221 from the data latch selector 221, the byte areas Byte2 and 3 receive the data at the column address CA = 126, the byte areas Byte0 and 1 receive the data at the column address CA = 127 and the input / output bus I / Obus. Output to.

次に,リードコマンドRDと共に,バンクアドレスBA=3とコラムアドレスCA=127と,SB=2,BMR=UPが入力される。これに応答して,コラムアドレスコントローラ290−3は内部コラムアドレスI−CA−3=127を生成し,バンクBank3はコラムアドレス127の4バイトデータを出力する。一方,コラムアドレスコントローラ290−2は,バンクアドレスBA=3とコラムアドレスCA=127とスタートバイト信号SB=2から,バンクBank2からデータを読み出す必要性を検出し,コラムアドレスのステップ数データCSTを参照して,バンクBank2のコラムアドレスCA=124を内部コラムアドレスI−CA−2として出力する。これにより,バンクBank2は,コラムアドレスCA=124の4バイトデータを読み出す。そして,データラッチセレクタ221が,バンクアドレスBA=3,コラムアドレスCA=127,スタートバイト信号SB=2に基づいて,制御信号S221を生成し,バンクBank3からはバイト領域Byte2,3のデータを,バンクBank2からはバイト領域Byte0,1のデータを,それぞれ入出力バスI/Obusに出力する。   Next, the bank address BA = 3, the column address CA = 127, SB = 2, and BMR = UP are input together with the read command RD. In response to this, the column address controller 290-3 generates an internal column address I-CA-3 = 127, and the bank Bank3 outputs 4-byte data of the column address 127. On the other hand, the column address controller 290-2 detects the necessity of reading data from the bank Bank2 from the bank address BA = 3, the column address CA = 127, and the start byte signal SB = 2, and determines the step number data CST of the column address. Referring to column bank CA2, column address CA = 124 is output as internal column address I-CA-2. As a result, the bank Bank2 reads 4-byte data at the column address CA = 124. Then, the data latch selector 221 generates the control signal S221 based on the bank address BA = 3, the column address CA = 127, and the start byte signal SB = 2, and the data of the byte areas Byte2 and 3 from the bank Bank3. The data in the byte areas Byte 0 and 1 are output from the bank Bank 2 to the input / output bus I / Obus.

以下,リードコマンドRDと共に,バンクアドレスBA=1と対応するコラムアドレスCA=2,3,6,7...が入力され,同様にコラムアドレスコントローラ290が必要なコラムアドレスを生成し,データラッチセレクタ221が必要な制御信号S221を生成し,スタートバイト信号SB=2に対応した位置から4バイトのデータが,同じバンク内からまたは隣接するバンク内から出力される。   Hereinafter, along with the read command RD, the column address CA = 2, 3, 6, 7,. . . Similarly, the column address controller 290 generates the necessary column address, the data latch selector 221 generates the necessary control signal S221, and the 4-byte data from the position corresponding to the start byte signal SB = 2 is Output from within the same bank or from within an adjacent bank.

上記はリードコマンドの動作について説明したが,ライトコマンドの場合も同様のコラムアクセス制御が行われる。   The operation of the read command has been described above, but the same column access control is performed for the write command.

この実施の形態のよれば,ページ領域を超えて複数のバンクにまたがる矩形アクセスに対しても,スタートバイト信号SBとバイト組み合わせ情報BMRとに基づき,メモリ単位領域内の任意のバイト(またはビット)から4バイトデータ(または4ビットデータ)をアクセスすることができる。   According to this embodiment, an arbitrary byte (or bit) in the memory unit area is also obtained based on the start byte signal SB and the byte combination information BMR even for a rectangular access extending over a plurality of banks beyond the page area. Can access 4-byte data (or 4-bit data).

[マルチバンクアクセスに対応するメモリコントローラ]
次に,マルチバンクアクセス機能を有するメモリ装置を制御するメモリコントローラについて説明する。図69,図70で説明したとおり,メモリコントローラは,メモリ装置内のモードレジスタにロウアドレスのステップ数データRSやメモリマッピング情報ARなどをあらかじめ設定しておき,メモリアクセス元からの矩形アクセス要求に応答して,アクティブコマンドACTと共にバンクアドレスBA,ロウアドレスRA,マルチバンク情報SA’をメモリ装置に発行し,さらに,リードコマンドRDまたはライトコマンドWRと共にバンクアドレスBA,コラムアドレスCAを発行する。よって,メモリコントローラは,メモリアクセス要求に対して,マルチバンクアクセス機能に必要な上記のアドレスやデータなどを生成する必要がある。このメモリコントローラの構成と動作について説明する。
[Memory controller supporting multi-bank access]
Next, a memory controller that controls a memory device having a multi-bank access function will be described. As described with reference to FIGS. 69 and 70, the memory controller sets the row address step number data RS and the memory mapping information AR in the mode register in the memory device in advance, and makes a rectangular access request from the memory access source. In response, the bank address BA, row address RA, and multi-bank information SA ′ are issued to the memory device together with the active command ACT, and the bank address BA and column address CA are issued together with the read command RD or the write command WR. Therefore, the memory controller needs to generate the above address and data necessary for the multi-bank access function in response to the memory access request. The configuration and operation of this memory controller will be described.

図89は,メモリマッピングの一例を示す図である。メモリマッピング12は,フレーム画像に対応している。このメモリマッピング12は,前述と同様に,マトリクス状に配置されたページ領域14の奇数行にバンクアドレスBA0,1が,偶数行にバンクアドレスBA2,3が割り当てられ,各行でロウアドレスRAが順にインクリメントされ,ロウアドレスのステップ数RSはRS=4である。そして,ページ領域14は,16画素×32行で構成され,1つのコラムアドレスで4画素のデータ(4バイトデータ)からなるメモリ単位領域が特定される。よって,1つのページ領域14は,512/4=128のコラムアドレス領域(メモリ単位領域)を有する。   FIG. 89 is a diagram illustrating an example of memory mapping. The memory mapping 12 corresponds to a frame image. In the memory mapping 12, as described above, bank addresses BA0, 1 are assigned to odd rows of the page area 14 arranged in a matrix, bank addresses BA2, 3 are assigned to even rows, and row addresses RA are sequentially assigned to each row. Incremented, the step number RS of the row address is RS = 4. The page area 14 is composed of 16 pixels × 32 rows, and a memory unit area consisting of 4-pixel data (4-byte data) is specified by one column address. Therefore, one page area 14 has 512/4 = 128 column address areas (memory unit areas).

このメモリマッピング12では,水平方向に8ページ領域,垂直方向に4ページ領域が配置されている。よって,メモリマッピング12において,水平方向の画素数は128(=16画素×8ページ領域),垂直方向の画素数も128(=32行×4ページ領域)である。以下,このメモリマッピングを前提にして各種の演算を説明する。   In this memory mapping 12, an 8-page area is arranged in the horizontal direction and a 4-page area is arranged in the vertical direction. Therefore, in the memory mapping 12, the number of pixels in the horizontal direction is 128 (= 16 pixels × 8 page region), and the number of pixels in the vertical direction is also 128 (= 32 rows × 4 page region). Hereinafter, various operations will be described on the premise of this memory mapping.

図90は,本実施の形態におけるメモリコントローラの構成図である。図54と同様に,メモリコントローラ82は,複数のアクセス元ブロック81−1〜nからメモリアクセス要求を受けて,調停回路540による調停で許可されたメモリアクセス要求に対して,メモリ装置86に対するアクセス制御を行う。つまり,メモリコントローラ82は,アクセス元ブロック81−1〜nに対応してインターフェースIF_1〜nを有し,更に,アクセス要求に応答してアドレスやコマンドを生成するシーケンサSEQ_1〜nを有する。   FIG. 90 is a configuration diagram of the memory controller in the present embodiment. Similarly to FIG. 54, the memory controller 82 receives a memory access request from the plurality of access source blocks 81-1 to 81-n, and accesses the memory device 86 in response to the memory access request permitted by the arbitration circuit 540. Take control. That is, the memory controller 82 includes interfaces IF_1 to n corresponding to the access source blocks 81-1 to 81-n, and further includes sequencers SEQ_1 to n that generate addresses and commands in response to access requests.

よって,インターフェースIF_1〜nは,アクセス要求元ブロック81とデータのやり取りを行う。アクセス元ブロックからのアクセス種別は,水平アクセスと矩形アクセスの2種類である。調停回路540は,インターフェースからのアクセス要求の調停を行い,アクセス権を取得したシーケンサSEQ_nにアクセス指示を出力する。セレクタSELは,調停回路540からの選択信号S540に応答して,いずれかのシーケンサSEQ_1〜nからのコマンドとアドレスを選択し,メモリ装置86に出力する。また,セレクタSELは,選択信号S540に応答して,いずれかのインターフェースIF_1〜nのデータ線Dataを選択する。   Therefore, the interfaces IF_1 to n exchange data with the access request source block 81. There are two types of access from the access source block: horizontal access and rectangular access. The arbitration circuit 540 arbitrates an access request from the interface and outputs an access instruction to the sequencer SEQ_n that has acquired the access right. The selector SEL selects a command and address from one of the sequencers SEQ_1 to n in response to the selection signal S540 from the arbitration circuit 540, and outputs it to the memory device 86. In addition, the selector SEL selects the data line Data of any of the interfaces IF_1 to n in response to the selection signal S540.

レジスタ543には,上位のCPUから各種パラメータが設定される。パラメータとしては,メモリ装置86がバイトバウンダリ機能,マルチバンクアクセス機能を有するか否かなどの機能データが含まれる。それ以外に,設定パラメータとして,フレーム画像の左上の画素のロウアドレスROW_BASE_ADR,フレーム画像の水平方向の画素数PICTURE_MAX_XSIZEなどが含まれる。   Various parameters are set in the register 543 from the host CPU. The parameters include functional data such as whether or not the memory device 86 has a byte boundary function and a multi-bank access function. In addition, the setting parameters include the row address ROW_BASE_ADR of the upper left pixel of the frame image, the number of pixels PICTURE_MAX_XSIZE in the horizontal direction of the frame image, and the like.

メモリ装置86は,前述したバイトバウンダリ機能やマルチバンクアクセス機能を有する画像メモリである。図90のメモリコントローラ82とメモリ装置86とにより,画像処理システムが構成される。   The memory device 86 is an image memory having the above-described byte boundary function and multi-bank access function. The memory controller 82 and the memory device 86 in FIG. 90 constitute an image processing system.

図91は,アクセス元ブロックとインターフェース間の信号を示す図である。図91(A)は矩形アクセス時の信号を,図91(B)は水平アクセス時の信号をそれぞれ示している。アクセス元ブロック81−nは,アクセス要求信号REQと共にアクセス対象領域のデータを出力する。両アクセス時の信号の送受信については後で詳述する。   FIG. 91 is a diagram showing signals between the access source block and the interface. FIG. 91A shows a signal during rectangular access, and FIG. 91B shows a signal during horizontal access. The access source block 81-n outputs data in the access target area together with the access request signal REQ. Signal transmission and reception during both accesses will be described in detail later.

図92は,アクセス対象領域のデータを説明する図である。メモリ装置の論理アドレス空間S86内にフレーム画像FM−IMGのデータが格納されている。前述のとおり,このフレーム画像FM−IMGの左上画素のロウアドレスROW_BASE_ADRとフレーム画像の水平方向の画素数PICTURE_MAX_XSIZEとがレジスタ543に設定されている。そして,このフレーム画像内の矩形領域RIMGがアクセス対象領域の場合は,左上のフレーム内画素座標(X_POS,Y_POS)と,矩形領域の水平方向サイズX_SIZEと垂直方向サイズY_SIZEとが,アクセス元ブロック81−nからメモリコントローラ内のインターフェースIF_nに供給される。   FIG. 92 is a diagram for explaining data in the access target area. The frame image FM-IMG data is stored in the logical address space S86 of the memory device. As described above, the row address ROW_BASE_ADR of the upper left pixel of the frame image FM-IMG and the number of pixels PICTURE_MAX_XSIZE in the horizontal direction of the frame image are set in the register 543. When the rectangular area RIMG in this frame image is the access target area, the pixel coordinates (X_POS, Y_POS) in the upper left frame and the horizontal size X_SIZE and vertical size Y_SIZE of the rectangular area are the access source block 81. -N to the interface IF_n in the memory controller.

なお,フレーム画像FM−IMGは,図89のメモリマッピング12と一致している。つまり,フレーム画像FM−IMGの左上画素は,バンクアドレスBA=0,ローカルなロウアドレスRA=0のページ領域内の左上画素に対応する。よって,フレーム画像FM−IMGの左上画素のロウアドレスROW_BASE_ADRとフレーム内のローカルロウアドレスRAとから,メモリの論理アドレス空間内のロウアドレスを求めることができる。   The frame image FM-IMG matches the memory mapping 12 in FIG. That is, the upper left pixel of the frame image FM-IMG corresponds to the upper left pixel in the page area of the bank address BA = 0 and the local row address RA = 0. Therefore, the row address in the logical address space of the memory can be obtained from the row address ROW_BASE_ADR of the upper left pixel of the frame image FM-IMG and the local row address RA in the frame.

図93は,アクセス元ブロックとインターフェース間の信号のタイミングチャート図である。図93(A)の矩形アクセス(リード時)では,アクセス元ブロック81―nがリードライト指示信号RXWをHレベル(リード)にすると共に,アクセス要求REQをアサートしながら,アクセス対象領域データX/Y_POS,X/Y_SIZEを出力する。これに応答して,メモリコントローラはアクノリッジACKを返信し,所定の調停処理を経てメモリ装置にアクセス制御しリードデータを取得する。そして,メモリコントローラのインターフェースIF_nは,イネーブル信号ENをアサートしながらリードデータRDATA(Data(A0―A7))を出力する。このイネーブル信号ENは1クロックサイクル前からアサートされ,1クロックサイクル前にネゲートされる。   FIG. 93 is a timing chart of signals between the access source block and the interface. In the rectangular access (when reading) in FIG. 93A, the access source block 81-n sets the read / write instruction signal RXW to the H level (read) and asserts the access request REQ, while accessing the access target area data X / Y_POS, X / Y_SIZE is output. In response to this, the memory controller returns an acknowledge ACK, performs access control to the memory device through a predetermined arbitration process, and acquires read data. The interface IF_n of the memory controller outputs the read data RDATA (Data (A0-A7)) while asserting the enable signal EN. The enable signal EN is asserted one clock cycle before and negated one clock cycle before.

一方,図93(B)の矩形アクセス(ライト時)では,アクセス元ブロック81―nがリードライト指示信号RXWをLレベル(ライト)にすると共に,アクセス要求REQをアサートしながら,アクセス対象領域データX/Y_POS,X/Y_SIZEを出力する。これに応答して,メモリコントローラはアクノリッジACKを返信し,所定の調停処理を経てメモリ装置にアクセス制御し,イネーブル信号ENをアサートしながら,ライトデータWDATA(Data(A0−A7))を受信する。このイネーブル信号ENも1クロックサイクル前からアサートされ,1クロックサイクル前にネゲートされる。   On the other hand, in the rectangular access (during writing) in FIG. 93B, the access source block 81-n sets the read / write instruction signal RXW to L level (write) and asserts the access request REQ, while accessing the access target area data. X / Y_POS and X / Y_SIZE are output. In response to this, the memory controller returns an acknowledge ACK, controls access to the memory device through a predetermined arbitration process, and receives the write data WDATA (Data (A0-A7)) while asserting the enable signal EN. . This enable signal EN is also asserted one clock cycle before and negated one clock cycle before.

水平アクセスの場合も同様であり,アクセス元ブロックは,水平アクセスの先頭アドレスADRと,水平アクセスサイズSIZEを供給し,リードであればリードデータRDATAを受信し,ライトであればライトデータRDATAを出力する。すなわち,図91に示されるとおり,アクセス元ブロックが,アクセス要求REQをアサートしながら水平アクセス先頭アドレスADRと水平アクセスサイズSIZEとリード・ライト指示信号RXWとを供給する。それに応答してインターフェースがアクノリッジ信号ACKを返信する。そして,メモリコントローラがメモリアクセスを実行し,イネーブル信号をアサートしながら読み出しデータRDATAを出力する。また,書き込み時は,メモリアクセス前にメモリコントローラがイネーブル信号ENをアサートしながら書き込みデータWDATAを受信する。   The same applies to horizontal access. The access source block supplies the horizontal access start address ADR and horizontal access size SIZE, receives read data RDATA if read, and outputs write data RDATA if write. To do. That is, as shown in FIG. 91, the access source block supplies the horizontal access head address ADR, the horizontal access size SIZE, and the read / write instruction signal RXW while asserting the access request REQ. In response, the interface returns an acknowledge signal ACK. Then, the memory controller executes memory access and outputs read data RDATA while asserting an enable signal. At the time of writing, the memory controller receives the write data WDATA while asserting the enable signal EN before accessing the memory.

図94は,メモリコントローラの動作概略を示す図である。各動作ステップが番号1〜4の順に実行される。まず,アクセス要求元ブロック81−nがアクセス要求REQを発行すると,インターフェースIF_nは,そのアクセス要求REQに応答して調停回路540にアクセス要求を転送する。次に,調停回路540は,メモリ装置86がアクセス可能であり且つアクセス要求元の優先順位が最上位であれば,インターフェースIF_nにアクノリッジ信号ACKを返信するとともに,シーケンサSEQ_nにコマンド発行開始指示STARTを出力する。このコマンド発行開始指示STARTに応答して,シーケンサSEQ_nはコマンド発行に必要な各種パラメータX/Y_POS,X/Y_SIZEをインターフェースIF_nから受信する。   FIG. 94 is a diagram showing an outline of the operation of the memory controller. Each operation step is executed in the order of numbers 1 to 4. First, when the access request source block 81-n issues an access request REQ, the interface IF_n transfers the access request to the arbitration circuit 540 in response to the access request REQ. Next, the arbitration circuit 540 returns an acknowledge signal ACK to the interface IF_n and sends a command issuance start instruction START to the sequencer SEQ_n if the memory device 86 is accessible and the access request source has the highest priority. Output. In response to this command issuance start instruction START, the sequencer SEQ_n receives various parameters X / Y_POS and X / Y_SIZE required for command issuance from the interface IF_n.

シーケンサSEQ_nは,上記のパラメータとレジスタに設定されているパラメータに基づいてコマンド発行を行い,メモリ装置86へのアクセスを開始する。シーケンサSEQ_nは,コマンドの発行状況に応じてデータ量に対応したイネーブル信号ENを発行し,そのイネーブル信号ENはインターフェースIF_nを経由してアクセス要求元81_nに送信される。読み出しの場合は,インターフェースIF_nを経由してメモリ装置86からのリードデータが,上記のイネーブル信号ENに応答して,アクセス要求元81_nに送信される。書き込みの場合は,インターフェースIF_nを経由してアクセス要求元81_nからのライトデータが,上記のイネーブル信号ENに応答して,メモリ装置86に転送される。   The sequencer SEQ_n issues a command based on the above parameters and the parameters set in the register, and starts accessing the memory device 86. The sequencer SEQ_n issues an enable signal EN corresponding to the amount of data according to the command issue status, and the enable signal EN is transmitted to the access request source 81_n via the interface IF_n. In the case of reading, the read data from the memory device 86 is transmitted to the access request source 81_n via the interface IF_n in response to the enable signal EN. In the case of writing, write data from the access request source 81_n is transferred to the memory device 86 via the interface IF_n in response to the enable signal EN.

このようにメモリ装置86にコマンドを発行してアクセス制御中に,シーケンサSEQ_nは,調停回路540に,データアクセス中であることを示すアクティブ信号ACTIVEをアサートする。メモリへのアクセスが終了すると,このアクティブ信号ACTIVEはネゲートされる。   In this way, during access control by issuing a command to the memory device 86, the sequencer SEQ_n asserts an active signal ACTIVE indicating to the arbitration circuit 540 that data is being accessed. When the access to the memory is completed, the active signal ACTIVE is negated.

図95は,シーケンサSEQの構成図である。シーケンサSEQは,シーケンサ内部の全体制御を行う制御部940と,インターフェースIF_nから転送されるアクセス対象領域データX/Y_POS,X/Y_SIZEと,レジスタ543に設定されているフレーム画像FM−IMGの左上画素のロウアドレスROW_BASE_ADRとフレーム画像の水平方向の画素数PICTURE_MAX_XSIZEとから,中間パラメータを生成する中間パラメータ生成部941と,中間パラメータに基づいてコマンドとアドレスを生成しメモリ装置86に出力するコマンド・アドレス生成部942とを有する。   FIG. 95 is a block diagram of the sequencer SEQ. The sequencer SEQ includes a control unit 940 that performs overall control inside the sequencer, access target area data X / Y_POS and X / Y_SIZE transferred from the interface IF_n, and an upper left pixel of the frame image FM-IMG set in the register 543 An intermediate parameter generation unit 941 that generates an intermediate parameter from the row address ROW_BASE_ADR of the frame and the number of pixels PICTURE_MAX_XSIZE in the horizontal direction of the frame image; Part 942.

図96は,中間パラメータを生成する演算式を説明するための図である。この例では,図96(A)に示されるとおり,フレーム画像FM−IMG内の矩形領域RIMGがアクセスされ,各データは,以下の通りである。
PICTURE_MAX_XSIZE=128
ROW_BASE_ADR=0
(X_POS,Y_POS) = (28,94)
(X_SIZE,Y_SIZE)=(8,4)
また,図96(B)には,矩形領域RIMG近傍の4つのページ領域BA1/RA4,BA0/RA5,BA3/RA4,BA2/RA5における水平方向の画素番号と垂直方向の画素番号(行番号)とが示されている。これらの情報が中間パラメータとして以下の通り生成される。
FIG. 96 is a diagram for explaining an arithmetic expression for generating an intermediate parameter. In this example, as shown in FIG. 96A, the rectangular area RIMG in the frame image FM-IMG is accessed, and each data is as follows.
PICTURE_MAX_XSIZE = 128
ROW_BASE_ADR = 0
(X_POS, Y_POS) = (28,94)
(X_SIZE, Y_SIZE) = (8,4)
FIG. 96B shows the horizontal pixel numbers and vertical pixel numbers (row numbers) in the four page areas BA1 / RA4, BA0 / RA5, BA3 / RA4, BA2 / RA5 in the vicinity of the rectangular area RIMG. Is shown. These pieces of information are generated as intermediate parameters as follows.

中間パラメータ生成部941は,以下の演算により中間パラメータを生成する。   The intermediate parameter generation unit 941 generates intermediate parameters by the following calculation.

(1)矩形データRIMGが4つのページ領域にまたがる場合の左上バンクアドレスBAは,次の通り求められる。まず,以下の通り,フレーム画像FM−IMG内の矩形データRIMGの左上のフレーム内画素座標(X_POS,Y_POS)をそれぞれ,ページ領域の水平方向画素数16,垂直方向画素数32で除算して,バンクXアドレスBA_X_ADR,バンクYアドレスBA_Y_ADRを求める。上記除算は余りを切り捨てる。
BA_X_ADR=X_POS/16
BA_Y_ADR=Y_POS/32
このバンクXアドレスBA_X_ADRとバンクYアドレスBA_Y_ADRは,矩形領域の左上画素がメモリマッピング12内の水平方向の何番目のページ領域か,垂直方向の何番目のページ領域かに対応する。ただし,メモリマッピング12の左上は水平方向の0番目,垂直方向の0番目のページ領域とする。
(1) The upper left bank address BA when the rectangular data RIMG spans four page areas is obtained as follows. First, as shown below, the pixel coordinates (X_POS, Y_POS) in the upper left of the rectangular data RIMG in the frame image FM-IMG are respectively divided by the horizontal pixel number 16 and the vertical pixel number 32 in the page area, The bank X address BA_X_ADR and the bank Y address BA_Y_ADR are obtained. The above division rounds down the remainder.
BA_X_ADR = X_POS / 16
BA_Y_ADR = Y_POS / 32
The bank X address BA_X_ADR and the bank Y address BA_Y_ADR correspond to the horizontal page number area in the memory mapping 12 and the vertical page number area in the memory mapping 12. However, the upper left of the memory mapping 12 is the 0th page area in the horizontal direction and the 0th page area in the vertical direction.

そして,求めたバンクXアドレスBA_X_ADRとバンクYアドレスBA_Y_ADRが奇数か偶数かに応じて,以下の通りバンクアドレスBA[1:0]が求まる。
BA_X_ADRが偶数、BA_Y_ADRが偶数の場合、左上BA=0
BA_X_ADRが奇数、BA_Y_ADRが偶数の場合、左上BA=1
BA_X_ADRが偶数、BA_Y_ADRが奇数の場合、左上BA=2
BA_X_ADRが奇数、BA_Y_ADRが奇数の場合、左上BA=3
(2)右側のバンクアドレスBA,下側のバンクアドレスBA,右下のバンクアドレスBAは,以下の通り求められる。すなわち,メモリマッピング12によれば,上記(1)で求めた左上BA[1:0]から,右BA、下BA、右下BAが次の通りになる。なお「~」は反転を意味する。
右BA=[左上BA[1], ~左上BA[0]]
下BA=[~左上BA[1], 左上BA[0]]
右下BA=[~左上BA[1], ~左上BA[0]]
図96の例によれば,(X_POS,Y_POS)=(28,94)であるので,
左上バンクアドレスBAについては,
BA_X_ADR=X_POS/16=28/16=1
BA_Y_ADR=Y_POS/32=94/32=2
であるから,BA_X_ADR=1が奇数、BA_Y_ADR=2が偶数なので、左上バンクアドレスBA[1:0]=01である。つまり,BA1が求められる。
さらに,右BA、下BA、右下BAは,左上BA=2'b01から
右BA=[左上BA[1], ~左上BA[0]]=[00]=0
下BA=[~左上BA[1], 左上BA[0]]=[11]=3
右下BA=[~左上BA[1], ~左上BA[0]]=[10]=2
と,BA0,BA3,BA2がそれぞれ求められる。
Then, depending on whether the obtained bank X address BA_X_ADR and bank Y address BA_Y_ADR are odd or even, the bank address BA [1: 0] is obtained as follows.
If BA_X_ADR is even and BA_Y_ADR is even, upper left BA = 0
If BA_X_ADR is odd and BA_Y_ADR is even, upper left BA = 1
If BA_X_ADR is even and BA_Y_ADR is odd, upper left BA = 2
If BA_X_ADR is odd and BA_Y_ADR is odd, upper left BA = 3
(2) The right bank address BA, the lower bank address BA, and the lower right bank address BA are obtained as follows. That is, according to the memory mapping 12, from the upper left BA [1: 0] obtained in the above (1), the right BA, the lower BA, and the lower right BA are as follows. “~” Means inversion.
Right BA = [Upper left BA [1], ~ Upper left BA [0]]
Lower BA = [~ Upper left BA [1], Upper left BA [0]]
Lower right BA = [~ Upper left BA [1], ~ Upper left BA [0]]
According to the example of FIG. 96, (X_POS, Y_POS) = (28, 94).
For the upper left bank address BA:
BA_X_ADR = X_POS / 16 = 28/16 = 1
BA_Y_ADR = Y_POS / 32 = 94/32 = 2
Therefore, since BA_X_ADR = 1 is an odd number and BA_Y_ADR = 2 is an even number, the upper left bank address BA [1: 0] = 01. That is, BA1 is obtained.
Furthermore, right BA, lower BA, and lower right BA are from upper left BA = 2'b01 to right BA = [upper left BA [1], ~ upper left BA [0]] = [00] = 0
Lower BA = [~ Upper left BA [1], Upper left BA [0]] = [11] = 3
Lower right BA = [~ Upper left BA [1], ~ Upper left BA [0]] = [10] = 2
And BA0, BA3, and BA2 are obtained.

(3)メモリの論理アドレス空間S86内におけるアクセス開始ロウアドレスROW_ADRは,次の通りである。
ROW_ADR=ROW_BASE_ADR + [PICTURE_MAX_XSIZE /(16*2)]*[Y_POS/(32*2)] + X_POS/(16*2)
つまり,ROW_BASE_ADRはフレーム画像の左上画素のロウアドレスで,PICTURE_MAX_XSIZE/(16*2)はフレーム内の水平方向のロウアドレスステップ数で,Y_POS/(32*2)は矩形領域RIMGの左上画素がフレーム内の垂直方向の何対目かを示し(図96中の参照番号961),X_POS/(16*2)が矩形領域RIMGの左上画素がフレーム内の水平方向の何対目かを示す(図96中の参照番号962)。
(3) The access start row address ROW_ADR in the logical address space S86 of the memory is as follows.
ROW_ADR = ROW_BASE_ADR + [PICTURE_MAX_XSIZE / (16 * 2)] * [Y_POS / (32 * 2)] + X_POS / (16 * 2)
That is, ROW_BASE_ADR is the row address of the upper left pixel of the frame image, PICTURE_MAX_XSIZE / (16 * 2) is the number of row address steps in the horizontal direction in the frame, and Y_POS / (32 * 2) is the upper left pixel of the rectangular area RIMG. In the vertical direction (reference number 961 in FIG. 96), and X_POS / (16 * 2) indicates the number of horizontal pairs in the frame in the upper left pixel of the rectangular area RIMG (see FIG. 96).

図96の例によれば,PICTURE_MAX_XSIZE=128,ROW_BASE_ADR=0,(X_POS,Y_POS)=(28,94)であるので,
ROW_ADR=ROW_BASE_ADR + [PICTURE_MAX_XSIZE /(16*2)]*[Y_POS/(32*2)] + X_POS/(16*2)
=0+(128/32)*(94/(32*2))+28/(16*2)
=4
である。
According to the example in FIG. 96, PICTURE_MAX_XSIZE = 128, ROW_BASE_ADR = 0, (X_POS, Y_POS) = (28,94)
ROW_ADR = ROW_BASE_ADR + [PICTURE_MAX_XSIZE / (16 * 2)] * [Y_POS / (32 * 2)] + X_POS / (16 * 2)
= 0 + (128/32) * (94 / (32 * 2)) + 28 / (16 * 2)
= 4
It is.

(4)メモリの論理アドレス空間S86内におけるアクセス開始コラムアドレスCOL_ADRは,ページ内のコラムアドレスであり,以下の通りである。
COL_ADR= 4*Y_POS%32+(X_POS/4)%4
ここで「%」は余りを意味する。つまり,図89に示したとおり,ページ領域内のコラムアドレスのステップ数は4であり,ページ領域の水平方向のコラム数は4,垂直方向の行数は32であるので,Y_POS%32はページ領域BA1,RA4内の行数を意味し,(X_POS/4)%4はページ領域内の列数を意味する。
(4) The access start column address COL_ADR in the logical address space S86 of the memory is a column address in the page and is as follows.
COL_ADR = 4 * Y_POS% 32 + (X_POS / 4)% 4
Here, “%” means the remainder. That is, as shown in FIG. 89, the number of column address steps in the page area is 4, the number of horizontal columns in the page area is 4, and the number of vertical rows is 32. This means the number of rows in the areas BA1 and RA4, and (X_POS / 4)% 4 means the number of columns in the page area.

図96の例によれば,
COL_ADR= 4*Y_POS%32+(X_POS/4)%4
=4*94%32+(28/4)%4=120+3
=123
と求められる。
According to the example of FIG.
COL_ADR = 4 * Y_POS% 32 + (X_POS / 4)% 4
= 4 * 94% 32 + (28/4)% 4 = 120 + 3
= 123
Is required.

(5)次に,バンク内X座標(BA_X_POS)とY座標(BA_Y_POS)は,ページ領域の水平方向の画素数が16,垂直方向の行数が32であるので,
BA_X_POS= X_POS%16
BA_Y_POS= Y_POS%32
と求められる。図96(C)に示した,右上バンク(BA1/RA4)内における矩形領域RIMGの左上画素の座標(BA_X_POS,BA_Y_POS)に対応する。
(5) Next, since the in-bank X coordinate (BA_X_POS) and Y coordinate (BA_Y_POS) have 16 horizontal pixels in the page area and 32 vertical rows,
BA_X_POS = X_POS% 16
BA_Y_POS = Y_POS% 32
Is required. This corresponds to the coordinates (BA_X_POS, BA_Y_POS) of the upper left pixel of the rectangular area RIMG in the upper right bank (BA1 / RA4) shown in FIG.

(6)矩形領域RIMGがバンク(ページ領域)を跨ぐか否かを示すX方向BANK跨ぎフラグ、Y方向BANK跨ぎフラグは,(5)で求めたバンク内X,Y座標BA_X_POS,BA_Y_POSと,矩形領域RIMGの水平方向,垂直方向のサイズX/Y_SIZEから,以下のとおり計算できる。
BA_X_POS +X_SIZE>15ならば、X方向BANK跨ぎフラグ=1
BA_Y_POS +Y_SIZE>31ならば、Y方向BANK跨ぎフラグ=1
つまり,図96(C)に示されるとおり,矩形領域RIMGの左上画素の座標(BA_X_POS,BA_Y_POS)に矩形領域のサイズX/Y_SIZEを加算した値が,ページ領域の水平方向サイズ15,垂直方向サイズ31を超えていれば,バンクを跨ぐことになることを意味する。
(6) The X-direction BANK crossing flag and Y-direction BANK crossing flag indicating whether or not the rectangular area RIMG crosses the bank (page area) are the X and Y coordinates BA_X_POS and BA_Y_POS in the bank obtained in (5). From the horizontal and vertical sizes X / Y_SIZE of the region RIMG, it can be calculated as follows.
If BA_X_POS + X_SIZE> 15, X direction BANK crossing flag = 1
If BA_Y_POS + Y_SIZE> 31, the Y-direction BANK crossing flag = 1
That is, as shown in FIG. 96C, the value obtained by adding the size X / Y_SIZE of the rectangular area to the coordinates (BA_X_POS, BA_Y_POS) of the upper left pixel of the rectangular area RIMG is the horizontal size 15 and vertical size of the page area. If it exceeds 31, it means that the bank will be crossed.

上記(5)(6)について図96の例で説明すると,
バンク内X座標,Y座標は,
BA_X_POS= X_POS%16=28%16=12
BA_Y_POS= Y_POS%32=94%32=30
X方向BANK跨ぎフラグ,Y方向BANK跨ぎフラグは,
BA_X_POS +X_SIZE=12+8=20で15より上なので,X方向BANK跨ぎフラグ=1
BA_Y_POS +Y_SIZE=30+4=34で31より上なので,Y方向BANK跨ぎフラグ=1
となり,X,Y方向共にバンクを跨ぐことになる。
The above (5) and (6) will be described with reference to the example of FIG.
The X and Y coordinates in the bank are
BA_X_POS = X_POS% 16 = 28% 16 = 12
BA_Y_POS = Y_POS% 32 = 94% 32 = 30
The X direction BANK crossing flag and the Y direction BANK crossing flag are
BA_X_POS + X_SIZE = 12 + 8 = 20 and above 15, so X direction BANK crossing flag = 1
BA_Y_POS + Y_SIZE = 30 + 4 = 34 and above 31, so Y direction BANK crossing flag = 1
Thus, both banks in the X and Y directions will be crossed.

(7)次に,4つのバンクにおける矩形領域のX,Y方向のサイズ,1ST_X_SIZE, 2ND_X_SIZE, 1ST_Y_SIZE, 2ND_Y_SIZEの計算は,次の通りである。
図96(C)に示したとおり,X方向にBANKを跨ぐ場合,左側のBANKにおけるX_SIZEを1ST_X_SIZE,右側を2ND_X_SIZEとし,Y方向にBANKを跨ぐ場合,上側のBANKにおけるY_SIZEを1ST_Y_SIZE,下側を2ND_Y_SIZEとする。そして,BANKを跨がない場合は、1STX_SIZE,1ST_Y_SIZEのみが有効となる。
よって,
X方向BANK跨ぎフラグ=1の場合は,
1ST_X_SIZE= 16 − BA_X_POS
2ND_X_SIZE=X_SIZE − 1ST_X_SIZE
X方向BANK跨ぎフラグ=0の場合は,
1ST_X_SIZE= X_SIZE
Y方向BANK跨ぎフラグ=1の場合は,
1ST_Y_SIZE= 32 − BA_Y_POS
2ND_Y_SIZE=Y_SIZE − 1ST_Y_SIZE
Y方向BANK跨ぎフラグ=0の場合は,
1ST_Y_SIZE= Y_SIZE
となる。
(7) Next, the sizes of the rectangular areas in the four banks in the X and Y directions, 1ST_X_SIZE, 2ND_X_SIZE, 1ST_Y_SIZE, and 2ND_Y_SIZE are calculated as follows.
As shown in Fig. 96 (C), when straddling BANK in the X direction, X_SIZE at the left BANK is 1ST_X_SIZE, right is 2ND_X_SIZE, and when straddling BANK in the Y direction, Y_SIZE at the top BANK is 1ST_Y_SIZE, and the bottom is 2ND_Y_SIZE. If the bank is not crossed, only 1STX_SIZE and 1ST_Y_SIZE are valid.
Therefore,
When the X direction BANK crossing flag = 1,
1ST_X_SIZE = 16 − BA_X_POS
2ND_X_SIZE = X_SIZE − 1ST_X_SIZE
If the X direction BANK crossing flag is 0,
1ST_X_SIZE = X_SIZE
If the Y-direction bank crossing flag = 1,
1ST_Y_SIZE = 32 − BA_Y_POS
2ND_Y_SIZE = Y_SIZE − 1ST_Y_SIZE
If the Y-direction bank crossing flag is 0,
1ST_Y_SIZE = Y_SIZE
It becomes.

図96の例を適用すると,
X方向BANK跨ぎフラグ=1なので
1ST_X_SIZE= 16 − BA_X_POS =16 −12 =4
2ND_X_SIZE=X_SIZE − 1ST_X_SIZE=8 −4 =4
Y方向BANK跨ぎフラグ=1なので
1ST_Y_SIZE= 32 − BA_Y_POS= 32 −30 = 2
2ND_Y_SIZE=Y_SIZE − 1ST_Y_SIZE = 4 − 2 = 2
と求められる。
When the example of FIG. 96 is applied,
Since the X direction BANK crossing flag = 1
1ST_X_SIZE = 16 − BA_X_POS = 16 −12 = 4
2ND_X_SIZE = X_SIZE − 1ST_X_SIZE = 8 −4 = 4
Y direction BANK crossing flag = 1
1ST_Y_SIZE = 32 − BA_Y_POS = 32 −30 = 2
2ND_Y_SIZE = Y_SIZE − 1ST_Y_SIZE = 4 − 2 = 2
Is required.

(8)最後に,ロウアドレスのステップ情報RSは,フレーム画像12(FM−IMG)中のX方向の左端から右端までスキャンする際に、いくつロウアドレスが増加するかを示した数であり,以下の計算で求められる。
RS=PICTURE_MAX_XSIZE /(16*2)
図96の例であれば,RS= PICTURE_MAX_XSIZE /(16*2)=128/32=4と求められる。
(8) Finally, the row address step information RS is a number indicating how many row addresses increase when scanning from the left end to the right end in the X direction in the frame image 12 (FM-IMG). It is obtained by the following calculation.
RS = PICTURE_MAX_XSIZE / (16 * 2)
In the example of FIG. 96, RS = PICTURE_MAX_XSIZE / (16 * 2) = 128/32 = 4 is obtained.

以上の通り,中間パラメータ生成部94は,上記の演算式によって(1)〜(8)の中間パラメータを求めて,コマンド/アドレス生成部942に出力する。そして,コマンド/アドレス生成部942が,中間パラメータに基づいて,メモリ86に供給するコマンドとバンクアドレスBA,ロウアドレスRA,コラムアドレスCA,ロウアドレスステップ情報RS,マルチバンク情報SA’を生成する。   As described above, the intermediate parameter generation unit 94 obtains the intermediate parameters (1) to (8) by the above arithmetic expressions and outputs them to the command / address generation unit 942. Then, the command / address generation unit 942 generates a command to be supplied to the memory 86, a bank address BA, a row address RA, a column address CA, row address step information RS, and multibank information SA ′ based on the intermediate parameters.

図97は,コマンド/アドレス生成部における動作フローチャート図である。図中,生成されるコマンドが楕円形で示されている。まず,メモリコントローラは,通常のモードレジスタセットコマンドMRSを発行し,メモリ装置内のモードレジスタに各種の初期設定を行う(S40)。この初期設定は,通常のSDRAMで行われる設定である。そして,待機状態になる(S41)。やがて,アクセス元ブロック81からアクセス要求を受信すると,中間パラメータ生成部941が,アクセス元ブロックから受信したアクセス対象領域データX/Y_POS,X/Y_SIZEと,レジスタ543内に設定されているフレーム画像の左上画素のロウアドレスROW_BASE_ADRと水平方向画素数PICTURE_MAX_XSIZEとから,前述の中間パラメータを生成する(S42)。   FIG. 97 is an operation flowchart in the command / address generation unit. In the figure, the generated command is indicated by an ellipse. First, the memory controller issues a normal mode register set command MRS and performs various initial settings on the mode register in the memory device (S40). This initial setting is a setting performed in a normal SDRAM. And it will be in a standby state (S41). Eventually, when an access request is received from the access source block 81, the intermediate parameter generation unit 941 receives the access target area data X / Y_POS and X / Y_SIZE received from the access source block and the frame image set in the register 543. The above-mentioned intermediate parameter is generated from the row address ROW_BASE_ADR of the upper left pixel and the number of pixels in the horizontal direction PICTURE_MAX_XSIZE (S42).

コントロール対象のメモリ装置にマルチバンクアクセス機能があるか否かがレジスタ543に設定されているので,それをチェックする(S43)。マルチバンクアクセス機能が設定されていない場合は,通常のコントロール動作によって,アクティブコマンドACTとリードコマンドRD(またはライトコマンド)とを,バンク数分繰り返して発行する(S44)。   Whether or not the memory device to be controlled has a multi-bank access function is set in the register 543, and is checked (S43). If the multi-bank access function is not set, the active command ACT and the read command RD (or write command) are repeatedly issued by the number of banks by a normal control operation (S44).

マルチバンクアクセス機能が設定されている場合は,コマンド/アドレス生成部942が,バンク跨ぎフラグFlag[X:Y]に基づいてバンク数を判定する(S46)。その結果,コマンド・アドレス生成部942が,バンク跨ぎフラグFlag[X:Y]からマルチバンク情報SA’[1:0]を生成する。両者の関係は次の通りである。
Flag[X:Y]=00 SA’[1:0]=00(1つのバンクをアクティブ)
Flag[X:Y]=10 SA’[1:0]=01(X方向に2つのバンクをアクティブ)
Flag[X:Y]=01 SA’[1:0]=10(Y方向に2つのバンクをアクティブ)
Flag[X:Y]=11 SA’[1:0]=11(4つのバンクをアクティブ)
よって,コマンド/アドレス生成部942は,アクティブコマンドACTと,先頭バンクアドレスBA,先頭ロウアドレスRAと共に,マルチバンク情報SA’とを発行する(S80,S70,S60,S50)。
When the multi-bank access function is set, the command / address generation unit 942 determines the number of banks based on the bank crossing flag Flag [X: Y] (S46). As a result, the command / address generator 942 generates the multi-bank information SA ′ [1: 0] from the bank crossing flag Flag [X: Y]. The relationship between the two is as follows.
Flag [X: Y] = 00 SA ′ [1: 0] = 00 (activate one bank)
Flag [X: Y] = 10 SA ′ [1: 0] = 01 (2 banks are active in the X direction)
Flag [X: Y] = 01 SA ′ [1: 0] = 10 (2 banks are active in the Y direction)
Flag [X: Y] = 11 SA ′ [1: 0] = 11 (4 banks are active)
Therefore, the command / address generation unit 942 issues the active command ACT, the first bank address BA, the first row address RA, and the multi-bank information SA ′ (S80, S70, S60, S50).

4つのバンクを同時に活性化する場合は,メモリコントローラ内のコマンド/アドレス発生部942は,アクティブコマンドACT及びロウアドレスRAと共にマルチバンク情報SA’=11を発行する(S50)。そして,コマンド/アドレス発生部942は,左上バンク内のコラムアドレスCAと共にリードコマンドまたはライトコマンドを発行する(S51)。このリード又はライトコマンドは,左上バンク内のX方向のアクセスサイズである1ST_X_SIZE=N回にわたり,コラムアドレスをインクリメントしながら繰り返して発行する。さらに,右バンク内のコラムアドレスCAと共にリードコマンドまたはライトコマンドを発行する(S52)。このリード又はライトコマンドは,右バンク内のX方向のアクセスサイズである2ND_X_SIZE=N回にわたり,コラムアドレスをインクリメントしながら繰り返して発行する。そして,ライン数lineを+1インクリメントし(S53),ライン数lineが左上バンク内のY方向のアクセスサイズである1ST_Y_SIZEを超えるまで工程S51,S52,S53を繰り返す(S54)。   When simultaneously activating four banks, the command / address generation unit 942 in the memory controller issues multi-bank information SA ′ = 11 together with the active command ACT and the row address RA (S50). Then, the command / address generator 942 issues a read command or a write command together with the column address CA in the upper left bank (S51). This read or write command is repeatedly issued while incrementing the column address for 1ST_X_SIZE = N times which is the access size in the X direction in the upper left bank. Further, a read command or a write command is issued together with the column address CA in the right bank (S52). This read or write command is repeatedly issued while incrementing the column address over 2ND_X_SIZE = N times which is the access size in the X direction in the right bank. Then, the line number line is incremented by +1 (S53), and steps S51, S52, and S53 are repeated until the line number line exceeds 1ST_Y_SIZE, which is the access size in the Y direction in the upper left bank (S54).

次に,コマンド/アドレス発生部942は,下バンク内のコラムアドレスCAと共にリードコマンドまたはライトコマンドを発行する(S55)。このリード又はライトコマンドは,下バンク内のX方向のアクセスサイズである1ST_X_SIZE=N回にわたり,コラムアドレスをインクリメントしながら繰り返して発行する。さらに,右下バンク内のコラムアドレスCAと共にリードコマンドまたはライトコマンドを発行する(S56)。このリード又はライトコマンドは,右バンク内のX方向のアクセスサイズである2ND_X_SIZE=N回にわたり,コラムアドレスをインクリメントしながら繰り返して発行する。そして,ライン数lineを+1インクリメントし(S57),ライン数lineが下バンク内のY方向のアクセスサイズである2ND_Y_SIZEを超えるまで工程S55,S56,S58を繰り返す(S58)。   Next, the command / address generator 942 issues a read command or a write command together with the column address CA in the lower bank (S55). This read or write command is repeatedly issued while incrementing the column address over 1ST_X_SIZE = N times which is the access size in the X direction in the lower bank. Further, a read command or a write command is issued together with the column address CA in the lower right bank (S56). This read or write command is repeatedly issued while incrementing the column address over 2ND_X_SIZE = N times which is the access size in the X direction in the right bank. Then, the line number line is incremented by +1 (S57), and steps S55, S56 and S58 are repeated until the line number line exceeds 2ND_Y_SIZE which is the access size in the Y direction in the lower bank (S58).

コマンド/アドレス生成部942は,上記のリード又はライトコマンドと共に発行するコラムアドレスを,メモリマップに基づいて,中間パラメータである先頭コラムアドレスCOL_ADR=123とコラムアドレスステップ数データCST=4とから求める。   The command / address generation unit 942 obtains a column address to be issued together with the read or write command from the top column address COL_ADR = 123 and the column address step number data CST = 4 based on the memory map.

X方向に2つのバンクを同時に活性化する場合は,メモリコントローラ内のコマンド/アドレス発生部942は,アクティブコマンドACT及びロウアドレスRAと共にマルチバンク情報SA’=01を発行する(S60)。そして,左上バンクへのリード又はライトコマンドとコラムアドレスをN回発行し(S61),更に右バンクへのリード又はライトコマンドとコラムアドレスをN回発行する(S62)。これらの工程S61,S62,S63を,ライン数lineが1ST_Y_SIZEを超えるまで繰り返す(S64)。   When simultaneously activating two banks in the X direction, the command / address generator 942 in the memory controller issues multi-bank information SA ′ = 01 together with the active command ACT and the row address RA (S60). Then, a read or write command and column address for the upper left bank are issued N times (S61), and a read or write command and column address for the right bank are issued N times (S62). These steps S61, S62, S63 are repeated until the number of lines exceeds 1ST_Y_SIZE (S64).

Y方向に2つのバンクを同時に活性化する場合は,メモリコントローラ内のコマンド/アドレス発生部942は,アクティブコマンドACT及びロウアドレスRAと共にマルチバンク情報SA’=10を発行する(S70)。そして,左上バンクへのリード又はライトコマンドとコラムアドレスをN回発行し(S71),これらの工程S71,S72を,ライン数lineが1ST_Y_SIZEを超えるまで繰り返す(S73)。同様に,下バンクへのリード又はライトコマンドとコラムアドレスの発行も同様に行う(S74,S75,S76)。   When simultaneously activating two banks in the Y direction, the command / address generator 942 in the memory controller issues multi-bank information SA ′ = 10 together with the active command ACT and the row address RA (S70). Then, a read or write command to the upper left bank and a column address are issued N times (S71), and these steps S71 and S72 are repeated until the number of lines exceeds 1ST_Y_SIZE (S73). Similarly, a read or write command to the lower bank and a column address are issued in the same manner (S74, S75, S76).

最後に,1つのバンクのみ活性化する場合は,メモリコントローラ内のコマンド/アドレス発生部942は,アクティブコマンドACT及びロウアドレスRAと共にマルチバンク情報SA’=00を発行する(S80)。そして,左上バンクへのリード又はライトコマンドとコラムアドレスをN回発行し(S81),これらの工程S81,S82を,ライン数lineが1ST_Y_SIZEを超えるまで繰り返す(S83)。   Finally, when only one bank is activated, the command / address generation unit 942 in the memory controller issues multi-bank information SA ′ = 00 together with the active command ACT and the row address RA (S80). Then, a read or write command to the upper left bank and a column address are issued N times (S81), and these steps S81 and S82 are repeated until the number of lines exceeds 1ST_Y_SIZE (S83).

以上の通り,メモリコントローラ82は,アクセス元ブロックからアクセス要求REQと共にアクセス対象領域データX/Y_POS,X/Y_SIZEとを受信すると,レジスタ543内のフレーム領域のロウアドレスROW_BASE_ADRと水平方向画素数PICTURE_MAX_XSIZEとから,中間パラメータを生成し,同時に活性化すべきバンク数を判定し,判定結果に対応するマルチバンク情報SA’を発行して,メモリ装置内のバンクを同時に活性化させる。これにより,1回のアクティブコマンドの発行で,複数のバンクを活性化させることができ,メモリアクセスを効率的に行うことができる。   As described above, when the memory controller 82 receives the access target area data X / Y_POS, X / Y_SIZE together with the access request REQ from the access source block, the row address ROW_BASE_ADR of the frame area in the register 543 and the number of horizontal pixels PICTURE_MAX_XSIZE Then, an intermediate parameter is generated, the number of banks to be activated at the same time is determined, and multi-bank information SA ′ corresponding to the determination result is issued to simultaneously activate the banks in the memory device. Thus, a plurality of banks can be activated by issuing an active command once, and memory access can be performed efficiently.

図98は,メモリコントローラとメモリ装置との間のタイミングチャート図である。これは,図96の4つのバンクに跨る矩形領域RIMGをアクセスする場合のタイミングチャート図である。まず,メモリコントローラは,拡張モードレジスタセットコマンドEMRSと共にロウアドレスステップ情報RS4を発行して,メモリ装置内のレジスタ内にロウアドレスステップ情報RSを設定する。次に,メモリコントローラは,アクティブコマンドACTと共に左上バンクアドレスBA1と先頭ロウアドレスRA4とマルチバンク情報SA’(1,1)を発行する。これに応答して,メモリ装置では,4つのバンクが同時に活性化される。   FIG. 98 is a timing chart between the memory controller and the memory device. This is a timing chart when accessing the rectangular area RIMG across the four banks of FIG. First, the memory controller issues row address step information RS4 together with the extended mode register set command EMRS, and sets the row address step information RS in the register in the memory device. Next, the memory controller issues an upper left bank address BA1, a head row address RA4, and multibank information SA '(1, 1) together with the active command ACT. In response to this, four banks are simultaneously activated in the memory device.

図98の例では,マルチバンク情報SA’をコラムアドレス端子CAから入力している。しかし,メモリ装置がロウアドレスRAとコラムアドレスCAとを共通のアドレス端子から入力するアドレスマルチプレクス構成を採用している場合は,図72に示したように,マルチバンク情報SA’は特殊端子SPから入力する必要がある。   In the example of FIG. 98, the multi-bank information SA ′ is input from the column address terminal CA. However, when the memory device adopts an address multiplex configuration in which the row address RA and the column address CA are input from a common address terminal, as shown in FIG. 72, the multibank information SA ′ is stored in the special terminal SP. It is necessary to input from.

さらに,メモリコントローラは,リードコマンドRDと共にバンクアドレスBAとコラムアドレスCAとを繰り返し発行する。図96(B)に示されるとおり,バンクアドレスBAとコラムアドレスCAは,(BA,CA)=(1,123),(0,120),(1,127),(0,124),(3,3),(2,0),(3,7),(2,4)となる。それら対応して,メモリの4バイト入出力端子BY0−3からは,図98中に示す画素座標(X_POS,Y_POS)の4バイトデータがそれぞれ出力され,メモリコントローラはそれらを受信する。このように,アクティブコマンドACTは1回発行されるだけである。   Further, the memory controller repeatedly issues a bank address BA and a column address CA together with the read command RD. As shown in FIG. 96B, the bank address BA and the column address CA are (BA, CA) = (1,123), (0,120), (1,127), (0,124), ( 3,3), (2,0), (3,7), (2,4). Correspondingly, 4-byte data of pixel coordinates (X_POS, Y_POS) shown in FIG. 98 is output from the 4-byte input / output terminals BY0-3 of the memory, and the memory controller receives them. Thus, the active command ACT is issued only once.

メモリコントローラは,マルチバンクアクセス機能を利用して1回のアクティブコマンドで複数のバンクを活性化させる場合において,バイトバウンダリ機能を利用して,4バイト領域の途中からの画像データをアクセスする場合は,図87に示したとおり,リード又はライトコマンドと共にバンクアドレスBA,コラムアドレスCAに加えてスタートバイト情報SBとメモリマップ情報BMRとを発行する。これにより,メモリコントローラは,リード又はライトコマンドの発行回数を減らすことができ,1回のアクセスでデータバス全てに有効なデータを受信または出力することができる。   When the memory controller uses the multi-bank access function to activate multiple banks with a single active command, it uses the byte boundary function to access image data from the middle of the 4-byte area. 87, start byte information SB and memory map information BMR are issued in addition to the bank address BA and column address CA together with the read or write command. As a result, the memory controller can reduce the number of times of issuing read or write commands, and can receive or output valid data to all the data buses in one access.

なお,上記の実施の形態では,複数画素の画像データを二次元配置したデジタル画像データを記憶する画像メモリを例にして説明した。しかしながら,本発明は,画像データを記憶する画像メモリに限定されず,画像データ以外でも二次元配列されたデータを所定のマッピングルールに基づいて記憶するメモリ装置に適用可能である。記憶データが二次元配列されたデータであれば,その二次元配列データ内の任意の矩形領域をアクセスするときに複数のページ領域のデータにアクセスすることが求められることがある。その場合にも本発明は適用可能である。   In the above embodiment, the image memory that stores digital image data in which image data of a plurality of pixels is two-dimensionally arranged has been described as an example. However, the present invention is not limited to an image memory that stores image data, and can be applied to a memory device that stores two-dimensionally arranged data other than image data based on a predetermined mapping rule. If the stored data is two-dimensionally arranged data, it may be required to access data in a plurality of page areas when accessing an arbitrary rectangular area in the two-dimensionally arranged data. In this case, the present invention can be applied.

《バックグランドリフレッシュ》
図6において,バックグランドリフレッシュの概略が説明された。すなわち,メモリコントローラが,メモリ装置に,水平アクセスなど特定のバンクへのアクセス動作を所定期間にわたり連続して実行させる場合,メモリコントローラは,アクセスされないバンクを指定してバックグランドリフレッシュコマンドを発行し,メモリ装置に指定したバンクでのリフレッシュ動作を実行させる。そして,メモリコントローラは,このリフレッシュ動作中に通常動作コマンドを発行することで,メモリ装置にリフレッシュ動作していないバンクでの通常アクセス動作を実行させる。
《Background Refresh》
In FIG. 6, the outline of the background refresh has been described. That is, when the memory controller causes the memory device to continuously perform an access operation to a specific bank such as horizontal access over a predetermined period, the memory controller issues a background refresh command specifying a bank that is not accessed, The memory device is caused to execute a refresh operation in the designated bank. Then, the memory controller issues a normal operation command during the refresh operation, thereby causing the memory device to execute a normal access operation in a bank that is not performing the refresh operation.

図99は,本実施の形態におけるバックグランドリフレッシュの概略説明図である。図99(A)はバックグランドリフレッシュ動作を示し,図99(B)はメモリ装置の構成を示す。メモリ装置86は,メモリセル領域990内に第1の領域991と第2の領域992とを有する。この第1,第2の領域991,992はバンク領域に対応し,それぞれ単独でアクティブ動作,リード,ライト動作,プリチャージ動作を行うことができる。さらに,メモリ装置86は,メモリコントローラ82から動作コード993,994を入力する入力回路995と,その動作コードに応答して,メモリセル領域内の第1,第2の領域991,992のいずれか一方にリフレッシュ動作を行わせ,他方に通常メモリ動作を行わせる制御回路996とを有する。動作コードは,例えばメモリコントローラが発行するコマンドである。あるいは,コマンドと特定の入力端子の信号値との組み合わせである。   FIG. 99 is a schematic explanatory diagram of background refresh in the present embodiment. FIG. 99A shows the background refresh operation, and FIG. 99B shows the structure of the memory device. The memory device 86 has a first area 991 and a second area 992 in the memory cell area 990. The first and second regions 991 and 992 correspond to bank regions, and can perform an active operation, a read operation, a write operation, and a precharge operation, respectively. Further, the memory device 86 includes an input circuit 995 that inputs operation codes 993 and 994 from the memory controller 82, and one of the first and second regions 991 and 992 in the memory cell region in response to the operation code. A control circuit 996 is provided for causing one to perform a refresh operation and the other to perform a normal memory operation. The operation code is, for example, a command issued by the memory controller. Alternatively, it is a combination of a command and a signal value of a specific input terminal.

図99(A)に示されるとおり,第1の動作コード993に応答して,制御回路996が,メモリ内の第1の領域991にリフレッシュ動作997を開始させる。この第1の動作コード993は,図6のバックグランドリフレッシュコマンドBRENに対応する。この第1の動作コード993と同期して,またはその前に,リフレッシュ対象領域(第1の領域)が設定され,さらに,1回のバックグランドリフレッシュコマンドに応答して実行すべきリフレッシュ回数(リフレッシュバースト長)と,1回のリフレッシュサイクルで同時にリフレッシュされるメモリのブロック数(リフレッシュブロック数)なども設定される。これらの設定に応じて,制御回路996は,リフレッシュ対象領域(第1の領域)にリフレッシュ動作997を実行させる。   As shown in FIG. 99A, in response to the first operation code 993, the control circuit 996 starts a refresh operation 997 in the first area 991 in the memory. The first operation code 993 corresponds to the background refresh command BREN in FIG. A refresh target area (first area) is set in synchronization with or before the first operation code 993, and the number of refreshes to be executed in response to one background refresh command (refresh (Burst length) and the number of memory blocks to be simultaneously refreshed in one refresh cycle (the number of refresh blocks) are also set. In response to these settings, the control circuit 996 causes the refresh target area (first area) to execute the refresh operation 997.

バックグランドリフレッシュは,メモリ装置内の一部の領域(第1の領域)に限定して行われる。したがって,リフレッシュ対象領域以外の領域であれば,通常メモリ動作を並行して行うことができる。そこで,メモリコントローラからの第2の動作コードに応答して,制御回路996は,選択された第2の領域992で,第2の動作コード994に対応する通常メモリ動作998を実行させる。第2の動作コード994は,例えば,アクティブコマンドやリード・ライトコマンドなどである。つまり,制御回路996は,第1の領域991でのリフレッシュ動作997が完了する前でも,第2の動作コード994に応答して,第2の領域992に通常メモリ動作998を実行させる。逆に,制御回路996は,第2の領域992での通常メモリ動作998が完了する前でも,第1の動作コード993に応答して,第1の領域991にリフレッシュ動作997を実行させる。   The background refresh is performed only on a part of the memory device (first region). Therefore, normal memory operations can be performed in parallel in areas other than the refresh target area. Therefore, in response to the second operation code from the memory controller, the control circuit 996 executes the normal memory operation 998 corresponding to the second operation code 994 in the selected second area 992. The second operation code 994 is, for example, an active command or a read / write command. That is, the control circuit 996 causes the second area 992 to execute the normal memory operation 998 in response to the second operation code 994 even before the refresh operation 997 in the first area 991 is completed. Conversely, the control circuit 996 causes the first region 991 to execute the refresh operation 997 in response to the first operation code 993 even before the normal memory operation 998 in the second region 992 is completed.

このように,本実施の形態のバックグランドリフレッシュでは,第1の領域でのリフレッシュ動作と,第2の領域での通常メモリ動作とが,互いの動作の完了をまたずに実行可能である。これにより,メモリ装置内の全ての領域でリフレッシュ動作を実行することにより,そのリフレッシュ期間中に通常メモリ動作が中断されて,実効的なアクセス効率が低下することが抑制される。   As described above, in the background refresh according to the present embodiment, the refresh operation in the first area and the normal memory operation in the second area can be executed without completing the mutual operation. As a result, by executing the refresh operation in all the areas in the memory device, the normal memory operation is interrupted during the refresh period, and the effective access efficiency is suppressed from decreasing.

図100は,本実施の形態におけるバックグランドリフレッシュを行うメモリシステムの概略説明図である。メモリシステム1000は,メモリコントローラ82とメモリ装置86とで構成される。メモリ装置86は図99と同じであり,メモリコントローラ82は,リフレッシュ制御回路1001と,マルチプレクサMUXと,出力回路1004とからなる。そして,リフレッシュ制御回路1001には,メモリの第1,第2の領域991,992のリフレッシュ制御をそれぞれ行う第1,第2の領域用制御回路1002,1003が設けられる。つまり,バックグランドリフレッシュ機能では,メモリ装置は,第1,第2の領域991,992の一方をリフレッシュ動作させる間に,他方を通常メモリ動作させる。そのためには,第1,第2の領域991,992をそれぞれ個別にリフレッシュ制御することが求められる。   FIG. 100 is a schematic explanatory diagram of a memory system that performs background refresh in the present embodiment. The memory system 1000 includes a memory controller 82 and a memory device 86. The memory device 86 is the same as that shown in FIG. 99, and the memory controller 82 includes a refresh control circuit 1001, a multiplexer MUX, and an output circuit 1004. The refresh control circuit 1001 is provided with first and second area control circuits 1002 and 1003 for performing refresh control of the first and second areas 991 and 992 of the memory, respectively. In other words, in the background refresh function, the memory device performs a normal memory operation on one of the first and second regions 991 and 992 while performing the refresh operation on the other. For this purpose, it is required to individually perform refresh control on the first and second areas 991, 992.

メモリのリフレッシュの規格では,全てのメモリ領域をリフレッシュすべき期間と,それを何回のリフレッシュ動作で行うかが規定される。たとえば,64Mビットのメモリにおいて,「64ms/4096サイクル」と規定される。この場合は,64Mビットのセルの全てを64msの間にリフレッシュするために,15,6μs(=64ms÷4096)に1回の頻度でリフレッシュ動作を繰り返し,1回のリフレッシュ動作で16Kビット(=64M÷4096)ずつリフレッシュする。   In the memory refresh standard, the period during which all memory areas are to be refreshed and how many refresh operations are performed are defined. For example, it is defined as “64 ms / 4096 cycles” in a 64-Mbit memory. In this case, in order to refresh all 64 Mbit cells in 64 ms, the refresh operation is repeated once every 15.6 μs (= 64 ms ÷ 4096), and 16 Kbit (= 64M ÷ 4096) refresh.

これに対して,図100のように,メモリセル領域990が第1,第2の領域991,992からなる場合は,両領域の32Mビットのセルの全てを64msの間に2048回でリフレッシュすることが必要になる。したがって,第1,第2の領域をランダムに切り換えながらリフレッシュ動作を行うためには,第1,第2の領域のリフレッシュを別々に制御する制御回路1002,1003が必要になる。   On the other hand, as shown in FIG. 100, when the memory cell area 990 is composed of the first and second areas 991, 992, all of the 32 Mbit cells in both areas are refreshed 2048 times in 64 ms. It will be necessary. Therefore, in order to perform the refresh operation while switching the first and second regions at random, the control circuits 1002 and 1003 for separately controlling the refresh of the first and second regions are necessary.

図101は,バックグランドリフレッシュを制御するメモリコントローラの動作フローチャート図である。画像処理システムでは,画像処理装置がメモリコントローラにメモリ動作要求を出力し,メモリコントローラ内ではそのメモリ動作要求に対応するメモリ動作イベントが発生する。さらに,メモリコントローラ内では,リフレッシュ処理のイベントも発生する。よって,メモリ動作イベントとリフレッシュ処理イベントとを調停する必要がある。上記の例では,水平アクセスの時は,両方のイベントが同じ領域(バンク)内で発生しなければ,一方のイベントに対する処理が完了していなくても他方のイベントに対するコマンドを発行することができる。   FIG. 101 is an operation flowchart of the memory controller that controls the background refresh. In the image processing system, the image processing apparatus outputs a memory operation request to the memory controller, and a memory operation event corresponding to the memory operation request occurs in the memory controller. Furthermore, a refresh process event also occurs in the memory controller. Therefore, it is necessary to arbitrate between the memory operation event and the refresh processing event. In the above example, during horizontal access, if both events do not occur in the same area (bank), the command for the other event can be issued even if processing for one event is not complete .

例えば,リフレッシュイベントが発生すると,メモリコントローラは,第1の動作コードと第1の領域情報を生成し(1010),第2の領域の動作が完了していなくても(1011のNO),第1の領域が第2の領域と異なっていれば(1012のNo),第1の動作コードを発行する(1013)。リフレッシュイベント対象の第1の領域と動作中の第2の領域とが同じであれば(1012のYes),その第2の領域の動作が完了するまで待機する(1011のYes)。   For example, when a refresh event occurs, the memory controller generates a first operation code and first area information (1010), and even if the operation of the second area is not completed (NO in 1011), If the first area is different from the second area (No in 1012), the first operation code is issued (1013). If the first area to be refreshed is the same as the active second area (Yes in 1012), the process waits until the operation of the second area is completed (Yes in 1011).

同様に,メモリ動作イベントが発生すると,メモリコントローラは,第2の動作コードと第2の領域情報を生成し(1014),上記と同様に,第1の領域の動作が完了していなくても(1015のNO),第2の領域が第1の領域と異なっていれば(1016のNo),第2の動作コードを発行する(1017)。メモリ動作イベント対象の第2の領域と動作中の第1の領域とが同じであれば(1016のYes),その第1の領域の動作が完了するまで待機する(1015のYes)。   Similarly, when a memory operation event occurs, the memory controller generates a second operation code and second area information (1014), and even if the operation of the first area is not completed as described above. (No in 1015) If the second area is different from the first area (No in 1016), the second operation code is issued (1017). If the second area subject to the memory operation event is the same as the first area in operation (Yes in 1016), the process waits until the operation of the first area is completed (Yes in 1015).

図102は,本実施の形態におけるバックグランドリフレッシュと水平アクセスとの関係を示す図である。メモリマップ12において,バンクBA0,BA1への水平アクセス1020を実行中に,バンクBA2,BA3でバックグランドリフレッシュが実行される。同様に,バンクBA2,BA3への水平アクセス1021を実行中に,バンクBA0,BA1でバックグランドリフレッシュが実行される。さらに,水平アクセス1022,1023においても同様である。このように,水平アクセスが連続して実行開始されるとき,一定期間アクセスが発生しないバンクがあらかじめ判明するので,そのアクセスのないバンクに対してリフレッシュ動作を行わせることができる。このように制御することで,水平アクセス中に,全バンクに対するリフレッシュ動作指令が発行されて,水平アクセスが中断することはない。よって,画像データなどの二次元配置されるデータを左上から右下までラスタスキャンしてアクセスする場合に,リフレッシュ動作によるデッドサイクルがなくなり高速なラスタスキャンを行うことができる。   FIG. 102 is a diagram showing a relationship between background refresh and horizontal access in the present embodiment. In the memory map 12, the background refresh is executed in the banks BA2 and BA3 while the horizontal access 1020 to the banks BA0 and BA1 is being executed. Similarly, the background refresh is executed in the banks BA0 and BA1 while the horizontal access 1021 to the banks BA2 and BA3 is being executed. The same applies to the horizontal accesses 1022 and 1023. As described above, when horizontal access is started continuously, a bank in which no access is generated for a certain period is determined in advance, so that a refresh operation can be performed on the bank without the access. By controlling in this way, refresh operation commands for all banks are issued during horizontal access, and horizontal access is not interrupted. Therefore, when accessing two-dimensionally arranged data such as image data by raster scanning from the upper left to the lower right, a dead cycle due to the refresh operation is eliminated and high-speed raster scanning can be performed.

図103は,本実施の形態におけるバックグランドリフレッシュと水平アクセス及び矩形アクセスとの関係を示す図である。前述の水平アクセス1020,1021の間に矩形アクセス1024が発生した例である。画像メモリとメモリコントローラと画像処理装置からなる画像処理システムは,画像メモリに対して水平アクセスと矩形アクセスとを混在して要求する。矩形アクセスでは,画像データの圧縮や伸長処理ごとに,メモリの任意のアドレスにアクセスされるので,どのバンクにアクセスが発生するかを予測することは困難である。一方,水平アクセスでは,一定期間は特定のバンクにしかアクセスが発生せず残りのバンクにはアクセスが発生しない。   FIG. 103 is a diagram showing the relationship between background refresh, horizontal access, and rectangular access in the present embodiment. This is an example in which a rectangular access 1024 occurs between the horizontal accesses 1020 and 1021 described above. An image processing system including an image memory, a memory controller, and an image processing apparatus requests both horizontal access and rectangular access to the image memory. In rectangular access, an arbitrary address in the memory is accessed every time image data is compressed or decompressed, so it is difficult to predict which bank will be accessed. On the other hand, in the horizontal access, only a specific bank is accessed for a certain period, and the remaining banks are not accessed.

そこで,水平アクセス1020では,バックグランドリフレッシュコマンドBREN(図中60)と共に,リフレッシュ対象のバンクを示すリフレッシュバンク情報SA(図中61)が入力される。この例では,水平アクセス1020がバンクBA0,BA1に対して発生するので,リフレッシュ対象バンクはBA2,BA3である。メモリ装置内の制御回路は,このバックグランドリフレッシュコマンドBRENに応答して,リフレッシュ対象バンクBA2,3に対してリフレッシュ動作を指令する。この水平アクセス1020では,アクティブコマンドACTと共にバンクアドレスBA=0,ロウアドレスRA=0が入力され,BA0,RA0のページ領域が活性化され,リードコマンドRDと共にバンクアドレスBA=0,コラムアドレスCA=0が入力され,データが読み出される。同様に,アクティブコマンドACTと共にバンクアドレスBA=1,ロウアドレスRA=0が入力され,BA1,RA0のページ領域が活性化され,リードコマンドRDと共にバンクアドレスBA=1,コラムアドレスCA=0が入力され,データが読み出される。水平アクセスでは,これらの動作が一定時間繰り返される。その間,バンクBA2,3ではリフレッシュ動作が繰り返される。   Therefore, in the horizontal access 1020, the refresh bank information SA (61 in the figure) indicating the bank to be refreshed is input together with the background refresh command BREN (60 in the figure). In this example, since the horizontal access 1020 occurs for the banks BA0 and BA1, the refresh target banks are BA2 and BA3. In response to the background refresh command BREN, the control circuit in the memory device commands a refresh operation to the refresh target banks BA2 and BA3. In this horizontal access 1020, the bank address BA = 0 and the row address RA = 0 are input together with the active command ACT, the page areas of BA0 and RA0 are activated, the bank address BA = 0, the column address CA =, together with the read command RD. 0 is input and data is read. Similarly, bank address BA = 1 and row address RA = 0 are input together with active command ACT, the page area of BA1 and RA0 is activated, and bank address BA = 1 and column address CA = 0 are input along with read command RD. And data is read out. In horizontal access, these operations are repeated for a fixed time. Meanwhile, the refresh operation is repeated in the banks BA2 and BA3.

水平アクセス1021でも,上記と同様の動作が行われる。つまり,バックグランドリフレッシュコマンドBREN(図中65)と共に,リフレッシュバンク情報SA(図中66)としてBA0,1が入力され,バンクBA0,1でリフレッシュ動作が行われる。このリフレッシュ動作に並行して,アクティブコマンドとリードコマンドとが繰り返し入力されて,バンクBA2,3に対する水平アクセス動作が行われる。矩形アクセス1024中は,バックグランドリフレッシュ動作は行われない。   In the horizontal access 1021, the same operation as described above is performed. That is, BA0,1 is input as the refresh bank information SA (66 in the figure) together with the background refresh command BREN (65 in the figure), and the refresh operation is performed in the banks BA0,1. In parallel with this refresh operation, an active command and a read command are repeatedly input, and a horizontal access operation to the banks BA2 and BA3 is performed. During the rectangular access 1024, the background refresh operation is not performed.

上記のバックグランドリフレッシュコマンドBRENが前述の第1のコードに対応する。また,アクティブコマンドACTとリードコマンドRD,またはライトコマンドWT(図示せず)が,前述の第2のコードに対応する。   The background refresh command BREN corresponds to the first code. An active command ACT, a read command RD, or a write command WT (not shown) corresponds to the second code described above.

図104は,本実施の形態におけるバックグランドリフレッシュの回数とブロック数を説明する図である。バックグランドリフレッシュは,水平アクセス時など,あらかじめ一定期間に特定のバンクにしかアクセスが発生しない時に,アクセスが発生しないバンクに対して実行される。本実施の形態では,このリフレッシュ対象バンクを示すリフレッシュバンク情報SAに加えて,1回のバックグランドリフレッシュコマンドBRENに応答して実行されるリフレッシュ回数を示すリフレッシュバースト長RBLと,1回のリフレッシュ動作で同時にリフレッシュされるブロック数,正確にはワード線数,を示すリフレッシュブロック数RBCとが,メモリコントローラからメモリ装置に供給される。   FIG. 104 is a diagram for explaining the number of background refreshes and the number of blocks in the present embodiment. The background refresh is executed for a bank in which no access occurs when only a specific bank is accessed in a certain period in advance, such as during horizontal access. In this embodiment, in addition to the refresh bank information SA indicating the refresh target bank, a refresh burst length RBL indicating the number of refreshes executed in response to one background refresh command BREN, and one refresh operation. The number of blocks simultaneously refreshed, that is, the refresh block number RBC indicating the number of word lines, is supplied from the memory controller to the memory device.

すなわち,水平アクセスではアクセス対象画像のサイズに応じて一定期間一部のバンクへのアクセスが繰り返される。ただし,水平アクセスの期間は可変であり,また水平アクセスの発生もランダムである。よって,水平アクセス期間中に,リフレッシュ対象バンクで,所望のアドレス数に対してリフレッシュ動作を実行することが求められる。例えば,水平アクセス期間Tの間にアドレスNに対してリフレッシュ動作が求められる場合,1回のリフレッシュ動作に必要なサイクルタイムτとすると,T÷τ≧Nが満たされるなら,1つのブロック(1本のワード線)に対してN回リフレッシュ動作を実行すればよい。しかし,T÷τ≧Nが満たされないなら,1回のリフレッシュ動作で同時に複数ブロック(複数のワード線)をリフレッシュ動作させることで,Nを実効的に小さくする必要がある。この同時にリフレッシュ動作するブロック数が,リフレッシュブロック数RBCである。   That is, in horizontal access, access to some banks is repeated for a certain period according to the size of the access target image. However, the horizontal access period is variable and the occurrence of horizontal access is also random. Therefore, it is required to perform the refresh operation for a desired number of addresses in the refresh target bank during the horizontal access period. For example, when a refresh operation is required for the address N during the horizontal access period T, assuming that the cycle time τ required for one refresh operation is T ÷ τ ≧ N, one block (1 The refresh operation may be executed N times for a single word line. However, if T ÷ τ ≧ N is not satisfied, it is necessary to effectively reduce N by simultaneously performing a refresh operation for a plurality of blocks (a plurality of word lines) in one refresh operation. The number of blocks that are simultaneously refreshed is the refresh block number RBC.

さらに,アクセス対象データサイズが所定サイズより大きいと,水平アクセス期間はある程度長い期間に及ぶ。そのような場合は,1回のバックグランドリフレッシュコマンドBRENに対して複数回のリフレッシュ動作が繰り返されるようにすれば,コマンド発行数を減らすことができる。この場合,水平アクセス期間Tにおいて実行可能なリフレッシュ回数はT÷τであり,これがリフレッシュバースト長RBLである。水平アクセスが開始されるときに,このリフレッシュバースト長RBLを指定することで,メモリ装置は水平アクセス期間Tが終了した時点でリフレッシュサイクルは終了しているので,その直後からアクティブコマンドを発行して通常メモリ動作の動作サイクルに入ることができる。   Further, when the access target data size is larger than the predetermined size, the horizontal access period extends to a certain extent. In such a case, if the refresh operation is repeated a plurality of times for one background refresh command BREN, the number of commands issued can be reduced. In this case, the number of refreshes that can be executed in the horizontal access period T is T ÷ τ, which is the refresh burst length RBL. By specifying this refresh burst length RBL when horizontal access is started, the memory device has completed the refresh cycle at the end of the horizontal access period T. A normal memory operation cycle can be entered.

図104に戻り,図中,バンクBank0が4ブロックBlock−0〜3で構成されている例について,リフレッシュバースト長RBLとリフレッシュブロック数RBCの3つの組み合わせ例が示されている。各ブロックBlockは,ワード線WLとビット線BLと,ビット線BLに接続されるセンスアンプ群S/Aとを有し,4つのブロックBlock−0〜3は,それぞれセンスアンプ群S/Aを有し,同時にリフレッシュ動作可能である。なお,リフレッシュ動作は,アクティブ動作とプリチャージ動作とで構成される。また,通常動作は,アクティブ動作,リードまたはライト動作,プリチャージ動作とで構成される。   Returning to FIG. 104, three combinations of the refresh burst length RBL and the refresh block number RBC are shown for the example in which the bank Bank0 is composed of 4 blocks Block-0 to 3. Each block Block has a word line WL, a bit line BL, and a sense amplifier group S / A connected to the bit line BL, and four blocks Block-0 to 0-3 each have a sense amplifier group S / A. And can be refreshed at the same time. Note that the refresh operation includes an active operation and a precharge operation. The normal operation includes an active operation, a read or write operation, and a precharge operation.

図104(A)は,RBL=2,RBC=1の例である。バックグランドリフレッシュコマンドBRENに応答して,ブロックBlock−0のワード線WL0とWL1とで連続してリフレッシュ動作が行われ,次のコマンドBRENに応答して,ブロックBlock−1のワード線WL0とWL1とで連続してリフレッシュ動作が行われている。この場合,RBC=1であるので,1ブロックでのみリフレッシュ動作が行われ,リフレッシュ動作に伴う消費電流を小さくすることができる。   FIG. 104A shows an example in which RBL = 2 and RBC = 1. In response to the background refresh command BREN, the refresh operation is continuously performed on the word lines WL0 and WL1 of the block Block-0, and in response to the next command BREN, the word lines WL0 and WL1 of the block Block-1 The refresh operation is performed continuously. In this case, since RBC = 1, the refresh operation is performed only in one block, and the current consumption associated with the refresh operation can be reduced.

図104(B)は,RBL=1,RBC=4の例である。バックグランドリフレッシュコマンドBRENに応答して,4つのブロックBlock−0〜3のワード線WL0で同時にリフレッシュ動作が行われる。1回のリフレッシュサイクルしか実行されないが,4ブロックで同時にリフレッシュされるので,4アドレス分のリフレッシュが完了する。ただし,瞬間的な消費電流は大きい。   FIG. 104B shows an example in which RBL = 1 and RBC = 4. In response to the background refresh command BREN, the refresh operation is simultaneously performed on the word line WL0 of the four blocks Block-0 to 3. Although only one refresh cycle is executed, since refresh is performed simultaneously in four blocks, refresh for four addresses is completed. However, instantaneous current consumption is large.

最後に,図104(C)は,RBL=2,RBC=2の例である。バックグランドリフレッシュコマンドBRENに応答して,2つのブロックBlock−0,1のワード線WL0とワード線WL1とで連続してリフレッシュ動作が行われる。これにより,リフレッシュされるロウアドレス数は4であるが,2つのメモリブロックで同時にリフレッシュ動作するので,瞬間的な消費電流は図104(B)よりは抑えられる。   Finally, FIG. 104C shows an example in which RBL = 2 and RBC = 2. In response to the background refresh command BREN, the refresh operation is continuously performed on the word lines WL0 and WL1 of the two blocks Block-0 and 1. As a result, the number of row addresses to be refreshed is 4, but the refresh operation is simultaneously performed in two memory blocks, so that the instantaneous current consumption can be suppressed as compared with FIG.

上記のように,本実施の形態のバックグランドリフレッシュでは,リフレッシュ対象バンクを示すリフレッシュバンク情報SAと,リフレッシュバースト長RBLと,リフレッシュブロック数RBCとを,コマンドBRENと共にまたはレジスタセットコマンドEMRSと共に入力して,ランダムな水平アクセスの発生と期間とに柔軟に対応することができる。   As described above, in the background refresh of the present embodiment, the refresh bank information SA indicating the refresh target bank, the refresh burst length RBL, and the refresh block number RBC are input together with the command BREN or the register set command EMRS. Thus, it is possible to flexibly cope with the occurrence and period of random horizontal access.

ところで,メモリコントローラは,メモリ装置にリフレッシュバースト長RBLの設定により複数回のバックグランドリフレッシュ動作を実行させることができるが,一旦リフレッシュ動作が始まるとそのリフレッシュバースト長RBL回数のリフレッシュ動作を変更できないと不便である。そこで,本実施の形態では,後述するとおり,リフレッシュバースト長RBLを,更に加算して長くしたり,新たなバースト長RBLに再設定したり,リフレッシュ動作を停止させたりすることができる。バースト長RBLの加算機能により,ランダムな水平アクセスに柔軟に対応するために,バックグランドリフレッシュコマンドを事前に発行しておくことが可能になる。バースト長の再設定機能は,新たな水平アクセスが発生した場合に利用できる。また,リフレッシュ動作の停止コマンドは,一旦設定したリフレッシュバースト長RBLが長すぎた場合に有効である。   By the way, the memory controller can cause the memory device to execute a plurality of background refresh operations by setting the refresh burst length RBL. However, once the refresh operation starts, the refresh operation for the refresh burst length RBL times cannot be changed. Inconvenient. Therefore, in the present embodiment, as will be described later, the refresh burst length RBL can be further increased by adding, reset to a new burst length RBL, or the refresh operation can be stopped. The addition function of the burst length RBL makes it possible to issue a background refresh command in advance in order to flexibly cope with random horizontal access. The burst length reset function can be used when a new horizontal access occurs. The refresh operation stop command is effective when the refresh burst length RBL once set is too long.

さらに,本実施の形態では,残りのアドレス全てに対してリフレッシュ動作を実行させるリフレッシュオールコマンドの利用も可能である。これにより,有効なデータが格納されていないメモリ領域に強制的にリフレッシュ動作を行わせて,リフレッシュカウンタをリセットさせることができる。これについても後で詳述する。   Further, in the present embodiment, it is possible to use a refresh all command for executing a refresh operation for all remaining addresses. As a result, the refresh operation can be forcibly performed in a memory area in which valid data is not stored, and the refresh counter can be reset. This will also be described in detail later.

図105は,本実施の形態におけるバックグランドリフレッシュの動作タイミングチャート図である。図105(A)は,バンクBA2,3への水平アクセス1020の時に,バンクBA0,1にリフレッシュ動作させる例であり,メモリ装置に,バックグランドリフレッシュコマンドBREN(図中60)と同時に,リフレッシュバースト長RBLとリフレッシュブロック数RBCとが発行されている(図中1052)。その後は,水平アクセスに対応したアクティブコマンドACTとリードコマンドRDが繰り返されている。   FIG. 105 is an operation timing chart of background refresh in this embodiment. FIG. 105A shows an example in which a refresh operation is performed on the banks BA0, 1 during the horizontal access 1020 to the banks BA2, 3, and the refresh burst is simultaneously sent to the memory device simultaneously with the background refresh command BREN (60 in the figure). A length RBL and a refresh block number RBC are issued (1052 in the figure). Thereafter, the active command ACT and the read command RD corresponding to the horizontal access are repeated.

一方,図105(B)は,水平アクセス1020が開始される前に,レジスタアクセス1050で,拡張モードレジスタセットコマンドEMRS(図中051)と共に,リフレッシュバースト長RBLとリフレッシュブロック数RBCとが発行されている(図中1053)。これにより,メモリ装置は,内部のモードレジスタにRBL,RBCを設定する。その後,水平アクセス1020では,バックグランドリフレッシュコマンドBREN(図中1054)と同時に,リフレッシュバンク情報SAが供給され,それに応答して,メモリ装置は,登録済みのRBL,RBCに対応したリフレッシュ動作を行う。その後は,水平アクセスに対応したアクティブコマンドACTとリードコマンドRDが繰り返し発行されている。   On the other hand, in FIG. 105B, before the horizontal access 1020 is started, the refresh burst length RBL and the refresh block number RBC are issued together with the extended mode register set command EMRS (051 in the figure) by the register access 1050. (1053 in the figure). As a result, the memory device sets RBL and RBC in the internal mode register. Thereafter, in the horizontal access 1020, the refresh bank information SA is supplied simultaneously with the background refresh command BREN (1054 in the figure), and in response to this, the memory device performs a refresh operation corresponding to the registered RBL and RBC. . Thereafter, an active command ACT and a read command RD corresponding to horizontal access are repeatedly issued.

以上の通り,リフレッシュバースト長RBLとリフレッシュブロック数RBCとは,コマンドBRENと共に毎回設定されてもよいし,あらかじめモードレジスタに設定してもよい。モードレジスタに設定すれば,コマンドBRENと共に毎回設定する必要はない。   As described above, the refresh burst length RBL and the refresh block number RBC may be set every time together with the command BREN, or may be set in the mode register in advance. If it is set in the mode register, it is not necessary to set it with the command BREN every time.

図106は,本実施の形態におけるリフレッシュバースト長を説明する図である。図106(A)は,オートリフレッシュコマンドAREFに対して1回のリフレッシュが行われる場合のタイミングチャートである。一方,図106(B)は本実施の形態に対応し,1回のバックグランドリフレッシュコマンドBRENに対して複数回(RBL)のリフレッシュが行われる場合のタイミングチャートである。いずれも,バンクBA2,3への水平アクセス中に,バンクBA0,1にリフレッシュが行われる例である。   FIG. 106 is a diagram for explaining the refresh burst length in the present embodiment. FIG. 106A is a timing chart when one refresh is performed in response to the auto-refresh command AREF. On the other hand, FIG. 106B corresponds to this embodiment, and is a timing chart when refreshing a plurality of times (RBL) is performed for one background refresh command BREN. In either case, refresh is performed on the banks BA0 and BA1 during horizontal access to the banks BA2 and BA3.

図106(A)では,オートリフレッシュコマンドAREFと共に,バンクアドレス端子BAにリフレッシュバンク情報(0,1)が供給され,メモリ装置内部でリフレッシュ制御信号refzがHレベルになり,リフレッシュ動作REFが行われる。コマンド間時間tRRDの後に,アクティブコマンドACTがBA2,BA3に対して発行され,それらに対応してリードコマンドRDがBA2,BA3に対して発行され,プリチャージコマンドPREがBA2,BA3に対して発行される。その後,クロック番号10のタイミングで再度オートリフレッシュコマンドAREFが発行され,バンクBA0,1に対してリフレッシュが実行される。このように,1回のオートリフレッシュコマンドAREFに対してリフレッシュ動作REFは1回しか行われないので,オートリフレッシュコマンドAREFを何回も発行する必要がある。   In FIG. 106A, the refresh bank information (0, 1) is supplied to the bank address terminal BA together with the auto refresh command AREF, the refresh control signal refz becomes H level inside the memory device, and the refresh operation REF is performed. . After the inter-command time tRRD, the active command ACT is issued to BA2 and BA3, the corresponding read command RD is issued to BA2 and BA3, and the precharge command PRE is issued to BA2 and BA3. Is done. Thereafter, the auto-refresh command AREF is issued again at the timing of the clock number 10, and the refresh is executed for the banks BA0 and BA1. Thus, since the refresh operation REF is performed only once for one auto-refresh command AREF, it is necessary to issue the auto-refresh command AREF many times.

それに対して,図106(B)では,バックグランドリフレッシュRBENに応答して,あらかじめ設定されているリフレッシュバースト長RBLに対応する回数,リフレッシュ動作REFが繰り返される。つまり,メモリ内の制御回路は,リフレッシュ制御信号refzを活性化してリフレッシュ動作を実行し,それが終了すると,リフレッシュインターバル信号refintvalxに応答して,更にリフレッシュ制御信号refzを活性化してリフレッシュ動作を実行する。このようにしてリフレッシュ動作がリフレッシュバースト長RBLの回数繰り返される。よって,何度もリフレッシュコマンドを発行する必要はない。具体的には,クロック番号10ではリフレッシュコマンドは発行されていない。これにより,図中1060の時間だけ早く2回目のリフレッシュ動作が完了しているので,実質的にリフレッシュ動作のサイクルは短くなる。よって,リフレッシュバースト長RBLを設定して,複数回のリフレッシュを自動的に実行するようにすることで,メモリコントローラによるコマンド発行の効率を高めることができる。   In contrast, in FIG. 106B, in response to the background refresh RBEN, the refresh operation REF is repeated a number of times corresponding to the preset refresh burst length RBL. That is, the control circuit in the memory activates the refresh control signal refz and executes the refresh operation. When the refresh operation ends, the control circuit further activates the refresh control signal refz and executes the refresh operation in response to the refresh interval signal refintvalx. To do. In this way, the refresh operation is repeated the number of times of the refresh burst length RBL. Therefore, it is not necessary to issue the refresh command many times. Specifically, no refresh command is issued at clock number 10. Thereby, since the second refresh operation is completed earlier by 1060 in the figure, the refresh operation cycle is substantially shortened. Therefore, by setting the refresh burst length RBL and automatically executing a plurality of refreshes, the efficiency of command issuance by the memory controller can be increased.

図107は,本実施の形態におけるリフレッシュバースト長を説明する図である。図107(A)がリフレッシュバースト長RBLを指定してバックグランドリフレッシュを行う場合,図107(B)がRBLを指定せずにバックグランドリフレッシュを行う場合のタイミングチャート図である。ただし,いずれもコマンドBRENに応答してリフレッシュ動作を複数回繰り返す例である。   FIG. 107 is a diagram for explaining the refresh burst length in the present embodiment. FIG. 107A is a timing chart when the refresh burst length RBL is specified and the background refresh is performed, and FIG. 107B is a timing chart when the background refresh is performed without specifying the RBL. However, both are examples in which the refresh operation is repeated a plurality of times in response to the command BREN.

図107(A)の場合は,メモリ装置は,バックグランドリフレッシュコマンドBREN(図中1070)に応答して,あらかじめ設定されたリフレッシュバースト長RBLだけ内部でリフレッシュ動作REFを繰り返す。よって,クロック番号20では内部のリフレッシュ動作が完了しバンクBA0,1に対してプリチャージ動作が終了している。よって,メモリコントローラは,クロック番号21でバンクBA0に対するアクティブコマンドACT(図中1071)を発行して,通常アクセスを行うことができる。   In the case of FIG. 107A, the memory device repeats the refresh operation REF internally for a preset refresh burst length RBL in response to the background refresh command BREN (1070 in the figure). Therefore, the internal refresh operation is completed at clock number 20 and the precharge operation for the banks BA0 and BA1 is completed. Therefore, the memory controller can perform normal access by issuing an active command ACT (1071 in the figure) for the bank BA0 at the clock number 21.

これに対して図107(B)の場合は,リフレッシュ回数が指定されていないので,メモリ装置は,コマンドBREN(図中1072)に応答して,内部でリフレッシュ動作REFを繰り返す。メモリコントローラは,繰り返されるリフレッシュ動作を停止させるために,クロック番号21でバンクBA0に対してプリチャージコマンドPRE(図中1073)を発行する。しかし,クロック番号20で新たな内部のリフレッシュ動作REFが開始しているため,クロック番号21でのプリチャージコマンドPREに対してそのリフレッシュ動作を停止することができない。よって,メモリコントローラは,既に開始済みのリフレッシュ動作が完了するまでアクティブコマンドACT(図中1074)を発行することができず,結局プリチャージコマンドPREからリフレッシュ動作に要する時間tREFC(約数10ns)経過した後になってようやくアクティブコマンドACTを発行できるようになる。つまり,あらかじめリフレッシュ回数が指定されていないと,メモリコントローラは,プリチャージコマンドによりリフレッシュ動作を停止させる必要があり,且つ,リフレッシュ動作停止のためのプリチャージコマンドでは即座にリフレッシュ動作を停止できず,次に発行したいアクティブコマンドの発行が遅れてしまう。   On the other hand, in the case of FIG. 107B, since the number of refresh times is not designated, the memory device internally repeats the refresh operation REF in response to the command BREN (1072 in the figure). The memory controller issues a precharge command PRE (1073 in the figure) to the bank BA0 at clock number 21 in order to stop the repeated refresh operation. However, since the new internal refresh operation REF starts at clock number 20, the refresh operation cannot be stopped in response to the precharge command PRE at clock number 21. Therefore, the memory controller cannot issue the active command ACT (1074 in the figure) until the already started refresh operation is completed, and eventually the time tREFC (about several tens of ns) required for the refresh operation elapses from the precharge command PRE. Only after that, the active command ACT can be issued. In other words, if the number of times of refresh is not specified in advance, the memory controller needs to stop the refresh operation with a precharge command, and the precharge command for stopping the refresh operation cannot immediately stop the refresh operation. The issue of the active command to be issued next is delayed.

前述の特許文献6の米国特許公開US2005/0265104A1公報に記載された発明は,上記の図107(B)に対応する。これに対して,本実施の形態は図107(A)に対応する。   The invention described in US Patent Publication No. US2005 / 0265104A1 of Patent Document 6 described above corresponds to FIG. 107 (B) described above. On the other hand, this embodiment mode corresponds to FIG.

以上が,バックグランドリフレッシュ機能の概略である。以下,この機能を実現するためのメモリ装置の構成について説明する。   The above is the outline of the background refresh function. The configuration of the memory device for realizing this function will be described below.

[バックグランドリフレッシュ機能を有するメモリ装置]
図108は,バックグランドリフレッシュ機能を有するメモリ装置の全体構成図である。図中,入力端子群93には,クロックCLK,コマンド信号/CS,/RAS,/CAS,/WE,2ビットのバンクアドレスBA<1:0>,14ビットのアドレスA<13:0>の端子が示され,それぞれが入力バッファ94に入力され,クロックCLKに同期してラッチ回路720にラッチされる。コマンドデコーダ1080は,図9に示したコマンド制御部95内に設けられ,コマンド信号/CS,/RAS,/CAS,/WEをデコードして,コマンドEMRS,ACT,BREN,PREに対応する内部制御信号として,モードレジスタセットパルス信号mrspz,アクティブパルス信号actpz,リフレッシュパルス信号refpz,プリチャージパルス信号prepzを出力する。バンクアドレスBA<1:0>は,ラッチされて内部バンクアドレスbaz<1:0>となり,それに基づいて通常バンクデコーダ1081がバンク選択信号bnkz<0:3>を生成する。また,リフレッシュバンクデコーダ1082は,バンクアドレスbaz<1:0>と,アドレス端子から入力される信号と,モードレジスタ96に設定されている設定値modez*とに基づいて,リフレッシュバンク選択信号ref_bnkz<0:3>を生成する。モードレジスタ96は,モードレジスタセットパルス信号mrspzに応答して,バンクアドレスbaz<1:0>とアドレスaz<13:0>から入力される設定値を設定する。
[Memory device having background refresh function]
FIG. 108 is an overall configuration diagram of a memory device having a background refresh function. In the figure, an input terminal group 93 includes a clock CLK, command signals / CS, / RAS, / CAS, / WE, a 2-bit bank address BA <1: 0>, and a 14-bit address A <13: 0>. Terminals are shown, and each is input to the input buffer 94 and latched in the latch circuit 720 in synchronization with the clock CLK. The command decoder 1080 is provided in the command control unit 95 shown in FIG. 9, decodes the command signals / CS, / RAS, / CAS, / WE, and performs internal control corresponding to the commands EMRS, ACT, BREN, PRE. As a signal, a mode register set pulse signal mrspz, an active pulse signal actpz, a refresh pulse signal refpz, and a precharge pulse signal prepz are output. Bank address BA <1: 0> is latched to become internal bank address baz <1: 0>, and based on this, normal bank decoder 1081 generates bank selection signals bnkz <0: 3>. The refresh bank decoder 1082 also uses the refresh bank selection signal ref_bnkz <based on the bank address baz <1: 0>, the signal input from the address terminal, and the set value modez * set in the mode register 96. 0: 3> is generated. The mode register 96 sets a set value input from the bank address baz <1: 0> and the address az <13: 0> in response to the mode register set pulse signal mrspz.

メモリ装置86は,上記の制御回路に加えて,4つのバンク92を有する。各バンクは,メモリセルアレイとデコーダとセンスアンプなどを含むコア1086と,それを制御するコア制御回路1085と,各バンクのリフレッシュアドレス(ロウアドレス)REF_RAを生成するリフレッシュアドレスカウンタ1083と,外部から供給されるアドレスaz<13:0>またはリフレッシュアドレスREF_RAのいずれかをラッチするアドレスラッチ回路1084を有する。図中,バンクBank0についてのみ詳細な構成を示しているが,他のバンクBank1,2,3も同じ構成である。   The memory device 86 has four banks 92 in addition to the control circuit described above. Each bank includes a core 1086 including a memory cell array, a decoder, and a sense amplifier, a core control circuit 1085 that controls the core, a refresh address counter 1083 that generates a refresh address (row address) REF_RA of each bank, and an external supply. The address latch circuit 1084 latches either the address az <13: 0> or the refresh address REF_RA. In the drawing, only the detailed configuration of the bank Bank0 is shown, but the other banks Bank1, 2, 3 have the same configuration.

各バンク内のコア制御回路1085は,アクティブコマンドACTに応答して生成されるアクティブパルス信号actpzに応答して,バンク選択信号bnkz<0:3>が選択状態であれば,内部のコアを活性化する。この場合,アドレスラッチ回路1084は外部から供給されるアドレスaz<13:0>をラッチし,コア1086内のデコーダに供給する。コア制御回路1085は,バックグランドリフレッシュコマンドBRENに応答して生成されるリフレッシュパルス信号refpzに応答して,リフレッシュバンク選択信号ref_bnkz<0:3>が選択状態であれば,内部のコアを活性化してリフレッシュ動作させる。この場合,アドレスラッチ回路1084はリフレッシュアドレスカウンタ1083のリフレッシュアドレスREF_RAをラッチし,コア内のデコーダに供給する。   The core control circuit 1085 in each bank activates the internal core if the bank selection signal bnkz <0: 3> is selected in response to the active pulse signal actpz generated in response to the active command ACT. Turn into. In this case, the address latch circuit 1084 latches the address az <13: 0> supplied from the outside, and supplies it to the decoder in the core 1086. The core control circuit 1085 activates the internal core if the refresh bank selection signal ref_bnkz <0: 3> is selected in response to the refresh pulse signal refpz generated in response to the background refresh command BREN. To refresh. In this case, the address latch circuit 1084 latches the refresh address REF_RA of the refresh address counter 1083 and supplies it to the decoder in the core.

[メモリ装置のバンク構成例]
図109は,バックグランドリフレッシュ機能を有するメモリ装置のバンク構成図である。図109は,図108の4つのバンクの構成を示している。4つのバンクBank0−3全てが,リフレッシュアドレスカウンタ1083と,アドレスラッチ回路1084と,コア1086と,コア制御回路1085とを有する。そして,4つのバンクBank0−3には,それぞれバンク選択信号bnkz<0:3>とリフレッシュバンク選択信号ref_bnkz<0:3>とが入力され,それらが選択状態のときに,コア制御回路1085がアクティブパルス信号actpzに応答してコアをアクティブ状態にし,リフレッシュパルス信号refpzに応答してコアをアクティブ状態にする。この例では,各バンクにリフレッシュアドレスカウンタ1083を有するので,バンク毎にリフレッシュ制御を独立して行うことができる。よって,他のバンクが通常メモリ動作中に,残りのバンクのうち1つ,2つ又は3つのバンクに対してリフレッシュ制御を行うことができる。各バンクで独立してリフレッシュ制御を行うことは図100で説明したとおりである。
[Example of bank configuration of memory device]
FIG. 109 is a bank configuration diagram of a memory device having a background refresh function. FIG. 109 shows the configuration of the four banks of FIG. All four banks Bank0-3 have a refresh address counter 1083, an address latch circuit 1084, a core 1086, and a core control circuit 1085. Then, the bank selection signals bnkz <0: 3> and the refresh bank selection signal ref_bnkz <0: 3> are input to the four banks Bank0-3, respectively, and when they are selected, the core control circuit 1085 The core is activated in response to the active pulse signal actpz, and the core is activated in response to the refresh pulse signal refpz. In this example, since each bank has a refresh address counter 1083, refresh control can be performed independently for each bank. Therefore, refresh control can be performed on one, two, or three of the remaining banks while the other banks are operating normally. As described with reference to FIG. 100, the refresh control is independently performed in each bank.

図110は,バックグランドリフレッシュ機能を有するメモリ装置の他のバンク構成図である。この例では,各バンクBank0−3は,コア1086と,アドレスラッチ回路1084と,コア制御回路1085とを有する。そして,リフレッシュアドレスカウンタ1100が2つのバンクBank0,1に共通に設けられ,リフレッシュアドレスREF_RAを両バンクBank0,1に供給する。また,リフレッシュアドレスカウンタ1101が2つのバンクBank2,3に共通に設けられ,リフレッシュアドレスREF_RAを両バンクBank2,3に供給する。この例では,2バンク毎に独立してリフレッシュ制御を行うことができる。つまり,バンクBank0,1が通常メモリ動作中に,バンクBank2,3でリフレッシュ動作を並行して行うことができ,その逆も可能である。むろん4バンクを同時にリフレッシュ動作させることもできる。   FIG. 110 is another bank configuration diagram of the memory device having the background refresh function. In this example, each bank Bank0-3 includes a core 1086, an address latch circuit 1084, and a core control circuit 1085. A refresh address counter 1100 is provided in common to the two banks Bank0, 1, and supplies the refresh address REF_RA to both banks Bank0, 1. A refresh address counter 1101 is provided in common to the two banks Banks 2 and 3 and supplies the refresh address REF_RA to both banks Banks 2 and 3. In this example, refresh control can be performed independently for every two banks. That is, while the banks Bank0 and Bank1 are operating normally, the banks Bank2 and Bank3 can perform a refresh operation in parallel, and vice versa. Of course, the four banks can be simultaneously refreshed.

図111は,メモリ装置の他のバンク構成図である。この例では,バンク内にリフレッシュアドレスカウンタを設けずに,アドレスデコーダ1111とワードドライバ1113との間に,リフレッシュすべきワード線を示すポインタ1112が設けられている。通常メモリ動作では,各バンクに共通に設けられたアドレスラッチ回路1110が,アクティブパルス信号actpzに応答して活性化されて,外部のアドレスaz<13:0>をラッチし,各バンク内のアドレスデコーダ1111は,バンク選択信号bnkz<0:3>が選択状態のときに活性化されてアドレスをデコードする。デコーダにより選択されたワードドライバ1113がワード線を駆動し,メモリセル領域1114をアクティブ状態にする。そして,アンプ制御回路1115が所定のタイミングでセンスアンプ1116を活性化する。   FIG. 111 is another bank configuration diagram of the memory device. In this example, a refresh address counter is not provided in the bank, but a pointer 1112 indicating a word line to be refreshed is provided between the address decoder 1111 and the word driver 1113. In the normal memory operation, an address latch circuit 1110 provided in common to each bank is activated in response to an active pulse signal actpz, and latches an external address az <13: 0> to address in each bank. The decoder 1111 is activated and decodes an address when the bank selection signal bnkz <0: 3> is selected. The word driver 1113 selected by the decoder drives the word line and activates the memory cell region 1114. Then, the amplifier control circuit 1115 activates the sense amplifier 1116 at a predetermined timing.

一方,バックグランドリフレッシュ時には,リフレッシュバンク選択信号ref_bnkz<0:3>が選択状態のときに,リフレッシュパルス信号refpzによりポインタ1112が活性化され,選択状態にあるポインタに対応するワードドライバ1113がワード線を駆動して,メモリセル領域1114とセンスアンプ1116とでリフレッシュ動作をさせる。リフレッシュ動作が終了すると,ポインタ1112は次のポインタを選択状態に変更する。このように,リフレッシュ動作が完了する毎に,ポインタ群1112が選択位置を後続に移動させて,メモリセル領域内のワード線を順番に駆動することができる。   On the other hand, during the background refresh, when the refresh bank selection signal ref_bnkz <0: 3> is in the selected state, the pointer 1112 is activated by the refresh pulse signal refpz, and the word driver 1113 corresponding to the selected pointer is the word line. And a refresh operation is performed by the memory cell region 1114 and the sense amplifier 1116. When the refresh operation ends, the pointer 1112 changes the next pointer to the selected state. In this way, each time the refresh operation is completed, the pointer group 1112 can move the selected position to the subsequent position, and the word lines in the memory cell area can be driven in order.

図111の例では,4つのバンク全てにリフレッシュ用のポインタ群1112が設けられているので,4つのバンクは独立してリフレッシュ制御を行うことができる。   In the example of FIG. 111, since the refresh pointer group 1112 is provided in all four banks, the four banks can perform refresh control independently.

図112は,本実施の形態におけるバックグランドリフレッシュ動作を説明する図である。図112(A)は従来例に対応し,オートリフレッシュコマンドAREFを受信すると,メモリ装置は内部の全てのバンクでリフレッシュ動作を行う。この図ではリフレッシュ回数が1の例であり,リフレッシュサイクル中tREFCは,通常メモリ動作を実行することができず,クロック番号9からアクティブコマンドACTを受信して通常メモリ動作を再開する。   FIG. 112 is a diagram for explaining the background refresh operation in the present embodiment. FIG. 112A corresponds to the conventional example, and when an auto-refresh command AREF is received, the memory device performs a refresh operation in all internal banks. This figure shows an example in which the number of refreshes is 1. During the refresh cycle, tREFC cannot execute the normal memory operation, and receives the active command ACT from clock number 9 and resumes the normal memory operation.

これに対して,図112(B)は本実施の形態に対応し,バックグランドリフレッシュコマンドBRENに応答して,メモリ装置はバンクアドレスBAで指定されたバンクBA0,1に対してリフレッシュ動作を開始する。それに並行して,メモリ装置はバンクBA2,BA3に対するアクティブコマンドACT,リードコマンドRDを受信してリード動作を行う。リードコマンドRDの後にプリチャージコマンドPREを受信しバンクBA2,BA3にプリチャージ動作させる。   In contrast, FIG. 112B corresponds to the present embodiment, and in response to the background refresh command BREN, the memory device starts a refresh operation for the banks BA0 and BA1 designated by the bank address BA. To do. In parallel, the memory device receives an active command ACT and a read command RD for the banks BA2 and BA3 and performs a read operation. The precharge command PRE is received after the read command RD and the banks BA2 and BA3 are precharged.

なお,図112(B)の例では,バックグランドリフレッシュコマンドBRENと同時に,バンクアドレス端子BAからリフレッシュバンク情報「0,1」を,アドレス端子Addからリフレッシュバースト長「8」をそれぞれ入力している。ただし,図示したとおり,特別に設けた端子SAからリフレッシュバンク情報「0,1」を,端子RBL,RBCからリフレッシュバースト長「8」とリフレッシュブロック数「1」とを入力するようにしても良い。   In the example of FIG. 112B, the refresh bank information “0, 1” is input from the bank address terminal BA and the refresh burst length “8” is input from the address terminal Add simultaneously with the background refresh command BREN. . However, as illustrated, the refresh bank information “0, 1” may be input from a specially provided terminal SA, and the refresh burst length “8” and the number of refresh blocks “1” may be input from terminals RBL, RBC. .

図112に示されるとおり,本実施の形態のバックグランドリフレッシュ機能によれば,通常メモリ動作に並列してリフレッシュ動作が行われるので,リフレッシュ動作により通常メモリ動作を中断させることはない。   As shown in FIG. 112, according to the background refresh function of the present embodiment, the refresh operation is performed in parallel with the normal memory operation, so that the normal memory operation is not interrupted by the refresh operation.

[リフレッシュバンクデコーダ,コア制御回路,アドレスラッチ回路]
次に,図108〜111で示したリフレッシュバンクデコーダ,コア制御回路,アドレスラッチ回路について具体例を説明する。なお,前提としてバンクアドレスBA<1:0>と選択されるバンクとの関係を以下に示す。
BA<1>=0,BA<0>=0で選択されるバンクはBank0
BA<1>=0,BA<0>=1で選択されるバンクはBank1
BA<1>=1,BA<0>=0で選択されるバンクはBank2
BA<1>=1,BA<0>=1で選択されるバンクはBank3
図113は,第1,第2のリフレッシュバンクデコーダの回路を示す図である。図113(A)の第1の例のリフレッシュバンクデコーダ1082(1)は,メモリ装置がリフレッシュ動作を2バンク毎に行う場合に適用され,バックグランドリフレッシュコマンドBREN入力時のバンクアドレス端子BA<1>の論理により,バンクBank0,1を選択するか,バンクBank2,3を選択するかを制御する。よって,バンクアドレス端子BA<1>の論理は有効(V:Valid),バンクアドレス端子BA<0>の論理は無効(Don't care)である。具体的には,バンクアドレス端子BA<1>=Hなら,リフレッシュバンク選択信号ref_bnkz<2,3>=HとなりバンクBank2,3が選択され,バンクアドレス端子BA<1>=Lなら,リフレッシュバンク選択信号ref_bnkz<0,1>=HとなりバンクBank0,1が選択される。
[Refresh bank decoder, core control circuit, address latch circuit]
Next, specific examples of the refresh bank decoder, core control circuit, and address latch circuit shown in FIGS. As a premise, the relationship between the bank address BA <1: 0> and the selected bank is shown below.
Bank 0 is selected when BA <1> = 0 and BA <0> = 0
Bank selected by BA <1> = 0, BA <0> = 1 is Bank1
Bank selected by BA <1> = 1, BA <0> = 0 is Bank2
Bank selected by BA <1> = 1, BA <0> = 1 is Bank3
FIG. 113 is a diagram showing circuits of the first and second refresh bank decoders. The refresh bank decoder 1082 (1) of the first example of FIG. 113A is applied when the memory device performs a refresh operation every two banks, and the bank address terminal BA <1 when the background refresh command BREN is input. The logic of> controls whether the banks Bank 0 and 1 or the banks Bank 2 and 3 are selected. Therefore, the logic of the bank address terminal BA <1> is valid (V: Valid), and the logic of the bank address terminal BA <0> is invalid (Don't care). Specifically, if the bank address terminal BA <1> = H, the refresh bank selection signal ref_bnkz <2,3> = H and the banks Bank2 and 3 are selected, and if the bank address terminal BA <1> = L, the refresh bank The selection signal ref_bnkz <0,1> = H and the banks Bank0, 1 are selected.

図113(B)の第2の例のリフレッシュバンクデコーダ1082(2)は,メモリ装置がリフレッシュ動作を2バンク毎に行う場合に適用され,バックグランドリフレッシュコマンドBREN入力時のバンクアドレス端子BA<0>の論理により,バンクBank0,2を選択するか,バンクBank1,3を選択するかを制御する。よって,バンクアドレス端子BA<1>の論理は無効(Don't care)である。具体的な動作は,第1の例と同様である。   The refresh bank decoder 1082 (2) of the second example of FIG. 113 (B) is applied when the memory device performs the refresh operation every two banks, and the bank address terminal BA <0 when the background refresh command BREN is input. > Controls whether the banks Bank 0 and 2 or the banks Bank 1 and 3 are selected. Therefore, the logic of the bank address terminal BA <1> is invalid (Don't care). The specific operation is the same as in the first example.

水平アクセス時に行うバックグランドリフレッシュは,水平方向の1ラインを構成するバンクの組み合わせがBank0,1(又はBank2,3)の場合は,第1の例が好ましい。一方,水平方向の1ラインを構成するバンクの組み合わせがBank0,2(又はBank1,3)の場合は,第2の例が好ましい。水平方向のバンクの組み合わせは,メモリを使用するメモリシステムのメモリマッピングに依存する。したがって,メモリマッピングに応じて,メモリ装置は,第1,第2の例のいずれかのリフレッシュバンクデコーダを有する必要がある。   The background refresh performed during horizontal access is preferably the first example when the combination of banks constituting one horizontal line is Bank 0, 1 (or Bank 2, 3). On the other hand, when the combination of banks constituting one horizontal line is Bank 0, 2 (or Bank 1, 3), the second example is preferable. The combination of horizontal banks depends on the memory mapping of the memory system that uses the memory. Therefore, depending on the memory mapping, the memory device needs to have one of the refresh bank decoders of the first and second examples.

図114は,第3のリフレッシュバンクデコーダの回路を示す図である。第3のリフレッシュバンクデコーダ1082(3)は,第1,第2の例を合体した例であり,モードレジスタに設定された設定値modezに応じて,バンクアドレスbaz<0>側のデコード信号か,baz<1>側のデコード信号かのいずれかを選択する4つのセレクタSELを有する。図中の論理値表に示されるとおり,modez=1なら,バンクアドレスbaz<1>が有効(V:Valid)になり,baz<1>側のデコード信号が選択されてリフレッシュバンク選択信号ref_bnkz<0,1>,ref_bnkz<2,3>の組み合わせで選択される。一方,modez=0なら,バンクアドレスbaz<0>が有効(V:Valid)になり,baz<0>側のデコード信号が選択されてリフレッシュバンク選択信号ref_bnkz<0,2>,ref_bnkz<1,3>の組み合わせで選択される。よって,メモリマッピングに応じて,モードレジスタに設定値modezを設定しておけば,いずれのメモリマッピングにも対応可能である。   FIG. 114 shows a circuit of the third refresh bank decoder. The third refresh bank decoder 1082 (3) is an example in which the first and second examples are combined, and the decode signal on the bank address baz <0> side is determined according to the set value modez set in the mode register. , Baz <1> side has four selectors SEL for selecting one of the decoded signals. As shown in the logical value table in the figure, if modez = 1, the bank address baz <1> is valid (V: Valid), the decode signal on the side of baz <1> is selected, and the refresh bank selection signal ref_bnkz < It is selected by a combination of 0,1> and ref_bnkz <2,3>. On the other hand, if modez = 0, the bank address baz <0> becomes valid (V: Valid), the decode signal on the side of baz <0> is selected, and the refresh bank selection signals ref_bnkz <0,2>, ref_bnkz <1, It is selected by the combination of 3>. Therefore, if the set value modez is set in the mode register according to the memory mapping, any memory mapping can be handled.

図115は,第4のリフレッシュバンクデコーダの回路を示す図である。第4のリフレッシュバンクデコーダ1082(4)は,モードレジスタに設定した2ビットの設定値modez<1:0>により,バンク選択モードが切り替わる。この4種類のバンク選択モードは,図中の表に示されるとおり,以下のようになる。
(1)modez<1:0>=1,1の場合は,バンクアドレス端子BA<1>およびBA<0>で指定される1つのバンクを選択する。つまり,4つのバンクから1つのバンクのみを選択する。
(2)modez<1:0>=1,0の場合は,バンクアドレス端子BA<1>で選択されるバンクBank0,1またはBank2,3のいずれかの組の2バンクを選択する。
(3)modez<1:0>=0,1の場合は,バンクアドレス端子BA<0>で選択されるバンクBank0,2またはBank1,3のいずれかの組の2バンクを選択する。
(4)modez<1:0>=0,0の場合は,リフレッシュバンク選択信号ref_bnkz<0:3>は全て選択状態になる。よって,リフレッシュコマンドBRENが入力されると4つのバンクでリフレッシュが実行される。
FIG. 115 shows a circuit of the fourth refresh bank decoder. The fourth refresh bank decoder 1082 (4) switches the bank selection mode according to the 2-bit set value modez <1: 0> set in the mode register. The four types of bank selection modes are as follows, as shown in the table in the figure.
(1) When modez <1: 0> = 1,1, one bank specified by the bank address terminals BA <1> and BA <0> is selected. That is, only one bank is selected from the four banks.
(2) When modez <1: 0> = 1,0, two banks of the bank Bank0,1 or Bank2,3 selected by the bank address terminal BA <1> are selected.
(3) In the case of modez <1: 0> = 0,1, two banks of either bank Bank0, 2 or Bank1, 3 selected by the bank address terminal BA <0> are selected.
(4) When modez <1: 0> = 0,0, all refresh bank selection signals ref_bnkz <0: 3> are selected. Therefore, when the refresh command BREN is input, refresh is executed in four banks.

リフレッシュバンクデコーダ1082(4)では,modez<0>=1の場合にバンクアドレスbaz<0>が入力される2つのNANDゲートが活性化され,プリデコード信号ba0x,zが1または0になり,リフレッシュバンク選択信号ref_bnkz<0,2>,<1,3>の組み合わせで選択される。逆に,modez<1>=1の場合にバンクアドレスbaz<1>が入力される2つのNANDゲートが活性化され,プリデコード信号ba1x,zが1または0になり,リフレッシュバンク選択信号ref_bnkz<0,1>,<2,3>の組み合わせで選択される。   In the refresh bank decoder 1082 (4), when modez <0> = 1, two NAND gates to which the bank address baz <0> is input are activated, and the predecode signal ba0x, z becomes 1 or 0, It is selected by a combination of refresh bank selection signals ref_bnkz <0,2>, <1,3>. Conversely, when modez <1> = 1, two NAND gates to which the bank address baz <1> is input are activated, the predecode signal ba1x, z becomes 1 or 0, and the refresh bank selection signal ref_bnkz < It is selected by a combination of 0,1>, <2,3>.

この例の場合は,水平方向の1ラインを構成するバンクの組み合わせがBank0,1(Bank2,3)のシステムでは,モードレジスタ設定値をmodez<1:0>=1,0に設定すればよく,また水平方向の1ラインを構成するバンクの組み合わせがBank0,2(Bank1,3)のシステムではモードレジスタ設定値をmodez<1:0>=0,1に設定すればよい。また,リフレッシュを1バンク単位で行いたいシステムではmodez<1:0>=1,1を設定し,従来通りリフレッシュを全バンク同時に行うシステムではmodez<1:0>=0,0に設定すればよい。   In this example, the mode register setting value should be set to modez <1: 0> = 1,0 in a system where the combination of banks that make up one horizontal line is Bank0,1 (Bank2,3). In a system where the combination of banks constituting one horizontal line is Bank 0, 2 (Bank 1, 3), the mode register setting value may be set to modez <1: 0> = 0,1. Also, modez <1: 0> = 1,1 is set for systems that want to perform refresh in 1 bank units, and modez <1: 0> = 0,0 is set for systems that perform refresh simultaneously for all banks as before. Good.

図116は,第5のリフレッシュバンクデコーダの回路を示す図である。第5のリフレッシュバンクデコーダ1082(5)は,コマンドBRENと同時に供給される2ビットのアドレス端子A<1:0>により,バンク選択モード(1バンク,2バンク,2バンク,4バンクのいずれか)を切り替えることができる。つまり,図115の第4の例のモードレジスタ設定値modez<1:0>の代わりに,2ビットのアドレス端子A<1:0>から入力される設定値を利用する例である。バンク選択モードの切り替えは図115と同じである。第5の例によれば,コマンドBRENを発行するたびに,リフレッシュバンク選択の組み合わせを変更することができる。よって,矩形モードのときにもリフレッシュ対象バンクの選択の組み合わせを変更してバックグランドでリフレッシュさせることができる。   FIG. 116 shows a circuit of the fifth refresh bank decoder. The fifth refresh bank decoder 1082 (5) selects one of the bank selection modes (1 bank, 2 banks, 2 banks, 4 banks) according to the 2-bit address terminal A <1: 0> supplied simultaneously with the command BREN. ) Can be switched. That is, in this example, a setting value input from the 2-bit address terminal A <1: 0> is used instead of the mode register setting value modez <1: 0> in the fourth example of FIG. Switching of the bank selection mode is the same as in FIG. According to the fifth example, the refresh bank selection combination can be changed every time the command BREN is issued. Therefore, even in the rectangular mode, it is possible to refresh in the background by changing the combination of selection of the banks to be refreshed.

図117は,第6のリフレッシュバンクデコーダの回路を示す図である。第6のリフレッシュバンクデコーダ1082(6)は,同時にリフレッシュを行う2つのバンクの組み合わせを,リフレッシュコマンドBREN入力時のバンクアドレス端子BA<1>,BA<0>によって指定することができる。2つのバンクの組み合わせを切り替え可能にする点では,図114の第3の例と同じであるが,第5の例では組み合わせの切り替えを,モードレジスタ設定値ではなく,コマンドと同時に入力するバンクアドレス端子BA<1>,BA<0>の論理により行うことができる。   FIG. 117 is a diagram showing a circuit of a sixth refresh bank decoder. The sixth refresh bank decoder 1082 (6) can designate a combination of two banks to be refreshed simultaneously by the bank address terminals BA <1> and BA <0> when the refresh command BREN is input. 114 is the same as the third example in FIG. 114 in that the combination of two banks can be switched. In the fifth example, the bank address input at the same time as the command is used instead of the mode register setting value in the fifth example. This can be done by the logic of the terminals BA <1> and BA <0>.

リフレッシュバンクデコーダ1082(6)は,通常バンクデコーダがバンクアドレスBA<1:0>から生成したバンク選択信号bnkz<3:0>を入力し,リフレッシュバンク選択信号ref_bnkz<0:3>を生成する。   The refresh bank decoder 1082 (6) receives the bank selection signal bnkz <3: 0> generated from the bank address BA <1: 0> by the normal bank decoder, and generates the refresh bank selection signal ref_bnkz <0: 3>. .

まず,メモリマップ1170のように,水平方向の1ラインを構成するバンクの組み合わせがBank0,1(又はBank2,3)のシステムでは,
BA<1>=0,BA<0>=0 であればバンク選択信号bnkz<0>が選択(bankz<0>=High、その他はLow)されバンクBank0とBank1を選択し,
BA<1>=1,BA<0>=1 であればバンク選択信号bnkz<3>が選択(bankz<3>=High、その他はLow)されバンクBank2とBank3を選択する。
First, as in the memory map 1170, in a system where the combination of banks constituting one horizontal line is Bank 0, 1 (or Bank 2, 3),
If BA <1> = 0, BA <0> = 0, bank selection signal bnkz <0> is selected (bankz <0> = High, others are Low), and banks Bank0 and Bank1 are selected,
If BA <1> = 1 and BA <0> = 1, the bank selection signal bnkz <3> is selected (bankz <3> = High, others are Low), and the banks Bank2 and Bank3 are selected.

一方,メモリマップ1171のように,水平方向の1ラインを構成するバンクの組み合わせがBank0,2(又はBank1,3)のシステムでは,
BA<1>=0,BA<0>=1であればバンク選択信号bnkz<1>が選択されバンクBank1とBank3を選択し,
BA<1>=1,BA<0>=0であればバンク選択信号bnkz<2>が選択されバンクBank0とBank2を選択する。
On the other hand, as in the memory map 1171, in a system where the combination of banks constituting one horizontal line is Bank 0, 2 (or Bank 1, 3),
If BA <1> = 0 and BA <0> = 1, the bank selection signal bnkz <1> is selected, and banks Bank1 and Bank3 are selected.
If BA <1> = 1 and BA <0> = 0, the bank selection signal bnkz <2> is selected to select banks Bank0 and Bank2.

図118は,第7のリフレッシュバンクデコーダの回路を示す図である。第7のリフレッシュバンクデコーダ1082(7)は,コマンドBRENと同時に入力される4ビットのアドレス端子A<3:0>に応じて,1つのリフレッシュ対象バンクを選択する。例えば,バンクBank0にはアドレス端子A<0>を,バンクBank1にはアドレス端子A<1>を,バンクBank2にはアドレス端子A<2>を,バンクBank3にはアドレスA<3>端子をそれぞれ対応させる。そして,バックグランドリフレッシュコマンド入力時に
(1)A<3>=0,A<2>=0,A<1>=1,A<0>=1ならば, Bank0とBank1を選択
(2)A<3>=1,A<2>=1,A<1>=0,A<0>=0ならば,Bank2とBank3を選択
(3)A<3>=0,A<2>=1,A<1>=0,A<0>=1ならば,Bank0とBank2を選択
(4)A<3>=1,A<2>=0,A<1>=1,A<0>=0ならば,Bank1とBank3を選択
(5)A<3>=1,A<2>=1,A<1>=1,A<0>=1ならば,全てのBank0,1,2,3を選択する。
(6)A<3:0>のいずれかが1ならば,対応する1つのバンクを選択する。
この場合,バンクアドレス端子BA<1:0>や残りのアドレス端子A<13:4>は無視される。
FIG. 118 is a diagram showing a circuit of a seventh refresh bank decoder. The seventh refresh bank decoder 1082 (7) selects one refresh target bank according to the 4-bit address terminal A <3: 0> input simultaneously with the command BREN. For example, bank Bank0 has address terminal A <0>, bank Bank1 has address terminal A <1>, bank Bank2 has address terminal A <2>, bank Bank3 has address A <3> terminal Make it correspond. When background refresh command is input (1) If A <3> = 0, A <2> = 0, A <1> = 1, A <0> = 1, select Bank0 and Bank1 (2) A <3> = 1, A <2> = 1, A <1> = 0, A <0> = 0, select Bank2 and Bank3 (3) A <3> = 0, A <2> = 1 , A <1> = 0, A <0> = 1, select Bank0 and Bank2 (4) A <3> = 1, A <2> = 0, A <1> = 1, A <0> If = 0, select Bank1 and Bank3 (5) If A <3> = 1, A <2> = 1, A <1> = 1, A <0> = 1, all Bank0,1,2 , 3 is selected.
(6) If any of A <3: 0> is 1, the corresponding one bank is selected.
In this case, the bank address terminal BA <1: 0> and the remaining address terminals A <13: 4> are ignored.

図119は,コア制御回路の構成図である。このコア制御回路は,図108に示すとおり,各バンクに設けられている。また,図示したコア制御回路は,リフレッシュコマンドに応答して1回のみリフレッシュ動作を行う例である。本実施の形態のリフレッシュバースト長RBLの回数のリフレッシュ動作を制御する制御回路は後で説明する。   FIG. 119 is a configuration diagram of the core control circuit. The core control circuit is provided in each bank as shown in FIG. The illustrated core control circuit is an example in which a refresh operation is performed only once in response to a refresh command. A control circuit for controlling the refresh operation for the number of times of the refresh burst length RBL of this embodiment will be described later.

まず,このコア制御回路1085は,アクティブパルス信号actpz,リフレッシュパルス信号refpz,プリチャージパルス信号prepzに応答して,各種のタイミング信号を生成するタイミングコントロール回路1190と,リフレッシュパルス信号refpzに応答してリフレッシュを制御するリフレッシュコントロール回路1191とを有する。2つのNANDゲートからなるRSフリップフロップFF1はアクティブ状態をラッチし,RSフリップフロップFF3はリフレッシュ状態をラッチする。RSフリップフロップFF1にはセット入力1192と,リセット入力1193とが入力される。また,RSフリップフロップFF3にはセット入力1194とリセット入力1195が入力される。   First, the core control circuit 1085 is responsive to the active pulse signal actpz, the refresh pulse signal refpz, and the precharge pulse signal pretz, and a timing control circuit 1190 that generates various timing signals, and in response to the refresh pulse signal refpz. A refresh control circuit 1191 for controlling refresh. The RS flip-flop FF1 composed of two NAND gates latches the active state, and the RS flip-flop FF3 latches the refresh state. A set input 1192 and a reset input 1193 are input to the RS flip-flop FF1. A set input 1194 and a reset input 1195 are input to the RS flip-flop FF3.

図中,アクティブ状態信号raszは,Hレベルでアクティブ状態,Lレベルでプリチャージ状態を示す。イコライズ信号eqlonzは,Hレベルでメモリセルアレイのビット線対をイコライズし,Lレベルでイコライズを解除する。ワード線活性化信号wlonzは,Hレベルでワード線を活性化し,Lレベルならワード線を非活性とする。センスアンプ活性化信号saonzは,Hレベルでセンスアンプを活性化し,Lレベルで非活性化する。アクティブパルス信号actpzはアクティブコマンドACTに応答してコマンドデコーダによりHレベルにされる。リフレッシュパルス信号refpzはリフレッシュコマンドが入力されたときにHレベルになる。プリチャージパルス信号prepzは,プリチャージコマンドPREが入力されたときにHレベルになる。バンク選択信号bnkz<#>は,通常バンクデコーダの出力信号で,Bnkz<#>がHレベルになることでアクティブまたはプリチャージ動作を実行するバンクを指定する。#はバンクの番号である。リフレッシュバンク選択信号ref_bnkz<#>は,リフレッシュバンクデコーダの出力信号であり,ref_bnkz<#>がHレベルになることでリフレッシュ動作を実行するバンクを指定する。   In the figure, an active state signal rasz indicates an active state at the H level and a precharge state at the L level. The equalize signal eqlonz equalizes the bit line pair of the memory cell array at the H level and cancels equalization at the L level. The word line activation signal wlonz activates the word line at the H level, and deactivates the word line at the L level. The sense amplifier activation signal saonz activates the sense amplifier at the H level and deactivates at the L level. The active pulse signal actpz is set to H level by the command decoder in response to the active command ACT. The refresh pulse signal refpz becomes H level when a refresh command is input. The precharge pulse signal prepz becomes H level when the precharge command PRE is input. The bank selection signal bnkz <#> is an output signal of a normal bank decoder, and designates a bank on which an active or precharge operation is performed when Bnkz <#> becomes H level. # Is the bank number. The refresh bank selection signal ref_bnkz <#> is an output signal of the refresh bank decoder, and designates a bank on which the refresh operation is executed when ref_bnkz <#> becomes H level.

図120は,コア制御回路の動作を示すタイミングチャート図である。クロック番号0でオートリフレッシュコマンドAREFに応答して,図示しないコマンドデコーダがリフレッシュパルス信号refpzを生成し,それによりref_bnkzで指定されたバンクのRSフリップフロップFF1,FF3が共にセットされる。その結果,アクティブ状態信号raszがHレベルになり,イコライズ信号eqlonzがLレベルになり,遅延回路DELAY-2の遅延時間後にワード線活性化信号wlonzがHレベルになる。これに応答して,ロウアドレスで選択されたワード線が駆動される。次に,遅延回路DELAY-3の遅延時間後にセンスアンプ活性化信号saonzがHレベルになり,センスアンプが活性化されて再書き込みが行われる。   FIG. 120 is a timing chart showing the operation of the core control circuit. In response to the auto-refresh command AREF at clock number 0, a command decoder (not shown) generates a refresh pulse signal refpz, thereby setting both the RS flip-flops FF1 and FF3 in the bank specified by ref_bnkz. As a result, the active state signal rasz becomes H level, the equalize signal eqlonz becomes L level, and the word line activation signal wlonz becomes H level after the delay time of the delay circuit DELAY-2. In response to this, the word line selected by the row address is driven. Next, after the delay time of the delay circuit DELAY-3, the sense amplifier activation signal saonz becomes H level, the sense amplifier is activated, and rewriting is performed.

一方,RSフリップフロップFF3のセット状態により,リフレッシュアクティブ状態信号ref_raszもHレベルになっている。そして,センスアンプ活性化信号saonzの立ち上がりエッジから,遅延回路DELAY-4の遅延時間後にANDゲート1196により,リフレッシュプリチャージパルスref_prepzがHレベルになり,RSフリップフロップFF3,FF1が共にリセットされる。RSフリップフロップFF1のリセットにより,アクティブ状態信号raszがLレベルになりワード線活性化信号wlonzもLレベルになり,ワード線がLレベルになる。そして,遅延時間DELAY-1後にエコライズ信号eqlonzがHレベルになり,メモリセルのビット線対がイコライズされて,メモリセルアレイのプリチャージが完了する。その結果,1サイクルのプリチャージ動作が終了する。   On the other hand, the refresh active state signal ref_rasz is also at the H level due to the set state of the RS flip-flop FF3. Then, after the delay time of the delay circuit DELAY-4 from the rising edge of the sense amplifier activation signal saonz, the AND gate 1196 causes the refresh precharge pulse ref_prepz to become H level, and both RS flip-flops FF3 and FF1 are reset. By resetting the RS flip-flop FF1, the active state signal rasz becomes L level, the word line activation signal wlonz also becomes L level, and the word line becomes L level. Then, after the delay time DELAY-1, the ecoize signal eqlonz becomes H level, the bit line pairs of the memory cells are equalized, and the precharge of the memory cell array is completed. As a result, the one-cycle precharge operation is completed.

なお,通常動作では,クロック番号9で受信したアクティブコマンドACTに対応するアクティブパルス信号actpzのHレベルに応答して,RSフリップフロップFF1がセットされ,イコライズ信号eqlonzがLレベルになり,信号rasz,wlonz,saonzが順次Hレベルになり,メモリセルアレイが活性化される。そして,プリチャージコマンドPREに対応するプリチャージパルスprepzのHレベルに応答して,RSフリップフロップFF1がリセットされ,信号rasz,wlonz,saonzが順次Lレベルになり,イコライズ信号eplonzがHレベルになり,メモリセルアレイがプリチャージされる。以上が通常動作の1サイクルである。通常動作時は,リフレッシュコントロール回路1191は動作しない。   In normal operation, the RS flip-flop FF1 is set in response to the H level of the active pulse signal actpz corresponding to the active command ACT received at the clock number 9, and the equalize signal eqlonz goes to the L level, and the signal rasz, wlonz and saonz sequentially become H level, and the memory cell array is activated. Then, in response to the H level of the precharge pulse prepz corresponding to the precharge command PRE, the RS flip-flop FF1 is reset, the signals rasz, wlonz, saonz sequentially become L level, and the equalize signal eplonz becomes H level. , The memory cell array is precharged. The above is one cycle of normal operation. During normal operation, the refresh control circuit 1191 does not operate.

以上のように,リフレッシュ動作はアクティブ動作とプリチャージ動作とで構成され,通常動作はアクティブ動作とリード又はライト動作とプリチャージ動作とで構成される。なお,図120では,リードコマンドまたはライトコマンドは省略されている。後述するリフレッシュバースト動作では,上記の1サイクルのプリチャージ動作がリフレッシュバースト長の回数繰り返される。   As described above, the refresh operation includes the active operation and the precharge operation, and the normal operation includes the active operation, the read / write operation, and the precharge operation. In FIG. 120, the read command or the write command is omitted. In a refresh burst operation to be described later, the one-cycle precharge operation is repeated the number of times corresponding to the refresh burst length.

図121は,アドレスラッチ回路の構成と動作を示す図である。アドレスラッチ回路1084は,図108に示されるとおり各バンクに設けられ,メモリコアにロウアドレスRA<13:0>を出力する。よって,図示されるアドレスラッチ回路1084が13個並列に設けられる。アドレスラッチ回路は,アクティブパルス信号actpzに応答して,バンク選択信号bnkz<#>がHレベルであれば,スイッチ1201が導通して外部からのアドレス信号az<13:0>をラッチ回路1200でラッチする。一方,アドレスラッチ回路は,リフレッシュパルス信号refpzに応答して,リフレッシュバンク選択信号ref_bnkz<#>がHレベルであれば,スイッチ1202が導通してリフレッシュアドレスカウンタ1083のリフレッシュアドレスREF_RA<13:0>をラッチ回路1200でラッチする。   FIG. 121 is a diagram showing the configuration and operation of the address latch circuit. The address latch circuit 1084 is provided in each bank as shown in FIG. 108, and outputs a row address RA <13: 0> to the memory core. Therefore, 13 illustrated address latch circuits 1084 are provided in parallel. When the bank selection signal bnkz <#> is at the H level in response to the active pulse signal actpz, the address latch circuit is turned on and the address signal az <13: 0> from the outside is latched by the latch circuit 1200. Latch. On the other hand, if the refresh bank selection signal ref_bnkz <#> is H level in response to the refresh pulse signal refpz, the address latch circuit is turned on and the refresh address counter 1083 refresh address REF_RA <13: 0>. Is latched by the latch circuit 1200.

また,図121のタイミングチャートに示されるとおり,リフレッシュパルス信号refpzに応答して,リフレッシュロウアドレスストローブパルス信号Ref_ra_strbpzが発生し,それに応答してリフレッシュアドレスカウンタ1083がアドレスをインクリメントする。このインクリメントされたリフレッシュアドレスREF_RA<13:0>が次のリフレッシュパルス信号refpzに応答して,ラッチ回路1200でラッチされる。   In addition, as shown in the timing chart of FIG. 121, a refresh row address strobe pulse signal Ref_ra_strbpz is generated in response to the refresh pulse signal refpz, and the refresh address counter 1083 increments the address in response thereto. The incremented refresh address REF_RA <13: 0> is latched by the latch circuit 1200 in response to the next refresh pulse signal refpz.

[リフレッシュバースト制御]
次に,本実施の形態のバックグランドリフレッシュ動作で特徴的なリフレッシュバースト制御について説明する。リフレッシュバースト制御とは,1回のバックグランドリフレッシュコマンドに応答して,メモリ装置がリフレッシュバースト長の回数リフレッシュ動作を繰り返すことをいう。これにより,図106で示したとおり,コマンドの発行回数を減らすことができ,アクセス効率を高めることができる。
[Refresh burst control]
Next, a characteristic refresh burst control in the background refresh operation of the present embodiment will be described. The refresh burst control means that the memory device repeats the refresh operation for the number of refresh burst lengths in response to one background refresh command. As a result, as shown in FIG. 106, the number of command issuances can be reduced, and access efficiency can be improved.

図122は,リフレッシュバースト動作を示すタイミングチャート図である。この例では,図中右上のメモリマップ12において,第1行目をリフレッシュ動作しながら第2行目を水平アクセスする。クロック番号0でバックグランドリフレッシュコマンドBRENと共に,リフレッシュバンク情報SA=0,1とリフレッシュバースト長RBL=4とが,メモリコントローラからメモリ装置に供給される。また,リフレッシュブロック数RBCについても供給されるがこの例では省略している。図105に示したとおり,リフレッシュバンク情報SAとリフレッシュバースト長RBLとは,モードレジスタセットコマンドによりモードレジスタに設定されたり,リフレッシュコマンドBRENと共に供給されたりする。供給される外部端子は,例えばバンクアドレス端子,アドレス端子,特殊端子などである。具体例は後述する。   FIG. 122 is a timing chart showing the refresh burst operation. In this example, in the memory map 12 at the upper right in the figure, the second row is horizontally accessed while the first row is refreshed. The refresh bank information SA = 0,1 and the refresh burst length RBL = 4 are supplied from the memory controller to the memory device together with the background refresh command BREN at the clock number 0. Although the refresh block number RBC is also supplied, it is omitted in this example. As shown in FIG. 105, the refresh bank information SA and the refresh burst length RBL are set in the mode register by the mode register set command or supplied together with the refresh command BREN. The supplied external terminals are, for example, bank address terminals, address terminals, special terminals, and the like. Specific examples will be described later.

クロック番号0でバックグランドリフレッシュコマンドBRENを受信すると,メモリ装置は,バンクBank0,1に対して4回のリフレッシュ動作を繰り返し実行する。更に,メモリコントローラは,バンクBank2,3に対するアクティブコマンドACTをクロック番号2,4で発行し,リードコマンドRDをクロック番号5,7で発行し,プリチャージコマンドPREをクロック番号8,9で発行する。同様に,クロック番号11,13でバンクBank2,3に対するアクティブコマンドACTを発行し,続いてリードコマンドRD,プリチャージコマンドPREも発行する。これらに応答して,メモリ装置は,バンクBank2,3でアクティブ動作を実行する。このバンクBank2,3でのアクティブ動作は,バンクBank0,1でのリフレッシュ動作と並行して実行される。   When the background refresh command BREN is received at the clock number 0, the memory device repeatedly executes the refresh operation four times for the banks Bank0 and Bank1. Further, the memory controller issues an active command ACT to the banks Bank 2 and 3 with clock numbers 2 and 4, issues a read command RD with clock numbers 5 and 7, and issues a precharge command PRE with clock numbers 8 and 9. . Similarly, an active command ACT for the banks Bank 2 and 3 is issued at clock numbers 11 and 13, followed by a read command RD and a precharge command PRE. In response to these, the memory device performs an active operation in banks Bank2 and Bank3. The active operation in the banks Bank 2 and 3 is executed in parallel with the refresh operation in the banks Bank 0 and 1.

リフレッシュバースト長RBLを指定することにより,クロック番号16で4回のリフレッシュ動作が完了し,クロック19の後すぐにバンクBank0,1に対するアクティブコマンドACTを発行することができる。   By specifying the refresh burst length RBL, four refresh operations are completed at the clock number 16, and the active command ACT for the banks Bank0, Bank1 can be issued immediately after the clock 19.

図123は,リフレッシュバースト動作を制御するコア制御回路の構成図である。図119,図120と併せて参照することで,このコア制御回路がより明らかになる。コア制御回路1085は,図119のタイミングコントロール回路1190とリフレッシュコントロール回路1191に加えて,リフレッシュバースト長RBLが設定されるリフレッシュバースト長レジスタ1231と,リフレッシュ動作回数をカウントするリフレッシュバースト長カウンタ1230と,それらの出力を比較してリフレッシュバースト動作の終了を検出するリフレッシュバースト終了検知回路1232とを有する。また,図123のコア制御回路1085は,バックグランドリフレッシュコマンドBRENと同時にリフレッシュバースト長RBL(4ビット:1〜16回)がアドレス端子A<7:4>から入力される例(図105(A)に対応)である。   FIG. 123 is a configuration diagram of a core control circuit that controls the refresh burst operation. This core control circuit becomes clearer by referring to FIG. 119 and FIG. 120 together. In addition to the timing control circuit 1190 and the refresh control circuit 1191 of FIG. 119, the core control circuit 1085 includes a refresh burst length register 1231 in which the refresh burst length RBL is set, a refresh burst length counter 1230 for counting the number of refresh operations, A refresh burst end detection circuit 1232 for comparing the outputs and detecting the end of the refresh burst operation is provided. The core control circuit 1085 in FIG. 123 receives the refresh burst length RBL (4 bits: 1 to 16 times) from the address terminal A <7: 4> simultaneously with the background refresh command BREN (FIG. 105 (A )).

リフレッシュバースト長レジスタ1231には,図中のテーブル1231Tに示されるとおり,アドレス端子az<7:4>から入力される4ビットの情報に対応して,テーブル1231Tに示されるリフレッシュバースト長RBL=1〜16が設定される。この設定は,バックグランドリフレッシュコマンドBRENに応答して生成されるリフレッシュパルス信号refpz=H,リフレッシュバンク選択信号ref_bnkz<#>=Hのときに行われる。   In the refresh burst length register 1231, as shown in the table 1231T in the figure, the refresh burst length RBL = 1 shown in the table 1231T corresponding to the 4-bit information input from the address terminal az <7: 4>. ~ 16 are set. This setting is performed when the refresh pulse signal refpz generated in response to the background refresh command BREN = H and the refresh bank selection signal ref_bnkz <#> = H.

リフレッシュバースト長カウンタ1230は,リフレッシュパルス信号refpz=H,リフレッシュバンク選択信号ref_bnkz<#>=Hのときにリセットされる。リフレッシュコントロール回路1191は,1サイクルのリフレッシュ動作が終了するたびに次のリフレッシュ動作を指令するインターナルリフレッシュパルス信号int_refpz(=H)を出力し,それに応答して,リフレッシュバースト長カウンタ1230はカウント値をインクリメントする。そして,カウンタ1230のカウント値とリフレッシュバースト長レジスタ1231に設定されたバースト長RBLとが一致すると,リフレッシュバースト終了検出回路1232がリフレッシュバーストエンド信号rb_endz(=H)を出力する。それに応答して,リフレッシュコントロール回路1191は,リフレッシュ状態をラッチするRSフリップフロップ回路をリセットし,それ以降のインターナルリフレッシュパルス信号int_refpzとリフレッシュプリチャージパルス信号ref_prepzとは出力しない。   The refresh burst length counter 1230 is reset when the refresh pulse signal refpz = H and the refresh bank selection signal ref_bnkz <#> = H. The refresh control circuit 1191 outputs an internal refresh pulse signal int_refpz (= H) for instructing the next refresh operation every time one cycle of refresh operation is completed, and in response to this, the refresh burst length counter 1230 counts the count value. Is incremented. When the count value of the counter 1230 matches the burst length RBL set in the refresh burst length register 1231, the refresh burst end detection circuit 1232 outputs the refresh burst end signal rb_endz (= H). In response to this, the refresh control circuit 1191 resets the RS flip-flop circuit that latches the refresh state, and does not output the internal refresh pulse signal int_refpz and the refresh precharge pulse signal ref_prepz thereafter.

図124は,リフレッシュバースト動作を制御するコア制御回路の別の構成図である。このコア制御回路1085は,モードレジスタセットコマンドEMRSと共にアドレス端子az<7:4>に入力されるリフレッシュバースト長RBLをモードレジスタ96に設定する例(図105(B)に対応)である。モードレジスタ96には,モードレジスタセットパルスmrspzに応答して,アドレス端子az<7:4>に入力される4ビットデータがリフレッシュバースト長RBL(図123のテーブル1231T)として設定され,バンクアドレス端子baz<1:0>に入力されるリフレッシュ対象のバンク情報も設定される。さらに,リフレッシュブロック数RBCが設定されてもよい。   FIG. 124 is another configuration diagram of the core control circuit that controls the refresh burst operation. The core control circuit 1085 is an example (corresponding to FIG. 105B) in which the refresh burst length RBL input to the address terminals az <7: 4> together with the mode register set command EMRS is set in the mode register 96. In the mode register 96, 4-bit data input to the address terminals az <7: 4> in response to the mode register set pulse mrspz is set as the refresh burst length RBL (table 1231T in FIG. 123), and the bank address terminal The bank information to be refreshed input to baz <1: 0> is also set. Further, the refresh block number RBC may be set.

リフレッシュバースト終了検出回路1232は,モードレジスタ96からリフレッシュバースト長を示す信号modez<7:4>を入力し,リフレッシュバースト長カウンタ1230のカウント値と比較する。それ以外の構成は図123と同じである。   The refresh burst end detection circuit 1232 receives the signal modez <7: 4> indicating the refresh burst length from the mode register 96 and compares it with the count value of the refresh burst length counter 1230. Other configurations are the same as those in FIG.

図125は,コア制御回路内のタイミングコントロール回路1190とリフレッシュコントロール回路1191の詳細回路図である。図中矢印1250〜1254で示した構成が,図119の構成に追加されている。つまり,リフレッシュ状態をラッチするRSフリップフロップFF2は,リフレッシュコマンドBRENにより生成されるリフレッシュパルス信号refpzに応答してセットされ,矢印1250で示したリフレッシュ状態信号ref_statezがHにセットされる。このリフレッシュ状態信号ref_statezはリフレッシュバースト動作中はHに維持される。   FIG. 125 is a detailed circuit diagram of the timing control circuit 1190 and the refresh control circuit 1191 in the core control circuit. The configuration indicated by arrows 1250 to 1254 in the figure is added to the configuration of FIG. That is, the RS flip-flop FF2 that latches the refresh state is set in response to the refresh pulse signal refpz generated by the refresh command BREN, and the refresh state signal ref_statez indicated by the arrow 1250 is set to H. The refresh state signal ref_statez is maintained at H during the refresh burst operation.

リフレッシュ動作の繰り返しを制御するために,リフレッシュコントロール回路1191は,リフレッシュサイクルの最後にイコライズ信号eqlonzがHレベルになってから遅延時間DELAY-5の後に,インターナルリフレッシュパルス信号int_refpz(矢印1251,1252)をHレベル(DELAY-0のパルス幅)にする。このインターナルリフレッシュパルス信号int_refpzが,RSフリップフロップFF1をセットし(矢印1253),次のリフレッシュサイクルへの開始を指示する。このインターナルリフレッシュパルス信号int_refpzは,前述のとおりリフレッシュカウンタをインクリメントする。   In order to control the repetition of the refresh operation, the refresh control circuit 1191 has an internal refresh pulse signal int_refpz (arrows 1251, 1252) after the delay time DELAY-5 after the equalize signal eqlonz becomes H level at the end of the refresh cycle. ) To H level (DELAY-0 pulse width). This internal refresh pulse signal int_refpz sets the RS flip-flop FF1 (arrow 1253) and instructs the start of the next refresh cycle. The internal refresh pulse signal int_refpz increments the refresh counter as described above.

そして,リフレッシュ動作を停止させるために,リフレッシュコントロール回路1191では,バースト長のリフレッシュサイクルが終了したときにリフレッシュバーストエンド信号rb_endz(矢印1254)がHレベルになり,且つリフレッシュ動作サイクルが終了するときにリフレッシュプリチャージパルス信号ref_prepzがHレベルになると,リセット入力1195によりRSフリップフロップFF2がリセットされ,リフレッシュ状態信号ref_statezがLにリセットされる。その結果,ANDゲート1197の出力がLレベルに固定されて,次のリフレッシュサイクルの開始を指示するインターナルリフレッシュパルス信号int_refpzはそれ以上出力されない。   In order to stop the refresh operation, the refresh control circuit 1191 sets the refresh burst end signal rb_endz (arrow 1254) to the H level when the burst length refresh cycle is completed, and when the refresh operation cycle is completed. When the refresh precharge pulse signal ref_prepz becomes H level, the RS flip-flop FF2 is reset by the reset input 1195, and the refresh state signal ref_statez is reset to L. As a result, the output of the AND gate 1197 is fixed at the L level, and the internal refresh pulse signal int_refpz instructing the start of the next refresh cycle is not output any more.

図126は,コア制御回路内のタイミングコントロール回路1190とリフレッシュコントロール回路1191の別の詳細回路図である。このコア制御回路のリフレッシュコントロール回路1191は,図125のANDゲート1197や遅延回路DELAY-5などに代えて,リフレッシュ状態信号ref_statezのHレベルにより活性化される発振器1260が設けられている。発振器1260は,リフレッシュサイクルと同程度の周波数で発振し,リフレッシュ状態信号ref_statezがHレベルの間は,次のリフレッシュサイクルの開始を指示するインターナルリフレッシュパルス信号int_refpzを出力し続ける。そして,リフレッシュバーストエンド信号rb_endzがHレベルになり且つ1サイクルのリフレッシュ動作終了時にリフレッシュプリチャージパルス信号ref_prepzがHレベルになるときに,RSフリップフロップFF2がリセットされ,リフレッシュ状態信号ref_statezがLにリセットされ,発振器1260が停止する。それ以外は,図124と同じである。   FIG. 126 is another detailed circuit diagram of the timing control circuit 1190 and the refresh control circuit 1191 in the core control circuit. The refresh control circuit 1191 of this core control circuit is provided with an oscillator 1260 that is activated by the H level of the refresh state signal ref_statez, instead of the AND gate 1197 and the delay circuit DELAY-5 shown in FIG. The oscillator 1260 oscillates at the same frequency as the refresh cycle, and continues to output the internal refresh pulse signal int_refpz instructing the start of the next refresh cycle while the refresh state signal ref_statez is at the H level. When the refresh burst end signal rb_endz becomes H level and the refresh precharge pulse signal ref_prepz becomes H level at the end of one cycle of the refresh operation, the RS flip-flop FF2 is reset and the refresh state signal ref_statez is reset to L. Then, the oscillator 1260 stops. The rest is the same as FIG.

図125,126のコア制御回路の詳細な動作説明は,図127,128を説明した後に図129を参照して行う。   125 and 126 will be described in detail with reference to FIG. 129 after FIGS. 127 and 128 are described.

図127は,リフレッシュバースト長カウンタ1230,リフレッシュバースト長レジスタ1231,リフレッシュバースト終了検出回路1232の構成図である。図123の具体例であり,図124のレジスタを除いた具体例である。リフレッシュバースト長カウンタ1230内のカウンタは,リフレッシュパルス信号refpzに応答して「0」にリセットされ,リフレッシュサイクル開始を指令するインターナルリフレッシュパルス信号int_refpzに応答してインクリメントされる。カウンタ値rblcz<3:0>はリフレッシュバースト終了検出回路1232に出力される。   127 is a block diagram of the refresh burst length counter 1230, the refresh burst length register 1231 and the refresh burst end detection circuit 1232. This is a specific example of FIG. 123, and is a specific example excluding the register of FIG. The counter in the refresh burst length counter 1230 is reset to “0” in response to the refresh pulse signal refpz, and is incremented in response to the internal refresh pulse signal int_refpz instructing the start of the refresh cycle. The counter value rblcz <3: 0> is output to the refresh burst end detection circuit 1232.

リフレッシュバースト長レジスタは,リフレッシュパルス信号refpzに応答してアドレス端子az<7:4>の信号をラッチし,ラッチされたリフレッシュバースト長を示すrblrz<3:0>をリフレッシュバースト終了検出回路1232に出力する。   The refresh burst length register latches the signal at the address terminal az <7: 4> in response to the refresh pulse signal refpz, and sends rblrz <3: 0> indicating the latched refresh burst length to the refresh burst end detection circuit 1232 Output.

リフレッシュバースト終了検出回路1232は,カウンタ値rblcz<3:0>とリフレッシュバースト長rblrz<3:0>を比較し,両者が完全に一致するとリフレッシュバーストエンド信号rb_endzを出力する。このリフレッシュバーストエンド信号rb_endzにより,それ以降のリフレッシュ動作が停止する。   The refresh burst end detection circuit 1232 compares the counter value rblcz <3: 0> with the refresh burst length rblrz <3: 0>, and outputs a refresh burst end signal rb_endz when the two match completely. Subsequent refresh operations are stopped by this refresh burst end signal rb_endz.

図128は,アドレスラッチ回路の構成図である。図121の構成に加えて,矢印1280で示したインターナルリフレッシュパルス信号int_refpzに応答して,アドレスラッチ回路1084が,リフレッシュアドレスカウンタ1083の出力のリフレッシュアドレスREF_RA<13:0>を,スイッチ1202を介してラッチ回路1200にラッチする。つまり,リフレッシュバースト動作では,リフレッシュサイクルを繰り返すために,インターナルリフレッシュパルス信号int_refpz(=H)が繰り返し出力される。よって,それに応答してアドレスラッチ回路1084は新たなリフレッシュアドレスをリフレッシュアドレスカウンタ1083からラッチし,同カウンタをインクリメントすることが必要になる。   FIG. 128 is a block diagram of the address latch circuit. In addition to the configuration of FIG. 121, in response to the internal refresh pulse signal int_refpz indicated by an arrow 1280, the address latch circuit 1084 changes the refresh address REF_RA <13: 0> of the output of the refresh address counter 1083 to the switch 1202. Via the latch circuit 1200. That is, in the refresh burst operation, the internal refresh pulse signal int_refpz (= H) is repeatedly output in order to repeat the refresh cycle. Accordingly, in response to this, the address latch circuit 1084 needs to latch a new refresh address from the refresh address counter 1083 and increment the counter.

図129は,リフレッシュバースト動作のタイミングチャート図である。この図129と図120を参照して,図125〜128に示したコア制御回路によるリフレッシュバースト動作を説明する。まず,バックグランドリフレッシュコマンドBRENに応答してリフレッシュバースト動作が開始する。この例でも,リフレッシュ対象バンクBank0,1とリフレッシュバースト長RBL=4とが指定されている。   FIG. 129 is a timing chart of the refresh burst operation. The refresh burst operation by the core control circuit shown in FIGS. 125 to 128 will be described with reference to FIGS. First, a refresh burst operation starts in response to the background refresh command BREN. Also in this example, the refresh target banks Bank0, 1 and the refresh burst length RBL = 4 are designated.

リフレッシュコマンドBRENによりリフレッシュパルス信号refpzが出力され,これに応答して,リフレッシュ対象バンクBank0,1のリフレッシュバースト長レジスタ1231にアドレス端子A<7>〜A<4>の値が取り込まれる。図中のrblrz<3:0>=0011bはバースト長RBL=4の例である。同時に,バンクBank0,1のリフレッシュバースト長カウンタ1230のカウンタ値がrblcz<3:0>=0000bにリセットされる。また,リフレッシュコントローラ回路1191内のRSフリップフロップFF2によりリフレッシュ状態信号ref_statezがHレベルにセットされる。   In response to the refresh command BREN, the refresh pulse signal refpz is output, and in response to this, the values of the address terminals A <7> to A <4> are taken into the refresh burst length register 1231 of the refresh target banks Bank0,1. In the figure, rblrz <3: 0> = 0011b is an example of the burst length RBL = 4. At the same time, the counter value of the refresh burst length counter 1230 of the banks Bank0,1 is reset to rblcz <3: 0> = 0000b. The refresh state signal ref_statez is set to the H level by the RS flip-flop FF2 in the refresh controller circuit 1191.

この時,タイミングコントロール回路1190内のRSフリップフロップFF1もセットされ,アクティブ状態信号rasz=Highとなり,リフレッシュサイクル動作が始まる。同時に,タイミングコントロール回路1190は,イコライズ信号eqlonz=Low,ワード線活性化信号wlonz=Highとし,さらに,センスアンプ活性化信号saonzを図120と同様にHレベルにする(図示せず)。これにより,バンクBank0,1はアクティブ状態になり,セルのデータが再書き込みされる。   At this time, the RS flip-flop FF1 in the timing control circuit 1190 is also set, the active state signal rasz = High, and the refresh cycle operation starts. At the same time, the timing control circuit 1190 sets the equalize signal eqlonz = Low, the word line activation signal wlonz = High, and sets the sense amplifier activation signal saonz to the H level as shown in FIG. 120 (not shown). As a result, the banks Bank0 and Bank1 become active, and the cell data is rewritten.

センスアンプ活性化信号saonzから遅延時間DELAY-4後に,ANDゲート1196によりリフレッシュプリチャージ信号ref_prepzが出力され,RSフリップフロップFF1がリセットされ,アクティブ状態信号がrasz=Lowとなり,イコライズ信号がeqlonz=Highとなり,プリチャージ動作が始まる。このとき,リフレッシュバースト長レジスタ1231の値とリフレッシュバースト長カウンタ1230の値は異なる(rblrz<3:0>≠rblcz<3:0>)ため,リフレッシュエンド信号rb_endzはLowのままである。   After a delay time DELAY-4 from the sense amplifier activation signal saonz, the AND gate 1196 outputs the refresh precharge signal ref_prepz, the RS flip-flop FF1 is reset, the active state signal becomes rasz = Low, and the equalize signal becomes eqlonz = High. Thus, the precharge operation starts. At this time, since the value of the refresh burst length register 1231 and the value of the refresh burst length counter 1230 are different (rblrz <3: 0> ≠ rblcz <3: 0>), the refresh end signal rb_endz remains low.

リフレッシュコントロール回路1191は,ANDゲート1197を介して,イコライズ信号eqlonz=Highから遅延時間DELAY-5の後に,インターナルリフレッシュパルス信号int_refpzを出力し,RSフリップフロップFF1をセットし,次のリフレッシュ動作を開始する。このとき,リフレッシュバースト長カウンタの値はカウントアップされて0001bとなる。また,アドレスラッチ回路1984(図128)は,リフレッシュアドレスカウンタ1083のカウント値をラッチする。以後,同様のリフレッシュ動作を繰り返す。   The refresh control circuit 1191 outputs an internal refresh pulse signal int_refpz via the AND gate 1197 after the delay time DELAY-5 from the equalize signal eqlonz = High, sets the RS flip-flop FF1, and performs the next refresh operation. Start. At this time, the value of the refresh burst length counter is counted up to 0001b. The address latch circuit 1984 (FIG. 128) latches the count value of the refresh address counter 1083. Thereafter, the same refresh operation is repeated.

3回目のインターナルリフレッシュパルス信号int_refpzが出力され, 4回目のリフレッシュ動作が開始されると,リフレッシュバースト長カウンタの値はカウントアップされてrblcz<3:0>=0011bとなる。このとき,リフレッシュバースト長レジスタの値rblrz<3:0>=とリフレッシュバースト長カウンタの値rblcz<3:0>は同じになり(rblrz<3:0>=rblcz<3:0>=0011b),リフレッシュバーストエンド検出回路1232が,リフレッシュバーストエンド信号rb_endz=Highとする。4回目のリフレッシュ動作の終了により,プリチャージ信号ref_prepzが出力されてアクティブ状態信号rasz=Lowとなるが,このときリフレッシュエンド信号rb_endz=Highなので,リセット入力1195によりRSフリップフロップFF2がリセットされ,その結果リフレッシュ状態信号ref_statezがLowに状態遷移する。このref_statez=Lowにより,プリチャージ動作に伴ってイコライズ信号eqlonz=Highになったとき,次のリフレッシュ動作を開始させるインターナルリフレッシュ信号int_refpzは出力されず,4回のリフレッシュバースト動作が終了する。   When the third internal refresh pulse signal int_refpz is output and the fourth refresh operation is started, the value of the refresh burst length counter is incremented to rblcz <3: 0> = 0011b. At this time, the refresh burst length register value rblrz <3: 0> = and the refresh burst length counter value rblcz <3: 0> are the same (rblrz <3: 0> = rblcz <3: 0> = 0011b) The refresh burst end detection circuit 1232 sets the refresh burst end signal rb_endz = High. At the end of the fourth refresh operation, the precharge signal ref_prepz is output and the active state signal rasz = Low. At this time, since the refresh end signal rb_endz = High, the RS flip-flop FF2 is reset by the reset input 1195. As a result, the refresh state signal ref_statez changes to Low. With this ref_statez = Low, when the equalize signal eqlonz = High is brought along with the precharge operation, the internal refresh signal int_refpz for starting the next refresh operation is not output, and four refresh burst operations are completed.

図126の例も,インターナルリフレッシュ信号int_refpzが発振器1260により出力されるが,4回目のリフレッシュ動作が開始してリフレッシュ状態信号ref_statezがLにリセットされると,発振器1260が停止し,その後インターナルリフレッシュ信号int_refpzは出力されない。その結果,リフレッシュ動作は4回で終了する。   In the example of FIG. 126 as well, the internal refresh signal int_refpz is output by the oscillator 1260. However, when the fourth refresh operation is started and the refresh state signal ref_statez is reset to L, the oscillator 1260 is stopped, and then the internal refresh signal is reset. The refresh signal int_refpz is not output. As a result, the refresh operation is completed after four times.

[リフレッシュバースト停止制御]
リフレッシュバースト機能は,1回のバックグランドリフレッシュコマンドを入力すると,指定されたバースト長だけリフレッシュサイクルを繰り返すので,コマンド入力回数を減らしてメモリのアクセス効率を高めることができる。しかし,バースト長が長くなると一旦開始したバックグランドリフレッシュ動作が完了するまでそのバンクへのアクセスが許されないとすると,メモリ制御の柔軟性が失われる。そこで,本実施の形態のメモリ装置はリフレッシュバースト停止機能を有する。
[Refresh burst stop control]
The refresh burst function repeats a refresh cycle for a specified burst length when a single background refresh command is input. Therefore, the number of command inputs can be reduced to increase memory access efficiency. However, if the burst length is increased, memory access flexibility is lost if access to the bank is not permitted until the background refresh operation once started is completed. Therefore, the memory device of the present embodiment has a refresh burst stop function.

図130は,リフレッシュバースト停止動作の概略を示す図である。メモリ装置は,クロック番号0でバックグランドリフレッシュコマンドBRENを入力し,バンクBNK0,1でバースト長RBL=4回のリフレッシュ動作を開始する。しかし,メモリ装置は,3回目のリフレッシュサイクル中に停止コマンドSTOPを入力すると,実行中のリフレッシュサイクルを完了した後,次のリフレッシュサイクルには入らない。実行中のリフレッシュサイクルを停止することはできないので,停止コマンドSTOPによる停止動作とは,新たなリフレッシュサイクルには入らないことを意味する。   FIG. 130 is a diagram showing an outline of the refresh burst stop operation. The memory device inputs a background refresh command BREN at clock number 0, and starts a refresh operation with burst length RBL = 4 times at banks BNK0,1. However, if the memory device inputs the stop command STOP during the third refresh cycle, it does not enter the next refresh cycle after completing the refresh cycle being executed. Since the refresh cycle being executed cannot be stopped, the stop operation by the stop command STOP means that a new refresh cycle is not entered.

上記の停止コマンドSTOPは,例えば,リフレッシュコマンド(例えば/CS=L, /RAS=L, /CAS=L, /WE=H)とコマンド入力時のアドレス端子の信号とで指定される。つまり,リフレッシュコマンドとはコマンド信号は同じでアドレス端子の信号で区別される。もしくは,停止コマンドSTOPは,プリチャージコマンド(例えば/CS=L, /RAS=L, /CAS=H, /WE=L)が利用される。   The stop command STOP is specified by, for example, a refresh command (for example, / CS = L, / RAS = L, / CAS = L, / WE = H) and an address terminal signal at the time of command input. That is, the command signal is the same as the refresh command, and is distinguished by the address terminal signal. Alternatively, a precharge command (for example, / CS = L, / RAS = L, / CAS = H, / WE = L) is used as the stop command STOP.

図131は,リフレッシュバースト停止機能を有するコア制御回路の構成図である。図123,124のコア制御回路のリフレッシュコントロール回路1191が,リフレッシュ状態コントロール回路1191Bと,リフレッシュ状態コントロール回路1191とで構成されている。そして,コマンドデコーダ1080は,バックグランドリフレッシュコマンドに応答してリフレッシュパルス信号refpzに加えて,停止コマンドに応答してリフレッシュストップパルス信号ref_stoppzを出力する。   FIG. 131 is a block diagram of a core control circuit having a refresh burst stop function. The refresh control circuit 1191 of the core control circuit of FIGS. 123 and 124 includes a refresh state control circuit 1191B and a refresh state control circuit 1191. The command decoder 1080 outputs a refresh stop pulse signal ref_stoppz in response to the stop command in addition to the refresh pulse signal refpz in response to the background refresh command.

リフレッシュ状態コントロール回路1191Bは,リフレッシュパルス信号refpzに応答してリフレッシュ状態信号ref_statezをHレベルにセットし,リフレッシュストップパルス信号ref_stoppzに応答してリフレッシュ状態信号ref_statezをLレベルにリセットする。このリフレッシュ状態信号ref_statezにより,リフレッシュコントロール回路1191のリフレッシュ開始と停止とを制御する。また,リフレッシュコントロール回路1191は,バースト長回数のリフレッシュサイクルの終了を示すリフレッシュバーストエンド信号rb_endzにより,バースト長回数のリフレッシュサイクルが完了するときも,前述の通りリフレッシュ動作を終了させる。   The refresh state control circuit 1191B sets the refresh state signal ref_statez to H level in response to the refresh pulse signal refpz, and resets the refresh state signal ref_statez to L level in response to the refresh stop pulse signal ref_stoppz. This refresh state signal ref_statez controls the refresh control circuit 1191 to start and stop refreshing. The refresh control circuit 1191 also ends the refresh operation as described above even when the refresh cycle of the burst length is completed by the refresh burst end signal rb_endz indicating the end of the refresh cycle of the burst length.

図132は,リフレッシュ状態コントロール回路の回路図である。図132(A)は,バックグランドリフレッシュコマンドBRENとアドレス端子の信号とにより停止コマンドが与えられる例である。また,図132(B)は,プリチャージコマンドが停止コマンドとして与えられる例である。これらに内蔵されるRSフリップフロップFF2は,図125,126のRSフリップフロップFF2に対応し,リフレッシュ状態かリフレッシュ停止状態かを示すリフレッシュ状態信号ref_statezを制御する。   FIG. 132 is a circuit diagram of the refresh state control circuit. FIG. 132A shows an example in which a stop command is given by a background refresh command BREN and an address terminal signal. FIG. 132B shows an example in which a precharge command is given as a stop command. The RS flip-flop FF2 incorporated in these corresponds to the RS flip-flop FF2 in FIGS. 125 and 126, and controls the refresh state signal ref_statez indicating the refresh state or the refresh stop state.

いずれのリフレッシュ状態コントロール回路1191Bにおいても,RSフリップフロップFF2は,リフレッシュパルス信号refpz=Hでセットされてリフレッシュ状態信号ref_statez=Hとし,リフレッシュバーストエンド信号rb_endz<#>=H且つリフレッシュプリチャージパルス信号ref_prepz=Hに応答して,NANDゲート1321によりリセットされてリフレッシュ状態信号ref_statez=Lとする。ここまでは,通常のリフレッシュバースト動作である。   In any refresh state control circuit 1191B, the RS flip-flop FF2 is set with the refresh pulse signal refpz = H to set the refresh state signal ref_statez = H, the refresh burst end signal rb_endz <#> = H, and the refresh precharge pulse signal. In response to ref_prepz = H, the NAND gate 1321 resets the refresh state signal ref_statez = L. Up to this point, the normal refresh burst operation is performed.

そして,図132(A)では,停止コマンドにより生成されるリフレッシュストップパルス信号ref_stoppz=Hに応答して,インバータ1322を経由して,RSフリップフロップFF2がリセットされ,リフレッシュ状態信号ref_statez=Lとなる。この場合は,リフレッシュ対象バンク内のRSフリップフロップFF2のみがセット状態(リフレッシュ状態,ref_statez=H)になっているので,メモリ装置内の共通のリフレッシュストップパルス信号ref_stoppz=Hに応答して,リフレッシュ対象バンク内のRSフリップフロップFF2のみがリセットされる。   In FIG. 132 (A), in response to the refresh stop pulse signal ref_stoppz = H generated by the stop command, the RS flip-flop FF2 is reset via the inverter 1322, and the refresh state signal ref_statez = L. . In this case, since only the RS flip-flop FF2 in the refresh target bank is in the set state (refresh state, ref_statez = H), the refresh is performed in response to the common refresh stop pulse signal ref_stoppz = H in the memory device. Only the RS flip-flop FF2 in the target bank is reset.

一方,図132(B)では,プリチャージコマンドに応答して生成されるプリチャージパルス信号prepz=Hに応答して,リフレッシュバンク選択信号ref_bnkz<#>=Hにより選択中のバンクのみ,RSフリップフロップFF2がリセットされる。通常の動作サイクル中では,リフレッシュバンク選択信号ref_bnkz<#>=Lであるので,プリチャージコマンドによりRSフリップフロップFF2がリセットされることはない。   On the other hand, in FIG. 132 (B), only the bank selected by the refresh bank selection signal ref_bnkz <#> = H in response to the precharge pulse signal prepz = H generated in response to the precharge command is RS flip-flop. FF2 is reset. During the normal operation cycle, the refresh bank selection signal ref_bnkz <#> = L, so the RS flip-flop FF2 is not reset by the precharge command.

図133は,コア制御回路のタイミングコントロール回路1190とリフレッシュコントロール回路1191の回路図である。図125の回路図と異なるのは,図132のリフレッシュ状態コントロール回路1191BのRSフリップフロップFF2に加えて,リフレッシュ動作中のアクティブ状態とプリチャージ状態とを管理するRSフリップフロップFF3が設けられ,そのRSフリップフロップFF3がリフレッシュアクティブ状態信号ref_raszを生成する。そして,ANDゲート1332は,リフレッシュアクティブ状態信号ref_rasz=Hに基づき,リフレッシュ状態信号ref_statezの状態にかかわらず,リフレッシュサイクル中のプリチャージを指示するリフレッシュプリチャージパルス信号ref_prepzを出力する。このリフレッシュアクティブ状態信号ref_raszは,リフレッシュ中は,アクティブ状態信号raszと同じ動作になる。   FIG. 133 is a circuit diagram of the timing control circuit 1190 and the refresh control circuit 1191 of the core control circuit. 125 is different from the circuit diagram of FIG. 125 in that in addition to the RS flip-flop FF2 of the refresh state control circuit 1191B of FIG. 132, an RS flip-flop FF3 for managing the active state and the precharge state during the refresh operation is provided. The RS flip-flop FF3 generates a refresh active state signal ref_rasz. Then, the AND gate 1332 outputs a refresh precharge pulse signal ref_prepz instructing precharge during the refresh cycle based on the refresh active state signal ref_rasz = H regardless of the state of the refresh state signal ref_statez. The refresh active state signal ref_rasz operates in the same manner as the active state signal rasz during refresh.

さらに,図125と異なるのは,調停回路1334が,プリチャージ開始を指示するイコライズ信号eqlonz=Hから遅延時間DELAY-5後のタイミングと,停止コマンドまたはプリチャージコマンドによりリフレッシュ状態信号ref_statez=Lのタイミングとを監視し,リフレッシュ状態信号ref_statez=Hの時は,新たなリフレッシュサイクル開始を指示するインターナルリフレッシュパルス信号int_refpz=Hを出力し,リフレッシュ状態信号ref_statez=Lになると,新たなリフレッシュサイクル開始を指示するインターナルリフレッシュパルス信号int_refpz=Hを出力しない。   125 differs from FIG. 125 in that the arbitration circuit 1334 sets the refresh state signal ref_statez = L by the timing after the delay time DELAY-5 from the equalization signal eqlonz = H instructing the start of precharge and the stop command or the precharge command. When the refresh state signal ref_statez = H, an internal refresh pulse signal int_refpz = H is output to instruct the start of a new refresh cycle. When the refresh state signal ref_statez = L, a new refresh cycle starts. The internal refresh pulse signal int_refpz = H is not output.

図134は,コア制御回路のタイミングコントロール回路1190とリフレッシュコントロール回路1191の別の回路図である。ここでは,図133のANDゲート1333に代えて,発振器1260を設けた例であり,図126の例に対応する。図126と同様に,発振器1260は,リフレッシュ状態信号ref_statez=Hの時にイネーブル状態になり,次のリフレッシュサイクル開始を指示するインターナルリフレッシュパルス信号int_refpz=Hを出力する。発振器は,リフレッシュ状態信号ref_statez=Lの時にディセーブル状態になる。そして,調停回路1334は,発振器の出力とリフレッシュ状態信号ref_statezのタイミングを監視し,リフレッシュ状態信号ref_statez=Hの間は発振器出力を通過させ,リフレッシュ状態信号ref_statez=Lになると発振器出力の通過を禁止する。   FIG. 134 is another circuit diagram of the timing control circuit 1190 and the refresh control circuit 1191 of the core control circuit. Here, instead of the AND gate 1333 in FIG. 133, an oscillator 1260 is provided, which corresponds to the example in FIG. Similarly to FIG. 126, the oscillator 1260 is enabled when the refresh state signal ref_statez = H, and outputs an internal refresh pulse signal int_refpz = H instructing the start of the next refresh cycle. The oscillator is disabled when the refresh state signal ref_statez = L. The arbitration circuit 1334 monitors the timing of the output of the oscillator and the refresh state signal ref_statez, passes the oscillator output during the refresh state signal ref_statez = H, and prohibits the passage of the oscillator output when the refresh state signal ref_statez = L. To do.

図135は,図133の動作を示すタイミングチャート図である。図133,図134のタイミングコントロール回路1190及びリフレッシュコントロール回路1191の動作は,次のとおりである。バックグランドリフレッシュコマンドBRENによりリフレッシュパルス信号refpz=Hに応答して,RSフリップフロップFF1とFF3とがセットされ,アクティブ状態信号raszとリフレッシュアクティブ状態信号ref_raszが共にHレベルになる。これに応答して,ワード線,センスアンプが駆動されてアクティブ動作が行われる。   FIG. 135 is a timing chart showing the operation of FIG. The operations of the timing control circuit 1190 and the refresh control circuit 1191 in FIGS. 133 and 134 are as follows. In response to the refresh pulse signal refpz = H by the background refresh command BREN, the RS flip-flops FF1 and FF3 are set, and both the active state signal rasz and the refresh active state signal ref_rasz become H level. In response to this, the word line and the sense amplifier are driven to perform an active operation.

そして,アクティブ動作が完了すると,センスアンプ活性化信号saonz=Hに応答して遅延時間DELAY-4の後に,リフレッシュプリチャージパルス信号ref_prepz=Hが出力され,RSフリップフロップFF1,FF3がリセットされ,アクティブ状態信号raszとリフレッシュアクティブ状態信号ref_raszが共にLレベルになる。これにより,プリチャージ動作が開始する。プリチャージ動作を開始するイコライズ信号eqlonz=Hから遅延時間DELAY-5後に,次のリフレッシュサイクル開始を指示するインターナルリフレッシュパルス信号int_refpz=Hが出力され,次のリフレッシュサイクルが始まる。   When the active operation is completed, the refresh precharge pulse signal ref_prepz = H is output after the delay time DELAY-4 in response to the sense amplifier activation signal saonz = H, the RS flip-flops FF1, FF3 are reset, Both the active state signal rasz and the refresh active state signal ref_rasz become L level. As a result, the precharge operation starts. After the delay time DELAY-5 from the equalization signal eqlonz = H for starting the precharge operation, an internal refresh pulse signal int_refpz = H for instructing the start of the next refresh cycle is output, and the next refresh cycle starts.

そして,3回目のリフレッシュサイクルのアクティブ動作中に停止コマンドSTOPが入力する。これに応答して,リフレッシュストップパルス信号Ref_stoppz=Hがコマンドデコーダから出力され,リフレッシュ状態コントロール回路1191Bは,リフレッシュ状態信号ref_statez=Lを出力する。そして,3回目のリフレッシュサイクルのアクティブ動作の終了を示すタイミングである,センスアンプ活性化信号saonz=Hから遅延時間DELAY-4後のタイミングで,ANDゲート1332は,リフレッシュアクティブ状態信号ref_rasz=Hに基づいて,プリチャージ開始を指示するリフレッシュプリチャージパルス信号ref_prepz=Hを出力する。これにより,3回目のリフレッシュサイクルのプリチャージ動作は確実に実行される。   Then, the stop command STOP is input during the active operation of the third refresh cycle. In response to this, the refresh stop pulse signal Ref_stoppz = H is output from the command decoder, and the refresh state control circuit 1191B outputs the refresh state signal ref_statez = L. The AND gate 1332 sets the refresh active state signal ref_rasz = H at the timing after the delay time DELAY-4 from the sense amplifier activation signal saonz = H, which is the timing indicating the end of the active operation of the third refresh cycle. Based on this, a refresh precharge pulse signal ref_prepz = H for instructing the start of precharge is output. Thereby, the precharge operation of the third refresh cycle is surely executed.

リフレッシュプリチャージパルス信号ref_prepz=Hに応答して,RSフリップフロップFF1,FF3はリセットされ,イコライズ信号eqlonz=Hとなってプリチャージ動作が始まる。そして,それから遅延時間DELAY-5後のタイミングで,調停回路1334は,リフレッシュ状態信号ref_statez=Lに基づいて,次のリフレッシュサイクル開始を指示するインターナルリフレッシュパルス信号int_refpz=Hの出力を行わない。   In response to the refresh precharge pulse signal ref_prepz = H, the RS flip-flops FF1 and FF3 are reset, and the equalize signal eqlonz = H and the precharge operation starts. Then, at the timing after the delay time DELAY-5, the arbitration circuit 1334 does not output the internal refresh pulse signal int_refpz = H instructing the start of the next refresh cycle based on the refresh state signal ref_statez = L.

このように,上記のコア制御回路によれば,リフレッシュ状態信号ref_statezとリフレッシュアクティブ状態信号ref_raszとを利用して,任意のタイミングで入力する停止コマンドSTOPが発生したら,動作中のリフレッシュサイクルのプリチャージ動作を確実に完了できるようにし,停止コマンドSTOP後に新たなリフレッシュサイクルに入ることを禁止できるようにしている。   As described above, according to the above core control circuit, when the stop command STOP input at an arbitrary timing is generated using the refresh state signal ref_statez and the refresh active state signal ref_rasz, the precharge of the refresh cycle in operation is performed. This ensures that the operation can be completed, and prohibits entering a new refresh cycle after the stop command STOP.

図136は,リフレッシュ停止機能を実現するコマンドデコーダの回路図である。コマンドデコーダ1080のノード1361は,/CS=L, /RAS=L, /CAS=L, /WE=Hの時にHレベルになる。そして,アドレス端子A<8>1360がLレベル,az<8>=Lの時は,ANDゲート1363によりリフレッシュパルス信号refpz=Hとなり,リフレッシュ動作が開始する。一方,アドレス端子A<8>1360がHレベル,az<8>=Hの時は,ANDゲート1362によりリフレッシュストップパルス信号ref_stoppz=Hとなり,リフレッシュ動作が停止する。   FIG. 136 is a circuit diagram of a command decoder for realizing the refresh stop function. The node 1361 of the command decoder 1080 becomes H level when / CS = L, / RAS = L, / CAS = L, / WE = H. When the address terminal A <8> 1360 is at the L level and az <8> = L, the refresh pulse signal refpz = H is set by the AND gate 1363 and the refresh operation is started. On the other hand, when the address terminal A <8> 1360 is at the H level and az <8> = H, the AND gate 1362 causes the refresh stop pulse signal ref_stoppz = H to stop the refresh operation.

[カウントダウン型のリフレッシュバースト制御]
次に,リフレッシュバースト制御をダウンカウンタを用いて行う実施の形態を説明する。前述の例では,リフレッシュバーストカウンタをリフレッシュサイクル毎にカウントアップしていったが,以下の実施の形態では,リフレッシュバーストカウンタをリフレッシュサイクル毎にカウントダウンし,リフレッシュバーストカウンタのカウント値が全て0になると,リフレッシュバースト動作を終了する。したがって,バックグランドリフレッシュ動作中の停止コマンドに応答して,リフレッシュバーストカウンタを全て0にリセットすることで,停止制御を行うことができる。
[Countdown refresh burst control]
Next, an embodiment in which refresh burst control is performed using a down counter will be described. In the above example, the refresh burst counter is counted up every refresh cycle. However, in the following embodiment, when the refresh burst counter is counted down every refresh cycle and all the count values of the refresh burst counter become zero, , The refresh burst operation is terminated. Therefore, the stop control can be performed by resetting all the refresh burst counters to 0 in response to the stop command during the background refresh operation.

また,このダウンカウンタを用いることにより,リフレッシュバースト動作が完了する前に,新たなバックグランドリフレッシュコマンドを入力して,新たなコマンドで指定されるバースト長にリフレッシュバーストカウンタを上書きする制御や,新たなコマンドで指定されるバースト長を現在のリフレッシュバーストカウンタに加算する制御などを行うことができる。   In addition, by using this down counter, before the refresh burst operation is completed, a new background refresh command is input, and the refresh burst counter is overwritten to the burst length specified by the new command. It is possible to perform control such as adding the burst length specified by a simple command to the current refresh burst counter.

さらに,以下の実施の形態では,リフレッシュアドレスカウンタがリフレッシュサイクル毎にインクリメントまたはデクリメントされるが,残りのリフレッシュアドレスを全て一括してリフレッシュさせるリフレッシュオールコマンドにより,リフレッシュアドレスカウンタを既存のカウント値から初期値まで戻す制御についても説明する。   Further, in the following embodiment, the refresh address counter is incremented or decremented every refresh cycle, but the refresh address counter is initialized from the existing count value by a refresh all command that refreshes all the remaining refresh addresses at once. Control for returning to a value will also be described.

図137は,カウントダウン型のリフレッシュバースト制御を行うコア制御回路1085の構成図である。この例では,バックグランドリフレッシュコマンドBRENとアドレス端子A<5>とによりリフレッシュ開始と停止とを制御する。   FIG. 137 is a block diagram of a core control circuit 1085 that performs countdown type refresh burst control. In this example, the refresh start and stop are controlled by the background refresh command BREN and the address terminal A <5>.

図131の回路図と同様に,コア制御回路1085は,コアに対するアクティブ動作とプリチャージ動作の制御信号を生成するタイミング制御回路1190と,バックグランドリフレッシュ動作におけるリフレッシュ制御を行うリフレッシュコントロール回路1191とを有する。さらに,コア制御回路は,リフレッシュパルス信号refpzに応答してアドレス端子A<3:0>から入力されるリフレッシュバースト長RBLを設定するリフレッシュバースト長レジスタ1231と,そのリフレッシュバースト長RBLをリフレッシュパルス信号refpzに応答して入力し,ダウン信号downzでダウンカウントし,停止コマンドに対応するアドレス端子A<5>=Hに応答してカウント値を全て0にするリフレッシュバースト長カウンタ1230とを有する。   Similar to the circuit diagram of FIG. 131, the core control circuit 1085 includes a timing control circuit 1190 for generating control signals for active operation and precharge operation for the core, and a refresh control circuit 1191 for performing refresh control in the background refresh operation. Have. Further, the core control circuit sets a refresh burst length register 1231 for setting the refresh burst length RBL input from the address terminal A <3: 0> in response to the refresh pulse signal refpz, and the refresh burst length RBL as a refresh pulse signal. A refresh burst length counter 1230 is input in response to refpz, counts down with a down signal downz, and resets all count values to 0 in response to an address terminal A <5> = H corresponding to a stop command.

バックグランドリフレッシュコマンドに対応するリフレッシュパルス信号refpzにより,リフレッシュバースト動作が始まり,リフレッシュサイクル毎にダウン信号downzが出力されてリフレッシュバースト長カウンタ1230がダウンカウントし,次のリフレッシュサイクルを指示するインターナルリフレッシュパルス信号int_refpzが出力される。リフレッシュコントロール回路1191は,リフレッシュバースト長カウンタのカウント値rblcz<3:0>が全て0(Lレベル)にならない間は,上記のリフレッシュサイクル動作を繰り返す。そして,このカウント値rblcz<3:0>が全て0(Lレベル)になると,リフレッシュコントロール回路1191は,新たなリフレッシュサイクルを指示するインターナルリフレッシュパルス信号int_refpzを出力しない。アドレス端子A<5>=Hによる停止コマンドにより,カウント値rblcz<3:0>が全て0(Lレベル)になると,同様にリフレッシュコントロール回路1191はインターナルリフレッシュパルス信号int_refpzを出力しない。   A refresh burst operation is started by a refresh pulse signal refpz corresponding to the background refresh command, a down signal downz is output every refresh cycle, the refresh burst length counter 1230 counts down, and an internal refresh instructing the next refresh cycle A pulse signal int_refpz is output. The refresh control circuit 1191 repeats the above refresh cycle operation while the count values rblcz <3: 0> of the refresh burst length counter are not all 0 (L level). When the count values rblcz <3: 0> are all 0 (L level), the refresh control circuit 1191 does not output the internal refresh pulse signal int_refpz that instructs a new refresh cycle. When the count value rblcz <3: 0> is all 0 (L level) by the stop command by the address terminal A <5> = H, the refresh control circuit 1191 similarly does not output the internal refresh pulse signal int_refpz.

図137のコア制御回路1085は,リフレッシュアドレス比較回路1370を有する。このリフレッシュアドレス比較回路1370は,リフレッシュオールコマンドREFALLに応答して,リフレッシュオール信号rblcallz=Hにし,リフレッシュアドレスカウンタ1083のリフレッシュアドレスref_az<13:0>を監視しリフレッシュアドレスref_az<13:0>=全てHを検出すると,リフレッシュオール信号reblcallz=Lにする。リフレッシュオールコマンドREFALLに応答して,リフレッシュパルス信号int_refpzが出力されてリフレッシュ動作が開始し,リフレッシュアドレスカウンタ1083のリフレッシュアドレスref_az<13:0>が全てHになるまでのリフレッシュオール信号rblcallz=Hの期間は,リフレッシュコントロール回路1191がインターナルリフレッシュパルス信号int_refpzを出力し続ける。そして,リフレッシュアドレスref_az<13:0>=全てHによりリフレッシュオール信号rblcallz=Lになると,リフレッシュコントロール回路1191はインターナルリフレッシュパルス信号int_refpzの出力を停止し,それ以上のリフレッシュサイクルは発生しない。なお,リフレッシュアドレスカウンタ1083は,センスアンプ活性化信号saonzに応答してリフレッシュアドレスref_az<13:0>をカウントダウンする。このセンスアンプ活性化信号saonzに代えて,インターナルリフレッシュパルス信号int_refpzでカウントダウンしてもよい。   The core control circuit 1085 in FIG. 137 has a refresh address comparison circuit 1370. In response to the refresh all command REFALL, the refresh address comparison circuit 1370 sets the refresh all signal rblcallz = H, monitors the refresh address ref_az <13: 0> of the refresh address counter 1083, and refresh address ref_az <13: 0> = When all H are detected, the refresh all signal reblcallz = L. In response to the refresh all command REFALL, the refresh pulse signal int_refpz is output, the refresh operation starts, and the refresh all signal rblcallz = H until all the refresh addresses ref_az <13: 0> of the refresh address counter 1083 become H. During the period, the refresh control circuit 1191 continues to output the internal refresh pulse signal int_refpz. When the refresh address ref_az <13: 0> = all H and the refresh all signal rblcallz = L, the refresh control circuit 1191 stops outputting the internal refresh pulse signal int_refpz and no further refresh cycle occurs. The refresh address counter 1083 counts down the refresh address ref_az <13: 0> in response to the sense amplifier activation signal saonz. Instead of the sense amplifier activation signal saonz, the internal refresh pulse signal int_refpz may be used to count down.

図138は,リフレッシュバースト長レジスタ1231に設定されるリフレッシュバースト長と,アドレス端子A<3:0>との対応を示す真理値表である。アドレス端子A<3:0>の値がそのままリフレッシュバースト長としてレジスタ1231に設定される。   FIG. 138 is a truth table showing the correspondence between the refresh burst length set in the refresh burst length register 1231 and the address terminals A <3: 0>. The value of the address terminal A <3: 0> is set in the register 1231 as the refresh burst length as it is.

図139は,カウントダウン型のリフレッシュバースト制御を行うコア制御回路1085の構成図である。この回路では,リフレッシュバースト長カウンタ1230が,停止コマンドREFSTOPに応答してALL=0にリセットされる。それ以外は,図137の回路図と同じである。   FIG. 139 is a configuration diagram of the core control circuit 1085 that performs countdown type refresh burst control. In this circuit, the refresh burst length counter 1230 is reset to ALL = 0 in response to the stop command REFSTOP. The rest is the same as the circuit diagram of FIG.

図140は,コア制御回路1085内のタイミングコントロール回路1190とリフレッシュコントロール回路1191の回路図である。タイミングコントロール回路1190は,前述と同様に,通常動作時のアクティブパルス信号actpz,バックグランドリフレッシュ動作時のリフレッシュパルス信号refpz,リフレッシュバースト動作中のインターナルリフレッシュパルス信号int_refpz,それぞれに応答してセットされるRSフリップフロップFF1を有する。フリップフロップFF1がセットされると,アクティブ状態信号rasz<#>などが出力され,コアがアクティブ動作する。   FIG. 140 is a circuit diagram of the timing control circuit 1190 and the refresh control circuit 1191 in the core control circuit 1085. As described above, the timing control circuit 1190 is set in response to the active pulse signal actpz during normal operation, the refresh pulse signal refpz during background refresh operation, and the internal refresh pulse signal int_refpz during refresh burst operation. RS flip-flop FF1. When the flip-flop FF1 is set, an active state signal rasz <#> or the like is output, and the core performs active operation.

そして,リフレッシュコントロール回路1191は,アクティブ状態信号rasz<#>がLレベルになってから遅延時間DELAY-6後にリフレッシュインターバル信号refitvalx=Hにし,次のリフレッシュサイクルを指示するインターナルリフレッシュパルス信号int_refpzを出力する。また,リフレッシュコントロール回路1191は,ワード線駆動信号wlonz<#>=Hに応答して,遅延時間DELAY-7のパルス幅のダウン信号downz=Hを出力し,リフレッシュバースト長カウンタ1230のカウント値をカウントダウンする。   Then, the refresh control circuit 1191 sets the refresh interval signal refitvalx = H after the delay time DELAY-6 after the active state signal rasz <#> becomes L level, and generates an internal refresh pulse signal int_refpz for instructing the next refresh cycle. Output. Further, the refresh control circuit 1191 outputs a down signal downz = H having a pulse width of the delay time DELAY-7 in response to the word line drive signal wlonz <#> = H, and the count value of the refresh burst length counter 1230 is output. Count down.

NANDゲート1400の出力は,リフレッシュバースト長カウント値rblcz<3:0>=全てL,リフレッシュオール信号rblcallz=LのときにLレベルになり,ANDゲート1401を介してインターナルリフレッシュパルス信号int_refpzの出力が禁止される。通常状態では,リフレッシュオール信号rblcallz=Lであるので,リフレッシュバースト動作中にリフレッシュバースト長カウント値rblcz<3:0>=全てLになると,インターナルリフレッシュパルス信号int_refpzの出力が禁止される。また,リフレッシュオールコマンドに対応するリフレッシュオール信号rblcallz=Hの間は,リフレッシュバースト長カウント値rblcz<3:0>にかかわらずインターナルリフレッシュパルス信号int_refpzが出力される。   The output of the NAND gate 1400 becomes the L level when the refresh burst length count value rblcz <3: 0> = all L and the refresh all signal rblcallz = L, and the internal refresh pulse signal int_refpz is output via the AND gate 1401. Is prohibited. Since the refresh all signal rblcallz = L in the normal state, the output of the internal refresh pulse signal int_refpz is prohibited when the refresh burst length count value rblcz <3: 0> = all L during the refresh burst operation. During the refresh all signal rblcallz = H corresponding to the refresh all command, the internal refresh pulse signal int_refpz is output regardless of the refresh burst length count value rblcz <3: 0>.

なお,図140中のアドレス端子A<10>は,SDRAMが有する全バンクプリチャージ動作を指令する信号であり,RSフリップフロップFF1をリセットしてプリチャージ動作を制御する。上記の回路の具体的な動作は後で詳述する。   Note that an address terminal A <10> in FIG. 140 is a signal for instructing an all-bank precharge operation of the SDRAM, and resets the RS flip-flop FF1 to control the precharge operation. The specific operation of the above circuit will be described in detail later.

図141,図142は,リフレッシュバースト長レジスタ1231とリフレッシュバースト長カウンタ1230の回路図である。図141は,停止コマンドがバックグランドリフレッシュコマンドBRENとアドレス端子A<5>で入力される例であり,図142は,停止コマンドが専用のコマンドREFSTOPで入力される例である。それ以外は同じである。   141 and 142 are circuit diagrams of the refresh burst length register 1231 and the refresh burst length counter 1230. FIG. FIG. 141 is an example in which a stop command is input at the background refresh command BREN and the address terminal A <5>, and FIG. 142 is an example in which the stop command is input by a dedicated command REFSTOP. The rest is the same.

リフレッシュバースト長レジスタ1231は,リフレッシュパルス信号refpzに応答して,ラッチ回路1410,1412にアドレス端子A<3:0>からのリフレッシュバースト長RBLを取り込む。ゲート1411,1413は,通常ダウン信号downzとセルフリフレッシュモード信号srefzとが共にLレベルであるので,ラッチした値をそのままリフレッシュバースト長レジスタ値rblrz<3:0>として出力する。また,リフレッシュバースト長レジスタ1231は,SDRAMの従来のリフレッシュ動作を指令するセルフリフレッシュ信号srefz=Hに応答して,レジスタ値rblrz<3:0>=0001にする。   The refresh burst length register 1231 fetches the refresh burst length RBL from the address terminal A <3: 0> into the latch circuits 1410 and 1412 in response to the refresh pulse signal refpz. Since the normal down signal downz and the self-refresh mode signal srefz are both at the L level, the gates 1411 and 1413 output the latched value as it is as the refresh burst length register value rblrz <3: 0>. Further, the refresh burst length register 1231 sets the register value rblrz <3: 0> = 0001 in response to the self-refresh signal srefz = H commanding the conventional refresh operation of the SDRAM.

リフレッシュバースト長カウンタ1230は,リフレッシュパルス信号refpz=Hに応答して,レジスタ値rblrz<3:0>を取り込み,ダウン信号downz=Hに応答してダウンカウントするダウンカウンタ1414を有する。また,ダウンカウンタ1414は,停止コマンドに対応するリフレッシュパルス信号refpz=Hとアドレス端子A<5>=Hに応答して(図142の例ではリフレッシュストップコマンドREFSTOPに応答して),rblcz<3:0>=全てLにリセットされる。   The refresh burst length counter 1230 has a down counter 1414 that takes in the register value rblrz <3: 0> in response to the refresh pulse signal refpz = H and counts down in response to the down signal downz = H. Further, the down counter 1414 responds to the refresh pulse signal refpz = H corresponding to the stop command and the address terminal A <5> = H (in response to the refresh stop command REFSTOP in the example of FIG. 142), and rblcz <3 : 0> = all reset to low.

図143は,リフレッシュアドレスカウンタ1083とリフレッシュアドレス比較回路1370の回路図である。リフレッシュアドレスカウンタ1083は,14ビットカウンタであり,リフレッシュバンク選択信号ref_bnkz<#>=Hで且つセンスアンプ活性化信号saonz<#>=Hに応答して,リフレッシュアドレスref_az<13:0>をカウントダウンする。   FIG. 143 is a circuit diagram of the refresh address counter 1083 and the refresh address comparison circuit 1370. The refresh address counter 1083 is a 14-bit counter that counts down the refresh address ref_az <13: 0> in response to the refresh bank selection signal ref_bnkz <#> = H and the sense amplifier activation signal saonz <#> = H. To do.

リフレッシュアドレス比較回路1370は,リフレッシュオールコマンドREFALLに応答してセットされるRSフリップフロップFF4と,リフレッシュアドレスref_az<13:0>=全てHを検出するNANDゲート群1432とを有する。通常状態ではRSフリップフロップFF4はリセットされてノード1430はHレベルであり,リフレッシュオール信号rblcallz=Lである。そして,リフレッシュオールコマンドREFALLに応答してRSフリップフロップFF4がセットされ,ノード1430はLレベルになり,リフレッシュオール信号rblcallz=Hになる。rblcallz=Hの間はリフレッシュコントロール回路1191によりリフレッシュ動作が繰り返され,リフレッシュアドレスカウンタ1083がセンスアンプ活性化信号saonz=Hのたびにダウンカウントされる。リフレッシュアドレスref_az<13:0>が全てLから全てHになると,NAND群1432がそれを検出し,ノード1431をHレベルにし,リフレッシュオール信号rblcallz=Lにする。これに応答して,リフレッシュコントロール回路1191はリフレッシュ動作を停止し,RSフリップフロップFF4はリセットされる。これによりリフレッシュアドレスカウンタ1083内の残りのアドレスを全てリフレッシュさせるリフレッシュオール動作が終了する。   The refresh address comparison circuit 1370 has an RS flip-flop FF4 that is set in response to the refresh all command REFALL, and a NAND gate group 1432 that detects all the refresh addresses ref_az <13: 0> = H. In the normal state, the RS flip-flop FF4 is reset, the node 1430 is at the H level, and the refresh all signal rblcallz = L. In response to the refresh all command REFALL, the RS flip-flop FF4 is set, the node 1430 becomes L level, and the refresh all signal rblcallz = H. While rblcallz = H, the refresh operation is repeated by the refresh control circuit 1191, and the refresh address counter 1083 is counted down every time the sense amplifier activation signal saonz = H. When all the refresh addresses ref_az <13: 0> change from L to H, the NAND group 1432 detects it, sets the node 1431 to the H level, and sets the refresh all signal rblcallz = L. In response to this, the refresh control circuit 1191 stops the refresh operation, and the RS flip-flop FF4 is reset. Thus, the refresh all operation for refreshing all the remaining addresses in the refresh address counter 1083 is completed.

図144は,カウントダウン型のコア制御回路のRBL=3の場合のタイミングチャート図である。バックグランドリフレッシュコマンドBRENに応答してリフレッシュパルス信号refpz=Hが生成され,それに応答して,図141,142のレジスタ1231,カウンタ1230がリセットされて,リフレッシュバースト長レジスタ値rblrz<3:0>,リフレッシュバースト長カウンタ値rblcz<3:0>が共に0011bにセットされる。rblcz<3:0>=0011bにより,図140のリフレッシュコントロール回路1191のNAND1400の出力がLからHになり,インターナルリフレッシュパルス信号int_refpz=Hを出力する。また,図140のタイミングコントロール回路1190のRSフリップフロップFF1がセットされて,アクティブ状態信号raszがHレベルになり,リフレッシュコントロール回路1191がANDゲート1402を経由してリフレッシュインターバル信号refitvalx=Lにして,インターナルリフレッシュパルス信号int_refpz=Lになる。   FIG. 144 is a timing chart when the countdown type core control circuit has RBL = 3. In response to the background refresh command BREN, a refresh pulse signal refpz = H is generated, and in response, the register 1231 and the counter 1230 in FIGS. 141 and 142 are reset, and the refresh burst length register value rblrz <3: 0> , Refresh burst length counter value rblcz <3: 0> are both set to 0011b. With rblcz <3: 0> = 0011b, the output of the NAND 1400 of the refresh control circuit 1191 in FIG. 140 changes from L to H, and the internal refresh pulse signal int_refpz = H is output. Further, the RS flip-flop FF1 of the timing control circuit 1190 in FIG. 140 is set, the active state signal rasz becomes H level, the refresh control circuit 1191 sets the refresh interval signal refitvalx = L via the AND gate 1402, The internal refresh pulse signal int_refpz = L.

そして,コアがアクティブ動作され,センスアンプ活性化信号saonz=Hに応答して,リフレッシュコントロール回路1191が,ANDゲート1430を介して,ダウン信号downz=Hを出力する。これに応答して,図141,142のリフレッシュバースト長カウンタ1230が,カウント値rblcz<3:0>をカウントダウンする。リフレッシュコントロール回路1191は,アクティブ状態信号raszがLレベルになってから遅延時間DELAY-6後にリフレッシュインターバル信号refitvalx=Hにし,新たなインターナルリフレッシュパルス信号int_refpzを出力する。   Then, the core is activated, and the refresh control circuit 1191 outputs the down signal downz = H via the AND gate 1430 in response to the sense amplifier activation signal saonz = H. In response to this, the refresh burst length counter 1230 of FIGS. 141 and 142 counts down the count value rblcz <3: 0>. The refresh control circuit 1191 sets the refresh interval signal refitvalx = H after the delay time DELAY-6 after the active state signal rasz becomes L level, and outputs a new internal refresh pulse signal int_refpz.

そして,上記のリフレッシュサイクルが3回繰り返されると,リフレッシュバースト長カウンタのカウント値rblcz<3:0>=0000bになり,リフレッシュコントロール回路1191のNANDゲート1400の出力がLレベルになり,ANDゲート1401によりそれ以降のインターナルリフレッシュパルス信号int_refpzは出力されない。これで,バースト長3のリフレッシュ動作が終了する。   When the above refresh cycle is repeated three times, the refresh burst length counter count value rblcz <3: 0> = 0000b, the output of the NAND gate 1400 of the refresh control circuit 1191 becomes L level, and the AND gate 1401 Therefore, the subsequent internal refresh pulse signal int_refpz is not output. This completes the refresh operation with a burst length of 3.

図145は,カウントダウン型のコア制御回路のリフレッシュ停止動作のタイミングチャート図である。この例では,リフレッシュバースト長RBL=3のリフレッシュ動作中に停止コマンドによりリフレッシュ動作が停止する。リフレッシュ開始コマンドがバックグランドリフレッシュコマンドBRENとアドレス端子A<5>=Lにより入力されると,リフレッシュ動作が開始する。開始動作は,図144と同じである。そして,クロック番号7でリフレッシュ停止コマンドが,バックグランドリフレッシュコマンドBRENとアドレス端子A<5>=Hにより入力されると,リフレッシュバースト長カウンタ1230(図141)がリセットされ,そのカウント値rblcz<3:0>が0000bになる。これに応答して,リフレッシュコントロール回路1191のNANDゲート1400の出力がLレベルになり,それ以降のインターナルリフレッシュパルス信号int_refpzは出力されない。なお,リフレッシュサイクルのプリチャージは,タイミングコントロール回路1190により,通常動作と同様にして制御される。   FIG. 145 is a timing chart of the refresh stop operation of the countdown core control circuit. In this example, the refresh operation is stopped by the stop command during the refresh operation with the refresh burst length RBL = 3. When the refresh start command is input by the background refresh command BREN and the address terminal A <5> = L, the refresh operation starts. The starting operation is the same as in FIG. When a refresh stop command is input at clock number 7 using the background refresh command BREN and the address terminal A <5> = H, the refresh burst length counter 1230 (FIG. 141) is reset and its count value rblcz <3. : 0> becomes 0000b. In response to this, the output of the NAND gate 1400 of the refresh control circuit 1191 becomes L level, and the internal refresh pulse signal int_refpz thereafter is not output. Note that the precharge of the refresh cycle is controlled by the timing control circuit 1190 in the same manner as the normal operation.

図146は,カウントダウン型のコア制御回路のリフレッシュ停止動作のタイミングチャート図である。図145と異なり,リフレッシュ停止コマンドREFSTOPにより停止制御される。それ以外は図145と同じである。   FIG. 146 is a timing chart of the refresh stop operation of the countdown type core control circuit. Unlike FIG. 145, stop control is performed by a refresh stop command REFSTOP. The rest is the same as FIG.

図147は,カウントダウン型のコア制御回路のリフレッシュオール動作を示すタイミングチャート図である。リフレッシュオールコマンドREFALLに応答してREFALL=Hになり,リフレッシュアドレス比較回路1370(図143)のRSフリップフロップFF4がセットされ,ノード1430がLレベル,リフレッシュオール信号rblcallz=Hになる。それにより,リフレッシュコントロール回路1191(図140)のNANDゲート1400の出力がHレベルになり,インターナルリフレッシュパルス信号int_refpz=Hを出力し,リフレッシュサイクルが開始する。   FIG. 147 is a timing chart showing the refresh all operation of the countdown type core control circuit. In response to the refresh all command REFALL, REFALL = H is set, the RS flip-flop FF4 of the refresh address comparison circuit 1370 (FIG. 143) is set, the node 1430 becomes L level, and the refresh all signal rblcallz = H. As a result, the output of the NAND gate 1400 of the refresh control circuit 1191 (FIG. 140) becomes H level, the internal refresh pulse signal int_refpz = H is output, and the refresh cycle starts.

リフレッシュサイクル毎にリフレッシュアドレスカウンタ1083(図140)のリフレッシュアドレスref_az<13:0>をカウントダウンし,ref_az<13:0>=全てL(カウント値0000h)になりさらにref_az<13:0>=全てH(カウント値3FFFh)になると,NANDゲート群(図143)がそれを検出し,リフレッシュオール信号REFALL=Lになり,リフレッシュコントロール回路1191(図140)のNANDゲート1400がLレベルになり,その後のインターナルリフレッシュパルス信号int_refpzの出力が停止する。これによりリフレッシュアドレスの残り全てについてリフレッシュ動作が終了し,リフレッシュアドレスカウンタ1083のカウント値が全て1にリセットされた状態になる。   Every refresh cycle, the refresh address ref_az <13: 0> of the refresh address counter 1083 (FIG. 140) is counted down, ref_az <13: 0> = all L (count value 0000h), and ref_az <13: 0> = all When it becomes H (count value 3FFFh), the NAND gate group (FIG. 143) detects it, the refresh all signal REFALL = L, the NAND gate 1400 of the refresh control circuit 1191 (FIG. 140) becomes L level, and then The output of the internal refresh pulse signal int_refpz is stopped. As a result, the refresh operation is completed for all the remaining refresh addresses, and the count values of the refresh address counter 1083 are all reset to 1.

図148は,カウントダウン型のコア制御回路のリフレッシュコマンド再設定の動作を示すタイミングチャート図である。この図では,最初のバックグランドリフレッシュコマンドBRENでは,リフレッシュバースト長RBL=14(A<3:0>=1110b)が設定されてリフレッシュ動作が始まり,リフレッシュ動作毎にリフレッシュバースト長カウンタがカウントダウンされる。そして,リフレッシュバースト長カウンタ値rblcz<3:0>=0000bになる前に,更に2回目のコマンドBRENでリフレッシュバースト長RBL=2(A<3:0>=0010b)が入力され,その時のカウンタ値rblcz<3:0>=1011bに新たなリフレッシュバースト長RBL=2(A<3:0>=0010b)が加算されて,カウンタ値rblcz<3:0>=1101b(残り13回)になる。   FIG. 148 is a timing chart showing the refresh command resetting operation of the countdown type core control circuit. In this figure, in the first background refresh command BREN, the refresh burst length RBL = 14 (A <3: 0> = 1110b) is set and the refresh operation starts, and the refresh burst length counter is counted down for each refresh operation. . Before the refresh burst length counter value rblcz <3: 0> = 0000b, the refresh burst length RBL = 2 (A <3: 0> = 0010b) is further input by the second command BREN, and the counter at that time The new refresh burst length RBL = 2 (A <3: 0> = 0010b) is added to the value rblcz <3: 0> = 1011b, and the counter value rblcz <3: 0> = 11101b (13 remaining times) is obtained. .

このように,リフレッシュバースト制御において,新たなバックグランドリフレッシュコマンドによりリフレッシュバースト長を加算する機能を有することにより,メモリコントローラは,将来のバックグランドリフレッシュ動作のためにバックグランドリフレッシュコマンドを先行して発行することができる。   As described above, in the refresh burst control, the memory controller has a function of adding a refresh burst length by a new background refresh command, so that the memory controller issues a background refresh command in advance for a future background refresh operation. can do.

図149は,カウントダウン型のコア制御回路のリフレッシュコマンド再設定の動作を示すタイミングチャート図である。この例では,2回目のコマンドBRENでリフレッシュバースト長RBL=2(A<3:0>=0010b)が入力され,その時のカウンタ値rblcz<3:0>=1011bに代えて新たなリフレッシュバースト長RBL=2(A<3:0>=0010b)が上書きされ,カウンタ値rblcz<3:0>=0010b(残り2回)になる。   FIG. 149 is a timing chart showing the refresh command resetting operation of the countdown type core control circuit. In this example, the refresh burst length RBL = 2 (A <3: 0> = 0010b) is input by the second command BREN, and the new refresh burst length is used instead of the counter value rblcz <3: 0> = 1011b at that time. RBL = 2 (A <3: 0> = 0010b) is overwritten, and the counter value rblcz <3: 0> = 0010b (remaining twice).

このように,リフレッシュバースト制御において,新たなバックグランドリフレッシュコマンドによりリフレッシュバースト長を上書きする機能を有することにより,メモリコントローラは,一旦開始したバックグランドリフレッシュ動作を取り消して,新たなバックグランドリフレッシュ動作を開始させることができる。図148,149のような新たなバックグランドリフレッシュコマンドによりバースト長RBLを加算したり上書きしたりすることで,リフレッシュバースト動作が始まった後に,その内容を自由に変更することができ,メモリコントローラの制御のフレキシビリティを高めることができる。   As described above, the refresh burst control has a function of overwriting the refresh burst length with a new background refresh command, so that the memory controller cancels the background refresh operation once started and starts a new background refresh operation. Can be started. By adding or overwriting the burst length RBL with a new background refresh command as shown in FIGS. 148 and 149, the contents can be freely changed after the refresh burst operation starts, and the memory controller Control flexibility can be increased.

[アクティブとリフレッシュ連動制御]
次にアクティブとリフレッシュとを連動させる制御について説明する。上記してきた実施の形態では,通常メモリ動作のアクティブコマンドACTと,バックグランドリフレッシュ動作のコマンドBRENとは別々のコマンドであり,メモリコントローラはそれらのコマンドを別々の発行することで,メモリ装置に通常メモリ動作とバックグランドリフレッシュ動作とを実行させる。
[Active and refresh interlocking control]
Next, control for linking active and refresh will be described. In the embodiments described above, the normal memory operation active command ACT and the background refresh operation command BREN are separate commands, and the memory controller issues these commands separately to the normal memory device. The memory operation and the background refresh operation are executed.

それに対して,以下の実施の形態では,あらかじめモードレジスタなどにアクティブコマンドに連動してバックグランドリフレッシュ動作を実行するように設定することで,メモリ装置が,通常メモリ動作のアクティブコマンドの入力に応答して,選択バンクでの通常アクティブ動作に加えて,リフレッシュ対象バンクでのリフレッシュ動作を行う。このような機能を有することにより,メモリコントローラは,バックグランドリフレッシュコマンドを発行する必要はない。   In contrast, in the following embodiment, the memory device responds to the input of the active command for normal memory operation by setting the mode register or the like to execute the background refresh operation in conjunction with the active command in advance. Thus, in addition to the normal active operation in the selected bank, the refresh operation in the refresh target bank is performed. By having such a function, the memory controller does not need to issue a background refresh command.

図150は,アクティブとリフレッシュ連動制御を示すタイミングチャート図である。クロック番号2では,アクティブコマンドACTと共にバンクアドレスBA=2が入力され,それに応答して,メモリ装置は,バンクBANK2がアクティブ動作を実行するとともに,バンクBANK1でリフレッシュ動作を実行する。また,クロック番号4では,図中の表に示すとおり,アクティブコマンドACTと共にバンクアドレスBA=3が入力され,それに応答して,メモリ装置は,バンクBANK3でアクティブ動作を実行するとともに,バンクBANK0でリフレッシュ動作を実行する。   FIG. 150 is a timing chart showing active and refresh interlocking control. At clock number 2, the bank address BA = 2 is input together with the active command ACT, and in response to this, the memory device executes an active operation in the bank BANK2 and a refresh operation in the bank BANK1. At clock number 4, as shown in the table in the figure, bank address BA = 3 is input together with active command ACT, and in response to this, the memory device executes an active operation in bank BANK3 and in bank BANK0. Perform a refresh operation.

つまり,図中の表に示されるとおり,アクティブコマンドACTとともに入力されるバンクアドレスBA<1:0>の値に対応して,メモリ装置は特定のバンクでリフレッシュ動作を実行する。つまり,アクティブコマンドでバンクBANK0が選択されればバンクBANK3でリフレッシュ動作,アクティブコマンドでバンクBANK1が選択されればバンクBANK2でリフレッシュ動作,アクティブコマンドでバンクBANK2が選択されればバンクBANK1でリフレッシュ動作,そして,アクティブコマンドでバンクBANK3が選択されればバンクBANK0でリフレッシュ動作する。この組み合わせであれば,図117に示したいずれのメモリマッピング1170,1171のいずれであっても,水平アクセスに伴うアクティブコマンドで,水平アクセス対象でないバンクにバックグランドリフレッシュをさせることができる。   That is, as shown in the table in the figure, the memory device performs a refresh operation in a specific bank corresponding to the value of the bank address BA <1: 0> input together with the active command ACT. That is, if bank BANK0 is selected with the active command, refresh operation is performed with bank BANK3, if bank BANK1 is selected with the active command, refresh operation is performed with bank BANK2, and if bank BANK2 is selected with the active command, refresh operation is performed with bank BANK1. If the bank BANK3 is selected by the active command, the refresh operation is performed with the bank BANK0. With this combination, any of the memory mappings 1170 and 1171 shown in FIG. 117 can perform background refresh to a bank that is not subject to horizontal access by an active command accompanying horizontal access.

本実施の形態では,アクティブコマンドACTに応答して,1回のバックグランドリフレッシュ動作を実行する。したがって,リフレッシュバースト長RBL=1に固定される。   In the present embodiment, one background refresh operation is executed in response to the active command ACT. Therefore, the refresh burst length RBL = 1 is fixed.

図151は,アクティブとリフレッシュ連動制御におけるリフレッシュバンクデコーダの回路図である。リフレッシュバンクデコーダ1082内のANDゲート群1510は,モード値modez=Hの場合に,通常バンクデコーダが出力するバンク選択信号bnkz<#>=Hそれぞれに応答して,リフレッシュバンク選択信号ref_bnkz<#>=Hを出力する。通常アクティブ動作の選択バンクとリフレッシュ選択バンクとの関係は,図150の表に示される通りである。一方,ANDゲート群1510は,モード値modez=Lの場合は,リフレッシュバンク選択信号ref_bnkz<3:0>=全てLにして連携したリフレッシュ動作を禁止する。   FIG. 151 is a circuit diagram of a refresh bank decoder in active and refresh interlock control. When the mode value modez = H, the AND gate group 1510 in the refresh bank decoder 1082 responds to each of the bank selection signals bnkz <#> = H output from the normal bank decoder, and the refresh bank selection signal ref_bnkz <#>. = H is output. The relationship between the normally active operation selected bank and the refresh selected bank is as shown in the table of FIG. On the other hand, when the mode value modez = L, the AND gate group 1510 prohibits the refresh operation linked with the refresh bank selection signal ref_bnkz <3: 0> = L all.

モード値modez=H/Lは,あらかじめモードレジスタセットコマンドEMRSにより内蔵レジスタに設定される。または,所定の外部端子から入力される。よって,前述の例によれば,水平アクセスの場合にモード値modez=Hを設定して,アクティブコマンドACTに連携してバックグランドリフレッシュ動作を行わせ,矩形アクセスの場合はモード値modez=Lに設定して,バックグランドリフレッシュ動作を禁止することが望ましい。   The mode value modez = H / L is set in the internal register in advance by the mode register set command EMRS. Alternatively, it is input from a predetermined external terminal. Therefore, according to the above example, the mode value modez = H is set in the case of horizontal access, the background refresh operation is performed in conjunction with the active command ACT, and the mode value modez = L in the case of rectangular access. It is desirable to set to prohibit the background refresh operation.

図152は,アクティブとリフレッシュ連動制御におけるコア制御回路の回路図である。このコア制御回路1085は各バンク毎に設けられ,よって,バンク選択信号bnkz<#>,リフレッシュバンク選択信号ref_bnkz<#>により,バンク毎の制御が区別される。まず,選択バンク(bnkz<#>=H)では,タイミングコントロール回路1190のRSフリップフロップFF1は,NANDゲート1520を介して,アクティブパルス信号actpz=Hに応答してセットされ,アクティブ状態信号raszをHレベルにし,コアをアクティブ動作させる。   FIG. 152 is a circuit diagram of a core control circuit in active / refresh interlock control. The core control circuit 1085 is provided for each bank. Therefore, the control for each bank is distinguished by the bank selection signal bnkz <#> and the refresh bank selection signal ref_bnkz <#>. First, in the selected bank (bnkz <#> = H), the RS flip-flop FF1 of the timing control circuit 1190 is set in response to the active pulse signal actpz = H via the NAND gate 1520, and the active state signal rasz is set. Set to H level to activate the core.

一方,リフレッシュ選択バンク(ref_bnkz<#>=H)では,RSフリップフロップFF1は,NANDゲート1521を介して,アクティブパルス信号actpz=Hに応答してセットされ,アクティブ状態信号raszをHレベルにし,コアをアクティブ動作させる。同時に,リフレッシュコントロール回路1191内のRSフリップフロップFF3も,NANDゲート1522を介して,アクティブパルス信号actpz=Hに応答してセットされ,リフレッシュアクティブ状態信号ref_raszをHレベルにセットする。アクティブ状態信号raszをHレベルによりリフレッシュ動作が開始し,センスアンプ活性化信号saonz=Hに応答して,リフレッシュプリチャージパルス信号ref_prepz=Hにより,RSフリップフロップFF1がリセットされて,プリチャージ動作が行われる。同時に,RSフリップフロップFF3はリセットされる。   On the other hand, in the refresh selection bank (ref_bnkz <#> = H), the RS flip-flop FF1 is set in response to the active pulse signal actpz = H via the NAND gate 1521, and the active state signal rasz is set to H level. Activate the core. At the same time, the RS flip-flop FF3 in the refresh control circuit 1191 is also set through the NAND gate 1522 in response to the active pulse signal actpz = H, and sets the refresh active state signal ref_rasz to the H level. The refresh operation starts when the active state signal rasz is H level, and in response to the sense amplifier activation signal saonz = H, the RS flip-flop FF1 is reset by the refresh precharge pulse signal ref_prepz = H, and the precharge operation is started. Done. At the same time, the RS flip-flop FF3 is reset.

図153は,アクティブとリフレッシュ連動制御におけるアドレスラッチ回路の回路図である。この回路も各バンクに設けられている。アドレスラッチ回路1084は,選択バンク(bnkz<#>=H)では,アクティブパルス信号actpz=Hに応答してラッチ回路1200が外部アドレスaz<13:0>をラッチする。一方,リフレッシュ選択バンク(ref_bnkz<#>=H)では,アクティブパルス信号actpz=Hに応答してラッチ回路1200がリフレッシュアドレスカウンタ1083のリフレッシュアドレスref_az<13:0>をラッチする。また,通常のリフレッシュパルス信号refpz=Hに応答しても,ラッチ回路1200がリフレッシュアドレスref_az<13:0>をラッチする。それ以外は,図128と同じである。   FIG. 153 is a circuit diagram of an address latch circuit in active / refresh interlock control. This circuit is also provided in each bank. In the address latch circuit 1084, in the selected bank (bnkz <#> = H), the latch circuit 1200 latches the external address az <13: 0> in response to the active pulse signal actpz = H. On the other hand, in the refresh selection bank (ref_bnkz <#> = H), the latch circuit 1200 latches the refresh address ref_az <13: 0> of the refresh address counter 1083 in response to the active pulse signal actpz = H. Even in response to the normal refresh pulse signal refpz = H, the latch circuit 1200 latches the refresh address ref_az <13: 0>. The rest is the same as FIG.

以上の通り,通常のアクティブコマンドに応答して,あらかじめ設定されたバンクの組み合わせで,通常アクティブ動作とバックグランドリフレッシュ動作とが平行に実行される。   As described above, in response to the normal active command, the normal active operation and the background refresh operation are executed in parallel with a preset bank combination.

[リフレッシュブロック数による制御]
次に,本実施の形態におけるリフレッシュブロック数RBCによる制御について説明する。本実施の形態のバックグランドリフレッシュ動作では,リフレッシュサイクル数を規定するリフレッシュバースト長RBLに加えて,1回のリフレッシュサイクルで同時にアクティブ化されるブロック数(ワード線数)RBCを設定することができる。
[Control by the number of refresh blocks]
Next, the control by the refresh block number RBC in the present embodiment will be described. In the background refresh operation of this embodiment, in addition to the refresh burst length RBL that defines the number of refresh cycles, the number of blocks (number of word lines) RBC that are simultaneously activated in one refresh cycle can be set. .

リフレッシュブロック数RBCを大きくすることで,同時に多くのリフレッシュアドレスに対してリフレッシュを実行することができる。よって,バックグランドリフレッシュ可能な期間が短い場合には,リフレッシュブロック数RBCを大きく設定することが望ましい。一方で,リフレッシュブロック数RBCを大きくすると同時に多くのワード線でリフレッシュ動作が実行され,瞬間的な消費電力を増大させる。よって,バックグランドリフレッシュ可能な期間が長ければ,できるだけリフレッシュブロック数RBCを小さく設定することが望ましい。よって,メモリコントローラは,上記のバックグランドリフレッシュ可能期間や消費電力の条件に応じて,リフレッシュブロック数RBCを最適値に設定する。   By increasing the number of refresh blocks RBC, it is possible to execute refresh for many refresh addresses at the same time. Therefore, when the period in which the background refresh can be performed is short, it is desirable to set the refresh block number RBC large. On the other hand, at the same time as the number of refresh blocks RBC is increased, a refresh operation is performed on many word lines, increasing instantaneous power consumption. Therefore, if the period during which the background refresh is possible is long, it is desirable to set the refresh block number RBC as small as possible. Therefore, the memory controller sets the refresh block number RBC to an optimum value in accordance with the background refreshable period and the power consumption conditions.

図154は,バンク回路の構成図である。図108で説明したとおり,各バンク92は,リフレッシュアドレスカウンタ1083と,アドレスラッチ回路1084と,コア回路を構成するメモリセルアレイ1086Mとロウデコーダ1086Dとを有する。メモリセルアレイ1086Mは,メモリセルアレイMCA0-3とセンスアンプ列対SA00,01〜SA30,31で構成された4組のブロックRBLK0-3を有する。4組のブロックRBLK0-3はいずれもセンスアンプ列SAを有するので,同時にアクティブ化されてリフレッシュ動作を行うことができる。そして,モード設定値modez<1:0>により,リフレッシュアドレスカウンタ1083のカウント値REF_A<13:0>の上位2ビットの一方又は両方が縮退(反転,非反転アドレスいずれもHレベル)する。この縮退により,ロウデコーダ1086Dに入力されるロウアドレスRA<13:0>は,4ブロックRBLK0-3を同時に活性化する,2ブロックを同時に活性化する,1ブロックを活性化するのいずれかの動作を可能にするアドレスになる。   FIG. 154 is a configuration diagram of the bank circuit. As described with reference to FIG. 108, each bank 92 includes a refresh address counter 1083, an address latch circuit 1084, a memory cell array 1086M and a row decoder 1086D constituting a core circuit. The memory cell array 1086M has four sets of blocks RBLK0-3 each including a memory cell array MCA0-3 and sense amplifier column pairs SA00,01 to SA30,31. Since the four sets of blocks RBLK0-3 all have a sense amplifier array SA, they can be simultaneously activated to perform a refresh operation. Then, one or both of the upper 2 bits of the count value REF_A <13: 0> of the refresh address counter 1083 are degenerated (both inverted and non-inverted addresses are H level) by the mode setting value modez <1: 0>. As a result of this degeneration, the row address RA <13: 0> input to the row decoder 1086D activates the four blocks RBLK0-3 simultaneously, activates two blocks simultaneously, or activates one block. It becomes an address that enables operation.

図155は,リフレッシュブロック数に応じたコア内のメモリブロックの制御を示す図である。リフレッシュブロック数RBC=1(modez<1:0>=00)の場合は,バックグランドリフレッシュコマンドBRENに応答して,コア内のリフレッシュ対象のメモリブロックRBLK0のワード線WLが駆動されリフレッシュ動作が行われる。リフレッシュブロック数RBC=2(modez<1:0>=01)の場合は,バックグランドリフレッシュコマンドBRENに応答して,コア内のリフレッシュ対象の2つのメモリブロックRBLK0,2のワード線WLが駆動されリフレッシュ動作が行われる。そして,リフレッシュブロック数RBC=4(modez<1:0>=11)の場合は,バックグランドリフレッシュコマンドBRENに応答して,コア内のリフレッシュ対象の4つのメモリブロックRBLK0,1,2,3のワード線WLが駆動されリフレッシュ動作が行われる。   FIG. 155 is a diagram illustrating control of memory blocks in the core according to the number of refresh blocks. When the number of refresh blocks RBC = 1 (modez <1: 0> = 00), in response to the background refresh command BREN, the word line WL of the memory block RBLK0 to be refreshed in the core is driven to perform the refresh operation. Is called. When the number of refresh blocks RBC = 2 (modez <1: 0> = 01), the word lines WL of the two memory blocks RBLK0 and 2 to be refreshed in the core are driven in response to the background refresh command BREN. A refresh operation is performed. When the number of refresh blocks RBC = 4 (modez <1: 0> = 11), in response to the background refresh command BREN, the four memory blocks RBLK0,1,2,3 to be refreshed in the core The word line WL is driven and a refresh operation is performed.

図156は,アドレスラッチ回路の回路図である。図中の真理値表に示すとおり,モードレジスタに設定されるリフレッシュブロック数RBCを設定する信号modez<0>〜<1>により同時に活性化するワード線数が1,2,4のいずれになる。   FIG. 156 is a circuit diagram of the address latch circuit. As shown in the truth table in the figure, the number of word lines activated simultaneously by signals modez <0> to <1> for setting the number of refresh blocks RBC set in the mode register is 1, 2, or 4. .

アドレスラッチ回路1084は,14ビットのロウアドレスのうち,上位2ビットのアドレスの非反転信号と反転信号をラッチするラッチ群1564と,下位12ビットのアドレスをラッチするラッチ群1565とを有する。そして,ラッチ群1564は,アクティブパルス信号actpzに応答して,外部アドレスaz<13>,<12>の非反転信号とインバータ1566,1567による反転信号とをラッチする。同様に,ラッチ群1564は,リフレッシュパルス信号refpzに応答して,リフレッシュアドレスREF_A<13>,<12>の非反転信号とインバータ1568,1569による反転信号とをラッチする。ただし,モードレジスタの設定信号modez<0>,<1>に応じて,NANDゲート1560〜1563により,リフレッシュアドレスREF_A<13>,<12>の非反転信号と反転信号はともにHレベルに縮退される。これにより,複数のメモリブロックのワード線を同時に駆動することができる。   The address latch circuit 1084 has a latch group 1564 that latches the non-inverted signal and inverted signal of the upper 2 bits of the 14-bit row address, and a latch group 1565 that latches the lower 12 bits of the address. Then, in response to the active pulse signal actpz, the latch group 1564 latches the non-inverted signals of the external addresses az <13> and <12> and the inverted signals by the inverters 1566 and 1567. Similarly, the latch group 1564 latches the non-inverted signals of the refresh addresses REF_A <13> and <12> and the inverted signals by the inverters 1568 and 1569 in response to the refresh pulse signal refpz. However, in response to the mode register setting signals modez <0>, <1>, the NAND gates 1560 to 1563 reduce both the non-inverted signal and the inverted signal of the refresh address REF_A <13>, <12> to the H level. The Thereby, the word lines of a plurality of memory blocks can be driven simultaneously.

図157は,ロウデコーダ内のプリデコーダ回路の回路図である。プリデコーダ回路の一部を示す。このプリデコーダ回路は,上位2ビットのロウアドレスの非反転信号raz<12>,<13>と,反転信号rax<12>,<13>との組み合わせにより,4つのメモリブロックを選択するブロック選択信号rblkz<3:0>が生成される。このプリデコーダ回路にいよる動作が,図中の表に示されている。   FIG. 157 is a circuit diagram of a predecoder circuit in the row decoder. A part of the predecoder circuit is shown. This predecoder circuit selects the four memory blocks by combining the non-inverted signal raz <12>, <13> of the upper 2 bits row address and the inverted signals rax <12>, <13> A signal rblkz <3: 0> is generated. The operation of this predecoder circuit is shown in the table in the figure.

図156,図157の動作は次の通りである。   The operations of FIGS. 156 and 157 are as follows.

まず,RBC=1の場合は,modez<0>=modez<1>=0であり,
raz<13>はREF_A<13>と同相,rax<13>はREF_A<13>の逆相,
raz<12>はREF_A<12>と同相,rax<12>はREF_A<12>の逆相
となる。そして,プリデコーダ回路1086Dにより,4つのうちの1つのブロックRBLKが選択されて1本のワード線WLが活性化される。
First, when RBC = 1, modez <0> = modez <1> = 0,
raz <13> is in phase with REF_A <13>, rax <13> is the opposite phase of REF_A <13>
raz <12> is in phase with REF_A <12> and rax <12> is out of phase with REF_A <12>. Then, the predecoder circuit 1086D selects one of the four blocks RBLK and activates one word line WL.

次に,RBC=2の場合は,modez<0>=1,modez<1>=0であり,
raz<13>はHigh,rax<13>もHigh,raz<12>はREF_A<12>と同相,rax<12>はREF_A<12>の逆相
となる。そして,プリデコーダ回路1086Dにより,4つのうちの2つのブロックRBLKが選択されて2本のワード線WLが活性化される。
Next, when RBC = 2, modez <0> = 1, modez <1> = 0,
raz <13> is High, rax <13> is also High, raz <12> is in phase with REF_A <12>, and rax <12> is in reverse phase with REF_A <12>. Then, the predecoder circuit 1086D selects two of the four blocks RBLK and activates the two word lines WL.

最後に,RBC=4の場合は,modez<0>=1,modez<1>=1であり,
raz<13>はHigh,rax<13>もHigh,raz<13>はHigh,rax<13>もHigh
となる。そして,プリデコーダ回路1086Dにより,4つのうちの4つのRBLKが選択されて4本のワード線WLが活性化される。
Finally, if RBC = 4, modez <0> = 1, modez <1> = 1,
raz <13> is High, rax <13> is also High, raz <13> is High, rax <13> is also High
It becomes. Then, four of the four RBLKs are selected by the predecoder circuit 1086D and the four word lines WL are activated.

以上で,バックグランドリフレッシュ機能を有するメモリ装置の説明を終了する。次に,メモリ装置を制御してバックグランドリフレッシュ動作をさせるメモリコントローラについて説明する。   This is the end of the description of the memory device having the background refresh function. Next, a memory controller that controls the memory device to perform a background refresh operation will be described.

[バックグランドリフレッシュを制御するメモリコントローラ]
メモリ装置にバックグランドリフレッシュ機能を実行させるためには,メモリコントローラは,バックグランドリフレッシュコマンドBRENとリフレッシュバンク情報SAとリフレッシュバースト長RBLとをメモリ装置に与える必要がある。さらに,メモリコントローラは,リフレッシュブロック数RBCもメモリ装置に与えることが望まれる。そこで,以下,バックグランドリフレッシュを制御するメモリコントローラについて説明する。
[Memory controller that controls background refresh]
In order for the memory device to execute the background refresh function, the memory controller needs to provide the memory device with the background refresh command BREN, the refresh bank information SA, and the refresh burst length RBL. Further, it is desirable that the memory controller also provides the refresh block number RBC to the memory device. Therefore, a memory controller that controls background refresh will be described below.

図158は,バックグランドリフレッシュ機能を有するメモリシステムの構成図である。画像処理装置81は,二次元配列された画像データに対して水平アクセスや矩形アクセス要求をメモリコントローラ82に出力し,メモリコントローラ82はメモリ装置86にアクセス制御を行う。画像処理装置81は,アクセス要求信号REQとともにアクセスタイプ信号ATYP,画像アドレスADR,画像サイズ信号SIZE,リード・ライト信号RWXを,メモリコントローラ82に出力し,それに対してメモリコントローラ82はアクノリッジ信号ACKを返信する。また,ストローブ信号STBをアサートしながら書き込みデータまたは読み出しデータをデータバスDATAで転送する。   FIG. 158 is a configuration diagram of a memory system having a background refresh function. The image processing device 81 outputs a horizontal access or rectangular access request to the two-dimensionally arranged image data to the memory controller 82, and the memory controller 82 controls access to the memory device 86. The image processing device 81 outputs an access type signal ATYP, an image address ADR, an image size signal SIZE, and a read / write signal RWX together with an access request signal REQ to the memory controller 82, and the memory controller 82 receives an acknowledge signal ACK. Send back. Also, write data or read data is transferred by the data bus DATA while the strobe signal STB is asserted.

メモリコントローラ82は,画像処理装置81からのアクセス要求と種々の情報に基づいて,水平アクセスの場合にバックグランドリフレッシュコマンドとリフレッシュバンク情報SAとリフレッシュバースト長RBLとリフレッシュブロック数RBCとをメモリ装置86に出力し,更に,水平アクセスに対応するアクティブコマンドCMD,バンクアドレスBA,ロウアドレスRA,リード又はライトコマンドCMD,バンクアドレスBA,コラムアドレスCAを,メモリ装置86に出力する。また,矩形アクセスに対応する同様の信号をメモリ装置86に出力する。そして,メモリコントローラ82は,ライトアクセスではメモリ装置86に書き込みデータDQを出力し,リードアクセスではメモリ装置86から読み出しデータDQを入力する。   Based on the access request from the image processing device 81 and various information, the memory controller 82 stores the background refresh command, the refresh bank information SA, the refresh burst length RBL, and the refresh block number RBC in the memory device 86 in the case of horizontal access. In addition, the active command CMD, the bank address BA, the row address RA, the read or write command CMD, the bank address BA, and the column address CA corresponding to horizontal access are output to the memory device 86. A similar signal corresponding to the rectangular access is output to the memory device 86. The memory controller 82 outputs the write data DQ to the memory device 86 in the write access, and inputs the read data DQ from the memory device 86 in the read access.

図159は,メモリマッピング例を示す図である。図中には,メモリマッピング12に対してメモリコントローラ82が画像処理装置81から受信する各種の情報との関係が示されている。このメモリマッピング12は,X方向に64画素,Y方向に32画素,合計で2048画素で構成されるフレーム画像データに対応する。8×8画素のブロックがバンクアドレスBAとロウアドレスRAにより特定されるページ領域に対応付けられる。各画素は,例えば1バイトの画像データを有する。そして,ページ領域は,奇数行がバンクアドレスBA0,BA1に,偶数行がバンクアドレスBA2,BA3に対応付けられる。   FIG. 159 is a diagram illustrating an example of memory mapping. In the figure, the relationship between the memory mapping 12 and various information received by the memory controller 82 from the image processing device 81 is shown. This memory mapping 12 corresponds to frame image data composed of 2048 pixels in total, 64 pixels in the X direction and 32 pixels in the Y direction. A block of 8 × 8 pixels is associated with a page area specified by the bank address BA and the row address RA. Each pixel has, for example, 1-byte image data. In the page area, odd rows are associated with bank addresses BA0 and BA1, and even rows are associated with bank addresses BA2 and BA3.

このようなメモリマップ12において,左上の画素が,画像アドレスADR=0x000,POSX,POSY=0,0に対応し,1行目の右端の画素が,画像アドレスADR=0x03F,POSX,POSY=0,63に対応し,32行目の左端の画素が,画像アドレスADR=0x7C0,POSX,POSY=31,0に対応する。この場合は,画像アドレスADRは,アクセス領域の左上画素の位置情報POSX,POSYで表すことができる。つまり,12ビットの画像アドレスADR[11:0]に対して,
POSY[5:0]=ADR[11:6], POSX[5:0]=ADR[5:0]
になる。よって,メモリコントローラ82は,画像処理装置81から受信する画像アドレスADRから,アクセス領域の左上画素の位置情報POSX,POSYを得ることができる。なお,図159の例では,垂直方向が32画素であるので,垂直方向の位置情報POSY[5:0]は5ビットでもよい。
In such a memory map 12, the upper left pixel corresponds to the image address ADR = 0x000, POSX, POSY = 0,0, and the rightmost pixel in the first row is the image address ADR = 0x03F, POSX, POSY = 0. , 63, the pixel at the left end of the 32nd row corresponds to the image address ADR = 0x7C0, POSX, POSY = 31,0. In this case, the image address ADR can be represented by position information POSX and POSY of the upper left pixel of the access area. In other words, for the 12-bit image address ADR [11: 0]
POSY [5: 0] = ADR [11: 6], POSX [5: 0] = ADR [5: 0]
become. Therefore, the memory controller 82 can obtain the position information POSX and POSY of the upper left pixel of the access area from the image address ADR received from the image processing device 81. In the example of FIG. 159, since the vertical direction is 32 pixels, the position information POSY [5: 0] in the vertical direction may be 5 bits.

次に,アクセス領域の水平方向のサイズSIZEX,垂直方向のサイズSIZEYは,それぞれ画像サイズ信号SIZE,アクセスタイプ信号ATYPにより供給される。つまり,
SIZEX=SIZE, SIZEY=ATYP
である。水平アクセスの場合はSIZEY=ATYP=0_0000bが供給され,矩形アクセスの場合はSIZEY=ATYPが0以外の任意の値になる。よって,メモリコントローラ82は,アクセスタイプ信号ATYPが0か否かで水平アクセスか矩形アクセスかを区別することができる。
Next, the horizontal size SIZEX and the vertical size SIZEY of the access area are supplied by an image size signal SIZE and an access type signal ATYP, respectively. In other words,
SIZEX = SIZE, SIZEY = ATYP
It is. For horizontal access, SIZEY = ATYP = 0_0000b is supplied, and for rectangular access, SIZEY = ATYP is an arbitrary value other than 0. Therefore, the memory controller 82 can distinguish between horizontal access and rectangular access depending on whether the access type signal ATYP is 0 or not.

図160は,水平アクセスと矩形アクセスにおける先頭画素アドレス,サイズ情報を示す図である。水平アクセス(A)の場合は,図示されるとおり先頭画素アドレスADR,サイズはSIZEX=SIZE, SIZEY=ATYP=0となる。矩形アクセス(B)の場合は,図示されるとおり,先頭画素アドレスADR,サイズはSIZEX=SIZE, SIZEY=ATYPとなる。   FIG. 160 is a diagram showing the top pixel address and size information in horizontal access and rectangular access. In the case of horizontal access (A), the head pixel address ADR and the size are SIZEX = SIZE and SIZEY = ATYP = 0 as shown in the figure. In the case of rectangular access (B), the head pixel address ADR and the size are SIZEX = SIZE and SIZEY = ATYP as shown in the figure.

さらに,メモリコントローラ82は,アクセス領域の左上画素の位置情報POSX,POSYから,メモリマップ12に基づいて,アクセス領域の先頭画素のバンクアドレスBA,ロウアドレスRAを求めることもできる。そして,メモリコントローラ82は,アクセス領域の左上画素の位置情報POSX,POSYと,サイズ情報SIZE,ATYPとから,複数のバンクをアクセスするか否かについても区別することができる。   Furthermore, the memory controller 82 can also obtain the bank address BA and row address RA of the first pixel in the access area based on the memory map 12 from the position information POSX and POSY of the upper left pixel in the access area. The memory controller 82 can also discriminate whether or not to access a plurality of banks from the position information POSX and POSY of the upper left pixel of the access area and the size information SIZE and ATYP.

また,メモリコントローラ82は,サイズ情報SIZE,ATYPからメモリ装置にアクセスする画素数を求めることができ,さらに,少なくともその画素数のデータを画像処理装置との間で転送するために必要なクロックサイクル数の期間は次のメモリアクセス要求は発生しないことを,判別することができる。そして,メモリコントローラ82は,そのような期間から,バックグランドリフレッシュでのリフレッシュバースト長RBLを求めることができ,または,リフレッシュブロック数RBCも求めることができる。   Further, the memory controller 82 can obtain the number of pixels to access the memory device from the size information SIZE, ATYP, and further, clock cycles necessary for transferring at least data of the number of pixels to and from the image processing device. It can be determined that the next memory access request does not occur during the number of periods. Then, the memory controller 82 can obtain the refresh burst length RBL in the background refresh from such a period, or can obtain the refresh block number RBC.

図161は,メモリコントローラの構成図である。このメモリコントローラ82は,水平アクセス判定部1610,リフレッシュバースト長RBL演算部1611,アクティブバンク番号生成部1612,バックグランドリフレッシュバンク番号生成部1613,メモリインターフェース1614,その中の制御部1615などを有する。これらは,図90に示した複数のシーケンサSEQのうちの1つのシーケンサSEQを構成する。よって,複数のアクセス元に対応して,図161に示したシーケンサSEQが複数設けられる。   FIG. 161 is a configuration diagram of the memory controller. The memory controller 82 includes a horizontal access determination unit 1610, a refresh burst length RBL calculation unit 1611, an active bank number generation unit 1612, a background refresh bank number generation unit 1613, a memory interface 1614, a control unit 1615 therein. These constitute one sequencer SEQ of the plurality of sequencers SEQ shown in FIG. Therefore, a plurality of sequencers SEQ shown in FIG. 161 are provided corresponding to a plurality of access sources.

まず,水平アクセス判定部1610は,垂直方向のサイズSIZEYを示すアクセスタイプ信号ATYPが「0」か否かを第1の比較器CMP1により判定する。第1の比較器CPM1は,ATYP=0なら出力「1」である。さらに,水平アクセス判定部1610は,水平方向のサイズSIZEXを示すサイズ信号SIZEが1回のリフレッシュサイクルのクロック数MEMREFを超えるか否かを第2の比較器CMP2により判定する。第2の比較器CMP2は,SIZE≧MEMREFなら出力「1」である。よって,両比較器の出力が「1」であれば,ANDゲートがバックグランドリフレッシュイネーブル信号「1」を出力し,制御部1615にバックグランドリフレッシュコマンドの発行を依頼する。上記のクロック数MEMREFは,例えばメモリコントローラ内のレジスタに設定される。   First, the horizontal access determination unit 1610 determines whether or not the access type signal ATYP indicating the vertical size SIZEY is “0” by the first comparator CMP1. The first comparator CPM1 outputs “1” if ATYP = 0. Further, the horizontal access determination unit 1610 determines whether the size signal SIZE indicating the size SIZEX in the horizontal direction exceeds the clock number MEMREF of one refresh cycle by the second comparator CMP2. The second comparator CMP2 outputs “1” if SIZE ≧ MEMREF. Therefore, if the outputs of both comparators are “1”, the AND gate outputs a background refresh enable signal “1”, and requests the controller 1615 to issue a background refresh command. The clock number MEMREF is set in a register in the memory controller, for example.

次に,リフレッシュバースト長RBL演算部1611は,バックグランドリフレッシュにおけるリフレッシュバースト長RBLを演算する。具体的には,水平方向のサイズSIZEをクロック数MEMREFにより除算することで,可能なリフレッシュサイクル数を求めることができる。この除算はビットシフト回路SFTにより行われる。そして,リフレッシュバースト長RBLは,例えば,図123,図138などで示されるとおり,アドレス端子A[7:4]により0〜15または1〜16としてメモリ装置に出力される。   Next, the refresh burst length RBL calculation unit 1611 calculates the refresh burst length RBL in the background refresh. Specifically, the number of possible refresh cycles can be obtained by dividing the horizontal size SIZE by the number of clocks MEMREF. This division is performed by the bit shift circuit SFT. The refresh burst length RBL is output to the memory device as 0 to 15 or 1 to 16 by the address terminal A [7: 4], for example, as shown in FIGS.

また,アクティブバンク番号生成部1612は,加算器ADD,第3の比較器CMP3,デコーダDEC0,セレクタSEL0,デコーダDEC1を有する。このデコーダDEC1はテーブルを参照して入力信号を出力信号に変換する。アクティブバンク番号生成部1612は,画像処理装置から供給されるサイズ信号SIZE,画像アドレスADRに基づいて,アクセス領域に対応するバンクアドレスを求める。このバンクアドレスBA[1:0]が,アクティブコマンドと共に出力されるべきバンク番号を示す。   The active bank number generation unit 1612 includes an adder ADD, a third comparator CMP3, a decoder DEC0, a selector SEL0, and a decoder DEC1. The decoder DEC1 converts an input signal into an output signal with reference to the table. The active bank number generation unit 1612 obtains a bank address corresponding to the access area based on the size signal SIZE and the image address ADR supplied from the image processing apparatus. This bank address BA [1: 0] indicates the bank number to be output together with the active command.

図163は,アクティブバンク番号生成部のデコーダDEC0とセレクタSEL0を説明する図表である。アクティブバンク番号生成部1612では,加算器ADDが画像アドレスADRの下位3ビットADR[2:0]と水平方向のサイズであるサイズ信号SIZEとを加算する。画像アドレスADRの下位3ビットADR[2:0]は,先頭画素の水平方向の位置情報POSX=ADR[5:0]の下位3ビットであり,図159に示したメモリマップ12の8×8画素のページ領域内の画素位置を示す情報である。そして,比較器CMP3が,画像アドレスADRの下位3ビットADR[2:0]に水平方向のサイズSIZEを加算した値が「8」を超えるか否かを判別し,超えない場合は,水平アクセスで1つのページ領域内しかアクセスされず1つのバンクのみをアクティブ動作させればよく,超える場合は,水平アクセスで複数のページ領域をアクセスするので2つのバンクをアクティブ動作させる必要がある。そして,比較器CMP3の1バンクまたは2バンクがアクティブかを示す出力と,アクセス領域の先頭画素の位置情報の第4ビットであるADR[9]=POSY[3],ADR[3]=POSX[3]とに基づいて,デコーダDEC0がセレクタSEL0の選択制御信号0〜7を出力する。   FIG. 163 is a chart for explaining the decoder DEC0 and the selector SEL0 of the active bank number generation unit. In the active bank number generation unit 1612, the adder ADD adds the lower 3 bits ADR [2: 0] of the image address ADR and the size signal SIZE which is the horizontal size. The lower 3 bits ADR [2: 0] of the image address ADR are the lower 3 bits of the position information POSX = ADR [5: 0] in the horizontal direction of the first pixel, and are 8 × 8 of the memory map 12 shown in FIG. This is information indicating the pixel position in the page area of the pixel. The comparator CMP3 determines whether or not the value obtained by adding the horizontal size SIZE to the lower 3 bits ADR [2: 0] of the image address ADR exceeds “8”. In this case, only one bank is accessed and only one bank needs to be activated. If this is exceeded, a plurality of page areas are accessed by horizontal access, so two banks need to be activated. Then, an output indicating whether one bank or two banks of the comparator CMP3 is active and the fourth bit of the position information of the first pixel in the access area are ADR [9] = POSY [3], ADR [3] = POSX [ 3], the decoder DEC0 outputs selection control signals 0 to 7 for the selector SEL0.

図159のメモリマップでは,各ページ領域が8×8画素で構成されるので,先頭画素の位置情報POSX,POSYの4ビット目であるADR[9]=POSY[3],ADR[3]=POSX[3]と,バンクアドレスBA[1:0]との関係は,以下の通りである。
ADR[9]=POSY[3],ADR[3]=POSX[3]=0,0 BA[1:0]=0,0 (バンクBA0)
ADR[9]=POSY[3],ADR[3]=POSX[3]=0,1 BA[1:0]=0,1 (バンクBA1)
ADR[9]=POSY[3],ADR[3]=POSX[3]=1,0 BA[1:0]=1,0 (バンクBA2)
ADR[9]=POSY[3],ADR[3]=POSX[3]=1,1 BA[1:0]=1,1 (バンクBA3)
また,図159と異なるメモリマップでは,上記のバンクアドレスとの関係は異なる。
In the memory map of FIG. 159, since each page area is composed of 8 × 8 pixels, ADR [9] = POSY [3], ADR [3] = 4th bit of the position information POSX, POSY of the top pixel The relationship between POSX [3] and bank address BA [1: 0] is as follows.
ADR [9] = POSY [3], ADR [3] = POSX [3] = 0,0 BA [1: 0] = 0,0 (Bank BA0)
ADR [9] = POSY [3], ADR [3] = POSX [3] = 0,1 BA [1: 0] = 0,1 (Bank BA1)
ADR [9] = POSY [3], ADR [3] = POSX [3] = 1,0 BA [1: 0] = 1,0 (Bank BA2)
ADR [9] = POSY [3], ADR [3] = POSX [3] = 1,1 BA [1: 0] = 1,1 (Bank BA3)
Further, in the memory map different from that in FIG. 159, the relationship with the bank address is different.

図163には,上記の加算器ADDの出力SIZE+ADR[2:0]と,ADR[9]=POSY[3],ADR[3]=POSX[3]との組み合わせに対応するデコーダDEC0の出力信号(SEL0の選択制御信号0〜7)が示されている。更に,図163には,デコーダDEC0の出力信号(SEL0の選択制御信号0〜7)に対応して選択される,セレクタSEL0の入力端子ACTBA0〜7も示されている。   FIG. 163 shows the decoder DEC0 corresponding to the combination of the output SIZE + ADR [2: 0] of the adder ADD and ADR [9] = POSY [3], ADR [3] = POSX [3]. Output signals (SEL0 selection control signals 0 to 7) are shown. Further, FIG. 163 also shows input terminals ACTBA0 to ACTBA0 to SEL0 that are selected in response to the output signal of the decoder DEC0 (SEL0 selection control signals 0 to 7).

つまり,デコーダDEC0は,SIZE+ADR[2:0]が8を超えない場合と超える場合とについて,それぞれADR[9]=POSY[3],ADR[3]=POSX[3]の4つの組み合わせについて,出力「0」〜「7」を出力する。上記の通り,ADR[9]=POSY[3],ADR[3]=POSX[3]の4つの組み合わせは,アクセス領域の先頭画素が位置するバンクアドレスに対応付けられる。また,SIZE+ADR[2:0]が8を超えない場合は1つのバンクのみアクティブであればよく,8を超える場合は2つのバンクをアクティブにする必要がある。   In other words, the decoder DEC0 has four combinations of ADR [9] = POSY [3] and ADR [3] = POSX [3] for SIZE + ADR [2: 0] not exceeding 8 and exceeding Output "0" to "7". As described above, the four combinations of ADR [9] = POSY [3] and ADR [3] = POSX [3] are associated with the bank address where the first pixel of the access area is located. When SIZE + ADR [2: 0] does not exceed 8, only one bank needs to be active. When SIZE + ADR [2: 0] exceeds 8, it is necessary to activate two banks.

図161内のアクティブバンク番号生成部1612は,デコーダDEC0の出力0〜7からなる選択信号に応じて,レジスタ543のACTBA0〜7に設定された値を選択するセレクタSEL0と,セレクタSEL0で選択されたレジスタ543のACTBA0〜7の設定値を,テーブルTableを参照してアクティブバンク番号ACT_BA[1:0]に変換するデコーダDEC1とを有する。   161 is selected by a selector SEL0 that selects a value set in ACTBA0 to 7 of the register 543 and a selector SEL0 according to a selection signal composed of outputs 0 to 7 of the decoder DEC0. The decoder DEC1 converts the set values of ACTBA0 to ACTBA7 of the register 543 into the active bank number ACT_BA [1: 0] with reference to the table Table.

図164は,レジスタ543のACTBAに設定されうる値000b〜111bの意味を説明する図表である。なお,「b」はバイナリ表記を意味する。設定値000b〜011bは,アクセス領域に対応してアクティブ動作されるアクティブバンクがBA0〜3の場合に対応し,設定値100b,101b,110b,111bはそれぞれアクティブバンクがBA0&1,BA0&2,BA2&3, BA1&3の場合に対応する。これらの通常メモリ動作でアクティブ化されるバンクに対して,バックグランドリフレッシュ動作対象のバンクは,メモリマップMap1,2に応じて,そしてバックグランドリフレッシュが2バンクで実行か1バンクで実行かに応じて,図164に示されるようになる。即ち以下の通りである。   FIG. 164 is a chart for explaining the meanings of values 000b to 111b that can be set in ACTBA of the register 543. “B” means binary notation. The set values 000b to 011b correspond to the case where the active bank that is actively operated corresponding to the access area is BA0 to 3, and the set values 100b, 101b, 110b, and 111b are the active banks BA0 & 1, BA0 & 2, BA2 & 3, BA1 & 3, respectively. This corresponds to the case. In contrast to the banks activated by these normal memory operations, the background refresh target bank depends on the memory map Map 1 and 2, and whether the background refresh is executed in two banks or one bank. As shown in FIG. That is, it is as follows.

アクティブバンクBA0(設定値000b)なら,2バンクリフレッシュではリフレッシュバンクはBA2&3(Map1)またはBA1&3(Map2),1バンクリフレッシュではBA2(Map1)またはBA1(Map2)である。   If the active bank is BA0 (set value 000b), the refresh bank is BA2 & 3 (Map1) or BA1 & 3 (Map2) in 2-bank refresh, and BA2 (Map1) or BA1 (Map2) in 1-bank refresh.

アクティブバンクBA1(設定値001b)なら,2バンクリフレッシュではリフレッシュバンクはBA2&3(Map1)またはBA0&2(Map2),1バンクリフレッシュではBA3(Map1)またはBA0(Map2)である。   In the case of the active bank BA1 (set value 001b), the refresh bank is BA2 & 3 (Map1) or BA0 & 2 (Map2) in the two-bank refresh, and BA3 (Map1) or BA0 (Map2) in the one-bank refresh.

アクティブバンクBA2(設定値010b)なら,2バンクリフレッシュではリフレッシュバンクはBA0&1(Map1)またはBA1&3(Map2),1バンクリフレッシュではBA0(Map1)またはBA3(Map2)である。   In the case of the active bank BA2 (set value 010b), the refresh bank is BA0 & 1 (Map1) or BA1 & 3 (Map2) in 2-bank refresh, and BA0 (Map1) or BA3 (Map2) in 1-bank refresh.

アクティブバンクBA3(設定値011b)なら,2バンクリフレッシュではリフレッシュバンクはBA0&1(Map1)またはBA0&2(Map2),1バンクリフレッシュではBA1(Map1)またはBA2(Map2)である。   For the active bank BA3 (set value 011b), the refresh bank is BA0 & 1 (Map1) or BA0 & 2 (Map2) in 2-bank refresh, and BA1 (Map1) or BA2 (Map2) in 1-bank refresh.

アクティブバンクBA0&1(設定値100b)なら,2バンクリフレッシュではリフレッシュバンクはBA2&3(Map1),1バンクリフレッシュではBA2or3(Map1)である。メモリマップMap2は対象外である。   If the active bank is BA0 & 1 (set value 100b), the refresh bank is BA2 & 3 (Map1) in the 2-bank refresh, and BA2or3 (Map1) in the 1-bank refresh. Memory map Map2 is out of scope.

アクティブバンクBA0&2(設定値101b)なら,2バンクリフレッシュではリフレッシュバンクはBA1&3(Map2),1バンクリフレッシュではBA1or3(Map2)である。メモリマップMap1は対象外である。   In the case of the active bank BA0 & 2 (set value 101b), the refresh bank is BA1 & 3 (Map2) in 2-bank refresh, and BA1or3 (Map2) in 1-bank refresh. Memory map Map1 is out of scope.

アクティブバンクBA2&3(設定値110b)なら,2バンクリフレッシュではリフレッシュバンクはBA0&1(Map1),1バンクリフレッシュではBA0or1(Map1)である。メモリマップMap2は対象外である。   In the case of the active bank BA2 & 3 (set value 110b), the refresh bank is BA0 & 1 (Map1) in 2-bank refresh, and BA0or1 (Map1) in 1-bank refresh. Memory map Map2 is out of scope.

アクティブバンクBA1&3(設定値111b)なら,2バンクリフレッシュではリフレッシュバンクはBA0&2(Map2),1バンクリフレッシュではBA0or2(Map2)である。メモリマップMap1は対象外である。   In the case of the active bank BA1 & 3 (set value 111b), the refresh bank is BA0 & 2 (Map2) in the 2-bank refresh, and BA0or2 (Map2) in the 1-bank refresh. Memory map Map1 is out of scope.

このようにレジスタ543への設定値を定義しておくことで,システムが採用するメモリマッピングと,2バンクリフレッシュか1バンクリフレッシュかに応じて,デコーダDEC0の出力0〜7に対応する8つのケースに対応する,アクティブバンク番号ACT_BA[1:0]と,バックグランドリフレッシュバンク番号BR_BA[1:0],BR_A[3:0]とを,任意に設定することができる。   By defining the setting value in the register 543 in this way, eight cases corresponding to the outputs 0 to 7 of the decoder DEC0 depending on the memory mapping adopted by the system and whether it is 2-bank refresh or 1-bank refresh. The active bank number ACT_BA [1: 0] and the background refresh bank numbers BR_BA [1: 0] and BR_A [3: 0] corresponding to can be arbitrarily set.

図165は,デコーダDEC1の変換テーブルを示す図である。セレクタSEL0の出力(DEC1の入力)0〜7にアクティブバンクが対応付けられている。この対応関係は,図164にも示されている。そこで,レジスタ設定値の例に対応するデコーダDEC1の動作について説明する。   FIG. 165 is a diagram showing a conversion table of the decoder DEC1. An active bank is associated with outputs (inputs of DEC1) 0 to 7 of the selector SEL0. This correspondence is also shown in FIG. Therefore, the operation of the decoder DEC1 corresponding to the example of the register setting value will be described.

図166は,レジスタ設定値の第1例に対応するデコーダDEC1の変換動作を示す図表である。第1例のレジスタ設定値はメモリマップMap1に対応しており,セレクタSEL0の8つの入力端子には「01234466」が設定される。それに伴い,デコーダDEC1は,セレクタSEL0の選択信号(デコーダDEC0の出力信号)に対応して選択されたセレクタSEL0の出力値「01234466」に対応して,図165のテーブルを参照し図166に示される出力(DEC1 Output)を生成する。セレクタ出力値「0123」では1バンクが選択され,セレクタ出力値「4466」では2バンクが選択される。   FIG. 166 is a chart showing a conversion operation of the decoder DEC1 corresponding to the first example of the register setting value. The register setting value of the first example corresponds to the memory map Map1, and “01234466” is set to the eight input terminals of the selector SEL0. Accordingly, the decoder DEC1 refers to the table of FIG. 165 and corresponds to the output value “01234466” of the selector SEL0 selected corresponding to the selection signal of the selector SEL0 (the output signal of the decoder DEC0), as shown in FIG. Output (DEC1 Output). For the selector output value “0123”, one bank is selected, and for the selector output value “4466”, two banks are selected.

図167は,レジスタ設定値の第2例に対応するデコーダDEC1の変換動作を示す図表である。第2例のレジスタ設定値はメモリマップMap2に対応しており,セレクタSEL0の8つの入力端子には「01235577」が設定される。それに伴い,デコーダDEC1は,セレクタSEL0の出力値「01235577」に対応して,図165のテーブルを参照し図167に示される出力(DEC1 Output)を生成する。この場合も,セレクタ出力値「0213」では1バンクが選択され,セレクタ出力値「6677」では2バンクが選択される。   FIG. 167 is a chart showing the conversion operation of the decoder DEC1 corresponding to the second example of the register set value. The register setting value of the second example corresponds to the memory map Map2, and “01235577” is set to the eight input terminals of the selector SEL0. Accordingly, the decoder DEC1 generates the output (DEC1 Output) shown in FIG. 167 with reference to the table in FIG. 165, corresponding to the output value “01235577” of the selector SEL0. Also in this case, one bank is selected for the selector output value “0213”, and two banks are selected for the selector output value “6677”.

次に,図161中のバックグランドリフレッシュバンク番号生成部1613は,レジスタ543のBRBA0〜3に設定された設定値を,セレクタSEL0の出力の下位2ビットで選択するセレクタSEL1と,セレクタ出力をバックグランドリフレッシュ対象バンク番号BR_BA[1:0],BR_A[3:0]に変換するデコーダDEC2とを有する。このバックグランドリフレッシュ対象バンク番号BR_BA[1:0]は,2バンクリフレッシュする場合に対応し,例えば図117のバンクアドレスBA[1:0]に対応する。また,バックグランドリフレッシュ対象バンク番号BR_A[3:0]は,1バンクリフレッシュする場合に対応し,例えば図118のアドレス端子A[3:0]に対応する。   Next, the background refresh bank number generation unit 1613 in FIG. 161 backs the selector SEL1 for selecting the set value set in BRBA0 to 3 of the register 543 with the lower 2 bits of the output of the selector SEL0, and the selector output. And a decoder DEC2 for converting the bank numbers to BR_BA [1: 0] and BR_A [3: 0]. This background refresh target bank number BR_BA [1: 0] corresponds to the case where two banks are refreshed, and corresponds to, for example, the bank address BA [1: 0] in FIG. Further, the background refresh target bank number BR_A [3: 0] corresponds to the case where one bank is refreshed, and corresponds to, for example, the address terminal A [3: 0] in FIG.

図168は,セレクタSEL1の動作を示す図表である。セレクタSEL0の下位2ビットを選択信号として,レジスタ543に設定されたBRBA0〜3の値を選択する。   FIG. 168 is a chart showing the operation of the selector SEL1. Using the lower 2 bits of the selector SEL0 as a selection signal, the value of BRBA0-3 set in the register 543 is selected.

図169は,デコーダDEC2の変換テーブルを示す図表である。デコーダ入力(DEC2 Input)は,BRBA0〜3に対応してレジスタ543に設定しうる値0〜7であり,値「0,1,2,3」は,1バンクリフレッシュに対応し,それぞれバンク0〜3をリフレッシュすることに対応する。また,値「4」「6」は,マップMap1の場合の2バンクリフレッシュに対応し,それぞれバンク0&1,2&3をリフレッシュすることに対応する。そして,値「5」「7」は,マップMap2の場合の2バンクリフレッシュに対応し,それぞれバンク0&2,1&3をリフレッシュすることに対応する。この場合も,レジスタ543には,メモリマップMap1,Map2に対応し,且つ1バンクリフレッシュか2バンクリフレッシュかに対応して,任意の値を設定することができる。   FIG. 169 is a chart showing a conversion table of the decoder DEC2. The decoder input (DEC2 Input) is a value 0 to 7 that can be set in the register 543 corresponding to BRBA0 to BRBA3, and the value “0, 1, 2, 3” corresponds to 1 bank refresh, and each bank 0 Corresponds to refreshing ~ 3. The values “4” and “6” correspond to the 2-bank refresh in the case of the map Map1, and correspond to refreshing the banks 0 & 1, 2 & 3, respectively. The values “5” and “7” correspond to the 2-bank refresh in the case of the map Map2 and correspond to refreshing the banks 0 & 2, 1 & 3, respectively. In this case as well, an arbitrary value can be set in the register 543 in accordance with the memory maps Map1 and Map2 and in accordance with the 1-bank refresh or 2-bank refresh.

図170は,第1のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。この例はメモリマップMap1における2バンクリフレッシュに適用され,第1のレジスタ設定値では,BRBA0〜3が「6644」になる。そして,セレクタSEL1でこれらの設定値が,セレクタSEL0の出力の下位2ビットに応じて選択され,デコーダDEC2は,その変換テーブル(図169)を参照して,バックグランドリフレッシュバンク番号BA[1:0]を出力する。つまり,デコーダDEC2の入力が「6」であればバンクBank2&3がリフレッシュされ,「4」であればバンクBank0&1がリフレッシュされる。   FIG. 170 shows the operation of the decoder DEC2 in the case of the first register set value. This example is applied to 2-bank refresh in the memory map Map1, and BRBA0 to 3 are "6644" in the first register setting value. These set values are selected by the selector SEL1 in accordance with the lower 2 bits of the output of the selector SEL0, and the decoder DEC2 refers to the conversion table (FIG. 169) and determines the background refresh bank number BA [1: 0] is output. That is, if the input of the decoder DEC2 is “6”, the bank Bank2 & 3 is refreshed, and if it is “4”, the bank Bank0 & 1 is refreshed.

図171は,第2のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。この例はメモリマップMap2における2バンクリフレッシュに適用され,第2のレジスタ設定値では,BRBA0〜3が「7755」になる。そして,セレクタSEL1でこれらの設定値が,セレクタSEL0の出力の下位2ビットに応じて選択され,デコーダDEC2は,その変換テーブル(図169)を参照して,バックグランドリフレッシュバンク番号BA[1:0]を出力する。つまり,デコーダDEC2の入力が「7」であればバンクBank1&3がリフレッシュされ,「5」であればバンクBank0&2がリフレッシュされる。   FIG. 171 is a diagram illustrating the operation of the decoder DEC2 in the case of the second register set value. This example is applied to the two-bank refresh in the memory map Map2, and BRBA0 to 3 are "7755" in the second register setting value. These set values are selected by the selector SEL1 in accordance with the lower 2 bits of the output of the selector SEL0, and the decoder DEC2 refers to the conversion table (FIG. 169) and determines the background refresh bank number BA [1: 0] is output. That is, if the input of the decoder DEC2 is “7”, the bank Bank1 & 3 is refreshed, and if it is “5”, the bank Bank0 & 2 is refreshed.

図172は,第3のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。この例はメモリマップMap1における1バンクリフレッシュに適用され,第3のレジスタ設定値では,BRBA0〜3が「2301」になる。そして,セレクタSEL1でこれらの設定値が,セレクタSEL0の出力の下位2ビットに応じて選択され,デコーダDEC2は,その変換テーブル(図169)を参照して,バックグランドリフレッシュバンク番号A[3:0]を出力する。つまり,デコーダDEC2の入力が「2,3,0,1」に対応してバンクBank2,3,0,1がそれぞれリフレッシュされる。   FIG. 172 is a diagram illustrating the operation of the decoder DEC2 in the case of the third register set value. This example is applied to one bank refresh in the memory map Map1, and BRBA0 to 3 are "2301" in the third register set value. These set values are selected by the selector SEL1 in accordance with the lower two bits of the output of the selector SEL0, and the decoder DEC2 refers to the conversion table (FIG. 169) and refers to the background refresh bank number A [3: 0] is output. That is, the banks Bank2, 3, 0, 1 are refreshed corresponding to the input of the decoder DEC2 corresponding to “2, 3, 0, 1”.

図173は,第4のレジスタ設定値の場合のデコーダDEC2の動作を示す図である。この例はメモリマップMap2における1バンクリフレッシュに適用され,第4のレジスタ設定値では,BRBA0〜3が「1302」になる。そして,セレクタSEL1でこれらの設定値が,セレクタSEL0の出力の下位2ビットに応じて選択され,デコーダDEC2は,その変換テーブル(図169)を参照して,バックグランドリフレッシュバンク番号A[3:0]を出力する。つまり,デコーダDEC2の入力が「1,3,0,2」に対応してバンクBank1,0,3,2がそれぞれリフレッシュされる。   FIG. 173 is a diagram illustrating the operation of the decoder DEC2 in the case of the fourth register set value. This example is applied to one-bank refresh in the memory map Map2, and BRBA0 to 3 are "1302" in the fourth register setting value. These set values are selected by the selector SEL1 in accordance with the lower two bits of the output of the selector SEL0, and the decoder DEC2 refers to the conversion table (FIG. 169) and refers to the background refresh bank number A [3: 0] is output. That is, the banks Bank1,0, 3, and 2 are refreshed corresponding to the input of the decoder DEC2 corresponding to "1, 3, 0, 2".

以上の通り,リフレッシュ対象のバンクの組み合わせは,通常アクセス動作によるアクティブバンクに対して高々4種類しかない。よって,セレクタSEL1の入力を4つに制限し,ただし,セレクタSEL0の出力値3ビットの下位2ビットで,セレクタSEL1の4入力のいずれかを選択することにより,アクティブバンクに対応するリフレッシュバンクを生成することができる。   As described above, there are at most four combinations of banks to be refreshed with respect to the active banks by the normal access operation. Therefore, the input of selector SEL1 is limited to four. However, the refresh bank corresponding to the active bank is selected by selecting one of the four inputs of selector SEL1 with the lower two bits of the output value of selector SEL0. Can be generated.

図161に戻り,制御部1615には,バックグランドリフレッシュモード信号BRMDが入力される。このモード信号BRMDは,4バンクリフレッシュか,2または1バンクリフレッシュかを示す信号であり,レジスタ543に設定される。モード信号BRMDが4バンクリフレッシュの場合は,バックグランドリフレッシュ動作は禁止される。   Returning to FIG. 161, the background refresh mode signal BRMD is input to the control unit 1615. This mode signal BRMD is a signal indicating whether 4 bank refresh, 2 or 1 bank refresh, and is set in the register 543. When the mode signal BRMD is 4-bank refresh, the background refresh operation is prohibited.

制御部1615は,バックグランドリフレッシュイネーブル信号BR_ENに応答して,コマンドCMDにBREN,ACTなどを出力するときに,コマンドに対応する選択信号S2,S3,S4をセレクタ2,3,4にそれぞれ供給する。制御部1615は,バックグランドリフレッシュイネーブル信号BR_ENがHレベルの場合,コマンドBRENの出力時に,セレクタSEL2にはリフレッシュバースト長RBL_A[7:4]を選択させ,セレクタSEL3にはバックグランドリフレッシュバンク番号BR_BA[1:0]を選択させ,セレクタSEL4にはバックグランドリフレッシュアドレスBR_A[3:0]を選択させる。その結果,アドレス端子A[7:4]からはリフレッシュバースト長RBLが,バンクアドレス端子BA[1:0]からは,バックグランドリフレッシュバンク番号BR_BA[1:0]がそれぞれ出力される。そして,制御部1615は,コマンドACTの出力時に,セレクタSEL2にはその他A[7:4]を選択させ,セレクタSEL3にはアクティブバンク番号ACT_BA[1:0]を選択させ,セレクタ4にはその他A[3:0]を選択させる。その結果,アドレス端子A[7:4]からは通常のアドレスA[7:4]が,バンクアドレス端子BA[1:0]からは,アクティブ対象の選択バンクアドレスBA[1:0]がそれぞれ出力される。   In response to the background refresh enable signal BR_EN, the control unit 1615 supplies selection signals S2, S3, S4 corresponding to the command to the selectors 2, 3, 4 when outputting BREN, ACT, etc. to the command CMD. To do. When the background refresh enable signal BR_EN is at the H level, the control unit 1615 causes the selector SEL2 to select the refresh burst length RBL_A [7: 4] and the selector SEL3 to select the background refresh bank number BR_BA when the command BREN is output. [1: 0] is selected, and the selector SEL4 is caused to select the background refresh address BR_A [3: 0]. As a result, the refresh burst length RBL is output from the address terminal A [7: 4], and the background refresh bank number BR_BA [1: 0] is output from the bank address terminal BA [1: 0]. Then, the controller 1615 causes the selector SEL2 to select other A [7: 4], the selector SEL3 to select the active bank number ACT_BA [1: 0], and the selector 4 to select other when the command ACT is output. Let A [3: 0] be selected. As a result, the normal address A [7: 4] is sent from the address terminal A [7: 4], and the selected bank address BA [1: 0] to be activated is sent from the bank address terminal BA [1: 0]. Is output.

図162は,メモリコントローラの動作タイミングチャート図である。この例では,画像処理装置81が,クロック番号3からアクセス要求信号REQをアサートしながら,画像アドレスADR=0x0000,サイズ信号SIZE=32,アクセスタイプ信号ATYP=000b,リードライト信号RWX=Hを出力し,クロック番号22からストローブ信号STBをアサートしながら,32バイトの読み出しデータDATAを32クロックサイクルで入力する。   FIG. 162 is an operation timing chart of the memory controller. In this example, the image processing apparatus 81 outputs the image address ADR = 0x0000, the size signal SIZE = 32, the access type signal ATYP = 000b, and the read / write signal RWX = H while asserting the access request signal REQ from the clock number 3. Then, the 32-byte read data DATA is input in 32 clock cycles while asserting the strobe signal STB from the clock number 22.

一方,メモリコントローラ82は,画像アドレスADR=0x0000,サイズ信号SIZE=32,アクセスタイプ信号ATYP=000bから,画像データの先頭画素位置POSX,POSY=0,0,アクティブバンクACT_BA=BA0,BA1,ロウアドレスRA0,A1,コラムアドレスCA0などの水平アクセスであること,バックグランドリフレッシュをバンクBR_BA=BA2,BA3に対しリフレッシュバースト長RBL=4で行うことなどを決定する。そして,メモリコントローラ82はメモリ装置に,クロック番号6でバックグランドリフレッシュコマンドBRENとリフレッシュバンクBA2,3とリフレッシュバースト長RBL=4とを出力し,さらに,クロック番号8でアクティブコマンドACT,バンクアドレスBA0,ロウアドレスRA0を出力し,クロック番号10でアクティブコマンドACT,バンクアドレスBA1,ロウアドレスRA1を出力し,それに続いて,リードコマンドRD,バンクアドレスBA0,コラムアドレスCA0を出力し,リードコマンドRD,バンクアドレスBA1,コラムアドレスCA0を出力し,プリチャージコマンドPER,バンクアドレスBA0,プリチャージコマンドPER,バンクアドレスBA1を出力する。各リードコマンドのバースト長BL=8である。よって,メモリコントローラは,上記のコマンドACT,RD,PREを,更に2組出力する。その結果,メモリ装置のデータ端子DQから32バイトのデータd0〜d31を受信する。そして,メモリコントローラは,このデータd0〜d31をクロック番号22から32クロックサイクルで画像処理装置に出力する。   On the other hand, the memory controller 82 starts from the image address ADR = 0x0000, the size signal SIZE = 32, and the access type signal ATYP = 000b, and the image data start pixel position POSX, POSY = 0,0, active bank ACT_BA = BA0, BA1, row It is determined that the access is horizontal such as addresses RA0, A1 and column address CA0, and that background refresh is performed for banks BR_BA = BA2, BA3 with a refresh burst length RBL = 4. Then, the memory controller 82 outputs the background refresh command BREN, the refresh banks BA2, 3 and the refresh burst length RBL = 4 at the clock number 6 to the memory device, and further, the active command ACT and the bank address BA0 at the clock number 8. The row address RA0 is output, the active command ACT, the bank address BA1, and the row address RA1 are output at the clock number 10, and subsequently, the read command RD, the bank address BA0, and the column address CA0 are output, and the read command RD, Bank address BA1 and column address CA0 are output, and precharge command PER, bank address BA0, precharge command PER, and bank address BA1 are output. The burst length BL of each read command is 8. Therefore, the memory controller outputs two more sets of the above commands ACT, RD, and PRE. As a result, 32-byte data d0 to d31 are received from the data terminal DQ of the memory device. Then, the memory controller outputs the data d0 to d31 to the image processing apparatus in 32 clock cycles from the clock number 22.

メモリコントローラ82は,適切なリフレッシュブロック数RBCを,レジスタセットコマンドEMRSと共にメモリに出力して,メモリ内のレジスタに設定する。その場合は,メモリコントローラ82は,サイズ信号SIZEから得られるデータ転送に必要なクロックサイクル数から,リフレッシュブロック数RBCを考慮してリフレッシュバースト長RBLを決定する。さらに,メモリコントローラ82は,リフレッシュバースト長RBLを,レジスタセットコマンドEMRSと共にメモリに出力して,メモリ内のレジスタに設定することもできる。
《パラメータの入力方法》
以上,画像データなどの二次元配置データを記憶するメモリ装置への種々のアクセスやリフレッシュの機能を説明した。その場合,種々の機能の実現に必要なパラメータがメモリコントローラからメモリ装置に入力される。このパラメータの入力方法について以下説明する。
The memory controller 82 outputs an appropriate refresh block number RBC to the memory together with the register set command EMRS, and sets it in the register in the memory. In this case, the memory controller 82 determines the refresh burst length RBL from the number of clock cycles necessary for data transfer obtained from the size signal SIZE in consideration of the refresh block number RBC. Further, the memory controller 82 can output the refresh burst length RBL to the memory together with the register set command EMRS and set it to the register in the memory.
<Parameter input method>
In the foregoing, various access and refresh functions have been described for memory devices that store two-dimensional arrangement data such as image data. In this case, parameters necessary for realizing various functions are input from the memory controller to the memory device. The method for inputting this parameter will be described below.

図174は,バイトバウンダリにおけるスタートバイト信号SBを示す図である。既に説明したとおり,バイトバウンダリでは,4バイトからなるメモリ単位領域内の先頭バイトを示すスタートバイト信号SBをメモリ装置に入力する。図173では,バンク0,1とロウアドレスRA5で選択される隣接する2つのページ領域をまたぐ領域1740がアクセス対象の場合は,スタートバイト信号SB=2がメモリ装置に供給される。これにより,バンク0,ロウアドレスRA5のページ領域内であって,コラムアドレスCA7で選択される4バイトデータB0〜B3のうち,2バイトデータB2,B3と,バンク1,ロウアドレスRA5のページ領域内であって,コラムアドレスCA4で選択される4バイトデータB0〜B3のうち,2バイトデータB0,B1とが,入出力端子と対応付けられ,4バイトデータが入出力される。この4バイトデータの対応付けは,メモリマップ12がアップモードの場合に対応する。ダウンモードでは4バイトデータの対応付けは異なる。   FIG. 174 is a diagram showing the start byte signal SB in the byte boundary. As already described, in the byte boundary, the start byte signal SB indicating the first byte in the memory unit area composed of 4 bytes is input to the memory device. In FIG. 173, when an area 1740 that crosses two adjacent page areas selected by the banks 0 and 1 and the row address RA5 is an access target, a start byte signal SB = 2 is supplied to the memory device. As a result, within the page area of bank 0 and row address RA5, out of 4 byte data B0 to B3 selected by column address CA7, 2 byte data B2 and B3 and page area of bank 1 and row address RA5 Of the 4 byte data B0 to B3 selected by the column address CA4, the 2 byte data B0 and B1 are associated with the input / output terminals, and the 4 byte data is input / output. This association of 4-byte data corresponds to the case where the memory map 12 is in the up mode. In the down mode, the association of 4-byte data is different.

また,メモリ装置では,アクセス領域1740のコラムアドレスCA7から,隣接するページ領域のコラムアドレスCA4を算出するために,ページ領域内のコラムアドレスのステップ数データCST=4があらかじめレジスタに設定される。   In the memory device, in order to calculate the column address CA4 of the adjacent page area from the column address CA7 of the access area 1740, step number data CST = 4 of the column address in the page area is set in the register in advance.

図175は,バイト組み合わせデータの第2の情報BMRと第1の情報SB(スタートバイト)との関係を示す図である。図175の上半分が第2の情報BMRがアップモード,下半分が第2の情報BMRがダウンモードに対応する。それぞれ,スタートバイトSB=0〜3に対応して,入出力端子に対応付けられる4バイトの組み合わせを示している。アップモードについては,図174で示した通りである。ダウンモードでは,4バイト領域内の4バイトの配列が,アップモードと逆になっている。それに伴い,スタートバイトSBと入出力端子に対応付けられる4バイトの組み合わせとが,アップモードと逆の関係になっている。この第2の情報BMRもメモリ装置に入力され,必要に応じて設定される。   FIG. 175 is a diagram illustrating a relationship between the second information BMR of the byte combination data and the first information SB (start byte). In the upper half of FIG. 175, the second information BMR corresponds to the up mode, and in the lower half, the second information BMR corresponds to the down mode. Each of them indicates a combination of 4 bytes associated with an input / output terminal corresponding to the start byte SB = 0-3. The up mode is as shown in FIG. In the down mode, the 4-byte array in the 4-byte area is the reverse of the up mode. Accordingly, the combination of the start byte SB and the 4 bytes associated with the input / output terminals has an inverse relationship with the up mode. This second information BMR is also input to the memory device and set as necessary.

図176は,ロウアドレスステップRSを示す図である。メモリ装置は,マルチバンクアクセスでは,矩形アクセス領域1760の左上のページ領域のバンクアドレスとロウアドレスに基づいて,残りのバンクアドレスとロウアドレスを求める。そのために,メモリマッピング12の情報として,ロウアドレスのステップ情報RSが必要になる。よって,メモリ装置は,ロウアドレスのステップ情報RSを入力し,必要に応じてレジスタ内に設定する。矩形アクセス領域1740の場合は,アクティブコマンドと共にバンクアドレスBA3,ロウアドレスRA1が与えられ,4バンクアクセス(マルチバンク情報SA'=4)の場合は,RS=4に基づいてロウアドレスRA2,RA5,RA6が求められる。   FIG. 176 shows a row address step RS. In the multi-bank access, the memory device obtains the remaining bank address and row address based on the bank address and row address in the upper left page area of the rectangular access area 1760. Therefore, step information RS of the row address is necessary as information of the memory mapping 12. Therefore, the memory device inputs the step information RS of the row address and sets it in the register as necessary. In the case of the rectangular access area 1740, the bank address BA3 and the row address RA1 are given together with the active command. In the case of 4-bank access (multi-bank information SA ′ = 4), the row addresses RA2, RA5, RA6 is required.

図177は,メモリマッピング情報ARを示す図である。図中には,2種類のメモリマッピングが示されている。例えば,タイプAの場合はAR=0が,タイプBの場合はAR=1が,それぞれメモリ装置に入力されレジスタに設定される。マルチバンクアクセスでは,このメモリマッピング情報ARに基づいてアクセス対象バンクの演算が行われる。また,バックグランドリフレッシュでも,メモリマッピング情報ARに基づいてリフレッシュ対象のバンクが求められる。タイプAは,奇数行がバンク0,1偶数行がバンク2,3で構成され,タイプBは,奇数行がバンク0,2偶数行がバンク1,3で構成されている。ロウアドレスRAは同じである。図176の例は,タイプAの場合である。   FIG. 177 is a diagram showing the memory mapping information AR. In the figure, two types of memory mapping are shown. For example, AR = 0 for type A and AR = 1 for type B are input to the memory device and set in the register. In multi-bank access, an access target bank is calculated based on the memory mapping information AR. Also in the background refresh, a refresh target bank is obtained based on the memory mapping information AR. In type A, odd-numbered rows are composed of banks 0 and 1, even-numbered rows are composed of banks 2 and 3, and in type B, odd-numbered rows are composed of banks 0 and 2 and even-numbered rows are composed of banks 1 and 3. The row address RA is the same. The example of FIG. 176 is a case of type A.

図178は,バックグランドリフレッシュにおけるリフレッシュバースト長RBLとリフレッシュブロック数RBCとを示す図である。バックグランドリフレッシュでは,コマンドに応答して,リフレッシュバースト長RBLの回数のリフレッシュ動作が繰り返され,各リフレッシュ動作がリフレッシュブロック数RBCのブロックで並列に行われる。図178(A)は,RBC=2,RBL=6の例であり,6回のリフレッシュで合計12本のワード線でリフレッシュが行われる。図178(B)は,RBC=3,RBL=4の例であり,この場合も4回のリフレッシュで合計12本のワード線でリフレッシュが行われる。図178(C)は,RBC=4,RBL=3の例であり,この場合も3回のリフレッシュで合計12本のワード線でリフレッシュが行われる。   FIG. 178 is a diagram showing the refresh burst length RBL and the refresh block number RBC in the background refresh. In the background refresh, the refresh operation is repeated the number of times of the refresh burst length RBL in response to the command, and each refresh operation is performed in parallel on the blocks having the refresh block number RBC. FIG. 178 (A) shows an example of RBC = 2 and RBL = 6, and refresh is performed with a total of 12 word lines in 6 refreshes. FIG. 178B is an example of RBC = 3 and RBL = 4. In this case as well, refresh is performed with a total of 12 word lines in four refreshes. FIG. 178C is an example of RBC = 4 and RBL = 3. In this case as well, refresh is performed with a total of 12 word lines in three refreshes.

以上の通り,メモリ装置は,様々なアクセスを実現するために,それぞれ必要なパラメータを入力する必要がある。このパラメータの入力方法は,専用入力端子を利用する方法,使用されていないアドレス入力端子を利用する方法などがある。また,パラメータの入力方法は,メモリ装置がシングルデータレートかダブルデータレートかによって異なる。そして,パラメータの入力方法は,アドレスがマルチプル入力(マルチプレクス方式)かノンマルチプル入力(ノンマルチプレクス方式)かによっても異なる。これらについて以下説明する。   As described above, each memory device needs to input necessary parameters in order to realize various accesses. There are two methods for inputting this parameter, such as a method using a dedicated input terminal and a method using an address input terminal that is not used. The parameter input method differs depending on whether the memory device has a single data rate or a double data rate. The parameter input method also differs depending on whether the address is a multiple input (multiplex system) or a non-multiple input (non-multiplex system). These will be described below.

図179は,メモリ装置内の専用入力端子とその入力バッファ及びモードレジスタの構成を示す図である。専用入力端子SPに入力されたパラメータ信号が,専用入力バッファ1790に入力され,そこでラッチされた信号1792がモードレジスタ1791に設定され,設定された信号1793が図示しない内部回路に供給される。ただし,パラメータ信号に対応する機能(バイトバウンダリ機能,マルチバンクアクセス機能,バックグランドリフレッシュ機能)がディセーブルにされる場合は,対応するパラメータはデフォルト値に設定される必要がある。   FIG. 179 is a diagram showing the configuration of a dedicated input terminal, its input buffer, and mode register in the memory device. The parameter signal input to the dedicated input terminal SP is input to the dedicated input buffer 1790, the signal 1792 latched there is set in the mode register 1791, and the set signal 1793 is supplied to an internal circuit (not shown). However, when the function corresponding to the parameter signal (byte boundary function, multi-bank access function, background refresh function) is disabled, the corresponding parameter needs to be set to the default value.

そこで,機能がイネーブルかディセーブルかを示すイネーブル信号1794に応じて,イネーブルならモードレジスタ1791には入力されたパラメータが設定され,ディセーブルならモードレジスタ1791にはパラメータとしてデフォルト値が設定される。また,入力バッファ1790は,イネーブル信号1794がイネーブルなら専用入力端子SPからの信号を取り込み,ディセーブルなら出力信号1792がHレベルにクランプされる。よって,ディセーブルの場合は,専用入力端子SPと入力バッファ1790との間を,ボンディングワイヤーで接続する必要はない。   Therefore, in accordance with the enable signal 1794 indicating whether the function is enabled or disabled, the input parameter is set in the mode register 1791 if enabled, and a default value is set in the mode register 1791 as a parameter if disabled. The input buffer 1790 takes in the signal from the dedicated input terminal SP when the enable signal 1794 is enabled, and the output signal 1792 is clamped at the H level when disabled. Therefore, when disabled, it is not necessary to connect the dedicated input terminal SP and the input buffer 1790 with a bonding wire.

図180は,メモリ装置内の専用入力端子とその入力バッファ及びモードレジスタの構成を示す図である。ここでは,種々のパラメータのうち,一例としてスタートバイトSB,マルチバンク情報SA',リフレッシュバンク情報SAを専用端子SPから入力する例が示されている。   FIG. 180 is a diagram showing a configuration of a dedicated input terminal, its input buffer, and a mode register in the memory device. Here, an example in which the start byte SB, the multi-bank information SA ′, and the refresh bank information SA are input from the dedicated terminal SP as an example among various parameters is shown.

2ビットのスタートバイトSBが専用端子SP0から入力され,入力バッファ1790−0に取り込まれ,モードレジスタ1791−0に設定される。モードレジスタ1791−0への設定は,モードレジスタセットパルスMRSPZに応答して行われる。ただし,イネーブル信号1800がディセーブルの場合は,モードレジスタ1791−0はデフォルト値(SB=0,スタートバイト=0)に設定され,入力バッファ1790−0の出力はクランプされる。このイネーブル信号1800は,図示しないモードレジスタMRS,ボンディングオプション,フューズ回路などから供給される。   A 2-bit start byte SB is input from the dedicated terminal SP0, taken into the input buffer 1790-0, and set in the mode register 1791-0. Setting to the mode register 1791-0 is performed in response to the mode register set pulse MRSPZ. However, when the enable signal 1800 is disabled, the mode register 1791-0 is set to a default value (SB = 0, start byte = 0), and the output of the input buffer 1790-0 is clamped. This enable signal 1800 is supplied from a mode register MRS, a bonding option, a fuse circuit, etc. (not shown).

同様に,2ビットのマルチバンク情報SA’が専用端子SP1から入力され,入力バッファ1790−1に取り込まれ,モードレジスタ1791−1に設定される。モードレジスタ1791−1への設定は,モードレジスタセットパルスMRSPZに応答して行われる。イネーブル信号1801がディセーブルの場合は,上記と同様にモードレジスタの値はデフォルト値(SA'=0,1バンクのみ選択)に設定され,入力バッファの出力はクランプされる。   Similarly, 2-bit multi-bank information SA 'is input from the dedicated terminal SP1, is taken into the input buffer 1790-1, and is set in the mode register 1791-1. Setting to the mode register 1791-1 is performed in response to the mode register set pulse MRSPZ. When the enable signal 1801 is disabled, the value of the mode register is set to a default value (SA ′ = 0, only one bank is selected), and the output of the input buffer is clamped as described above.

同様に,2ビットのリフレッシュバンク情報SAも専用端子SP2から入力されモードレジスタ179102に設定される。また,イネーブル信号1802がディセーブルの場合は,上記と同様にモードレジスタの値はデフォルト値(SA=3,全バンク選択)に設定され,入力バッファの出力はクランプされる。これらの各2ビットの情報SB,SA’,SAはそれぞれ2つの専用端子から並列に入力される。または,1つの専用端子からシリアルに入力されてもよい。   Similarly, the 2-bit refresh bank information SA is also input from the dedicated terminal SP2 and set in the mode register 179102. When the enable signal 1802 is disabled, the value of the mode register is set to the default value (SA = 3, all banks are selected) as described above, and the output of the input buffer is clamped. Each of these 2-bit information SB, SA ', SA is inputted in parallel from two dedicated terminals. Alternatively, it may be input serially from one dedicated terminal.

図181は,モードレジスタの一例を示す図である。この例では,前述のパラメータをアドレス端子から入力しモードレジスタに設定する。図中,モードレジスタ領域1810,1811,1812が示されている。それぞれバンクアドレスBA0,BA1の組み合わせと,同期クロックの立ち上がりエッジRiseEdgeと立ち下がりエッジFallEdgeとに対応して,アドレス端子A0〜A6の入力値と設定値とが示されている。   FIG. 181 is a diagram illustrating an example of a mode register. In this example, the aforementioned parameters are input from the address terminal and set in the mode register. In the figure, mode register areas 1810, 1811 and 1812 are shown. The input values and set values of the address terminals A0 to A6 are shown corresponding to the combination of the bank addresses BA0 and BA1, and the rising edge RiseEdge and falling edge FallEdge of the synchronous clock.

まず,モードレジスタセットコマンドMRSと共にバンクアドレスBA0=0,BA1=0が入力されると,モードレジスタ1810に,クロックの立ち上がりエッジRiseEdgeでは,アドレス端子A0-A2から入力されるバース長と,アドレス端子A3-A5から入力されるリードレイテンシがそれぞれ設定され,立ち下がりエッジFallEdgeでは,アドレス端子A0-A2から入力されるライトリカバリ値が設定される。   First, when the bank address BA0 = 0, BA1 = 0 is input together with the mode register set command MRS, the burst length input from the address terminals A0-A2 and the address terminal are input to the mode register 1810 at the rising edge RiseEdge of the clock. The read latency input from A3-A5 is set, and the write recovery value input from address terminals A0-A2 is set at the falling edge FallEdge.

次に,モードレジスタセットコマンドMRSと共にバンクアドレスBA0=1,BA1=0が入力されると,モードレジスタ1811に,クロックの立ち上がりエッジRiseEdgeでは,アドレス端子A0-A5から入力される値(図示)がそれぞれ設定され,立ち下がりエッジFallEdgeでは,アドレス端子A0-A4それぞれから入力されるバイトシフト機能フラグBS,バイト組み合わせ情報の第2情報BMR,マルチバンク機能フラグMB,バックグランドリフレッシュ機能フラグBR,メモリマッピング情報ARが設定される。なお,これらはイネーブルかディセーブルかを示す情報のみを図示したが、上記で説明してきたように,バイトシフト情報SB,マルチバンク情報SA’,リフレッシュバンク情報SA又はリフレッシュブロック数RBC等を指定する情報をモードレジスタに設定することも可能である。   Next, when the bank address BA0 = 1, BA1 = 0 is inputted together with the mode register set command MRS, values (illustrated) inputted from the address terminals A0-A5 at the rising edge RiseEdge of the clock are inputted to the mode register 1811. Byte shift function flag BS input from address terminals A0 to A4, second information BMR of byte combination information, multibank function flag MB, background refresh function flag BR, memory mapping at falling edge FallEdge respectively set Information AR is set. Although only the information indicating whether these are enabled or disabled is illustrated, the byte shift information SB, the multi-bank information SA ′, the refresh bank information SA, the refresh block number RBC, and the like are designated as described above. It is also possible to set information in the mode register.

さらに,モードレジスタセットコマンドMRSと共にバンクアドレスBA1=0,BA1=1が入力されると,モードレジスタ1812に,クロックの立ち上がりエッジRiseEdgeでは,アドレス端子A0-A5から入力されるロウアドレスステップ情報RSが,立ち下がりエッジFallEdgeでも,アドレス端子A0- A5から入力されるロウアドレスステップ情報RSが設定される。   Further, when the bank address BA1 = 0, BA1 = 1 is input together with the mode register set command MRS, the row address step information RS input from the address terminals A0-A5 is input to the mode register 1812 at the rising edge RiseEdge of the clock. The row address step information RS input from the address terminals A0 to A5 is also set at the falling edge FallEdge.

なお,バンクアドレスBA0=1,BA1=1のときのモードレジスタ領域は試験時の設定に利用される。また,表1813は,バンクアドレスBA0,BA1の組み合わせに対する,通常モードレジスタMRSと拡張モードレジスタEMRSとを示す。さらに,表1814〜1819は,モードレジスタ領域1811におけるアドレス端子A0〜A6の値とそれぞれの設定値とを示す。   Note that the mode register area when the bank address BA0 = 1, BA1 = 1 is used for setting during the test. Table 1813 shows a normal mode register MRS and an extended mode register EMRS for combinations of bank addresses BA0 and BA1. Further, Tables 1814 to 1819 show values of address terminals A0 to A6 in the mode register area 1811 and respective set values.

図182は,イネーブル信号生成回路の一例を示す図である。図182(A)は,ボンディングオプションにより設定されるイネーブル信号生成回路1820,1821を示す。イネーブル信号生成回路1820は,ボンディングオプション端子1825と電源端子Vddとグランド端子Vssとを有し,ボンディングオプション端子1825と電源端子Vdd間をボンディングワイヤで接続することで,イネーブル信号1794がVddになり,特殊なアクセス機能をイネーブルにする。一方,イネーブル信号生成回路1821は,ボンディングオプション端子1825とグランド端子Vssとの間をボンディングワイヤで接続することで,イネーブル信号1794がVssになり,アクセス機能をディセーブルにする。   FIG. 182 is a diagram illustrating an example of the enable signal generation circuit. FIG. 182 (A) shows enable signal generation circuits 1820 and 1821 set by the bonding option. The enable signal generation circuit 1820 includes a bonding option terminal 1825, a power supply terminal Vdd, and a ground terminal Vss. By connecting the bonding option terminal 1825 and the power supply terminal Vdd with a bonding wire, the enable signal 1794 becomes Vdd. Enable special access features. On the other hand, the enable signal generation circuit 1821 connects the bonding option terminal 1825 and the ground terminal Vss with a bonding wire, so that the enable signal 1794 becomes Vss and disables the access function.

図182(B)は,フューズFSにより設定されるイネーブル信号発声回路1822,1823を示す。イネーブル信号発声回路1822は,電源Vdd,グランド電源Vss,抵抗R1,フューズFSからなり,フューズFSを溶断することでイネーブル信号1794がVddになりイネーブル状態になる。イネーブル信号発声回路1823は,フューズFSを溶断しないことでイネーブル信号1794がVssになりディセーブル状態になる。   FIG. 182 (B) shows enable signal utterance circuits 1822 and 1823 set by the fuse FS. The enable signal utterance circuit 1822 includes a power supply Vdd, a ground power supply Vss, a resistor R1, and a fuse FS. By blowing the fuse FS, the enable signal 1794 becomes Vdd and is enabled. The enable signal utterance circuit 1823 is disabled because the enable signal 1794 becomes Vss by not blowing the fuse FS.

図183は,シングルデータレート(SDR)における入力方法を示す図である。ここでは,パラメータが専用端子(Special Pin0,1)から入力される例である。図中(A)は,クロックCLK(実線)の立ち上がりエッジに同期して,バックグランドリフレッシュコマンドBRENと共に,バンクアドレス端子からバンクアドレスBA0,BA1が,専用端子からリフレッシュバンク情報SA0,SA1がそれぞれ入力される。図中(B)は,クロックCLKの立ち上がりエッジに同期して,アクティブコマンドACTと共に,バンクアドレス端子からバンクアドレスBA0,BA1が,専用端子からマルチバンク情報SA’0,SA’1がそれぞれ入力される。図中(C)は,クロックCLKの立ち上がりエッジに同期して,リードまたはライトコマンドRD/WRと共に,バンクアドレス端子からバンクアドレスBA0,BA1が,専用端子からスタートバイト情報SB0,SB1がそれぞれ入力される。図示しないが,クロックCLKの立ち上がりエッジに同期して,拡張モードレジスタセットコマンドEMRSと共に,専用端子からRBL,RBC,AR,RST,CSなどのパラメータを入力する。   FIG. 183 is a diagram illustrating an input method in a single data rate (SDR). In this example, parameters are input from dedicated terminals (Special Pin 0, 1). In the figure, (A) is synchronized with the rising edge of the clock CLK (solid line), together with the background refresh command BREN, the bank address BA0 and BA1 are input from the bank address terminal, and the refresh bank information SA0 and SA1 are input from the dedicated terminal, respectively. Is done. In FIG. 6B, in synchronization with the rising edge of the clock CLK, the bank address BA0 and BA1 are input from the bank address terminal and the multi-bank information SA′0 and SA′1 are input from the dedicated terminal, together with the active command ACT. The (C) in the figure, in synchronization with the rising edge of the clock CLK, the bank address BA0, BA1 is input from the bank address terminal, and the start byte information SB0, SB1 is input from the dedicated terminal together with the read or write command RD / WR. The Although not shown, parameters such as RBL, RBC, AR, RST, and CS are input from a dedicated terminal together with the extended mode register set command EMRS in synchronization with the rising edge of the clock CLK.

図184は,ダブルデータレート(DDR)における入力方法を示す図である。この例もパラメータが専用端子(Special Pin)から入力される例である。各コマンドとパラメータの関係は,図183と同じである。図184では,ダブルデータレートであるので,クロックの立ち上がりエッジと立ち下がりエッジに同期して,バンクアドレスBA0,1とパラメータSA0,SA1,SA’0,SA’1,SB0,SB1が入力される。   FIG. 184 is a diagram illustrating an input method at a double data rate (DDR). This example is also an example in which parameters are input from a special terminal (Special Pin). The relationship between each command and parameter is the same as in FIG. In FIG. 184, since it is a double data rate, bank addresses BA0, 1 and parameters SA0, SA1, SA′0, SA′1, SB0, SB1 are input in synchronization with the rising edge and falling edge of the clock. .

次に,専用端子を利用せずに不使用状態のアドレス端子からパラメータを入力する方法について説明する。   Next, a method for inputting parameters from an unused address terminal without using a dedicated terminal will be described.

図185は,ADQマルチプレクス入力方式における入力方法を示す図である。ADQマルチプレクス入力方式では,アドレス入力端子とデータ入出力端子が共通端子で構成され,コマンドと共にアドレスが入力され,それに続いてデータが入出力される。そして,アドレス端子数よりデータ端子数のほうが多い場合は,コマンド入力時にアドレスと共にパラメータを共通端子から入力することができる。   FIG. 185 is a diagram illustrating an input method in the ADQ multiplex input method. In the ADQ multiplex input method, an address input terminal and a data input / output terminal are constituted by a common terminal, an address is input together with a command, and data is subsequently input / output. If the number of data terminals is larger than the number of address terminals, parameters can be input from the common terminal together with the address when a command is input.

図185(A)は入力回路構成を示しており,共通端子ADQ(A/DQ0〜A/DQ20,21ビット)とデータ端子DQ(DQ21〜DQ31,11ビット)が設けられ,共通端子ADQはアドレスとデータが共有し,データ端子DQはデータのみが使用する。そこで,このデータ端子DQを利用してパラメータを入力することができる。共通端子ADQは,アドレスバッファ1850と入出力バッファ1852−0に接続され,それぞれアドレスラッチ回路1851,メモリセル1853−0に接続される。また,データ端子DQは,専用バッファ1854と入出力バッファ1852−1に接続され,それぞれモードセレクタ1855とメモリセル1853−1に接続される。   FIG. 185 (A) shows an input circuit configuration, in which a common terminal ADQ (A / DQ0 to A / DQ20, 21 bits) and a data terminal DQ (DQ21 to DQ31, 11 bits) are provided, and the common terminal ADQ is an address. The data terminal DQ is used only by the data. Therefore, parameters can be input using this data terminal DQ. The common terminal ADQ is connected to the address buffer 1850 and the input / output buffer 1852-0, and is connected to the address latch circuit 1851 and the memory cell 1853-0, respectively. The data terminal DQ is connected to the dedicated buffer 1854 and the input / output buffer 1852-1, and is connected to the mode selector 1855 and the memory cell 1853-1, respectively.

図185(B)はタイミングチャートを示し,SDRの例である。まず,ライトコマンドWRと共に,共通端子ADQから21ビットのアドレスADDが,データ端子DQからパラメータSPがそれぞれ入力され,アドレスADDはアドレスバッファ1850に,パラメータSPは専用バッファ1854にそれぞれ取り込まれる。コマンドWRから3クロック後に共通端子ADQとデータ端子DQとから32ビットのデータが入力される。コマンドがリードコマンドRDであればデータが出力される。コマンドと共に入力されるパラメータSPは,例えばマルチバンク情報SA’,リフレッシュバンク情報SA,スタートバイトSBなどである。   FIG. 185B shows a timing chart and is an example of SDR. First, together with the write command WR, a 21-bit address ADD is input from the common terminal ADQ, and a parameter SP is input from the data terminal DQ. The address ADD is input to the address buffer 1850 and the parameter SP is input to the dedicated buffer 1854. After 3 clocks from the command WR, 32-bit data is input from the common terminal ADQ and the data terminal DQ. If the command is a read command RD, data is output. The parameters SP input together with the command are, for example, multibank information SA ', refresh bank information SA, start byte SB, and the like.

ADQマルチプレクスでは,SDRAMのようにアクティブコマンドとライトコマンドとを時分割で入力せずに,コマンドと共にロウ,コラムアドレスを一度に入力し,その後データを入出力する。よって,コマンドと共にアドレスが入力されるときに,不使用のデータ端子DQからパラメータを入力することができる。   In the ADQ multiplex, the active command and the write command are not input in a time division manner as in the SDRAM, but the row and column addresses are input at a time together with the command, and then the data is input / output. Therefore, when an address is input together with a command, a parameter can be input from an unused data terminal DQ.

図186は,アドレスマルチプレクス入力方式における入力方法を示す図である。アドレスマルチプレクス入力方式はSDRAMなどの入力方式であり,アドレス端子Addがロウアドレスとコラムアドレスとで共有され,RASサイクルとCASサイクルでそれぞれロウアドレスとコラムアドレスが共通アドレス端子Addから入力される。ただし,メモリセルアレイの構成上,ロウアドレス数がコラムアドレス数よりも多い場合は,CASサイクル時に使用していないアドレス端子からパラメータを入力することができる。例えば,スタートバイトSBがCASサイクルで入力される。   FIG. 186 is a diagram illustrating an input method in the address multiplex input method. The address multiplex input method is an input method such as SDRAM, where the address terminal Add is shared by the row address and the column address, and the row address and the column address are input from the common address terminal Add in the RAS cycle and CAS cycle, respectively. However, if the number of row addresses is larger than the number of column addresses due to the configuration of the memory cell array, parameters can be input from address terminals that are not used during the CAS cycle. For example, the start byte SB is input in the CAS cycle.

図186(A)は入力回路構成を示し,アドレス端子Add(Add0〜7,8ビット)は,アドレスバッファ1850−0,1850−1に接続され,それらはそれぞれロウアドレスラッチ回路1851−0とコラムアドレスラッチ回路1851−1とに接続される。また,アドレス端子Add(Add8〜13,6ビット)は,アドレスバッファ1850−2とスタートバイトバッファ1860とに接続され,それらはそれぞれロウアドレスラッチ回路1851−2とスタートバイトセレクタ回路1861とに接続される。   FIG. 186 (A) shows an input circuit configuration, and address terminals Add (Add0 to 7 and 8 bits) are connected to address buffers 1850-0 and 1850-1, which are respectively connected to a row address latch circuit 1851-0 and a column. It is connected to the address latch circuit 1851-1. The address terminal Add (Add8 to 13, 6 bits) is connected to an address buffer 1850-2 and a start byte buffer 1860, which are connected to a row address latch circuit 1851-2 and a start byte selector circuit 1861, respectively. The

図186(B)は,タイミングチャートを示し,SDRの例である。まず,RASサイクルでアクティブコマンドACTと共に,14ビットのロウアドレスRAがアドレス端子Add[7:0],Add[13:8]から入力され,CASサイクルでリードまたはライトコマンドRD/WRと共に,8ビットのコラムアドレスCAがアドレス端子Add[7:0]から,スタートバイトSB[1:0]がアドレス端子Add[13:8]のいずれかの端子からそれぞれ入力される。   FIG. 186B shows a timing chart and is an example of SDR. First, a 14-bit row address RA is input from the address terminals Add [7: 0] and Add [13: 8] together with the active command ACT in the RAS cycle, and 8 bits together with the read or write command RD / WR in the CAS cycle. Column address CA is input from address terminal Add [7: 0], and start byte SB [1: 0] is input from one of address terminals Add [13: 8].

図187は,ダブルデータレート(DDR)でアドレスマルチプレクス方式における入力方法を示す図である。アクティブコマンドACTが入力されるRASサイクルで,クロックの立ち上がりエッジに同期して14ビットのロウアドレスRAがアドレス端子Add[7:0],Add[13:8]から入力され,クロックの立ち下がりエッジに同期してパラメータSPがアドレス端子Add[7:0],Add[13:8]から入力される。このパラメータSPは,例えばロウアドレスステップ情報RS,メモリマップ情報AR,マルチバンク情報SA’などである。   FIG. 187 is a diagram illustrating an input method in the address multiplex method at the double data rate (DDR). In the RAS cycle in which the active command ACT is input, a 14-bit row address RA is input from the address terminals Add [7: 0] and Add [13: 8] in synchronization with the rising edge of the clock, and the falling edge of the clock The parameter SP is input from the address terminals Add [7: 0] and Add [13: 8] in synchronization with the above. The parameter SP is, for example, row address step information RS, memory map information AR, multibank information SA ′, and the like.

また,リードまたはライトコマンドRD/WRが入力されるCASサイクルで,クロックの立ち上がりエッジに同期して8ビットのコラムアドレスCAがアドレス端子Add[7:0]から入力され,クロックの立ち下がりエッジに同期してパラメータSPがアドレス端子Add[7:0]のいずれかの端子から入力される。このパラメータSPは,例えばスタートバイトSB,コラムアドレスステップ情報CST,アクセス矩形サイズ情報(W,H),バイト組み合わせ第2情報BMR(UP,DOWN,ALL,EVEN,ODD)などである。   Further, in the CAS cycle in which the read or write command RD / WR is input, the 8-bit column address CA is input from the address terminal Add [7: 0] in synchronization with the rising edge of the clock, and at the falling edge of the clock. In synchronization, the parameter SP is input from any one of the address terminals Add [7: 0]. The parameter SP is, for example, a start byte SB, column address step information CST, access rectangle size information (W, H), byte combination second information BMR (UP, DOWN, ALL, EVEN, ODD).

DDR,アドレスマルチプレクス方式であれば,入力タイミングが合計で4回あるので,使用されないアドレス端子を利用してパラメータを入力することができる。   In the case of the DDR and address multiplex system, since the input timing is four times in total, parameters can be input using an unused address terminal.

図188は,ダブルデータレート(DDR)でアドレスマルチプレクス方式における入力方法を示す図である。この例では,アドレス端子の数を8ビットのAdd[5:0],Add[7:6]に減らした例である。DDR,アドレスマルチプレクス方式では,4回の入力タイミングがあるので,このようにアドレス端子を減らしてもなお不使用中のアドレス端子が存在する。よって,その不使用中のアドレス端子からパラメータを入力することができる。   FIG. 188 is a diagram illustrating an input method in the address multiplex method at the double data rate (DDR). In this example, the number of address terminals is reduced to 8-bit Add [5: 0] and Add [7: 6]. In the DDR and address multiplex systems, there are four input timings, so there are still unused address terminals even if the address terminals are reduced in this way. Therefore, parameters can be input from the unused address terminals.

まず,アクティブコマンドACTが入力されるRASサイクルで,クロックの立ち上がりエッジに同期して8ビットのロウアドレスRAがアドレス端子Add[5:0],Add[7:6]から入力され,クロックの立ち下がりエッジに同期して6ビットのロウアドレスRAがアドレス端子Add[5:0]から入力され,パラメータSPがアドレス端子Add[7:6]から入力される。このパラメータSPは,例えばマルチバンク情報SA’,ロウアドレスステップ情報RS,メモリマップ情報ARなどである。   First, in the RAS cycle in which the active command ACT is input, the 8-bit row address RA is input from the address terminals Add [5: 0] and Add [7: 6] in synchronization with the rising edge of the clock, and the rising edge of the clock. In synchronization with the falling edge, a 6-bit row address RA is input from the address terminal Add [5: 0], and the parameter SP is input from the address terminal Add [7: 6]. The parameter SP is, for example, multibank information SA ′, row address step information RS, memory map information AR, and the like.

また,リードまたはライトコマンドRD/WRが入力されるCASサイクルで,クロックの立ち上がりエッジに同期して8ビットのコラムアドレスCAがアドレス端子Add[5:0],Add[7:6]から入力され,クロックの立ち下がりエッジに同期してパラメータSPがアドレス端子Add[5:0],Add[7:6]のいずれかの端子から入力される。このパラメータSPは,例えばスタートバイトSB,コラムアドレスステップ情報CST,アクセス矩形サイズ情報(W,H),バイト組み合わせ第2情報BMR(UP,DOWN,ALL,EVEN,ODD)などである。   In addition, in a CAS cycle in which a read or write command RD / WR is input, an 8-bit column address CA is input from address terminals Add [5: 0] and Add [7: 6] in synchronization with the rising edge of the clock. The parameter SP is input from one of the address terminals Add [5: 0] and Add [7: 6] in synchronization with the falling edge of the clock. The parameter SP is, for example, a start byte SB, column address step information CST, access rectangle size information (W, H), byte combination second information BMR (UP, DOWN, ALL, EVEN, ODD).

以上説明したとおり,バイトバウンダリアクセス,マルチバンクアクセス,バックグランドリフレッシュなどの特殊な機能の実現に必要なパラメータは,専用端子からまたは不使用状態のアドレス端子から入力することができる。メモリ装置の入力方式に対応した最適なパラメータの入力方法が選択される。   As described above, parameters necessary for realizing special functions such as byte boundary access, multi-bank access, and background refresh can be input from a dedicated terminal or from an unused address terminal. An optimum parameter input method corresponding to the input method of the memory device is selected.

以上の実施の形態をまとめると,次の付記のとおりである。   The above embodiment is summarized as follows.

(付記1)
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,
バックグランドリフレッシュコマンドとリフレッシュバースト長情報に応答して,リフレッシュ対象バンク内のメモリコアに該リフレッシュバースト長情報に対応する回数のリフレッシュ動作を連続して実行させる制御回路とを有するメモリ装置。
(Appendix 1)
A plurality of banks each having a memory core including a memory cell array and selected by a bank address;
A memory device comprising: a control circuit for causing a memory core in a refresh target bank to continuously perform a refresh operation corresponding to the refresh burst length information in response to a background refresh command and refresh burst length information.

(付記2)
メモリコントローラからのコマンドに応答して動作するメモリ装置において,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,
バックグランドリフレッシュコマンドに応答して,前記メモリコントローラにより設定されたリフレッシュ対象バンク内のメモリコアに,前記メモリコントローラにより設定されたリフレッシュバースト長の回数のリフレッシュ動作を連続して実行させ,前記リフレッシュ対象バンク内のメモリコアが前記リフレッシュ動作を実行中に,通常動作コマンドに応答して,前記リフレッシュ対象バンク以外のバンクであって前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させる制御回路とを有するメモリ装置。
(Appendix 2)
In a memory device that operates in response to a command from a memory controller,
A plurality of banks each having a memory core including a memory cell array and selected by a bank address;
In response to a background refresh command, the memory core in the refresh target bank set by the memory controller continuously executes the refresh operation for the number of refresh burst lengths set by the memory controller, and the refresh target While the memory core in the bank is executing the refresh operation, in response to the normal operation command, the normal operation command is sent to the memory core in the bank other than the refresh target bank and selected by the bank address. And a control circuit that executes a normal memory operation corresponding to the memory device.

(付記3)
付記2において,
さらに,前記複数のバンクそれぞれに,または前記複数のバンクの複数組それぞれに,対応するバンク内のリフレッシュ対象アドレスをカウントするリフレッシュアドレスカウンタを有し,
前記制御回路は,
前記バックグランドリフレッシュコマンドに応答して,前記設定されたリフレッシュ対象バンクにリフレッシュ制御信号を出力するバックグランドリフレッシュ制御部と,
前記リフレッシュバースト長が設定されるリフレッシュバースト長レジスタと,
前記複数のバンクそれぞれに設けられ,前記バックグランドリフレッシュ制御信号に応答して,前記リフレッシュバースト長レジスタに設定されたリフレッシュバースト長の回数だけ,前記リフレッシュアドレスカウンタのアドレスについて前記メモリコアにリフレッシュ動作を実行させるコアコントローラとを有することを特徴とするメモリ装置。
(Appendix 3)
In Appendix 2,
Further, each of the plurality of banks or each of the plurality of sets of the plurality of banks has a refresh address counter that counts refresh target addresses in the corresponding banks,
The control circuit is
A background refresh control unit that outputs a refresh control signal to the set refresh target bank in response to the background refresh command;
A refresh burst length register in which the refresh burst length is set;
Provided in each of the plurality of banks and in response to the background refresh control signal, the memory core performs a refresh operation for the address of the refresh address counter by the number of refresh burst lengths set in the refresh burst length register. A memory device comprising: a core controller to be executed.

(付記4)
付記2において,
1回のリフレッシュサイクルで同時に活性化されるメモリブロック数を示すリフレッシュブロック数が供給され,
前記制御回路は,前記バックグランドリフレッシュコマンドに応答して,前記リフレッシュブロック数のメモリブロックを同時に活性化するリフレッシュ動作を,前記設定されたリフレッシュバースト長の回数,リフレッシュ対象バンクに実行させることを特徴とするメモリ装置。
(Appendix 4)
In Appendix 2,
A refresh block number indicating the number of memory blocks activated simultaneously in one refresh cycle is supplied,
In response to the background refresh command, the control circuit causes the refresh target bank to perform a refresh operation for simultaneously activating the memory blocks having the number of refresh blocks for the set number of refresh burst lengths. A memory device.

(付記5)
付記3において,
前記バックグランドリフレッシュコマンドと同時に前記リフレッシュバースト長を入力し,前記リフレッシュバースト長レジスタが前記バンクに対応して設けられ,入力された前記リフレッシュバースト長がリフレッシュ対象バンク内のリフレッシュバースト長レジスタに設定されることを特徴とするメモリ装置。
(Appendix 5)
In Appendix 3,
The refresh burst length is input simultaneously with the background refresh command, the refresh burst length register is provided corresponding to the bank, and the input refresh burst length is set in the refresh burst length register in the refresh target bank. A memory device.

(付記6)
付記4において,
さらに,リフレッシュブロック数レジスタを有し,
前記バックグランドリフレッシュコマンドと同時に前記リフレッシュブロック数を入力し,
前記入力されたリフレッシュブロック数が前記リフレッシュブロック数レジスタに設定されることを特徴とするメモリ装置。
(Appendix 6)
In Appendix 4,
In addition, it has a refresh block number register,
Enter the number of refresh blocks simultaneously with the background refresh command,
The memory device, wherein the inputted number of refresh blocks is set in the refresh block number register.

(付記7)
付記3において,
前記リフレッシュバースト長レジスタがモードレジスタ内に設けられ,
モードレジスタ設定コマンドと同時に前記リフレッシュバースト長を入力し,
入力された前記リフレッシュバースト長が前記モードレジスタ内のリフレッシュバースト長レジスタに設定されるメモリ装置。
(Appendix 7)
In Appendix 3,
The refresh burst length register is provided in a mode register;
Enter the refresh burst length simultaneously with the mode register setting command,
A memory device in which the inputted refresh burst length is set in a refresh burst length register in the mode register.

(付記8)
付記4において,
リフレッシュブロック数レジスタがモードレジスタ内に設けられ,
モードレジスタ設定コマンドと同時に前記リフレッシュブロック数を入力し,
入力されたリフレッシュブロック数が当該モードレジスタ内のリフレッシュブロック数レジスタに設定されるメモリ装置。
(Appendix 8)
In Appendix 4,
A refresh block number register is provided in the mode register,
Enter the number of refresh blocks at the same time as the mode register setting command.
A memory device in which the number of input refresh blocks is set in a refresh block number register in the mode register.

(付記9)
付記3において,
前記コアコントローラは,前記リフレッシュバースト長の回数のリフレッシュ動作中に,新たに入力されたバックグランドリフレッシュコマンドに応答して,前記リフレッシュ動作の残り回数に前記リフレッシュバースト長を加えた回数,前記リフレッシュ対象バンク内のメモリコアに前記リフレッシュ動作を連続して実行させることを特徴とするメモリ装置。
(Appendix 9)
In Appendix 3,
The core controller responds to a newly input background refresh command during the refresh burst length times, and the refresh target is the number of times the refresh burst length is added to the remaining number of refresh operations. A memory device characterized by causing a memory core in a bank to continuously execute the refresh operation.

(付記10)
付記3において,
前記コアコントローラは,前記リフレッシュバースト長の回数のリフレッシュ動作中に,新たに入力されたバックグランドリフレッシュコマンドに応答して,前記リフレッシュ動作の残り回数にかかわらず,前記リフレッシュバースト長の回数,前記リフレッシュ対象バンク内のメモリコアに前記リフレッシュ動作を連続して実行させることを特徴とするメモリ装置。
(Appendix 10)
In Appendix 3,
The core controller responds to a newly input background refresh command during the refresh burst length times refresh operation, regardless of the remaining number of refresh operations, the refresh burst length times, A memory device characterized by causing a memory core in a target bank to continuously execute the refresh operation.

(付記11)
付記3において,
前記コアコントローラは,リフレッシュオールコマンドに応答して,前記リフレッシュアドレスカウンタ内のアドレスから残りのアドレスまで,前記リフレッシュ対象バンク内のメモリコアにリフレッシュ動作を繰り返し実行させることを特徴とするメモリ装置。
(Appendix 11)
In Appendix 3,
In response to a refresh all command, the core controller causes a memory core in the refresh target bank to repeatedly perform a refresh operation from an address in the refresh address counter to a remaining address.

(付記12)
付記3において,
前記コアコントローラは,前記リフレッシュバースト長の回数のリフレッシュ動作中に,バックグランドリフレッシュ停止コマンドに応答して,前記リフレッシュ対象バンク内のメモリコアにリフレッシュ動作を停止させることを特徴とするメモリ装置。
(Appendix 12)
In Appendix 3,
The memory device, wherein the core controller stops the refresh operation in the memory core in the refresh target bank in response to a background refresh stop command during the refresh operation of the refresh burst length.

(付記13)
付記12において,
前記コアコントローラは,前記バックグランドリフレッシュ停止コマンドに応答して,前記リフレッシュ対象バンク内のメモリコアに前記実行中のリフレッシュ動作を終了させた後に,次のリフレッシュ動作を開始させないことを特徴とするメモリ装置。
(Appendix 13)
In Appendix 12,
In response to the background refresh stop command, the core controller does not start the next refresh operation after the memory core in the refresh target bank ends the refresh operation being executed. apparatus.

(付記14)
付記3において,
モードレジスタへのアクティブリフレッシュ連動フラグの設定に基づき,前記バックグランドリフレッシュ制御部は,通常メモリ動作コマンドに応答して,入力されるバンクアドレスに対応するアクセス対象バンク以外のバンクに,前記バックグランドリフレッシュ制御信号を供給することを特徴とするメモリ装置。
(Appendix 14)
In Appendix 3,
Based on the setting of the active refresh interlock flag in the mode register, the background refresh control unit responds to the normal memory operation command to the background refresh in a bank other than the access target bank corresponding to the input bank address. A memory device that supplies a control signal.

(付記15)
付記3において,
前記コアコントローラは,リフレッシュ動作毎にカウントアップするリフレッシュバースト長カウンタを有し,
前記コアコントローラは,前記バックグランドリフレッシュコマンドに応答して,前記リフレッシュバースト長カウンタをリセットし,当該リフレッシュバースト長カウンタのカウンタ値が前記リフレッシュバースト長レジスタに設定されたリフレッシュバースト長に達するまで,前記リフレッシュ対象バンク内のメモリコアに前記リフレッシュ動作を実行させることを特徴とするメモリ装置。
(Appendix 15)
In Appendix 3,
The core controller has a refresh burst length counter that counts up for each refresh operation,
The core controller resets the refresh burst length counter in response to the background refresh command, and until the counter value of the refresh burst length counter reaches the refresh burst length set in the refresh burst length register. A memory device characterized by causing a memory core in a refresh target bank to execute the refresh operation.

(付記16)
付記3において,
前記コアコントローラは,リフレッシュ動作毎にカウントダウンするリフレッシュバースト長カウンタを有し,
前記コアコントローラは,前記バックグランドリフレッシュコマンドに応答して,前記リフレッシュバースト長カウンタに前記リフレッシュバースト長をセットし,当該リフレッシュバースト長カウンタのカウンタ値がゼロに達するまで,前記リフレッシュ対象バンク内のメモリコアに前記リフレッシュ動作を実行させることを特徴とするメモリ装置。
(Appendix 16)
In Appendix 3,
The core controller has a refresh burst length counter that counts down for each refresh operation,
In response to the background refresh command, the core controller sets the refresh burst length in the refresh burst length counter, and the memory in the refresh target bank until the counter value of the refresh burst length counter reaches zero. A memory device, characterized by causing a core to perform the refresh operation.

(付記17)
メモリコントローラからのコマンドに応答して動作するメモリ装置において,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,
前記バンク内のメモリセルアレイの動作を制御する制御回路とを有し,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
前記制御回路は,前記二次元配列データを水平方向にアクセスする水平アクセス期間中において,当該水平アクセスに対応する通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させ,バックグランドリフレッシュコマンドに応答して,前記水平アクセス対象バンク以外のリフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させることを特徴とするメモリ装置。
(Appendix 17)
In a memory device that operates in response to a command from a memory controller,
A plurality of banks each having a memory core including a memory cell array and selected by a bank address;
A control circuit for controlling the operation of the memory cell array in the bank,
Based on memory mapping in which a memory logical space has a plurality of page areas selected by the bank address and row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses The plurality of banks store two-dimensional array data,
In a horizontal access period in which the two-dimensional array data is accessed in the horizontal direction, the control circuit responds to a normal operation command corresponding to the horizontal access to a memory core in the bank selected by the bank address. A memory device for executing a normal memory operation corresponding to the normal operation command and causing a memory core in a refresh target bank other than the horizontal access target bank to execute a refresh operation in response to a background refresh command; .

(付記18)
付記17において,
前記制御回路は,前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセス期間中において,前記通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンクと当該選択されたバンクに隣接するバンクとの中のメモリコアに,前記通常メモリ動作を実行させ,当該通常メモリ動作中においてリフレッシュ動作を禁止することを特徴とするメモリ装置。
(Appendix 18)
In Appendix 17,
In the rectangular access period for accessing the two-dimensional array data to an arbitrary rectangular area, the control circuit responds to the normal operation command to the bank selected by the bank address and the selected bank. A memory device characterized by causing a memory core in an adjacent bank to execute the normal memory operation and prohibiting a refresh operation during the normal memory operation.

(付記19)
メモリコントローラと,
前記メモリコントローラからのコマンドに応答して動作するメモリ装置とを有し,
前記メモリ装置は,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,
バックグランドリフレッシュコマンドに応答して,前記メモリコントローラにより設定されたリフレッシュ対象バンク内のメモリコアに,前記メモリコントローラにより設定されたリフレッシュバースト長の回数のリフレッシュ動作を連続して実行させ,前記リフレッシュ対象バンク内のメモリコアが前記リフレッシュ動作を実行中に,通常動作コマンドに応答して,前記リフレッシュ対象バンク以外のバンクであって前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させる制御回路とを有することを特徴とするメモリシステム。
(Appendix 19)
A memory controller;
A memory device that operates in response to a command from the memory controller;
The memory device includes:
A plurality of banks each having a memory core including a memory cell array and selected by a bank address;
In response to a background refresh command, the memory core in the refresh target bank set by the memory controller continuously executes the refresh operation for the number of refresh burst lengths set by the memory controller, and the refresh target While the memory core in the bank is executing the refresh operation, in response to the normal operation command, the normal operation command is sent to the memory core in the bank other than the refresh target bank and selected by the bank address. And a control circuit for executing a normal memory operation corresponding to the memory system.

(付記20)
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,前記複数のバンク内のメモリコアの動作を制御する制御回路とを有するメモリ装置を制御するメモリコントローラにおいて,
上位装置からのアクセス要求に応答して,当該アクセス要求に対応する通常動作コマンドをバンクアドレスと共に前記メモリ装置に供給して,当該バンクアドレスで選択される通常アクセス対象バンク内のメモリコアに通常動作を実行させるシーケンサを有し,
前記シーケンサは,前記アクセス要求に応答して,前記通常アクセス対象バンク以外のバンクを特定するリフレッシュバンク情報と,リフレッシュ動作回数を指定するリフレッシュバースト長とを,バックグランドリフレッシュコマンドと共に前記メモリ装置に供給して,前記通常動作中に,前記リフレッシュバンク情報に対応するリフレッシュ対象バンク内のメモリコアに,前記リフレッシュバースト長の回数のリフレッシュ動作を連続して実行させることを特徴とするメモリコントローラ。
(Appendix 20)
In a memory controller for controlling a memory device having a plurality of banks each having a memory core including a memory cell array and selected by a bank address, and a control circuit for controlling the operation of the memory cores in the plurality of banks,
In response to an access request from the host device, a normal operation command corresponding to the access request is supplied to the memory device together with a bank address, and the normal operation is performed on the memory core in the normal access target bank selected by the bank address. Has a sequencer to execute
In response to the access request, the sequencer supplies refresh memory information specifying a bank other than the bank to be accessed normally and a refresh burst length specifying the number of refresh operations to the memory device together with a background refresh command. Then, during the normal operation, the memory controller in the refresh target bank corresponding to the refresh bank information continuously performs the refresh operation for the number of times of the refresh burst length.

(付記21)
付記20において,
前記シーケンサは,前記アクセス要求に応答して,アクセス対象データ領域を示す情報に基づいて,前記バックグランドリフレッシュコマンドを発行可能か否かを判定し,発行可能な場合に,前記アクセス対象データ領域を示す情報に基づいて,前記リフレッシュバンク情報とリフレッシュバースト長とを求めることを特徴とするメモリコントローラ。
(Appendix 21)
In Appendix 20,
In response to the access request, the sequencer determines whether or not the background refresh command can be issued based on information indicating the access target data area. If the background refresh command can be issued, the sequencer determines the access target data area. A memory controller, wherein the refresh bank information and the refresh burst length are obtained based on the indicated information.

(付記22)
付記21において,
さらに,二次元配置データとメモリ空間とを対応付けるメモリマップ情報と,前記バックグランドリフレッシュコマンドに対応して前記リフレッシュ動作を実行させるバンク数情報とが設定されるレジスタを有し,
前記シーケンサは,前記アクセス対象データ領域を示す情報に加えて前記レジスタの設定情報に基づいて,前記リフレッシュバンク情報とリフレッシュバースト長とを求めることを特徴とするメモリコントローラ。
(Appendix 22)
In Appendix 21,
And a register in which memory map information for associating the two-dimensional arrangement data with the memory space and bank number information for executing the refresh operation in response to the background refresh command are set.
The memory controller, wherein the sequencer obtains the refresh bank information and a refresh burst length based on setting information of the register in addition to information indicating the access target data area.

(付記23)
メモリコントローラと,
前記メモリコントローラからのコマンドに応答して動作するメモリ装置とを有し,
前記メモリ装置は,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクを有し,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
さらに,前記二次元配列データを水平方向にアクセスする水平アクセス期間中において,通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させ,バックグランドリフレッシュコマンドに応答して,前記水平アクセス対象バンク以外のリフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させる制御回路を有することを特徴とするメモリシステム。
(Appendix 23)
A memory controller;
A memory device that operates in response to a command from the memory controller;
The memory device includes:
Each having a memory core including a memory cell array and having a plurality of banks selected by bank addresses;
Based on memory mapping in which a memory logical space has a plurality of page areas selected by the bank address and row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses The plurality of banks store two-dimensional array data,
Further, during a horizontal access period in which the two-dimensional array data is accessed in the horizontal direction, in response to a normal operation command, a normal memory corresponding to the normal operation command is sent to the memory core in the bank selected by the bank address. A memory system comprising: a control circuit for executing an operation and causing a memory core in a refresh target bank other than the horizontal access target bank to execute a refresh operation in response to a background refresh command.

(付記24)
付記23において,
前記制御回路は,前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセス期間中において,前記通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンクと当該選択されたバンクに隣接するバンクとの中のメモリコアに,前記通常メモリ動作を実行させ,当該通常メモリ動作中においてリフレッシュ動作を禁止することを特徴とするメモリシステム。
(Appendix 24)
In Appendix 23,
In the rectangular access period for accessing the two-dimensional array data to an arbitrary rectangular area, the control circuit responds to the normal operation command to the bank selected by the bank address and the selected bank. A memory system characterized by causing a memory core in an adjacent bank to execute the normal memory operation and prohibiting a refresh operation during the normal memory operation.

(付記25)
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,前記複数のバンク内のメモリコアの動作を制御する制御回路とを有するメモリ装置を制御するメモリコントローラにおいて,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
上位装置からのアクセス要求に応答して,当該アクセス要求が前記二次元配列データを水平方向にアクセスする水平アクセスであることを判定し,当該水平アクセスに対応する通常動作コマンドをバンクアドレスと共に前記メモリ装置に供給して,当該バンクアドレスで選択される水平アクセス対象バンク内のメモリコアに通常動作を実行させるシーケンサを有し,
前記シーケンサは,前記アクセス要求に応答して,前記水平アクセス対象バンク以外のバンクを特定するリフレッシュバンク情報を,バックグランドリフレッシュコマンドと共に前記メモリ装置に供給して,前記通常動作中に,前記リフレッシュバンク情報に対応するリフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させることを特徴とするメモリコントローラ。
(Appendix 25)
In a memory controller for controlling a memory device having a plurality of banks each having a memory core including a memory cell array and selected by a bank address, and a control circuit for controlling the operation of the memory cores in the plurality of banks,
Based on memory mapping in which a memory logical space has a plurality of page areas selected by the bank address and row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses The plurality of banks store two-dimensional array data,
In response to an access request from the host device, it is determined that the access request is a horizontal access for accessing the two-dimensional array data in the horizontal direction, and a normal operation command corresponding to the horizontal access is sent to the memory together with a bank address. A sequencer that supplies the device and causes the memory core in the horizontal access target bank selected by the bank address to perform normal operation;
In response to the access request, the sequencer supplies refresh memory information specifying a bank other than the horizontal access target bank to the memory device together with a background refresh command, so that the refresh bank A memory controller that causes a memory core in a refresh target bank corresponding to information to perform a refresh operation.

(付記26)
付記25において,
前記シーケンサ,前記アクセス要求が前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセスの場合は,当該矩形アクセスに対応する通常動作コマンドをバンクアドレスと共に前記メモリ装置に供給して,当該バンクアドレスで選択されるアクセス対象バンク内のメモリコアに通常動作を実行させ,当該通常メモリ動作中において前記バックグランドリフレッシュコマンドを発行しないことを特徴とするメモリコントローラ。
(Appendix 26)
In Appendix 25,
When the access request is a rectangular access for accessing the two-dimensional array data to an arbitrary rectangular area, a normal operation command corresponding to the rectangular access is supplied to the memory device together with a bank address, A memory controller characterized by causing a memory core in an access target bank selected by a bank address to perform a normal operation and not issuing the background refresh command during the normal memory operation.

10:表示デバイス 12:メモリマッピング 14,14E:メモリ単位領域
15:画像メモリ 22:矩形領域
SA:リフレッシュバンク情報
SB,BMR:バイト組み合わせ情報
SB:第1の情報(スタートバイト情報) BMR:第2の情報(UP,DOWN,AL)
SA’:マルチバンク情報 RS:ロウアドレスステップ数データ
CST,CAWrap:コラムアドレスステップ数データ
RS:ロウアドレスステップ数データ
81:アクセス元ブロック 82:メモリコントローラ
86:メモリ装置
RBL:リフレッシュバースト長
RBC:リフレッシュブロック数
AR:メモリマッピング情報
10: Display device 12: Memory mapping 14, 14E: Memory unit area 15: Image memory 22: Rectangular area
SA: refresh bank information SB, BMR: byte combination information SB: first information (start byte information) BMR: second information (UP, DOWN, AL)
SA ′: Multi-bank information RS: Row address step number data CST, CAWrap: Column address step number data RS: Row address step number data 81: Access source block 82: Memory controller 86: Memory device RBL: Refresh burst length RBC: Refresh Number of blocks AR: Memory mapping information

Claims (6)

メモリコントローラからのコマンドに応答して動作するメモリ装置において,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,
前記バンク内のメモリセルアレイの動作を制御する制御回路とを有し,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられ,第1のバンクアドレスに割り当てられた第1のページ領域群が第1の行に配置され,第2のバンクアドレスに割り当てられた第2のページ領域群が第2の行に配置されたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
前記制御回路は,前記二次元配列データを前記第1,第2の行の一方の行を水平方向にアクセスする水平アクセス期間中において,当該水平アクセスに対応する通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させ,前記第1,第2の行の他方の行に割り当てられたバンクアドレスをリフレッシュ対象バンクのバンクアドレスとして通知するバックグランドリフレッシュコマンドに応答して,前記リフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させ
更に,前記制御回路は,前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセス期間中において,前記通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンクと当該選択されたバンクに隣接するバンクとの中のメモリコアに,前記通常メモリ動作を実行させ,当該通常メモリ動作中においてリフレッシュ動作を禁止することを特徴とするメモリ装置。
In a memory device that operates in response to a command from a memory controller,
A plurality of banks each having a memory core including a memory cell array and selected by a bank address;
A control circuit for controlling the operation of the memory cell array in the bank,
The memory logical space has a plurality of page areas selected by the bank address and the row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses, and the first bank Based on the memory mapping in which the first page region group assigned to the address is arranged in the first row and the second page region group assigned to the second bank address is arranged in the second row, The plurality of banks store two-dimensional array data;
The control circuit responds to a normal operation command corresponding to the horizontal access during a horizontal access period in which one of the first and second rows is accessed in the horizontal direction for the two-dimensional array data. The memory core in the bank selected by the bank address is caused to execute a normal memory operation corresponding to the normal operation command, and the bank address assigned to the other row of the first and second rows is set to the refresh target bank. In response to a background refresh command notified as a bank address, the memory core in the refresh target bank is caused to perform a refresh operation ,
Further, the control circuit responds to the normal operation command during the rectangular access period for accessing the two-dimensional array data to an arbitrary rectangular area and the selected bank and the selected bank. to the memory core in the banks adjacent to the bank, the normal to perform memory operations, the memory device characterized that you prohibit the refresh operation in the normal during memory operation.
メモリコントローラからのコマンドに応答して動作するメモリ装置において,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,
前記バンク内のメモリセルアレイの動作を制御する制御回路とを有し,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
前記制御回路は,前記二次元配列データを水平方向にアクセスする水平アクセス期間中において,当該水平アクセスに対応する通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させ,バックグランドリフレッシュコマンドに応答して,前記水平アクセス対象バンク以外のリフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させ,
前記制御回路は,前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセス期間中において,前記通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンクと当該選択されたバンクに隣接するバンクとの中のメモリコアに,前記通常メモリ動作を実行させ,当該通常メモリ動作中においてリフレッシュ動作を禁止することを特徴とするメモリ装置。
In a memory device that operates in response to a command from a memory controller,
A plurality of banks each having a memory core including a memory cell array and selected by a bank address;
A control circuit for controlling the operation of the memory cell array in the bank,
Based on memory mapping in which a memory logical space has a plurality of page areas selected by the bank address and row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses The plurality of banks store two-dimensional array data,
In a horizontal access period in which the two-dimensional array data is accessed in the horizontal direction, the control circuit responds to a normal operation command corresponding to the horizontal access to a memory core in the bank selected by the bank address. Causing a normal memory operation corresponding to the normal operation command to be executed, and in response to a background refresh command, causing a memory core in a refresh target bank other than the horizontal access target bank to execute a refresh operation;
In the rectangular access period for accessing the two-dimensional array data to an arbitrary rectangular area, the control circuit responds to the normal operation command to the bank selected by the bank address and the selected bank. A memory device characterized by causing a memory core in an adjacent bank to execute the normal memory operation and prohibiting a refresh operation during the normal memory operation.
メモリコントローラと,
前記メモリコントローラからのコマンドに応答して動作するメモリ装置とを有し,
前記メモリ装置は,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクを有し,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられ,第1のバンクアドレスに割り当てられた第1のページ領域群が第1の行に配置され,第2のバンクアドレスに割り当てられた第2のページ領域群が第2の行に配置されたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
さらに,前記二次元配列データを前記第1,第2の行の一方の行を水平方向にアクセスする水平アクセス期間中において,通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させ,前記第1,第2の行の他方の行に割り当てられたバンクアドレスをリフレッシュ対象バンクのバンクアドレスとして通知するバックグランドリフレッシュコマンドに応答して,前記リフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させ,更に,前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセス期間中において,前記通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンクと当該選択されたバンクに隣接するバンクとの中のメモリコアに,前記通常メモリ動作を実行させ,当該通常メモリ動作中においてリフレッシュ動作を禁止する制御回路を有することを特徴とするメモリシステム。
A memory controller;
A memory device that operates in response to a command from the memory controller;
The memory device includes:
Each having a memory core including a memory cell array and having a plurality of banks selected by bank addresses;
The memory logical space has a plurality of page areas selected by the bank address and the row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses, and the first bank Based on the memory mapping in which the first page region group assigned to the address is arranged in the first row and the second page region group assigned to the second bank address is arranged in the second row, The plurality of banks store two-dimensional array data;
Furthermore, the two-dimensional array data is stored in the bank selected by the bank address in response to a normal operation command during a horizontal access period in which one of the first and second rows is accessed in the horizontal direction. A background refresh command for causing a memory core to perform a normal memory operation corresponding to the normal operation command and notifying a bank address assigned to the other of the first and second rows as a bank address of a refresh target bank In response to the normal operation command in a rectangular access period in which the memory core in the refresh target bank executes a refresh operation, and the two-dimensional array data is accessed to an arbitrary rectangular area. To the bank selected by the bank address and the selected bank. Memory system, characterized in that the memory core in the bank that is in contact, the normal to perform memory operations, a control circuit you prohibit the refresh operation in the normal during memory operation.
メモリコントローラと,
前記メモリコントローラからのコマンドに応答して動作するメモリ装置とを有し,
前記メモリ装置は,
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクを有し,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
さらに,前記二次元配列データを水平方向にアクセスする水平アクセス期間中において,通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンク内のメモリコアに,前記通常動作コマンドに対応する通常メモリ動作を実行させ,バックグランドリフレッシュコマンドに応答して,前記水平アクセス対象バンク以外のリフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させる制御回路を有し,
前記制御回路は,前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセス期間中において,前記通常動作コマンドに応答して,前記バンクアドレスにより選択されたバンクと当該選択されたバンクに隣接するバンクとの中のメモリコアに,前記通常メモリ動作を実行させ,当該通常メモリ動作中においてリフレッシュ動作を禁止することを特徴とするメモリシステム。
A memory controller;
A memory device that operates in response to a command from the memory controller;
The memory device includes:
Each having a memory core including a memory cell array and having a plurality of banks selected by bank addresses;
Based on memory mapping in which a memory logical space has a plurality of page areas selected by the bank address and row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses The plurality of banks store two-dimensional array data,
Further, during a horizontal access period in which the two-dimensional array data is accessed in the horizontal direction, in response to a normal operation command, a normal memory corresponding to the normal operation command is sent to the memory core in the bank selected by the bank address. A control circuit for executing an operation and causing a memory core in a refresh target bank other than the horizontal access target bank to perform a refresh operation in response to a background refresh command;
In the rectangular access period for accessing the two-dimensional array data to an arbitrary rectangular area, the control circuit responds to the normal operation command to the bank selected by the bank address and the selected bank. A memory system characterized by causing a memory core in an adjacent bank to execute the normal memory operation and prohibiting a refresh operation during the normal memory operation.
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,前記複数のバンク内のメモリコアの動作を制御する制御回路とを有するメモリ装置を制御するメモリコントローラにおいて,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられ,第1のバンクアドレスに割り当てられた第1のページ領域群が第1の行に配置され,第2のバンクアドレスに割り当てられた第2のページ領域群が第2の行に配置されたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
上位装置からのアクセス要求に応答して,当該アクセス要求が前記二次元配列データを前記第1,第2の行の一方の行を水平方向にアクセスする水平アクセスであることを判定し,当該水平アクセスに対応する通常動作コマンドをバンクアドレスと共に前記メモリ装置に供給して,当該バンクアドレスで選択される水平アクセス対象バンク内のメモリコアに通常動作を実行させるシーケンサを有し,
前記シーケンサは,前記アクセス要求に応答して,前記第1,第2の行の他方の行に割り当てられたバンクアドレスをリフレッシュ対象バンクのバンクアドレスとして,バックグランドリフレッシュコマンドと共に前記メモリ装置に供給して,前記通常動作中に,前記リフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させ
更に,前記シーケンサは,前記アクセス要求が前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセスの場合は,当該矩形アクセスに対応する通常動作コマンドをバンクアドレスと共に前記メモリ装置に供給して,当該バンクアドレスで選択されるアクセス対象バンク内のメモリコアに通常動作を実行させ,当該通常メモリ動作中において前記バックグランドリフレッシュコマンドを発行しないことを特徴とするメモリコントローラ。
In a memory controller for controlling a memory device having a plurality of banks each having a memory core including a memory cell array and selected by a bank address, and a control circuit for controlling the operation of the memory cores in the plurality of banks,
The memory logical space has a plurality of page areas selected by the bank address and the row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses, and the first bank Based on the memory mapping in which the first page region group assigned to the address is arranged in the first row and the second page region group assigned to the second bank address is arranged in the second row, The plurality of banks store two-dimensional array data;
In response to an access request from a host device, it is determined that the access request is a horizontal access in which one of the first and second rows is accessed in the horizontal direction from the two-dimensional array data, and the horizontal A sequencer for supplying a normal operation command corresponding to access to the memory device together with a bank address, and causing a memory core in a horizontal access target bank selected by the bank address to perform a normal operation;
In response to the access request, the sequencer supplies a bank address assigned to the other one of the first and second rows as a bank address of a refresh target bank to the memory device together with a background refresh command. During the normal operation, the memory core in the refresh target bank is caused to perform a refresh operation ,
Further, when the access request is a rectangular access for accessing the two-dimensional array data to an arbitrary rectangular area, the sequencer supplies a normal operation command corresponding to the rectangular access to the memory device together with a bank address. Thus, the memory core in the access target bank selected by the bank address performs a normal operation, and the background refresh command is not issued during the normal memory operation .
メモリセルアレイを含むメモリコアをそれぞれ有しバンクアドレスにより選択される複数のバンクと,前記複数のバンク内のメモリコアの動作を制御する制御回路とを有するメモリ装置を制御するメモリコントローラにおいて,
メモリ論理空間が前記バンクアドレスとロウアドレスにより選択される複数のページ領域を有し,前記複数のページ領域が行列状に配置され且つ隣接するページ領域が異なるバンクアドレス対応付けられたメモリマッピングに基づいて,前記複数のバンクが二次元配列データを記憶し,
上位装置からのアクセス要求に応答して,当該アクセス要求が前記二次元配列データを水平方向にアクセスする水平アクセスであることを判定し,当該水平アクセスに対応する通常動作コマンドをバンクアドレスと共に前記メモリ装置に供給して,当該バンクアドレスで選択される水平アクセス対象バンク内のメモリコアに通常動作を実行させるシーケンサを有し,
前記シーケンサは,前記アクセス要求に応答して,前記水平アクセス対象バンク以外のバンクを特定するリフレッシュバンク情報を,バックグランドリフレッシュコマンドと共に前記メモリ装置に供給して,前記通常動作中に,前記リフレッシュバンク情報に対応するリフレッシュ対象バンク内のメモリコアにリフレッシュ動作を実行させ,
前記シーケンサ,前記アクセス要求が前記二次元配列データを任意の矩形領域に対してアクセスする矩形アクセスの場合は,当該矩形アクセスに対応する通常動作コマンドをバンクアドレスと共に前記メモリ装置に供給して,当該バンクアドレスで選択されるアクセス対象バンク内のメモリコアに通常動作を実行させ,当該通常メモリ動作中において前記バックグランドリフレッシュコマンドを発行しないことを特徴とするメモリコントローラ。
In a memory controller for controlling a memory device having a plurality of banks each having a memory core including a memory cell array and selected by a bank address, and a control circuit for controlling the operation of the memory cores in the plurality of banks,
Based on memory mapping in which a memory logical space has a plurality of page areas selected by the bank address and row address, the plurality of page areas are arranged in a matrix, and adjacent page areas are associated with different bank addresses The plurality of banks store two-dimensional array data,
In response to an access request from the host device, it is determined that the access request is a horizontal access for accessing the two-dimensional array data in the horizontal direction, and a normal operation command corresponding to the horizontal access is sent to the memory together with a bank address. A sequencer that supplies the device and causes the memory core in the horizontal access target bank selected by the bank address to perform normal operation;
In response to the access request, the sequencer supplies refresh memory information specifying a bank other than the horizontal access target bank to the memory device together with a background refresh command, so that the refresh bank Causing the memory core in the refresh target bank corresponding to the information to perform a refresh operation,
The sequencer, the case of the rectangular access that the access request to access said two-dimensional array data to any rectangular area supplies a normal operation command corresponding to the rectangular access to the memory device along with the bank address, A memory controller characterized by causing a memory core in an access target bank selected by the bank address to perform a normal operation and not issuing the background refresh command during the normal memory operation.
JP2012120473A 2012-05-28 2012-05-28 Memory device, memory controller and memory system Expired - Fee Related JP5454618B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012120473A JP5454618B2 (en) 2012-05-28 2012-05-28 Memory device, memory controller and memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012120473A JP5454618B2 (en) 2012-05-28 2012-05-28 Memory device, memory controller and memory system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007027827A Division JP5109388B2 (en) 2006-12-22 2007-02-07 Memory device, memory controller and memory system

Publications (2)

Publication Number Publication Date
JP2012160256A JP2012160256A (en) 2012-08-23
JP5454618B2 true JP5454618B2 (en) 2014-03-26

Family

ID=46840648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012120473A Expired - Fee Related JP5454618B2 (en) 2012-05-28 2012-05-28 Memory device, memory controller and memory system

Country Status (1)

Country Link
JP (1) JP5454618B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101771626B1 (en) 2015-09-03 2017-09-05 주식회사 제주반도체 Semiconductor memory device adaptable for multi-style display device
KR102506790B1 (en) * 2016-04-01 2023-03-08 에스케이하이닉스 주식회사 Semiconductor device including the same
CN112433970B (en) * 2020-12-02 2024-02-20 上海集成电路研发中心有限公司 efuse controller, chip and efuse read-write system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07110786A (en) * 1993-10-14 1995-04-25 Matsushita Electric Ind Co Ltd Semiconductor storage device
JP3579461B2 (en) * 1993-10-15 2004-10-20 株式会社ルネサステクノロジ Data processing system and data processing device
US5627791A (en) * 1996-02-16 1997-05-06 Micron Technology, Inc. Multiple bank memory with auto refresh to specified bank
JP2001332084A (en) * 2000-05-22 2001-11-30 Fujitsu Ltd Semiconductor memory and refreshing method for semiconductor memory
JP4641094B2 (en) * 2000-11-17 2011-03-02 富士通セミコンダクター株式会社 Semiconductor memory
JP3918145B2 (en) * 2001-05-21 2007-05-23 株式会社ルネサステクノロジ Memory controller

Also Published As

Publication number Publication date
JP2012160256A (en) 2012-08-23

Similar Documents

Publication Publication Date Title
KR100896242B1 (en) Memory device, memory controller and memory system
JP5018074B2 (en) Memory device, memory controller and memory system
KR100873111B1 (en) Memory device, memory controller and memory system
JP5454618B2 (en) Memory device, memory controller and memory system
JP5109388B2 (en) Memory device, memory controller and memory system
JP5070378B2 (en) Memory device, memory controller and memory system
JP5029027B2 (en) Memory device, memory controller and memory system
JP5459363B2 (en) Memory device, memory controller and memory system
JP5070375B2 (en) Memory device, memory controller and memory system
JP5145848B2 (en) Memory device, memory controller and memory system
JP2012230712A (en) Memory device, memory controller, and memory system
JP2012198947A (en) Memory device, memory controller and memory system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120528

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120528

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130312

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130509

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130730

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130925

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: 20131210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131223

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees