CN1327311C - 通过数据备份节省sdram的自刷新消耗电量的方法 - Google Patents

通过数据备份节省sdram的自刷新消耗电量的方法 Download PDF

Info

Publication number
CN1327311C
CN1327311C CNB2005100596398A CN200510059639A CN1327311C CN 1327311 C CN1327311 C CN 1327311C CN B2005100596398 A CNB2005100596398 A CN B2005100596398A CN 200510059639 A CN200510059639 A CN 200510059639A CN 1327311 C CN1327311 C CN 1327311C
Authority
CN
China
Prior art keywords
sdram
data
self
storehouse
saving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005100596398A
Other languages
English (en)
Other versions
CN1710519A (zh
Inventor
金映锡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LG Electronics China Research and Development Center Co Ltd
Original Assignee
LG Electronics China Research and Development Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LG Electronics China Research and Development Center Co Ltd filed Critical LG Electronics China Research and Development Center Co Ltd
Publication of CN1710519A publication Critical patent/CN1710519A/zh
Application granted granted Critical
Publication of CN1327311C publication Critical patent/CN1327311C/zh
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/21Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements
    • G11C11/34Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices
    • G11C11/40Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors
    • G11C11/401Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming cells needing refreshing or charge regeneration, i.e. dynamic cells
    • G11C11/406Management or control of the refreshing or charge-regeneration cycles
    • G11C11/40615Internal triggering or timing of refresh, e.g. hidden refresh, self refresh, pseudo-SRAMs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/21Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements
    • G11C11/34Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices
    • G11C11/40Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors
    • G11C11/401Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming cells needing refreshing or charge regeneration, i.e. dynamic cells
    • G11C11/406Management or control of the refreshing or charge-regeneration cycles
    • G11C11/40618Refresh operations over multiple banks or interleaving
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C2211/00Indexing scheme relating to digital stores characterized by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C2211/401Indexing scheme relating to cells needing refreshing or charge regeneration, i.e. dynamic cells
    • G11C2211/406Refreshing of dynamic cells
    • G11C2211/4065Low level details of refresh operations
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C2211/00Indexing scheme relating to digital stores characterized by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C2211/401Indexing scheme relating to cells needing refreshing or charge regeneration, i.e. dynamic cells
    • G11C2211/406Refreshing of dynamic cells
    • G11C2211/4067Refresh in standby or low power modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Hardware Design (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Dram (AREA)

Abstract

本发明公开了属于节能技术的一种通过数据备份节省SDRAM的自刷新消耗电量的方法。本发明在使用SDRAM的装置从活动模式转换为睡眠模式时,将存储在SDRAM和一直使用的非挥发性存储器的库3、4的堆栈和堆区域的数据暂时备份起来,从而将现有的对1-4库的整个区域实施自刷新动作减少为只对1、2库进行,因此节省所消耗的电流量,延长使用SDRAM的便携式设备的使用时间。从而节省自刷新动作所消耗的电量,延长使用SDRAM的装置的使用时间。

Description

通过数据备份节省SDRAM的自刷新消耗电量的方法
技术领域
本发明属于节能技术,尤其是一种通过数据备份节省同步动态随机存取存储器(SDRAM)的自刷新消耗电量的方法。它通过减少使用SDRAM的装置(device)从活动模式转换为睡眠模式时为了维持保存在SDRAM的数据而实施的自刷新动作,从而节省自刷新动作所消耗的电量,延长使用SDRAM的装置(device)的使用时间。
背景技术
一般来说,同步动态随机存取存储器(SDRAM(synchronous Dynamic RandomAccess Memory))是直接接收中央处理器(CPU)所使用的主时钟而运行的记忆装置,提供64比特的数据总线,而且因各个随机存取存储器(RAM(RandomAccess Memory))都同步运行,所以运行速度比以往的RAM更快。SDRAM泛指时钟速度与微处理器同步的动态随机存取存储器(DRAM(dynamic RAM))的各种的形式,而时钟速度的同步有助于增加在规定的时间内执行的程序命令的个数。
堆(heap)是重复把记忆场所中的一部分分配到程序并回收的作用的区域,而且与严格的按后入先出(LIFO)方式运营的堆栈相比,堆的不同点是程序所要求的块的大小或要求/次数顺序都没有一定的规则。堆栈主要用于短暂记忆一些内容并迅速再利用的情况。现有的使用SDRAM(synchronous dynamic RAM)的无线终端中装置(device)在从活动模式转换为睡眠模式时,对SDRAM的整体容量进行自刷新动作。
作为另一种方法,冬眠模式(Hibernation)是装置(device)向睡眠模式转换时,追加设置与SDRAM相通容量的非挥发性(non volatile)存储器,从而在进入睡眠模式时把原先保存在SDRAM的全部数据备份在非挥发性存储器后中断对SDRAM的电源供应。
在现有技术中,在处于睡眠模式时,需对整个的SDRAM进行自刷新动作,造成了不必要的电池消耗;而把睡眠模式时的所有的数据保存在非挥发性存储器里的冬眠模式(Hibernation),还需要具备与SDRAM同样容量的非挥发性存储器。
发明内容
本发明的目的在于提供一种通过数据备份节省同步动态随机存取存储器(SDRAM(synchronous Dynamic Random Access Memory))的自刷新消耗电量的方法。其特征在于:具体步骤为:
包括设定处在睡眠模式时,只对SDRAM的库1、2进行自刷新动作的步骤;从活动模式的运行状态转换为睡眠模式的步骤;判断SDRAM里保存的数据中是否存在占用超过两个库的数据以上的堆,如果堆使用SDRAM两个库以上的保存的数据时,将SDRAM的堆所占用的数据复制到非挥发性存储器中的步骤;如果维持睡眠模式,则对上述SDRAM的库1、2进行自刷新动作的步骤;如果堆占用的数据不超过SDRAM的两个库以上时,将把使用中的堆栈数据复制到非挥发性存储器中的步骤,如果从睡眠模式转换为活动模式,则把复制到上述非挥发性存储器的堆栈的数据和堆的数据重新复制到原来位置的步骤。
本发明的有益效果是在使用SDRAM的从活动模式转换为睡眠模式时,将存储在SDRAM和一直使用的非挥发性存储器的库3、4的堆栈和堆的数据暂时备份起来,从而将现有的对1-4库的整个实施的自刷新动作减少为只对1、2库进行,因此节省所消耗的电流量,延长使用SDRAM的便携式装置的使用时间。
附图说明
图1是物理上分为4个库的SDRAM的示意图。
图2是装置处在活动模式时SDRAM上加载软件的例子。
图3是装置在使用SDRAM的睡眠模式时加载软件的例子。
图4是本发明通过数据备份节省SDRAM的自刷新消耗电量的方法运行顺序图。
***附图主要部分的符号说明***
10、20、30:SDRAM  22、32:堆栈  24、34:堆
具体实施方式
本发明提供一种通过数据备份节省SDRAM的自刷新消耗电量的方法。
下面结合附图对发明的实施例进行详细说明,
图1是物理上分为4个库的SDRAM的示意图,图2是装置处在活动模式时SDRAM上加载软件的例子,图3是装置在使用SDRAM的睡眠模式时加载软件的例子,而图4是本发明通过数据备份节省SDRAM的自刷新消耗电量的方法运行顺序图。
本发明的依据在于:使用SDRAM的装置(device)在进入睡眠状态时,大部分的应用程序都已结束,所以基本上没有超过SDRAM的两个库以上的数据的情况;还有,使用SDRAM的装置(device)常备有非挥发性存储器,而且其容量一般足够保存超过SDRAM的两个库部分的数据。
图1是物理上分为4个库的SDRAM的示意图,SDRAM的自刷新动作可以通过EMRS(Extended mode register set)设置,而且可选择设定为只对库1或库1、2或整个1-4库进行自刷新动作。通常来说,SDRAM都设定为对整个1-4库进行自刷新动作。
图2是装置处在活动模式时SDRAM上加载软件的例子。当装置(device)以活动模式运行时,根据使用者运行的应用程序,SDRAM 20的堆24和堆栈22的使用量会增加,从而显示为几乎占有库3和库4所对应的全部。除了RO、RW、ZI之外,其它的由堆栈22和堆24所共同使用,其中,堆24随着数据的增加,从ZI的上一个地址开始向上位地址递增;而堆栈随着数据的增加,则从最上位地址向下位地址递增。作为库1、2的RO、RW、ZI,即使处在睡眠模式时也需进行自刷新动作来维持数据,而如图2所示,除堆栈22和堆24之外的部分是可遗弃的。
图3是装置在使用SDRAM30的睡眠模式时加载软件的例子。当装置进入睡眠模式前,大部分的应用程序都会结束,而只保留管理装置(device)的最少量的应用程序,所以SDRAM 30的堆34和堆栈32的使用量明显减少,显示为只使用库3的少数部分或者库4的一部分堆栈32。与图2的活动模式不同,与活动模式时相比,装置处于睡眠模式时保存在SDRAM 30的库3、4的数据几乎不存在。
本发明利用了当使用电池启动的SDRAM装置进入睡眠模式时,一般使用不了SDRAM的1/2以上数据的特点,而且如果超过1/2时,只对超过的部分在非挥发性存储器中做备份后,对作为SDRAM的RO、RW、ZI的1、2库进行自刷新动作,从而节省电流消耗。
图4是本发明通过数据备份节省SDRAM的自刷新消耗电量的方法运行顺序图。首先,如图4的EMRS表中的说明,把A0、A1、A2设定为1、0、0 40,从而只对SDRAM的库1和库2进行自刷新动作(ST50)。
使用SDRAM的装置以活动模式运行完毕之后转换为睡眠模式时,判断SDRAM里保存的数据中是否存在占用超过两个库的数据以上的堆34。即,判断是否占用了库3、4(ST52、ST54)。如果堆34使用SDRAM的两个库以上的保存的数据时,将SDRAM的堆34所占用的数据复制到非挥发性存储器中(ST58)。另外,堆34使用的数据不超过SDRAM的两个库以上时,将把使用中的堆栈数据复制到非挥发性存储器中(ST60)。即,把保存在SDRAM的库3、4中的数据复制保存在非挥发性存储器中。SDRAM处在睡眠模式时,只对库1和库2进行自刷新动作来维持数据(ST62)。
装置(device)在维持一段时间的睡眠模式并再次转换为活动模式时,把步骤(ST58~60)中备份在非挥发性存储器中的数据,重新复制到SDRAM,从而以活动模式运行(ST64~ST68)。
另外,从活动模式转换为睡眠模式时,如果根本没有超过两个库的数据,所以不必要做备份时,就直接以活动模式运行(ST64、ST66)。
综上所述,本发明是涉及一种使用电池的装置(device)节省为了维持SDRAM的数据而进行的自刷新动作所消耗的电流量的方法。考虑到SDRAM的特性,比起对SDRAM的1-4的整个库进行自刷新动作,节省1/2的电流消耗量,而且现有的冬眠模式中需要的非挥发性存储器的量也会减少,还可以最大限度地减少对SDRAM的整个的数据做备份所用的时间。
表1所示为可设定SDRAM的自刷新的EMRS(Extended mode register set)表的例子,在此,如果把A0、A1、A2设定为1、0、0 40时,装置在睡眠模式时只对库1,2进行自刷新动作。如果把A0、A1、A2,设定为0、1、0时,只对库1进行自刷新动作;而如果把A0、A1、A2设定为0、0、0时,对整个1-4库进行自刷新动作。
表1
寄存器程序的扩展模式寄存器设置
地址 BA1  BA0 A11(A12*1)~A10/AP  A9 A8  A7 A6  A5 A4 A3  A2  A1  A0
功能 模式选择 RFU    TCSR       PASR
部分阵列自刷新(PASR)&温度补偿自刷新(TCSR)的扩展模式寄存器设置
Figure C20051005963900071

Claims (2)

1.一种通过数据备份节省SDRAM的自刷新消耗电量的方法,其特征在于:包括设定装置处在睡眠模式时,只对SDRAM的库1、2进行自刷新动作的步骤;从活动模式的运行状态转换为睡眠模式的步骤;判断SDRAM里保存的数据中是否存在占用超过两个库的数据以上的堆,如果堆使用SDRAM的两个库以上的保存的数据时,将SDRAM的堆所占用的数据复制到非挥发性存储器中的步骤;如果装置维持睡眠模式,则对上述SDRAM的库1、2进行自刷新动作的步骤;如果堆占用的数据不超过SDRAM的两个库以上时,将把使用中的堆栈数据复制到非挥发性存储器中的步骤,如果从睡眠模式转换为活动模式,则把复制到上述非挥发性存储器的堆栈的数据和堆的数据重新复制到原来位置的步骤。
2.根据权利要求1所述的通过数据备份节省SDRAM的自刷新消耗电量的方法,其特征在于:如果在上述SDRAM中存在超过两个库以上的数据时,把上述数据复制到非挥发性存储器的过程包括把占用上述SDRAM的库3、4的堆栈的数据和堆的数据复制保存在非挥发性存储器的步骤。
CNB2005100596398A 2004-06-18 2005-03-30 通过数据备份节省sdram的自刷新消耗电量的方法 Expired - Fee Related CN1327311C (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020040045660A KR20050120344A (ko) 2004-06-18 2004-06-18 데이터 백업에 의한 에스디램의 셀프 리프레쉬 소모전류절감 방법
KR1020040045660 2004-06-18

Publications (2)

Publication Number Publication Date
CN1710519A CN1710519A (zh) 2005-12-21
CN1327311C true CN1327311C (zh) 2007-07-18

Family

ID=35706768

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100596398A Expired - Fee Related CN1327311C (zh) 2004-06-18 2005-03-30 通过数据备份节省sdram的自刷新消耗电量的方法

Country Status (2)

Country Link
KR (1) KR20050120344A (zh)
CN (1) CN1327311C (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10013371B2 (en) 2005-06-24 2018-07-03 Google Llc Configurable memory circuit system and method
US7613941B2 (en) * 2005-12-29 2009-11-03 Intel Corporation Mechanism for self refresh during advanced configuration and power interface (ACPI) standard C0 power state
US7613060B2 (en) * 2007-05-21 2009-11-03 Micron Technology, Inc. Methods, circuits, and systems to select memory regions
US7929368B2 (en) 2008-12-30 2011-04-19 Micron Technology, Inc. Variable memory refresh devices and methods
US20110296095A1 (en) * 2010-05-25 2011-12-01 Mediatek Inc. Data movement engine and memory control methods thereof
US9014749B2 (en) * 2010-08-12 2015-04-21 Qualcomm Incorporated System and method to initiate a housekeeping operation at a mobile device
KR101307557B1 (ko) * 2012-03-09 2013-09-12 엘지디스플레이 주식회사 표시장치와 그의 패널 셀프 리프레시 동작 제어방법
US9236110B2 (en) * 2012-06-30 2016-01-12 Intel Corporation Row hammer refresh command
US9384821B2 (en) 2012-11-30 2016-07-05 Intel Corporation Row hammer monitoring based on stored row hammer threshold value
KR102049265B1 (ko) 2012-11-30 2019-11-28 삼성전자주식회사 최대절전 모드를 가지는 시스템 및 그 동작방법
TWI506443B (zh) 2012-12-27 2015-11-01 Mediatek Inc 處理器與週邊裝置之間的媒介週邊介面及其通信方法
WO2015030751A1 (en) * 2013-08-28 2015-03-05 Hewlett-Packard Development Company, L.P. Refresh rate adjust
CN105531681A (zh) * 2014-06-05 2016-04-27 联发科技股份有限公司 存储装置、存储系统以及存储装置控制方法
KR102276374B1 (ko) 2015-01-09 2021-07-14 삼성전자주식회사 PoP 구조의 반도체 패키지 및 그에 따른 리프레쉬 제어방법
US20190066765A1 (en) * 2017-08-23 2019-02-28 Nanya Technology Corporation Dram and method for operating the same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0689127A1 (en) * 1994-06-21 1995-12-27 Sony Corporation Recording and/or reproducing system and data backup system
US6212599B1 (en) * 1997-11-26 2001-04-03 Intel Corporation Method and apparatus for a memory control system including a secondary controller for DRAM refresh during sleep mode
CN1450434A (zh) * 2002-04-05 2003-10-22 三菱电机株式会社 谋求减少消耗电流的存储器备用控制装置
CN1479209A (zh) * 2003-07-25 2004-03-03 北京港湾网络有限公司 保持同步动态随机存取存储器存储信息的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0689127A1 (en) * 1994-06-21 1995-12-27 Sony Corporation Recording and/or reproducing system and data backup system
US6212599B1 (en) * 1997-11-26 2001-04-03 Intel Corporation Method and apparatus for a memory control system including a secondary controller for DRAM refresh during sleep mode
CN1450434A (zh) * 2002-04-05 2003-10-22 三菱电机株式会社 谋求减少消耗电流的存储器备用控制装置
CN1479209A (zh) * 2003-07-25 2004-03-03 北京港湾网络有限公司 保持同步动态随机存取存储器存储信息的方法

Also Published As

Publication number Publication date
CN1710519A (zh) 2005-12-21
KR20050120344A (ko) 2005-12-22

Similar Documents

Publication Publication Date Title
CN1327311C (zh) 通过数据备份节省sdram的自刷新消耗电量的方法
US6732241B2 (en) Technique for migrating data between storage devices for reduced power consumption
US7380048B2 (en) System and method for managing data in memory for reducing power consumption
US5148546A (en) Method and system for minimizing power demands on portable computers and the like by refreshing selected dram cells
TWI420304B (zh) 資料搬移引擎和記憶體控制方法
US10365842B2 (en) System and method for reducing power consumption of memory
KR102021401B1 (ko) 메모리 장치
JP4765222B2 (ja) Dram装置
CN101185066A (zh) 计算装置中的存储管理
WO2000054159A1 (en) Method and system for selective dram refresh to reduce power consumption
CN104885034A (zh) 经由使用非易失性存储器来降低易失性存储器的功耗
CN101103415A (zh) 用于使刷新操作对易失性存储器性能的影响最小化的方法及系统
US20070006000A1 (en) Using fine-grained power management of physical system memory to improve system sleep
CN106406767A (zh) 一种非易失性双列直插式存储器及存储方法
WO2014070264A1 (en) System and method for dynamic memory power management
CN107369464B (zh) 存储模块及包括其的系统
CN108140406A (zh) 存储器控制器与存储器之间的自刷新定时器同步
CN113383317B (zh) 一种处理装置、方法及相关设备
CN104571933A (zh) 具固态储存元件的电子装置及其相关控制方法
WO2005069148A3 (en) Memory management method and related system
CN109782888A (zh) Dram数据的掉电保护电路、电子设备和方法
CN101000798B (zh) 存储器刷新方法及存储器刷新系统
CN100470669C (zh) 通过控制存储器延长便携装置的使用时间的方法
US6862238B1 (en) Memory system with reduced refresh current
CN102034526B (zh) 一种用fpga实现的sdram刷新的方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070718