JP2004102808A - Memory controller - Google Patents

Memory controller Download PDF

Info

Publication number
JP2004102808A
JP2004102808A JP2002265624A JP2002265624A JP2004102808A JP 2004102808 A JP2004102808 A JP 2004102808A JP 2002265624 A JP2002265624 A JP 2002265624A JP 2002265624 A JP2002265624 A JP 2002265624A JP 2004102808 A JP2004102808 A JP 2004102808A
Authority
JP
Japan
Prior art keywords
memory
self
refresh
read
dma
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.)
Granted
Application number
JP2002265624A
Other languages
Japanese (ja)
Other versions
JP3867034B2 (en
Inventor
Tadayoshi Miyahara
宮原 忠義
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2002265624A priority Critical patent/JP3867034B2/en
Publication of JP2004102808A publication Critical patent/JP2004102808A/en
Application granted granted Critical
Publication of JP3867034B2 publication Critical patent/JP3867034B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Dram (AREA)
  • Bus Control (AREA)
  • Memory System (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To promptly perform DMA (direct memory access) transfer in recovering from an energy saving mode in a memory controller which controls read/write of a DDR (double data rate) SDRAM (synchronous dynamic random access memory). <P>SOLUTION: The memory controller 1 which controls the read/write of data of a memory unit 10 consisting of a plurality of memory cells is provided with first and second DMA controllers 4, 5 which perform the DMA transfer of read data, first and second DMA controllers 6, 7 which perform the DMA transfer of written data, a self-refreshment control part 8 which outputs a request signal for setting and releasing self-refreshment and a memory arbiter 3 which performs arbitration to each request and the next address is inputted in the memory arbiter 3 from the first and second reading DMA controllers 4, 5. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明は、省エネルギーモードから復帰する際のDMA(Direct Memory Access)転送を迅速に行えるDDR SDRAMのメモリ制御装置に関する。
【0002】
【従来の技術】
従来から、DRAM(Dynamic RAM(Random AccessMemory))は、SRAM(Static RAM)に比べて記憶容量当たりのコストが安く、内部の回路が簡単なのでSRAMよりも広く利用され、パーソナルコンピュータのメインメモリとして利用されている。DRAMの中で、SDRAM(Synchronous DRAM)は、DRAMに直接クロック信号を入力し、外部バスインターフェースがクロック信号に同期してデータの読み書きを行い、高速データ転送が可能になっているため、DRAMの主流になっている。
DRAMは、データを記憶保持するのにコンデンサを使用している。コンデンサの電荷は、時間の経過にともない減少していくので、DRAMは、データを正しく記憶しておくため、定期的にリフレッシュとよばれる再充電を行わねばならない。DRAMは、その内部に内蔵した回路によりリフレッシュを行っており、これをセルフリフレッシュという。このセルフリフレッシュになると、DRAMへの電力供給のみでデータが保持されるので、省エネルギーになる。
一方、SDRAMの制御装置に関して、従来、セルフリフレッシュモードに設定する手段と、その設定後セルフリフレッシュモードを解除する手段とを設け、セルフリフレッシュモードの設定及び解除の際にCPU(Central Processing Unit:中央処理装置)を介することなくデータのDMA転送を迅速に行えるものがあった(例えば、特許文献1参照。)。
【0003】
【特許文献1】
特開2001−202777号公報(第1−3頁)
【0004】
【発明が解決しようとする課題】
しかしながら、DDR(Double Data Rate)SDRAMは、セルフリフレッシュの解除後、200クロック間はリードアクセスが不可であるため、セルフリフレッシュの解除後、リード要求もライト要求も即応答することができない。そのため、省エネルギーモードから復帰する際のDMA転送の速度が低下するおそれがあった。
【0005】
この発明は、上記の問題点を解決するためになされたもので、DDR SDRAMの読書きを制御するメモリ制御装置において、省エネルギーモードから復帰する際のDMA転送を迅速に行うことを目的とする。
【0006】
【課題を解決するための手段】
この発明は、上記の目的を達成するため、複数のメモリセルからなる記憶装置のデータ読書きを制御するメモリ制御装置であって、読出しデータをDMA転送する1又は2以上の読出しDMAコントローラと、書込みデータをDMA転送する1又は2以上の書込みDMAコントローラと、セルフリフレッシュの設定及び解除を行うための要求信号を出力するセルフリフレッシュ制御部と、上記読出しDMAコントローラ、書込みDMAコントローラ及びセルフリフレッシュ制御部からの要求に対するアービトレーションを行うメモリアービタとを有し、上記読出しDMAコントローラから次回アクセス予定の次回アドレスを出力して上記メモリアービタに入力することを特徴とする。
また、この発明は、複数のメモリセルからなる記憶装置のデータ読書きを制御するメモリ制御装置であって、読出しデータをDMA転送する1又は2以上の読出しDMAコントローラと、書込みデータをDMA転送する1又は2以上の書込みDMAコントローラと、セルフリフレッシュの設定及び解除を行うための要求信号を出力するセルフリフレッシュ制御部と、上記読出しDMAコントローラ、書込みDMAコントローラ及びセルフリフレッシュ制御部からの要求に対するアービトレーションを行うメモリアービタとを有し、上記読出しDMAコントローラからスタートアドレスを出力して上記メモリアービタに入力し、そのメモリアービタにより次回アクセス予定の次回アドレスを算出するメモリ制御装置を提供する。
上記いずれのメモリ制御装置でも、メモリアービタが、上記次回アドレスに応じて、セルフリフレッシュの実行対象となる上記メモリセルを切替えるとよい。
また、メモリアービタが、上記次回アドレスにより表される上記1又は2以上のメモリセルに対してセルフリフレッシュを実行せず、そのメモリセル以外のメモリセルに対してセルフリフレッシュを実行するセルフリフレッシュ実行要求信号を出力するとよい。
【0007】
【発明の実施の形態】
以下、この発明の実施の形態を図面に基づいて詳細に説明する。
図1はこの発明によるメモリ制御装置1と、メモリユニット10の内部構成を示すブロック図である。
メモリ制御装置1は、メモリ制御部2と、メモリアービタ3と、第1、第2の読出しDMAコントローラ(Read DMAC)4,5と、第1、第2の書込みDMAコントローラ(Write DMAC)6,7と、セルフリフレッシュ制御部8とを有する半導体集積回路からなっている。
メモリ制御部2は、メモリアービタ3から要求を受けて、読書きするデータをメモリユニット10との間でやりとりし、後述するセルフリフレッシュ実行要求にしたがいセルフリフレッシュを実行する回路である。メモリアービタ3は、第1、第2の読出しDMAコントローラ4,5と、第1、第2の書込みDMAコントローラ6,7と、セルフリフレッシュ制御部8のそれぞれから要求信号REQを入力して、それぞれの要求に対するアービトレーションを行い、要求を受け入れる場合には、対応する要求信号を出力した回路に応答信号(ACK)を出力する回路である。ここで、アービトレーションとは、要求信号REQが複数ある場合に、それらを調停してそれぞれの要求を満たしていくことを意味している。また、メモリアービタ3は、後述する次回アドレスに応じて、セルフリフレッシュ実行対象となるメモリセルを切替える。
【0008】
第1、第2の読出しDMAコントローラ4,5は、図示しない回路からのデータ読出し要求を受けて起動して、メモリアービタ3に読出しの要求信号REQを出力し、読出されたデータを受けて図示しない回路にDMA転送する回路である。また、第1、第2の読出しDMAコントローラ4,5は、起動中に次回読出しアクセスを行う予定のアドレス(以下このアドレスを「次回アドレス(NextADDR)という」をそれぞれメモリアービタ3に入力する。第1、第2の書込みDMAコントローラ6,7は、図示しない回路からのデータ書込み要求を受けてメモリアービタ3に書込みの要求信号REQを出力し、書込みするデータを受けて図示しない回路にDMA(Direct Memory Access)転送する回路である。
セルフリフレッシュ制御部8は、セルフリフレッシュの設定及び解除を行う要求信号REQをメモリアービタ3に出力し、応答信号(ACK)を受けてセルフリフレッシュの設定及び解除を行うためのステータス信号を入力する。
【0009】
メモリユニット10は、DDR SDRAMにより構成され、メモリセル(CS0,CS1,CS2,CS3,CS4)が複数配置してなっている。このメモリユニット10は、メモリアービタ3の制御にしたがい、各メモリセル単位にセルフリフレッシュが行われる。
次に、以上のように構成されたメモリ制御装置1と、メモリユニット10の動作内容について、図3のフローチャートを参照して説明する。なお、図3及び後述する図4ではステップをSと略記している。
メモリ制御装置1は、図示しない回路からの指示を受けて作動し、ステップ1に進んで、セルフリフレッシュ制御部8から、セルフリフレッシュの設定又は解除を行うための要求信号REQをメモリアービタ3に入力する。メモリアービタ3は、この要求に対してアービトレーションを行い、要求を受け入れる場合は、セルフリフレッシュ制御部8に応答信号(ACK)を出力する。そして、この応答信号(ACK)を受けて、セルフリフレッシュ制御部8がセルフリフレッシュの設定又は解除を行うためのステータス信号をメモリアービタ3に入力する。また、このセルフリフレッシュ制御部8の動作と並行して、第1又は第2の読出しDMAコントローラ4,5が起動中に次回アドレス(Next ADDR)をそれぞれメモリアービタ3に入力している。
【0010】
そして、ステップ2に進むと、メモリアービタ3が入力されている起動中の第1、第2の読出しDMAコントローラ4,5の次回アドレス(Next ADDR)を読込む。続くステップ3では、メモリアービタ3がステップ2で読込まれた次回アドレス(Next ADDR)によって表される読出し対象のメモリセル(対象メモリセル)と、それ以外のメモリセル(対象外メモリセル)とを判別する。例えば、対象メモリセルがCS0であれば、CS1〜CS4は対象外メモリセルと判別される。続くステップ4では、ステップ3で判別した対象外メモリセル(上述の場合はCS1〜CS4)に対してのみ、セルフリフレッシュが実行されるように、メモリアービタ3がセルフリフレッシュ実行要求信号をメモリ制御部2へ出力する。すると、続くステップ5では、メモリユニット10のうち、ステップ4でセルフリフレッシュ実行要求を受けた対象外メモリセル(CS1〜CS4)に対してのみ、メモリ制御部2がセルフリフレッシュを実行する。
【0011】
DDR SDRAMにより構成されるメモリユニット10は、セルフリフレッシュ解除後200クロック間リードアクセス不可であるが、メモリ制御装置1では、省エネルギーモードに設定するため、メモリアービタ3にセルフリフレッシュ実行要求があった場合、メモリアービタ3が保持しておいた第1、第2の読出しDMAコントローラ4,5の次回アドレスにより表される対象メモリセル(例えば、CS0)に対してはセルフリフレッシュが実行されず、それ以外の対象外メモリセル(例えば、CS1〜CS4)に対してのみセルフリフレッシュが実行される。こうすると、セルフリフレッシュは、次回のアクセス予定外の対象外メモリセルだけを対象として行われるため、セルフリフレッシュの解除後も読出し要求、書込み要求のいずれも即応答可能なメモリセルを設けることができ、省エネルギーモードから復帰する際のDMA転送を迅速に行うことが可能となる。
【0012】
図2は、この発明によるメモリ制御装置11と、メモリユニット10の内部構成を示すブロック図である。このメモリ制御装置11は、メモリ制御装置1と比較して、メモリアービタ3と、第1、第2の読出しDMAコントローラ4,5がそれぞれ、メモリアービタ13、第1、第2の読出しDMAコントローラ14,15となっている点で異なり、その他は同じ構成を有している。
メモリアービタ13は、受信カウンタ13aと次回アドレス算出回路13bとを第1、第2の読出しDMAコントローラ14,15に対応して内部に搭載し、第1、第2の読出しDMAコントローラ14,15の次回アドレスを把握するようになっている。受信カウンタ13aは、次回アドレス(Next ADDR)を算出するためのカウント値を計測する。次回アドレス算出回路13bは、受信カウンタ13aにより計測されたカウント値と、第1、第2の読出しDMAコントローラ14,15から入力するスタートアドレスに基づき、次回アドレス(Next ADDR)を算出する。
第1、第2の読出しDMAコントローラ14,15は、次回アドレス(Next ADDR)の代わりにスタートアドレス(Start ADDR)をメモリアービタ13に入力する点で異なり、その他は同じ構成を有している。
【0013】
次に、以上のように構成されたメモリ制御装置11と、メモリユニット10の動作内容について、図4のフローチャートを参照して説明する。
メモリ制御装置11は、動作開始後ステップ11に進み、セルフリフレッシュ制御部8から、セルフリフレッシュの設定又は解除を行うための要求信号REQをメモリアービタ13に入力し、メモリアービタ13がこの要求を受け入れる場合には、セルフリフレッシュ制御部8に応答信号(ACK)を出力する。この応答信号(ACK)を受けて、セルフリフレッシュ制御部8がセルフリフレッシュの設定又は解除を行うためのステータス信号をメモリアービタ13に入力する。また、このセルフリフレッシュ制御部8の動作と並行して、第1又は第2の読出しDMAコントローラ14,15が起動中にスタートアドレス(Start ADDR)をそれぞれメモリアービタ13に入力している。
【0014】
そして、ステップ12に進むと、メモリアービタ13が入力されている起動中の第1、第2の読出しDMAコントローラ14,15のスタートアドレス(Start ADDR)を読込む。続くステップ13では、次回アドレス算出回路13bが、受信カウンタ13aの計測したカウント値と読込まれたスタートアドレス(Start ADDR)とから、次回アドレス(Next ADDR)を算出する。そして、ステップ14に進み、メモリアービタ13が、ステップ13で算出された次回アドレス(Next ADDR)によって表される読出し対象のメモリセル(対象メモリセル)と、それ以外のメモリセル(対象外メモリ)とを判別する。例えば、対象メモリセルがCS1,CS2であれば、CS0,CS3,CS4は対象外メモリセルと判別される。続くステップ15では、ステップ14で判別した対象外メモリセル(上述の場合はCS0,CS3,CS4)に対してのみ、セルフリフレッシュが実行されるように、メモリアービタ13がセルフリフレッシュ実行要求信号をメモリ制御部2へ出力する。すると、続くステップ16では、メモリユニット10のうち、ステップ15でセルフリフレッシュ実行要求を受けた対象外メモリセル(CS0,CS3,CS4)に対してのみ、メモリ制御部2がセルフリフレッシュを実行する。
【0015】
このように、メモリ制御装置11は、メモリ制御装置1と同様に、メモリアービタ13にセルフリフレッシュ実行要求があった場合、メモリアービタ13が算出した次回アドレスにより表される対象メモリセル(CS1,CS2)に対してはセルフリフレッシュが実行されず、それ以外の対象外メモリセル(CS0,CS3,CS4)に対してのみセルフリフレッシュが実行される。こうすると、セルフリフレッシュは、次回のアクセス予定外の対象外メモリセルだけを対象として行われるため、セルフリフレッシュの解除後も、読出し要求、書込み要求のいずれも即応答可能なメモリセルを設けることができ、省エネルギーモードから復帰する際のDMA転送を迅速に行うことが可能となる。
【0016】
【発明の効果】
以上説明してきたように、この発明によれば、DDR SDRAMのメモリ制御装置において、省エネルギーモードから復帰する際のDMA転送を迅速に行うことが可能となる。
【図面の簡単な説明】
【図1】この発明によるメモリ制御装置と、メモリユニットの内部構成を示すブロック図である。
【図2】この発明による別のメモリ制御装置と、メモリユニットの内部構成を示すブロック図である。
【図3】図1に示すメモリ制御装置によるセルフリフレッシュの制御手順を示すフローチャート図である。
【図4】図2に示すメモリ制御装置によるセルフリフレッシュの制御手順を示すフローチャート図である。
【符号の説明】
1,11:メモリ制御装置
2:メモリ制御部     3,13:メモリアービタ
4,5:第1、第2の読出しDMAコントローラ
6,7:第1、第2の書込みDMAコントローラ
8:セルフリフレッシュ制御部
10:メモリユニット
14,15:第1、第2の読出しDMAコントローラ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a DDR SDRAM memory control device capable of quickly performing a DMA (Direct Memory Access) transfer when returning from an energy saving mode.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a DRAM (Dynamic RAM (Random Access Memory)) has been used more widely than an SRAM (Static RAM) because it has a lower cost per storage capacity and has a simpler internal circuit than an SRAM (Static RAM), and is used as a main memory of a personal computer. Have been. Among DRAMs, an SDRAM (Synchronous DRAM) receives a clock signal directly to the DRAM, an external bus interface reads and writes data in synchronization with the clock signal, and enables high-speed data transfer. It has become mainstream.
DRAMs use capacitors to store and hold data. Since the charge of the capacitor decreases with the passage of time, the DRAM must periodically perform recharging called refresh in order to correctly store data. The DRAM performs refresh by a circuit built therein, which is called self-refresh. In this self-refresh, energy is saved because data is retained only by supplying power to the DRAM.
On the other hand, with respect to the control device of the SDRAM, conventionally, a means for setting the self-refresh mode and a means for releasing the self-refresh mode after the setting are provided, and a CPU (Central Processing Unit: center) is used when setting and releasing the self-refresh mode. In some cases, DMA transfer of data can be performed quickly without the intervention of a processing device (see, for example, Patent Document 1).
[0003]
[Patent Document 1]
JP-A-2001-202777 (pages 1-3)
[0004]
[Problems to be solved by the invention]
However, in a DDR (Double Data Rate) SDRAM, read access is not possible for 200 clocks after self-refresh is released, so that neither a read request nor a write request can be immediately responded after self-refresh is released. Therefore, the speed of the DMA transfer when returning from the energy saving mode may be reduced.
[0005]
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has as its object to quickly perform a DMA transfer when returning from an energy saving mode in a memory control device that controls reading and writing of a DDR SDRAM.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides a memory control device for controlling data read / write of a storage device composed of a plurality of memory cells, comprising one or more read DMA controllers for performing DMA transfer of read data; One or more write DMA controllers for DMA transfer of write data, a self-refresh control unit for outputting a request signal for setting and releasing self-refresh, and the read DMA controller, write DMA controller, and self-refresh control unit And a memory arbiter for performing arbitration for a request from the memory controller, wherein a next address to be accessed next time is output from the read DMA controller and input to the memory arbiter.
Further, the present invention is a memory control device for controlling data read / write of a storage device including a plurality of memory cells, and one or more read DMA controllers for DMA transfer of read data, and DMA transfer of write data. One or more write DMA controllers, a self-refresh control unit that outputs a request signal for setting and releasing self-refresh, and an arbitration for requests from the read DMA controller, the write DMA controller, and the self-refresh control unit. A memory control device for outputting a start address from the read DMA controller, inputting the start address to the memory arbiter, and calculating a next address to be accessed next by the memory arbiter.
In any of the above memory control devices, the memory arbiter may switch the memory cells to be subjected to the self-refresh according to the next address.
Also, the memory arbiter does not execute the self-refresh for the one or more memory cells indicated by the next address, but executes the self-refresh for the memory cells other than the memory cells. It is good to output a signal.
[0007]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing an internal configuration of a memory control device 1 and a memory unit 10 according to the present invention.
The memory control device 1 includes a memory control unit 2, a memory arbiter 3, first and second read DMA controllers (Read DMAC) 4, 5, first and second write DMA controllers (Write DMAC) 6, 7 and a self-refresh control unit 8.
The memory control unit 2 is a circuit that receives a request from the memory arbiter 3, exchanges data to be read / written with the memory unit 10, and executes a self-refresh according to a self-refresh execution request described later. The memory arbiter 3 receives request signals REQ from the first and second read DMA controllers 4 and 5, the first and second write DMA controllers 6 and 7, and the self-refresh control unit 8, respectively. Arbitration is performed for the request, and when the request is accepted, a response signal (ACK) is output to the circuit that has output the corresponding request signal. Here, arbitration means that when there are a plurality of request signals REQ, they are arbitrated to satisfy each request. Further, the memory arbiter 3 switches the memory cells to be subjected to the self-refresh according to the next address described later.
[0008]
The first and second read DMA controllers 4 and 5 are activated upon receiving a data read request from a circuit (not shown), output a read request signal REQ to the memory arbiter 3, receive the read data, and receive the read data. This is a circuit that performs a DMA transfer to a circuit that does not. In addition, the first and second read DMA controllers 4 and 5 each input an address at which the next read access is to be performed during startup (hereinafter, this address is referred to as “next address (NextADDR)”) to the memory arbiter 3. The first and second write DMA controllers 6 and 7 receive a data write request from a circuit (not shown) and output a write request signal REQ to the memory arbiter 3, and receive data to be written and send DMA (Direct) to a circuit (not shown). Memory Access).
The self-refresh control unit 8 outputs a request signal REQ for setting and canceling the self-refresh to the memory arbiter 3, and receives a response signal (ACK) and inputs a status signal for setting and canceling the self-refresh.
[0009]
The memory unit 10 is constituted by a DDR SDRAM, and has a plurality of memory cells (CS0, CS1, CS2, CS3, CS4) arranged therein. In the memory unit 10, self-refresh is performed for each memory cell in accordance with the control of the memory arbiter 3.
Next, the operation of the memory control device 1 and the memory unit 10 configured as described above will be described with reference to the flowchart of FIG. In FIG. 3 and FIG. 4 described later, the step is abbreviated as S.
The memory control device 1 operates in response to an instruction from a circuit (not shown), proceeds to step 1, and inputs a request signal REQ for setting or canceling self-refresh from the self-refresh control unit 8 to the memory arbiter 3. I do. The memory arbiter 3 performs arbitration for this request, and outputs a response signal (ACK) to the self-refresh control unit 8 when accepting the request. Upon receiving the response signal (ACK), the self-refresh control unit 8 inputs a status signal for setting or canceling the self-refresh to the memory arbiter 3. In parallel with the operation of the self-refresh control unit 8, the next address (Next ADDR) is input to the memory arbiter 3 while the first or second read DMA controller 4, 5 is being activated.
[0010]
In step 2, the next address (Next ADDR) of the active first and second read DMA controllers 4 and 5 to which the memory arbiter 3 has been input is read. In the following step 3, the memory arbiter 3 stores the memory cell to be read (target memory cell) represented by the next address (Next ADDR) read in step 2 and the other memory cells (non-target memory cells). Determine. For example, if the target memory cell is CS0, CS1 to CS4 are determined to be non-target memory cells. In the following step 4, the memory arbiter 3 sends a self-refresh execution request signal to the memory control unit so that the self-refresh is executed only for the non-target memory cells determined in step 3 (CS1 to CS4 in the above case). Output to 2. Then, in the subsequent step 5, the memory control unit 2 executes the self-refresh only for the non-target memory cells (CS1 to CS4) which have received the self-refresh execution request in the step 4 in the memory unit 10.
[0011]
The memory unit 10 constituted by the DDR SDRAM cannot perform read access for 200 clocks after the self-refresh is released. However, the memory control device 1 sets the energy saving mode so that the memory arbiter 3 issues a self-refresh execution request. The self-refresh is not executed for the target memory cell (for example, CS0) indicated by the next address of the first and second read DMA controllers 4 and 5 held by the memory arbiter 3, and other than that. , Self-refresh is executed only for non-target memory cells (for example, CS1 to CS4). In this case, since the self-refresh is performed only for the non-target memory cells that are not scheduled to be accessed next time, it is possible to provide a memory cell that can immediately respond to both the read request and the write request even after the self-refresh is released. DMA transfer when returning from the energy saving mode can be performed quickly.
[0012]
FIG. 2 is a block diagram showing the internal configuration of the memory control device 11 and the memory unit 10 according to the present invention. The memory control device 11 is different from the memory control device 1 in that the memory arbiter 3 and the first and second read DMA controllers 4 and 5 respectively include a memory arbiter 13, a first and second read DMA controller 14. , 15 and the others have the same configuration.
The memory arbiter 13 incorporates therein a reception counter 13a and a next address calculation circuit 13b corresponding to the first and second read DMA controllers 14 and 15, respectively. The next time you know the address. The reception counter 13a measures a count value for calculating a next address (Next ADDR). The next address calculation circuit 13b calculates the next address (Next ADDR) based on the count value measured by the reception counter 13a and the start addresses input from the first and second read DMA controllers 14 and 15.
The first and second read DMA controllers 14 and 15 differ in that a start address (Start ADDR) is input to the memory arbiter 13 instead of the next address (Next ADDR), and the other configurations have the same configuration.
[0013]
Next, the operation of the memory control device 11 and the memory unit 10 configured as described above will be described with reference to the flowchart of FIG.
After starting the operation, the memory control device 11 proceeds to step 11 and inputs a request signal REQ for setting or canceling the self-refresh from the self-refresh control unit 8 to the memory arbiter 13, and the memory arbiter 13 accepts the request. In this case, a response signal (ACK) is output to the self-refresh control unit 8. Upon receiving the response signal (ACK), the self-refresh control unit 8 inputs a status signal for setting or canceling the self-refresh to the memory arbiter 13. In parallel with the operation of the self-refresh control unit 8, the first or second read DMA controller 14, 15 inputs a start address (Start ADDR) to the memory arbiter 13 during startup.
[0014]
Then, when the process proceeds to step 12, the memory arbiter 13 reads the start addresses (Start ADDR) of the active first and second read DMA controllers 14 and 15 to which the data has been input. In the following step 13, the next address calculation circuit 13b calculates the next address (Next ADDR) from the count value measured by the reception counter 13a and the read start address (Start ADDR). Then, the process proceeds to a step 14, wherein the memory arbiter 13 determines whether the memory cell to be read (target memory cell) represented by the next address (Next ADDR) calculated in the step 13 and the other memory cells (non-target memory) Is determined. For example, if the target memory cells are CS1 and CS2, CS0, CS3, and CS4 are determined as non-target memory cells. In the following step 15, the memory arbiter 13 sends a self-refresh execution request signal to the memory cells so that the self-refresh is executed only for the non-target memory cells (CS0, CS3, CS4 in the above case) determined in step 14. Output to the control unit 2. Then, in the subsequent step 16, the memory control unit 2 executes the self-refresh only for the non-target memory cells (CS0, CS3, CS4) that have received the self-refresh execution request in step 15 in the memory unit 10.
[0015]
As described above, when the memory arbiter 13 issues a self-refresh execution request similarly to the memory controller 1, the memory control device 11 sets the target memory cell (CS1, CS2) represented by the next address calculated by the memory arbiter 13. ) Is not executed, and the self-refresh is executed only for the other non-target memory cells (CS0, CS3, CS4). In this case, since the self-refresh is performed only for the non-target memory cells that are not scheduled to be accessed next time, it is possible to provide a memory cell that can immediately respond to both the read request and the write request even after the self-refresh is released. It is possible to quickly perform the DMA transfer when returning from the energy saving mode.
[0016]
【The invention's effect】
As described above, according to the present invention, the DDR SDRAM memory control device can quickly perform the DMA transfer when returning from the energy saving mode.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an internal configuration of a memory control device and a memory unit according to the present invention.
FIG. 2 is a block diagram showing another memory control device according to the present invention and an internal configuration of a memory unit.
FIG. 3 is a flowchart illustrating a self-refresh control procedure performed by the memory control device illustrated in FIG. 1;
FIG. 4 is a flowchart showing a control procedure of a self-refresh by the memory control device shown in FIG. 2;
[Explanation of symbols]
1, 11: memory controller 2: memory controller 3, 13: memory arbiter 4, 5: first and second read DMA controllers 6, 7: first and second write DMA controllers 8: self refresh controller 10: memory units 14, 15: first and second read DMA controllers

Claims (4)

複数のメモリセルからなる記憶装置のデータ読書きを制御するメモリ制御装置であって、
読出しデータをDMA転送する1又は2以上の読出しDMAコントローラと、
書込みデータをDMA転送する1又は2以上の書込みDMAコントローラと、
セルフリフレッシュの設定及び解除を行うための要求信号を出力するセルフリフレッシュ制御部と、
前記読出しDMAコントローラ、書込みDMAコントローラ及びセルフリフレッシュ制御部からの要求に対するアービトレーションを行うメモリアービタとを有し、
前記読出しDMAコントローラから次回アクセス予定の次回アドレスを出力して前記メモリアービタに入力することを特徴とするメモリ制御装置。
A memory control device for controlling data read / write of a storage device including a plurality of memory cells,
One or more read DMA controllers for DMA transferring read data,
One or more write DMA controllers for DMA transfer of write data;
A self-refresh control unit that outputs a request signal for setting and canceling the self-refresh,
A memory arbiter that performs arbitration for requests from the read DMA controller, the write DMA controller and the self-refresh control unit,
A memory control device, wherein a next address to be accessed next is output from the read DMA controller and input to the memory arbiter.
複数のメモリセルからなる記憶装置のデータ読書きを制御するメモリ制御装置であって、
読出しデータをDMA転送する1又は2以上の読出しDMAコントローラと、
書込みデータをDMA転送する1又は2以上の書込みDMAコントローラと、
セルフリフレッシュの設定及び解除を行うための要求信号を出力するセルフリフレッシュ制御部と、
前記読出しDMAコントローラ、書込みDMAコントローラ及びセルフリフレッシュ制御部からの要求に対するアービトレーションを行うメモリアービタとを有し、
前記読出しDMAコントローラからスタートアドレスを出力して前記メモリアービタに入力し、該メモリアービタにより次回アクセス予定の次回アドレスを算出することを特徴とするメモリ制御装置。
A memory control device for controlling data read / write of a storage device including a plurality of memory cells,
One or more read DMA controllers for DMA transferring read data,
One or more write DMA controllers for DMA transfer of write data;
A self-refresh control unit that outputs a request signal for setting and canceling the self-refresh,
A memory arbiter that performs arbitration for requests from the read DMA controller, the write DMA controller and the self-refresh control unit,
A memory control device, wherein a start address is output from the read DMA controller and input to the memory arbiter, and the next address to be accessed next time is calculated by the memory arbiter.
請求項1又は2記載のメモリ制御装置において、
前記メモリアービタが、前記次回アドレスに応じて、セルフリフレッシュの実行対象となる前記メモリセルを切替えることを特徴とするメモリ制御装置。
The memory control device according to claim 1 or 2,
A memory control device, wherein the memory arbiter switches the memory cells to be subjected to self-refresh according to the next address.
請求項1乃至3のいずれか一項記載のメモリ制御装置において、
前記メモリアービタが、前記次回アドレスにより表される前記1又は2以上のメモリセルに対してセルフリフレッシュを実行せず、該メモリセル以外のメモリセルに対してセルフリフレッシュを実行するセルフリフレッシュ実行要求信号を出力することを特徴とするメモリ制御装置。
The memory control device according to any one of claims 1 to 3,
A self-refresh execution request signal for performing a self-refresh on memory cells other than the one or more memory cells indicated by the next address without performing a self-refresh on the one or more memory cells indicated by the next address Output from the memory control device.
JP2002265624A 2002-09-11 2002-09-11 Memory control device Expired - Fee Related JP3867034B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002265624A JP3867034B2 (en) 2002-09-11 2002-09-11 Memory control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002265624A JP3867034B2 (en) 2002-09-11 2002-09-11 Memory control device

Publications (2)

Publication Number Publication Date
JP2004102808A true JP2004102808A (en) 2004-04-02
JP3867034B2 JP3867034B2 (en) 2007-01-10

Family

ID=32264716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002265624A Expired - Fee Related JP3867034B2 (en) 2002-09-11 2002-09-11 Memory control device

Country Status (1)

Country Link
JP (1) JP3867034B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013250791A (en) * 2012-05-31 2013-12-12 Toshiba Corp Program, calculation processing device, memory management method, and calculator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013250791A (en) * 2012-05-31 2013-12-12 Toshiba Corp Program, calculation processing device, memory management method, and calculator

Also Published As

Publication number Publication date
JP3867034B2 (en) 2007-01-10

Similar Documents

Publication Publication Date Title
TWI420304B (en) Data movement engine and memory control method
TWI537725B (en) Hybrid memory device
JP6169658B2 (en) Directed automatic refresh synchronization
US8397100B2 (en) Managing memory refreshes
US8385146B2 (en) Memory throughput increase via fine granularity of precharge management
TW200527296A (en) Efficient system management synchronization and memory allocation
US11561715B2 (en) Method and apparatus for presearching stored data
CN108139994B (en) Memory access method and memory controller
TW200830317A (en) Memory refresh method and system
JP4370063B2 (en) Semiconductor memory device control device and semiconductor memory device control method
JP3728468B2 (en) Memory control device
TW200405156A (en) Semiconductor memory device
JP4518563B2 (en) Semiconductor memory device
Guoteng et al. Design and Implementation of a DDR3-based Memory Controller
JP3867034B2 (en) Memory control device
US20210232504A1 (en) Avoiding processor stall when accessing coherent memory device in low power
JP2004171678A (en) Apparatus, method, and program for storing information
JP3830438B2 (en) Memory access arbiter, memory control device
JP2001101067A (en) Self-refresh controller and storage medium storing program
JP2002207541A (en) Microcomputer and data processor
JPH0660645A (en) Power saving storage device
JP2009266286A (en) Semiconductor memory and memory controller
JPH04362594A (en) Memory backup controller
JP2001202777A (en) Control device for sdram
TW200523797A (en) Microcomputer structure and method having direct memory access function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040916

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060713

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060718

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060919

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061006

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

Free format text: PAYMENT UNTIL: 20101013

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111013

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121013

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees