JP2005044460A - Memory control system and memory control circuit - Google Patents

Memory control system and memory control circuit Download PDF

Info

Publication number
JP2005044460A
JP2005044460A JP2003279456A JP2003279456A JP2005044460A JP 2005044460 A JP2005044460 A JP 2005044460A JP 2003279456 A JP2003279456 A JP 2003279456A JP 2003279456 A JP2003279456 A JP 2003279456A JP 2005044460 A JP2005044460 A JP 2005044460A
Authority
JP
Japan
Prior art keywords
memory
refresh
circuit
memory control
turned
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.)
Pending
Application number
JP2003279456A
Other languages
Japanese (ja)
Inventor
Yasumi Nishimura
靖美 西村
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2003279456A priority Critical patent/JP2005044460A/en
Publication of JP2005044460A publication Critical patent/JP2005044460A/en
Pending 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

Abstract

<P>PROBLEM TO BE SOLVED: To save electric power consumption during the time from a system reset to initialization and electric power consumption during the time from the backup of the storage content of the memory due to abnormality in a power source to the restart thereof. <P>SOLUTION: The memory system has the memory 39 constituted of a DRAM, a memory control circuit 30 for controlling the memory 39, and a logic circuit 40 including a CPU. The memory control circuit 30 has a refresh circuit 31 which makes a CAS signal precedent to an RAS signal and instructs an ordinary refresh to the memory 39 and a flag 33 which is turned off by a reset signal and is turned on by the instruction of the logic circuit 40. When the flag 33 is turned off, the memory 39 is refreshed by the self-refresh to perform the refresh operation at specified intervals by its own control of the DRAM and when the flag 33 is turned on, the memory 39 is refreshed in the ordinary refresh by the refresh circuit 31. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明はメモリ制御方式及びメモリ制御回路に関し、特に、システムリセットや電源異常の際のメモリのリフレッシュ制御技術に関する。   The present invention relates to a memory control system and a memory control circuit, and more particularly to a memory refresh control technique in the event of a system reset or power failure.

DRAM(dynamic random access memory)で構成されるメモリでは、DRAMが記憶する情報を維持するためにリフレッシュと呼ばれる動作が必要となる。リフレッシュは、メモリを制御するメモリ制御回路により一定間隔にてRAS(row address strobe)信号とCAS(column address strobe)信号を制御され実行される。   In a memory constituted by a DRAM (dynamic random access memory), an operation called refresh is required to maintain information stored in the DRAM. The refresh is executed by controlling a RAS (row address strobe) signal and a CAS (column address strobe) signal at regular intervals by a memory control circuit that controls the memory.

通常のアクセスではRAS信号の駆動後にCAS信号を駆動してDRAMへの読み出しや書き込みのアクセスをするが、CAS信号をRAS信号に先行して駆動することによりリフレッシュ指示をDRAMへリフレッシュを指示することが知られている。   In normal access, the CAS signal is driven after the RAS signal is driven to perform read or write access to the DRAM. The refresh instruction is instructed to the DRAM by driving the CAS signal prior to the RAS signal. It has been known.

メモリ装置の内容を維持しながら本体装置を初期化して再開するためのシステムリセットに対するリフレッシュの制御について特開平5−28757号公報が開示している。特開平5−28757号公報ではシステムリセットに対して、メモリ制御装置内のアクセス回路はリセットされるがリフレッシュ回路はリセットされずにリフレッシュを継続できるようにし、メモリ装置の内容を維持できるようにしている。   Japanese Patent Application Laid-Open No. 5-28757 discloses a refresh control for a system reset for initializing and restarting a main unit while maintaining the contents of a memory device. In Japanese Patent Laid-Open No. 5-28757, in response to a system reset, the access circuit in the memory control device is reset, but the refresh circuit is not reset so that the refresh can be continued and the contents of the memory device can be maintained. Yes.

また、DRAMが自身でリフレッシュを一定間隔で実行するセルフリフレッシュ機能を持つDRAMも実用化されている。セルフリフレッシュ機能とは、DRAMに外部からリフレッシュ指示を与えなくとも、DRAM自身がリフレッシュを自動的に実行する機能であり、電力消費が小さくなる特長を持っている。   A DRAM having a self-refresh function in which the DRAM itself performs refreshing at regular intervals has also been put into practical use. The self-refresh function is a function in which the DRAM itself performs refresh automatically without giving an external refresh instruction to the DRAM, and has a feature that power consumption is reduced.

特開平5−28757号公報JP-A-5-28757

特開平5−28757号公報に開示されている手法ではリフレッシュ回路はシステムリセットの際にリセットされないように構成されるのでリセット中でもメモリ制御装置の指示でリフレッシュを続けることができるが、リセットに続く初期化(メモリの内容は保持)が終わりメモリアクセスを開始するまでの間、メモリアクセスがないのにもかかわらずメモリ制御装置を動作させリフレッシュを続ける必要があり電力が浪費されていた。   In the technique disclosed in Japanese Patent Laid-Open No. 5-28757, the refresh circuit is configured not to be reset at the time of system reset, so that refresh can be continued by an instruction from the memory control device even during reset. Until memory access is started after memory conversion (memory contents are retained), it is necessary to operate the memory control device and continue refreshing even though there is no memory access, and power is wasted.

また、節電のために本体装置の電源供給をオフとしメモリ装置の内容のみを保持して待機する際セルフリフレッシュすることが知られており、特に電池により電源供給される小型の装置においては節電の要求は大きい。電池の消耗や誤って落下させたりして電池がはずれたりして突然電圧供給に異常が発生した場合にバックアップ用に備えた副電池を利用してメモリ内容を保持しながら主電池の復旧を待つ場合のリフレッシュ制御をリフレッシュする場合も、主電池が復旧した際に初期化が行われ電力が浪費されていた。   In addition, it is known that self-refreshing is performed when the power supply of the main unit is turned off and only the contents of the memory device are held for power saving, and particularly in a small device powered by a battery, power saving is known. The demand is big. When the battery is exhausted or accidentally dropped, and the battery suddenly breaks down, suddenly the voltage supply becomes abnormal. Using the secondary battery provided for backup, the memory contents are held and the main battery is restored. Even when refresh control is refreshed, initialization is performed when the main battery is restored, and power is wasted.

本発明の目的は、システムリセットから初期化に至る間の消費電力と、電源異常によるメモリの記憶内容のバックアップから再開するまでの間の電力消費を節約することを可能としたメモリ制御方式及びメモリ制御装置を提供することにある。   An object of the present invention is to provide a memory control system and a memory capable of saving power consumption from system reset to initialization and power consumption from backup to restart of memory contents due to power failure. It is to provide a control device.

本発明の第1のメモリ制御方式は、DRAMで構成されたメモリとメモリを制御するメモリ制御回路とCPUを含む論理回路とを有したメモリ制御方式であって、
前記メモリ制御回路は、システムリセットによりメモリに対してDRAM自身でリフレッシュするセルフリフレッシュの指示を開始し、システムリセット後の初期化終了後に一定間隔でCAS信号をRAS信号に先行させる通常リフレッシュの指示をメモリに開始することを特徴とする。
A first memory control system of the present invention is a memory control system having a memory constituted by a DRAM, a memory control circuit for controlling the memory, and a logic circuit including a CPU,
The memory control circuit starts a self-refresh instruction for refreshing the memory with DRAM itself by a system reset, and a normal refresh instruction for causing the CAS signal to precede the RAS signal at regular intervals after the initialization after the system reset. Start with memory.

本発明の第2のメモリ制御方式は、DRAMで構成されたメモリとメモリを制御するメモリ制御回路とCPUを含む論理回路とを有したメモリ制御方式であって、
前記メモリ制御回路は、CAS信号をRAS信号に先行させてメモリに通常リフレッシュを指示するリフレッシュ回路と、リセット信号によりオフされ論理回路の指示によりオンされるフラグとを有し、フラグがオフされるとメモリ自身の制御で一定間隔でリフレッシュ動作を行うセルフリフレッシュでメモリをリフレッシュさせ、フラグがオンされるとリフレッシュ回路による通常リフレッシュにてメモリをリフレッシュすることを特徴とする。
A second memory control system of the present invention is a memory control system having a memory composed of DRAM, a memory control circuit for controlling the memory, and a logic circuit including a CPU,
The memory control circuit includes a refresh circuit that instructs the memory to perform normal refresh by causing the CAS signal to precede the RAS signal, and a flag that is turned off by a reset signal and turned on by an instruction from a logic circuit, and the flag is turned off. The memory is refreshed by self-refresh that performs refresh operations at regular intervals under the control of the memory itself, and when the flag is turned on, the memory is refreshed by normal refresh by a refresh circuit.

本発明の第3のメモリ制御方式は、DRAMで構成されたメモリとメモリを制御するメモリ制御回路とCPUを含む論理回路と主電池と主電池に異常があった際にメモリのみに電力を供給する副電池と主電池の異常を監視する電源監視回路とを有したメモリ制御方式であって、
前記電源監視回路は主電池の電圧を監視して規定値以下となるとリセット信号を出力し、前記メモリ制御回路は、CAS信号をRAS信号に先行させてメモリに通常リフレッシュを指示するリフレッシュ回路と、メモリへのアクセスが可能であることを示すフラグとを有し、電源監視回路からリセット信号が出力されるとフラグをオフしてメモリ自身の制御で一定間隔でリフレッシュ動作を行うセルフリフレッシュでメモリをリフレッシュし、主電池の電力供給が停止した後も副電池による電力供給によりメモリのセルフリフレッシュを継続し、論理回路から指示を受けてフラグをオンするとリフレッシュ回路による通常リフレッシュでメモリをリフレッシュすることを特徴とする。
The third memory control system of the present invention supplies power only to the memory when there is an abnormality in the memory composed of DRAM, the memory control circuit for controlling the memory, the logic circuit including the CPU, the main battery, and the main battery. A memory control system having a secondary battery and a power supply monitoring circuit for monitoring an abnormality of the main battery,
The power monitoring circuit monitors the voltage of the main battery and outputs a reset signal when the voltage falls below a specified value.The memory control circuit precedes the RAS signal with the CAS signal to instruct the memory to perform normal refreshing; and And a flag indicating that the memory can be accessed. When a reset signal is output from the power supply monitoring circuit, the flag is turned off, and the memory is controlled by self-refresh that performs refresh operations at regular intervals under the control of the memory itself. After refreshing and the power supply of the main battery is stopped, the self-refresh of the memory is continued by the power supply by the sub battery. Features.

本発明の第4のメモリ制御方式は、本発明の第2又は第3のメモリ制御方式において、前記論理回路はリセット後の初期化処理を終了した時点で前記メモリ制御回路に初期化終了通知を送り、初期化終了通知を受けたメモリ制御回路が前記フラグをオンすることを特徴とする。   According to a fourth memory control system of the present invention, in the second or third memory control system of the present invention, the logic circuit notifies the memory control circuit of the completion of initialization when the initialization process after resetting is completed. The memory control circuit that has received the notification of completion of initialization turns on the flag.

本発明の第1のメモリ制御回路は、CAS信号をRAS信号に先行させてDRAMで構成されるメモリに通常リフレッシュを指示するリフレッシュ回路と、リセット信号によりオフされCPUを含む論理回路の指示によりオンされるフラグとを有し、フラグがオフされるとメモリ自身の制御で一定間隔でリフレッシュ動作を行うセルフリフレッシュの実行をメモリに指示し、フラグがオンされるとリフレッシュ回路による通常リフレッシュをメモリへ指示することを特徴とする。   The first memory control circuit according to the present invention includes a refresh circuit for instructing normal refresh to a memory constituted by a DRAM by causing a CAS signal to precede a RAS signal, and an on-state by a logic circuit including a CPU that is turned off by a reset signal. When the flag is turned off, the memory is instructed to execute a self-refresh that performs a refresh operation at regular intervals under the control of the memory. When the flag is turned on, normal refresh by the refresh circuit is sent to the memory. It is characterized by instructing.

本発明の第2のメモリ制御回路は、本発明の第1のメモリ制御回路において、前記フラグはリセット後の初期化処理を終了した時点で前記論理回路から通知される初期化終了通知によってオンされることを特徴とする。   In the second memory control circuit of the present invention, in the first memory control circuit of the present invention, the flag is turned on by an initialization end notification notified from the logic circuit when the initialization process after reset is completed. It is characterized by that.

メモリの記憶内容を保持しなければならないシステムリセットや電源復旧時の消費電力を節約することができる効果がある。   There is an effect that power consumption at the time of system reset or power supply restoration that must retain the stored contents of the memory can be saved.

次に、本発明を実施するための最良の形態について図面を参照して詳細に説明する。図1は本発明のメモリ制御方式を示したブロック図であり、DRAMからなるメモリ39と、メモリ39を制御するメモリ制御回路30と、本体装置のメモリ39とメモリ制御回路30以外のCPUや入出力装置等を含む論理回路40と、電源を供給する主電池10と、電源バックアップ用の副電池11と、電源供給回路12と、電源を監視する電源監視回路21とリセット回路23などを含む。   Next, the best mode for carrying out the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a memory control system according to the present invention. The memory 39 is a DRAM, a memory control circuit 30 for controlling the memory 39, a CPU other than the memory 39 and the memory control circuit 30 of the main unit, and an input circuit. A logic circuit 40 including an output device, a main battery 10 that supplies power, a sub-battery 11 for power backup, a power supply circuit 12, a power monitoring circuit 21 that monitors power, a reset circuit 23, and the like are included.

電源供給回路12は、電源スイッチ25から受ける信号や論理回路40から受ける電源制御信号X68に従って、主電池10と副電池11で供給される直流電源電圧を論理回路40等で使用する直流電圧に変換して供給する機能を有し、主電池10によって作られる通常電源X51を論理回路40やメモリ制御回路30へ供給し、主電池10と副電池11から作られるバックアップ付き電源X52をメモリ39に供給する。なお、電源監視回路21やリセット回路23やORゲート22には図示しないが主電池10と副電池11から生成される電源が電源のオン/オフ状態に関わらず供給される。   The power supply circuit 12 converts the DC power supply voltage supplied from the main battery 10 and the sub-battery 11 into a DC voltage used in the logic circuit 40 or the like according to the signal received from the power switch 25 and the power control signal X68 received from the logic circuit 40. The normal power source X51 generated by the main battery 10 is supplied to the logic circuit 40 and the memory control circuit 30, and the back-up power source X52 generated from the main battery 10 and the sub battery 11 is supplied to the memory 39. To do. Although not shown, power generated from the main battery 10 and the sub battery 11 is supplied to the power supply monitoring circuit 21, reset circuit 23, and OR gate 22 regardless of the on / off state of the power supply.

電源監視回路21は、主電源10の出力電圧を監視し、予め決められた電圧以下となると主電池10に異常が発生したものとし電源異常信号X65をORゲート22と電源供給回路12へ出力する。主電源の異常としては、例えば、図1の装置が電池で駆動される装置で、誤って落下させたりして電池がケースからはずれてしまい電源の供給が無くなった場合や電池の故障や電池の寿命等が考えられる。   The power supply monitoring circuit 21 monitors the output voltage of the main power supply 10, and outputs a power supply abnormality signal X <b> 65 to the OR gate 22 and the power supply circuit 12 assuming that an abnormality has occurred in the main battery 10 when the voltage drops below a predetermined voltage. . For example, the main power supply abnormality may be the case where the device of FIG. 1 is a battery-powered device that is accidentally dropped and the battery is removed from the case and the power supply is lost, or the battery is broken or Life expectancy is considered.

リセット回路23は、リセットスイッチ24が操作されてシステムリセットが指示された場合、電源スイッチ25が操作されて電源がオンとなった場合、又は論理回路40からシステムリセットが指示された場合に予め決められたパルス幅以上のシステムリセット信号X67を生成して出力する。ORゲート22は電源異常信号X65とシステムリセット信号X66との論理和をリセット信号X67として出力する。リセット信号X67はメモリ制御回路30や論理回路40へ接続される。   The reset circuit 23 is determined in advance when the reset switch 24 is operated to instruct system reset, when the power switch 25 is operated to turn on the power, or when the logic circuit 40 instructs system reset. A system reset signal X67 having a pulse width greater than the generated pulse width is generated and output. The OR gate 22 outputs the logical sum of the power supply abnormality signal X65 and the system reset signal X66 as the reset signal X67. The reset signal X67 is connected to the memory control circuit 30 and the logic circuit 40.

電源スイッチ25は、電源のオン/オフを操作するスイッチであり、電源オン操作により電源供給回路12へ通常電源X51とバックアップ付き電源X52の出力開始を指示するとともにリセット回路23へパワーオンリセットを指示し、電源オフ操作により電源供給回路12へ通常電源X51とバックアップ付き電源X52の出力停止を指示するとともにリセット回路23へリセットを指示する。この場合、リセット回路23はリセット解除時にリセット要因がパワーオンリセットであることを通知し、論理回路40は全てのハードウェア資源の初期化を実行する。パワーオンリセットの際は初期化の際にメモリ内容を保持する必要がないので、メモリアクセスを開始する時点で通常リフレッシュを開始すればよい。   The power switch 25 is a switch for turning on / off the power supply. When the power is turned on, the power supply circuit 12 is instructed to start output of the normal power supply X51 and the power supply X52 with backup, and the reset circuit 23 is instructed to perform power-on reset. When the power is turned off, the power supply circuit 12 is instructed to stop the output of the normal power source X51 and the backup power source X52 and the reset circuit 23 is instructed to be reset. In this case, the reset circuit 23 notifies that the reset factor is a power-on reset when the reset is released, and the logic circuit 40 executes initialization of all hardware resources. At the time of power-on reset, it is not necessary to hold the memory contents at the time of initialization. Therefore, normal refresh may be started when memory access is started.

図2はメモリ制御回路30の一構成例を示すブロック図である。メモリ制御回路30はDRAMから構成されるメモリ39のアクセスやリフレッシュを制御する回路であり、図2に一構成例を示す。図2参照すると、フラグ33は、メモリアクセスが可能な状態であることを示すフラグであり論理回路40からの指示でオンされてアクセス許可状態となり、またリセット信号X67によりオフされアクセス禁止状態となる。フラグ33がオフの場合はANDゲート35とANDゲート36の出力をローレベルとし、RAS信号X61とCAS信号X62をローレベルにする。すなわち、フラグ33がオフとなるとセルフリフレッシュ状態となる。   FIG. 2 is a block diagram showing a configuration example of the memory control circuit 30. As shown in FIG. The memory control circuit 30 is a circuit for controlling access and refresh of the memory 39 composed of DRAM, and one configuration example is shown in FIG. Referring to FIG. 2, the flag 33 is a flag indicating that the memory access is possible. The flag 33 is turned on by an instruction from the logic circuit 40 to enter an access permission state, and is turned off by the reset signal X67 to enter an access inhibition state. . When the flag 33 is off, the outputs of the AND gate 35 and the AND gate 36 are set to the low level, and the RAS signal X61 and the CAS signal X62 are set to the low level. That is, when the flag 33 is turned off, a self-refresh state is established.

リフレッシュ回路31はフラグ33がオンの場合はCAS信号X62をRAS信号X61に先行させる通常リフレッシュ指示を一定間隔で行いメモリ39のリフレッシュを制御する回路である。アクセス回路32はフラグ33がオンの場合は論理回路40からのメモリアクセス要求を受けて、RAS信号X61やCAS信号X62に合わせてアドレスや制御信号をアドレス/制御線X63に出力し、データ線X64のデータを読み込んだりデータ線X64へ書く込みデータを出力したりする。また、アクセス回路32は論理回路40からの初期化終了通知を受けるとフラグ33をオンし、リフレッシュ回路31からの通常リフレッシュ要求を受けるとRAS/CAS信号の入力をセレクタ34に指示してリフレッシュ回路31に切り換える。   When the flag 33 is ON, the refresh circuit 31 is a circuit for controlling the refresh of the memory 39 by giving a normal refresh instruction at a regular interval that causes the CAS signal X62 to precede the RAS signal X61. When the flag 33 is on, the access circuit 32 receives a memory access request from the logic circuit 40, outputs an address and a control signal to the address / control line X63 in accordance with the RAS signal X61 and the CAS signal X62, and the data line X64. Read data or output write data to the data line X64. The access circuit 32 turns on the flag 33 when receiving an initialization end notification from the logic circuit 40, and instructs the selector 34 to input a RAS / CAS signal when receiving a normal refresh request from the refresh circuit 31. Switch to 31.

次に、本発明のメモリ制御方式の動作について図面を参照して説明する。図3はシステムリセット時のリフレッシュ動作について示したタイミングチャートである。図3を参照すると、メモリ39のアクセスが可能で通常のリフレッシュが実行されている状態すなわちフラグ33がオンの状態では、リフレッシュ回路31がアクセス回路32に要求してセレクタ34の制御によりRAS/CASを制御可能とし、タイミングT71でCAS信号X62をアクティブなローレベルとし、続いてRAS信号X61をアクティブなローレベルとし、規定時間後のタイミングT72でCAS信号X62をハイレベルに戻し続いてRAS信号X61をハイレベルに戻す。   Next, the operation of the memory control system of the present invention will be described with reference to the drawings. FIG. 3 is a timing chart showing the refresh operation at the time of system reset. Referring to FIG. 3, when the memory 39 is accessible and normal refresh is being executed, that is, when the flag 33 is on, the refresh circuit 31 requests the access circuit 32 to control the RAS / CAS under the control of the selector 34. At the timing T71, the CAS signal X62 is set to the active low level, the RAS signal X61 is set to the active low level, and the CAS signal X62 is returned to the high level at the timing T72 after a specified time, and then the RAS signal X61. Return to high level.

メモリ39のDRAMはタイミングT71からT72のCAS信号X62とRAS信号X61を受けると、通常のリフレッシュ指示であることを検出してリフレッシュを実行する。上記通常リフレッシュ状態ではリフレッシュ回路31が一定間隔でアクセス回路32のアクセス動作に割り込んで上記のようにCAS信号X62とRAS信号X61とを制御して通常のリフレッシュ指示をメモリ39へ与える。   When the DRAM of the memory 39 receives the CAS signal X62 and the RAS signal X61 from timing T71 to T72, it detects that it is a normal refresh instruction and executes refresh. In the normal refresh state, the refresh circuit 31 interrupts the access operation of the access circuit 32 at regular intervals, controls the CAS signal X62 and the RAS signal X61 as described above, and gives a normal refresh instruction to the memory 39.

タイミングT73でリセットスイッチ24或いは論理回路40からシステムリセットが指示されるとリセット回路23は予め決められたパルス幅以上としたシステムリセット信号X66をORゲート22へ出力する。ORゲート22はリセット信号X67を論理回路40とメモリ制御回路30へ出力し、論理回路40とメモリ制御回路30はリセット信号X67によりソフトウェアから見えないハードウェアの回路を予め決められた値にリセットする。   When a system reset is instructed from the reset switch 24 or the logic circuit 40 at timing T73, the reset circuit 23 outputs a system reset signal X66 having a predetermined pulse width or more to the OR gate 22. The OR gate 22 outputs a reset signal X67 to the logic circuit 40 and the memory control circuit 30, and the logic circuit 40 and the memory control circuit 30 reset a hardware circuit invisible to software to a predetermined value by the reset signal X67. .

タイミングT73からT74の間のリセット中の動作について説明すると、リセット信号X67によりフラグ33はオフされてRAS信号X61とCAS信号X62はともにローレベルとなり不正なメモリアクセスを抑止し、メモリ39はRAS信号X61とCAS信号X62が規定時間以上ローレベルであることを検出してセルフリフレッシュを開始する。アクセス回路32は、リセット中メモリ39に対するアクセス要求やアクセスを制御するハードウェア資源をアクセスのない状態にリセットし、リフレッシュ回路31はリセットにより動作を停止しフラグ33がオンとなるまで停止を継続する。   The operation during the reset between the timings T73 and T74 will be described. The flag 33 is turned off by the reset signal X67, the RAS signal X61 and the CAS signal X62 both become low level, and illegal memory access is suppressed. Self-refreshing is started by detecting that X61 and CAS signal X62 are at a low level for a predetermined time or more. The access circuit 32 resets the access request to the memory 39 being reset and the hardware resource for controlling access to a state in which no access is made, and the refresh circuit 31 stops the operation by the reset and continues to stop until the flag 33 is turned on. .

タイミングT74でリセットが解除されると、論理回路40はシステムリセット時の処理として予め決められている初期化を開始する。初期化では、メモリ内容を保持した状態で処理を再開するために必要な制御情報の再設定等を実行するが、以降初期化とはメモリ39のデータを初期値に書き込む動作は含まないものとする。通常初期化はハードウェアの処理を実行するマイクロプログラム等で実行され装置にもよるが数十秒かかることもある。   When the reset is released at timing T74, the logic circuit 40 starts initialization that is predetermined as processing at the time of system reset. In initialization, resetting of control information necessary for resuming processing with the memory contents held is executed, but initialization hereinafter does not include an operation of writing data in the memory 39 to an initial value. To do. Usually, initialization is executed by a microprogram or the like that executes hardware processing, and may take several tens of seconds depending on the apparatus.

タイミングT75までの間メモリ39はセルフリフレッシュを続けて記憶している情報の保持を行い、メモリ制御回路30はメモリアクセス要求の受付を拒絶する。タイミングT75で初期化が終わると論理回路40はメモリ制御回路30に対して初期化終了通知を送り、アクセス回路32は初期化終了通知を受けてフラグ33をオンする。フラグ33のオンによりリフレッシュ回路31とアクセス回路32は動作を開始する。その後リフレッシュ回路31は一定間隔で通常リフレッシュの指示を開始し、アクセス回路32もメモリアクセス要求の受付を再開する。   Until the timing T75, the memory 39 continues the self-refresh and holds the stored information, and the memory control circuit 30 rejects acceptance of the memory access request. When the initialization is completed at timing T75, the logic circuit 40 sends an initialization end notification to the memory control circuit 30, and the access circuit 32 receives the initialization end notification and turns on the flag 33. When the flag 33 is turned on, the refresh circuit 31 and the access circuit 32 start operating. Thereafter, the refresh circuit 31 starts a normal refresh instruction at regular intervals, and the access circuit 32 also resumes accepting a memory access request.

以上のように、システムリセットが発行された場合には、リセットから初期化が終了するまでの間、メモリ制御回路30は動作を停止し、メモリ39は電力消費の少ないセルフリフレッシュにより記憶内容を保持するため、消費電力の節電が可能となる。   As described above, when a system reset is issued, the memory control circuit 30 stops operating from the reset to the end of initialization, and the memory 39 holds the stored contents by self-refreshing with low power consumption. Therefore, power consumption can be saved.

次に、主電池10の電力供給が突然停止した場合の動作について図4を参照して説明する。主電池10からの電源供給が正常な場合はリフレッシュ回路31により一定間隔で通常リフレッシュの指示がタイミングT81、タイミングT82のように行われる。   Next, the operation when the power supply of the main battery 10 suddenly stops will be described with reference to FIG. When the power supply from the main battery 10 is normal, the refresh circuit 31 issues a normal refresh instruction at regular intervals at timings T81 and T82.

この後タイミングT83で、主電池10が何らかの要因で異常となりその電圧が規定値以下になると電源監視回路21は異常を検出して電源異常信号X65をORゲート22へ出力する。ORゲート22はリセット信号X67を論理回路40とメモリ制御回路30へ出力する。また、電源監視回路21は電源供給回路12に対しては電源停止信号X69を送る。   Thereafter, at timing T83, when the main battery 10 becomes abnormal for some reason and the voltage becomes equal to or lower than the specified value, the power monitoring circuit 21 detects the abnormality and outputs a power abnormality signal X65 to the OR gate 22. The OR gate 22 outputs a reset signal X67 to the logic circuit 40 and the memory control circuit 30. The power monitoring circuit 21 sends a power stop signal X69 to the power supply circuit 12.

電源供給回路12は、主電池10の異常があると通常電源の供給が停止するか不安定となってしまうのを避けるため、電源監視回路21からの電源停止信号X69を受けて通常電源X51の出力を停止し、バックアップ付き電源X52のみ副電池11の電力を用いて正常に供給を続ける。従って、論理回路40やメモリ制御回路30への電力供給は停止され、メモリ39のみに電力が正常に供給される状態となる。   The power supply circuit 12 receives the power supply stop signal X69 from the power supply monitoring circuit 21 and receives the power supply stop signal X69 from the power supply monitoring circuit 21 in order to prevent the supply of the normal power supply from stopping or becoming unstable when the main battery 10 is abnormal. The output is stopped and only the power source with backup X52 continues to be supplied normally using the power of the sub battery 11. Accordingly, power supply to the logic circuit 40 and the memory control circuit 30 is stopped, and power is normally supplied only to the memory 39.

メモリ制御回路30は、リセット信号X67を受けるとフラグ33がオフとなりRAS信号X61とCAS信号X62をローレベルとしてメモリ39に対してセルフリフレッシュを指示する。その後電源がオフとなってもRAS信号X61とCAS信号X62はローレベルに保たれるのでセルフリフレッシュの指示は継続される。これにより装置は電源オフ状態となりメモリ39はセルフリフレッシュへと移行する。   When the memory control circuit 30 receives the reset signal X67, the flag 33 is turned off and the RAS signal X61 and the CAS signal X62 are set to low level to instruct the memory 39 to perform self-refresh. After that, even if the power is turned off, the RAS signal X61 and the CAS signal X62 are kept at the low level, so that the self-refresh instruction is continued. As a result, the apparatus is turned off and the memory 39 shifts to self refresh.

その後タイミングT84で主電池10の異常が復旧すると、電源監視回路21は、電圧が正常になったことを検出し、電源停止信号X69の出力を停止し、リセットに必要な時間だけ遅延させてから電源異常信号X65の出力を停止する。これにより、電源供給回路12から通常電源X51が供給開始され、リセット信号X67が継続するリセット中の状態となる。この状態では引き続きリフレッシュ回路31はセルフリフレッシュの指示を続ける。   After that, when the abnormality of the main battery 10 is recovered at timing T84, the power supply monitoring circuit 21 detects that the voltage has become normal, stops outputting the power supply stop signal X69, and delays only the time necessary for resetting. The output of the power supply abnormality signal X65 is stopped. As a result, the supply of the normal power supply X51 from the power supply circuit 12 is started, and the reset signal X67 continues to be in a reset state. In this state, the refresh circuit 31 continues to instruct self-refresh.

タイミングT85でリセット信号X67が解除されると、論理回路40は初期化を開始し、予め決められた手続きに従ってハードウェアを初期化し、タイミングT86で初期化が終わると初期化終了通知をメモリ制御回路30へ送る。メモリ制御回路30は初期化終了通知を受けると、アクセス回路32はフラグ33をオンしリフレッシュ回路31が動作を開始する。これによりRAS信号X61とCAS信号X62はハイレベルになり、タイミングT87の通常リフレッシュ指示によりローレベルになりハイレベルに復旧する。   When the reset signal X67 is released at timing T85, the logic circuit 40 starts initialization, initializes the hardware according to a predetermined procedure, and when initialization is completed at timing T86, notifies the initialization end notification to the memory control circuit. Send to 30. When the memory control circuit 30 receives the initialization end notification, the access circuit 32 turns on the flag 33 and the refresh circuit 31 starts its operation. As a result, the RAS signal X61 and the CAS signal X62 become high level, and become low level by the normal refresh instruction at timing T87, and are restored to high level.

以上のように、主電池10からの電力供給が予告無しに停止しても、それを検出してメモリ39のみに副電池11からの電力を供給してセルフリフレッシュさせることにより、メモリ39に記憶している情報を保持しておくことができ、復電後に通常リフレッシュへ戻してメモリ39に記憶した情報を失うことなく再利用できる。また、初期化実行中もセルフリフレッシュするようにしたのでより一層節電効率を上げている。   As described above, even if the power supply from the main battery 10 stops without notice, it is detected and stored in the memory 39 by supplying power from the sub battery 11 only to the memory 39 and performing self-refresh. The stored information can be retained, and can be reused without losing the information stored in the memory 39 by returning to normal refresh after power recovery. In addition, since the self-refresh is performed during the initialization, the power saving efficiency is further increased.

電池駆動でない情報処理装置についても本発明は適用可能であり、同様の効果を得られる。   The present invention can also be applied to an information processing apparatus that is not battery-driven, and similar effects can be obtained.

本発明の構成を示すブロック図である。It is a block diagram which shows the structure of this invention. メモリ制御回路30の構成を示すブロック図である。3 is a block diagram showing a configuration of a memory control circuit 30. FIG. システムリセットの動作を示すタイミングチャートである。It is a timing chart which shows the operation | movement of a system reset. 電源異常時の動作を示すタイミングチャートである。It is a timing chart which shows operation at the time of power failure.

符号の説明Explanation of symbols

10 主電池
11 副電池
12 電源供給回路
21 電源監視回路
22 ORゲート
23 リセット回路
24 リセットスイッチ
25 電源スイッチ
30 メモリ制御回路
31 リフレッシュ回路
32 アクセス回路
33 フラグ
39 メモリ
40 論理回路
DESCRIPTION OF SYMBOLS 10 Main battery 11 Sub battery 12 Power supply circuit 21 Power supply monitoring circuit 22 OR gate 23 Reset circuit 24 Reset switch 25 Power switch 30 Memory control circuit 31 Refresh circuit 32 Access circuit 33 Flag 39 Memory 40 Logic circuit

Claims (6)

DRAMで構成されたメモリとメモリを制御するメモリ制御回路とCPUを含む論理回路とを有したメモリ制御方式であって、
前記メモリ制御回路は、システムリセットによりメモリに対してDRAM自身でリフレッシュするセルフリフレッシュの指示を開始し、システムリセット後の初期化終了後に一定間隔でCAS信号をRAS信号に先行させる通常リフレッシュの指示をメモリに開始することを特徴とするメモリ制御方式。
A memory control system having a memory composed of DRAM, a memory control circuit for controlling the memory, and a logic circuit including a CPU,
The memory control circuit starts a self-refresh instruction for refreshing the memory with DRAM itself by a system reset, and a normal refresh instruction for causing the CAS signal to precede the RAS signal at regular intervals after the initialization after the system reset. Memory control system characterized by starting with memory.
DRAMで構成されたメモリとメモリを制御するメモリ制御回路とCPUを含む論理回路とを有したメモリ制御方式であって、
前記メモリ制御回路は、CAS信号をRAS信号に先行させてメモリに通常リフレッシュを指示するリフレッシュ回路と、リセット信号によりオフされ論理回路の指示によりオンされるフラグとを有し、フラグがオフされるとメモリ自身の制御で一定間隔でリフレッシュ動作を行うセルフリフレッシュでメモリをリフレッシュさせ、フラグがオンされるとリフレッシュ回路による通常リフレッシュにてメモリをリフレッシュすることを特徴とするメモリ制御方式。
A memory control system having a memory composed of DRAM, a memory control circuit for controlling the memory, and a logic circuit including a CPU,
The memory control circuit includes a refresh circuit that instructs the memory to perform normal refresh by causing the CAS signal to precede the RAS signal, and a flag that is turned off by a reset signal and turned on by an instruction from a logic circuit, and the flag is turned off. And a memory control system, wherein the memory is refreshed by self-refresh that performs refresh operations at regular intervals under the control of the memory itself, and when the flag is turned on, the memory is refreshed by normal refresh by a refresh circuit.
DRAMで構成されたメモリとメモリを制御するメモリ制御回路とCPUを含む論理回路と主電池と主電池に異常があった際にメモリのみに電力を供給する副電池と主電池の異常を監視する電源監視回路とを有したメモリ制御方式であって、
前記電源監視回路は主電池の電圧を監視して規定値以下となるとリセット信号を出力し、前記メモリ制御回路は、CAS信号をRAS信号に先行させてメモリに通常リフレッシュを指示するリフレッシュ回路と、メモリへのアクセスが可能であることを示すフラグとを有し、電源監視回路からリセット信号が出力されるとフラグをオフしてメモリ自身の制御で一定間隔でリフレッシュ動作を行うセルフリフレッシュでメモリをリフレッシュし、主電池の電力供給が停止した後も副電池による電力供給によりメモリのセルフリフレッシュを継続し、論理回路から指示を受けてフラグをオンするとリフレッシュ回路による通常リフレッシュでメモリをリフレッシュすることを特徴とするメモリ制御方式。
A memory composed of DRAM, a memory control circuit that controls the memory, a logic circuit including a CPU, a main battery, and an abnormality in the main battery and the sub battery that supplies power only to the memory when there is an abnormality are monitored. A memory control system having a power monitoring circuit,
The power monitoring circuit monitors the voltage of the main battery and outputs a reset signal when the voltage falls below a specified value.The memory control circuit precedes the RAS signal with the CAS signal to instruct the memory to perform normal refreshing; and And a flag indicating that the memory can be accessed. When a reset signal is output from the power supply monitoring circuit, the flag is turned off, and the memory is controlled by self-refresh that performs refresh operations at regular intervals under the control of the memory itself. After refreshing and the power supply of the main battery is stopped, the self-refresh of the memory is continued by the power supply by the sub battery. A featured memory control system.
前記論理回路はリセット後の初期化処理を終了した時点で前記メモリ制御回路に初期化終了通知を送り、初期化終了通知を受けたメモリ制御回路が前記フラグをオンすることを特徴とする請求項2又は3のメモリ制御方式。 The logic circuit sends an initialization end notification to the memory control circuit when the initialization process after reset is completed, and the memory control circuit that has received the initialization end notification turns on the flag. 2 or 3 memory control methods. CAS信号をRAS信号に先行させてDRAMで構成されるメモリに通常リフレッシュを指示するリフレッシュ回路と、リセット信号によりオフされCPUを含む論理回路の指示によりオンされるフラグとを有し、フラグがオフされるとメモリ自身の制御で一定間隔でリフレッシュ動作を行うセルフリフレッシュの実行をメモリに指示し、フラグがオンされるとリフレッシュ回路による通常リフレッシュをメモリへ指示することを特徴とするメモリ制御回路。 It has a refresh circuit for instructing normal refresh to the memory composed of DRAM by making the CAS signal precede the RAS signal, and a flag that is turned off by the reset signal and turned on by the instruction of the logic circuit including the CPU. And a memory control circuit for instructing the memory to execute self-refresh that performs refresh operations at regular intervals under the control of the memory itself, and for instructing the memory to perform normal refresh by the refresh circuit when the flag is turned on. 前記フラグはリセット後の初期化処理を終了した時点で前記論理回路から通知される初期化終了通知によってオンされることを特徴とする請求項5のメモリ制御回路。
6. The memory control circuit according to claim 5, wherein the flag is turned on by an initialization end notification notified from the logic circuit when the initialization process after reset is completed.
JP2003279456A 2003-07-24 2003-07-24 Memory control system and memory control circuit Pending JP2005044460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003279456A JP2005044460A (en) 2003-07-24 2003-07-24 Memory control system and memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003279456A JP2005044460A (en) 2003-07-24 2003-07-24 Memory control system and memory control circuit

Publications (1)

Publication Number Publication Date
JP2005044460A true JP2005044460A (en) 2005-02-17

Family

ID=34265551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003279456A Pending JP2005044460A (en) 2003-07-24 2003-07-24 Memory control system and memory control circuit

Country Status (1)

Country Link
JP (1) JP2005044460A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007046481A1 (en) * 2005-10-20 2007-04-26 Matsushita Electric Industrial Co., Ltd. Memory control device
CN102324247A (en) * 2010-04-12 2012-01-18 英特尔公司 The method of staggered self-refresh

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007046481A1 (en) * 2005-10-20 2007-04-26 Matsushita Electric Industrial Co., Ltd. Memory control device
US7885133B2 (en) 2005-10-20 2011-02-08 Panasonic Corporation Memory control device
CN102324247A (en) * 2010-04-12 2012-01-18 英特尔公司 The method of staggered self-refresh

Similar Documents

Publication Publication Date Title
US6981159B2 (en) Memory control device having less power consumption for backup
WO2010035315A1 (en) Power consumption control method in multi-core cpu, power consumption control program, and information processing system
US8352770B2 (en) Method, system and apparatus for low-power storage of processor context information
JPH07182857A (en) Microcomputer system
JP5581577B2 (en) Data processing device
JP2008225916A (en) Power reduction device in data backup
JP4186942B2 (en) MEMORY BACKUP CIRCUIT AND ELECTRONIC DEVICE USING THE SAME
JP2006350859A (en) Memory controller and memory control method
JP2005025364A (en) Circuit and method for controlling power source supply to memory and memory-mounted device
JP5353762B2 (en) Memory control device
JPH0773146A (en) Electronic unit
CN103150191A (en) Terminal equipment
JP2005044460A (en) Memory control system and memory control circuit
US11861781B2 (en) Graphics processing units with power management and latency reduction
JP2001250377A (en) Electronic equipment with energy saving function
JP2009247153A (en) Power supply relay controller and power supply relay control method
JP2004145584A (en) Disk array device
JP2016062348A (en) Electronic device
US9727121B2 (en) Wireless communication device
JPH06175754A (en) Automatic storing mechanism for main contents of storage
JP2008134785A (en) Memory controller
JP2007018288A (en) Arithmetic processor and power saving mode changeover method therefor
JPH10105478A (en) Memory control circuit
JPH11149419A (en) Method and device for backing up data
JP4684575B2 (en) Semiconductor device and control method thereof

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050401

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060615

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070129

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081202

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090331