JP4416575B2 - Memory control method and memory control device - Google Patents
Memory control method and memory control device Download PDFInfo
- Publication number
- JP4416575B2 JP4416575B2 JP2004170367A JP2004170367A JP4416575B2 JP 4416575 B2 JP4416575 B2 JP 4416575B2 JP 2004170367 A JP2004170367 A JP 2004170367A JP 2004170367 A JP2004170367 A JP 2004170367A JP 4416575 B2 JP4416575 B2 JP 4416575B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- mode
- access
- power saving
- memory control
- 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
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
- Memory System (AREA)
Description
本発明は、CPU、DMAコントローラ、PCIバスコントローラ等の複数の機器からアクセスされるメモリを制御し、メモリを通常モード又は省電力待機モードに設定するメモリ制御方法及びメモリ制御装置に関するものである。 The present invention relates to a memory control method and a memory control device for controlling a memory accessed from a plurality of devices such as a CPU, a DMA controller, and a PCI bus controller, and setting the memory to a normal mode or a power saving standby mode.
従来のメモリ制御装置では、メモリの待機時に設定するモードは、機器(CPU,DMA,PCI等)の種類ではなく、ジョブの種類によって定められていた。
特許文献1には、メモリカードへのデータの読み出し時に自動的に省電力モードへの切替えを行うことが開示されているが、単に、アクセスが無い場合には、待機モードになるというものである。また、特許文献2には、メモリの待機モードへの移行を、ジョブの種類によって判断することが開示されているが、その為のソフトウェアの大規模な対応が必要であり、複雑な構成となっている。
Japanese Patent Application Laid-Open No. 2004-228561 discloses that the mode is automatically switched to the power saving mode when data is read from the memory card. However, when there is no access, the standby mode is simply entered. . Japanese Patent Application Laid-Open No. 2004-228867 discloses that the shift to the standby mode of the memory is determined based on the type of job. However, this requires a large-scale software response and a complicated configuration. ing.
上述したように、従来のメモリの制御装置では、メモリの待機時に設定するモードは、ジョブの種類によって定められているので、ジョブの種類を判断する為に、複雑なソフトウェアによる管理機能が必要であるという問題がある。
本発明は、上述したような事情に鑑みてなされたものであり、メモリにアクセスする機器の種類に基づいて、アクセス終了後のメモリの待機モードを設定することにより、大規模なソフトウェアによる管理を必要とせず、簡単な制御で消費電力を低減させることが出来、性能が低下しないメモリ制御方法及びメモリ制御装置を提供することを目的とする。
As described above, in the conventional memory control device, the mode to be set at the time of waiting for the memory is determined by the type of job. Therefore, in order to determine the type of job, a complicated software management function is required. There is a problem that there is.
The present invention has been made in view of the circumstances as described above. Based on the type of device accessing the memory, the standby mode of the memory after the end of access is set, thereby enabling management by a large-scale software. It is an object of the present invention to provide a memory control method and a memory control apparatus that can reduce power consumption with simple control and do not deteriorate performance.
本発明に係るメモリ制御方法は、複数の機器からアクセスされるメモリを制御し、該メモリを通常モード又は省電力待機モードに設定するメモリ制御方法において、前記機器からのアクセスが終了した後に設定すべき前記メモリのモードを、前記機器別に予め設定記憶しておく設定記憶手段を用意し、前記メモリにアクセスして来た機器を識別し、識別した機器について前記設定記憶手段が設定記憶しているモードを参照し、前記アクセスが終了した後に、前記メモリを参照したモードに設定することを特徴とする。 A memory control method according to the present invention controls a memory accessed from a plurality of devices, and sets the memory in a normal mode or a power saving standby mode after the access from the device is completed. A setting storage means for setting and storing the memory mode for each device in advance is prepared, the device that has accessed the memory is identified, and the setting storage device sets and stores the identified device. A mode is referred to, and after the access is completed, the mode is set to refer to the memory.
本発明に係るメモリ制御装置は、複数の機器からアクセスされるメモリを制御し、該メモリを通常モード又は省電力待機モードに設定するように構成してあるメモリ制御装置において、前記機器からのアクセスが終了した後に設定すべき前記メモリのモードを、前記機器別に予め設定記憶しておく設定記憶手段と、前記メモリにアクセスして来た機器を識別する識別手段と、該識別手段が識別した機器について前記設定記憶手段が記憶しているモードを参照する参照手段とを備え、前記アクセスが終了した後に、前記メモリを前記参照手段が参照したモードに設定するように構成してあることを特徴とする。 A memory control device according to the present invention controls a memory accessed from a plurality of devices, and the memory control device configured to set the memory to a normal mode or a power saving standby mode. Setting memory means for setting and storing in advance the mode of the memory to be set after the operation is completed for each device, identifying means for identifying the device that has accessed the memory, and the device identified by the identifying means Reference means for referring to the mode stored in the setting storage means, and configured to set the memory to the mode referred to by the reference means after the access is completed. To do.
本発明に係るメモリ制御方法及びメモリ制御装置では、複数の機器からアクセスされるメモリを制御し、メモリを通常モード又は省電力待機モードに設定する。設定記憶手段が、機器からのアクセスが終了した後に設定すべきメモリのモードを、機器別に予め設定記憶しておき、識別手段が、メモリにアクセスして来た機器を識別する。参照手段が、識別手段が識別した機器について設定記憶手段が記憶しているモードを参照し、アクセスが終了した後に、メモリを参照手段が参照したモードに設定する。 In the memory control method and the memory control device according to the present invention, a memory accessed from a plurality of devices is controlled, and the memory is set to a normal mode or a power saving standby mode. The setting storage unit sets and stores in advance the memory mode to be set after the access from the device is completed for each device, and the identification unit identifies the device that has accessed the memory. The reference unit refers to the mode stored in the setting storage unit for the device identified by the identification unit, and sets the memory to the mode referred to by the reference unit after the access is completed.
本発明に係るメモリ制御装置は、機器から前記メモリへのアクセスが終了して、該メモリを通常モードに設定したときに、所定時間を計時する計時手段を備え、前記機器からの再アクセスがない状態で、前記計時手段が所定時間を計時したときは、前記メモリを省電力待機モードに切替えるように構成してあることを特徴とする。 The memory control device according to the present invention has a time measuring means for measuring a predetermined time when access from the device to the memory is completed and the memory is set to the normal mode, and there is no re-access from the device. In this state, the memory is configured to be switched to a power saving standby mode when the time measuring means measures a predetermined time.
このメモリ制御装置では、機器からメモリへのアクセスが終了して、メモリを通常モードに設定したときに、計時手段が、所定時間を計時し、機器からの再アクセスがない状態で、計時手段が所定時間を計時したときは、メモリを省電力待機モードに切替える。 In this memory control device, when the access from the device to the memory is completed and the memory is set to the normal mode, the time measuring means keeps the predetermined time and there is no re-access from the device, and the time measuring means When the predetermined time is counted, the memory is switched to the power saving standby mode.
本発明に係るメモリ制御装置は、前記識別手段が、前記メモリへアクセスして来た機器をCPUと識別したときは、該アクセスが終了した後、他の機器からのアクセスに関係無く、前記メモリを通常モードに設定し続けるように構成してあることを特徴とする。 In the memory control device according to the present invention, when the identification unit identifies a device that has accessed the memory as a CPU, the memory is independent of access from other devices after the access is completed. Is configured to continue to be set to the normal mode.
このメモリ制御装置では、識別手段が、メモリへアクセスして来た機器をCPUと識別したときは、アクセスが終了した後、他の機器からのアクセスに関係無く、メモリを通常モードに設定し続ける。 In this memory control device, when the identifying means identifies the device that has accessed the memory as a CPU, it continues to set the memory to the normal mode regardless of access from other devices after the access is completed. .
本発明に係るメモリ制御装置は、前記設定記憶手段は、バイト単位で転送する機器については、省電力待機モードを予め設定記憶してあることを特徴とする。 The memory control device according to the present invention is characterized in that the setting storage means pre-sets and stores a power saving standby mode for a device to be transferred in byte units.
このメモリ制御装置では、設定記憶手段は、バイト単位で転送する機器については、省電力待機モードを予め設定記憶してある。 In this memory control device, the setting storage means pre-sets and stores the power saving standby mode for devices that are transferred in byte units.
本発明に係るメモリ制御方法によれば、大規模なソフトウェアによる管理を必要とせず、簡単な制御で消費電力を低減させることが出来、性能が低下しないメモリ制御方法を実現することが出来る。 According to the memory control method of the present invention, it is possible to realize a memory control method that does not require management by large-scale software, can reduce power consumption by simple control, and does not deteriorate performance.
本発明に係るメモリ制御装置によれば、大規模なソフトウェアによる管理を必要とせず、簡単な制御で消費電力を低減させることが出来、性能が低下しないメモリ制御装置を実現することが出来る。 According to the memory control device of the present invention, it is possible to realize a memory control device that does not require management by large-scale software, can reduce power consumption by simple control, and does not deteriorate performance.
本発明に係るメモリ制御装置によれば、大規模なソフトウェアによる管理を必要とせず、簡単な制御で消費電力を低減させることが出来、性能が低下しないメモリ制御装置を実現することが出来る。また、再度、省電力待機モードに入る為のソフトウェアの設定等を実施する必要がなく、制御が簡単である。 According to the memory control device of the present invention, it is possible to realize a memory control device that does not require management by large-scale software, can reduce power consumption by simple control, and does not deteriorate performance. Further, it is not necessary to perform software setting for entering the power saving standby mode again, and the control is simple.
本発明に係るメモリ制御装置によれば、大規模なソフトウェアによる管理を必要とせず、簡単な制御で消費電力を低減させることが出来、性能が低下しないメモリ制御装置を実現することが出来る。また、CPUは、連続してアクセスする可能性が高いので、連続アクセスする機器に設定することにより、次にCPUからのアクセスがあった場合に、CPUへの処理応答速度を上げることが出来る。 According to the memory control device of the present invention, it is possible to realize a memory control device that does not require management by large-scale software, can reduce power consumption by simple control, and does not deteriorate performance. In addition, since the CPU has a high possibility of continuous access, the processing response speed to the CPU can be increased when the CPU is accessed next by setting the device to be continuously accessed.
本発明に係るメモリ制御装置によれば、大規模なソフトウェアによる管理を必要とせず、簡単な制御で消費電力を低減させることが出来、性能が低下しないメモリ制御装置を実現することが出来る。また、低速でデータ転送を行うシリアルインタフェース等からのアクセスがあった場合に、そのアクセスが終了した後、自動的に省電力待機モードに戻るので、消費電力を低減することが出来、省電力待機モードに入る為のソフトウェアの設定等を実施する必要もなく、制御が簡単である。 According to the memory control device of the present invention, it is possible to realize a memory control device that does not require management by large-scale software, can reduce power consumption by simple control, and does not deteriorate performance. In addition, when there is an access from a serial interface that transfers data at a low speed, it automatically returns to the power saving standby mode after the access is completed. There is no need to set software to enter the mode, and control is simple.
以下に、本発明を、その実施の形態を示す図面を参照しながら説明する。
図1は、本発明に係るメモリ制御方法及びメモリ制御装置の実施の形態の要部構成を示すブロック図である。このメモリ制御装置2は、各種プログラムを実行するCPU1、SDRAM(Synchronous Dynamic Random Access Memory)3、シリアル通信部等のI/O部21、ネットワークI/FであるLAN(Local Area Network)部12、USB(Universal Serial Bus)部13、表示用のLCD(Liquid Crystal Display)部14及びROM11と接続されている。
Hereinafter, the present invention will be described with reference to the drawings showing embodiments thereof.
FIG. 1 is a block diagram showing a main configuration of an embodiment of a memory control method and a memory control device according to the present invention. The
メモリ制御装置2は、CPUI/F部8、DMA(Direct Memory Access)コントローラ部9及びPCI(Peripheral Component Interconnect)コントローラ部10と、識別部5、省電力部6及び制御部7を有するメモリコントローラ4とを備えている。CPUI/F部8、DMAコントローラ部9及びPCIコントローラ部10は、それぞれ内部バス1,2,3・18,19,20によりメモリコントローラ4に接続されている。
The
CPU1及びROM11は、CPUバス15によりCPUI/F8と接続され、I/O部21は、I/Oバス16によりDMAコントローラ部9と接続されている。LAN部12、USB部13及びLCD部14は、PCIバス17によりPCIコントローラ部10と接続され、SDRAM3は、SDRAMバス22によりメモリコントローラ4に接続されている。
また、DMAコントローラ部9からは、転送開始を通知するための割込み信号23が、PCIコントローラ部10からは、終了等を通知するための割込み信号24が、それぞれCPU1へ与えられる。
The
The DMA controller 9 gives an
図2は、メモリコントローラ4の内部構成を示すブロック図である。メモリコントローラ4は、識別部5が、内部バス1,2,3・18,19,20経由でデータの送受信を行い、制御部7と別の内部バスにより接続されている。
省電力部6は、各内部バス毎に動作モードを設定する為の内部バス1用設定レジスタ25、内部バス2用設定レジスタ26及び内部バス3用設定レジスタ27とモード&Timerレジスタ28とを内蔵しており、各レジスタ25〜28は、制御部7により書き込み及び読み取りが行われる。制御部7は、SDRAMバス22経由でSDRAM3とデータの送受信を行う。
FIG. 2 is a block diagram showing the internal configuration of the
The power saving unit 6 includes an
以下に、このような構成のメモリ制御装置の動作を、それを示す図3〜7のフローチャートを参照しながら説明する。
先ず、電源がオンされると、制御部7は、内蔵するCPUの初期化処理を実行する(S1)。次に、省電力部6のモード&Timerレジスタ28に、通常動作モードである“Normal,0”を設定する(S2)。このモード&Timerレジスタ28が“Normal”に設定されている間は、SDRAM3が省電力待機モードになることはない。また、このモード&Timerレジスタ28のTimerは、1ms単位でカウントする時計機能があり、いつでも“0”を書くことにより初期化することが可能である。
Hereinafter, the operation of the memory control device having such a configuration will be described with reference to the flowcharts shown in FIGS.
First, when the power is turned on, the
次に、制御部7は、省電力部6の内部バス1用設定レジスタ25に“連続”モードを設定する(S3)。内部バス1には、CPU1が接続されており、一度アクセスが始まると、連続してアクセスして来る可能性が高いので、“モード=連続,Time=FF”を設定する。この“モード=連続,Time=FFの設定は、SDRAM3の省電力待機モード時にアクセスがあった場合には、通常モードに戻り、アクセス終了後、SDRAM3は省電力待機モードには、戻らないことを意味する。
Next, the
次に、制御部7は、同じく内部バス2用設定レジスタ26に“モード=単発,Time=0”を設定する(S4)。内部バス2には、DMAコントローラ部9経由でシリアル等の低速I/O21が接続されており、バイト単位で低速でデータ転送を行う為、一度アクセスを実行しても次にアクセスして来る可能性が低いので、“単発”を設定する。この設定は、アクセス終了後、自動的に省電力待機モードに戻ることを意味する。この場合のTime設定値は、意味を持たない。
Next, the
制御部7は、次に、内部バス3用設定レジスタ27に“モード=連続,Time=10”を設定する(S5)。内部バス3には、PCIバスコントローラ部10経由でPCIデバイス(12,13,14)が接続されており、一度アクセスが始まると、連続してアクセスして来る可能性が高いので、“連続”設定でTimeには“10”が設定される。
Next, the
これは、SDRAM3の省電力待機モード時にアクセスがあった場合には、通常モードに戻り、アクセス終了後、10ms以内に次のアクセスが無ければ、SDRAM3は、省電力待機モードに戻ることを意味する。PCIデバイスは、連続アクセスする可能性が高いが、CPU1程は高くなく、単発でアクセスして来る可能性も高いので、このように設定する。
制御部7は、次に、各I/Oデバイス(低速I/O21、PCIデバイス(12,13,14))の初期化を行った(S6)後、メモリテストを行い(S7)、OS(Operating System)を起動する(S8)。
This means that if there is an access in the power saving standby mode of the
Next, the
制御部7は、省電力待機モードの設定に際して、先ず、省電力部6内のモード&Timerレジスタ28を、省電力待機モードである“Energy,0”に設定する(図4S9)。この設定により、メモリ制御装置2は、SDRAM3を省電力待機モードに設定し、内部のTimerのカウントを“0”から開始する。このカウンタは、1ms単位で時間をカウントする。
次に、制御部7は、内蔵するCPUの設定を省電力待機モードに設定して(S10)リターンする。本実施の形態では、CPUは、省電力待機モードに設定された後は、割込み信号の入力が外部から発生すれば、自動的に通常モードに戻る。
When setting the power saving standby mode, the
Next, the
メモリ制御装置2は、SDRAM3へのアクセスがあった場合(図5)、制御部7の内部フラグSMODE、設定値CNT、内部レジスタ25〜27のTimer、モード&Timerレジスタ28の情報等により作動する。
ここで、内部フラグSMODEの“0”は、“モード&Timerレジスタ28=Normal(通常モード)、SDRAM3の動作モード=Normal(通常モード)”を意味する。内部フラグSMODEの“1”は、“モード&Timerレジスタ28=Energy(省電力待機モード)、SDRAM3の動作モード=Normal”を意味する。内部フラグSMODEの“2”は、“モード&Timerレジスタ28=Energy、SDRAM3の動作モード=Energy(省電力待機モード)”を意味する。
When there is an access to the SDRAM 3 (FIG. 5), the
Here, “0” of the internal flag SMODE means “mode & timer register 28 = Normal (normal mode),
通常状態では、制御部7は、内部フラグSMODE、設定値CNTを初期化し(SMODE,CNT=0)(S11)、次いで、SDRAM3へのアクセスの有無の監視(S12)、及びモード&Timerレジスタ28の設定変更の有無の監視(S17)の動作を繰り返す。
制御部7は、SDRAM3へのアクセスが有ると判定したときは(S12)、内部フラグSMODEの値が2であるか否かを判定し(S13)、2でなければ、SDRAM3の動作モードは通常モードであるので、そのままアクセスする(S15)。内部フラグSMODEの値が2であれば(S13)、SDRAM3の動作モードは、省電力待機モードになっており、通常モードに復帰させる必要があるので、SDRAM3の復帰処理を行う(S14)。
In the normal state, the
When it is determined that there is access to the SDRAM 3 (S12), the
この復帰処理は、メモリコントローラ4にアクセス要求を出した機器に対応する内部バス1〜3用設定レジスタ25〜27の設定データを調べて、モード&Timerレジスタ28、内部フラグSMODE及びTimerの再設定を行う。この復帰処理について後述する。
次に、制御部7は、要求されたメモリアクセスを行い(S15)、モード&Timerレジスタ28のTimer値を“0”に設定して(S16)、SDRAM3へのアクセスの有無の監視(S12)に戻る。
In this restoration process, the setting data in the setting registers 25 to 27 for the
Next, the
制御部7は、モード&Timerレジスタ28が“Normal”ではなく、設定変更されていれば(S17)、つまり、モード&Timerレジスタ28が“Energy,Timer=0”に設定されていれば(図4S9)、内部フラグSMODEの値が“2”であるか否かを判定する(S18)。
制御部7は、内部フラグSMODEの値が“2”であれば(S18)、SDRAM3の動作モードは既に省電力待機モード設定になっているので、何の処理もせず、SDRAM3へのアクセスの有無の監視(S12)に戻る。内部フラグSMODEの値が“2”でなければ(S18)、内部フラグSMODEの値が“0”であるか否かを判定する(S19)。
If the mode & Timer register 28 is not “Normal” but the setting has been changed (S17), that is, if the mode & Timer register 28 is set to “Energy, Timer = 0” (S9 in FIG. 4). Then, it is determined whether or not the value of the internal flag SMODE is “2” (S18).
If the value of the internal flag SMODE is “2” (S18), the
制御部7は、内部フラグSMODEの値が“0”であれば(S19)、SDRAM3の動作モードを省電力待機モードに設定し(S21)、内部フラグSMODEを“2”、設定値CNT=0に設定して(S22)、SDRAM3へのアクセスの有無の監視(S12)に戻る。この処理は、通常モードから省電力待機モードへの移行時に発生する。
制御部7は、内部フラグSMODEの値が“0”でなければ(S19)、SDRAM3の動作モードが、一旦、省電力待機モードに設定されたが、途中でSDRAM3へのアクセスが発生し、モード&Timerレジスタ28は省電力待機モードであるが、SDRAM3は通常モードであるので、省電力待機モードに移行するか否かを確認する(S20)。
If the value of the internal flag SMODE is “0” (S19), the
If the value of the internal flag SMODE is not “0” (S19), the
制御部7は、Timerの値が、省電力待機モードへ移行する為の設定値CNT以上であれば(S20)、SDRAM3を省電力待機モードに設定する(S21)。Timerの値が設定値CNT以上でなく(S20)、まだ設定時間を経過していない場合には、なにも処理せず、SDRAM3へのアクセスの有無の監視(S12)に戻る。これは、SDRAM3へのアクセスがあった後、一定時間が経過していないので、通常モードのまま、次のアクセスを、又は設定時間が経過するのを待っている状態である。
If the value of Timer is equal to or greater than the set value CNT for shifting to the power saving standby mode (S20), the
制御部7は、SDRAM3の復帰処理を行う際に(図5S14)、先ず、何れの機器(マスター)からのアクセスかを識別する為に、識別部5に内部バス1からのアクセスであるか否かを判定させる(図6S23)。内部バス1からのアクセスであるときには、内部バス1用設定レジスタ25の設定が“連続”であるか否かを判定する(S24)。
When performing the return processing of the SDRAM 3 (S14 in FIG. 5), the
制御部7は、内部バス1用設定レジスタ25の設定が“連続”であれば(S24)、そのTime値をCNTに設定し(S25)、Time値が“FF”であるか否かを判定する(S26)。“FF”であれば、内部バス1からのアクセスがあったときには、省電力待機モードを解除して、SDRAM3はアクセス後も通常モードのままにする必要があるので、“SMODE=0、モード&Timerレジスタ28=Normal”に設定して(S27)リターンする。
この設定に変更する(S27)ことにより、制御部7は、モード&Timerレジスタ28を“Normal”(通常モード)と判定する(図5S17)ようになる。
If the setting of the
By changing to this setting (S27), the
制御部7は、Time値が“FF”でなければ(S26)、アクセス終了後、一定時間後にSDRAM3を省電力待機モードに戻す必要があるので、SMODEに“1”を設定し(S29)(図5S15へ)リターンする。また、内部バス1用設定レジスタ25の設定が“連続”でなければ(S24)、アクセス終了後、直ちに省電力待機モードに戻す必要があるので、設定値CNTに“0”を設定し(S28)、SMODEに“1”を設定して(S29)リターンする。
If the Time value is not “FF” (S26), the
制御部7は、内部バス1からのアクセスでなければ(図6S23)、識別部5に内部バス2からのアクセスであるか否かを判定させる(S30)。内部バス2からのアクセスであるときには、内部バス2用設定レジスタ26の設定が“連続”であるか否かを判定する(S31)。
If the access is not from the internal bus 1 (S23 in FIG. 6), the
内部バス2用設定レジスタ26の設定が“連続”であれば(S31)、そのTime値をCNTに設定し(S32)、Time値が“FF”であるか否かを判定する(S33)。“FF”であれば、内部バス2からのアクセスがあったときには、省電力待機モードを解除して、SDRAM3はアクセス後も通常モードのままにする必要があるので、“SMODE=0、モード&Timerレジスタ28=Normal”に設定して(S34)リターンする。
この設定に変更する(S34)ことにより、制御部7は、モード&Timerレジスタ28を“Normal”(通常モード)と判定する(図5S17)ようになる。
If the setting of the
By changing to this setting (S34), the
制御部7は、Time値が“FF”でなければ(S33)、アクセス終了後、一定時間後にSDRAM3を省電力待機モードに戻す必要があるので、SMODEに“1”を設定し(S36)(図5S15へ)リターンする。また、内部バス2用設定レジスタ26の設定が“連続”でなければ(S31)、アクセス終了後、直ちに省電力待機モードに戻す必要があるので、設定値CNTに“0”を設定し(S35)、SMODEに“1”を設定して(S36)リターンする。
If the Time value is not “FF” (S33), the
内部バス2からのアクセスでなければ(図6S30)、内部バス3からのアクセスであり、制御部7は、内部バス3用設定レジスタ27の設定が“連続”であるか否かを判定する(図7S37)。
内部バス3用設定レジスタ27の設定が“連続”であれば(S37)、そのTime値をCNTに設定し(S38)、Time値が“FF”であるか否かを判定する(S39)。“FF”であれば、内部バス3からのアクセスがあったときには、省電力待機モードを解除して、SDRAM3はアクセス後も通常モードのままにする必要があるので、“SMODE=0、モード&Timerレジスタ28=Normal”に設定して(S40)リターンする。
If the access is not from the internal bus 2 (S30 in FIG. 6), the access is from the
If the setting of the
この設定に変更する(S40)ことにより、制御部7は、モード&Timerレジスタ28を“Normal”(通常モード)と判定する(図5S17)ようになる。
制御部7は、Time値が“FF”でなければ(S39)、アクセス終了後、一定時間後にSDRAM3を省電力待機モードに戻す必要があるので、SMODEに“1”を設定し(S42)(図5S15へ)リターンする。また、内部バス3用設定レジスタ27の設定が“連続”でなければ(S37)、アクセス終了後、直ちに省電力待機モードに戻す必要があるので、設定値CNTに“0”を設定し(S41)、SMODEに“1”を設定して(S42)(図5S15へ)リターンする。
By changing to this setting (S40), the
If the Time value is not “FF” (S39), the
制御部7は、アクセス終了後、単発アクセスに設定されている場合には、CNTが“0”なので、Timerの値が設定値CNT未満でなく(図5S20)、SDRAM3を省電力待機モードに設定する(S21)。
本発明に係るメモリ制御装置では、上述したような制御を行うことにより、複数の機器(マスター)からアクセス要求を受付ける場合に、省電力待機中に、一度アクセスを受付け、アクセスが終了した後、連続してアクセスする可能性の高い機器がアクセスを開始したときには、通常モードを維持し、それ以外の機器がアクセスを開始したときには、一定時間後に自動的に省電力待機モードになる。その為、メモリの性能を低下させることなく、メモリの消費電力を低減させることが可能となる。
尚,上述した実施の形態は,本発明を具体化した一例であって,本発明の技術的範囲を限定するものではないことは言うまでもない。
When the single access is set after the access is completed, the
In the memory control device according to the present invention, when receiving an access request from a plurality of devices (masters) by performing the control as described above, the access is once accepted during power saving standby, and after the access is completed, When a device with a high possibility of continuous access starts access, the normal mode is maintained, and when another device starts access, it automatically enters a power saving standby mode after a certain time. For this reason, it is possible to reduce the power consumption of the memory without degrading the performance of the memory.
The above-described embodiment is an example embodying the present invention, and it goes without saying that the technical scope of the present invention is not limited.
1 CPU
2 メモリ制御装置
3 SDRAM(メモリ)
4 メモリコントローラ
5 識別部
6 省電力部(設定記憶手段)
7 制御部
8 CPUI/F部
9 DMAコントローラ部
10 PCIコントローラ部
12 LAN部
13 USB部
14 LCD部
15 CPUバス
16 I/Oバス
17 PCIバス
18 内部バス1
19 内部バス2
20 内部バス3
21 I/O部
25 内部バス1用設定レジスタ
26 内部バス2用設定レジスタ
27 内部バス3用設定レジスタ
28 モード&Timerレジスタ
1 CPU
2
4
7 Control unit 8 CPU I / F unit 9
19
20
21 I / O section 25
Claims (5)
前記機器からのアクセスが終了した後に設定すべき前記メモリのモードを、前記機器別に予め設定記憶しておく設定記憶手段を用意し、前記メモリにアクセスして来た機器を識別し、識別した機器について前記設定記憶手段が設定記憶しているモードを参照し、前記アクセスが終了した後に、前記メモリを参照したモードに設定することを特徴とするメモリ制御方法。 In a memory control method for controlling a memory accessed from a plurality of devices and setting the memory to a normal mode or a power saving standby mode,
A setting storage means for previously setting and storing the mode of the memory to be set after the access from the device is completed for each device is prepared, the device that has accessed the memory is identified, and the identified device The memory control method is characterized in that the mode stored in the setting storage means is referred to, and the mode is referred to after the access is completed.
前記機器からのアクセスが終了した後に設定すべき前記メモリのモードを、前記機器別に予め設定記憶しておく設定記憶手段と、前記メモリにアクセスして来た機器を識別する識別手段と、該識別手段が識別した機器について前記設定記憶手段が記憶しているモードを参照する参照手段とを備え、前記アクセスが終了した後に、前記メモリを前記参照手段が参照したモードに設定するように構成してあることを特徴とするメモリ制御装置。 In a memory control device configured to control a memory accessed from a plurality of devices and set the memory to a normal mode or a power saving standby mode,
A setting storage means for presetting and storing the mode of the memory to be set after the access from the device is completed for each device; an identification means for identifying the device that has accessed the memory; and the identification Reference means for referring to the mode stored in the setting storage means for the device identified by the means, and configured to set the memory to the mode referred to by the reference means after the access is completed. A memory controller characterized by being.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004170367A JP4416575B2 (en) | 2004-06-08 | 2004-06-08 | Memory control method and memory control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004170367A JP4416575B2 (en) | 2004-06-08 | 2004-06-08 | Memory control method and memory control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005352602A JP2005352602A (en) | 2005-12-22 |
JP4416575B2 true JP4416575B2 (en) | 2010-02-17 |
Family
ID=35587061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004170367A Expired - Fee Related JP4416575B2 (en) | 2004-06-08 | 2004-06-08 | Memory control method and memory control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4416575B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4615461B2 (en) * | 2006-03-10 | 2011-01-19 | 京セラミタ株式会社 | Memory controller |
JP2009122828A (en) * | 2007-11-13 | 2009-06-04 | Fuji Xerox Co Ltd | Central processing unit, controller and program |
-
2004
- 2004-06-08 JP JP2004170367A patent/JP4416575B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005352602A (en) | 2005-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI468926B (en) | Processor power management and method | |
JP5427775B2 (en) | Data processing device with low power cache access mode | |
US5630145A (en) | Method and apparatus for reducing power consumption according to bus activity as determined by bus access times | |
JP2007035058A (en) | Method of carrying out configuration of two or more agents in computer system, and device for it | |
JP3136257B2 (en) | Computer memory interface device | |
US9952643B2 (en) | Device power management state transition latency advertisement for faster boot time | |
JP3597282B2 (en) | Data processing apparatus and method | |
JPH10293744A (en) | Pci bus system | |
US5542110A (en) | DMA controller which releases buses to external devices without relinquishing the bus utility right | |
JP2006351013A (en) | Method and system for storing/restoring procedure in electronic equipment | |
CN114661368B (en) | Chip and starting method thereof | |
US5857082A (en) | Method and apparatus for quickly transferring data from a first bus to a second bus | |
JPH11134292A (en) | Memory control system using bus of pipeline system | |
JP4416575B2 (en) | Memory control method and memory control device | |
JP3880331B2 (en) | Method for preserving memory refreshable memory device contents and refresh control circuit | |
JP5741245B2 (en) | Image processing apparatus, image processing control method, and image processing control program | |
JP2011070372A (en) | Dma transmission control device | |
US20180024602A1 (en) | Electronic device and method for controlling the same | |
JP2000298640A (en) | Dma device | |
JP2007249667A (en) | Data transfer device, and data transfer system | |
US7107373B2 (en) | Method of hot switching data transfer rate on bus | |
JP2003122335A (en) | Display controller | |
JP6102204B2 (en) | Electronic device, control program and control method thereof | |
JP2001027920A (en) | Bus bridge circuit and its power management method | |
JP2592360B2 (en) | Computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060912 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091117 |
|
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: 20091124 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091124 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4416575 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121204 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121204 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |