JP2004206661A - Memory control system - Google Patents

Memory control system Download PDF

Info

Publication number
JP2004206661A
JP2004206661A JP2003070129A JP2003070129A JP2004206661A JP 2004206661 A JP2004206661 A JP 2004206661A JP 2003070129 A JP2003070129 A JP 2003070129A JP 2003070129 A JP2003070129 A JP 2003070129A JP 2004206661 A JP2004206661 A JP 2004206661A
Authority
JP
Japan
Prior art keywords
sdram
cke
self
power supply
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
JP2003070129A
Other languages
Japanese (ja)
Other versions
JP4078667B2 (en
Inventor
Yuichiro Morita
雄一朗 守田
Manabu Jo
学 城
Seiichi Saito
清一 斉藤
Yutaka Okada
豊 岡田
Yasukata Suzuki
康方 鈴木
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.)
Renesas Technology Corp
Alpine Electronics Inc
Original Assignee
Renesas Technology Corp
Alpine Electronics Inc
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 Renesas Technology Corp, Alpine Electronics Inc filed Critical Renesas Technology Corp
Priority to JP2003070129A priority Critical patent/JP4078667B2/en
Publication of JP2004206661A publication Critical patent/JP2004206661A/en
Application granted granted Critical
Publication of JP4078667B2 publication Critical patent/JP4078667B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

<P>PROBLEM TO BE SOLVED: To provide a memory control system having a means facilitating a backup process, reducing electric power consumption in a backup, and operating an SDRAM at high speed. <P>SOLUTION: This system has: a power monitoring means 4 detecting a backup state of the SDRAM 3; an SDRAM control means 10 changing over a CKE original signal by self-refresh requirement from an MPU 2 inside an SDRAM controller 1 having a function holding data on the SDRAM 3 by a backup power source in time of a failure of a main power source, issuing a self-refresh command, and starting issue of auto-refresh command by requirement from the MPU 2; a CKE setting flag 15 setting a level of a clock enable CKE signal of the SDRAM 3; and a CKE signal generation means 11 generating the CKE signal from the CKE original signal, an output BUP of the power monitoring means 4, and the CKE setting flag 15. Release of a self-refresh mode can be executed in arbitrary timing, and a rule of a time from the release of the self-refresh mode to the auto-refresh start is satisfied. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、主電源停電時においてもバックアップ電源でメモリのデータを保持するためのバックアップ制御機能を有するメモリ制御システムに係り、特に、シンクロナスDRAM(SDRAM)のセルフリフレッシュ機能を活用してメモリのバックアップを実現するためのメモリ制御システムに関する。
【0002】
【従来の技術】
主電源停電時においてもバッテリなどのバックアップ電源によってメモリ内のデータを保持するメモリバックアップは、従来から多様なシステムに適用されている。特に、バックアップ対象となるデータの量が比較的多い場合や電源投入後のシステム初期化時間を短縮したい場合には、主メモリであるシンクロナスSDRAM(SDRAM)をバックアップ対象とする場合が多い。
【0003】
SDRAMは、コンデンサ素子にデータを記憶させるため、バックアップ電源によって電力を供給するだけでなく、記憶内容をリフレッシュさせる必要がある。最近のSDRAMは、外部からのリフレッシュコマンド入力を必要としないセルフリフレッシュ機能を有している。このセルフリフレッシュ機能は、メモリアクセスをより一層高速化させるダブルデータレートSDRAM(DDR−SDRAM)などにおいても、同様にサポートされている。したがって、SDRAMのバックアップ方式としては、セルフリフレッシュ機能を活用したバックアップが広く使われている(例えば、特許文献1参照。)。
【0004】
本従来例においては、セルフリフレッシュ機能を備えたSDRAMと、メモリコントローラを内蔵した制御手段と、主電源およびバックアップ電源の監視結果に応じてSDRAMをセルフリフレッシュモードに切り替える外付け回路とを備えている。外付け回路は、セルフリフレッシュコマンドを発行するためのレジスタを内蔵している。
【0005】
主電源が停電する場合は、制御手段がこのレジスタをセットする。その後、メモリコントローラがSDRAMにリフレッシュコマンドを発行すると、外付け回路は、コマンド発行と同時に、クロックイネーブルCKE信号をLowにし、SDRAMをセルフリフレッシュモードに切り替える。その後は、バックアップ電源が、SDRAMおよび外付け回路のみに電力を供給し、制御手段への電力供給を停止する。
【0006】
主電源は、復電(return to service)した場合に、直ちに制御手段への電力供給を再開する。その結果、外付け回路は、CKE信号をHighにし、SDRAMをセルフリフレッシュモードから解除する。
【0007】
【特許文献1】
特開2001−202165号公報(明細書第2頁 図1)
【0008】
【発明が解決しようとする課題】
本従来例においては、主電源が復電した場合に、制御手段への電力供給を再開するとともに、CKE信号をHighにし、SDRAMをセルフリフレッシュモードから解除している。
【0009】
しかし、制御手段のパワーオンリセットが解除され、さらに、メモリコントローラが初期化されるまで、その後のオートリフレッシュは実行されない。
【0010】
SDRAMの規格によれば、セルフリフレッシュモードから解除されてから約7.8μ秒または約15.6μ秒以内にオートリフレッシュを開始しなければならない。上記従来例などにおいては、制御手段の初期化時間に非常に厳しい要求が課されてしまう。
【0011】
また、バックアップ電源による電力供給をSDRAMおよび外付け回路に限定して低消費電力化している。しかし、FPGAなどで実現される外付け回路の規模が大きく、より一層消費電力を削減することは困難であった。
【0012】
さらに、セルフリフレッシュコマンドを発行するための制御手段と外付け回路との協調が必要となり、外付け回路の付加によりSDRAMインタフェース信号の負荷容量が増大するので、SDRAMの高速動作が制限される。
【0013】
本発明の目的は、従来よりもバックアップ処理を容易にするとともに、バックアップ時の消費電力を削減し、SDRAMを高速動作させる手段を備えたメモリ制御システムを提供することである。
【0014】
【課題を解決するための手段】
本発明は、上記目的を達成するために、プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、SDRAMがバックアップ状態であるか否かを検知する電源監視手段を備え、メモリコントローラが、プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行しプロセッサMPUからのオートリフレッシュ開始要求により所定間隔のオートリフレッシュコマンドの発行を開始するSDRAM制御手段と、メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後プロセッサMPUによりオートリフレッシュ開始要求の前にセットされるCKEセットフラグと、CKE元信号と電源監視手段の出力とCKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段とを備え、SDRAMおよび電源監視手段のみが、主電源およびバックアップ電源から電力を供給されるメモリ制御システムを提案する。
【0015】
本発明は、また、プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、SDRAMがバックアップ状態であるか否かを検知する電源監視手段と、電源電圧の立上がりや立下り時にはLowレベルであり電源安定時にはHighレベルとなるリセット信号を出力するリセット手段と、メモリコントローラからのクロックイネーブルCKE信号とリセット手段からのリセット信号との論理積を演算しSDRAMのCKE端子に出力するANDゲートとを備え、メモリコントローラが、プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行しプロセッサMPUからのオートリフレッシュ開始要求により所定間隔のオートリフレッシュコマンドの発行を開始するSDRAM制御手段と、メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後プロセッサMPUによりオートリフレッシュ開始要求の前にセットされるCKEセットフラグと、CKE元信号と電源監視手段の出力とCKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段とを備え、SDRAMおよび電源監視手段およびANDゲートのみが、主電源およびバックアップ電源から電力を供給されるメモリ制御システムを提案する。
【0016】
前記CKE信号生成手段は、CKE元信号がLowの場合にはCKE信号をLowとし、CKE元信号がHighでかつ電源監視手段が非バックアップを示している場合にはCKE信号をHighとし、CKE元信号がHighでかつ電源監視手段がバックアップを示している場合には、CKEセットフラグがクリアされているとCKE信号をLowとし、CKEセットフラグがセットされているとCKE信号をHighとする。
【0017】
SDRAMの各種コマンドインターバルやアドレスビット幅を設定するINITSETレジスタと、SDRAMのオートリフレッシュ間隔を設定するREFレジスタとを備え、電源が復電した時にMPUが、CKEセットフラグ,INITSETレジスタ,REFレジスタの順に設定することができる。
【0018】
前記メモリコントローラは、セルフリフレッシュコマンドを発行するSELFレジスタを備え、MPUからの書込みによりSELFレジスタが切り替わると、SDRAM制御手段は、現在実行中のコマンドを完了した後に、全バンクプリチャージコマンドを発行し、SDRAMに関して規定された間隔をおいてSELFコマンドを発行するとともに、SELFコマンド発行の1クロックサイクル前にCKE元信号を切り替え、1クロックサイクル後にCKE信号を切り替え、SDRAM3をセルフリフレッシュ状態にすることも可能である。
【0019】
前記電源監視手段は、プロセッサMPUによる書込み,メモリコントローラからのSDRAM初期化完了通知,セルフリフレッシュ遷移通知のいずれかによりセットされ、主電源停電時におけるバックアップ電源の電圧低下,プロセッサMPUからの書込みによりクリアされる。
【0020】
本発明は、さらに、プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、SDRAMがバックアップ状態であるか否かを検知する電源監視手段を備え、メモリコントローラが、プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行しプロセッサMPUからのオートリフレッシュ開始要求により所定間隔のオートリフレッシュコマンドの発行を開始するSDRAM制御手段と、SDRAMの初期化完了後に初期化完了信号INITがHighになると出力信号をアクティブHighにするバックアップ状態SBPフラグと、メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後プロセッサMPUによりオートリフレッシュ開始要求の前にセットされるCKEセットフラグと、CKE元信号とSBPフラグとCKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段とを備え、SDRAMおよび電源監視手段およびSBPフラグのみが、主電源およびバックアップ電源から電力を供給されるメモリ制御システムを提案する。
【0021】
このメモリ制御システムにおいては、前記バックアップ状態SBPフラグが、プロセッサMPUによる書込み,SDRAM制御手段からのSDRAM初期化完了通知,セルフリフレッシュ遷移通知のいずれかによりセットされ、主電源停電時におけるバックアップ電源の電圧低下,プロセッサMPUからの書込みによりクリアされる。
【0022】
本発明は、さらに、プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、SDRAMがバックアップ状態であるか否かを検知する電源監視手段を備え、メモリコントローラが、プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行しプロセッサMPUからのSDRAMの初期化要求によりSDRAMの初期化を開始するSDRAM制御手段と、メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後プロセッサMPUによりSDRAM初期化開始の前にセットされるCKEセットフラグと、CKE元信号と電源監視手段の出力とCKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段と、SDRAM制御手段によるSDRAM初期化の完了を前記電源監視手段に通知するためのSDRAM初期化完了信号と、SDRAM制御手段によるSDRAMセルフリフレッシュ遷移の完了を前記電源監視手段に通知するためのSDRAMセルフリフレッシュ遷移完了信号とを備え、SDRAMおよび電源監視手段のみが、主電源およびバックアップ電源から電力を供給されるメモリ制御システムを提案する。
【0023】
前記電源監視手段は、前記SDRAM初期化完了信号によってSDRAM初期化完了を検知しかつ前記SDRAMセルフリフレッシュ遷移完了信号によってSDRAMセルフリフレッシュ遷移完了を検知した時にSDRAMがバックアップ状態であると判断する。
【0024】
本発明は、さらに、プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、SDRAMがバックアップ状態であるか否かを検知する電源監視手段を備え、メモリコントローラが、プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行しプロセッサMPUからのSDRAMの初期化要求によりSDRAMの初期化を開始するSDRAM制御手段と、メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後プロセッサMPUによりSDRAM初期化開始の前にセットされるCKEセットフラグと、CKE元信号と電源監視手段の出力とCKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段と、SDRAMの初期化が完了したことを示すSDRAM初期化完了フラグと、SDRAMのセルフリフレッシュ遷移が完了したことを示すSDRAMセルフリフレッシュ遷移完了フラグとを備え、前記プロセッサMPUが、少なくとも2つのデジタル出力ポートA,Bを備え、SDRAMおよび電源監視手段のみが、主電源およびバックアップ電源から電力を供給されるメモリ制御システムを提案する。
【0025】
前記プロセッサMPUは、前記メモリコントローラにSDRAMの初期化を要求した後に前記SDRAM初期化完了フラグによてSDRAMの初期化完了を検知して前記1つのデジタル出力ポートAを介して前記電源監視手段にSDRAMの初期化完了を通知し、さらに、前記プロセッサMPUは、前記メモリコントローラにSDRAMのセルフリフレッシュ遷移を要求した後に前記SDRAMセルフリフレッシュ遷移完了フラグによてSDRAMのセルフリフレッシュ遷移完了を検知して前記1つのデジタル出力ポートBを介して前記電源監視手段にSDRAMのセルフリフレッシュ遷移完了を通知する。
【0026】
前記電源監視手段は、前記デジタル出力ポートAによってSDRAM初期化完了を検知しかつ前記デジタル出力ポートBによってSDRAMセルフリフレッシュ遷移完了を検知した時にSDRAMがバックアップ状態であると判断する。
【0027】
【発明の実施の形態】
次に、図1ないし図12を参照して、本発明によるメモリ制御システムの実施形態を説明する。
【0028】
【実施形態1】
図1は、本発明によるメモリ制御システムの実施形態1の系統構成を示すブロック図である。本メモリ制御システムは、SDRAMコントローラ1と、マイクロプロセッサMPU2と、シンクロナスDRAM(SDRAM)3と、電源監視手段4と、リードオンリメモリROM5とを有している。
【0029】
ROM5は、電源復電時のシステム初期化プログラム,電源停電時のシステム終了プログラムなどを格納している。
【0030】
電源監視手段4は、ここでは図示していない主電源およびバックアップ電源の状態を監視する。電源監視手段4は、主電源の電圧が所定値よりも低下した場合には、電源停電と判断し、ノンマスカラブルインタラプトNMI_信号40をアクティブLowにし、MPU2に通知する。また、電源監視手段4は、電源復電時に、SDRAMコントローラ1が初期化完了信号INIT101をアクテイブHighにしたことを検知し、DRAMバックアップBUP信号41をアクティブHighにする。
さらに、電源監視手段4は、主電源が遮断状態でかつSDRAM3がバックアップ電源によるバックアップ状態にある時に、バックアップ電源の電圧が所定値よりも低下した場合には、バックアップ喪失と判断し、BUP信号41を非アクティブLowにする。
【0031】
SDRAMコントローラ1は、MPU2からSDRAM3へのアクセスとSDRAM3の初期化とSDRAM3のリフレッシュとを制御する。SDRAMコントローラ1は、SDRAM3を制御するSDRAM制御手段10と、SDRAM3のクロックイネーブルCKE信号110を生成するCKE信号生成手段11と、内部レジスタであるSDRAM設定レジスタINITSET12,リフレッシュ間隔設定レジスタREF13,セルフリフレッシュ制御レジスタSELF14,クロックイネーブルセットレジスタCKESET15とを有する。内部レジスタ12〜15は、それぞれバス20を介して、MPU2から書込み/読出しが可能である。
【0032】
SDRAM制御手段10は、バス20経由で送られるMPU2のメモリアクセス要求や内部レジスタ12〜15の設定に応じて、SDRAM3のアドレス,コマンド信号102,クロックイネーブル元CKE_S信号100を出力し、データ103を送受信する。
【0033】
INITSET12は、SDRAM3の各種コマンドインターバルやアドレスビット幅を設定するレジスタである。MPU2がINITSET12を設定すると、SDRAM制御手段10は、INITSET12の設定値を参照し、SDRAM3の初期化を実行する。SDRAM制御手段10は、SDRAM3の初期化を完了すると、INIT信号101をLowからHighに切り替える。
【0034】
REF13は、SDRAM3のオートリフレッシュ間隔を設定するレジスタである。MPU2がREF13を設定すると、SDRAM制御手段10は、設定された間隔で定期的にオートリフレッシュコマンドを発行する。
【0035】
SELF14は、セルフリフレッシュコマンドを発行するレジスタである。MPU2がSELF14をセットすると、SDRAM制御手段10は、CKE_S信号100を非アクティブLowにするとともに、セルフリフレッシュコマンドを発行する。
【0036】
CKESET15は、SDRAM3のCKE信号110のアクティブ/非アクティブを選択するレジスタである。CKE信号生成手段11は、CKESET15とBUP信号41とCKE_S信号100との状態に基づき、CKE信号110のHigh/Lowを決定する。
【0037】
本メモリ制御システムにおいて、主電源停電時にバックアップ電源から電力を供給する部分は、点線6で囲まれたSDRAM3と電源監視手段4に限定される。バックアップ制御機能を有しているSDRAMコントローラ1には、バックアップ電源から電力を供給する必要はない。
【0038】
本メモリ制御システムは、MPU2とSDRAMコントローラ1に加えて、ROM5やその他の図示していないモジュールを1つのチップに内蔵したシステムLSIの形で実現してもよい。または、MPU2とSDRAMコントローラ1に加えて、ROM5やその他の図示していないモジュールとさらにSDRAM3を1つのパッケージに内蔵したマルチチップモジュールの形で実現してもよい。
【0039】
図2は、CKE信号生成手段11が出力するCKEのレベルを示す図表である。すなわち、CKE信号生成手段11が出力するCKE信号110のHigh/Lowレベルを示す図表である。
【0040】
CKE信号110のレベルは、上記の通り、CKE_S信号100とBUP信号41とCKESET15との3つによって決まる。
【0041】
CKE_S信号100がLowの場合、BUP信号41とCKESET15の状態に関係無く、CKE信号110は、Lowになる。この場合は、セルフリフレッシュコマンド発行およびその後のセルフリフレッシュ状態に該当する。
【0042】
CKE_S信号100がHighで、BUP信号41がLowの場合、CKESET15の状態に関係無く、CKE信号110は、Highになる。この場合は、SDRAM3がバックアップ状態でなく、すなわち、BUP信号41がLowのままで、電源復電時の状態に該当する。
【0043】
CKE_S信号100がHighで、BUP信号41がHighの場合、CKESET15が0の初期状態であれば、CKE信号110は、Lowになる。この場合は、SDRAM3がバックアップ状態であり、すなわち、BUP信号41がHighであり、電源復電時の状態に該当する。
【0044】
一方、CKESET15が1であり、すなわち、MPU2がセットであれば、CKE信号110は、Highになる。この場合は、SDRAM3がバックアップ状態であり、すなわち、BUP信号41がHighであり、電源復電時のセルフリフレッシュ解除に該当する。
【0045】
図3は、電源復電時にMPU2が実行するSDRAM初期化プログラムの基本的処理手順を示すフローチャートである。
【0046】
SDRAM3がバックアップ状態であるかないか、すなわち、BUP信号41がHighかLowかに関わらず、SDRAM初期化プログラムの基本処理手順は同じである。
【0047】
まず、CKESET15をセットする(3010)。SDRAM3がバックアップ状態であり、BUP信号41がHighであれば、この時にCKE信号110がLowからHighになり、セルフリフレッシュが解除される。
【0048】
次に、INITSET12を設定し(3020)、SDRAM3の初期化を開始する。
【0049】
REF13を設定し(3030)、SDRAM3の初期化が完了した直後からオートリフレッシュが所定間隔で実行されるようにする。
【0050】
図4は、4バーストライト実行中にセルフリフレッシュ制御レジスタSELF14のセットによって実行されるSELFコマンドの発行処理手順を示すタイムチャートである。
【0051】
MPU2からの書込みによってSELF14がT6で1に切り替わると、SDRAM制御手段10は、この例では4バーストライトを通常通り実行し、その後全バンクプリチャージコマンドを発行し(T9)、SDRAM3で規定された間隔をおいてSELFコマンドを発行する(T11)。
【0052】
SDRAM制御手段10は、SELFコマンドの1クロックサイクル前にCKE_S信号100をHighからLowに切り替える。CKE生成手段10は、T10でCKE_S信号100がLowになったことを検知し、1クロックサイクル後のT11で、CKE信号110をHighからLowに切り替える。その結果、SDRAM3は、セルフリフレッシュ状態になる。
【0053】
図5は、SDRAM3が非バックアップ状態である時に電源が復電しリセットが解除された後のSDRAM初期化処理手順を示すタイムチャートである。
【0054】
SDRAM3が非バックアップ状態である場合は、電源投入前からBUP信号41がLowであり、かつ、電源投入とともにCKE_S信号100がHighになるため、CKE信号110は、電源投入直後からHighになる。したがって、SDRAM3が必要とする初期化前のアイドル期間(数百μ秒)よりも電源投入後のシステムリセット期間を長くすれば、SDRAM3の初期化が可能になる。
【0055】
システムリセット解除後、MPU2は、任意のタイミングで図3に示したSDRAM初期化プログラムを実行する。まず、CKESET15がセットされる(T5)。次にINITSET12が設定される(T8)。SDRAM制御手段10がSDRAM初期化を開始する。SDRAM3の初期化は、最初にPALLコマンド発行(T9)、SDRAM3に応じて規定されているREFコマンド発行(T11とT17)と続き、最後にモードレジスタセット(MRS)コマンド(T23)の発行で終了する。SDRAM制御手段10は、SDRAM3の初期化が完了すると、INIT信号101をLowからHighに切り替える(T25)。
【0056】
また、SDRAM制御手段10は、REF13の設定(T11)によって、初期化完了直後からREFコマンドを所定間隔で発行する(T26)。
【0057】
以上の処理手順で、SDRAM3の初期化とオートリフレッシュとが実現し、バックアップが可能な状態になる。
【0058】
電源監視手段4は、INIT信号101がHighになったことを検知すると、任意のタイミングでBUP信号41をLowからHighに切り替える。
【0059】
図6は、SDRAM3がバックアップ状態である時に電源が復電しリセットが解除された後のSDRAM初期化処理手順を示すタイムチャートである。
【0060】
SDRAM3がバックアップ状態である場合は、電源投入前からBUP信号41がHighであり、かつ、CKESET15が0にクリアされているので、電源投入とともにCKE_S信号100がHighになっても、CKE信号110は、電源投入直後からLow状態を維持する。したがって、バックアップされたSDRAM3のセルフリフレッシュを任意のタイミングまで維持できる。
【0061】
システムリセット解除後、MPU2は、任意のタイミングで図3に示したSDRAM初期化プログラムを実行する。まず、CKESET15がセットされて(T5)バックアップされたSDRAM3のセルフリフレッシュが解除される。次に、INITSET12が設定されて(T8)SDRAM制御手段10がSDRAM初期化を実行し、さらにREF13の設定(T11)により、初期化完了直後からREFコマンドを所定間隔で発行する(T26)。
【0062】
したがって、SDRAM3のセルフリフレッシュが解除されてからオートリフレッシュを実行されるまでの期間は、SDRAM3の規定を十分満たす範囲に収まる。
【0063】
【実施形態2】
図7は、本発明によるメモリ制御システムの実施形態2の系統構成を示すブロック図である。本実施形態2は、実施形態1にリセット手段7とANDゲート111とを追加した系統構成である。本メモリ制御システムは、SDRAMコントローラ1と、マイクロプロセッサMPU2と、シンクロナスDRAM(SDRAM)3と、電源監視手段4と、リードオンリメモリROM5と、リセット手段7と、ANDゲート111とを有している。
【0064】
リセット手段7は、電源電圧の立上がりや立下り時にはLowレベルであり、電源安定時にはHighレベルとなるリセット信号71を出力する。
【0065】
ANDゲート111は、CKE信号生成手段11が出力するCKE信号110とリセット手段7が出力するリセット信号71との論理積を演算し、SDRAM3のCKE端子に出力する。ANDゲート111には、主電源とバックアップ電源の両方から電力を供給する。
【0066】
ROM5は、電源復電時のシステム初期化プログラム,電源停電時のシステム終了プログラムなどを格納している。
【0067】
電源監視手段4は、ここでは図示していない主電源およびバックアップ電源の状態を監視する。電源監視手段4は、主電源の電圧が所定値よりも低下した場合には、電源停電と判断し、ノンマスカラブルインタラプトNMI_信号40をアクティブLowにし、MPU2に通知する。また、電源監視手段4は、電源復電時に、SDRAMコントローラ1が初期化完了信号INIT101をアクテイブHighにしたことを検知し、DRAMバックアップ(BUP)信号41をアクティブHighにする。
さらに、電源監視手段4は、主電源が遮断状態でかつSDRAM3がバックアップ電源によるバックアップ状態にある時に、バックアップ電源の電圧が所定値よりも低下した場合には、バックアップ喪失と判断し、BUP信号41を非アクティブLowにする。
【0068】
SDRAMコントローラ1は、MPU2からSDRAM3へのアクセスとSDRAM3の初期化とSDRAM3のリフレッシュとを制御する。SDRAMコントローラ1は、SDRAM3を制御するSDRAM制御手段10と、SDRAM3のクロックイネーブルCKE信号110を生成するCKE信号生成手段11と、内部レジスタであるSDRAM設定レジスタINITSET12,リフレッシュ間隔設定レジスタREF13,セルフリフレッシュ制御レジスタSELF14,クロックイネーブルセットレジスタCKESET15とを有する。内部レジスタ12〜15は、それぞれバス20を介して、MPU2から書込み/読出しが可能である。
【0069】
SDRAM制御手段10は、バス20経由で送られるMPU2のメモリアクセス要求や内部レジスタ12〜15の設定に応じて、SDRAM3のアドレス,コマンド信号102,クロックイネーブル元CKE_S信号100を出力し、データ103を送受信する。
【0070】
INITSET12は、SDRAM3の各種コマンドインターバルやアドレスビット幅を設定するレジスタである。MPU2がINITSET12を設定すると、SDRAM制御手段10は、INITSET12の設定値を参照し、SDRAM3の初期化を実行する。SDRAM制御手段10は、SDRAM3の初期化を完了すると、INIT信号101をLowからHighに切り替える。
【0071】
REF13は、SDRAM3のオートリフレッシュ間隔を設定するレジスタである。MPU2がREF13を設定すると、SDRAM制御手段10は、設定された間隔で定期的にオートリフレッシュコマンドを発行する。
【0072】
SELF14は、セルフリフレッシュコマンドを発行するレジスタである。MPU2がSELF14をセットすると、SDRAM制御手段10は、CKE_S信号100を非アクティブLowにするとともに、セルフリフレッシュコマンドを発行する。
【0073】
CKESET15は、SDRAM3のCKE信号110のアクティブ/非アクティブを選択するレジスタである。CKE信号生成手段11は、CKESET15とBUP信号41とCKE_S信号100との状態に基づき、CKE信号110のHigh/Lowを決定する。
【0074】
本メモリ制御システムにおいて、主電源停電時にバックアップ電源から電力を供給する部分は、点線6で囲まれたSDRAM3と電源監視手段4とANDゲート111とに限定される。バックアップ制御機能を有しているSDRAMコントローラ1には、バックアップ電源から電力を供給する必要はない。
【0075】
本メモリ制御システムは、MPU2とSDRAMコントローラ1に加えて、ROM5やリセット手段7やその他の図示していないモジュールを1つのチップに内蔵したシステムLSIの形で実現してもよい。または、MPU2とSDRAMコントローラ1に加えて、ROM5やリセット手段7やその他の図示していないモジュールとさらにSDRAM3を1つのパッケージに内蔵したマルチチップモジュールの形で実現してもよい。
【0076】
CKE信号生成手段11を含むSDRAMコントローラ1をC−MOSのLSIで実現した場合、電源電圧の立上りや立下り時にCKE信号110を安定させるための専用手段を省略したい場合がある。
【0077】
そこで、本実施形態2においては、電源電圧の立上がりや立下り時にはLowレベルであり、電源安定時にはHighレベルとなるリセット手段7からのリセット信号71を使って、CKE信号110が不安定な期間は、SDRAM3のCKEをLowに固定する。
【0078】
ANDゲート111は、CKE信号生成手段11が出力するCKE信号110とリセット手段7が出力するリセット信号71との論理積を演算し、信号112をSDRAM3のCKE端子に出力する。
【0079】
その結果、電源電圧の立上りや立下り時にCKE信号110を安定させるための専用手段を設けなくても、安定したバックアップ機能を実現できる。
【0080】
実施形態2の基本的な処理手順は、実施形態1と同様なので、説明を省略する。
【0081】
【実施形態3】
図8は、本発明によるメモリ制御システムの実施形態3の系統構成を示すブロック図である。本実施形態3は、実施形態1の電源監視手段4のDRAMバックアップ(BUP)信号41を出力する機能をSDRAMコントローラ1に内蔵したバックアップ状態フラグSBP16に持たせた系統構成である。
【0082】
本メモリ制御システムは、SDRAMコントローラ1と、マイクロプロセッサMPU2と、シンクロナスDRAM(SDRAM)3と、電源監視手段4と、リードオンリメモリROM5とを有している。
【0083】
本実施形態3のバックアップ状態フラグSBP16は、MPU2からバス20を介して読み書き可能なフラグである。SBP16は、SDRAMコントローラ1に内蔵されているが、電気的にはSDRAMコントローラ1の他の部分から分離されており、主電源およびバックアップ電源の両方から電力を供給される。
【0084】
ROM5は、電源復電時のシステム初期化プログラム,電源停電時のシステム終了プログラムなどを格納している。
【0085】
電源監視手段4は、ここでは図示していない主電源およびバックアップ電源の状態を監視する。電源監視手段4は、主電源の電圧が所定値よりも低下した場合には、電源停電と判断し、ノンマスカラブルインタラプトNMI_信号40をアクティブLowにし、MPU2に通知する。また、電源復電時に、SDRAMコントローラ1内のSDRAM制御手段10が、SDRAM3の初期化完了後に初期化完了信号INIT101をアクテイブHighにすると、バックアップ状態フラグ(SBP)16がセットされ、出力信号160をアクティブHighにする。
【0086】
SDRAMコントローラ1は、MPU2からSDRAM3へのアクセスとSDRAM3の初期化とSDRAM3のリフレッシュとを制御する。SDRAMコントローラ1は、SDRAM3を制御するSDRAM制御手段10と、SDRAM3のクロックイネーブルCKE信号110を生成するCKE信号生成手段11と、内部レジスタであるSDRAM設定レジスタINITSET12,リフレッシュ間隔設定レジスタREF13,セルフリフレッシュ制御レジスタSELF14,クロックイネーブルセットレジスタCKESET15とを有する。内部レジスタ12〜15は、それぞれバス20を介して、MPU2から書込み/読出しが可能である。
【0087】
SBP16は、初期化完了信号INIT101に応じて、実施形態1のDRAMバックアップ(BUP)信号41と同様に、SDRAM3バックアップ状態であることを示すバックアップ信号160を出力する。SBP16には、主電源およびバックアップ電源の両方から電力を供給されるので、主電源停電時でも状態を保持できる。また、SDRAMコントローラ1がリセットされてもSBP16は、クリアされず状態を保持できる。
【0088】
SDRAM制御手段10が、SDRAM3の初期化完了後にINIT信号101がLowからHighに遷移した時にSBP16がセットされる。
【0089】
SDRAM制御手段10は、バス20経由で送られるMPU2のメモリアクセス要求や内部レジスタ12〜15の設定に応じて、SDRAM3のアドレス,コマンド信号102,クロックイネーブル元CKE_S信号100を出力し、データ103を送受信する。
【0090】
INITSET12は、SDRAM3の各種コマンドインターバルやアドレスビット幅を設定するレジスタである。MPU2がINITSET12を設定すると、SDRAM制御手段10は、INITSET12の設定値を参照し、SDRAM3の初期化を実行する。SDRAM制御手段10は、SDRAM3の初期化を完了すると、INIT信号101をLowからHighに切り替える。
【0091】
REF13は、SDRAM3のオートリフレッシュ間隔を設定するレジスタである。MPU2がREF13を設定すると、SDRAM制御手段10は、設定された間隔で定期的にオートリフレッシュコマンドを発行する。
【0092】
SELF14は、セルフリフレッシュコマンドを発行するレジスタである。MPU2がSELF14をセットすると、SDRAM制御手段10は、CKE_S信号100を非アクティブLowにするとともに、セルフリフレッシュコマンドを発行する。
【0093】
CKESET15は、SDRAM3のCKE信号110のアクティブ/非アクティブを選択するレジスタである。CKE信号生成手段11は、CKESET15とSBP16の出力信号160とCKE_S信号100との状態に基づき、CKE信号110のHigh/Lowを決定する。
【0094】
本メモリ制御システムにおいて、主電源停電時にバックアップ電源から電力を供給する部分は、点線6で囲まれたSDRAM3と電源監視手段4に限定される。バックアップ制御機能を有しているSDRAMコントローラ1には、バックアップ電源から電力を供給する必要はない。
【0095】
本メモリ制御システムは、MPU2とSDRAMコントローラ1に加えて、ROM5やその他の図示していないモジュールを1つのチップに内蔵したシステムLSIの形で実現してもよい。または、MPU2とSDRAMコントローラ1に加えて、ROM5やその他の図示していないモジュールとさらにSDRAM3を1つのパッケージに内蔵したマルチチップモジュールの形で実現してもよい。
【0096】
実施形態3の基本的な処理手順は、実施形態1および実施形態2と同様なので、説明を省略する。
【0097】
【実施形態4】
図9は、本発明によるメモリ制御システムの実施形態4の系統構成を示すブロック図である。本実施形態4は、実施形態1にSELFR信号104を追加した系統構成である。本メモリ制御システムは、SDRAMコントローラ1と、マイクロプロセッサMPU2と、シンクロナスDRAM(SDRAM)3と、電源監視手段4と、リードオンリメモリROM5とを有している。
【0098】
SELFR信号104は、SDRAM制御手段10から電源監視手段4にSDRAMのセルフリフレッシュ遷移を通知するための信号である。
【0099】
SDRAM制御手段10は、セルフリフレッシュコマンド発行と同時またはそれ以降に、SELFR信号104を非アクティブLowからアクティブHighに切り替える。
【0100】
ROM5は、電源復電時のシステム初期化プログラム,電源停電時のシステム終了プログラムなどを格納している。
【0101】
電源監視手段4は、ここでは図示していない主電源およびバックアップ電源の状態を監視する。電源監視手段4は、主電源の電圧が所定値よりも低下した場合には、電源停電と判断し、ノンマスカラブルインタラプトNMI_信号40をアクティブLowにし、MPU2に通知する。MPU2はNMI_信号40がアクティブLowに切り替わったことを検知すると、電源停電前に必要な処理を実行し、最後にSELF14をセットし、SDRAM3をセルフリフレッシュ状態にする。
【0102】
また、電源監視手段4は、初期化完了信号INIT信号101がアクティブHighでかつSELFR信号104がアクティブHighに切り替わったことを検知し、DRAMバックアップ(BUP)信号41をアクティブHighにする。
【0103】
さらに、電源監視手段4は、主電源が遮断状態でかつSDRAM3がバックアップ電源によるバックアップ状態にある時に、バックアップ電源の電圧が所定値よりも低下した場合には、バックアップ喪失と判断し、BUP信号41を非アクティブLowにする。
【0104】
SDRAMコントローラ1は、MPU2からSDRAM3へのアクセスとSDRAM3の初期化とSDRAM3のリフレッシュとを制御する。SDRAMコントローラ1は、SDRAM3を制御するSDRAM制御手段10と、SDRAM3のクロックイネーブルCKE信号110を生成するCKE信号生成手段11と、内部レジスタであるSDRAM設定レジスタINITSET12,リフレッシュ間隔設定レジスタREF13,セルフリフレッシュ制御レジスタSELF14,クロックイネーブルセットレジスタCKESET15とを有する。内部レジスタ12〜15は、それぞれバス20を介して、MPU2から書込み/読出しが可能である。
【0105】
SDRAM制御手段10は、バス20経由で送られるMPU2のメモリアクセス要求や内部レジスタ12〜15の設定に応じて、SDRAM3のアドレス,コマンド信号102,クロックイネーブル元CKE_S信号100を出力し、データ103を送受信する。
【0106】
INITSET12は、SDRAM3の各種コマンドインターバルやアドレスビット幅を設定するレジスタである。MPU2がINITSET12を設定すると、SDRAM制御手段10は、INITSET12の設定値を参照し、SDRAM3の初期化を実行する。
【0107】
SDRAM制御手段10は、SDRAM3の初期化を完了すると、INIT信号101を非アクティブLowからアクティブHighに切り替える。
【0108】
REF13は、SDRAM3のオートリフレッシュ間隔を設定するレジスタである。MPU2がREF13を設定すると、SDRAM制御手段10は、設定された間隔で定期的にオートリフレッシュコマンドを発行する。
【0109】
SELF14は、セルフリフレッシュコマンドを発行するレジスタである。MPU2がSELF14をセットすると、SDRAM制御手段10は、CKE_S信号100を非アクティブLowにするとともに、セルフリフレッシュコマンドを発行し、SELFR信号104を非アクティブLowからアクティブHighに切り替える。
【0110】
CKESET15は、SDRAM3のCKE信号110のアクティブ/非アクティブを選択するレジスタである。CKE信号生成手段11は、CKESET15とBUP信号41とCKE_S信号100との状態に基づき、CKE信号110のHigh/Lowを決定する。
【0111】
本メモリ制御システムにおいて、主電源停電時にバックアップ電源から電力を供給する部分は、点線6で囲まれたSDRAM3と電源監視手段4とに限定される。バックアップ制御機能を有しているSDRAMコントローラ1には、バックアップ電源から電力を供給する必要はない。
【0112】
本メモリ制御システムは、MPU2とSDRAMコントローラ1に加えて、ROM5とSDRAM3とその他の図示していないモジュールを1つのチップに内蔵したシステムLSIの形で実現してもよい。または、MPU2とSDRAMコントローラ1に加えて、ROM5やその他の図示していないモジュールとさらにSDRAM3を1つのパッケージに内蔵したマルチチップモジュールの形で実現してもよい。
【0113】
電源監視手段4において、SDRAM3がバックアップ可能な状態かどうかを判定する条件として、SDRAM3の初期化が完了しているということの他に、SDRAM3のセルフリフレッシュ遷移が完了しているということも条件に加えたい場合がある。
【0114】
そこで、本実施形態4においては、SDRAM制御手段10が電源監視手段4に、INIT信号101によってSDRAM3の初期化完了を通知し、さらに、SELFR信号104によってSDRAM3のセルフリフレッシュ遷移完了を通知する。
【0115】
さらに、電源監視手段4は、INIT信号101がアクティブHighでかつSELFR信号104がアクティブHighに切り替わったことを検知し、BUP信号41をアクティブHighにする。
【0116】
その結果、SDRAM3がセルフリフレッシュ状態である場合だけ、BUP信号41はアクティブHighになり、安定したバックアップ機能を実現できる。
【0117】
なお、実施形態4における電源監視手段4は、INIT信号101の状態に関わらず、SELFR信号104がアクティブHighに切り替わったことを検知してBUP信号41をアクティブHighにしてもよい。この場合、SDRAM3はセルフリフレッシュ状態になる前に初期化されているものとみなす。この機能により、INIT信号101が不要になる。
【0118】
実施形態4の基本的な処理手順は、実施形態1と同様なので、説明を省略する。
【0119】
【実施形態5】
図10は、本発明によるメモリ制御システムの実施形態5の系統構成を示すブロック図である。本実施形態5は、実施形態1に初期化完了フラグレジスタINITS16と、セルフリフレッシュ遷移完了フラグレジスタSELFS17と、デジタル出力ポートDOA201およびDOB202とを追加した系統構成である。本メモリ制御システムは、SDRAMコントローラ1と、マイクロプロセッサMPU2と、シンクロナスDRAM(SDRAM)3と、電源監視手段4と、リードオンリメモリROM5とを有している。
【0120】
デジタル出力ポートDOA201およびDOB202は、ここでは図示していないMPU2のレジスタへの書込みによってHighまたはLowに切り替えできる信号である。本実施形態5では、DOA201を介してMPU2から電源監視手段4にSDRAM3の初期化完了を通知し、DOB202を介してMPU2から電源監視手段4にSDRAM3のセルフリフレッシュ遷移完了を通知する。
【0121】
ROM5は、電源復電時のシステム初期化プログラム,電源停電時のシステム終了プログラムなどを格納している。
【0122】
電源監視手段4は、ここでは図示していない主電源およびバックアップ電源の状態を監視する。電源監視手段4は、主電源の電圧が所定値よりも低下した場合にには、電源停電と判断し、ノンマスカラブルインタラプトNMI_信号40をアクティブLowにし、MPU2に通知する。MPU2はNMI_信号40がアクティブLowに切り替わったことを検知すると、電源停電前に必要な処理を実行し、最後にSELF14をセットし、SDRAM3をセルフリフレッシュ状態にする。
【0123】
また、電源監視手段4は、デジタル出力ポートDOA201がアクティブHighでかつデジタル出力ポートDOB202がアクティブHighに切り替わったことを検知し、DRAMバックアップ(BUP)信号41をアクティブHighにする。
【0124】
さらに、電源監視手段4は、主電源が遮断状態でかつSDRAM3がバックアップ電源によるバックアップ状態にある時に、バックアップ電源の電圧が所定値よりも低下した場合には、バックアップ喪失と判断し、BUP信号41を非アクティブLowにする。
【0125】
SDRAMコントローラ1は、MPU2からSDRAM3へのアクセスとSDRAM3の初期化とSDRAM3のリフレッシュとを制御する。SDRAMコントローラ1は、SDRAM3を制御するSDRAM制御手段10と、SDRAM3のクロックイネーブルCKE信号110を生成するCKE信号生成手段11と、内部レジスタであるSDRAM設定レジスタINITSET12,リフレッシュ間隔設定レジスタREF13,セルフリフレッシュ制御レジスタSELF14,クロックイネーブルセットレジスタCKESET15,初期化完了フラグINITS16,セルフリフレッシュ遷移完了フラグSELFS17とを有する。内部レジスタ12〜17は、それぞれバス20を介して、MPU2から書込み/読出しが可能である。
【0126】
SDRAM制御手段10は、バス20経由で送られるMPU2のメモリアクセス要求や内部レジスタ12〜15の設定に応じて、SDRAM3のアドレス,コマンド信号102,クロックイネーブル元CKE_S信号100を出力し、データ103を送受信する。
【0127】
INITSET12は、SDRAM3の各種コマンドインターバルやアドレスビット幅を設定するレジスタである。MPU2がINITSET12を設定すると、SDRAM制御手段10は、INITSET12の設定値を参照し、SDRAM3の初期化を実行する。
【0128】
SDRAM制御手段10は、SDRAM3の初期化を完了すると、INIT信号101を非アクティブLowからアクティブHighに切り替える。
【0129】
REF13は、SDRAM3のオートリフレッシュ間隔を設定するレジスタである。MPU2がREF13を設定すると、SDRAM制御手段10は、設定された間隔で定期的にオートリフレッシュコマンドを発行する。
【0130】
SELF14は、セルフリフレッシュコマンドを発行するレジスタである。MPU2がSELF14をセットすると、SDRAM制御手段10は、CKE_S信号100を非アクティブLowにするとともに、セルフリフレッシュコマンドを発行し、SELFR信号104を非アクティブLowからアクティブHighに切り替える。
【0131】
CKESET15は、SDRAM3のCKE信号110のアクティブ/非アクティブを選択するレジスタである。CKE信号生成手段11は、CKESET15とBUP信号41とCKE_S信号100との状態に基づき、CKE信号110のHigh/Lowを決定する。
【0132】
INITS16は、INITSET12の設定によって実行されるSDRAM3の初期化が完了したことを示すフラグレジスタである。INITS16の初期状態は0であり、SDRAM制御手段10は、SDRAM3の初期化完了後にINITS16を1に切り替える。
【0133】
SELFS17は、SELF14のセットによって実行されるSDRAM3のセルフリフレッシュ遷移が完了したことを示すフラグレジスタである。SELFS17の初期状態は0であり、SDRAM制御手段10は、SDRAM3のセルフリフレッシュ遷移完了後にSELFS17を1に切り替える。
【0134】
本メモリ制御システムにおいて、主電源停電時にバックアップ電源から電力を供給する部分は、点線6で囲まれたSDRAM3と電源監視手段4とに限定される。バックアップ制御機能を有しているSDRAMコントローラ1には、バックアップ電源から電力を供給する必要はない。
【0135】
本メモリ制御システムは、MPU2とSDRAMコントローラ1に加えて、ROM5とSDRAM3とその他の図示していないモジュールを1つのチップに内蔵したシステムLSIの形で実現してもよい。または、MPU2とSDRAMコントローラ1に加えて、ROM5やその他の図示していないモジュールとさらにSDRAM3を1つのパッケージに内蔵したマルチチップモジュールの形で実現してもよい。
【0136】
本メモリ制御システムでは、MPU2のデジタル出力ポートを用いて電源監視手段4にSDRAM3の初期化完了やSDRAM3のセルフリフレッシュ遷移完了を通知しているが、ここでは図示していないデジタル出力ポート手段をバス20に接続して用いてもよいし、デジタル出力ポートの代わりにシリアル通信手段やパラレル通信手段を用いてもよい。
【0137】
本メモリ制御システムでは、MPU2のデジタル出力ポートを用いて電源監視手段4にSDRAM3の初期化完了やSDRAM3のセルフリフレッシュ遷移完了を通知しているが、実施形態4で示したINIT信号101またはSELFR信号104を用いてSDRAM3の初期化完了またはSDRAM3のセルフリフレッシュ遷移完了のいずれか一方を電源監視手段4に通知してもよい。
【0138】
なお、実施形態5における電源監視手段4は、デジタル出力ポートDOA201の状態に関わらず、デジタル出力ポートDOB202がアクティブHighに切り替わったことを検知してBUP信号41をアクティブHighにしてもよい。この場合、SDRAM3はセルフリフレッシュ状態になる前に初期化されているものとみなす。この機能により、デジタル出力ポートDOA201が不要になる。
【0139】
図11は、電源復電時にMPU2が実行するSDRAM初期化プログラムの基本的処理手順を示すフローチャートである。
【0140】
SDRAM3がバックアップ状態であるかないか、すなわち、BUP信号41がHighかLowかに関わらず、SDRAM初期化プログラムの基本的処理手順は同じである。
【0141】
まず、CKESET15をセットする(1110)。SDRAM3がバックアップ状態であり、BUP信号41がHighであれば、この時にCKE信号110がLowからHighになり、セルフリフレッシュが解除される。
【0142】
次に、INITSET12を設定し(1120)、SDRAM3の初期化を開始する。
【0143】
次に、INITS16を定期的に読出し(1130)、INITS16に1がセットされた、すなわち、SDRAM3の初期化が完了したことを確認して、デジタル出力ポートDOA201を非アクティブLowからアクティブHighに切り替える(1140)。
【0144】
最後に、REF13を設定し(1150)、SDRAM3のオートリフレッシュを開始する。なお、REF13の設定(1150)は、INITSET12の設定(1120)の次に実行してもよい。
【0145】
図12は、電源停電前にMPU2が実行するSDRAMセルフリフレッシュ遷移プログラムの基本的処理手順を示すフローチャートである。
【0146】
電源監視手段4が主電源の電圧低下を検知すると、ノンマスカラブルインタラプトMNI_信号40をアクティブLowにしてMPU2に通知する。MPU2は主電源が停電すると判断して、本SDRAMセルフリフレッシュ遷移プログラムを実行する。
【0147】
まず、SELF14をセットし(1210)、SDRAM3のセルフリフレッシュ遷移を開始する。
【0148】
次に、SELFS17を定期的に読出し(1220)、SELFS17に1がセットされた、すなわち、SDRAM3のセルフリフレッシュ遷移が完了したことを確認して、デジタル出力ポートDOB202を非アクティブLowからアクティブHighに切り替える(1230)。
【0149】
【発明の効果】
本発明によれば、SDRAMのバックアップ制御機能を有するSDRAMコントローラにおいて、CKE信号の元信号とバックアップ状態を示す信号BUPとCKEセットフラグとからCKE信号のレベルを決定するので、SDRAMのセルフリフレッシュモードへの遷移だけでなく、セルフリフレッシュモードからの解除を任意のタイミングで実行できるので、セルフリフレッシュモードの解除からオートリフレッシュ開始までの時間に関する規定を満足するようなバックアップ制御を容易に実現できる。
【0150】
また、バックアップ制御機能を有しているSDRAMコントローラにバックアップ電源から電力を供給する必要がないので、消費電力をより一層削減できる。
【0151】
さらに、バックアップ制御に必要な回路を内蔵した結果、外付け回路が不要となり、SDRAMを高速動作させることができる。
【図面の簡単な説明】
【図1】本発明による本発明によるメモリ制御システムの実施形態1の系統構成を示すブロック図である。
【図2】CKE信号生成手段11が出力するCKEのレベルを示す図表である。
【図3】電源が復電した時にMPU2が実行するSDRAM初期化プログラムの基本的処理手順を示すフローチャートである。
【図4】4バーストライト実行中にセルフリフレッシュ制御レジスタSELF14のセットによって実行されるSELFコマンドの発行処理手順を示すタイムチャートである。
【図5】SDRAM3が非バックアップ状態である時に電源が復電しリセットが解除された後のSDRAM初期化処理手順を示すタイムチャートである。
【図6】SDRAM3がバックアップ状態である時に電源が復電しリセットが解除された後のSDRAM初期化処理手順を示すタイムチャートである。
【図7】本発明による本発明によるメモリ制御システムの実施形態2の系統構成を示すブロック図である。
【図8】本発明による本発明によるメモリ制御システムの実施形態3の系統構成を示すブロック図である。
【図9】本発明によるメモリ制御システムの実施形態4の系統構成を示すブロック図である。
【図10】本発明によるメモリ制御システムの実施形態5の系統構成を示すブロック図である。
【図11】本発明によるメモリ制御システムの実施形態5において電源復電時にMPU2が実行するSDRAM初期化プログラムの基本的処理手順を示すフローチャートである。
【図12】本発明によるメモリ制御システムの実施形態5において電源停電前にMPU2が実行するSDRAMセルフリフレッシュ遷移プログラムの基本的処理手順を示すフローチャートである。
【符号の説明】
1 SDRAMコントローラ
2 マイクロプロセッサMPU
3 シンクロナスDRAM(SDRAM)
4 電源監視手段
5 リードオンリメモリROM
6 点線
7 リセット手段
10 SDRAM制御手段
11 クロックイネーブルCKE信号生成手段
12 SDRAM設定レジスタINITSET
13 リフレッシュ間隔設定レジスタREF
14 セルフリフレッシュ制御レジスタSELF
15 クロックイネーブルセットレジスタCKESET
16 バックアップ状態フラグSBP
111 ANDゲート
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a memory control system having a backup control function for retaining data in a memory with a backup power supply even when a main power supply fails, and particularly to a memory control system utilizing a self-refresh function of a synchronous DRAM (SDRAM). The present invention relates to a memory control system for implementing a backup.
[0002]
[Prior art]
2. Description of the Related Art Memory backup in which data in a memory is retained by a backup power supply such as a battery even when a main power failure occurs has been applied to various systems. In particular, when the amount of data to be backed up is relatively large or when it is desired to reduce the system initialization time after turning on the power, the synchronous SDRAM (SDRAM) as the main memory is often backed up.
[0003]
In the SDRAM, in order to store data in a capacitor element, it is necessary not only to supply power from a backup power supply but also to refresh the stored contents. Recent SDRAMs have a self-refresh function that does not require an external refresh command input. This self-refresh function is also supported in a double data rate SDRAM (DDR-SDRAM) for further accelerating memory access. Therefore, as a backup method for the SDRAM, a backup utilizing a self-refresh function is widely used (for example, see Patent Document 1).
[0004]
This conventional example includes an SDRAM having a self-refresh function, control means having a built-in memory controller, and an external circuit for switching the SDRAM to a self-refresh mode in accordance with monitoring results of a main power supply and a backup power supply. . The external circuit has a built-in register for issuing a self-refresh command.
[0005]
If the main power supply fails, the control means sets this register. Thereafter, when the memory controller issues a refresh command to the SDRAM, the external circuit switches the clock enable CKE signal to Low and switches the SDRAM to the self-refresh mode at the same time as issuing the command. Thereafter, the backup power supply supplies power only to the SDRAM and the external circuit, and stops supplying power to the control means.
[0006]
The main power supply immediately restarts the power supply to the control means when the power returns (return to service). As a result, the external circuit sets the CKE signal to High, and releases the SDRAM from the self refresh mode.
[0007]
[Patent Document 1]
JP 2001-202165 A (FIG. 1 on page 2 of the specification)
[0008]
[Problems to be solved by the invention]
In this conventional example, when the main power is restored, the power supply to the control means is restarted, the CKE signal is set to High, and the SDRAM is released from the self-refresh mode.
[0009]
However, until the power-on reset of the control means is released and the memory controller is initialized, the subsequent auto refresh is not executed.
[0010]
According to the SDRAM standard, the auto-refresh must be started within about 7.8 μsec or about 15.6 μsec after being released from the self-refresh mode. In the above-mentioned conventional example, very strict requirements are imposed on the initialization time of the control means.
[0011]
Further, the power supply by the backup power supply is limited to the SDRAM and the external circuit to reduce the power consumption. However, the scale of an external circuit realized by an FPGA or the like is large, and it has been difficult to further reduce power consumption.
[0012]
Further, coordination between the control means for issuing the self-refresh command and the external circuit is required, and the addition of the external circuit increases the load capacity of the SDRAM interface signal, thereby limiting the high-speed operation of the SDRAM.
[0013]
SUMMARY OF THE INVENTION It is an object of the present invention to provide a memory control system that facilitates backup processing, reduces power consumption at the time of backup, and includes means for operating an SDRAM at high speed.
[0014]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller having a built-in SDRAM control means. The memory controller switches a clock enable CKE original signal in response to a self-refresh request from the processor MPU, issues a self-refresh command, and issues an auto-refresh start request from the processor MPU. SDRAM control means for starting issuance, and cleared by power-on reset of the memory controller, after power-on reset is released, and before auto-refresh start request by processor MPU A CKE set flag to be set; and a CKE signal generating means for generating a clock enable CKE signal based on the CKE original signal, the output of the power supply monitoring means, and the CKE set flag. And a memory control system powered by a backup power supply.
[0015]
According to the present invention, in a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller having a built-in SDRAM control means, a power supply monitoring means for detecting whether or not the SDRAM is in a backup state is provided. A reset means for outputting a reset signal which is at a low level when the power supply voltage rises or falls and is at a high level when the power supply is stable, and a logical product of a clock enable CKE signal from the memory controller and a reset signal from the reset means. And an AND gate for outputting to the CKE terminal of the SDRAM. The memory controller switches the clock enable CKE original signal in response to a self-refresh request from the processor MPU and issues a self-refresh command. An SDRAM control means for starting issuance of an auto-refresh command at a predetermined interval in response to an auto-refresh start request from the memory MPU; and a processor MPU which is cleared by a power-on reset of the memory controller and released by the processor MPU before the auto-refresh start request. A CKE set flag to be set; and a CKE signal generating means for generating a clock enable CKE signal based on the CKE original signal, the output of the power supply monitoring means, and the CKE set flag. Only the SDRAM, the power supply monitoring means, and the AND gate are provided. Proposes a memory control system powered by a main power supply and a backup power supply.
[0016]
The CKE signal generating means sets the CKE signal to Low when the CKE original signal is Low, and sets the CKE signal to High when the CKE original signal is High and the power supply monitoring means indicates non-backup. When the signal is High and the power supply monitoring means indicates backup, the CKE signal is set to Low when the CKE set flag is cleared, and the CKE signal is set to High when the CKE set flag is set.
[0017]
An INITSET register for setting various command intervals and address bit widths of the SDRAM, and a REF register for setting an auto-refresh interval of the SDRAM. When the power is restored, the MPU operates in the order of the CKE set flag, the INITSET register, and the REF register. Can be set.
[0018]
The memory controller has a SELF register for issuing a self-refresh command. When the SELF register is switched by writing from the MPU, the SDRAM control unit issues an all-bank precharge command after completing the command currently being executed. It is also possible to issue the SELF command at a prescribed interval with respect to the SDRAM, switch the CKE original signal one clock cycle before the SELF command issuance, switch the CKE signal one clock cycle after the SELF command is issued, and put the SDRAM 3 in the self-refresh state. It is possible.
[0019]
The power supply monitoring means is set by any one of writing by the processor MPU, notification of completion of SDRAM initialization from the memory controller, and notification of self-refresh transition, and is cleared by a voltage drop of the backup power supply at the time of main power failure and writing from the processor MPU. Is done.
[0020]
In a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller having a built-in SDRAM control means, the present invention further comprises a power supply monitoring means for detecting whether or not the SDRAM is in a backup state. SDRAM control in which a memory controller switches a clock enable CKE original signal in response to a self-refresh request from a processor MPU, issues a self-refresh command, and starts issuing an auto-refresh command at a predetermined interval in response to an auto-refresh start request from the processor MPU A backup state SBP flag for setting an output signal to active high when an initialization completion signal INIT becomes high after completion of initialization of the SDRAM; A clock enable CKE signal is generated based on the CKE set flag which is cleared by the power-on reset of the CPU after the power-on reset is released and before the auto-refresh start request is made by the processor MPU, the CKE original signal, the SBP flag and the CKE set flag. And a CKE signal generating unit that supplies power from the main power supply and the backup power supply only to the SDRAM, the power supply monitoring means, and the SBP flag.
[0021]
In this memory control system, the backup state SBP flag is set by one of writing by the processor MPU, notification of completion of SDRAM initialization from the SDRAM control means, and notification of self-refresh transition, and the voltage of the backup power supply at the time of main power failure. Lowered, cleared by writing from the processor MPU.
[0022]
In a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller having a built-in SDRAM control means, the present invention further comprises a power supply monitoring means for detecting whether or not the SDRAM is in a backup state. SDRAM control means for switching a clock enable CKE original signal in response to a self-refresh request from the processor MPU, issuing a self-refresh command, and starting SDRAM initialization in response to an SDRAM initialization request from the processor MPU; A CKE set flag that is cleared by a power-on reset of the memory controller and is set by the processor MPU before the start of SDRAM initialization after the power-on reset is released, a CKE original signal, A CKE signal generating means for generating a clock enable CKE signal based on an output of the monitoring means and a CKE set flag; an SDRAM initialization completion signal for notifying the power supply monitoring means of completion of SDRAM initialization by the SDRAM control means; , An SDRAM self-refresh transition completion signal for notifying the power supply monitoring means of completion of the SDRAM self-refresh transition by the SDRAM control means, and only the SDRAM and the power supply monitoring means are supplied with power from the main power supply and the backup power supply. A memory control system is proposed.
[0023]
The power supply monitoring means determines that the SDRAM is in the backup state when detecting the completion of the SDRAM initialization by the SDRAM initialization completion signal and detecting the completion of the SDRAM self-refresh transition by the SDRAM self-refresh transition completion signal.
[0024]
In a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller having a built-in SDRAM control means, the present invention further comprises a power supply monitoring means for detecting whether or not the SDRAM is in a backup state. SDRAM control means for switching a clock enable CKE original signal in response to a self-refresh request from the processor MPU, issuing a self-refresh command, and starting SDRAM initialization in response to an SDRAM initialization request from the processor MPU; A CKE set flag that is cleared by a power-on reset of the memory controller and is set by the processor MPU before the start of SDRAM initialization after the power-on reset is released, a CKE original signal, CKE signal generation means for generating a clock enable CKE signal based on the output of the monitoring means and the CKE set flag, an SDRAM initialization completion flag indicating that the initialization of the SDRAM has been completed, and the self refresh transition of the SDRAM has been completed A memory in which the processor MPU has at least two digital output ports A and B, and only the SDRAM and the power supply monitoring means are supplied with power from the main power supply and the backup power supply. A control system is proposed.
[0025]
After requesting the memory controller to initialize the SDRAM, the processor MPU detects the completion of the initialization of the SDRAM based on the SDRAM initialization completion flag, and sends the signal to the power supply monitoring unit through the one digital output port A. After notifying the completion of the initialization of the SDRAM, the processor MPU detects the completion of the self-refresh transition of the SDRAM by using the SDRAM self-refresh transition completion flag after requesting the memory controller for the self-refresh transition of the SDRAM. The power supply monitoring unit is notified of the completion of the self-refresh transition of the SDRAM via one digital output port B.
[0026]
The power supply monitoring means determines that the SDRAM is in the backup state when the digital output port A detects the completion of the SDRAM initialization and the digital output port B detects the completion of the SDRAM self-refresh transition.
[0027]
BEST MODE FOR CARRYING OUT THE INVENTION
Next, an embodiment of a memory control system according to the present invention will be described with reference to FIGS.
[0028]
Embodiment 1
FIG. 1 is a block diagram showing the system configuration of Embodiment 1 of the memory control system according to the present invention. The memory control system includes an SDRAM controller 1, a microprocessor MPU2, a synchronous DRAM (SDRAM) 3, a power supply monitoring unit 4, and a read only memory ROM5.
[0029]
The ROM 5 stores a system initialization program at the time of power recovery, a system termination program at the time of power failure, and the like.
[0030]
The power supply monitoring unit 4 monitors the state of a main power supply and a backup power supply (not shown). When the voltage of the main power supply drops below a predetermined value, the power supply monitoring means 4 determines that the power supply has stopped, sets the non-maskable interrupt NMI_ signal 40 to active low, and notifies the MPU 2 of the same. Further, when the power is restored, the power supply monitoring unit 4 detects that the SDRAM controller 1 has set the initialization completion signal INIT101 to Active High, and sets the DRAM backup BUP signal 41 to Active High.
Further, when the voltage of the backup power supply falls below a predetermined value when the main power supply is cut off and the SDRAM 3 is in the backup state by the backup power supply, the power supply monitoring means 4 determines that the backup has been lost, and the BUP signal 41 Is made inactive Low.
[0031]
The SDRAM controller 1 controls access from the MPU 2 to the SDRAM 3, initialization of the SDRAM 3, and refresh of the SDRAM 3. The SDRAM controller 1 includes an SDRAM control unit 10 for controlling the SDRAM 3, a CKE signal generating unit 11 for generating a clock enable CKE signal 110 for the SDRAM 3, an SDRAM setting register INITSET12, a refresh interval setting register REF13, and self-refresh control, which are internal registers. It has a register SELF14 and a clock enable set register CKESET15. The internal registers 12 to 15 can be written and read from the MPU 2 via the bus 20, respectively.
[0032]
The SDRAM control means 10 outputs an address of the SDRAM 3, a command signal 102, and a clock enable source CKE_S signal 100 in response to a memory access request of the MPU 2 sent via the bus 20 and a setting of the internal registers 12 to 15, and outputs the data 103. Send and receive.
[0033]
The INITSET 12 is a register for setting various command intervals and address bit widths of the SDRAM 3. When the MPU 2 sets INITSET 12, the SDRAM control means 10 initializes the SDRAM 3 with reference to the set value of INITSET 12. When the initialization of the SDRAM 3 is completed, the SDRAM control means 10 switches the INIT signal 101 from Low to High.
[0034]
REF13 is a register for setting an auto-refresh interval of the SDRAM 3. When the MPU 2 sets the REF 13, the SDRAM control means 10 periodically issues an auto-refresh command at set intervals.
[0035]
SELF 14 is a register that issues a self-refresh command. When the MPU 2 sets the SELF 14, the SDRAM control means 10 makes the CKE_S signal 100 inactive Low and issues a self-refresh command.
[0036]
The CKESET 15 is a register for selecting whether the CKE signal 110 of the SDRAM 3 is active or inactive. The CKE signal generation unit 11 determines High / Low of the CKE signal 110 based on the states of the CKESET 15, the BUP signal 41, and the CKE_S signal 100.
[0037]
In the present memory control system, the portion that supplies power from the backup power supply when the main power supply fails is limited to the SDRAM 3 and the power supply monitoring unit 4 surrounded by the dotted line 6. It is not necessary to supply power from the backup power supply to the SDRAM controller 1 having the backup control function.
[0038]
This memory control system may be realized in the form of a system LSI in which the ROM 5 and other modules (not shown) are incorporated in one chip in addition to the MPU 2 and the SDRAM controller 1. Alternatively, in addition to the MPU 2 and the SDRAM controller 1, a multi-chip module in which the ROM 5 and other modules (not shown) and the SDRAM 3 are further incorporated in one package may be realized.
[0039]
FIG. 2 is a table showing the levels of CKE output by the CKE signal generation means 11. That is, it is a chart showing the High / Low level of the CKE signal 110 output by the CKE signal generation means 11.
[0040]
As described above, the level of the CKE signal 110 is determined by the CKE_S signal 100, the BUP signal 41, and the CKESET15.
[0041]
When the CKE_S signal 100 is Low, the CKE signal 110 becomes Low regardless of the states of the BUP signal 41 and the CKESET 15. This case corresponds to a self-refresh command issuance and a subsequent self-refresh state.
[0042]
When the CKE_S signal 100 is High and the BUP signal 41 is Low, the CKE signal 110 becomes High regardless of the state of the CKESET 15. In this case, the SDRAM 3 is not in the backup state, that is, the BUP signal 41 remains Low, which corresponds to the state at the time of power restoration.
[0043]
When the CKE_S signal 100 is High and the BUP signal 41 is High, the CKE signal 110 is Low if CKESET 15 is 0 in the initial state. In this case, the SDRAM 3 is in the backup state, that is, the BUP signal 41 is High, which corresponds to the state when the power is restored.
[0044]
On the other hand, if CKSET15 is 1, that is, if MPU2 is set, the CKE signal 110 becomes High. In this case, the SDRAM 3 is in the backup state, that is, the BUP signal 41 is High, which corresponds to the release of the self-refresh when the power is restored.
[0045]
FIG. 3 is a flowchart showing a basic processing procedure of the SDRAM initialization program executed by the MPU 2 when the power is restored.
[0046]
Regardless of whether or not the SDRAM 3 is in the backup state, that is, whether the BUP signal 41 is High or Low, the basic processing procedure of the SDRAM initialization program is the same.
[0047]
First, CKESET 15 is set (3010). If the SDRAM 3 is in the backup state and the BUP signal 41 is High, the CKE signal 110 changes from Low to High at this time, and the self refresh is released.
[0048]
Next, INITSET 12 is set (3020), and initialization of the SDRAM 3 is started.
[0049]
REF13 is set (3030) so that the auto-refresh is executed at a predetermined interval immediately after the initialization of the SDRAM 3 is completed.
[0050]
FIG. 4 is a time chart showing a procedure for issuing a SELF command executed by setting the self-refresh control register SELF14 during the execution of four burst writes.
[0051]
When the SELF 14 is switched to 1 at T6 by writing from the MPU 2, the SDRAM control means 10 executes the normal 4-burst write in this example, thereafter issues an all-bank precharge command (T 9), and is defined by the SDRAM 3. A SELF command is issued at intervals (T11).
[0052]
The SDRAM control means 10 switches the CKE_S signal 100 from High to Low one clock cycle before the SELF command. The CKE generation means 10 detects that the CKE_S signal 100 has become Low at T10, and switches the CKE signal 110 from High to Low at T11 one clock cycle later. As a result, SDRAM 3 enters a self-refresh state.
[0053]
FIG. 5 is a time chart showing the SDRAM initialization processing procedure after the power is restored and the reset is released when the SDRAM 3 is in the non-backup state.
[0054]
When the SDRAM 3 is in the non-backup state, the BUP signal 41 is Low before the power is turned on, and the CKE_S signal 100 becomes High when the power is turned on. Therefore, the CKE signal 110 becomes High immediately after the power is turned on. Therefore, if the system reset period after turning on the power is made longer than the idle period (several hundred microseconds) before initialization required by the SDRAM 3, the SDRAM 3 can be initialized.
[0055]
After the system reset is released, the MPU 2 executes the SDRAM initialization program shown in FIG. 3 at an arbitrary timing. First, CKESET15 is set (T5). Next, INITSET12 is set (T8). The SDRAM control means 10 starts SDRAM initialization. Initialization of the SDRAM 3 is firstly issued with a PALL command (T9), followed by issuance of a REF command defined in accordance with the SDRAM 3 (T11 and T17), and finally ended with issuance of a mode register set (MRS) command (T23). I do. When the initialization of the SDRAM 3 is completed, the SDRAM control means 10 switches the INIT signal 101 from Low to High (T25).
[0056]
Further, the SDRAM control means 10 issues a REF command at a predetermined interval immediately after the completion of the initialization by setting the REF 13 (T11) (T26).
[0057]
With the above processing procedure, the initialization and the auto-refresh of the SDRAM 3 are realized, and the backup becomes possible.
[0058]
When detecting that the INIT signal 101 has become High, the power supply monitoring unit 4 switches the BUP signal 41 from Low to High at an arbitrary timing.
[0059]
FIG. 6 is a time chart showing the SDRAM initialization processing procedure after the power is restored and the reset is released when the SDRAM 3 is in the backup state.
[0060]
When the SDRAM 3 is in the backup state, since the BUP signal 41 is High and the CKESET 15 is cleared to 0 before the power is turned on, even if the CKE_S signal 100 becomes High with the power on, the CKE signal 110 remains high. , The Low state is maintained immediately after the power is turned on. Therefore, the self-refresh of the backed up SDRAM 3 can be maintained until an arbitrary timing.
[0061]
After the system reset is released, the MPU 2 executes the SDRAM initialization program shown in FIG. 3 at an arbitrary timing. First, CKSET15 is set (T5), and the self-refresh of the backed up SDRAM 3 is released. Next, INITSET12 is set (T8), and the SDRAM control means 10 executes SDRAM initialization. Further, by setting REF13 (T11), a REF command is issued at a predetermined interval immediately after the initialization is completed (T26).
[0062]
Therefore, the period from the release of the self-refresh of the SDRAM 3 to the execution of the auto-refresh is within a range that sufficiently satisfies the definition of the SDRAM 3.
[0063]
Embodiment 2
FIG. 7 is a block diagram showing the system configuration of Embodiment 2 of the memory control system according to the present invention. The second embodiment has a system configuration in which a reset unit 7 and an AND gate 111 are added to the first embodiment. The memory control system includes an SDRAM controller 1, a microprocessor MPU2, a synchronous DRAM (SDRAM) 3, a power supply monitoring unit 4, a read only memory ROM 5, a reset unit 7, and an AND gate 111. I have.
[0064]
The reset means 7 outputs a reset signal 71 which is at a low level when the power supply voltage rises or falls and becomes a high level when the power supply is stable.
[0065]
The AND gate 111 calculates the logical product of the CKE signal 110 output from the CKE signal generation means 11 and the reset signal 71 output from the reset means 7, and outputs the result to the CKE terminal of the SDRAM 3. Power is supplied to the AND gate 111 from both the main power supply and the backup power supply.
[0066]
The ROM 5 stores a system initialization program at the time of power recovery, a system termination program at the time of power failure, and the like.
[0067]
The power supply monitoring unit 4 monitors the state of a main power supply and a backup power supply (not shown). When the voltage of the main power supply drops below a predetermined value, the power supply monitoring means 4 determines that the power supply has stopped, sets the non-maskable interrupt NMI_ signal 40 to active low, and notifies the MPU 2 of the same. Further, when the power is restored, the power supply monitoring unit 4 detects that the SDRAM controller 1 has set the initialization completion signal INIT101 to Active High, and sets the DRAM backup (BUP) signal 41 to Active High.
Further, when the voltage of the backup power supply falls below a predetermined value when the main power supply is cut off and the SDRAM 3 is in the backup state by the backup power supply, the power supply monitoring means 4 determines that the backup has been lost, and the BUP signal 41 Is made inactive Low.
[0068]
The SDRAM controller 1 controls access from the MPU 2 to the SDRAM 3, initialization of the SDRAM 3, and refresh of the SDRAM 3. The SDRAM controller 1 includes an SDRAM control unit 10 for controlling the SDRAM 3, a CKE signal generating unit 11 for generating a clock enable CKE signal 110 for the SDRAM 3, an SDRAM setting register INITSET12, a refresh interval setting register REF13, and self-refresh control, which are internal registers. It has a register SELF14 and a clock enable set register CKESET15. The internal registers 12 to 15 can be written and read from the MPU 2 via the bus 20, respectively.
[0069]
The SDRAM control means 10 outputs an address of the SDRAM 3, a command signal 102, and a clock enable source CKE_S signal 100 in response to a memory access request of the MPU 2 sent via the bus 20 and a setting of the internal registers 12 to 15, and outputs the data 103. Send and receive.
[0070]
The INITSET 12 is a register for setting various command intervals and address bit widths of the SDRAM 3. When the MPU 2 sets INITSET 12, the SDRAM control means 10 initializes the SDRAM 3 with reference to the set value of INITSET 12. When the initialization of the SDRAM 3 is completed, the SDRAM control means 10 switches the INIT signal 101 from Low to High.
[0071]
REF13 is a register for setting an auto-refresh interval of the SDRAM 3. When the MPU 2 sets the REF 13, the SDRAM control means 10 periodically issues an auto-refresh command at set intervals.
[0072]
SELF 14 is a register that issues a self-refresh command. When the MPU 2 sets the SELF 14, the SDRAM control means 10 makes the CKE_S signal 100 inactive Low and issues a self-refresh command.
[0073]
The CKESET 15 is a register for selecting whether the CKE signal 110 of the SDRAM 3 is active or inactive. The CKE signal generation unit 11 determines High / Low of the CKE signal 110 based on the states of the CKESET 15, the BUP signal 41, and the CKE_S signal 100.
[0074]
In the present memory control system, the part that supplies power from the backup power supply when the main power supply fails is limited to the SDRAM 3, the power supply monitoring means 4, and the AND gate 111 surrounded by the dotted line 6. It is not necessary to supply power from the backup power supply to the SDRAM controller 1 having the backup control function.
[0075]
This memory control system may be realized in the form of a system LSI in which the ROM 5, the reset means 7, and other modules (not shown) are incorporated in one chip in addition to the MPU 2 and the SDRAM controller 1. Alternatively, in addition to the MPU 2 and the SDRAM controller 1, a multi-chip module in which the ROM 5, the reset means 7, other modules (not shown), and the SDRAM 3 are further incorporated in one package may be realized.
[0076]
When the SDRAM controller 1 including the CKE signal generation means 11 is realized by a C-MOS LSI, there may be a case where it is desired to omit a dedicated means for stabilizing the CKE signal 110 when the power supply voltage rises or falls.
[0077]
Accordingly, in the second embodiment, the reset signal 71 from the reset means 7 which is at the low level when the power supply voltage rises or falls and becomes the high level when the power supply is stable is used. , The CKE of the SDRAM 3 is fixed at Low.
[0078]
The AND gate 111 calculates the logical product of the CKE signal 110 output from the CKE signal generation unit 11 and the reset signal 71 output from the reset unit 7, and outputs a signal 112 to the CKE terminal of the SDRAM 3.
[0079]
As a result, a stable backup function can be realized without providing a dedicated means for stabilizing the CKE signal 110 when the power supply voltage rises or falls.
[0080]
The basic processing procedure of the second embodiment is the same as that of the first embodiment, and a description thereof will not be repeated.
[0081]
Embodiment 3
FIG. 8 is a block diagram showing a system configuration of Embodiment 3 of the memory control system according to the present invention. The third embodiment has a system configuration in which a function of outputting a DRAM backup (BUP) signal 41 of the power supply monitoring unit 4 of the first embodiment is provided to a backup state flag SBP16 built in the SDRAM controller 1.
[0082]
The memory control system includes an SDRAM controller 1, a microprocessor MPU2, a synchronous DRAM (SDRAM) 3, a power supply monitoring unit 4, and a read only memory ROM5.
[0083]
The backup status flag SBP16 of the third embodiment is a flag that can be read and written from the MPU 2 via the bus 20. The SBP 16 is built in the SDRAM controller 1, but is electrically separated from other parts of the SDRAM controller 1, and is supplied with power from both a main power supply and a backup power supply.
[0084]
The ROM 5 stores a system initialization program at the time of power recovery, a system termination program at the time of power failure, and the like.
[0085]
The power supply monitoring unit 4 monitors the state of a main power supply and a backup power supply (not shown). When the voltage of the main power supply drops below a predetermined value, the power supply monitoring means 4 determines that the power supply has stopped, sets the non-maskable interrupt NMI_ signal 40 to active low, and notifies the MPU 2 of the same. Further, when the power is restored, the SDRAM controller 10 in the SDRAM controller 1 sets the initialization completion signal INIT101 to Active High after the initialization of the SDRAM 3 is completed, the backup status flag (SBP) 16 is set, and the output signal 160 is set. Active High.
[0086]
The SDRAM controller 1 controls access from the MPU 2 to the SDRAM 3, initialization of the SDRAM 3, and refresh of the SDRAM 3. The SDRAM controller 1 includes an SDRAM control unit 10 for controlling the SDRAM 3, a CKE signal generating unit 11 for generating a clock enable CKE signal 110 for the SDRAM 3, an SDRAM setting register INITSET12, a refresh interval setting register REF13, and self-refresh control, which are internal registers. It has a register SELF14 and a clock enable set register CKESET15. The internal registers 12 to 15 can be written and read from the MPU 2 via the bus 20, respectively.
[0087]
In response to the initialization completion signal INIT101, the SBP 16 outputs a backup signal 160 indicating that the SDRAM 3 is in the backup state, like the DRAM backup (BUP) signal 41 of the first embodiment. Since power is supplied to the SBP 16 from both the main power supply and the backup power supply, the state can be maintained even when the main power supply fails. Also, even if the SDRAM controller 1 is reset, the SBP 16 can be maintained without being cleared.
[0088]
The SBP 16 is set when the SDRAM control means 10 changes the INIT signal 101 from Low to High after the initialization of the SDRAM 3 is completed.
[0089]
The SDRAM control means 10 outputs an address of the SDRAM 3, a command signal 102, and a clock enable source CKE_S signal 100 in response to a memory access request of the MPU 2 sent via the bus 20 and a setting of the internal registers 12 to 15, and outputs the data 103. Send and receive.
[0090]
The INITSET 12 is a register for setting various command intervals and address bit widths of the SDRAM 3. When the MPU 2 sets INITSET 12, the SDRAM control means 10 initializes the SDRAM 3 with reference to the set value of INITSET 12. When the initialization of the SDRAM 3 is completed, the SDRAM control means 10 switches the INIT signal 101 from Low to High.
[0091]
REF13 is a register for setting an auto-refresh interval of the SDRAM 3. When the MPU 2 sets the REF 13, the SDRAM control means 10 periodically issues an auto-refresh command at set intervals.
[0092]
SELF 14 is a register that issues a self-refresh command. When the MPU 2 sets the SELF 14, the SDRAM control means 10 makes the CKE_S signal 100 inactive Low and issues a self-refresh command.
[0093]
The CKESET 15 is a register for selecting whether the CKE signal 110 of the SDRAM 3 is active or inactive. The CKE signal generation unit 11 determines High / Low of the CKE signal 110 based on the state of the output signal 160 of the CKESET 15, the SBP 16, and the CKE_S signal 100.
[0094]
In the present memory control system, the portion that supplies power from the backup power supply when the main power supply fails is limited to the SDRAM 3 and the power supply monitoring unit 4 surrounded by the dotted line 6. It is not necessary to supply power from the backup power supply to the SDRAM controller 1 having the backup control function.
[0095]
This memory control system may be realized in the form of a system LSI in which the ROM 5 and other modules (not shown) are incorporated in one chip in addition to the MPU 2 and the SDRAM controller 1. Alternatively, in addition to the MPU 2 and the SDRAM controller 1, a multi-chip module in which the ROM 5 and other modules (not shown) and the SDRAM 3 are further incorporated in one package may be realized.
[0096]
The basic processing procedure of the third embodiment is the same as that of the first and second embodiments, and a description thereof will be omitted.
[0097]
Embodiment 4
FIG. 9 is a block diagram showing the system configuration of Embodiment 4 of the memory control system according to the present invention. The fourth embodiment has a system configuration in which a SELFR signal 104 is added to the first embodiment. The memory control system includes an SDRAM controller 1, a microprocessor MPU2, a synchronous DRAM (SDRAM) 3, a power supply monitoring unit 4, and a read only memory ROM5.
[0098]
The SELFR signal 104 is a signal for notifying the power supply monitoring means 4 from the SDRAM control means 10 of the self-refresh transition of the SDRAM.
[0099]
The SDRAM control means 10 switches the SELFR signal 104 from inactive low to active high at the same time as or after issuing the self-refresh command.
[0100]
The ROM 5 stores a system initialization program at the time of power recovery, a system termination program at the time of power failure, and the like.
[0101]
The power supply monitoring unit 4 monitors the state of a main power supply and a backup power supply (not shown). When the voltage of the main power supply drops below a predetermined value, the power supply monitoring means 4 determines that the power supply has stopped, sets the non-maskable interrupt NMI_ signal 40 to active low, and notifies the MPU 2 of the same. When the MPU 2 detects that the NMI_ signal 40 has been switched to the active low state, the MPU 2 executes necessary processing before the power failure, finally sets the SELF 14 and puts the SDRAM 3 in a self-refresh state.
[0102]
Further, the power supply monitoring unit 4 detects that the initialization completion signal INIT signal 101 is active high and the SELFR signal 104 is switched to active high, and sets the DRAM backup (BUP) signal 41 to active high.
[0103]
Further, when the voltage of the backup power supply falls below a predetermined value when the main power supply is cut off and the SDRAM 3 is in the backup state by the backup power supply, the power supply monitoring means 4 determines that the backup has been lost, and the BUP signal 41 Is made inactive Low.
[0104]
The SDRAM controller 1 controls access from the MPU 2 to the SDRAM 3, initialization of the SDRAM 3, and refresh of the SDRAM 3. The SDRAM controller 1 includes an SDRAM control unit 10 for controlling the SDRAM 3, a CKE signal generating unit 11 for generating a clock enable CKE signal 110 for the SDRAM 3, an SDRAM setting register INITSET12, a refresh interval setting register REF13, and self-refresh control, which are internal registers. It has a register SELF14 and a clock enable set register CKESET15. The internal registers 12 to 15 can be written and read from the MPU 2 via the bus 20, respectively.
[0105]
The SDRAM control means 10 outputs an address of the SDRAM 3, a command signal 102, and a clock enable source CKE_S signal 100 in response to a memory access request of the MPU 2 sent via the bus 20 and a setting of the internal registers 12 to 15, and outputs the data 103. Send and receive.
[0106]
The INITSET 12 is a register for setting various command intervals and address bit widths of the SDRAM 3. When the MPU 2 sets INITSET 12, the SDRAM control means 10 initializes the SDRAM 3 with reference to the set value of INITSET 12.
[0107]
When the initialization of the SDRAM 3 is completed, the SDRAM control means 10 switches the INIT signal 101 from inactive low to active high.
[0108]
REF13 is a register for setting an auto-refresh interval of the SDRAM 3. When the MPU 2 sets the REF 13, the SDRAM control means 10 periodically issues an auto-refresh command at set intervals.
[0109]
SELF 14 is a register that issues a self-refresh command. When the MPU 2 sets the SELF 14, the SDRAM control means 10 changes the CKE_S signal 100 to the inactive Low, issues a self-refresh command, and switches the SELFR signal 104 from the inactive Low to the active High.
[0110]
The CKESET 15 is a register for selecting whether the CKE signal 110 of the SDRAM 3 is active or inactive. The CKE signal generation unit 11 determines High / Low of the CKE signal 110 based on the states of the CKESET 15, the BUP signal 41, and the CKE_S signal 100.
[0111]
In the present memory control system, the part that supplies power from the backup power supply when the main power supply fails is limited to the SDRAM 3 and the power supply monitoring unit 4 surrounded by the dotted line 6. It is not necessary to supply power from the backup power supply to the SDRAM controller 1 having the backup control function.
[0112]
This memory control system may be realized in the form of a system LSI in which the ROM 5, the SDRAM 3, and other modules (not shown) are incorporated in one chip in addition to the MPU 2 and the SDRAM controller 1. Alternatively, in addition to the MPU 2 and the SDRAM controller 1, a multi-chip module in which the ROM 5 and other modules (not shown) and the SDRAM 3 are further incorporated in one package may be realized.
[0113]
In the power supply monitoring means 4, the condition for judging whether or not the SDRAM 3 can be backed up is not only that the initialization of the SDRAM 3 has been completed but also that the self-refresh transition of the SDRAM 3 has been completed. Sometimes you want to add.
[0114]
Therefore, in the fourth embodiment, the SDRAM control unit 10 notifies the power supply monitoring unit 4 of the completion of the initialization of the SDRAM 3 by the INIT signal 101, and further notifies the self-refresh transition of the SDRAM 3 by the SELFR signal 104.
[0115]
Further, the power supply monitoring unit 4 detects that the INIT signal 101 is active high and the SELFR signal 104 is switched to active high, and changes the BUP signal 41 to active high.
[0116]
As a result, the BUP signal 41 becomes active high only when the SDRAM 3 is in the self refresh state, and a stable backup function can be realized.
[0117]
Note that the power supply monitoring unit 4 in the fourth embodiment may detect that the SELFR signal 104 has been switched to Active High, and change the BUP signal 41 to Active High, regardless of the state of the INIT signal 101. In this case, it is assumed that the SDRAM 3 has been initialized before entering the self-refresh state. This function makes the INIT signal 101 unnecessary.
[0118]
The basic processing procedure of the fourth embodiment is the same as that of the first embodiment, and a description thereof will not be repeated.
[0119]
Embodiment 5
FIG. 10 is a block diagram showing a system configuration of Embodiment 5 of the memory control system according to the present invention. The fifth embodiment has a system configuration in which an initialization completion flag register INITS16, a self-refresh transition completion flag register SELFS17, and digital output ports DOA201 and DOB202 are added to the first embodiment. The memory control system includes an SDRAM controller 1, a microprocessor MPU2, a synchronous DRAM (SDRAM) 3, a power supply monitoring unit 4, and a read only memory ROM5.
[0120]
The digital output ports DOA201 and DOB202 are signals that can be switched to High or Low by writing to a register of the MPU 2 (not shown). In the fifth embodiment, the MPU 2 notifies the power supply monitoring unit 4 of the completion of the initialization of the SDRAM 3 via the DOA 201, and the MPU 2 notifies the power supply monitoring unit 4 of the completion of the self-refresh transition of the SDRAM 3 via the DOB 202.
[0121]
The ROM 5 stores a system initialization program at the time of power recovery, a system termination program at the time of power failure, and the like.
[0122]
The power supply monitoring unit 4 monitors the state of a main power supply and a backup power supply (not shown). When the voltage of the main power supply falls below a predetermined value, the power supply monitoring means 4 determines that the power supply has failed, sets the non-maskable interrupt NMI_ signal 40 to Active Low, and notifies the MPU 2 of the same. When the MPU 2 detects that the NMI_ signal 40 has been switched to the active low state, the MPU 2 executes necessary processing before the power failure, finally sets the SELF 14 and puts the SDRAM 3 in a self-refresh state.
[0123]
Further, the power supply monitoring means 4 detects that the digital output port DOA 201 is active high and the digital output port DOB 202 is switched to active high, and sets the DRAM backup (BUP) signal 41 to active high.
[0124]
Further, when the voltage of the backup power supply falls below a predetermined value when the main power supply is cut off and the SDRAM 3 is in the backup state by the backup power supply, the power supply monitoring means 4 determines that the backup has been lost, and the BUP signal 41 Is made inactive Low.
[0125]
The SDRAM controller 1 controls access from the MPU 2 to the SDRAM 3, initialization of the SDRAM 3, and refresh of the SDRAM 3. The SDRAM controller 1 includes an SDRAM control unit 10 for controlling the SDRAM 3, a CKE signal generation unit 11 for generating a clock enable CKE signal 110 for the SDRAM 3, an SDRAM setting register INITSET12, a refresh interval setting register REF13, and self-refresh control, which are internal registers. It has a register SELF14, a clock enable set register CKESET15, an initialization completion flag INITS16, and a self-refresh transition completion flag SELFS17. The internal registers 12 to 17 can be written and read from the MPU 2 via the bus 20, respectively.
[0126]
The SDRAM control means 10 outputs an address of the SDRAM 3, a command signal 102, and a clock enable source CKE_S signal 100 in response to a memory access request of the MPU 2 sent via the bus 20 and a setting of the internal registers 12 to 15, and outputs the data 103. Send and receive.
[0127]
The INITSET 12 is a register for setting various command intervals and address bit widths of the SDRAM 3. When the MPU 2 sets INITSET 12, the SDRAM control means 10 initializes the SDRAM 3 with reference to the set value of INITSET 12.
[0128]
When the initialization of the SDRAM 3 is completed, the SDRAM control means 10 switches the INIT signal 101 from inactive low to active high.
[0129]
REF13 is a register for setting an auto-refresh interval of the SDRAM 3. When the MPU 2 sets the REF 13, the SDRAM control means 10 periodically issues an auto-refresh command at set intervals.
[0130]
SELF 14 is a register that issues a self-refresh command. When the MPU 2 sets the SELF 14, the SDRAM control means 10 changes the CKE_S signal 100 to the inactive Low, issues a self-refresh command, and switches the SELFR signal 104 from the inactive Low to the active High.
[0131]
The CKESET 15 is a register for selecting whether the CKE signal 110 of the SDRAM 3 is active or inactive. The CKE signal generation unit 11 determines High / Low of the CKE signal 110 based on the states of the CKESET 15, the BUP signal 41, and the CKE_S signal 100.
[0132]
The INITS 16 is a flag register indicating that the initialization of the SDRAM 3 executed by the setting of the INITSET 12 has been completed. The initial state of the INITS 16 is 0, and the SDRAM control means 10 switches the INITS 16 to 1 after the initialization of the SDRAM 3 is completed.
[0133]
The SELFS 17 is a flag register indicating that the self-refresh transition of the SDRAM 3 executed by the setting of the SELF 14 has been completed. The initial state of the SELFS 17 is 0, and the SDRAM control unit 10 switches the SELFS 17 to 1 after the self-refresh transition of the SDRAM 3 is completed.
[0134]
In the present memory control system, the part that supplies power from the backup power supply when the main power supply fails is limited to the SDRAM 3 and the power supply monitoring unit 4 surrounded by the dotted line 6. It is not necessary to supply power from the backup power supply to the SDRAM controller 1 having the backup control function.
[0135]
This memory control system may be realized in the form of a system LSI in which the ROM 5, the SDRAM 3, and other modules (not shown) are incorporated in one chip in addition to the MPU 2 and the SDRAM controller 1. Alternatively, in addition to the MPU 2 and the SDRAM controller 1, a multi-chip module in which the ROM 5 and other modules (not shown) and the SDRAM 3 are further incorporated in one package may be realized.
[0136]
In this memory control system, the completion of the initialization of the SDRAM 3 and the completion of the self-refresh transition of the SDRAM 3 are notified to the power supply monitoring means 4 by using the digital output port of the MPU 2. 20 may be used, or serial communication means or parallel communication means may be used instead of the digital output port.
[0137]
In the present memory control system, the completion of the initialization of the SDRAM 3 and the completion of the self-refresh transition of the SDRAM 3 are notified to the power supply monitoring means 4 by using the digital output port of the MPU 2, but the INIT signal 101 or the SELFR signal shown in the fourth embodiment is used. One of the completion of the initialization of the SDRAM 3 and the completion of the self-refresh transition of the SDRAM 3 may be notified to the power supply monitoring unit 4 by using 104.
[0138]
Note that the power supply monitoring unit 4 in the fifth embodiment may detect that the digital output port DOB 202 has been switched to Active High and change the BUP signal 41 to Active High regardless of the state of the digital output port DOA 201. In this case, it is assumed that the SDRAM 3 has been initialized before entering the self-refresh state. This function eliminates the need for the digital output port DOA201.
[0139]
FIG. 11 is a flowchart showing a basic processing procedure of the SDRAM initialization program executed by the MPU 2 when the power is restored.
[0140]
Regardless of whether the SDRAM 3 is in the backup state, that is, whether the BUP signal 41 is High or Low, the basic processing procedure of the SDRAM initialization program is the same.
[0141]
First, CKESET 15 is set (1110). If the SDRAM 3 is in the backup state and the BUP signal 41 is High, the CKE signal 110 changes from Low to High at this time, and the self refresh is released.
[0142]
Next, INITSET 12 is set (1120), and initialization of the SDRAM 3 is started.
[0143]
Next, the INITS 16 is periodically read (1130), and it is confirmed that 1 has been set in the INITS 16, that is, that the initialization of the SDRAM 3 has been completed, and the digital output port DOA 201 is switched from inactive low to active high (1130). 1140).
[0144]
Finally, the REF 13 is set (1150), and the auto-refresh of the SDRAM 3 is started. The setting of the REF 13 (1150) may be executed after the setting of the INITSET 12 (1120).
[0145]
FIG. 12 is a flowchart showing a basic processing procedure of an SDRAM self-refresh transition program executed by the MPU 2 before a power failure.
[0146]
When the power supply monitoring unit 4 detects a voltage drop of the main power supply, the power supply monitoring unit 4 sets the non-maskable interrupt MNI_ signal 40 to Active Low and notifies the MPU 2 of the signal. The MPU 2 determines that the main power supply is interrupted, and executes the SDRAM self-refresh transition program.
[0147]
First, the SELF 14 is set (1210), and the self-refresh transition of the SDRAM 3 is started.
[0148]
Next, the SELFS 17 is periodically read (1220), and 1 is set in the SELFS 17, that is, it is confirmed that the self-refresh transition of the SDRAM 3 has been completed, and the digital output port DOB 202 is switched from inactive low to active high. (1230).
[0149]
【The invention's effect】
According to the present invention, in the SDRAM controller having the backup control function of the SDRAM, the level of the CKE signal is determined from the original signal of the CKE signal, the signal BUP indicating the backup state, and the CKE set flag. In addition to the transition, the self-refresh mode can be released from the self-refresh mode at an arbitrary timing, so that the backup control that satisfies the regulation on the time from the release of the self-refresh mode to the start of the auto-refresh can be easily realized.
[0150]
Further, since it is not necessary to supply power from a backup power supply to an SDRAM controller having a backup control function, power consumption can be further reduced.
[0151]
Further, as a result of incorporating a circuit necessary for backup control, an external circuit is not required, and the SDRAM can be operated at high speed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a system configuration of a first embodiment of a memory control system according to the present invention;
FIG. 2 is a table showing CKE levels output by CKE signal generation means 11;
FIG. 3 is a flowchart showing a basic processing procedure of an SDRAM initialization program executed by the MPU 2 when the power is restored.
FIG. 4 is a time chart showing a process of issuing a SELF command executed by setting a self-refresh control register SELF14 during execution of 4-burst write.
FIG. 5 is a time chart showing an SDRAM initialization processing procedure after the power is restored and the reset is released when the SDRAM 3 is in the non-backup state.
FIG. 6 is a time chart showing an SDRAM initialization processing procedure after the power is restored and the reset is released when the SDRAM 3 is in a backup state.
FIG. 7 is a block diagram showing a system configuration of a second embodiment of the memory control system according to the present invention;
FIG. 8 is a block diagram showing a system configuration of a third embodiment of the memory control system according to the present invention;
FIG. 9 is a block diagram showing a system configuration of a memory control system according to a fourth embodiment of the present invention.
FIG. 10 is a block diagram showing a system configuration of a memory control system according to a fifth embodiment of the present invention.
FIG. 11 is a flowchart showing a basic processing procedure of an SDRAM initialization program executed by the MPU 2 when power is restored in the fifth embodiment of the memory control system according to the present invention.
FIG. 12 is a flowchart showing a basic processing procedure of an SDRAM self-refresh transition program executed by the MPU 2 before a power failure in Embodiment 5 of the memory control system according to the present invention.
[Explanation of symbols]
1 SDRAM controller
2 Microprocessor MPU
3 Synchronous DRAM (SDRAM)
4 Power supply monitoring means
5 Read only memory ROM
6 dotted line
7 Reset means
10 SDRAM control means
11 Clock enable CKE signal generating means
12 SDRAM setting register INITSET
13 Refresh interval setting register REF
14 Self-refresh control register SELF
15 Clock enable set register CKESET
16 Backup status flag SBP
111 AND gate

Claims (30)

プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、
前記SDRAMがバックアップ状態であるか否かを検知する電源監視手段を備え、
前記メモリコントローラが、前記プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行し前記プロセッサMPUからのオートリフレッシュ開始要求により所定間隔のオートリフレッシュコマンドの発行を開始するSDRAM制御手段と、前記メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後前記プロセッサMPUによりオートリフレッシュ開始要求の前にセットされるCKEセットフラグと、前記CKE元信号と前記電源監視手段の出力と前記CKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段とを備え、
前記SDRAMおよび前記電源監視手段のみが、主電源およびバックアップ電源から電力を供給される
ことを特徴とするメモリ制御システム。
In a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller incorporating SDRAM control means,
Power monitoring means for detecting whether the SDRAM is in a backup state,
An SDRAM in which the memory controller switches a clock enable CKE original signal in response to a self-refresh request from the processor MPU, issues a self-refresh command, and starts issuing an auto-refresh command at a predetermined interval in response to an auto-refresh start request from the processor MPU Control means, a CKE set flag that is cleared by a power-on reset of the memory controller and is set by the processor MPU after the power-on reset is released and before an auto-refresh start request, CKE signal generation means for generating a clock enable CKE signal based on the CKE set flag,
A memory control system wherein only the SDRAM and the power supply monitoring means are supplied with power from a main power supply and a backup power supply.
請求項1に記載のメモリ制御システムにおいて、
前記CKE信号生成手段が、CKE元信号がLowの場合にはCKE信号をLowとし、CKE元信号がHighでかつ前記電源監視手段が非バックアップを示している場合には前記CKE信号をHighとし、前記CKE元信号がHighでかつ前記電源監視手段がバックアップを示している場合には、前記CKEセットフラグがクリアされているとCKE信号をLowとし、前記CKEセットフラグがセットされているとCKE信号をHighとする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 1,
The CKE signal generating means sets the CKE signal to Low when the CKE original signal is Low, and sets the CKE signal to High when the CKE original signal is High and the power supply monitoring means indicates non-backup, When the CKE original signal is High and the power supply monitoring means indicates backup, the CKE signal is set to Low when the CKE set flag is cleared, and the CKE signal is set when the CKE set flag is set. Is set to High.
請求項1に記載のメモリ制御システムにおいて、
前記SDRAMの各種コマンドインターバルやアドレスビット幅を設定するINITSETレジスタと、前記SDRAMのオートリフレッシュ間隔を設定するREFレジスタとを備え、
電源が復電した時に前記MPUが、前記CKEセットフラグ,前記INITSETレジスタ,前記REFレジスタの順に設定する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 1,
An INITSET register for setting various command intervals and address bit widths of the SDRAM; and a REF register for setting an auto-refresh interval of the SDRAM.
A memory control system wherein the MPU sets the CKE set flag, the INITSET register, and the REF register in this order when power is restored.
請求項1に記載のメモリ制御システムにおいて、
前記メモリコントローラが、セルフリフレッシュコマンドを発行するSELFレジスタを備え、
前記MPUからの書込みにより前記SELFレジスタが切り替わると、前記SDRAM制御手段は、現在実行中のコマンドを完了した後に、全バンクプリチャージコマンドを発行し、前記SDRAMに関して規定された間隔をおいてSELFコマンドを発行するとともに、前記SELFコマンド発行の1クロックサイクル前にCKE元信号を切り替え、1クロックサイクル後にCKE信号を切り替え、前記SDRAM3をセルフリフレッシュ状態にする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 1,
The memory controller includes a SELF register that issues a self-refresh command;
When the SELF register is switched by writing from the MPU, the SDRAM control means issues an all bank precharge command after completing the command currently being executed, and issues a SELF command at a specified interval with respect to the SDRAM. And a CKE signal is switched one clock cycle before the SELF command is issued, and a CKE signal is switched one clock cycle after the SELF command is issued, thereby setting the SDRAM 3 in a self-refresh state.
請求項1に記載のメモリ制御システムにおいて、
前記電源監視手段が、前記プロセッサMPUによる書込み,前記メモリコントローラからのSDRAM初期化完了通知,セルフリフレッシュ遷移通知のいずれかによりセットされ、前記主電源停電時における前記バックアップ電源の電圧低下,前記プロセッサMPUからの書込みによりクリアされる
ことを特徴とするメモリ制御システム。
The memory control system according to claim 1,
The power supply monitoring means is set by any one of writing by the processor MPU, notification of completion of SDRAM initialization from the memory controller, and notification of self-refresh transition, and a voltage drop of the backup power supply at the time of power failure of the main power supply. A memory control system characterized by being cleared by writing from a memory.
プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、
前記SDRAMがバックアップ状態であるか否かを検知する電源監視手段と、電源電圧の立上がりや立下り時にはLowレベルであり電源安定時にはHighレベルとなるリセット信号を出力するリセット手段と、前記メモリコントローラからのクロックイネーブルCKE信号と前記リセット手段からのリセット信号との論理積を演算し前記SDRAMのCKE端子に出力するANDゲートとを備え、
前記メモリコントローラが、前記プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行し前記プロセッサMPUからのオートリフレッシュ開始要求により所定間隔のオートリフレッシュコマンドの発行を開始するSDRAM制御手段と、前記メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後前記プロセッサMPUによりオートリフレッシュ開始要求の前にセットされるCKEセットフラグと、前記CKE元信号と前記電源監視手段の出力と前記CKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段とを備え、
前記SDRAMおよび前記電源監視手段および前記ANDゲートのみが、主電源およびバックアップ電源から電力を供給される
ことを特徴とするメモリ制御システム。
In a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller incorporating SDRAM control means,
Power supply monitoring means for detecting whether or not the SDRAM is in a backup state, reset means for outputting a reset signal which is at a low level when the power supply voltage rises or falls and becomes a high level when the power supply is stable, AND gate for calculating the logical product of the clock enable CKE signal of the above and the reset signal from the reset means and outputting the result to the CKE terminal of the SDRAM;
An SDRAM in which the memory controller switches a clock enable CKE original signal in response to a self-refresh request from the processor MPU, issues a self-refresh command, and starts issuing an auto-refresh command at a predetermined interval in response to an auto-refresh start request from the processor MPU Control means, a CKE set flag that is cleared by a power-on reset of the memory controller and is set by the processor MPU after the power-on reset is released and before an auto-refresh start request, CKE signal generation means for generating a clock enable CKE signal based on the CKE set flag,
A memory control system wherein only the SDRAM, the power supply monitoring means, and the AND gate are supplied with power from a main power supply and a backup power supply.
請求項6に記載のメモリ制御システムにおいて、
前記CKE信号生成手段が、CKE元信号がLowの場合にはCKE信号をLowとし、CKE元信号がHighでかつ前記電源監視手段が非バックアップを示している場合には前記CKE信号をHighとし、前記CKE元信号がHighでかつ前記電源監視手段がバックアップを示している場合には、前記CKEセットフラグがクリアされているとCKE信号をLowとし、前記CKEセットフラグがセットされているとCKE信号をHighとする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 6,
The CKE signal generating means sets the CKE signal to Low when the CKE original signal is Low, and sets the CKE signal to High when the CKE original signal is High and the power supply monitoring means indicates non-backup, When the CKE original signal is High and the power supply monitoring means indicates backup, the CKE signal is set to Low when the CKE set flag is cleared, and the CKE signal is set when the CKE set flag is set. Is set to High.
請求項6に記載のメモリ制御システムにおいて、
前記SDRAMの各種コマンドインターバルやアドレスビット幅を設定するINITSETレジスタと、前記SDRAMのオートリフレッシュ間隔を設定するREFレジスタとを備え、
電源が復電した時に前記MPUが、前記CKEセットフラグ,前記INITSETレジスタ,前記REFレジスタの順に設定する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 6,
An INITSET register for setting various command intervals and address bit widths of the SDRAM; and a REF register for setting an auto-refresh interval of the SDRAM.
A memory control system wherein the MPU sets the CKE set flag, the INITSET register, and the REF register in this order when power is restored.
請求項6に記載のメモリ制御システムにおいて、
前記メモリコントローラが、セルフリフレッシュコマンドを発行するSELFレジスタを備え、
前記MPUからの書込みにより前記SELFレジスタが切り替わると、前記SDRAM制御手段は、現在実行中のコマンドを完了した後に、全バンクプリチャージコマンドを発行し、前記SDRAMに関して規定された間隔をおいてSELFコマンドを発行するとともに、前記SELFコマンド発行の1クロックサイクル前にCKE元信号を切り替え、1クロックサイクル後にCKE信号を切り替え、前記SDRAM3をセルフリフレッシュ状態にする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 6,
The memory controller includes a SELF register that issues a self-refresh command;
When the SELF register is switched by writing from the MPU, the SDRAM control means issues an all bank precharge command after completing the command currently being executed, and issues a SELF command at a specified interval with respect to the SDRAM. And a CKE signal is switched one clock cycle before the SELF command is issued, and a CKE signal is switched one clock cycle after the SELF command is issued, thereby setting the SDRAM 3 in a self-refresh state.
請求項6に記載のメモリ制御システムにおいて、
前記電源監視手段が、前記プロセッサMPUによる書込み,前記メモリコントローラからのSDRAM初期化完了通知,セルフリフレッシュ遷移通知のいずれかによりセットされ、前記主電源停電時における前記バックアップ電源の電圧低下,前記プロセッサMPUからの書込みによりクリアされる
ことを特徴とするメモリ制御システム。
The memory control system according to claim 6,
The power supply monitoring means is set by any one of writing by the processor MPU, notification of completion of SDRAM initialization from the memory controller, and notification of self-refresh transition, and a voltage drop of the backup power supply at the time of power failure of the main power supply. A memory control system characterized by being cleared by writing from a memory.
プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、
前記SDRAMがバックアップ状態であるか否かを検知する電源監視手段を備え、
前記メモリコントローラが、前記プロセッサMPUからのセルフリフレッシュ要求によりクロックイネーブルCKE元信号を切り替えるとともにセルフリフレッシュコマンドを発行し前記プロセッサMPUからのオートリフレッシュ開始要求により所定間隔のオートリフレッシュコマンドの発行を開始するSDRAM制御手段と、前記SDRAMの初期化完了後に初期化完了信号INITがHighになると出力信号をアクティブHighにするバックアップ状態SBPフラグと、前記メモリコントローラのパワーオンリセットによりクリアされパワーオンリセット解除後前記プロセッサMPUによりオートリフレッシュ開始要求の前にセットされるCKEセットフラグと、前記CKE元信号と前記SBPフラグと前記CKEセットフラグとに基づいてクロックイネーブルCKE信号を生成するCKE信号生成手段とを備え、
前記SDRAMおよび前記電源監視手段および前記SBPフラグのみが、主電源およびバックアップ電源から電力を供給される
ことを特徴とするメモリ制御システム。
In a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller incorporating SDRAM control means,
Power monitoring means for detecting whether the SDRAM is in a backup state,
An SDRAM in which the memory controller switches a clock enable CKE original signal in response to a self-refresh request from the processor MPU, issues a self-refresh command, and starts issuing an auto-refresh command at a predetermined interval in response to an auto-refresh start request from the processor MPU Control means, a backup state SBP flag for setting an output signal to active high when an initialization completion signal INIT becomes high after completion of initialization of the SDRAM, and a processor which is cleared by a power-on reset of the memory controller and is released by a power-on reset. A CKE set flag set by the MPU before the auto-refresh start request, the CKE original signal, the SBP flag, and the CKE set flag; Based a CKE signal generating means for generating a clock enable CKE signal,
A memory control system, wherein only the SDRAM, the power supply monitoring means, and the SBP flag are supplied with power from a main power supply and a backup power supply.
請求項11に記載のメモリ制御システムにおいて、
前記CKE信号生成手段が、CKE元信号がLowの場合にはCKE信号をLowとし、CKE元信号がHighでかつ前記電源監視手段が非バックアップを示している場合には前記CKE信号をHighとし、前記CKE元信号がHighでかつ前記電源監視手段がバックアップを示している場合には、前記CKEセットフラグがクリアされているとCKE信号をLowとし、前記CKEセットフラグがセットされているとCKE信号をHighとする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 11,
The CKE signal generating means sets the CKE signal to Low when the CKE original signal is Low, and sets the CKE signal to High when the CKE original signal is High and the power supply monitoring means indicates non-backup, When the CKE original signal is High and the power supply monitoring means indicates backup, the CKE signal is set to Low when the CKE set flag is cleared, and the CKE signal is set when the CKE set flag is set. Is set to High.
請求項11に記載のメモリ制御システムにおいて、
前記SDRAMの各種コマンドインターバルやアドレスビット幅を設定するINITSETレジスタと、前記SDRAMのオートリフレッシュ間隔を設定するREFレジスタとを備え、
電源が復電した時に前記MPUが、前記CKEセットフラグ,前記INITSETレジスタ,前記REFレジスタの順に設定する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 11,
An INITSET register for setting various command intervals and address bit widths of the SDRAM; and a REF register for setting an auto-refresh interval of the SDRAM.
A memory control system wherein the MPU sets the CKE set flag, the INITSET register, and the REF register in this order when power is restored.
請求項11に記載のメモリ制御システムにおいて、
前記メモリコントローラが、セルフリフレッシュコマンドを発行するSELFレジスタを備え、
前記MPUからの書込みにより前記SELFレジスタが切り替わると、前記SDRAM制御手段は、現在実行中のコマンドを完了した後に、全バンクプリチャージコマンドを発行し、前記SDRAMに関して規定された間隔をおいてSELFコマンドを発行するとともに、前記SELFコマンド発行の1クロックサイクル前にCKE元信号を切り替え、1クロックサイクル後にCKE信号を切り替え、前記SDRAM3をセルフリフレッシュ状態にする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 11,
The memory controller includes a SELF register that issues a self-refresh command;
When the SELF register is switched by writing from the MPU, the SDRAM control means issues an all bank precharge command after completing the command currently being executed, and issues a SELF command at a specified interval with respect to the SDRAM. And a CKE signal is switched one clock cycle before the SELF command is issued, and a CKE signal is switched one clock cycle after the SELF command is issued, thereby setting the SDRAM 3 in a self-refresh state.
請求項11に記載のメモリ制御システムにおいて、
前記バックアップ状態SBPフラグが、前記プロセッサMPUによる書込み,前記SDRAM制御手段からのSDRAM初期化完了通知,セルフリフレッシュ遷移通知のいずれかによりセットされ、前記主電源停電時における前記バックアップ電源の電圧低下,前記プロセッサMPUからの書込みによりクリアされる
ことを特徴とするメモリ制御システム。
The memory control system according to claim 11,
The backup state SBP flag is set by one of writing by the processor MPU, notification of completion of SDRAM initialization from the SDRAM control means, and notification of self-refresh transition. A memory control system which is cleared by writing from a processor MPU.
プロセッサMPUと、セルフリフレッシュ機能を有するSDRAMと、SDRAM制御手段を内蔵するメモリコントローラとを含むメモリ制御システムにおいて、
前記SDRAMがバックアップ状態であるか否かを検知して前記メモリコントローラに通知する電源監視手段を備え、
前記メモリコントローラが、前記電源監視手段からの通知に基づいてシステムパワーオン時における前記SDRAMのクロック無効化期間を選択する
ことを特徴とするメモリ制御システム。
In a memory control system including a processor MPU, an SDRAM having a self-refresh function, and a memory controller incorporating SDRAM control means,
Power monitoring means for detecting whether or not the SDRAM is in a backup state and notifying the memory controller;
A memory control system, wherein the memory controller selects a clock invalidation period of the SDRAM at the time of system power-on based on a notification from the power supply monitoring unit.
請求項16に記載のメモリ制御システムにおいて、
前記メモリコントローラが、前記SDRAMがバックアップ状態でないことを検知した場合には、システムパワーオン後またはリセット解除後から前記SDRAMのクロックを有効にし、前記SDRAMがバックアップ状態であることを検知した場合には、システムパワーオン後も前記SDRAMのクロックを無効にし、前記プロセッサからの要求を検知すると前記SDRAMのクロックを有効にする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
When the memory controller detects that the SDRAM is not in the backup state, it enables the clock of the SDRAM after system power-on or after reset release, and when it detects that the SDRAM is in the backup state, A memory control system which invalidates the clock of the SDRAM even after system power-on, and validates the clock of the SDRAM when a request from the processor is detected.
請求項16に記載のメモリ制御システムにおいて、
前記メモリコントローラが、前記SDRAMへのコマンドを発行するとともに前記SDRAMのクロックイネーブルCKE信号の元になるCKE元信号を生成するSDRAM制御手段と、前記プロセッサMPUによりセットされるCKEセットフラグと、前記電源監視手段からの通知と前記CKE元信号と前記CKEセットフラグとに基づいて前記SDRAMのクロックイネーブルCKE信号を生成するCKE信号生成手段とを備える
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
An SDRAM control unit for issuing a command to the SDRAM and generating a CKE source signal which is a source of a clock enable CKE signal of the SDRAM; a CKE set flag set by the processor MPU; A memory control system comprising: a CKE signal generation unit that generates a clock enable CKE signal for the SDRAM based on a notification from a monitoring unit, the CKE original signal, and the CKE set flag.
請求項18に記載のメモリ制御システムにおいて、
前記CKE信号生成手段が、CKE元信号が非アクティブの場合にはCKE信号をLowとし、CKE元信号がアクティブでかつ前記電源監視手段が非バックアップを示している場合には前記CKE信号をHighとし、前期CKE元信号がアクティブでかつ前記電源監視手段がバックアップを示している場合には、前記CKEセットフラグがクリアされているとCKE信号をLowとし、前記CKEセットフラグがセットされているとCKE信号をHighとする
ことを特徴とするメモリ制御システム。
The memory control system according to claim 18,
The CKE signal generating means sets the CKE signal to Low when the CKE original signal is inactive, and sets the CKE signal to High when the CKE original signal is active and the power supply monitoring means indicates non-backup. When the CKE original signal is active and the power supply monitoring means indicates backup, the CKE signal is set to Low when the CKE set flag is cleared, and the CKE signal is set when the CKE set flag is set. A memory control system wherein a signal is set to High.
請求項18に記載のメモリ制御システムにおいて、
前記SDRAMの初期化に必要なコマンドを発行させる初期化レジスタを備え、
電源が復電した時に前記MPUが、前記CKEセットフラグ,前記初期化レジスタの順に設定する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 18,
An initialization register for issuing a command necessary for initialization of the SDRAM,
A memory control system, wherein the MPU sets the CKE set flag and the initialization register in this order when power is restored.
請求項16に記載のメモリ制御システムにおいて、
前記メモリコントローラが、前記SDRAMの初期化が完了した時に前記電源監視手段にSDRAM初期化完了を通知し、
前記電源監視手段が、前記メモリコントローラからのSDRAM初期化完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
The memory controller notifies the power supply monitoring unit of the completion of the SDRAM initialization when the initialization of the SDRAM is completed,
A memory control system, wherein, when the power supply monitoring unit detects the SDRAM initialization completion notification from the memory controller, the power supply monitoring unit notifies the memory controller that the SDRAM is in a backup state.
請求項16に記載のメモリ制御システムにおいて、
前記メモリコントローラが、前記SDRAMのセルフリフレッシュ遷移が完了した時に前記電源監視手段にSDRAMセルフリフレッシュ遷移完了を通知し、前記電源監視手段が、前記メモリコントローラからのSDRAMセルフリフレッシュ遷移完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
When the memory controller notifies the power supply monitoring unit of the completion of the SDRAM self-refresh transition when the self-refresh transition of the SDRAM is completed, and the power supply monitoring unit detects the SDRAM self-refresh transition completion notification from the memory controller, A memory control system for notifying the memory controller that the SDRAM is in a backup state.
請求項16に記載のメモリ制御システムにおいて、
前記メモリコントローラが、前記SDRAMの初期化が完了した時に前記電源監視手段にSDRAM初期化完了を通知し、前記SDRAMのセルフリフレッシュ遷移が完了した時に前記電源監視手段にSDRAMセルフリフレッシュ遷移完了を通知し、
前記電源監視手段が、前記メモリコントローラからのSDRAM初期化完了通知を検知してさらにSDRAMセルフリフレッシュ遷移完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
The memory controller notifies the power supply monitoring means of the completion of the SDRAM initialization when the initialization of the SDRAM is completed, and notifies the power supply monitoring means of the completion of the SDRAM self-refresh transition to the power supply monitoring means when the self-refresh transition of the SDRAM is completed. ,
When the power supply monitoring means detects an SDRAM initialization completion notification from the memory controller and further detects an SDRAM self-refresh transition completion notification, the power supply monitoring means notifies the memory controller that the SDRAM is in a backup state. Memory control system.
請求項16に記載のメモリ制御システムにおいて、
前記SDRAMの初期化に必要なコマンドを発行させる初期化レジスタと、前記SDRAMの初期化が完了した時にセットされるSDRAM初期化完了フラグとを備え、
前記プロセッサMPUが、前記初期化レジスタをセットした後、前記SDRAM初期化完了フラグがセットされたことを検知すると前記電源監視手段にSDRAM初期化完了を通知し、
前記電源監視手段が、前記プロセッサMPUからのSDRAM初期化完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
An initialization register for issuing a command necessary for initialization of the SDRAM, and an SDRAM initialization completion flag set when the initialization of the SDRAM is completed,
When the processor MPU detects that the SDRAM initialization completion flag is set after setting the initialization register, the processor MPU notifies the power supply monitoring unit of the completion of SDRAM initialization,
A memory control system, wherein when the power supply monitoring unit detects the SDRAM initialization completion notification from the processor MPU, the power supply monitoring unit notifies the memory controller that the SDRAM is in a backup state.
請求項16に記載のメモリ制御システムにおいて、
前記SDRAMのセルフリフレッシュ遷移に必要なコマンドを発行させるセルフリフレッシュ遷移レジスタと、前記SDRAMのセルフリフレッシュ遷移が完了した時にセットされるSDRAMセルフリフレッシュ遷移完了フラグとを備え、
前記プロセッサMPUが、前記セルフリフレッシュ遷移レジスタをセットした後、前記SDRAMセルフリフレッシュ遷移完了フラグがセットされたことを検知すると前記電源監視手段にSDRAMセルフリフレッシュ遷移完了を通知し、
前記電源監視手段が、前記プロセッサMPUからのSDRAMセルフリフレッシュ遷移完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
A self-refresh transition register for issuing a command necessary for the self-refresh transition of the SDRAM; and an SDRAM self-refresh transition completion flag set when the self-refresh transition of the SDRAM is completed.
When the processor MPU detects that the SDRAM self-refresh transition completion flag is set after setting the self-refresh transition register, the processor MPU notifies the power supply monitoring unit of the completion of the SDRAM self-refresh transition,
A memory control system, wherein when the power supply monitoring means detects the SDRAM self-refresh transition completion notification from the processor MPU, it notifies the memory controller that the SDRAM is in a backup state.
請求項16に記載のメモリ制御システムにおいて、
前記SDRAMの初期化に必要なコマンドを発行させる初期化レジスタと、前記SDRAMの初期化が完了した時にセットされるSDRAM初期化完了フラグと、前記SDRAMのセルフリフレッシュ遷移に必要なコマンドを発行させるセルフリフレッシュ遷移レジスタと、前記SDRAMのセルフリフレッシュ遷移が完了した時にセットされるSDRAMセルフリフレッシュ遷移完了フラグとを備え、
前記プロセッサMPUが、前記初期化レジスタをセットした後、前記SDRAM初期化完了フラグがセットされたことを検知すると前記電源監視手段にSDRAM初期化完了を通知し、
前記プロセッサMPUが、前記セルフリフレッシュ遷移レジスタをセットした後、前記SDRAMセルフリフレッシュ遷移完了フラグがセットされたことを検知すると前記電源監視手段にSDRAMセルフリフレッシュ遷移完了を通知し、
前記電源監視手段が、前記プロセッサMPUからのSDRAM初期化完了通知を検知してさらにSDRAMセルフリフレッシュ遷移完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
An initialization register for issuing a command necessary for initializing the SDRAM, an SDRAM initialization completion flag set when the initialization of the SDRAM is completed, and a self-register for issuing a command necessary for self-refresh transition of the SDRAM. A refresh transition register, and an SDRAM self-refresh transition completion flag set when the self-refresh transition of the SDRAM is completed;
When the processor MPU detects that the SDRAM initialization completion flag is set after setting the initialization register, the processor MPU notifies the power supply monitoring unit of the completion of SDRAM initialization,
When the processor MPU detects that the SDRAM self-refresh transition completion flag is set after setting the self-refresh transition register, the processor MPU notifies the power supply monitoring unit of the completion of the SDRAM self-refresh transition,
When the power supply monitoring unit detects the SDRAM initialization completion notification from the processor MPU and further detects the SDRAM self-refresh transition completion notification, the power supply monitoring unit notifies the memory controller that the SDRAM is in a backup state. Memory control system.
請求項16に記載のメモリ制御システムにおいて、
前記SDRAMのセルフリフレッシュ遷移に必要なコマンドを発行させるセルフリフレッシュ遷移レジスタと、前記SDRAMのセルフリフレッシュ遷移が完了した時にセットされるSDRAMセルフリフレッシュ遷移完了フラグとを備え、
前記プロセッサMPUが、前記セルフリフレッシュ遷移レジスタをセットした後、前記SDRAMセルフリフレッシュ遷移完了フラグがセットされたことを検知すると前記電源監視手段にSDRAMセルフリフレッシュ遷移完了を通知し、
前記メモリコントローラが、前記SDRAMの初期化が完了した時に前記電源監視手段にSDRAM初期化完了を通知し、
前記電源監視手段が、前記メモリコントローラからのSDRAM初期化完了通知を検知してさらに前記プロセッサMPUからのSDRAMセルフリフレッシュ遷移完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
A self-refresh transition register for issuing a command necessary for the self-refresh transition of the SDRAM; and an SDRAM self-refresh transition completion flag set when the self-refresh transition of the SDRAM is completed.
When the processor MPU detects that the SDRAM self-refresh transition completion flag is set after setting the self-refresh transition register, the processor MPU notifies the power supply monitoring unit of the completion of the SDRAM self-refresh transition,
The memory controller notifies the power supply monitoring unit of the completion of the SDRAM initialization when the initialization of the SDRAM is completed,
When the power supply monitoring unit detects the SDRAM initialization completion notification from the memory controller and further detects the SDRAM self-refresh transition completion notification from the processor MPU, the power monitoring unit notifies the memory controller that the SDRAM is in the backup state. A memory control system.
請求項16に記載のメモリ制御システムにおいて、
前記SDRAMの初期化に必要なコマンドを発行させる初期化レジスタと、前記SDRAMの初期化が完了した時にセットされるSDRAM初期化完了フラグとを備え、
前記プロセッサMPUが、前記初期化レジスタをセットした後、前記SDRAM初期化完了フラグがセットされたことを検知すると前記電源監視手段にSDRAM初期化完了を通知し、
前記メモリコントローラが、前記SDRAMのセルフリフレッシュ遷移が完了した時に前記電源監視手段にSDRAMセルフリフレッシュ遷移完了を通知し、
前記電源監視手段が、前記プロセッサMPUからのSDRAM初期化完了通知を検知してさらに前記メモリコントローラからのSDRAMセルフリフレッシュ遷移完了通知を検知したら、前記SDRAMがバックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
An initialization register for issuing a command necessary for initialization of the SDRAM, and an SDRAM initialization completion flag set when the initialization of the SDRAM is completed,
When the processor MPU detects that the SDRAM initialization completion flag is set after setting the initialization register, the processor MPU notifies the power supply monitoring unit of the completion of SDRAM initialization,
The memory controller notifies the power supply monitoring means of the completion of the SDRAM self-refresh transition when the self-refresh transition of the SDRAM is completed;
When the power supply monitoring unit detects the SDRAM initialization completion notification from the processor MPU and further detects the SDRAM self-refresh transition completion notification from the memory controller, the power monitoring unit notifies the memory controller that the SDRAM is in the backup state. A memory control system.
請求項16に記載のメモリ制御システムにおいて、
前記電源監視手段が、前記主電源停電時における前記バックアップ電源の電圧低下を検知したら、前記SDRAMが非バックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
A memory control system, wherein the power supply monitoring means, when detecting a voltage drop of the backup power supply at the time of the main power failure, notifies the memory controller that the SDRAM is in a non-backup state.
請求項16に記載のメモリ制御システムにおいて、
前記電源監視手段が、前記MPUからの要求により前記SDRAMがバックアップ状態または非バックアップ状態であることを前記メモリコントローラに通知する
ことを特徴とするメモリ制御システム。
The memory control system according to claim 16,
A memory control system, wherein the power supply monitoring unit notifies the memory controller that the SDRAM is in a backup state or a non-backup state in response to a request from the MPU.
JP2003070129A 2002-10-29 2003-03-14 Memory control system Expired - Fee Related JP4078667B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003070129A JP4078667B2 (en) 2002-10-29 2003-03-14 Memory control system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002314888 2002-10-29
JP2003070129A JP4078667B2 (en) 2002-10-29 2003-03-14 Memory control system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2007312679A Division JP4747155B2 (en) 2002-10-29 2007-12-03 Memory control system

Publications (2)

Publication Number Publication Date
JP2004206661A true JP2004206661A (en) 2004-07-22
JP4078667B2 JP4078667B2 (en) 2008-04-23

Family

ID=32828222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003070129A Expired - Fee Related JP4078667B2 (en) 2002-10-29 2003-03-14 Memory control system

Country Status (1)

Country Link
JP (1) JP4078667B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020021387A (en) * 2018-08-03 2020-02-06 Tdk株式会社 Memory system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020021387A (en) * 2018-08-03 2020-02-06 Tdk株式会社 Memory system

Also Published As

Publication number Publication date
JP4078667B2 (en) 2008-04-23

Similar Documents

Publication Publication Date Title
JP4817510B2 (en) Memory controller and memory control device
JP3628588B2 (en) Method for controlling power used by a memory card in a computer system
CN100483363C (en) Semiconductor integrated circuit and power-saving control method thereof
JP4511140B2 (en) Apparatus and method for bringing memory into self-refresh state
US7177208B2 (en) Circuit and method for operating a delay-lock loop in a power saving manner
US20170018294A1 (en) Semiconductor memory device and i/o control circuit therefor
JP3302847B2 (en) Storage device
JP4803463B2 (en) Input control to memory device
KR19980073522A (en) Semiconductor memory device supporting power down mode, computer system having same and control method thereof
US6317657B1 (en) Method to battery back up SDRAM data on power failure
US20030084235A1 (en) Synchronous DRAM controller and control method for the same
TWI437419B (en) Computer system and associated sleep control method
US20090089514A1 (en) Implementing Asynchronous Request for Forcing Dynamic Memory into Self Refresh
JP4152660B2 (en) Memory backup control device
JP4078667B2 (en) Memory control system
JP4747155B2 (en) Memory control system
JP2002230970A (en) Memory control device
JP3350198B2 (en) Storage system with backup function
JP3463242B2 (en) Data processing circuit
JP2006350930A (en) Control circuit and information processor
JP2003345672A (en) Data protection system for computer, and program for data protection
JP4136076B2 (en) Memory backup control device and memory backup control method
JP3768565B2 (en) DRAM controller
JP4158569B2 (en) Information processing apparatus and information processing method
JP2006350957A (en) Control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041210

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071203

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080125

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

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4078667

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

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

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120215

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120215

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130215

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20140215

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees