JP4158569B2 - Information processing apparatus and information processing method - Google Patents

Information processing apparatus and information processing method Download PDF

Info

Publication number
JP4158569B2
JP4158569B2 JP2003081359A JP2003081359A JP4158569B2 JP 4158569 B2 JP4158569 B2 JP 4158569B2 JP 2003081359 A JP2003081359 A JP 2003081359A JP 2003081359 A JP2003081359 A JP 2003081359A JP 4158569 B2 JP4158569 B2 JP 4158569B2
Authority
JP
Japan
Prior art keywords
power saving
saving mode
data
interrupt
storage means
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
JP2003081359A
Other languages
Japanese (ja)
Other versions
JP2004288042A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2003081359A priority Critical patent/JP4158569B2/en
Publication of JP2004288042A publication Critical patent/JP2004288042A/en
Application granted granted Critical
Publication of JP4158569B2 publication Critical patent/JP4158569B2/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

Description

【0001】
【発明の属する技術分野】
本発明は、情報処理装置及び情報処理方法に関し、特に、割込処理に必要なデータが記憶された記憶手段が省電力モードにあるときに割込要求が発生した場合でも、記憶手段を円滑に非省電力モードに復帰させて割込処理を行うことができる情報処理装置及び情報処理方法に関するものである。
【0002】
【従来の技術】
現在、省電力機能を有する情報処理装置が広く普及している。この省電力機能は、CPUだけでなく、情報処理装置の各構成要素それぞれにも搭載され、各々省電力モード及び非省電力モードに切替えることができるようになっている。
【0003】
情報処理装置のメインメモリとして広く用いられているDRAMについても、省電力機能を有するものが普及してきている。例えば、DRAMチップ単体で自動的にリフレッシュを行う機能(セルフリフレッシュ機能)を備えた製品がある。このDRAMでは、省電力モード(セルフリフレッシュモード)中は、DRAMチップ中のセルフリフレッシュ機能を実行する回路以外の部分はスリープするため消費電力を抑えることができる。また、DRAMにリフレッシュサイクルを与えるメモリコントローラが省電力モードにあった場合であっても、セルフリフレッシュ機能によってDRAM自身が自動的にリフレッシュを行うことができるため、記憶されたデータは消失しない。なお、DRAMがセルフリフレッシュモードにある場合には、データのリード/ライトを行うことはできない。
【0004】
DRAMの通常動作モード(非省電力モード)からセルフリフレッシュモードへの移行、或いはセルフリフレッシュモードから通常動作モードへの復帰は、通常、CPUの命令によって行われる。
【0005】
DRAMをCPUのセルフリフレッシュ移行命令によってセルフリフレッシュモードに移行させてからCPUが省電力モードに入っている期間中に、割込要求が発生する場合がある。この場合には、CPUは発生した割込要求によって省電力モードから非省電力モードに復帰し、割込処理を行う。
【0006】
しかしながら、割込処理に必要なデータがDRAMに格納されている場合には、CPUがDRAMにアクセスするのに先立って、DRAMをセルフリフレッシュモードから通常動作モードに復帰させる必要がある。
【0007】
このため、従来は、専用のSRAM、または電源投入後に実行されるブートコードを記憶するためのブートROMに、割込処理に必要なデータ全てを記憶させておき、省電力モード中に割込要求が発生した場合には専用のSRAMまたはブートROMから割込処理に必要なデータを取得するようにしていた。しかしながら、SRAMを用いる場合には、SRAM自体が高価であるため、これを搭載することにより装置のコストが上昇する、という問題点があり、ブートROMを用いる場合には、ブートROM自体は従来の情報処理装置に一般的に搭載されているハードウェアであるためコストはかからないが、RAMと比較してアクセススピードが遅いため、省電力モード時の割込処理のみならず非省電力モード時の割込処理までもが遅くなる、という問題点がある。
【0008】
このような問題点を解決するための装置として、外部割込み信号によってSDRAMを通常動作モードに復帰させるためのWAITI命令フェッチ検出回路を設けた情報処理装置が知られている(例えば、特許文献1を参照。)。
【0009】
【特許文献1】
特開2002−140138号公報
【0010】
【発明が解決しようとする課題】
しかしながら、このようなWAITI命令フェッチ検出回路は、一般的な情報処理装置には設けられていないため、WAITI命令フェッチ検出回路が設けられていない情報処理装置ではDRAMを通常動作モードに復帰させることができない、という問題点がある。
【0011】
本発明は、上述した問題を解決するためになされたものであり、付加的な回路を設けなくても、従来のハードウェア構成で割込処理を円滑に行うことができ、処理速度の低下も最小限に抑えることができる情報処理装置及び情報処理方法を提供することを目的とする。
【0012】
【課題を解決するための手段】
本発明の情報処理装置は、省電力モードから非省電力モードに切替える処理に必要なデータ及び割込処理において省電力モードから非省電力モードに切替わるまでの間に実行可能な処理に必要なデータを含む割込処理の初期に必要な初期データを記憶する第1記憶手段と、割込処理に必要な割込処理データ、または前記割込処理データから前記初期データを除いた処理データを記憶すると共に、省電力モードと非省電力モードの切替えが可能な第2記憶手段と、前記第2記憶手段が省電力モードにあるときに割込要求が発生した場合には、前記第1記憶手段から前記初期データを取得して前記第2記憶手段を省電力モードから非省電力モードに切替える処理及び割込処理において前記第2記憶手段が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理を行い、前記第2記憶手段が非省電力モードに切替わった後は、前記第2記憶手段に記憶された割込処理データ、または前記初期データを除いた処理データを取得して割込処理を継続して行う割込処理手段と、を含んで構成されている。
【0013】
本発明の情報処理装置では、第1記憶手段は、省電力モードから非省電力モードに切替える処理に必要なデータ及び割込処理において省電力モードから非省電力モードに切替わるまでの間に実行可能な処理に必要なデータを含む割込処理の初期に必要な初期データを記憶する。第2記憶手段は、割込処理に必要な割込処理データ、または割込処理データから初期データを除いた処理データを記憶すると共に、省電力モードと非省電力モードの切替えを可能とする。割込処理手段は、第2記憶手段が省電力モードにあるときに割込要求が発生した場合には、第1記憶手段から初期データを取得して第2記憶手段を省電力モードから非省電力モードに切替える処理及び割込処理において前記第2記憶手段が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理を行い、第2記憶手段が非省電力モードに切替わった後は、第2記憶手段に記憶された割込処理データ、または初期データを除いた処理データを取得して割込処理を行う。
【0014】
本発明の情報処理方法は、割込処理を行うためのデータの取得先が、省電力モードから非省電力モードに切替える処理に必要なデータ及び割込処理において省電力モードから非省電力モードに切替わるまでの間に実行可能な処理に必要なデータを含む割込処理の初期に必要な初期データを記憶する第1記憶手段であることを、割込処理に必要な割込処理データ、または前記割込処理データから前記初期データを除いた処理データを記憶した第2記憶手段を省電力モードに切替える前に設定する設定工程と、前記第2記憶手段が省電力モードにあるときに割込要求が発生した場合に、前記設定に基づいて前記第1記憶手段から前記初期データを取得して前記第2記憶手段を省電力モードから非省電力モードに切替える処理及び割込処理において前記第2記憶手段が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理を行う第1割込処理工程と、前記第1割込処理工程の後に、前記第2記憶手段に記憶された割込処理データ、または前記初期データを除いた処理データを取得して割込処理を継続して行うと共に、前記割込処理を行うためのデータの取得先を前記第1記憶手段から前記第2記憶手段に切替える処理を行う第2割込処理工程と、を含んで構成されている。
【0015】
本発明の情報処理方法では、設定工程で、割込処理を行うためのデータの取得先が、省電力モードから非省電力モードに切替える処理に必要なデータ及び割込処理において省電力モードから非省電力モードに切替わるまでの間に実行可能な処理に必要なデータを含む割込処理の初期に必要な初期データを記憶する第1記憶手段であることを、割込処理に必要な割込処理データ、または前記割込処理データから前記初期データを除いた処理データを記憶した第2記憶手段を省電力モードに切替える前に設定する。第1割込処理工程では、第2記憶手段が省電力モードにあるときに割込要求が発生した場合に、設定に基づいて第1記憶手段から初期データを取得して第2記憶手段を省電力モードから非省電力モードに切替える処理及び割込処理において前記第2記憶手段が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理を行う。第2割込処理工程では、第1割込処理工程の後に、第2記憶手段に記憶された割込処理データ、または初期データを除いた処理データを取得して割込処理を継続して行うと共に、割込処理を行うためのデータの取得先を第1記憶手段から第2記憶手段に切替える処理を行う。
【0016】
本発明の情報処理装置及び情報処理方法によれば、第2記憶手段が省電力モードにある場合であっても、第1記憶手段に記憶されたデータを取得して第2記憶手段を非省電力モードに切替えるため、情報処理装置にWAITI命令フェッチ検出回路に類する付加的な回路を設けなくても、第2記憶手段を非省電力モードに切替えることができる。更に、切替え後は第2記憶手段のデータを取得して割込処理を行うため、割込処理を円滑に継続して行うことができる。
【0018】
また、第2記憶手段が省電力モードから非省電力モードに切替わるまでの間、第1記憶手段のデータを取得して割込処理において第2記憶手段が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理を行うことができ、第2記憶手段が省電力モードから非省電力モードに切替わるまでの時間を有効に利用することができる。
【0019】
前記第1記憶手段としては、ブートコードを記憶するためのブートROM等の不揮発性メモリまたは電源でバックアップされたバックアップメモリを用いることができる。
【0020】
ブートROMは、従来の情報処理装置に一般的に搭載されている常時アクセス可能な記憶装置であるため、第1記憶手段としてブートROMを用いることによって新たな記憶手段を付加せずに済む。また、ブートROMに初期データを記憶し、ブートROMに比べてアクセススピードの速いDRAMに割込処理データ、または割込処理データから初期データを除いた処理データを記憶して、割込処理を行うことにより、ブートROMに割込処理データを全て記憶して割込処理を行う場合に比べて、割込処理実行時の速度低下を最小限に抑えることができる。
【0021】
【発明の実施の形態】
以下、図面を参照して、本発明の実施の形態について詳細に説明する。
【0022】
図1は、本発明の実施の形態に係る情報処理装置10の構成を示すブロック図である。
【0023】
図示されるように、情報処理装置10には、CPU12と、DRAMコントローラ14と、DRAM16と、割込みコントローラ18と、ブートROM22と、入出力インタフェース(I/O)24とが設けられ、各々バス20を介して接続されている。
【0024】
CPU12は、省電力モードと非省電力モードの切替えが可能であり、省電力モード中に割込みコントローラ18から割込み信号が入力されると非省電力モードに復帰することができる。また、DRAM16及びブートROM22に記憶されたデータ(このデータにはプログラムコードも含まれる)を取得して、省電力モード移行時の処理や割込処理等を実行する。
【0025】
DRAM16は、メインメモリとして使用される。DRAM16には、割込処理に必要なデータ(以下、割込みデータと呼称する)や、情報処理装置10の各構成要素を省電力モードに移行させるために必要なデータを含め、CPU12が行う様々な処理に必要なデータが記憶されている。また、DRAM16は、CPU12の制御によりセルフリフレッシュモード(省電力モード)と通常動作モード(非省電力モード)の切替えが可能である。
【0026】
DRAMコントローラ14は、DRAM16を制御してCPU12やI/O24とのデータ転送を制御すると共に、CPU12の命令に応じてDRAM16を省電力モードから非省電力モードに、或いは、非省電力モードから省電力モードに切替えるコマンドを発行する。なお、DRAM16が非省電力モードにある場合には、DRAMコントローラ14がDRAM16に対して定期的にリフレッシュを実行させる。
【0027】
割込みコントローラ18は、割込要求が発生した場合に、CPU12に対して割込み信号を出力する。
【0028】
ブートROM22は、電源投入後に実行されるブートコードを記憶すると共に、割込みデータのうち、割込処理の初期に必要なデータ(以下、初期データと呼称する)として、DRAM16を省電力モードから非省電力モードに切替える処理に必要なデータを記憶する。
【0029】
I/O24は、各種入出力デバイスと接続され、データ転送を制御する。
【0030】
以下、本実施の形態に係る情報処理装置10の動作の詳細を説明する。
【0031】
CPU12及びDRAM16が非省電力モードにあるときには、CPU12は、割込処理を含め、様々な処理に必要なデータをDRAM16から取得して動作する。なお、このとき、DRAM16ではDRAMコントローラ14によって定期的にリフレッシュが実行される。
【0032】
次に図2のフローチャートを用いて、CPU12及びDRAM16を省電力モードに移行する際に行われるCPU12の処理について説明する。なお、本フローチャートにおける処理は、DRAM16に記憶されたデータが取得されて実行される。
【0033】
ステップ100で、割込みデータの取得先(以下、割込みデータアドレスと呼称する)が、ブートROM22となるように設定する処理を行う。具体的には、割込みデータアドレスが、ブートROM22の初期データが記憶された領域のアドレスとなるように、CPU12の割込みデータアドレス指定用のレジスタ(図示省略)の値を変更することにより設定する。
【0034】
ステップ102で、DRAMコントローラ14に対してDRAM16をセルフリフレッシュモードに設定するための命令(セルフリフレッシュ移行命令)を発行する。この命令を受けたDRAMコントローラ14は、DRAM16に対してセルフリフレッシュモードに移行させるためのコマンドを発行する。なお、ここでは、セルフリフレッシュ移行命令発行後にCPU12自身が省電力モードに移行するためのデータをDRAM16から取得できるように、DRAMコントローラ14側でコマンドの発行が遅延される。コマンドが発行されるとDRAM16は省電力モードに移行する。
【0035】
ステップ104で、CPU12自身が省電力モードに移行する。
【0036】
次に、図3のフローチャートを用いて、省電力モード中に割込要求が発生した場合に行われるCPU12の処理について説明する。
【0037】
割込要求の発生、例えば、ネットワークに接続された外部装置(図示省略)からのジョブの要求、情報処理装置10内部のタイマ(図示省略)からの信号、或いは情報処理装置10のI/O24に接続された入力デバイス(図示省略)の操作(例えば、キー入力やスイッチの押下など)により、トリガが割込みコントローラ18に入力されると、CPU12に割込みコントローラ18から割込み信号が入力される。
【0038】
ステップ200で、割込み信号の入力によりCPU12が省電力モードから非省電力モードに復帰する。
【0039】
ステップ202で、割込みデータアドレスの設定に基づいて、ブートROM22から、割込みデータ(初期データ)を取得する。
【0040】
ステップ204で、取得した初期データを用いてDRAM16をセルフリフレッシュモードから通常動作モードに切替える処理を行う。具体的には、セルフリフレッシュモード解除命令をDRAMコントローラ14に発行する。これによりDRAMコントローラ14からコマンドが発行され、DRAM16が通常動作モードに切替えられる。
【0041】
ステップ206で、DRAM16から割込みデータを取得して割込処理を継続して行うと共に、割込みデータアドレスの設定をブートROM22からDRAM16に切替える。この切替えは、前述のステップ100の処理と同様に、割込みデータアドレスがDRAM16の割込みデータが記憶された領域のアドレスとなるように前述の割込みデータアドレス指定用のレジスタの値を変更することにより行われる。
【0042】
以上説明したように、割込処理に必要な割込処理データのうち、DRAM16を省電力モードから非省電力モードに切替える処理に必要なデータを含む割込処理の初期に必要な初期データをブートROM22に記憶しておき、割込処理データが記憶されたDRAM16が省電力モードにあるときに割込要求が発生した場合には、ブートROM22から初期データを取得して、DRAM16を非省電力モードに切替えるようにしたため、付加的な回路を設けなくても、DRAM16を非省電力モードに切替えることができる。また、DRAM16が非省電力モードに切替わった後は、DRAM16から割込処理データを取得して割込処理を継続するため、ブートROM22に割込みデータ全てを記憶して割込処理を行う場合に比べて処理速度の低下も最小限とすることができる。
【0043】
なお、上述した実施の形態では、ブートROM22に、初期データとして、DRAM16を省電力モードから非省電力モードに切替える処理に必要なデータを記憶する例について説明したが、切替える処理に必要なデータに加え、割込処理において、DRAM16が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理に必要なデータも初期データに含めて記憶しておくこともできる。この場合には、図3のステップ204で、DRAM16のセルフリフレッシュモードの解除のみならず、DRAM16が省電力モードから非省電力モードに切替わるまでの間、ブートROM22のデータを取得して割込処理を継続するようにする。これにより、DRAM16が省電力モードから非省電力モードに切替わるまでの時間を有効に利用することができる。
【0044】
また、上述した実施の形態では、CPU12は、省電力モードに移行するための処理に必要なデータを全てDRAM16から取得して処理する例について説明したが、このデータを予めブートROM22に格納しておくようにしてもよい。このような構成とすることにより、DRAMコントローラ14からDRAM16に対して即座にセルフリフレッシュモード移行のためのコマンドを発行できる。
【0045】
なお、上述した実施の形態では、DRAMコントローラ14の省電力モード及び非省電力モードの切替えについては説明を省略したが、DRAMコントローラ14も、CPU12と共に省電力モード及び非省電力モードに移行するようにしてもよい。
【0046】
また、上述した実施の形態では、DRAM16には、割込みデータ全てが記憶されている例について説明したが、割込みデータから割込処理の初期に必要な初期データを除いた処理データが記憶されるようにしてもよい。
【0047】
更にまた、本発明に係る情報処理装置は、本発明を実現する構成を備えたものであればよく、上述した情報処理装置の構成に限定されるものではない。
【0048】
【発明の効果】
本発明に係る省電力制御装置及び省電力制御方法は、省電力モードから非省電力モードに切替える処理に必要なデータを含む割込処理の初期に必要な初期データを第1記憶手段に記憶しておき、第2記憶手段が省電力モードにあるときに割込要求が発生した場合には、第1記憶手段から初期データを取得して第2記憶手段を省電力モードから非省電力モードに切替える処理を含む処理を行い、第2記憶手段が非省電力モードに切替わった後は、第2記憶手段に記憶されたデータを取得して割込処理を継続して行うようにしたため、付加的な回路を設けなくても、従来のハードウェア構成で第1記憶手段を非省電力モードに切替えて割込処理を円滑に行うことができ、処理速度の低下も最小限とすることができる、という効果を奏する。
【図面の簡単な説明】
【図1】 本発明の実施の形態に係る情報処理装置の構成を示すブロック図である。
【図2】 CPU及びDRAMの省電力モード移行時に行われるCPUの処理を示したフローチャートである。
【図3】 省電力モードにあるときに割込要求が発生した場合に行われるCPUの処理を示したフローチャートである。
【符号の説明】
10 情報処理装置
12 CPU
14 DRAMコントローラ
16 DRAM
18 割込みコントローラ
22 ブートROM
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an information processing apparatus and an information processing method, and in particular, even when an interrupt request is generated when a storage unit storing data necessary for interrupt processing is in a power saving mode, the storage unit can be smoothly operated. The present invention relates to an information processing apparatus and an information processing method that can perform interrupt processing by returning to a non-power saving mode.
[0002]
[Prior art]
Currently, information processing apparatuses having a power saving function are widely used. This power saving function is installed not only in the CPU but also in each component of the information processing apparatus, and can be switched to a power saving mode and a non-power saving mode.
[0003]
As a DRAM widely used as a main memory of an information processing apparatus, a DRAM having a power saving function has become widespread. For example, there is a product having a function (self-refresh function) for automatically refreshing a DRAM chip alone. In this DRAM, during the power saving mode (self-refresh mode), the portions other than the circuit executing the self-refresh function in the DRAM chip sleep, so that power consumption can be suppressed. Even when the memory controller that gives the DRAM a refresh cycle is in the power saving mode, the DRAM itself can be automatically refreshed by the self-refresh function, so the stored data is not lost. Note that when the DRAM is in the self-refresh mode, data cannot be read / written.
[0004]
The transition from the normal operation mode (non-power saving mode) of the DRAM to the self-refresh mode or the return from the self-refresh mode to the normal operation mode is usually performed by a command from the CPU.
[0005]
An interrupt request may occur during the period in which the CPU enters the power saving mode after the DRAM is shifted to the self refresh mode by the CPU self refresh transition command. In this case, the CPU returns from the power saving mode to the non-power saving mode in response to the generated interrupt request, and performs an interrupt process.
[0006]
However, when data necessary for interrupt processing is stored in the DRAM, it is necessary to restore the DRAM from the self-refresh mode to the normal operation mode before the CPU accesses the DRAM.
[0007]
For this reason, conventionally, all data necessary for interrupt processing is stored in a dedicated SRAM or a boot ROM for storing boot code executed after power-on, and an interrupt request is made during the power saving mode. When this occurs, data necessary for interrupt processing is obtained from a dedicated SRAM or boot ROM. However, when SRAM is used, since the SRAM itself is expensive, there is a problem that the cost of the apparatus increases by mounting the SRAM. When the boot ROM is used, the boot ROM itself is conventional. Since it is hardware that is generally installed in information processing devices, it does not cost anything, but because the access speed is slower than RAM, not only interrupt processing in power saving mode but also in non power saving mode. There is a problem that the processing is slow.
[0008]
As an apparatus for solving such a problem, an information processing apparatus provided with a WAITI instruction fetch detection circuit for returning an SDRAM to a normal operation mode by an external interrupt signal is known (for example, see Patent Document 1). reference.).
[0009]
[Patent Document 1]
Japanese Patent Laid-Open No. 2002-140138
[Problems to be solved by the invention]
However, since such a WAITI instruction fetch detection circuit is not provided in a general information processing apparatus, the information processing apparatus in which the WAITI instruction fetch detection circuit is not provided can return the DRAM to the normal operation mode. There is a problem that it is not possible.
[0011]
The present invention has been made to solve the above-described problems, and can perform interrupt processing smoothly with a conventional hardware configuration without providing an additional circuit, and the processing speed can be reduced. It is an object to provide an information processing apparatus and an information processing method that can be minimized.
[0012]
[Means for Solving the Problems]
The information processing apparatus according to the present invention is necessary for data necessary for processing to switch from the power saving mode to the non power saving mode and for processing that can be executed in the interrupt processing before switching from the power saving mode to the non power saving mode. storing a first storage means for storing initial data necessary for the initialization of interrupt processing, interrupt processing data required for the interrupt processing, or processing data except for the initial data from the interrupt processing data including data And a second storage means capable of switching between a power saving mode and a non-power saving mode, and when an interrupt request is generated when the second storage means is in the power saving mode, the first storage means switching the second storage means in the processing and interrupt processing switching the second storage means to obtain the initial data from the power saving mode to the non-power saving mode from the power saving mode to the non-power saving mode from the Perform executable processing until the second after the storage means is switched to the non-power saving mode, interrupt processing data stored in said second storage means, or excluding the initial data processing Interrupt processing means for acquiring data and continuing interrupt processing.
[0013]
In the information processing apparatus of the present invention, first storage means, performed during the data and interrupt processing required for the processing of switching from the power saving mode to the non-power saving mode from the power saving mode to the non-power saving mode to the switched Store initial data required at the beginning of an interrupt process including data required for possible processing . The second storage means stores interrupt processing data necessary for the interrupt processing or processing data obtained by removing initial data from the interrupt processing data, and enables switching between the power saving mode and the non-power saving mode. When an interrupt request is generated when the second storage means is in the power saving mode, the interrupt processing means acquires initial data from the first storage means and removes the second storage means from the power saving mode. In the process of switching to the power mode and the interrupt process, the second storage means performs a process that can be executed until the power saving mode is switched to the non-power saving mode, and the second storage means is switched to the non-power saving mode. After that, the interrupt processing data stored in the second storage means or the processing data excluding the initial data is acquired and the interrupt processing is performed.
[0014]
According to the information processing method of the present invention, the data acquisition destination for the interrupt processing is the data required for the processing for switching from the power saving mode to the non power saving mode, and the interrupt processing from the power saving mode to the non power saving mode. Interrupt processing data required for interrupt processing, or first storage means for storing initial data required at the beginning of interrupt processing including data required for processing that can be executed before switching , or A setting step of setting the second storage means storing the processing data excluding the initial data from the interrupt processing data before switching to the power saving mode; and an interrupt when the second storage means is in the power saving mode. If the request is generated in the processing and interrupt processing switching the second storage means to obtain the initial data from the first storage unit based on the setting from the power saving mode to the non-power saving mode A first interrupt process whose serial second storage means performs a process executable until switched from the power saving mode to the non-power saving mode, after the first interrupt processing step, the second storage means The interrupt processing data stored in the memory or the processing data excluding the initial data is acquired and the interrupt processing is continued, and the acquisition destination of the data for performing the interrupt processing is the first storage means And a second interrupt processing step for performing processing for switching to the second storage means.
[0015]
In the information processing method of the present invention, in the setting step, the acquisition destination of data for performing the interrupt process is the data required for the process of switching from the power saving mode to the non power saving mode, and the interrupt process is not performed from the power saving mode. Interrupts required for interrupt processing are the first storage means for storing initial data necessary for the initial stage of interrupt processing including data necessary for processing that can be executed before switching to the power saving mode. The second storage means storing the processing data or the processing data obtained by removing the initial data from the interrupt processing data is set before switching to the power saving mode. In the first interrupt processing step, when an interrupt request is generated when the second storage means is in the power saving mode, the initial data is acquired from the first storage means based on the setting and the second storage means is omitted. In the process of switching from the power mode to the non-power saving mode and the interrupt process, the second storage means performs a process that can be executed until the power saving mode is switched to the non power saving mode . In the second interrupt processing step, after the first interrupt processing step, the interrupt processing data stored in the second storage means or the processing data excluding the initial data is acquired and the interrupt processing is continued. At the same time, a process of switching the acquisition destination of data for performing the interrupt process from the first storage means to the second storage means is performed.
[0016]
According to the information processing apparatus and the information processing method of the present invention, even when the second storage unit is in the power saving mode, the data stored in the first storage unit is acquired and the second storage unit is omitted. In order to switch to the power mode, the second storage means can be switched to the non-power saving mode without providing an additional circuit similar to the WAITI instruction fetch detection circuit in the information processing apparatus. Further, after the switching, the data in the second storage means is acquired and the interrupt process is performed, so that the interrupt process can be performed smoothly and continuously.
[0018]
Also, until the second storage means switched from the power saving mode not the power saving mode, the second storage means from the power saving mode in the interrupt processing to obtain the data in the first storage means to the non-power saving mode Executable processing can be performed before switching, and the time until the second storage unit switches from the power saving mode to the non-power saving mode can be used effectively.
[0019]
As the first storage means, a non-volatile memory such as a boot ROM for storing a boot code or a backup memory backed up by a power source can be used.
[0020]
Since the boot ROM is a storage device that can be accessed at all times and is generally mounted in a conventional information processing apparatus, it is not necessary to add new storage means by using the boot ROM as the first storage means. Also, initial data is stored in the boot ROM, and interrupt processing data or processing data obtained by removing the initial data from the interrupt processing data is stored in the DRAM having a higher access speed than the boot ROM, and the interrupt processing is performed. As a result, compared with the case where the interrupt processing is performed by storing all the interrupt processing data in the boot ROM, the speed reduction at the time of executing the interrupt processing can be minimized.
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0022]
FIG. 1 is a block diagram showing a configuration of an information processing apparatus 10 according to an embodiment of the present invention.
[0023]
As illustrated, the information processing apparatus 10 includes a CPU 12, a DRAM controller 14, a DRAM 16, an interrupt controller 18, a boot ROM 22, and an input / output interface (I / O) 24. Connected through.
[0024]
The CPU 12 can switch between the power saving mode and the non-power saving mode, and can return to the non-power saving mode when an interrupt signal is input from the interrupt controller 18 during the power saving mode. In addition, data stored in the DRAM 16 and the boot ROM 22 (this data includes a program code) is acquired, and processing at the time of shifting to the power saving mode, interrupt processing, and the like are executed.
[0025]
The DRAM 16 is used as a main memory. The DRAM 16 includes various data performed by the CPU 12 including data necessary for interrupt processing (hereinafter referred to as interrupt data) and data necessary for shifting each component of the information processing apparatus 10 to the power saving mode. Data necessary for processing is stored. The DRAM 16 can be switched between a self-refresh mode (power saving mode) and a normal operation mode (non-power saving mode) under the control of the CPU 12.
[0026]
The DRAM controller 14 controls the DRAM 16 to control data transfer with the CPU 12 and the I / O 24, and saves the DRAM 16 from the power saving mode to the non-power saving mode or from the non-power saving mode according to a command from the CPU 12. Issue a command to switch to power mode. When the DRAM 16 is in the non-power saving mode, the DRAM controller 14 causes the DRAM 16 to periodically refresh.
[0027]
The interrupt controller 18 outputs an interrupt signal to the CPU 12 when an interrupt request is generated.
[0028]
The boot ROM 22 stores a boot code to be executed after power-on, and the DRAM 16 is not saved from the power saving mode as data necessary for the initial stage of interrupt processing (hereinafter referred to as initial data) among interrupt data. Data necessary for processing to switch to the power mode is stored.
[0029]
The I / O 24 is connected to various input / output devices and controls data transfer.
[0030]
Details of the operation of the information processing apparatus 10 according to the present embodiment will be described below.
[0031]
When the CPU 12 and the DRAM 16 are in the non-power saving mode, the CPU 12 operates by acquiring data necessary for various processes including the interrupt process from the DRAM 16. At this time, the DRAM controller 14 periodically refreshes the DRAM 16.
[0032]
Next, the processing of the CPU 12 performed when the CPU 12 and the DRAM 16 are shifted to the power saving mode will be described with reference to the flowchart of FIG. Note that the processing in this flowchart is executed after data stored in the DRAM 16 is acquired.
[0033]
In step 100, processing is performed to set the interrupt data acquisition destination (hereinafter referred to as interrupt data address) to be the boot ROM 22. More specifically, the interrupt data address is set by changing the value of the interrupt data address register (not shown) of the CPU 12 so that the initial data of the boot ROM 22 is stored.
[0034]
In step 102, an instruction (self-refresh transition instruction) for setting the DRAM 16 to the self-refresh mode is issued to the DRAM controller 14. Upon receiving this instruction, the DRAM controller 14 issues a command for causing the DRAM 16 to shift to the self-refresh mode. Here, the issuance of a command is delayed on the DRAM controller 14 side so that the CPU 12 itself can acquire data for shifting to the power saving mode after issuing the self-refresh transition instruction. When the command is issued, the DRAM 16 shifts to the power saving mode.
[0035]
In step 104, the CPU 12 itself shifts to the power saving mode.
[0036]
Next, the processing of the CPU 12 performed when an interrupt request is generated during the power saving mode will be described using the flowchart of FIG.
[0037]
Generation of an interrupt request, for example, a job request from an external device (not shown) connected to the network, a signal from a timer (not shown) in the information processing device 10, or an I / O 24 of the information processing device 10 When a trigger is input to the interrupt controller 18 by an operation of a connected input device (not shown) (for example, key input or switch pressing), an interrupt signal is input from the interrupt controller 18 to the CPU 12.
[0038]
In step 200, the CPU 12 returns from the power saving mode to the non-power saving mode by the input of the interrupt signal.
[0039]
In step 202, interrupt data (initial data) is acquired from the boot ROM 22 based on the setting of the interrupt data address.
[0040]
In step 204, the DRAM 16 is switched from the self-refresh mode to the normal operation mode using the acquired initial data. Specifically, a self-refresh mode release command is issued to the DRAM controller 14. As a result, a command is issued from the DRAM controller 14 and the DRAM 16 is switched to the normal operation mode.
[0041]
In step 206, interrupt data is acquired from the DRAM 16 and interrupt processing is continued, and the setting of the interrupt data address is switched from the boot ROM 22 to the DRAM 16. This switching is performed by changing the value of the register for specifying the interrupt data address so that the interrupt data address becomes the address of the area where the interrupt data of the DRAM 16 is stored, as in the process of step 100 described above. Is called.
[0042]
As described above, among the interrupt process data necessary for the interrupt process, the initial data necessary for the initial stage of the interrupt process including the data necessary for the process of switching the DRAM 16 from the power saving mode to the non-power saving mode is booted. When an interrupt request is generated when the DRAM 16 stored in the ROM 22 and storing the interrupt processing data is in the power saving mode, the initial data is acquired from the boot ROM 22 and the DRAM 16 is set in the non-power saving mode. Therefore, the DRAM 16 can be switched to the non-power saving mode without providing an additional circuit. In addition, after the DRAM 16 is switched to the non-power-saving mode, the interrupt processing data is acquired from the DRAM 16 and the interrupt processing is continued. Therefore, when the interrupt processing is performed by storing all the interrupt data in the boot ROM 22. In comparison, the reduction in processing speed can be minimized.
[0043]
In the above-described embodiment, the example in which data necessary for the process of switching the DRAM 16 from the power saving mode to the non-power saving mode is stored in the boot ROM 22 as the initial data has been described. In addition, in the interrupt processing, data necessary for processing that can be executed before the DRAM 16 is switched from the power saving mode to the non-power saving mode can be stored in the initial data. In this case, in step 204 of FIG. 3, not only the release of the self-refresh mode of the DRAM 16 but also the acquisition of the data in the boot ROM 22 until the DRAM 16 is switched from the power saving mode to the non-power saving mode. Continue processing. Thereby, the time until the DRAM 16 is switched from the power saving mode to the non-power saving mode can be used effectively.
[0044]
Further, in the above-described embodiment, the CPU 12 has explained an example in which all data necessary for the process for shifting to the power saving mode is acquired from the DRAM 16 and processed. However, this data is stored in the boot ROM 22 in advance. You may make it leave. With such a configuration, a command for shifting to the self-refresh mode can be immediately issued from the DRAM controller 14 to the DRAM 16.
[0045]
In the above-described embodiment, description of switching between the power saving mode and the non-power saving mode of the DRAM controller 14 is omitted, but the DRAM controller 14 also shifts to the power saving mode and the non-power saving mode together with the CPU 12. It may be.
[0046]
In the above-described embodiment, the example in which all the interrupt data is stored in the DRAM 16 has been described. However, the processing data excluding the initial data necessary for the initial stage of the interrupt processing from the interrupt data is stored. It may be.
[0047]
Furthermore, the information processing apparatus according to the present invention is not limited to the above-described configuration of the information processing apparatus as long as it has a configuration for realizing the present invention.
[0048]
【The invention's effect】
The power saving control apparatus and the power saving control method according to the present invention store initial data necessary for an initial stage of an interrupt process including data necessary for a process of switching from a power saving mode to a non-power saving mode in a first storage unit. If an interrupt request is generated when the second storage means is in the power saving mode, the initial data is acquired from the first storage means and the second storage means is changed from the power saving mode to the non-power saving mode. After the second storage means is switched to the non-power-saving mode, the data stored in the second storage means is acquired and the interrupt process is continuously performed. Even if a special circuit is not provided, the interrupt processing can be performed smoothly by switching the first storage means to the non-power saving mode with the conventional hardware configuration, and the decrease in processing speed can be minimized. , Has the effect.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an information processing apparatus according to an embodiment of the present invention.
FIG. 2 is a flowchart showing processing performed by a CPU when a CPU and a DRAM are shifted to a power saving mode.
FIG. 3 is a flowchart illustrating a process performed by a CPU when an interrupt request is generated in the power saving mode.
[Explanation of symbols]
10 Information processing device 12 CPU
14 DRAM controller 16 DRAM
18 Interrupt controller 22 Boot ROM

Claims (6)

省電力モードから非省電力モードに切替える処理に必要なデータ及び割込処理において省電力モードから非省電力モードに切替わるまでの間に実行可能な処理に必要なデータを含む割込処理の初期に必要な初期データを記憶する第1記憶手段と、
割込処理に必要な割込処理データ、または前記割込処理データから前記初期データを除いた処理データを記憶すると共に、省電力モードと非省電力モードの切替えが可能な第2記憶手段と、
前記第2記憶手段が省電力モードにあるときに割込要求が発生した場合には、前記第1記憶手段から前記初期データを取得して前記第2記憶手段を省電力モードから非省電力モードに切替える処理及び割込処理において前記第2記憶手段が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理を行い、前記第2記憶手段が非省電力モードに切替わった後は、前記第2記憶手段に記憶された割込処理データ、または前記初期データを除いた処理データを取得して割込処理を継続して行う割込処理手段と、
を含む情報処理装置。
Initial stage of interrupt processing including data required for processing to switch from power saving mode to non-power saving mode and data required for processing that can be executed before switching from power saving mode to non power saving mode in interrupt processing First storage means for storing initial data required for
Second processing means capable of storing interrupt processing data required for interrupt processing or processing data obtained by removing the initial data from the interrupt processing data, and capable of switching between a power saving mode and a non-power saving mode;
When said interrupt request occurs when in the second storage means the power saving mode, the first from the storage means to acquire the initial data the second non-power saving mode storage means from the power saving mode In the process of switching to and the interrupt process, the second storage means performs a process that can be executed before switching from the power saving mode to the non power saving mode, and the second storage means is switched to the non power saving mode. After that, interrupt processing data stored in the second storage means, or interrupt processing means for obtaining the processing data excluding the initial data and continuing the interrupt processing;
An information processing apparatus including:
前記第1記憶手段は、不揮発性メモリまたは電源でバックアップされたバックアップメモリである請求項1記載の情報処理装置。It said first storage means according to claim 1 Symbol placement of the information processing apparatus is a backup memory backed up by non-volatile memory or power. 前記第1記憶手段は、ブートコードを記憶するためのブートROMである請求項1記載の情報処理装置。It said first storage means according to claim 1 Symbol placement of the information processing apparatus is a boot ROM for storing boot code. 割込処理を行うためのデータの取得先が、省電力モードから非省電力モードに切替える処理に必要なデータ及び割込処理において省電力モードから非省電力モードに切替わるまでの間に実行可能な処理に必要なデータを含む割込処理の初期に必要な初期データを記憶する第1記憶手段であることを、割込処理に必要な割込処理データ、または前記割込処理データから前記初期データを除いた処理データを記憶した第2記憶手段を省電力モードに切替える前に設定する設定工程と、
前記第2記憶手段が省電力モードにあるときに割込要求が発生した場合に、前記設定に基づいて前記第1記憶手段から前記初期データを取得して前記第2記憶手段を省電力モードから非省電力モードに切替える処理及び割込処理において前記第2記憶手段が省電力モードから非省電力モードに切替わるまでの間に実行可能な処理を行う第1割込処理工程と、
前記第1割込処理工程の後に、前記第2記憶手段に記憶された割込処理データ、または前記初期データを除いた処理データを取得して割込処理を継続して行うと共に、前記割込処理を行うためのデータの取得先を前記第1記憶手段から前記第2記憶手段に切替える処理を行う第2割込処理工程と、
を含む情報処理方法。
The data acquisition destination for interrupt processing can be executed before the data required for processing to switch from the power saving mode to the non power saving mode and before switching from the power saving mode to the non power saving mode in the interrupt processing. The first storage means for storing the initial data necessary for the initial stage of the interrupt process including the data necessary for the correct process, the interrupt process data necessary for the interrupt process or the initial value from the interrupt process data A setting step for setting the second storage means storing the processing data excluding the data before switching to the power saving mode;
When said second storage means interrupt request when it is in the power saving mode is generated, the second storage means to obtain the initial data from the first storage unit based on the setting from the power saving mode A first interrupt processing step for performing a process that can be executed until the second storage unit switches from the power saving mode to the non power saving mode in the process of switching to the non power saving mode and the interrupt process;
After the first interrupt processing step, the interrupt processing data stored in the second storage means or the processing data excluding the initial data is acquired to continue the interrupt processing, and the interrupt A second interrupt processing step for performing processing for switching the acquisition destination of data for processing from the first storage means to the second storage means;
Information processing method including:
前記第1記憶手段は、不揮発性メモリまたは電源でバックアップされたバックアップメモリである請求項4記載の情報処理方法。The first storage means, information processing method according to claim 4 Symbol mounting a backup memory which is backed up by non-volatile memory or power. 前記第1記憶手段は、ブートコードを記憶するためのブートROMである請求項4記載の情報処理方法。The first storage means, information processing method according to claim 4 Symbol mounting a boot ROM for storing boot code.
JP2003081359A 2003-03-24 2003-03-24 Information processing apparatus and information processing method Expired - Fee Related JP4158569B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003081359A JP4158569B2 (en) 2003-03-24 2003-03-24 Information processing apparatus and information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003081359A JP4158569B2 (en) 2003-03-24 2003-03-24 Information processing apparatus and information processing method

Publications (2)

Publication Number Publication Date
JP2004288042A JP2004288042A (en) 2004-10-14
JP4158569B2 true JP4158569B2 (en) 2008-10-01

Family

ID=33294950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003081359A Expired - Fee Related JP4158569B2 (en) 2003-03-24 2003-03-24 Information processing apparatus and information processing method

Country Status (1)

Country Link
JP (1) JP4158569B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5106864B2 (en) * 2007-01-22 2012-12-26 京セラドキュメントソリューションズ株式会社 Bus system and image forming apparatus
JP2014016782A (en) * 2012-07-09 2014-01-30 Toshiba Corp Information processing device and program

Also Published As

Publication number Publication date
JP2004288042A (en) 2004-10-14

Similar Documents

Publication Publication Date Title
CN100483363C (en) Semiconductor integrated circuit and power-saving control method thereof
JP5229326B2 (en) Power consumption control method, power consumption control program and information processing system in multi-core CPU
US20050152212A1 (en) Memory controller capable of estimating memory power consumption
JP3728468B2 (en) Memory control device
KR100212142B1 (en) Synchronous semiconductor memory device with macro command
US7219248B2 (en) Semiconductor integrated circuit operable to control power supply voltage
JP2003131935A (en) Synchronous dram controller and its control method
JP4791714B2 (en) Method, circuit, and system for using pause time of dynamic frequency scaling cache memory
JPH10133714A (en) Integrated circuit device
CN101727160A (en) Method and device for switching working modes of coprocessor system and processor system
JP4158569B2 (en) Information processing apparatus and information processing method
US20050273566A1 (en) Memory access control apparatus and memory access control method
JP5783348B2 (en) Control device, control program, and image forming apparatus
JP2002230970A (en) Memory control device
JPH117344A (en) Power saving personal computer
JP3699947B2 (en) Microcontroller
JP2006260092A (en) Information processor or data transfer controller
JP2701752B2 (en) Microprocessor clock supply control circuit
JP2000207292A (en) Unit and method for memory backup control
KR101236393B1 (en) Electric device and control method thereof
JP3082103B2 (en) Processor
JP2006350957A (en) Control unit
JP2002229692A (en) Information processing device
JPH06119257A (en) Large scale integrated circuit incorporating internal state saving structure
JPH0660645A (en) Power saving storage device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080325

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080521

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4158569

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110725

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120725

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130725

Year of fee payment: 5

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

LAPS Cancellation because of no payment of annual fees
R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350