JP2011180770A - Memory control device - Google Patents

Memory control device Download PDF

Info

Publication number
JP2011180770A
JP2011180770A JP2010043218A JP2010043218A JP2011180770A JP 2011180770 A JP2011180770 A JP 2011180770A JP 2010043218 A JP2010043218 A JP 2010043218A JP 2010043218 A JP2010043218 A JP 2010043218A JP 2011180770 A JP2011180770 A JP 2011180770A
Authority
JP
Japan
Prior art keywords
signal
power supply
reset
reboot
refresh
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010043218A
Other languages
Japanese (ja)
Other versions
JP5353762B2 (en
Inventor
Yasuhiro Takenaka
康洋 竹中
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010043218A priority Critical patent/JP5353762B2/en
Publication of JP2011180770A publication Critical patent/JP2011180770A/en
Application granted granted Critical
Publication of JP5353762B2 publication Critical patent/JP5353762B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To accurately hold storage contents of a memory even when a power supply voltage drops, in a memory control device controlling the memory having a self-refresh function. <P>SOLUTION: When the power supply voltage of +24 V drops, a detection signal sdbkupn becomes HIGH (1), and a reboot signal req_reboot becomes HIGH according thereto (2). Then, a signal self_refresh becomes HIGH (3), and a self-refresh operation is instructed to an SDRAM (Synchronous Dynamic Random Access Memory) 9 through an SDRAM controller 33. A signal reboot_output_n becomes LOW according to the reboot signal req_reboot (4). Then, a signal b_watch_in_n, a signal rst_rstctl_n, and a signal rst_cpu_n sequentially become LOW, and a monitoring block 35, a reset controller 37, and a CPU 31 are sequentially reset. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、メモリを制御するメモリ制御装置に関し、詳しくは、セルフリフレッシュ機能を有するメモリを制御するメモリ制御装置に関する。   The present invention relates to a memory control device that controls a memory, and more particularly to a memory control device that controls a memory having a self-refresh function.

従来より、SDRAM(Synchronous Dynamic Random Access Memory)等のメモリは、メモリセルの構成上、リフレッシュ動作を必要としている。また、省電力モードなどメモリの読み書きが行われないときは、セルフリフレッシュと呼ばれるリフレッシュモードで記憶内容を保持している。また、この種のメモリを制御するメモリ制御装置としては、パワーダウン信号によって省電力モードが設定されたときに、SDRAMに対してセルフリフレッシュ動作を指示し、続いてCPU等への電源供給を停止するものも提案されている(例えば、特許文献1参照)。   Conventionally, a memory such as an SDRAM (Synchronous Dynamic Random Access Memory) requires a refresh operation due to the configuration of a memory cell. Further, when the memory is not read or written such as in the power saving mode, the stored contents are held in a refresh mode called self-refresh. In addition, as a memory control device for controlling this type of memory, when the power saving mode is set by the power down signal, the SDRAM is instructed to perform a self-refresh operation, and then the power supply to the CPU or the like is stopped. Some have been proposed (see, for example, Patent Document 1).

この場合、CPU等への電源供給が停止されることでそのCPU等によるSDRAMへのアクセスも停止される省電力モードの設定時には、SDRAMに対してセルフリフレッシュ動作が指示されるので、低電力で記憶内容を保持することができる。   In this case, when setting the power saving mode in which the power supply to the CPU or the like is stopped and the access to the SDRAM by the CPU or the like is stopped, the self refresh operation is instructed to the SDRAM. The stored contents can be retained.

特開2006−4108号公報JP 2006-4108 A

ところが、特許文献1では、省電力モードの設定時にCPUの処理を介してSDRAMにセルフリフレッシュ動作を指示している。その場合、異常等によって電源の電圧の低下がCPUに伝達されると、CPUがSDRAM等にアクセスして割り込み処理を行うことによって、CPUがSDRAMにセルフリフレッシュ動作を指示する。   However, in Patent Document 1, a self-refresh operation is instructed to the SDRAM through the processing of the CPU when the power saving mode is set. In this case, when a drop in power supply voltage is transmitted to the CPU due to an abnormality or the like, the CPU accesses the SDRAM or the like and performs interrupt processing, whereby the CPU instructs the SDRAM to perform a self-refresh operation.

そのCPUが割り込み処理に要する時間が、電源の電圧がCPUを駆動するのに必要な電圧まで低下するまでの時間より長い場合、CPUがSDRAMにセルフリフレッシュ動作を指示することができず、SDRAMは記憶内容を保持することができない。   If the time required for interrupt processing by the CPU is longer than the time required for the power supply voltage to drop to a voltage necessary for driving the CPU, the CPU cannot instruct the SDRAM to perform a self-refresh operation. The stored contents cannot be retained.

そこで、本発明は、セルフリフレッシュ機能を有するメモリを制御するメモリ制御装置において、電源の電圧が低下した場合でも、メモリの記憶内容を正確に保持することを目的としてなされた。   Therefore, the present invention has been made for the purpose of accurately holding the stored contents of the memory even in the case where the voltage of the power supply is lowered, in the memory control device that controls the memory having the self-refresh function.

上記目的を達するためになされた本発明は、セルフリフレッシュ機能を有するメモリを制御するメモリ制御装置であって、電源から一定値の駆動電圧を生成する駆動電圧生成部と、上記駆動電圧生成部によって生成された駆動電圧によって駆動され、上記メモリにアクセス可能なCPUと、上記駆動電圧生成部が上記電源から上記一定値の駆動電圧を生成するのに必要な値以上であって、かつ、その電源の電圧の値の誤差範囲における最低電圧未満である閾値が設定され、その設定された閾値未満の上記電源の電圧を検出したときに検出信号を出力する電源電圧検出部と、上記電源電圧検出部が上記検出信号を出力したとき、上記メモリにセルフリフレッシュ動作を指示するリフレッシュ信号と上記CPUに停止を指示する停止信号とを出力する制御部と、を備えたことを特徴としている。   The present invention made to achieve the above object is a memory control device for controlling a memory having a self-refresh function, wherein a drive voltage generation unit that generates a drive voltage of a constant value from a power source, and the drive voltage generation unit A CPU that is driven by the generated drive voltage and can access the memory, and the drive voltage generation unit has a value that is greater than or equal to a value necessary for the drive voltage generation unit to generate the constant drive voltage from the power supply. A power supply voltage detection unit configured to output a detection signal when a threshold value that is less than the lowest voltage in the error range of the voltage value is set and detects a voltage of the power supply that is less than the set threshold value, and the power supply voltage detection unit Outputs a refresh signal that instructs the memory to perform a self-refresh operation and a stop signal that instructs the CPU to stop. It is characterized with the control unit, further comprising a that.

このように構成された本発明のメモリ制御装置では、駆動電圧生成部は、電源から一定値の駆動電圧を生成し、その駆動電圧によって、メモリにアクセス可能なCPUが駆動される。また、電源電圧検出部は、上記電源の電圧が所定の閾値未満となったときに検出信号を出力する。なお、上記閾値は、上記駆動電圧生成部がその電源から上記一定値の駆動電圧を生成するのに必要な値以上であって、かつ、その電源の電圧の値の誤差変動範囲における最低電圧未満である閾値が設定される。そして、制御部は、上記電源電圧検出部が上記検出信号を出力したとき、上記メモリにセルフリフレッシュ動作を指示するリフレッシュ信号と上記CPUに停止を指示する停止信号とを出力する。   In the memory control device of the present invention configured as described above, the drive voltage generation unit generates a constant drive voltage from the power source, and the CPU that can access the memory is driven by the drive voltage. The power supply voltage detection unit outputs a detection signal when the voltage of the power supply becomes less than a predetermined threshold value. The threshold is not less than the value necessary for the drive voltage generator to generate the constant drive voltage from the power supply, and less than the minimum voltage in the error fluctuation range of the power supply voltage value. A threshold value is set. When the power supply voltage detection unit outputs the detection signal, the control unit outputs a refresh signal that instructs the memory to perform a self-refresh operation and a stop signal that instructs the CPU to stop.

このように、本発明では、電源の電圧が上記閾値未満となったときに、上記制御部を介して、上記メモリにセルフリフレッシュ動作を指示すると共に上記CPUを停止することができる。また、この制御部は、上記メモリにアクセス可能な上記CPUとは独立している。このため、本発明のメモリ制御装置では、電源の電圧が上記閾値未満に低下した場合でも、SDRAMに対してセルフリフレッシュ動作を指示することによって上記メモリの記憶内容を正確に保持することができ、かつ、上記CPUを停止する停止信号を出力することによって、CPUが上記メモリにアクセスすることによる誤動作を防止することができる。   Thus, according to the present invention, when the voltage of the power supply becomes less than the threshold value, the memory can be instructed through the control unit and the CPU can be stopped. The control unit is independent of the CPU that can access the memory. For this reason, in the memory control device of the present invention, even when the power supply voltage drops below the threshold value, the stored contents of the memory can be accurately held by instructing the SDRAM to perform a self-refresh operation. In addition, by outputting a stop signal for stopping the CPU, it is possible to prevent malfunction caused by the CPU accessing the memory.

なお、上記制御部は、上記電源電圧検出部が上記検出信号を一定期間出力したとき、リブート信号を出力する監視部と、上記監視部が上記リブート信号を出力したとき、上記リフレッシュ信号及び上記停止信号を出力するリセットコントローラ部と、を備えてもよい。この場合、上記電源電圧検出部が上記検出信号を一定期間出力したとき、監視部がリブート信号を出力し、それに応じてリセットコントローラ部が上記リフレッシュ信号及び上記停止信号を出力する。このため、何らかのエラーやノイズにより上記検出信号が一時的に出力された場合には、上記リフレッシュ信号及び上記停止信号が出力されず、当該メモリ制御装置による制御の安定性を確保することができる。   The control unit includes a monitoring unit that outputs a reboot signal when the power supply voltage detection unit outputs the detection signal for a certain period, and a refresh signal and the stop when the monitoring unit outputs the reboot signal. And a reset controller unit that outputs a signal. In this case, when the power supply voltage detection unit outputs the detection signal for a certain period, the monitoring unit outputs a reboot signal, and the reset controller unit outputs the refresh signal and the stop signal accordingly. For this reason, when the detection signal is temporarily output due to some error or noise, the refresh signal and the stop signal are not output, and the stability of control by the memory control device can be ensured.

そして、その場合、上記リセットコントローラ部は、上記監視部が上記リブート信号を出力したとき、上記リフレッシュ信号と上記監視部をリセットする監視部リセット信号とを出力し、上記監視部は、上記リセットコントローラ部が上記監視部リセット信号を出力したとき、上記リセットコントローラ部をリセットするコントローラリセット信号を出力し、かつ、自身を初期化して停止し、上記リセットコントローラ部は、上記監視部が上記コントローラリセット信号を出力したとき、上記停止信号を出力し、かつ、自身を初期化して停止してもよい。   In this case, when the monitoring unit outputs the reboot signal, the reset controller unit outputs the refresh signal and a monitoring unit reset signal for resetting the monitoring unit, and the monitoring unit is configured to output the reset controller. When the unit outputs the monitoring unit reset signal, it outputs a controller reset signal that resets the reset controller unit, and initializes and stops itself, and the monitoring unit resets the controller reset signal. The above stop signal may be output and may be initialized and stopped.

この場合、上記検出信号が一定期間出力されて上記監視部が上記リブート信号を出力したとき、上記リセットコントローラ部は、上記リフレッシュ信号と、上記監視部をリセットする監視部リセット信号とを出力する。すると、上記監視部は、その監視部リセット信号に応じて、上記リセットコントローラ部をリセットするコントローラリセット信号を出力し、かつ、自身を初期化して停止する。このため、上記リブート信号の出力時には、前述のリフレッシュ信号が出力されるのは勿論のこと、上記監視部は初期化された状態で停止することになる。また、上記監視部が上記コントローラリセット信号を出力したとき、上記リセットコントローラ部は、上記停止信号を出力し、かつ、自身を初期化して停止する。このため、上記リブート信号の出力時には、前述の停止信号が出力されるのは勿論のこと、上記リセットコントローラ部は初期化された状態で停止することになる。   In this case, when the detection signal is output for a certain period and the monitoring unit outputs the reboot signal, the reset controller unit outputs the refresh signal and a monitoring unit reset signal for resetting the monitoring unit. Then, the monitoring unit outputs a controller reset signal for resetting the reset controller unit in response to the monitoring unit reset signal, and initializes and stops itself. For this reason, when the reboot signal is output, the above-described refresh signal is output, and the monitoring unit is stopped in an initialized state. When the monitoring unit outputs the controller reset signal, the reset controller unit outputs the stop signal and initializes itself to stop. For this reason, when the reboot signal is output, the above-described stop signal is output, and the reset controller unit is stopped in an initialized state.

従って、上記リブート信号が出力されて、上記セルフリフレッシュ動作及び上記CPUの停止がなされた後、当該メモリ制御装置が再起動されるときは、上記監視部及び上記リセットコントローラ部は初期化された状態から再起動される。よって、その再起動時の処理を一層円滑に実行することができる。また、上記駆動電圧生成部は、DC/DCコンバータで構成されてもよい。   Therefore, when the memory control device is restarted after the reboot signal is output and the self-refresh operation and the CPU are stopped, the monitoring unit and the reset controller unit are initialized. Will be restarted. Therefore, the process at the time of restart can be executed more smoothly. The drive voltage generation unit may be configured with a DC / DC converter.

本発明を適用したメモリ制御装置の構成を概略的に表すブロック図である。1 is a block diagram schematically illustrating a configuration of a memory control device to which the present invention is applied. そのメモリ制御装置の電源電圧低下時の動作を表す図で、(A)は電源電圧の変化を例示する説明図、(B)は各信号の変化を例示するタイムチャートである。4A and 4B are diagrams illustrating an operation when the power supply voltage of the memory control device is lowered, where FIG. 5A is an explanatory diagram illustrating a change in power supply voltage, and FIG. 5B is a time chart illustrating a change in each signal.

[メモリ制御装置の構成]
次に、本発明の実施の形態を図面と共に説明する。図1は、本発明が適用されたメモリ制御装置1の構成を概略的に表すブロック図である。なお、本発明が適用されたメモリ制御装置1は、例えば、電子写真方式等で用紙等に画像を形成する画像形成装置に使用されるメモリを制御するのに用いられる。
[Configuration of memory controller]
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram schematically showing the configuration of a memory control device 1 to which the present invention is applied. The memory control device 1 to which the present invention is applied is used to control a memory used in an image forming apparatus that forms an image on a sheet or the like by, for example, electrophotography.

図1に示すように、本実施の形態のメモリ制御装置1はASIC3を中心に構成されており、そのASIC3には、+24Vの直流電源(電源の一例)からDC/DCコンバータ5(駆動電圧生成部の一例)によって生成された駆動電圧の一例としての+3.3Vの直流電圧が供給されている。なお、上記+24Vの直流電源は、商用交流電源から整流されて生成されたものであってもよく、その+24Vの電圧は、上述した画像形成装置のプリンタエンジン等(図示省略)の駆動電圧として供給されてもよい。   As shown in FIG. 1, the memory control device 1 of the present embodiment is mainly configured by an ASIC 3, and the ASIC 3 includes a DC / DC converter 5 (drive voltage generation) from a + 24V DC power supply (an example of a power supply). DC voltage of +3.3 V as an example of the drive voltage generated by the example of the unit is supplied. The + 24V DC power supply may be generated by rectifying from a commercial AC power supply, and the + 24V voltage is supplied as a drive voltage for the printer engine or the like (not shown) of the image forming apparatus described above. May be.

また、上記+24Vの電源には、電源電圧検出回路7(電源電圧検出部の一例)が接続されており、次のような検出信号sdbkupnをASIC3に入力している。すなわち、図2(A),(B)に示すように、検出信号sdbkupnは、上記電源の電圧が予め設定された所定の閾値VTHよりも高いときはHIGH、上記電源の電圧がその閾値VTHよりも低いときはLOWとなる信号である。ここで、上記閾値VTHは、上記電源からDC/DCコンバータ5が+3.3Vの直流電圧を生成するのに必要な値以上であって、かつ、その電源の電圧の値の通常の変動範囲の最低電圧であるVM未満の値に設定されている。   In addition, a power supply voltage detection circuit 7 (an example of a power supply voltage detection unit) is connected to the + 24V power supply, and the following detection signal sdbkupn is input to the ASIC 3. That is, as shown in FIGS. 2A and 2B, the detection signal sdbkupn is HIGH when the voltage of the power source is higher than a predetermined threshold value VTH, and the voltage of the power source is higher than the threshold value VTH. Is low, the signal is LOW. Here, the threshold value VTH is equal to or greater than a value necessary for the DC / DC converter 5 to generate a + 3.3V DC voltage from the power source, and is within a normal fluctuation range of the voltage value of the power source. The minimum voltage is set to a value less than VM.

画像形成装置の場合、プリンタエンジンが画像形成するのに必要な電圧が24Vであり、その電圧を基にメモリ制御装置1が動作している。メモリ制御装置1は、クロック信号に従い動作し、そのクロック信号が変わる瞬間に多くの論理回路が動作する為に、電源は瞬間的に多くの電流をメモリ制御装置1に供給する必要がある。それが電源の電圧変動が生じる原因であって、その変動の範囲が電源の電圧の誤差範囲である。   In the case of the image forming apparatus, the voltage required for the printer engine to form an image is 24V, and the memory control apparatus 1 operates based on the voltage. The memory control device 1 operates in accordance with the clock signal, and many logic circuits operate at the moment when the clock signal changes. Therefore, the power supply needs to supply a large amount of current to the memory control device 1 instantaneously. This is the cause of the voltage fluctuation of the power supply, and the range of the fluctuation is the error range of the voltage of the power supply.

また、ASIC3には、セルフリフレッシュ機能を有し、上記電源とは独立した二次電源から+3.3Vの直流電圧を印加されたメモリの一例としてのSDRAM9が接続される。ASIC3に内蔵されたCPU31は、同じくASIC3に内蔵されたSDRAMコントローラ(SDRAMCTL)33を介してSDRAM9にアクセス可能に構成されている。SDRAM9は、CPU31から読み書きされた内容を記憶しているが、SDRAMのメモリセルの構造上、リフレッシュ動作を必要としている。省電力モードでは、SDRAM9は、SDRAMコントローラ33からセルフリフレッシュ制御信号を受信すると、二次電源から供給される電圧によって電荷を補充し、記憶内容を保持する。SDRAM9がセルフリフレッシュ状態であると、CPU31は、SDRAM9にアクセスすることができず、記憶内容を読み書きすることができない。   The ASIC 3 is connected to an SDRAM 9 as an example of a memory having a self-refresh function and to which a + 3.3V DC voltage is applied from a secondary power source independent of the power source. The CPU 31 incorporated in the ASIC 3 is configured to be able to access the SDRAM 9 via an SDRAM controller (SDRAMCTL) 33 also incorporated in the ASIC 3. The SDRAM 9 stores the contents read and written by the CPU 31, but requires a refresh operation due to the structure of the SDRAM memory cell. In the power saving mode, when the SDRAM 9 receives the self-refresh control signal from the SDRAM controller 33, the SDRAM 9 replenishes charges with the voltage supplied from the secondary power supply and holds the stored contents. When the SDRAM 9 is in the self-refresh state, the CPU 31 cannot access the SDRAM 9 and cannot read / write the stored contents.

更に、ASIC3は、リセット,SDBKUPN監視ブロック(監視部の一例:以下単に監視ブロックという)35と、リセットコントローラ37(リセットコントローラ部の一例)とを備えている。なお、監視ブロック35とリセットコントローラ37とはいずれも論理回路によって構成され、両者で制御部の一例に相当する。   Further, the ASIC 3 includes a reset / SDBKUPN monitoring block (an example of a monitoring unit: hereinafter simply referred to as a monitoring block) 35 and a reset controller 37 (an example of a reset controller unit). Note that the monitoring block 35 and the reset controller 37 are both configured by a logic circuit, and both correspond to an example of a control unit.

また、DC/DCコンバータ5によって生成された+3.3Vの直流電圧は、リセットIC41にも入力されている。リセットIC41は信号output_rsticを出力しており、その信号output_rsticは、電源投入後、リセットIC41への入力電圧が3.3Vを超えると所定の遅延時間の後にHIGHとなる。そして、この信号output_rsticは、リセットコントローラ37が出力する後述の信号reboot_output_nと共に、負論理の論理和であるAND43に入力されている。   The + 3.3V DC voltage generated by the DC / DC converter 5 is also input to the reset IC 41. The reset IC 41 outputs a signal output_rstic, which becomes HIGH after a predetermined delay time when the input voltage to the reset IC 41 exceeds 3.3 V after power-on. The signal output_rstic is input to an AND 43 that is a logical OR of negative logic together with a signal reboot_output_n described later output from the reset controller 37.

このAND43の出力は、信号b_watch_in_nとして、前述の電源電圧検出回路7が出力する検出信号sdbkupnと共に監視ブロック35に入力されている。なお、この信号b_watch_in_nは、監視ブロック35に対するLOWアクティブのリセット信号でもある。そして、監視ブロック35は、検出信号sdbkupnに基づいてリブート信号req_rebootを、信号b_watch_in_nに基づいて、信号rst_rstctl_n(コントローラリセット信号の一例)をそれぞれリセットコントローラ37へ出力する。すなわち、リブート信号req_rebootは、検出信号sdbkupnが一定期間継続してLOWとなると一定期間HIGHとなる信号である。また、信号rst_rstctl_nは、リセットコントローラ37をリセットするためのLOWアクティブの信号であって、検出信号sdbkupn及び信号b_watch_in_nが共にLOWであるとLOWとなり、他の場合はHIGHとなる。   The output of the AND 43 is input as a signal b_watch_in_n to the monitoring block 35 together with the detection signal sdbkupn output from the power supply voltage detection circuit 7 described above. The signal b_watch_in_n is also a LOW active reset signal for the monitoring block 35. Then, the monitoring block 35 outputs a reboot signal req_reboot to the reset controller 37 based on the detection signal sdbkupn and a signal rst_rstctl_n (an example of a controller reset signal) based on the signal b_watch_in_n. That is, the reboot signal req_reboot is a signal that is HIGH for a certain period when the detection signal sdbkupn continues to be LOW for a certain period. The signal rst_rstctl_n is a LOW active signal for resetting the reset controller 37, and becomes LOW when the detection signal sdbkupn and the signal b_watch_in_n are both LOW, and HIGH otherwise.

リセットコントローラ37は、リブート信号req_reboot及び信号rst_rstctl_nに基づいて、次のような信号reboot_output_n(監視部リセット信号の一例),信号self_reflesh(リフレッシュ信号の一例)を出力する。すなわち、信号reboot_output_nは、前述のAND43に入力されるLOWアクティブの再起動用リセット信号である。リブート信号req_rebootがHIGHになると信号reboot_output_nは、LOWとなる。信号self_refleshは、SDRAMコントローラ33へ入力されるセルフリフレッシュ制御信号である。リブート信号req_rebootがHIGHになると、信号self_refleshは、一定期間HIGHとなる。更に、リセットコントローラ37は、自身がリセット状態となるとLOWとなる信号rst_cpu_n(停止信号の一例)をCPU31に入力している。この信号rst_cpu_nは、CPU31に対するLOWで有効となるCPU31を初期化するLOWアクティブのリセット信号である。   Based on the reboot signal req_reboot and the signal rst_rstctl_n, the reset controller 37 outputs the following signal reboot_output_n (an example of a monitoring unit reset signal) and a signal self_refresh (an example of a refresh signal). That is, the signal reboot_output_n is a LOW active restart reset signal input to the AND 43 described above. When the reboot signal req_reboot becomes HIGH, the signal reboot_output_n becomes LOW. The signal self_refresh is a self-refresh control signal input to the SDRAM controller 33. When the reboot signal req_reboot becomes HIGH, the signal self_refresh becomes HIGH for a certain period. Further, the reset controller 37 inputs a signal rst_cpu_n (an example of a stop signal) that becomes LOW when the reset controller 37 is reset to the CPU 31. The signal rst_cpu_n is a LOW active reset signal that initializes the CPU 31 that becomes valid when the CPU 31 is LOW.

[メモリ制御装置の動作]
次に、このメモリ制御装置1の動作を、電源の遮断若しくはなんらかの異常で電源の電圧が低下した場合を例にとって説明する。図2(A)は、その場合の電源の電圧の変化を例示する説明図であり、図2(B)は、その場合の上記各信号の変化を例示するタイムチャートである。
[Operation of memory controller]
Next, the operation of the memory control device 1 will be described by taking as an example a case where the voltage of the power supply is lowered due to the interruption of the power supply or some abnormality. FIG. 2A is an explanatory diagram illustrating a change in the voltage of the power supply in that case, and FIG. 2B is a time chart illustrating a change in each signal in that case.

図2(A),(B)に示すように、電源の電圧(供給電圧)が+24Vに維持されているときは、検出信号sdbkupn,信号reboot_output_n,信号b_watch_in_n,信号rst_rstctl_n,信号rst_cpu_n,信号output_rsticはHIGHとされ、リブート信号req_reboot,信号self_refleshはLOWとされる。また、このとき、CPU31は動作しており、CPU31は、SDRAM9にアクセス可能である。   As shown in FIGS. 2A and 2B, when the power supply voltage (supply voltage) is maintained at +24 V, the detection signal sdbkupn, the signal reboot_output_n, the signal b_watch_in_n, the signal rst_rstctl_n, the signal rst_cpu_n, and the signal output_rstic The reboot signal req_reboot and the signal self_refresh are set to LOW. At this time, the CPU 31 is operating, and the CPU 31 can access the SDRAM 9.

そして、電源の電圧が低下して閾値VTHを下回ると、検出信号sdbkupnがLOWとなる(1)。そして、検出信号sdbkupnが一定期間継続してLOWとなると、リブート信号req_rebootが一定期間HIGHとなる(2)。なお、(1)〜(2)に至る一定期間は数msec程度の時間である(図2(B)参照)。   When the voltage of the power source decreases and falls below the threshold value VTH, the detection signal sdbkupn becomes LOW (1). When the detection signal sdbkupn continues to be LOW for a certain period, the reboot signal req_reboot becomes HIGH for a certain period (2). Note that the fixed period from (1) to (2) is about several milliseconds (see FIG. 2B).

すると、そのリブート信号req_rebootがHIGHになることにより、信号self_refleshが一定期間HIGHとなる(3)。こうして、セルフリフレッシュ制御信号としてSDRAMコントローラ33へ入力されている信号self_refleshがHIGHとなると、SDRAM9にセルフリフレッシュ動作が指示され、SDRAM9はセルフリフレッシュ状態となってCPU31はアクセス不可となる。   Then, when the reboot signal req_reboot becomes HIGH, the signal self_refresh becomes HIGH for a certain period (3). Thus, when the signal self_refresh input to the SDRAM controller 33 as the self-refresh control signal becomes HIGH, the SDRAM 9 is instructed to perform a self-refresh operation, and the SDRAM 9 enters a self-refresh state and the CPU 31 becomes inaccessible.

また、前述のようにリブート信号req_rebootがHIGHとされると、信号reboot_output_nもLOWとなる(4)。すると、信号b_watch_in_nがLOWとなり(5)、監視ブロック35がリセットされ、リセットコントローラ37をリセットするための信号rst_rstctl_n(LOWアクティブ)もLOWとなる(6)。この結果、リセットコントローラ37もリセットされ、CPU31をリセットするための信号rst_cpu_n(LOWアクティブ)もLOWとなる(7)。このため、CPU31は、それまでの動作状態からリセット状態へと移行する。   Further, as described above, when the reboot signal req_reboot is HIGH, the signal reboot_output_n is also LOW (4). Then, the signal b_watch_in_n becomes LOW (5), the monitoring block 35 is reset, and the signal rst_rstctl_n (LOW active) for resetting the reset controller 37 also becomes LOW (6). As a result, the reset controller 37 is also reset, and the signal rst_cpu_n (LOW active) for resetting the CPU 31 also becomes LOW (7). For this reason, CPU31 transfers to the reset state from the operation state until then.

また、このようにリセットコントローラ37がリセットされることによって、信号reboot_output_nは初期状態であるHIGHとなり(7)、それに応じて信号b_watch_in_nも初期状態であるHIGHとなる(8)。そして、更に電源の電圧が低下して、VDCを下回ると、DC/DCコンバータ5でASIC3を駆動する+3.3Vの電圧が生成できなくなるので、信号reboot_output_n,信号b_watch_in_nと共に、信号output_rsticもLOWとなる。   Further, by resetting the reset controller 37 in this way, the signal reboot_output_n becomes HIGH in the initial state (7), and accordingly, the signal b_watch_in_n also becomes HIGH in the initial state (8). If the voltage of the power supply further decreases and falls below VDC, the DC / DC converter 5 cannot generate the voltage of + 3.3V that drives the ASIC 3, so that the signal output_static as well as the signal reboot_output_n and the signal b_watch_in_n become LOW. .

[本実施の形態の効果及びその変形例]
このように、本実施の形態では、電源の電圧が閾値VTH未満となったときに、SDRAM9がセルフリフレッシュを行い、CPU31がリセット(初期化)されて停止することができる。また、そのような処理を行う監視ブロック35,リセットコントローラ37は、SDRAM9にアクセス可能なCPU31とは独立している。このため、本実施の形態のメモリ制御装置1では、電源の電圧が閾値VTH未満に低下した場合、SDRAM9がセルフリフレッシュ状態となり、そのSDRAM9の記憶内容を正確に保持することができる。
[Effect of this embodiment and its modification]
As described above, in the present embodiment, when the voltage of the power supply becomes less than the threshold value VTH, the SDRAM 9 performs self refresh, and the CPU 31 can be reset (initialized) and stopped. The monitoring block 35 and the reset controller 37 that perform such processing are independent of the CPU 31 that can access the SDRAM 9. Therefore, in the memory control device 1 of the present embodiment, when the power supply voltage drops below the threshold value VTH, the SDRAM 9 enters the self-refresh state, and the stored contents of the SDRAM 9 can be accurately retained.

また、CPU31自身がSDRAM9に対してセルフリフレッシュ状態となるように指示したのではなく、電源電圧検出回路7が出力する検出信号sdbkupnに基づいてSDRAM9がセルフリフレッシュ状態になる。本実施の形態では、CPU31がセルフリフレッシュ中のSDRAM9にアクセスすることによる誤動作を防止するために、SDRAM9はセルフリフレッシュ動作を行い、かつ、CPU31がリセット(初期化)され停止する。   The CPU 31 itself does not instruct the SDRAM 9 to enter the self-refresh state, but the SDRAM 9 enters the self-refresh state based on the detection signal sdbkupn output from the power supply voltage detection circuit 7. In the present embodiment, the SDRAM 9 performs a self-refresh operation, and the CPU 31 is reset (initialized) and stopped in order to prevent malfunction due to the CPU 31 accessing the SDRAM 9 during self-refresh.

しかも、上記セルフリフレッシュ動作及びCPU31のリセットは、電源の電圧が閾値VTH未満となったときにLOWとなる検出信号sdbkupnが一定期間継続してLOWとなったときに実行される。このため、何らかのエラーやノイズにより検出信号sdbkupnが一時的にLOWとなった場合には、上記セルフリフレッシュ動作及びCPU31の停止がなされず、当該メモリ制御装置1による制御の安定性を確保することができる。   In addition, the self-refresh operation and the resetting of the CPU 31 are executed when the detection signal sdbkupn that becomes LOW when the voltage of the power supply becomes less than the threshold value VTH continuously becomes LOW for a certain period. For this reason, when the detection signal sdbkupn temporarily becomes LOW due to some error or noise, the self-refresh operation and the CPU 31 are not stopped, and the control stability by the memory control device 1 can be ensured. it can.

また、検出信号sdbkupnが一定期間継続してLOWとなってリブート信号req_rebootが出力されたときは、前述のセルフリフレッシュ動作やCPU31のリセットが実行されるのは勿論のこと、監視ブロック35,リセットコントローラ37もリセット(初期化)された状態で停止することになる。従って、リブート信号req_rebootが出力されて、上記セルフリフレッシュ動作及びCPU31のリセットがなされた後、当該メモリ制御装置1が再起動されるときは、監視ブロック35,リセットコントローラ37は初期化された状態から再起動される。よって、その再起動時の処理を一層円滑に実行することができる。   When the detection signal sdbkupn is continuously LOW for a certain period and the reboot signal req_reboot is output, the self-refresh operation and the reset of the CPU 31 are performed, as well as the monitoring block 35, the reset controller. 37 also stops in a reset (initialized) state. Therefore, when the memory control device 1 is restarted after the reboot signal req_reboot is output and the self-refresh operation and the CPU 31 are reset, the monitoring block 35 and the reset controller 37 are initialized. It will be restarted. Therefore, the process at the time of restart can be executed more smoothly.

なお、本発明は上記実施の形態に何等限定されるものではなく、本発明の要旨を逸脱しない範囲で種々の形態で実施することができる。例えば、上記駆動電圧生成部は、必ずしもDC/DCコンバータで構成される必要はなく、レギュレータ等を用いて構成されてもよい。また、監視ブロック35,リセットコントローラ37は一体の素子として構成されてもよい。但し、上記実施の形態のように、監視ブロック35,リセットコントローラ37を別体の素子で構成し、それらをリセットするための信号を互いに出力し合う場合、前述のように各部が初期化された状態から再起動されるようにして処理を円滑にするといった効果が一層確実に得られる。   In addition, this invention is not limited to the said embodiment at all, It can implement with a various form in the range which does not deviate from the summary of this invention. For example, the drive voltage generation unit is not necessarily configured by a DC / DC converter, and may be configured by using a regulator or the like. The monitoring block 35 and the reset controller 37 may be configured as an integrated element. However, when the monitoring block 35 and the reset controller 37 are configured as separate elements as in the above embodiment and signals for resetting them are mutually output, the respective units are initialized as described above. The effect of facilitating the processing by restarting from the state can be obtained more reliably.

1…メモリ制御装置 3…ASIC
5…DC/DCコンバータ 7…電源電圧検出回路
9…SDRAM 33…SDRAMコントローラ
35…リセット,SDBKUPN監視ブロック 37…リセットコントローラ
41…リセットIC 43…AND
31…CPU
DESCRIPTION OF SYMBOLS 1 ... Memory control device 3 ... ASIC
DESCRIPTION OF SYMBOLS 5 ... DC / DC converter 7 ... Power supply voltage detection circuit 9 ... SDRAM 33 ... SDRAM controller 35 ... Reset, SDBKUPN monitoring block 37 ... Reset controller 41 ... Reset IC 43 ... AND
31 ... CPU

Claims (4)

セルフリフレッシュ機能を有するメモリを制御するメモリ制御装置であって、
電源から一定値の駆動電圧を生成する駆動電圧生成部と、
上記駆動電圧生成部によって生成された駆動電圧によって駆動され、上記メモリにアクセス可能なCPUと、
上記駆動電圧生成部が上記電源から上記一定値の駆動電圧を生成するのに必要な値以上であって、かつ、その電源の電圧の値の誤差範囲における最低電圧未満である閾値が設定され、その設定された閾値未満の上記電源の電圧を検出したときに検出信号を出力する電源電圧検出部と、
上記電源電圧検出部が上記検出信号を出力したとき、上記メモリにセルフリフレッシュ動作を指示するリフレッシュ信号と上記CPUに停止を指示する停止信号とを出力する制御部と、
を備えたことを特徴とするメモリ制御装置。
A memory control device for controlling a memory having a self-refresh function,
A drive voltage generator for generating a constant drive voltage from the power supply;
A CPU that is driven by the drive voltage generated by the drive voltage generator and can access the memory;
A threshold that is equal to or greater than a value necessary for the drive voltage generator to generate the constant drive voltage from the power supply and less than the minimum voltage in the error range of the power supply voltage value is set. A power supply voltage detection unit that outputs a detection signal when detecting the voltage of the power supply below the set threshold;
A control unit that outputs a refresh signal that instructs the memory to perform a self-refresh operation and a stop signal that instructs the CPU to stop when the power supply voltage detection unit outputs the detection signal;
A memory control device comprising:
上記制御部は、上記電源電圧検出部が上記検出信号を一定期間出力したとき、リブート信号を出力する監視部と、
上記監視部が上記リブート信号を出力したとき、上記リフレッシュ信号及び上記停止信号を出力するリセットコントローラ部と、
を備えたことを特徴とする請求項1記載のメモリ制御装置。
The control unit is configured to output a reboot signal when the power supply voltage detection unit outputs the detection signal for a certain period;
A reset controller unit that outputs the refresh signal and the stop signal when the monitoring unit outputs the reboot signal;
The memory control device according to claim 1, further comprising:
上記リセットコントローラ部は、上記監視部が上記リブート信号を出力したとき、上記リフレッシュ信号と、上記監視部をリセットする監視部リセット信号とを出力し、
上記監視部は、上記リセットコントローラ部が上記監視部リセット信号を出力したとき、上記リセットコントローラ部をリセットするコントローラリセット信号を出力し、かつ、自身を初期化して停止し、
上記リセットコントローラ部は、上記監視部が上記コントローラリセット信号を出力したとき、上記停止信号を出力し、かつ、自身を初期化して停止することを特徴とする請求項2記載のメモリ制御装置。
The reset controller unit outputs the refresh signal and a monitoring unit reset signal for resetting the monitoring unit when the monitoring unit outputs the reboot signal,
The monitoring unit outputs a controller reset signal for resetting the reset controller unit when the reset controller unit outputs the monitoring unit reset signal, and initializes and stops itself,
3. The memory control device according to claim 2, wherein when the monitoring unit outputs the controller reset signal, the reset controller unit outputs the stop signal and initializes itself to stop.
上記駆動電圧生成部は、DC/DCコンバータで構成されていることを特徴とする請求項1〜3のいずれか1項に記載のメモリ制御装置。   4. The memory control device according to claim 1, wherein the drive voltage generation unit includes a DC / DC converter. 5.
JP2010043218A 2010-02-26 2010-02-26 Memory control device Active JP5353762B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010043218A JP5353762B2 (en) 2010-02-26 2010-02-26 Memory control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010043218A JP5353762B2 (en) 2010-02-26 2010-02-26 Memory control device

Publications (2)

Publication Number Publication Date
JP2011180770A true JP2011180770A (en) 2011-09-15
JP5353762B2 JP5353762B2 (en) 2013-11-27

Family

ID=44692218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010043218A Active JP5353762B2 (en) 2010-02-26 2010-02-26 Memory control device

Country Status (1)

Country Link
JP (1) JP5353762B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015099488A (en) * 2013-11-19 2015-05-28 フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー Computer system for ac failure detection and operation method for computer system
US9411704B2 (en) 2013-11-20 2016-08-09 Fujitsu Technology Solutions Intellectual Property Gmbh Computer systems and methods of detecting AC failure
US10025595B2 (en) 2014-03-25 2018-07-17 Fujitsu Technology Solutions lntellectual Property GmbH Computer system and operating method
CN114341811A (en) * 2019-07-15 2022-04-12 美光科技公司 Reset and replay of memory subsystem controller in memory subsystem

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018929B (en) * 2019-04-11 2020-11-10 苏州浪潮智能科技有限公司 Data backup method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0745066A (en) * 1993-07-28 1995-02-14 Sanyo Electric Co Ltd Backup device for dram
JP2004280168A (en) * 2003-03-12 2004-10-07 Fuji Xerox Co Ltd Memory backup device and its method
JP2006004108A (en) * 2004-06-16 2006-01-05 Oki Electric Ind Co Ltd Semiconductor integrated circuit and method for controlling power saving of the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0745066A (en) * 1993-07-28 1995-02-14 Sanyo Electric Co Ltd Backup device for dram
JP2004280168A (en) * 2003-03-12 2004-10-07 Fuji Xerox Co Ltd Memory backup device and its method
JP2006004108A (en) * 2004-06-16 2006-01-05 Oki Electric Ind Co Ltd Semiconductor integrated circuit and method for controlling power saving of the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015099488A (en) * 2013-11-19 2015-05-28 フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー Computer system for ac failure detection and operation method for computer system
US9411704B2 (en) 2013-11-20 2016-08-09 Fujitsu Technology Solutions Intellectual Property Gmbh Computer systems and methods of detecting AC failure
US10025595B2 (en) 2014-03-25 2018-07-17 Fujitsu Technology Solutions lntellectual Property GmbH Computer system and operating method
CN114341811A (en) * 2019-07-15 2022-04-12 美光科技公司 Reset and replay of memory subsystem controller in memory subsystem
US11714697B2 (en) 2019-07-15 2023-08-01 Micron Technology, Inc. Reset and replay of memory sub-system controller in a memory sub-system

Also Published As

Publication number Publication date
JP5353762B2 (en) 2013-11-27

Similar Documents

Publication Publication Date Title
US8415994B2 (en) Integrated circuit and standby controlling method thereof
JP4198644B2 (en) Semiconductor integrated circuit
JP5353762B2 (en) Memory control device
JP2011073176A (en) Power saving processing apparatus, image forming apparatus, and program
JP2013225297A (en) Control apparatus, control method, program and semiconductor device
US20130250633A1 (en) Power switch module, voltage generating circuit and power control method for electronic device
JP2004095149A (en) Semiconductor memory device indicating internal voltage level by using ready/busy pin
JP5691943B2 (en) Memory voltage controller
JP5852431B2 (en) Image processing apparatus, control method thereof, and program
JP2006320060A (en) Power feeder
JP6074486B2 (en) Image processing apparatus, control method thereof, and program
JP4882807B2 (en) SDRAM control circuit and information processing apparatus
US9063714B1 (en) Detecting startup fault of SDRAM voltage regulator
JP2020048265A (en) Power supply control device and electronic control apparatus
TWI720864B (en) Multi-voltage chip
JP4188722B2 (en) Semiconductor device and control method thereof
US8677164B2 (en) Microcomputer and control method thereof
JP4501868B2 (en) Memory system control method
JP5811714B2 (en) Memory control device and memory control program
JP6665653B2 (en) Power supply
US20110044117A1 (en) Semiconductor memory device
JP2005044460A (en) Memory control system and memory control circuit
JP5531522B2 (en) Image forming apparatus and data storage method
JP2005078312A (en) Power source control circuit and image forming apparatus
JP2019168759A (en) Semiconductor device, and circuit control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130501

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130514

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130712

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130812

R150 Certificate of patent or registration of utility model

Ref document number: 5353762

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150