JP5774764B2 - Memory control device, semiconductor device, system board, and information processing device - Google Patents

Memory control device, semiconductor device, system board, and information processing device Download PDF

Info

Publication number
JP5774764B2
JP5774764B2 JP2014253310A JP2014253310A JP5774764B2 JP 5774764 B2 JP5774764 B2 JP 5774764B2 JP 2014253310 A JP2014253310 A JP 2014253310A JP 2014253310 A JP2014253310 A JP 2014253310A JP 5774764 B2 JP5774764 B2 JP 5774764B2
Authority
JP
Japan
Prior art keywords
clock
memory
main memory
processor
signal
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.)
Active
Application number
JP2014253310A
Other languages
Japanese (ja)
Other versions
JP2015092372A (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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2014253310A priority Critical patent/JP5774764B2/en
Publication of JP2015092372A publication Critical patent/JP2015092372A/en
Application granted granted Critical
Publication of JP5774764B2 publication Critical patent/JP5774764B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

本発明の実施の形態は、メモリ制御装置、半導体装置、システムボード、および情報処理装置に関する。   Embodiments described herein relate generally to a memory control device, a semiconductor device, a system board, and an information processing device.

タブレット端末やスマートフォンなどの携帯型の情報処理装置は、限られた電力を有効に利用して動作することが望まれる。そのため、情報処理装置の消費電力を削減することが重要な課題である。   It is desired that portable information processing devices such as tablet terminals and smartphones operate using limited power effectively. Therefore, reducing the power consumption of the information processing apparatus is an important issue.

情報処理装置は、プロセッサがデバイスからの入力待ちでスタンバイ状態(割り込みを待ち続けている状態)のときに、プロセッサがタスクを処理する際のクロック源となる高周波発振器を停止することで、消費電力を減らすことができる。また、情報処理装置は、スタンバイ状態のときに、プロセッサによりデータが読み書きされるメモリへの電力の供給を停止することで、さらに消費電力を削減することができる。   When the processor is in a standby state (waiting for an interrupt) while waiting for input from the device, the information processing device stops power consumption by stopping the high-frequency oscillator that is the clock source for processing the task. Can be reduced. Further, the information processing apparatus can further reduce power consumption by stopping the supply of power to the memory from which data is read and written by the processor in the standby state.

特開2004−326153号公報JP 2004-326153 A

しかし、プロセッサが割り込みを受けて情報処理装置がスタンバイ状態から復帰する際に、まず高周波発振器を動かしてクロックが安定してからメモリの初期化を行うと、プロセッサがメモリにデータを読み書きできるようになるまでに時間がかかるという問題がある。   However, when the processor is interrupted and the information processing device returns from the standby state, the processor can read / write data from / to the memory by first moving the high-frequency oscillator and initializing the memory after the clock has stabilized. There is a problem that it takes time to become.

本発明が解決しようとする課題は、消費電力の削減を図りつつ、プロセッサがメモリにデータを読み書きできるようになるまでの時間を短縮できるメモリ制御装置、半導体装置、システムボード、および情報処理装置を提供することである。   A problem to be solved by the present invention is to provide a memory control device, a semiconductor device, a system board, and an information processing device capable of reducing power consumption and shortening the time required for a processor to read and write data from and to a memory. Is to provide.

実施形態のメモリ制御装置は、プロセッサによりデータが読出しまたは書込みの少なくとも一方が可能なメモリを制御する。このメモリ制御装置は、前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前メモリを初期化するための信号を供給し、第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号または書込みのための信号の少なくとも一方を供給する。前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い。 The memory control device of the embodiment controls a memory from which data can be read or written by a processor. The memory controller, an interrupt to the processor occurs, the pre-Symbol memory to said memory for supplying a first clock supplying a signal for initializing, and supplies the second clock wherein for the memory, at least one of the signals to test feed for the signal or write for the reading of data by the processor. The second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.

実施形態のメモリコントローラを備える情報処理装置の外観図。1 is an external view of an information processing apparatus including a memory controller according to an embodiment. 情報処理装置のハードウェア構成例を示すブロック図。The block diagram which shows the hardware structural example of information processing apparatus. 情報処理装置の要部の構成例を示すブロック図。The block diagram which shows the structural example of the principal part of information processing apparatus. 従来のスタンバイ解除の動作を説明するタイミングチャート。The timing chart explaining the operation | movement of the conventional standby cancellation | release. 従来のメモリ初期化処理を説明するタイミングチャート。6 is a timing chart illustrating conventional memory initialization processing. 実施形態におけるスタンバイ解除の動作を説明するタイミングチャート。6 is a timing chart for explaining an operation for canceling standby in the embodiment. 実施形態のメモリコントローラの構成例を示すブロック図。FIG. 3 is an exemplary block diagram illustrating a configuration example of the memory controller according to the embodiment. 実施形態のメモリ初期化処理を説明するタイミングチャート。6 is a timing chart illustrating memory initialization processing according to the embodiment. 実施形態のメモリ初期化処理の他の例を説明するタイミングチャート。6 is a timing chart for explaining another example of the memory initialization process according to the embodiment. 実施形態のメモリコントローラの動作を説明するタイミングチャート。6 is a timing chart for explaining the operation of the memory controller according to the embodiment. 実施形態のメモリコントローラの動作を説明するタイミングチャート。6 is a timing chart for explaining the operation of the memory controller according to the embodiment. 実施形態のメモリコントローラの動作を説明するタイミングチャート。6 is a timing chart for explaining the operation of the memory controller according to the embodiment.

図1は、本実施形態のメモリコントローラを備える情報処理装置1の外観を示す図である。この情報処理装置1は、タブレット型の情報端末として構成されている。   FIG. 1 is a diagram illustrating an appearance of an information processing apparatus 1 including a memory controller according to the present embodiment. The information processing apparatus 1 is configured as a tablet information terminal.

情報処理装置1は、端末表面に表示部2aを備える。表示部2aには、たとえば、低消費電力の反射型液晶ディスプレイ、あるいは電子ペーパーなどが用いられる。また、情報処理装置1は、端末表面の表示部2a以外の部分に太陽電池3を備える。また、情報処理装置1は、表示部2aの表面にポインティングデバイスとして機能するタッチパネル2bを備える。さらに、情報処理装置1は、端末表面の表示部2aと重ならない位置にキーボード4を備える。キーボード4は、太陽電池3の表面に透明なタッチパネル2bを重ねることで実現してもよい。また、透明な素材または遮光性の部分の少ない素材を用いた機械式のキーボード4として実現してもよい。   The information processing apparatus 1 includes a display unit 2a on the terminal surface. For the display unit 2a, for example, a low power consumption reflective liquid crystal display or electronic paper is used. Moreover, the information processing apparatus 1 includes a solar cell 3 in a portion other than the display unit 2a on the terminal surface. In addition, the information processing apparatus 1 includes a touch panel 2b that functions as a pointing device on the surface of the display unit 2a. Furthermore, the information processing apparatus 1 includes a keyboard 4 at a position that does not overlap the display unit 2a on the terminal surface. The keyboard 4 may be realized by overlapping a transparent touch panel 2b on the surface of the solar cell 3. Further, it may be realized as a mechanical keyboard 4 using a transparent material or a material with few light-shielding portions.

図2は、情報処理装置1のハードウェア構成例を示すブロック図である。情報処理装置1は、主なハードウェア構成として、SoC(System on a Chip)10、メインメモリ5、2次ストレージ6、太陽電池3、蓄電部7、PMIC(Power Management Integrated Circuit;電源管理IC)8、表示部2a、タッチパネル2b、キーボード4、および通信インタフェース(通信I/F)9の各モジュールを備えている。   FIG. 2 is a block diagram illustrating a hardware configuration example of the information processing apparatus 1. The information processing apparatus 1 includes a SoC (System on a Chip) 10, a main memory 5, a secondary storage 6, a solar battery 3, a power storage unit 7, a PMIC (Power Management Integrated Circuit) as main hardware configurations. 8, each module includes a display unit 2 a, a touch panel 2 b, a keyboard 4, and a communication interface (communication I / F) 9.

情報処理装置1は、太陽電池3で発電した電力で動作する。しかし、太陽電池3で発電する電力だけでは動作時(何らかの処理を実行しているとき)の情報処理装置1全体のピークの消費電力をまかなえない。このため、アイドル時(ユーザからの応答待ちの時間や、情報処理装置1を使用していない時間など)に太陽電池3で発電した余剰電力を蓄電部7に充電しておく。そして、動作時には、PMIC8が、蓄電部7が蓄積している電力と太陽電池3が発電した電力とをあわせてPMIC8で必要な電圧に調整して、情報処理装置1の各モジュールに供給する。このような電源制御は、ピークアシストあるいはピークシフトと呼ばれる。   The information processing apparatus 1 operates with electric power generated by the solar cell 3. However, the peak power consumption of the entire information processing apparatus 1 at the time of operation (when some kind of processing is being performed) cannot be provided by only the power generated by the solar battery 3. For this reason, the power storage unit 7 is charged with surplus power generated by the solar cell 3 during idling (time for waiting for a response from the user, time when the information processing apparatus 1 is not used, etc.). In operation, the PMIC 8 adjusts the electric power accumulated in the power storage unit 7 and the electric power generated by the solar cell 3 to a necessary voltage in the PMIC 8 and supplies the voltage to each module of the information processing apparatus 1. Such power control is called peak assist or peak shift.

蓄電部7は、リチウムイオン電池などのバッテリ、または電気2重層キャパシタなどを、単独で、または組み合わせて実現できる。たとえば、太陽電池3で発電した電力をまず電気2重層キャパシタに蓄積し、蓄積した電力をさらにリチウムイオン電池に充電するような組み合わせが可能である。   The power storage unit 7 can be realized by a battery such as a lithium ion battery or an electric double layer capacitor alone or in combination. For example, a combination is possible in which the electric power generated by the solar cell 3 is first stored in an electric double layer capacitor, and the stored electric power is further charged in a lithium ion battery.

PMIC8は、SoC10やメインメモリ5などの各モジュールへの電力を供給するモジュールである。PMIC8は、太陽電池3や蓄電部7から供給される電力を、SoC10やメインメモリ5など各モジュールが必要とする電圧に変換して、各モジュールに供給する。PMIC8は、各モジュールへの電力の供給をオン/オフする機能も持つ。   The PMIC 8 is a module that supplies power to each module such as the SoC 10 and the main memory 5. The PMIC 8 converts the power supplied from the solar cell 3 and the power storage unit 7 into a voltage required by each module such as the SoC 10 and the main memory 5 and supplies the voltage to each module. The PMIC 8 also has a function of turning on / off the power supply to each module.

SoC10は、情報処理装置1の全体を制御するコアとなるプロセッサ(CPU;Central Processing Unit)11や、本実施形態のメモリコントローラ(メモリ制御装置)100などを半導体基板に実装したシステムLSI(半導体装置)である。なお、SoC10およびメモリ制御装置100の具体的な構成例については、詳細を後述する。   The SoC 10 is a system LSI (semiconductor device) in which a processor (CPU: Central Processing Unit) 11 serving as a core for controlling the entire information processing device 1 and the memory controller (memory control device) 100 according to the present embodiment are mounted on a semiconductor substrate. ). Details of specific configuration examples of the SoC 10 and the memory control device 100 will be described later.

メインメモリ5は、SoC10のCPU11によりデータが読み書きされるメモリであり、CPU11が各種の処理を実行する際のワークエリアとして利用する主記憶部である。メインメモリ5には、たとえば、DDR SDRAM(Double Date Rate Synchronous Dynamic Random Access Memory)、DDR2 SDRAM(Double Date Rate 2 Synchronous Dynamic Random Access Memory)、DDR3 SDRAM(Double Date Rate 3 Synchronous Dynamic Random Access Memory)、LPDDR SDRAM(Low Power Double Date Rate Synchronous Dynamic Random Access Memory)、LPDDR2 SDRAM(Low Power Double Date Rate 2 Synchronous Dynamic Random Access Memory)などの同期型のインタフェースを持つDRAMなどを用いることができる。   The main memory 5 is a memory in which data is read and written by the CPU 11 of the SoC 10, and is a main storage unit used as a work area when the CPU 11 executes various processes. The main memory 5 includes, for example, DDR SDRAM (Double Date Rate Synchronous Dynamic Random Access Memory), DDR2 SDRAM (Double Date Rate 2 Synchronous Dynamic Random Access Memory), DDR3 SDRAM (Double Date Rate 3 Synchronous Dynamic Random Access Memory), LPDDR. A DRAM having a synchronous interface such as an SDRAM (Low Power Double Date Rate Synchronous Dynamic Random Access Memory) or an LPDDR2 SDRAM (Low Power Double Date Rate 2 Synchronous Dynamic Random Access Memory) can be used.

2次ストレージ6は、情報処理装置1が必要とするデータやプログラムを記憶する、不揮発メモリを用いた補助記憶部である。2次ストレージ6には、たとえば、フラッシュメモリを用いることができる。また、2次ストレージ6としてSDカードやSSDを用いることもできる。   The secondary storage 6 is an auxiliary storage unit using a nonvolatile memory that stores data and programs required by the information processing apparatus 1. As the secondary storage 6, for example, a flash memory can be used. An SD card or SSD can be used as the secondary storage 6.

情報処理装置1は、入出力デバイスとして、表示部2aやタッチパネル2b、キーボード4、通信I/F9を備える。通信I/F9は、たとえば無線LAN(Local Area Network)などによる通信を行うためのインタフェースである。通信の方式は無線LANに限られず、有線LAN、Bluetooth(登録商標)、ZigBee(登録商標)、赤外線通信、可視光通信、光回線網、電話回線網、およびインターネットなどのあらゆる方式を利用できる。   The information processing apparatus 1 includes a display unit 2a, a touch panel 2b, a keyboard 4, and a communication I / F 9 as input / output devices. The communication I / F 9 is an interface for performing communication using, for example, a wireless LAN (Local Area Network). The communication method is not limited to the wireless LAN, and any method such as a wired LAN, Bluetooth (registered trademark), ZigBee (registered trademark), infrared communication, visible light communication, optical line network, telephone line network, and the Internet can be used.

図3は、情報処理装置1の要部の構成例を示すブロック図であり、SoC10と、メインメモリ5と、PMIC8とを抜き出して示したものである。これらの各モジュールは、たとえば、情報処理装置1のマザーボード(システムボード)に搭載される。   FIG. 3 is a block diagram illustrating a configuration example of a main part of the information processing apparatus 1, in which the SoC 10, the main memory 5, and the PMIC 8 are extracted and illustrated. Each of these modules is mounted on a motherboard (system board) of the information processing apparatus 1, for example.

SoC10は、上述したように、CPU11とメモリコントローラ100とを備える。CPU11とメモリコントローラ100は、チップに形成されたバス12により接続されている。SoC10は、メモリコントローラ100によって、外部のメインメモリ5と接続される。SoC10やメインメモリ5を動作させる電力は、PMIC8から供給される。なお、図3では図示を省略しているが、SoC10の内部に、表示部2aやタッチパネル2b、キーボード4、通信I/F9などの入出力デバイスのコントローラを設けるようにしてもよい。   As described above, the SoC 10 includes the CPU 11 and the memory controller 100. The CPU 11 and the memory controller 100 are connected by a bus 12 formed on a chip. The SoC 10 is connected to the external main memory 5 by the memory controller 100. Power for operating the SoC 10 and the main memory 5 is supplied from the PMIC 8. Although not shown in FIG. 3, a controller for input / output devices such as the display unit 2 a, the touch panel 2 b, the keyboard 4, and the communication I / F 9 may be provided inside the SoC 10.

また、SoC10は、チップに搭載されたシステムを動作させるためのクロックを生成するために、低周波発振器13と高周波発振器14とを備える。低周波発振器13は、たとえば32KHzの水晶発振子が接続されて発振する。また、高周波発振器14は、たとえば24MHzの水晶発振子が接続されて発振する。   The SoC 10 includes a low frequency oscillator 13 and a high frequency oscillator 14 in order to generate a clock for operating a system mounted on the chip. The low-frequency oscillator 13 oscillates, for example, by connecting a crystal oscillator of 32 KHz. The high-frequency oscillator 14 oscillates, for example, by connecting a crystal oscillator of 24 MHz.

低周波発振器13の出力は、サブクロックとしてCPU11とメモリコントローラ100とに供給され、チップに搭載されたシステムの起動やスタンバイ状態での動作に用いられる。一方、高周波発振器14の出力は、さらにPLL(Phase Locked Loop)15によって周波数を高くしてCPU11とメモリコントローラ100とに供給され、CPU11が各種処理を実行する際のメインクロックとして用いられる。   The output of the low-frequency oscillator 13 is supplied as a subclock to the CPU 11 and the memory controller 100, and is used for starting up a system mounted on the chip and for operating in a standby state. On the other hand, the output of the high-frequency oscillator 14 is further increased in frequency by a PLL (Phase Locked Loop) 15 and supplied to the CPU 11 and the memory controller 100, and used as a main clock when the CPU 11 executes various processes.

さらに、SoC10は、アイドル時にSoC10が消費電力の少ない待機状態になるように制御する電力状態管理部16を備える。CPU11は、すぐに実行すべきタスクがなくなり、入出力デバイスからの割り込み待ちになると、WFI(Wait for Interrupt)命令を出して割り込みを待つ。このとき、割り込みを待っている間の消費電力を下げるために、電力状態管理部16は、SoC10を待機状態にする。多くのSoCでは、待機状態の消費電力と待機状態への遷移と復帰に必要なコストが異なる複数の種類の待機状態を提供している。その中でも消費電力の小さいスタンバイ状態では、電力状態管理部16がSoC10内の各モジュールのパワーゲーティングを行ったり、高周波発振器14を止めてメインクロックの供給を停止したりする。このとき、電力状態管理部16は、高周波発振器14だけでなくPLL15も同時に停止することもある。またこのとき、電力状態管理部16は、メインメモリ5への電力の供給の停止をPMIC8に指示する、あるいはメインメモリ5を第1の消費電力で動作する状態からこの第1の消費電力よりも小さい第2の消費電力で待機する状態(ディープパワーダウンやセルフリフレッシュ)に切り替えることをメモリコントローラ100に指示することで、消費電力の大幅な削減を図る。   Furthermore, the SoC 10 includes a power state management unit 16 that performs control so that the SoC 10 enters a standby state with low power consumption during idling. When there is no task to be executed immediately and the CPU 11 waits for an interrupt from the input / output device, the CPU 11 issues a WFI (Wait for Interrupt) instruction and waits for an interrupt. At this time, in order to reduce power consumption while waiting for an interrupt, the power state management unit 16 puts the SoC 10 into a standby state. Many SoCs provide a plurality of types of standby states in which the power consumption in the standby state and the cost required for transition to and recovery from the standby state are different. Among them, in the standby state with low power consumption, the power state management unit 16 performs power gating of each module in the SoC 10 or stops the high-frequency oscillator 14 to stop the main clock supply. At this time, the power state management unit 16 may stop not only the high-frequency oscillator 14 but also the PLL 15 at the same time. At this time, the power state management unit 16 instructs the PMIC 8 to stop the supply of power to the main memory 5 or operates the main memory 5 with the first power consumption more than the first power consumption. By instructing the memory controller 100 to switch to a standby state (deep power down or self-refresh) with a small second power consumption, the power consumption can be significantly reduced.

電力状態管理部16は、入出力デバイスからの割り込み発生を検出すると、SoC10内の各モジュールのパワーゲーティングを行っている場合はそれを解除し、高周波発振器14やPLL15を停止している場合はそれらの動作を再開する。さらに、このとき、電力状態管理部16は、メインメモリ5への電力の供給の再開をPMIC8に指示する、あるいはメインメモリ5を第2の消費電力で待機する状態から第1の消費電力で動作する状態に切り替えることをメモリコントローラ100に指示する。   When detecting the occurrence of an interrupt from the input / output device, the power state management unit 16 cancels the power gating of each module in the SoC 10 and cancels the high frequency oscillator 14 or the PLL 15 if they are stopped. Restart the operation. Further, at this time, the power state management unit 16 instructs the PMIC 8 to resume the supply of power to the main memory 5 or operates with the first power consumption from the state where the main memory 5 is on standby with the second power consumption. The memory controller 100 is instructed to switch to the state to be performed.

電力状態管理部16は、SoC10がスタンバイ状態かそうでないかを示すスタンバイ信号を出力し、このスタンバイ信号を使って、PMIC8に対してメインメモリ5への電力の供給の停止や再開を指示する、あるいはメモリコントローラ100に対してメインメモリ5を第1の消費電力で動作する状態と第2の消費電力で待機する状態の相互の間の切り替えを指示するように実施してもよい。この場合、PMIC8は、スタンバイ信号がオンになるとメインメモリ5への電力の供給を停止し、スタンバイ信号がオフになるとメインメモリへ5の電力の供給を再開する。また、この場合、メモリコントローラ100は、スタンバイ信号がオフからオンになるとメインメモリ5に信号(コマンド)を送って第2の消費電力で待機する状態にし、スタンバイ信号がオンからオフになるとメインメモリ5に信号(コマンド)を送って第1の消費電力で動作する状態にする。別の実施方法としては、スタンバイ信号を使わずに、電力状態管理部16からPMIC8あるいはメモリコントローラ100に専用の信号線を使って指示するように実施してもよい。   The power state management unit 16 outputs a standby signal indicating whether the SoC 10 is in a standby state or not, and instructs the PMIC 8 to stop or restart the supply of power to the main memory 5 using the standby signal. Alternatively, the memory controller 100 may be instructed to switch between a state in which the main memory 5 operates with the first power consumption and a state in which the main memory 5 stands by with the second power consumption. In this case, the PMIC 8 stops supplying power to the main memory 5 when the standby signal is turned on, and resumes supplying power to the main memory when the standby signal is turned off. Further, in this case, the memory controller 100 sends a signal (command) to the main memory 5 when the standby signal is turned from off to on, and waits at the second power consumption, and when the standby signal is turned off from the main memory 5 A signal (command) is sent to 5 so as to operate with the first power consumption. As another implementation method, the power state management unit 16 may instruct the PMIC 8 or the memory controller 100 using a dedicated signal line without using the standby signal.

なお、電力状態管理部16は、Power Reset Manager、General Power Controller、またはLow-Leakage Wake-Up Unitなどと呼ばれることもある。また、電力状態管理部16の一部あるいはすべての機能をCPU11が内蔵する場合もある。   The power state management unit 16 may be called a power reset manager, a general power controller, or a low-leakage wake-up unit. The CPU 11 may incorporate some or all of the functions of the power state management unit 16.

メインメモリ5として上述したDRAMなどの揮発性のメモリを用いる場合は、メインメモリ5への電力の供給を停止するとデータが消えるが、実行状態でCPU11が作業用として用いるデータであればスタンバイ状態に入れば消えても問題ない。また、消えてはいけないデータがある場合は、そのデータを別の揮発性のメモリに記憶し、そのメモリはスタンバイ状態でも電力の供給を止めないようにする、あるいは、そのデータを別の不揮発メモリに記憶させるようにしてもよい。さらに、メインメモリ5としてPCMやMRAMなどの不揮発性のメモリを用いて、メインメモリ5への電力の供給を停止してもデータが消えないようにしてもよい。   When the volatile memory such as the DRAM described above is used as the main memory 5, the data disappears when the supply of power to the main memory 5 is stopped. There is no problem even if it disappears if it enters. Also, if there is data that should not be erased, store the data in another volatile memory so that the memory does not stop supplying power even in the standby state, or the data is stored in another non-volatile memory. You may make it memorize. Further, a non-volatile memory such as PCM or MRAM may be used as the main memory 5 so that the data is not lost even when the supply of power to the main memory 5 is stopped.

メインメモリ5としてDRAMを用い、スタンバイ状態のときにメインメモリ5を第2の消費電力で待機する状態にする場合には、メインメモリ5が第2の消費電力で待機する状態として、DRAMのセルフリフレッシュモードやディープパワーダウンモードを用いることができる。   When a DRAM is used as the main memory 5 and the main memory 5 is set to a standby state with the second power consumption in the standby state, the main memory 5 is set in a standby state with the second power consumption. A refresh mode or a deep power down mode can be used.

なお、低周波発振器13で生成したサブクロックは、スタンバイ状態の間のタイマのカウントや割り込みの監視、スタンバイ状態から動作状態への状態遷移などに必要なので止めることはできない。低周波発振器13の消費電力は高周波発振器14の消費電力に比べて小さいので問題にはならない。   Note that the sub-clock generated by the low-frequency oscillator 13 cannot be stopped because it is necessary for timer counting during the standby state, monitoring of interrupts, state transition from the standby state to the operating state, and the like. Since the power consumption of the low frequency oscillator 13 is smaller than the power consumption of the high frequency oscillator 14, there is no problem.

本実施形態のSoC10では、入出力デバイスからの割り込みを受けて、電力状態管理部16が、スタンバイ状態を解除し、高周波発振器14(およびPLL15)の動作を開始させるとともに、PMIC8に指示してメインメモリ5への電力の供給を開始する、あるいはメモリコントローラ100に指示してメインメモリ5を第2の消費電力で待機する状態から第1の消費電力で動作する状態に復帰する際、メモリコントローラ100が、メインクロックが安定するのを待つことなくメインメモリ5の初期化処理を開始することで、CPU11が割り込みを処理できるようになるまでの時間を短縮する。   In the SoC 10 of this embodiment, upon receiving an interrupt from the input / output device, the power state management unit 16 cancels the standby state, starts the operation of the high-frequency oscillator 14 (and the PLL 15), and instructs the PMIC 8 to perform main processing. When the supply of power to the memory 5 is started, or when the memory controller 100 is instructed to return the main memory 5 from the standby state with the second power consumption to the state operating with the first power consumption, the memory controller 100 However, by starting the initialization process of the main memory 5 without waiting for the main clock to stabilize, the time until the CPU 11 can process an interrupt is shortened.

ここで、本実施形態に対する比較例として、従来の一般的なスタンバイ解除の動作について図4を参照しながら説明する。図4は、従来の一般的なSoCが割り込みを受けてスタンバイ状態から動作状態へ遷移するときのタイミングチャートである。なお、従来の一般的なSoCの構成は、図3に示した本実施形態のSoC10と同様であるが、低周波発振器13が生成したサブクロックがメモリコントローラ100に供給されず、メモリコントローラ100がサブクロックに基づく動作を行わない点が、本実施形態と異なる。以下では、便宜上、本実施形態と対応する比較例の構成要素について、本実施形態の構成要素の符号に添え字nを付加した符号を付して説明する。   Here, as a comparative example with respect to the present embodiment, a conventional general standby release operation will be described with reference to FIG. FIG. 4 is a timing chart when a conventional general SoC receives an interrupt and transitions from a standby state to an operating state. The conventional general SoC configuration is the same as that of the SoC 10 of the present embodiment shown in FIG. 3, but the subclock generated by the low frequency oscillator 13 is not supplied to the memory controller 100, and the memory controller 100 The difference from the present embodiment is that the operation based on the sub-clock is not performed. In the following, for convenience, the constituent elements of the comparative example corresponding to the present embodiment will be described with reference numerals added with a subscript n to the reference numerals of the constituent elements of the present embodiment.

時刻T1でいずれかの入出力デバイスなどからCPU11nへの割り込みが入ると、それを検出した電力状態管理部16によってスタンバイ状態が解除される。従来の一般的なSoC10nでは、スタンバイ状態であることを示すスタンバイ信号が定義されており、スタンバイ状態が解除されるとスタンバイ信号がローレベルになる。それにあわせて、SoC10nの電力状態管理部16は、まず高周波発振器14n(および必要ならPLL15n)を動作開始させ、高周波発振器14nの発振が安定するのを待つ。高周波発振器14nの出力はPLL15nに入り、そこで周波数を上げて、メインクロックにする。また、スタンバイ状態のときにメインメモリ5nへの電力の供給を停止している場合には、SoC10nの電力状態管理部16は、時刻T1でスタンバイ状態が解除されると、そのタイミングでPMIC8nに指示してメインメモリ5nに対する電力の供給を開始させる。   When an interrupt from one of the input / output devices to the CPU 11n is input at time T1, the standby state is canceled by the power state management unit 16 that detects the interrupt. In the conventional general SoC 10n, a standby signal indicating a standby state is defined, and when the standby state is canceled, the standby signal becomes a low level. Accordingly, the power state management unit 16 of the SoC 10n first starts the operation of the high-frequency oscillator 14n (and PLL 15n if necessary) and waits for the oscillation of the high-frequency oscillator 14n to stabilize. The output of the high-frequency oscillator 14n enters the PLL 15n, where the frequency is increased and used as the main clock. When the supply of power to the main memory 5n is stopped in the standby state, the power state management unit 16 of the SoC 10n instructs the PMIC 8n at the timing when the standby state is canceled at time T1. Then, the supply of power to the main memory 5n is started.

時刻T2でメインクロックが安定すると、CPU11nは割り込み処理が可能な状態になる。しかし、この段階ではメインメモリ5nの初期化が終わっていないので、CPU11nはメモリコントローラ100nにメインメモリ5nの初期化を指示する。この際、スタンバイ状態のときにメインメモリ5nを第2の消費電力で待機する状態にしている場合には、CPU11nの指示を受けたメモリコントローラ100nは、まずメインメモリ5nを第1の消費電力で動作する状態にさせる。そして、時刻T3で、CPU11nの指示を受けたメモリコントローラ100nがメインメモリ5nの初期化処理を開始し、時刻T4でメインメモリ5nの初期化が完了すると、メインメモリ5nがデータの読み書き可能な状態となる。その後、CPU11nがメインメモリ5nを用いて割り込み処理を実行する。なお、メモリコントローラ100nとしては、上述のようにCPU11nからの指示でメインメモリ5nの初期化処理を開始するメモリコントローラもあれば、スタンバイ解除の後、メインクロックが安定したことを検知した電力状態管理部16の指示によってメインメモリ5nの初期化処理を開始するメモリコントローラもある。   When the main clock is stabilized at time T2, the CPU 11n is ready for interrupt processing. However, since the initialization of the main memory 5n is not completed at this stage, the CPU 11n instructs the memory controller 100n to initialize the main memory 5n. At this time, when the main memory 5n is in a standby state with the second power consumption in the standby state, the memory controller 100n receiving the instruction from the CPU 11n first sets the main memory 5n with the first power consumption. Make it work. At time T3, the memory controller 100n that has received an instruction from the CPU 11n starts the initialization process of the main memory 5n. When the initialization of the main memory 5n is completed at time T4, the main memory 5n is in a state where data can be read and written. It becomes. Thereafter, the CPU 11n executes an interrupt process using the main memory 5n. As the memory controller 100n, there is a memory controller that starts the initialization process of the main memory 5n in response to an instruction from the CPU 11n as described above. There is also a memory controller that starts the initialization process of the main memory 5n according to an instruction from the unit 16.

ここでメインメモリ5nの初期化処理とは、スタンバイ状態が解除されてメインメモリ5nに対して電力の供給が開始された後、あるいはメインメモリ5nが第2の消費電力で待機する状態から第1の消費電力で動作する状態に復帰した後に、メインメモリ5nをCPU11nによるデータの読み書きが可能な状態に初期化するための処理である。具体的には、メインメモリ5nの初期化処理は、メインメモリ5nに対して電力の供給が開始されてから所定時間が経過した後にメインメモリ5n内の制御用レジスタにバースト長や信号の遅延に関するパラメータなどを設定する処理、あるいはメインメモリ5nが第2の消費電力で待機する状態から第1の消費電力で動作する状態に復帰してから所定時間が経過した後にメインメモリ5n内の制御用レジスタにバースト長や信号の遅延に関するパラメータなどを設定する処理である。   Here, the initialization process of the main memory 5n is the first after the standby state is released and the supply of power to the main memory 5n is started, or from the state where the main memory 5n waits at the second power consumption. This is a process for initializing the main memory 5n to a state in which data can be read and written by the CPU 11n after returning to the state of operating with the power consumption. Specifically, the initialization process of the main memory 5n is related to the burst length and signal delay in the control register in the main memory 5n after a predetermined time has elapsed since the start of power supply to the main memory 5n. A control register in the main memory 5n after a predetermined time has elapsed since the process of setting parameters or the like, or after the main memory 5n returns from the standby state at the second power consumption to the state at which the main memory 5n operates at the first power consumption. Is a process for setting parameters such as burst length and signal delay.

ここで、メインメモリ5nとしてDDR3 SDRAMを用い、スタンバイ状態のときにメインメモリ5nに対する電力の供給を停止する場合を想定して、従来の一般的なメインメモリ5nの初期化処理について図5を参照しながら説明する。図5は、従来の一般的なメモリコントローラ100nによるメインメモリ5nの初期化処理を説明するタイミングチャートである。   Here, assuming that a DDR3 SDRAM is used as the main memory 5n and the power supply to the main memory 5n is stopped in the standby state, refer to FIG. 5 for the initialization processing of the conventional general main memory 5n. While explaining. FIG. 5 is a timing chart for explaining the initialization process of the main memory 5n by the conventional general memory controller 100n.

メインメモリ5nがDDR3 SDRAMのような同期型のインタフェースを持つメモリの場合、メモリコントローラ100nは、図5に示すように、メインメモリ5nに対して、メモリクロックを供給しながら、このメモリクロックに同期してメインメモリ5nを初期化するためのコマンド(第1制御信号)を供給する。このとき、従来の一般的なメモリコントローラ100nは、上述したメインクロックをそのまま、あるいはメインクロックをPLLやフリップフロップなどにより内部で周波数変換したものを、メモリクロックとしてメインメモリ5nに供給する。このため、メインクロックが安定するまでは、メインメモリ5nにメモリクロックを供給することができず、メインメモリ5nの初期化処理を行うことができない。   When the main memory 5n is a memory having a synchronous interface such as DDR3 SDRAM, the memory controller 100n synchronizes with the memory clock while supplying the memory clock to the main memory 5n as shown in FIG. Then, a command (first control signal) for initializing the main memory 5n is supplied. At this time, the conventional general memory controller 100n supplies the main memory 5n as a memory clock with the main clock described above as it is or with the main clock frequency-converted internally by a PLL or flip-flop. For this reason, the memory clock cannot be supplied to the main memory 5n until the main clock is stabilized, and the initialization process of the main memory 5n cannot be performed.

すなわち、従来の一般的なメモリコントローラ100nは、スタンバイ状態が解除されてメインメモリ5nに電力の供給が開始された後、メインクロックが安定するのを待つ。そして、時刻T11でメインクロックが安定すると、メモリコントローラ100nは、メインメモリ5nに対するメモリクロックの供給を開始し、その後、時刻T12でCKE(Clock Enable)信号がハイレベルになってから予め定められた所定時間の間、メインメモリ5nに対して、メモリクロックに同期してNOP(No Operation)コマンドを供給し続ける。なお、CKE信号は、メモリクロックが有効か否かを示す信号であり、CKE信号がハイレベルであればメモリクロックが有効であることを示し、CKE信号がローレベルであればメモリクロックが無効であることを示す。   That is, the conventional general memory controller 100n waits for the main clock to stabilize after the standby state is released and the supply of power to the main memory 5n is started. When the main clock becomes stable at time T11, the memory controller 100n starts supplying the memory clock to the main memory 5n, and then, after the CKE (Clock Enable) signal becomes high level at time T12, the memory controller 100n is predetermined. During a predetermined time, a NOP (No Operation) command is continuously supplied to the main memory 5n in synchronization with the memory clock. The CKE signal is a signal indicating whether or not the memory clock is valid. If the CKE signal is high, it indicates that the memory clock is valid. If the CKE signal is low, the memory clock is invalid. Indicates that there is.

その後、時刻T13で所定時間が経過すると、メモリコントローラ100nは、メインメモリ5n内の制御用レジスタにバースト長や信号の遅延に関するパラメータなどを設定するためのMRS(Mode Register Set)コマンドを、メモリクロックと同期してメインメモリ5nに供給する。そして、時刻T14でメインメモリ5nの初期化が完了すると、その後、メモリコントローラ100nは、CPU11nによるデータの読み書きに応じたコマンド(第2制御信号)を、メモリクロックと同期してメインメモリ5nに供給する。図5では、メインメモリ5nに対してデータの読み出しを要求するREADコマンドを供給している例を示している。   Thereafter, when a predetermined time elapses at time T13, the memory controller 100n sends an MRS (Mode Register Set) command for setting parameters relating to the burst length and signal delay to the control register in the main memory 5n, the memory clock Synchronously with the main memory 5n. When initialization of the main memory 5n is completed at time T14, the memory controller 100n thereafter supplies a command (second control signal) according to data read / write by the CPU 11n to the main memory 5n in synchronization with the memory clock. To do. FIG. 5 shows an example in which a READ command for requesting data reading is supplied to the main memory 5n.

以上のように、従来の一般的なメモリコントローラ100nは、スタンバイ状態が解除されてメインメモリ5nに対する電力の供給が開始され、さらに、メインクロックが安定した後にメインメモリ5nの初期化処理を開始するようにしていた。このため、CPU11nがメインメモリ5nにデータを読み書きできるようになるまでに時間がかかる、つまり、いずれかの入出力デバイスなどから割り込みが入ってからCPU11nが割り込み処理を開始するまでの遅延時間が長くなるという問題があった。   As described above, the conventional general memory controller 100n starts the supply of power to the main memory 5n after the standby state is released, and starts the initialization process of the main memory 5n after the main clock is stabilized. It was like that. Therefore, it takes time until the CPU 11n can read / write data from / to the main memory 5n, that is, the delay time from when an interrupt is input from any input / output device until the CPU 11n starts interrupt processing is long. There was a problem of becoming.

次に、本実施形態におけるスタンバイ解除の動作について図6を参照しながら説明する。図6は、本実施形態のSoC10が割り込みを受けてスタンバイ状態から動作状態へ遷移するときのタイミングチャートである。   Next, the standby release operation in this embodiment will be described with reference to FIG. FIG. 6 is a timing chart when the SoC 10 of this embodiment receives an interrupt and transitions from the standby state to the operating state.

時刻T21でいずれかの入出力デバイスなどから割り込みが入ると、SoC10の電力状態管理部16によってスタンバイ状態が解除され、スタンバイ信号がローレベルになる。それにあわせて、SoC10の電力状態管理部16は、まず高周波発振器14(および必要ならばPLL15)を動作開始させる。また、スタンバイ状態のときにメインメモリ5への電力の供給を停止している場合には、SoC10の電力状態管理部16は、時刻T21でスタンバイ状態が解除されると、そのタイミングでPMIC8に指示してメインメモリ5に対する電力の供給を開始させる。   When an interrupt is input from any of the input / output devices at time T21, the standby state is canceled by the power state management unit 16 of the SoC 10, and the standby signal becomes low level. Accordingly, the power state management unit 16 of the SoC 10 first starts the operation of the high-frequency oscillator 14 (and PLL 15 if necessary). When the supply of power to the main memory 5 is stopped in the standby state, the power state management unit 16 of the SoC 10 instructs the PMIC 8 at the timing when the standby state is canceled at time T21. Then, the supply of power to the main memory 5 is started.

本実施形態のメモリコントローラ100は、上述したように低周波発振器13で生成されたサブクロックが供給されるため、メインクロックが安定する前にサブクロックで動作することができる。そこで、本実施形態のメモリコントローラ100は、時刻T21でスタンバイ状態が解除されると、メインクロックが安定するのを待つことなく、電力状態管理部16からの指示によってメインメモリ5の初期化処理を開始する。この際、スタンバイ状態のときにメインメモリ5を第2の消費電力で待機する状態にしている場合には、メモリコントローラ100は、まずメインメモリ5を第1の消費電力で動作する状態にさせる。そして、時刻T22でメインメモリ5の初期化が完了すると、メインメモリ5はCPU11によるデータの読み書きが可能な状態となる。   Since the memory controller 100 of this embodiment is supplied with the subclock generated by the low frequency oscillator 13 as described above, the memory controller 100 can operate with the subclock before the main clock is stabilized. Therefore, when the standby state is canceled at time T21, the memory controller 100 according to the present embodiment performs initialization processing of the main memory 5 according to an instruction from the power state management unit 16 without waiting for the main clock to stabilize. Start. At this time, if the main memory 5 is in a standby state with the second power consumption during the standby state, the memory controller 100 first causes the main memory 5 to operate with the first power consumption. When the initialization of the main memory 5 is completed at time T22, the main memory 5 is in a state where the CPU 11 can read and write data.

その後、時刻T23でメインクロックが安定すると、CPU11は割り込み処理が可能な状態になる。このとき、メインメモリ5はすでに初期化が完了し、データの読み書きが可能な状態になっているので、CPU11はこの段階で割り込み処理を開始することができる。このように、本実施形態では、スタンバイ状態が解除されてメインメモリ5に電力の供給が開始された後、メインクロックが安定するのを待つことなくメインメモリ5の初期化処理を行うようにしているので、いずれかの入出力デバイスなどから割り込みが入ってスタンバイ状態が解除されてからCPU11が割り込み処理を開始するまでの遅延時間を小さくすることができる。   After that, when the main clock becomes stable at time T23, the CPU 11 becomes ready for interrupt processing. At this time, since the initialization of the main memory 5 has already been completed and data can be read and written, the CPU 11 can start interrupt processing at this stage. As described above, in this embodiment, after the standby state is canceled and the supply of power to the main memory 5 is started, the initialization process of the main memory 5 is performed without waiting for the main clock to stabilize. Therefore, it is possible to reduce the delay time until the CPU 11 starts interrupt processing after an interrupt is input from any one of the input / output devices and the standby state is canceled.

なお、図6に示した例は、メインメモリ5の初期化処理に要する時間がメインクロックが安定するまでの時間よりも短いことを想定しているが、メインメモリ5の初期化処理に要する時間がメインクロックが安定するまでの時間よりも長い場合は、メインクロックが安定してからメインメモリ5の初期化が完了するまで、CPU11は割り込み処理を開始するのを待つ必要がある。しかし、この場合であっても、従来のようにメインクロックが安定した後にメインメモリ5nの初期化処理を開始する場合に比べると、CPU11が割り込み処理を開始するまでの遅延時間は小さくなる。   Note that the example shown in FIG. 6 assumes that the time required for the initialization process of the main memory 5 is shorter than the time required for the main clock to stabilize, but the time required for the initialization process of the main memory 5. However, if the time is longer than the time until the main clock is stabilized, the CPU 11 needs to wait for the start of the interrupt processing until the initialization of the main memory 5 is completed after the main clock is stabilized. However, even in this case, the delay time until the CPU 11 starts the interrupt process is smaller than in the case where the initialization process of the main memory 5n is started after the main clock is stabilized as in the prior art.

図7は、図6に示したようなスタンバイ解除の動作を実現するための本実施形態のメモリコントローラ100の構成例を示すブロック図である。本実施形態のメモリコントローラ100には、CPU11がバス12を介して接続されるのに加え、周波数の高いメインクロックおよび周波数の低いサブクロックの2種類のクロックと、電力状態管理部16からのスタンバイ信号とが入力される。   FIG. 7 is a block diagram showing a configuration example of the memory controller 100 of the present embodiment for realizing the standby release operation as shown in FIG. In addition to the CPU 11 being connected to the memory controller 100 of the present embodiment via the bus 12, two types of clocks, a high-frequency main clock and a low-frequency subclock, and a standby state from the power state management unit 16 are provided. Signal.

メインクロックには、SoC10の高周波発振器14の出力をPLL15で周波数を上げたクロックを用いる。メインクロックは、スタンバイ状態では停止する。一方、サブクロックは、SoC10の低周波発振器13の出力をそのまま用いる。なお、サブクロックとして、SoC10の低周波発振器13の出力を、PLL15とは別のPLLで周波数を上げたクロックを用いるようにしてもよい。サブクロックは、スタンバイ状態になっても停止しない。メモリコントローラ100に入力されるメインクロックおよびサブクロックの周波数は、メモリコントローラ100に接続されるメインメモリ5が動作できる範囲で定められる。   As the main clock, a clock obtained by increasing the frequency of the output of the high-frequency oscillator 14 of the SoC 10 with the PLL 15 is used. The main clock is stopped in the standby state. On the other hand, the output of the low frequency oscillator 13 of the SoC 10 is used as it is as the sub clock. As the sub clock, a clock obtained by raising the frequency of the output of the low frequency oscillator 13 of the SoC 10 using a PLL different from the PLL 15 may be used. The sub clock does not stop even when it enters the standby state. The frequencies of the main clock and the sub clock input to the memory controller 100 are determined within a range where the main memory 5 connected to the memory controller 100 can operate.

電力状態管理部16からのスタンバイ信号は、従来と同様、スタンバイ状態のときにハイレベル(あるいはオン、アサート、アクティブなどとも呼ばれる)となり、スタンバイ状態が解除されるとローレベル(あるいはオフ、デアサート、インアクティブ)となる信号である。   The standby signal from the power state management unit 16 is at a high level (also referred to as on, asserted, active, etc.) in the standby state, as in the prior art, and low level (or off, deasserted, Inactive).

メモリコントローラ100とメインメモリ5は、図7に示すように、それぞれのメモリインタフェースの仕様により定められた信号線で接続される。メモリコントローラ100とメインメモリ5を接続する信号線は、大きく分けて、データ信号線、メモリクロック信号線、制御信号線からなる。データ信号線は、CPU11がメインメモリ5に対して読み書きするデータが伝送される信号線であり、16ビットや32ビットなどの幅を持つ。メモリクロック信号線は、メモリコントローラ100とメインメモリ5との間でデータや制御信号の送受信を同期させるためのメインクロックが伝送される信号線である。制御信号線は、アドレスやバンク指定やコマンドなどを伝送するための信号線であり、伝送される信号の種類に応じた複数本の信号線からなる。   As shown in FIG. 7, the memory controller 100 and the main memory 5 are connected by signal lines determined by the specifications of each memory interface. Signal lines connecting the memory controller 100 and the main memory 5 are roughly divided into a data signal line, a memory clock signal line, and a control signal line. The data signal line is a signal line through which data read from and written to the main memory 5 by the CPU 11 is transmitted, and has a width of 16 bits or 32 bits. The memory clock signal line is a signal line through which a main clock for synchronizing transmission and reception of data and control signals between the memory controller 100 and the main memory 5 is transmitted. The control signal line is a signal line for transmitting an address, bank designation, command, and the like, and includes a plurality of signal lines corresponding to the type of signal to be transmitted.

本実施形態のメモリコントローラ100は、一例として、図7に示すように、初期化回路101と、読み書き制御回路102と、クロック切替回路103と、制御信号切替回路104と、を備える。   As an example, the memory controller 100 of the present embodiment includes an initialization circuit 101, a read / write control circuit 102, a clock switching circuit 103, and a control signal switching circuit 104, as shown in FIG.

初期化回路101は、周波数の低いサブクロックで動作し、電力状態管理部16がスタンバイ信号をオフすることによりスタンバイ状態の解除が通知されると、メインメモリ5の初期化処理に必要な制御信号(第1制御信号)の少なくとも前半の一部(たとえばNOPコマンド)を生成して制御信号切替回路104に供給する。この際、スタンバイ状態のときにメインメモリ5を第2の消費電力で待機する状態にしている場合には、初期化回路101は、メインメモリ5の初期化処理に必要な制御信号(第1制御信号)の最初に、メインメモリ5を第1の消費電力で動作する状態に切り替えるための制御信号(コマンド)を挿入して、制御信号切替回路104に供給する。また、初期化回路101は、スタンバイ信号によりスタンバイ状態の解除が通知されると、入力したサブクロックをそのまま、あるいはPLLやフリップフロップなどによりサブクロックを内部で周波数変換したものを、クロック切替回路103に供給する。以下、この初期化回路101からクロック切替回路103に供給される周波数の低いクロックを第1クロックという。なお、サブクロックを周波数変換せずにそのまま第1クロックとする場合は、メモリコントローラ100に入力されるサブクロックをクロック切替回路103に直接入力するようにしてもよい。   The initialization circuit 101 operates with a sub-clock having a low frequency. When the power state management unit 16 turns off the standby signal and is notified of the release of the standby state, the control signal necessary for the initialization process of the main memory 5 is performed. At least a part of the first half of the first control signal (for example, NOP command) is generated and supplied to the control signal switching circuit 104. At this time, when the main memory 5 is in a standby state with the second power consumption in the standby state, the initialization circuit 101 controls the control signal (first control) required for the initialization process of the main memory 5. At the beginning of the signal), a control signal (command) for switching the main memory 5 to a state of operating with the first power consumption is inserted and supplied to the control signal switching circuit 104. In addition, when the standby circuit is notified of the cancellation of the standby state, the initialization circuit 101 converts the input sub clock as it is, or the sub clock internally converted by the PLL, flip-flop, or the like to the clock switching circuit 103. To supply. Hereinafter, the low-frequency clock supplied from the initialization circuit 101 to the clock switching circuit 103 is referred to as a first clock. When the sub clock is used as the first clock without frequency conversion, the sub clock input to the memory controller 100 may be directly input to the clock switching circuit 103.

読み書き制御回路102は、周波数の高いメインクロックで動作し、CPU11からバス12を介して供給されるメモリアクセスの指示に従って、メインメモリ5にデータを読み書きするための制御信号(第2制御信号)を生成して制御信号切替回路104に供給するとともに、メインメモリ5との間でデータ信号線を用いてCPU11が読み書きするデータを送受信する。また、読み書き制御回路102は、メインクロックが安定してもメインメモリ5の初期化が完了しない場合などは、メインメモリ5にデータを読み書きするための制御信号(第2制御信号)を生成する前に、メインメモリ5の初期化処理に必要な制御信号(第1制御信号)の後半の一部(たとえばMRSコマンド)を生成して制御信号切替回路104に供給する。また、読み書き制御回路102は、入力したメインクロックをそのまま、あるいはPLLやフリップフロップなどによりメインクロックを内部で周波数変換したものを、クロック切替回路103に供給する。以下、この読み書き制御回路102からクロック切替回路103に供給される周波数の高いクロックを第2クロックという。なお、メインクロックを周波数変換せずにそのまま第2クロックとする場合は、メモリコントローラ100に入力されるメインクロックを、クロック切替回路103に直接入力するようにしてもよい。   The read / write control circuit 102 operates with a high-frequency main clock, and sends a control signal (second control signal) for reading / writing data to / from the main memory 5 according to a memory access instruction supplied from the CPU 11 via the bus 12. The data is generated and supplied to the control signal switching circuit 104, and data read / written by the CPU 11 is transmitted / received to / from the main memory 5 using a data signal line. The read / write control circuit 102 generates a control signal (second control signal) for reading / writing data from / to the main memory 5 when initialization of the main memory 5 is not completed even when the main clock is stabilized. In addition, a part of the latter half of the control signal (first control signal) necessary for the initialization process of the main memory 5 (for example, MRS command) is generated and supplied to the control signal switching circuit 104. In addition, the read / write control circuit 102 supplies the input clock to the clock switching circuit 103 as it is or a signal obtained by internally converting the main clock using a PLL or flip-flop. Hereinafter, the high-frequency clock supplied from the read / write control circuit 102 to the clock switching circuit 103 is referred to as a second clock. When the main clock is directly used as the second clock without frequency conversion, the main clock input to the memory controller 100 may be directly input to the clock switching circuit 103.

読み書き制御回路102は、従来の一般的なメモリコントローラ100nと同様にメインクロックで動作するので、スタンバイ状態が解除された後、メインクロックが安定するまでの間は動作することができない。   Since the read / write control circuit 102 operates with the main clock as in the conventional general memory controller 100n, the read / write control circuit 102 cannot operate until the main clock stabilizes after the standby state is released.

スタンバイ状態のときにメインメモリ5を第2の消費電力で待機させる場合には、たとえば、スタンバイ信号を読み書き制御回路102にも接続する構成とする。そして、スタンバイ信号がオフからオンになったことを検出した読み書き制御回路102は、メインメモリ5に対して第2の消費電力で待機する状態に切り替える制御信号(コマンド)を送るように実施する。別の実施方法としては、スタンバイ状態に入る時点でCPU11がメモリコントローラ100に対して、メインメモリ5を第2の消費電力で待機する状態に切り替える制御信号(コマンド)を送るように指示する方法もある。この場合は、スタンバイ信号を読み書き制御回路102に接続する必要はない。また、スタンバイ状態のときにメインメモリ5への電力の供給を停止する場合は、スタンバイ信号を読み書き制御回路102に接続する必要はない。   When the main memory 5 is put on standby with the second power consumption in the standby state, for example, a standby signal is also connected to the read / write control circuit 102. Then, the read / write control circuit 102 that has detected that the standby signal has been switched from OFF to ON performs a control signal (command) for switching to a state of waiting with the second power consumption to the main memory 5. As another implementation method, when the CPU 11 enters the standby state, the CPU 11 instructs the memory controller 100 to send a control signal (command) for switching the main memory 5 to the standby state with the second power consumption. is there. In this case, it is not necessary to connect the standby signal to the read / write control circuit 102. When the supply of power to the main memory 5 is stopped in the standby state, it is not necessary to connect a standby signal to the read / write control circuit 102.

クロック切替回路103は、初期化回路101からの周波数の低い第1クロックと、読み書き制御回路102からの周波数の高い第2クロックとを入力し、第2クロックが安定するまでの間は第1クロックをメモリクロックとしてメインメモリ5に供給し、第2クロックが安定した後は第2クロックをメモリクロックとしてメインメモリ5に供給する。   The clock switching circuit 103 receives the first clock having a low frequency from the initialization circuit 101 and the second clock having a high frequency from the read / write control circuit 102, and the first clock until the second clock is stabilized. Is supplied to the main memory 5 as a memory clock, and after the second clock is stabilized, the second clock is supplied to the main memory 5 as a memory clock.

制御信号切替回路104は、クロック切替回路103が第1クロックをメモリクロックとしてメインメモリ5に供給しているときに、初期化回路101が生成した第1制御信号のメインメモリ5への供給を開始する。そして、制御信号切替回路104は、初期化回路101が生成した第1制御信号をメインメモリ5に供給し続け、クロック切替回路103がメインメモリ5に供給するメモリクロックを第1クロックから第2クロックに切り替えてもメインメモリ5の初期化が完了しない場合は、その後、読み書き制御回路102が生成した第1制御信号をメインメモリ5に供給する。そして、制御信号切替回路104は、クロック切替回路103がメインメモリ5に供給するメモリクロックを第1クロックから第2クロックに切り替えた後であって、且つ、メインメモリ5の初期化が完了した後に、読み書き制御回路102が生成した第2制御信号をメインメモリ5に供給する。   The control signal switching circuit 104 starts supplying the first control signal generated by the initialization circuit 101 to the main memory 5 when the clock switching circuit 103 supplies the first clock to the main memory 5 as a memory clock. To do. The control signal switching circuit 104 continues to supply the first control signal generated by the initialization circuit 101 to the main memory 5, and the memory clock supplied from the clock switching circuit 103 to the main memory 5 is changed from the first clock to the second clock. If the initialization of the main memory 5 is not completed even after switching to, the first control signal generated by the read / write control circuit 102 is supplied to the main memory 5 thereafter. Then, the control signal switching circuit 104 is after the clock switching circuit 103 switches the memory clock supplied to the main memory 5 from the first clock to the second clock and after the initialization of the main memory 5 is completed. The second control signal generated by the read / write control circuit 102 is supplied to the main memory 5.

第2クロックが安定したことをメモリコントローラ100が知る方法としては、たとえば、電力状態管理部16がメモリコントローラ100に対して第2クロックが安定したことを伝達する方法、SoC10内のメインクロックが有効であることを示す信号を利用する方法、スタンバイ信号を見てスタンバイ解除から一定時間が経過したら第2クロックが安定していると判断する方法、CPU11が割り込み処理の実行を開始する時点でメモリコントローラ100に指示する方法などが挙げられる。   As a method for the memory controller 100 to know that the second clock is stable, for example, the power state management unit 16 transmits a notification that the second clock is stable to the memory controller 100, and the main clock in the SoC 10 is effective. A method of using a signal indicating that the second clock is stable, a method of determining that the second clock is stable when a predetermined time has elapsed from the cancellation of standby, and a memory controller when the CPU 11 starts executing interrupt processing. And a method of instructing 100.

次に、メインメモリ5としてDDR3 SDRAMを用い、スタンバイ状態のときにメインメモリ5に対する電力の供給を停止する場合を想定して、本実施形態のメモリコントローラ100によるメインメモリ5の初期化処理について図8を参照しながら説明する。図8は、本実施形態のメモリコントローラ100によるメインメモリ5の初期化処理を説明するタイミングチャートである。   Next, assuming the case where DDR3 SDRAM is used as the main memory 5 and the supply of power to the main memory 5 is stopped in the standby state, the initialization process of the main memory 5 by the memory controller 100 according to the present embodiment is illustrated. This will be described with reference to FIG. FIG. 8 is a timing chart for explaining the initialization process of the main memory 5 by the memory controller 100 of the present embodiment.

時刻T31でスタンバイ状態が解除され、PMIC8からメインメモリ5への電力の供給が開始されると、本実施形態のメモリコントローラ100は、まず周波数の低い第1クロックをメモリクロックとしてメインメモリ5に供給する。第1クロックは、上述したようにサブクロックに基づいて生成される、あるいはサブクロックをそのまま用いる。そして、時刻T32の時点でメモリクロックが有効であることを示すハイレベルのCKE信号をメインメモリ5に供給し、その後、予め定められた所定時間の間、メモリクロックに同期してNOPコマンド(第1制御信号)を供給し続ける。   When the standby state is canceled at time T31 and the supply of power from the PMIC 8 to the main memory 5 is started, the memory controller 100 of the present embodiment first supplies the first clock having a low frequency to the main memory 5 as a memory clock. To do. The first clock is generated based on the sub clock as described above, or the sub clock is used as it is. Then, a high-level CKE signal indicating that the memory clock is valid at time T32 is supplied to the main memory 5, and thereafter, a NOP command (first operation) is synchronized with the memory clock for a predetermined time. 1 control signal) continues to be supplied.

そして、メインクロックが安定すると、メモリコントローラ100は、時刻T33で、メインメモリ5に供給するメモリクロックを周波数の低い第1クロックから周波数の高い第2クロックに切り替える。第2クロックは、上述したようにメインクロックに基づいて生成される、あるいはメインクロックをそのまま用いる。そして、この段階でメインメモリ5の初期化が完了していなければ、メモリコントローラ100はメインクロックに基づいて初期化処理を継続し、初期化処理に必要な残りのコマンドを、第2クロックに切り替えられたメモリクロックに同期してメインメモリ5に供給する。図8に示す例では、MRSコマンド(第1制御信号)を、第2クロックに切り替えられたメモリクロックと同期してメインメモリ5に供給している。   When the main clock is stabilized, the memory controller 100 switches the memory clock supplied to the main memory 5 from the first clock having a low frequency to the second clock having a high frequency at time T33. The second clock is generated based on the main clock as described above, or the main clock is used as it is. If the initialization of the main memory 5 is not completed at this stage, the memory controller 100 continues the initialization process based on the main clock, and switches the remaining commands necessary for the initialization process to the second clock. The main memory 5 is supplied in synchronization with the memory clock. In the example shown in FIG. 8, the MRS command (first control signal) is supplied to the main memory 5 in synchronization with the memory clock switched to the second clock.

そして、時刻T34でメインメモリ5の初期化が完了すると、その後、メモリコントローラ100は、CPU11によるデータの読み書きに応じたコマンド(第2制御信号)を、第2クロックに切り替えられたメモリクロックと同期してメインメモリ5に供給する。図8では、メインメモリ5に対してデータの読み出しを要求するREADコマンドを供給している例を示している。なお、メインメモリ5に供給するメモリクロックを第1クロックから第2クロックに切り替えた時点(時刻T33)でメインメモリ5の初期化が完了している場合には、その後すぐに、CPU11によるデータの読み書きに応じたコマンドをメインメモリ5に供給することができる。   When initialization of the main memory 5 is completed at time T34, the memory controller 100 then synchronizes a command (second control signal) according to data read / write by the CPU 11 with the memory clock switched to the second clock. To the main memory 5. FIG. 8 shows an example in which a READ command for requesting data reading is supplied to the main memory 5. If the initialization of the main memory 5 is completed at the time when the memory clock supplied to the main memory 5 is switched from the first clock to the second clock (time T33), immediately after that, Commands corresponding to reading and writing can be supplied to the main memory 5.

なお、図8に示す例では、メインメモリ5に供給するメモリクロックを周波数が低い第1クロックから周波数が高い第2クロックに切り替える際に、CKE信号はハイレベルのままとなっている。しかし、図9に示すように、メモリクロックの周波数が切り替わる際にCKE信号を一旦ローレベルとし、その後、CKE信号をハイレベルに戻すように実施することもできる。   In the example shown in FIG. 8, when the memory clock supplied to the main memory 5 is switched from the first clock having a low frequency to the second clock having a high frequency, the CKE signal remains at a high level. However, as shown in FIG. 9, when the frequency of the memory clock is switched, the CKE signal is temporarily set to a low level, and then the CKE signal is returned to a high level.

図10は、図8に示した初期化処理を実行する際のメモリコントローラ100の動作を説明するタイミングチャートである。   FIG. 10 is a timing chart for explaining the operation of the memory controller 100 when the initialization process shown in FIG. 8 is executed.

初期化回路101は、サブクロックとスタンバイ信号を入力しており、時刻T31でスタンバイ状態が解除されてスタンバイ信号がローレベルになると、サブクロックに基づいて生成、あるいはサブクロックをそのまま用いた周波数の低い第1クロックを、クロック切替回路103に入力する。また、初期化回路101は、スタンバイ状態が解除されると、メインメモリ5の初期化に必要なコマンドを生成して制御信号切替回路104に入力する。具体的には、初期化回路101は、時刻T32でCKE信号がハイレベルになった後、予め定めた所定時間の間、NOPコマンドを生成して制御信号切替回路104に入力する。   The initialization circuit 101 receives the sub clock and the standby signal. When the standby state is canceled at time T31 and the standby signal becomes low level, the initialization circuit 101 generates the frequency based on the sub clock or uses the sub clock as it is. A low first clock is input to the clock switching circuit 103. In addition, when the standby state is canceled, the initialization circuit 101 generates a command necessary for initialization of the main memory 5 and inputs the command to the control signal switching circuit 104. Specifically, the initialization circuit 101 generates a NOP command and inputs it to the control signal switching circuit 104 for a predetermined time after the CKE signal becomes high level at time T32.

読み書き制御回路102は、メインクロックを入力しており、メインクロックが安定すると動作を開始し、メインクロックに基づいて生成、あるいはメインクロックをそのまま用いた周波数の高い第2クロックを、クロック切替回路103に入力する。また、読み書き制御回路102は、メインクロックが安定して動作を開始したときにメインメモリ5の初期化が完了していなければ、初期化に必要な残りのコマンド(図8および図10の例ではMRSコマンド)を生成して制御信号切替回路104に入力する。そして、読み書き制御回路102は、時刻T34でメインメモリ5の初期化が完了すると、CPU11によるデータの読み書きに応じたコマンド(図8および図10の例ではREADコマンド)を生成して制御信号切替回路104に入力する。   The read / write control circuit 102 receives the main clock, and starts operating when the main clock is stabilized. The clock read / write control circuit 102 generates a second clock having a high frequency generated based on the main clock or using the main clock as it is. To enter. If the initialization of the main memory 5 is not completed when the main clock starts operation stably, the read / write control circuit 102 (in the example of FIGS. 8 and 10), the remaining commands required for initialization MRS command) is generated and input to the control signal switching circuit 104. When the initialization of the main memory 5 is completed at time T34, the read / write control circuit 102 generates a command (READ command in the examples of FIGS. 8 and 10) corresponding to the data read / write by the CPU 11 to generate a control signal switching circuit. 104 is input.

クロック切替回路103は、第1クロックと第2クロックとを入力し、メインクロックが安定するまでは、第1クロックをメモリクロックとしてメインメモリ5に供給する。そして、クロック切替回路103は、メインクロックが安定した後(時刻T33以降)は、第2クロックをメモリクロックとしてメインメモリ5に供給する。   The clock switching circuit 103 receives the first clock and the second clock, and supplies the first clock to the main memory 5 as the memory clock until the main clock is stabilized. Then, after the main clock is stabilized (after time T33), the clock switching circuit 103 supplies the second clock to the main memory 5 as a memory clock.

制御信号切替回路104は、初期化回路101が生成したコマンドと読み書き制御回路102が生成したコマンドとを入力し、メインクロックが安定するまでは、初期化回路101が生成したコマンドを、第1クロックと同期してメインメモリ5に供給する。そして、制御信号切替回路104は、メインクロックが安定した後(時刻T33以降)は、読み書き制御回路102が生成したコマンドを、第2クロックと同期してメインメモリ5に供給する。   The control signal switching circuit 104 receives the command generated by the initialization circuit 101 and the command generated by the read / write control circuit 102, and uses the command generated by the initialization circuit 101 as the first clock until the main clock is stabilized. And is supplied to the main memory 5 in synchronization. Then, after the main clock is stabilized (after time T33), the control signal switching circuit 104 supplies the command generated by the read / write control circuit 102 to the main memory 5 in synchronization with the second clock.

なお、図8および図10の例では、スタンバイ状態が解除されてからメインクロックが安定するまでの時間よりも、メインメモリ5の初期化処理に要する時間が長い場合を想定し、メインメモリ5の初期化に必要なコマンドの後半部分を読み書き制御回路102が生成するようにしているが、メインクロックが安定する前にメインメモリ5の初期化が完了する場合は、メインメモリ5の初期化に必要なコマンドのすべてを初期化回路101が生成し、読み書き制御回路102は、CPU11によるデータの読み書きに応じたコマンドのみを生成すればよい。   In the examples of FIGS. 8 and 10, assuming that the time required for the initialization process of the main memory 5 is longer than the time until the main clock is stabilized after the standby state is canceled, The read / write control circuit 102 generates the latter half of the command required for initialization. However, when initialization of the main memory 5 is completed before the main clock is stabilized, it is necessary for initialization of the main memory 5. All the commands are generated by the initialization circuit 101, and the read / write control circuit 102 only needs to generate commands corresponding to the data read / write by the CPU 11.

メインメモリ5としてDDR3 SDRAMを用いる場合、メモリコントローラ100は、CKE信号がハイレベルになってから予め定めた所定時間の間はNOPコマンドをメインメモリ5に供給し続け、所定時間が経過するとMRSコマンドをメインメモリ5に供給する。図8および図10では、説明を簡単にするために、メインメモリ5に供給するメインクロックが第1クロックから第2クロックに切り替わるときに、メインメモリ5に供給するコマンドがNOPコマンドからMRSコマンドに切り替わるように図示しているが、この限りではない。   When a DDR3 SDRAM is used as the main memory 5, the memory controller 100 continues to supply the NOP command to the main memory 5 for a predetermined time after the CKE signal goes high, and when the predetermined time elapses, the MRS command Is supplied to the main memory 5. 8 and 10, for the sake of simplicity, when the main clock supplied to the main memory 5 is switched from the first clock to the second clock, the command supplied to the main memory 5 is changed from the NOP command to the MRS command. It is illustrated to be switched, but this is not the case.

すなわち、メインクロックが安定するまでの時間よりも上記の所定時間が長ければ、図11に示すように、上記の所定時間が経過するまで読み書き制御回路102がNOPコマンドを生成して、上記の所定時間が経過するとMRSコマンドを生成し、その後、メインメモリ5の初期化が完了すると、CPU11によるデータの読み書きに応じたREADコマンドなどを生成する。この場合、制御信号切替回路104は、メインクロックが安定してメインメモリ5に供給するメモリクロックが第1クロックから第2クロックに切り替わるまでは、初期化回路101が生成したNOPコマンドをメインメモリ5に供給し、メインクロックが安定した後、上記所定時間が経過するまでは、読み書き制御回路102が生成したNOPコマンドをメインメモリ5に供給する。そして、上記の所定時間が経過すると、読み書き制御回路102が生成したMRSコマンドをメインメモリ5に供給し、メインメモリ5の初期化が完了すると、読み書き制御回路102が生成したREADコマンドなどをメインメモリ5に供給する。   That is, if the predetermined time is longer than the time until the main clock is stabilized, the read / write control circuit 102 generates a NOP command until the predetermined time elapses, as shown in FIG. When the time elapses, an MRS command is generated. After that, when initialization of the main memory 5 is completed, a READ command corresponding to data read / write by the CPU 11 is generated. In this case, the control signal switching circuit 104 sends the NOP command generated by the initialization circuit 101 to the main memory 5 until the main clock is stabilized and the memory clock supplied to the main memory 5 is switched from the first clock to the second clock. After the main clock is stabilized, the NOP command generated by the read / write control circuit 102 is supplied to the main memory 5 until the predetermined time elapses. When the predetermined time elapses, the MRS command generated by the read / write control circuit 102 is supplied to the main memory 5. When the initialization of the main memory 5 is completed, the READ command generated by the read / write control circuit 102 is transferred to the main memory. 5 is supplied.

一方、メインクロックが安定するまでの時間よりも上記の所定時間が短ければ、図12に示すように、上記の所定時間が経過した後に初期化回路101がMRSコマンドを生成する。そして、メインクロックが安定してメインメモリ5に供給するメモリクロックが第1クロックから第2クロックに切り替わったときに、メインメモリ5の初期化が完了していなければ、メインメモリ5の初期化が完了するまで読み書き制御回路102がMRSコマンドを生成する。この場合、制御信号切替回路104は、メインクロックが安定してメインメモリ5に供給するメモリクロックが第1クロックから第2クロックに切り替わるまでは、初期化回路101が生成したNOPコマンドとMRSコマンドを順次メインメモリ5に供給し、メインクロックが安定した後は、メインメモリ5の初期化が完了するまで読み書き制御回路102が生成したMRSコマンドをメインメモリ5に供給し、メインメモリ5の初期化が完了すると、読み書き制御回路102が生成したREADコマンドなどをメインメモリ5に供給する。   On the other hand, if the predetermined time is shorter than the time until the main clock is stabilized, the initialization circuit 101 generates an MRS command after the predetermined time has elapsed, as shown in FIG. If the initialization of the main memory 5 is not completed when the memory clock that is stably supplied to the main memory 5 is switched from the first clock to the second clock, the initialization of the main memory 5 is performed. Until completion, the read / write control circuit 102 generates an MRS command. In this case, the control signal switching circuit 104 receives the NOP command and the MRS command generated by the initialization circuit 101 until the main clock is stabilized and the memory clock supplied to the main memory 5 is switched from the first clock to the second clock. After the main clock 5 is sequentially supplied to the main memory 5 and the main clock is stabilized, the MRS command generated by the read / write control circuit 102 is supplied to the main memory 5 until the initialization of the main memory 5 is completed. When completed, the READ command generated by the read / write control circuit 102 is supplied to the main memory 5.

以上、スタンバイ状態を解除するときのメモリコントローラ100の動作を説明したが、SoC10がスタンバイ状態に入るときは、SoC10の電力状態管理部16から、PMIC8に指示して、メインメモリ5に対する電力の供給を停止する、あるいは、メモリコントローラに指示してメインメモリ5を第1の消費電力で動作する状態から第2の消費電力で待機する状態に遷移させる。   The operation of the memory controller 100 when releasing the standby state has been described above. When the SoC 10 enters the standby state, the power state management unit 16 of the SoC 10 instructs the PMIC 8 to supply power to the main memory 5. Or the memory controller is instructed to shift the main memory 5 from a state where it operates with the first power consumption to a state where it waits with the second power consumption.

以上のように、本実施形態のメモリコントローラ100は、スタンバイ状態が解除されて、メインメモリ5に対する電力の供給が開始される、あるいはメインメモリ5が第2の消費電力で待機する状態から第1の消費電力で動作する状態に復帰すると、メインクロックが安定するのを待つことなくメインメモリ5の初期化処理を開始するので、スタンバイ状態が解除されてからCPU11が割り込み処理を開始するまでの遅延時間を小さくすることができる。   As described above, the memory controller 100 according to the present embodiment starts from the state where the standby state is canceled and the supply of power to the main memory 5 is started or the main memory 5 waits at the second power consumption. Since the main memory 5 initialization process is started without waiting for the main clock to stabilize, the delay until the CPU 11 starts the interrupt process after the standby state is released. Time can be reduced.

なお、上述した実施形態では、メインメモリ5としてDRAMを用いた例を説明したが、DRAMのほかに、たとえば、SRAM(Static Random Access Memory)、FeRAM(Ferroelectric Random Access Memory)、PCM(Phase Change Memory)、MRAM(Magnetoresistive Random Access Memory)、ReRAM(Resistance Random Access Memory)、NOR Flashなど各種のランダムアクセスメモリをメインメモリ5として用いることができる。この場合、メインメモリ5の初期化に必要なコマンドはメインメモリ5として用いるメモリのインタフェースの種類によって異なるが、メモリコントローラ100は、メインメモリ5として用いるメモリのインタフェースの種類に応じたコマンドをメインメモリ5に供給すればよい。   In the above-described embodiment, an example in which a DRAM is used as the main memory 5 has been described. However, in addition to the DRAM, for example, an SRAM (Static Random Access Memory), an FeRAM (Ferroelectric Random Access Memory), and a PCM (Phase Change Memory). ), MRAM (Magnetoresistive Random Access Memory), ReRAM (Resistance Random Access Memory), NOR Flash, and other random access memories can be used as the main memory 5. In this case, the command necessary for initializing the main memory 5 differs depending on the type of the interface of the memory used as the main memory 5. 5 may be supplied.

また、上述した実施形態は、メインメモリ5に接続されたメモリコントローラ100への適用例であるが、適用されるメモリコントローラはこの例に限らず、メインメモリ5以外の他のメモリに接続されたメモリコントローラへの適用も可能である。   In addition, the above-described embodiment is an application example to the memory controller 100 connected to the main memory 5, but the applied memory controller is not limited to this example, and is connected to a memory other than the main memory 5. Application to a memory controller is also possible.

以上、具体的な例を挙げながら詳細に説明したように、本実施形態のメモリコントローラ100によれば、消費電力の削減を図りつつ、プロセッサがメモリにデータを読み書きできるようになるまでの時間を短縮することができる。   As described above in detail with specific examples, according to the memory controller 100 of the present embodiment, the time until the processor can read and write data from and to the memory while reducing power consumption. It can be shortened.

以上、本発明の実施形態を説明したが、ここで説明した実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。ここで説明した新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。ここで説明した実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   As mentioned above, although embodiment of this invention was described, embodiment described here is shown as an example and is not intending limiting the range of invention. The novel embodiments described herein can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. The embodiments and modifications described herein are included in the scope and gist of the invention, and are also included in the invention described in the claims and the equivalents thereof.

1 情報処理装置
5 メインメモリ
8 PMIC
10 SoC
11 CPU
100 メモリコントローラ
103 クロック切替回路
104 制御信号切替回路
1 Information processing device 5 Main memory 8 PMIC
10 SoC
11 CPU
DESCRIPTION OF SYMBOLS 100 Memory controller 103 Clock switching circuit 104 Control signal switching circuit

Claims (8)

プロセッサによりデータの読出しまたは書込みの少なくとも一方が可能なメモリを制御するメモリ制御装置であって、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号または書込みのための信号の少なくとも一方を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
メモリ制御装置。
A memory control device for controlling a memory capable of at least one of reading and writing data by a processor,
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying at least one of a signal for reading data or a signal for writing by the processor to the memory supplying a second clock;
The memory control device, wherein the second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
プロセッサによりデータの読出しが可能なメモリを制御するメモリ制御装置であって、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
メモリ制御装置。
A memory control device for controlling a memory from which data can be read by a processor,
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying a signal for reading data by the processor to the memory supplying a second clock;
The memory control device, wherein the second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
プロセッサと、前記プロセッサによりデータの読出しまたは書込みの少なくとも一方が可能なメモリを制御するメモリ制御装置と、が半導体基板に実装された半導体装置であって、
前記メモリ制御装置は、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号または書込みのための信号の少なくとも一方を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
半導体装置。
A processor and a memory control device for controlling a memory capable of at least one of reading and writing data by the processor are semiconductor devices mounted on a semiconductor substrate,
The memory control device
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying at least one of a signal for reading data or a signal for writing by the processor to the memory supplying a second clock;
The second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
プロセッサと、前記プロセッサによりデータの読出しが可能なメモリを制御するメモリ制御装置と、が半導体基板に実装された半導体装置であって、
前記メモリ制御装置は、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
半導体装置。
A processor and a memory control device that controls a memory from which data can be read by the processor are semiconductor devices mounted on a semiconductor substrate,
The memory control device
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying a signal for reading data by the processor to the memory supplying a second clock;
The second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
プロセッサと、前記プロセッサによりデータの読み出しまたは書込みの少なくとも一方が可能なメモリと、前記メモリを制御するメモリ制御装置と、が搭載されたシステムボードであって、
前記メモリ制御装置は、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号または書込みのための信号の少なくとも一方を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
システムボード。
A system board on which a processor, a memory capable of reading or writing data by the processor, and a memory control device for controlling the memory are mounted;
The memory control device
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying at least one of a signal for reading data or a signal for writing by the processor to the memory supplying a second clock;
The second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
プロセッサと、前記プロセッサによりデータの読み出しが可能なメモリと、前記メモリを制御するメモリ制御装置と、が搭載されたシステムボードであって、
前記メモリ制御装置は、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
システムボード。
A system board on which a processor, a memory from which data can be read by the processor, and a memory control device that controls the memory are mounted,
The memory control device
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying a signal for reading data by the processor to the memory supplying a second clock;
The second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
プロセッサと、前記プロセッサによりデータの読み出しまたは書込みの少なくとも一方が可能なメモリと、前記メモリを制御するメモリ制御装置と、が搭載された情報処理装置であって、
前記メモリ制御装置は、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号または書込みのための信号の少なくとも一方を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
情報処理装置。
An information processing apparatus including a processor, a memory capable of reading or writing data by the processor, and a memory control device that controls the memory,
The memory control device
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying at least one of a signal for reading data or a signal for writing by the processor to the memory supplying a second clock;
The information processing apparatus, wherein the second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
プロセッサと、前記プロセッサによりデータの読み出しが可能なメモリと、前記メモリを制御するメモリ制御装置と、が搭載された情報処理装置であって、
前記メモリ制御装置は、
前記プロセッサへの割り込みが発生すると、第1クロックを供給している前記メモリに対して前記メモリを初期化するための信号を供給し、
第2クロックを供給している前記メモリに対して、前記プロセッサによるデータの読出しのための信号を供給し、
前記第2クロックは、前記プロセッサへの割り込みが発生すると動作開始する発振回路によって生成されるクロックであって前記第1クロックよりも周波数が高い
情報処理装置。
An information processing device including a processor, a memory from which data can be read by the processor, and a memory control device that controls the memory,
The memory control device
When an interrupt to the processor occurs, a signal for initializing the memory is supplied to the memory that is supplying a first clock;
Supplying a signal for reading data by the processor to the memory supplying a second clock;
The information processing apparatus, wherein the second clock is a clock generated by an oscillation circuit that starts operation when an interrupt to the processor occurs, and has a higher frequency than the first clock.
JP2014253310A 2014-12-15 2014-12-15 Memory control device, semiconductor device, system board, and information processing device Active JP5774764B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014253310A JP5774764B2 (en) 2014-12-15 2014-12-15 Memory control device, semiconductor device, system board, and information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014253310A JP5774764B2 (en) 2014-12-15 2014-12-15 Memory control device, semiconductor device, system board, and information processing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2012152108A Division JP5677376B2 (en) 2012-07-06 2012-07-06 Memory control device, semiconductor device, and system board

Publications (2)

Publication Number Publication Date
JP2015092372A JP2015092372A (en) 2015-05-14
JP5774764B2 true JP5774764B2 (en) 2015-09-09

Family

ID=53195481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014253310A Active JP5774764B2 (en) 2014-12-15 2014-12-15 Memory control device, semiconductor device, system board, and information processing device

Country Status (1)

Country Link
JP (1) JP5774764B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI759822B (en) * 2020-03-19 2022-04-01 日商鎧俠股份有限公司 Semiconductor integrated circuits, memory controllers and memory systems

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112581994A (en) * 2020-12-11 2021-03-30 瓴盛科技有限公司 Method, device and system for controlling synchronous storage device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003131935A (en) * 2001-10-25 2003-05-09 Nec Microsystems Ltd Synchronous dram controller and its control method
JP4421390B2 (en) * 2004-06-21 2010-02-24 富士通マイクロエレクトロニクス株式会社 Semiconductor integrated circuit
JP2007058593A (en) * 2005-08-24 2007-03-08 Sharp Corp Information processor
JP4490392B2 (en) * 2006-05-30 2010-06-23 富士通マイクロエレクトロニクス株式会社 Reconfigurable integrated circuit device that automatically builds an initialization circuit
JP5045167B2 (en) * 2007-03-16 2012-10-10 富士通セミコンダクター株式会社 Oscillation circuit and semiconductor device
JP2009110567A (en) * 2007-10-26 2009-05-21 Elpida Memory Inc Initialization circuit and initialization method of semiconductor memory device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI759822B (en) * 2020-03-19 2022-04-01 日商鎧俠股份有限公司 Semiconductor integrated circuits, memory controllers and memory systems

Also Published As

Publication number Publication date
JP2015092372A (en) 2015-05-14

Similar Documents

Publication Publication Date Title
JP5677376B2 (en) Memory control device, semiconductor device, and system board
US11079261B2 (en) System on a chip with always-on processor
US9785211B2 (en) Independent power collapse methodology
US7752467B2 (en) Integrated circuit device
JP5610566B2 (en) Semiconductor device and data processing system
CN102571319B (en) Mechanism for an efficient DLL training protocol during a frequency change
JP2002251316A (en) Memory controller and memory control device
US9829966B2 (en) Method for preparing a system for a power loss
JP2005135368A (en) Power-saving control circuit and its method
JP2013218672A (en) State control device, information processing device, program, and semiconductor device
JP3552213B2 (en) SD memory card host controller and clock control method
JP5774764B2 (en) Memory control device, semiconductor device, system board, and information processing device
US20110252245A1 (en) Power scaling module and power scaling unit of an electronic system
JP2013016105A (en) Semiconductor device and system
US20130308406A1 (en) Semiconductor device, method for operating the same, and memory system including the same
TWI522773B (en) Cross-domain enablement method and electronic apparatus
JP2013239179A (en) System-on-chip for supporting access to shared memory via chip-to-chip link, operation method of the same, and electronic system including system-on-chip
JP2013175026A (en) Information processor, control device, and image forming device
JP2004070854A (en) Data processor
JP2011008698A (en) Microcomputer and microcomputer system
US10460772B2 (en) Semiconductor device
TWI740987B (en) Semiconductor device and a method of operating the same
JP6396352B2 (en) Semiconductor device
US10338665B2 (en) Microcontroller power reduction system and method
JP2012190097A (en) Data processing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150303

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150424

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150701

R151 Written notification of patent or utility model registration

Ref document number: 5774764

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350