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

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

Info

Publication number
CN1710519A
CN1710519A CNA2005100596398A CN200510059639A CN1710519A CN 1710519 A CN1710519 A CN 1710519A CN A2005100596398 A CNA2005100596398 A CN A2005100596398A CN 200510059639 A CN200510059639 A CN 200510059639A CN 1710519 A CN1710519 A CN 1710519A
Authority
CN
China
Prior art keywords
sdram
self
data
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.)
Granted
Application number
CNA2005100596398A
Other languages
English (en)
Other versions
CN1327311C (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

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的装置(device)从活动模式进入睡眠模式时,判断SDRAM的4个库中是否存在超过2个库的数据,如果没有超过2个库的数据时,只把堆栈部分备份到非挥发性存储器中并对SDRAM中保存有数据的2个库进行自刷新的步骤;如果有超过2个库的数据时,只把超过2个库的数据备份到非挥发性存储器中并对SDRAM的2个库进行自刷新动作的步骤,如果装置从睡眠模式转换为活动模式,则把复制到上述非挥发性存储器的数据从新复制到原来位置的步骤。
本发明的有益效果是在使用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、040,从而只对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、040时,装置在睡眠模式时只对库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)的扩展模式寄存器设置

Claims (2)

1.一种通过数据备份节省SDRAM的自刷新消耗电量的方法,其特征在于:包括设定装置处在睡眠模式时,只对SDRAM的库1、2进行自刷新动作的步骤;装置从活动模式的运行状态转换为睡眠模式的步骤;如果在装置所使用的上述SDRAM中有超过两个库以上的数据时,把上述数据复制到非挥发性存储器的步骤;如果装置维持睡眠模式,则对上述SDRAM的库1、2进行自刷新动作的步骤;如果装置从睡眠模式转换为活动模式,则把复制到上述非挥发性存储器的数据从新复制到原来位置的步骤。
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 true CN1710519A (zh) 2005-12-21
CN1327311C 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101346709B (zh) * 2005-12-29 2011-10-05 英特尔公司 用于存储器进入自刷新的方法、装置和系统
CN102262593A (zh) * 2010-05-25 2011-11-30 联发科技股份有限公司 数据搬移引擎和存储器控制方法
CN102272849A (zh) * 2008-12-30 2011-12-07 美光科技公司 可变存储器刷新装置和方法
CN101743597B (zh) * 2007-05-21 2013-03-27 美光科技公司 用以选择存储器区域的方法、电路及系统
CN103098139A (zh) * 2010-08-12 2013-05-08 高通股份有限公司 用以在移动装置处起始内务操作的系统及方法
CN103310723A (zh) * 2012-03-09 2013-09-18 乐金显示有限公司 显示设备和控制该显示设备的面板自刷新操作的方法
WO2015185017A1 (en) * 2014-06-05 2015-12-10 Mediatek Inc. Storage apparatus, storage system, storage apparatus controlling method
US9588543B2 (en) 2012-12-27 2017-03-07 Mediatek Inc. Media peripheral interface, electronic device with media peripheral interface, and communication method between processor and peripheral device
CN109427383A (zh) * 2017-08-23 2019-03-05 南亚科技股份有限公司 动态随机存取存储器及其操作方法

Families Citing this family (6)

* 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
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 삼성전자주식회사 최대절전 모드를 가지는 시스템 및 그 동작방법
EP3039683A1 (en) * 2013-08-28 2016-07-06 Hewlett Packard Enterprise Development LP Refresh rate adjust
KR102276374B1 (ko) 2015-01-09 2021-07-14 삼성전자주식회사 PoP 구조의 반도체 패키지 및 그에 따른 리프레쉬 제어방법

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5689732A (en) * 1994-06-21 1997-11-18 Sony Corporation Apparatus for recording and reproducing data having a single recording and reproducing unit and a plurality of detachable interfaces for connecting to different types of computer ports
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
JP4152660B2 (ja) * 2002-04-05 2008-09-17 三菱電機株式会社 メモリバックアップ制御装置
CN1479209A (zh) * 2003-07-25 2004-03-03 北京港湾网络有限公司 保持同步动态随机存取存储器存储信息的方法

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101346709B (zh) * 2005-12-29 2011-10-05 英特尔公司 用于存储器进入自刷新的方法、装置和系统
CN101743597B (zh) * 2007-05-21 2013-03-27 美光科技公司 用以选择存储器区域的方法、电路及系统
CN102272849A (zh) * 2008-12-30 2011-12-07 美光科技公司 可变存储器刷新装置和方法
US8797818B2 (en) 2008-12-30 2014-08-05 Micron Technology, Inc. Variable memory refresh devices and methods
CN102262593A (zh) * 2010-05-25 2011-11-30 联发科技股份有限公司 数据搬移引擎和存储器控制方法
CN103098139A (zh) * 2010-08-12 2013-05-08 高通股份有限公司 用以在移动装置处起始内务操作的系统及方法
CN103310723A (zh) * 2012-03-09 2013-09-18 乐金显示有限公司 显示设备和控制该显示设备的面板自刷新操作的方法
CN103310723B (zh) * 2012-03-09 2016-05-11 乐金显示有限公司 显示设备和控制该显示设备的面板自刷新操作的方法
US9588543B2 (en) 2012-12-27 2017-03-07 Mediatek Inc. Media peripheral interface, electronic device with media peripheral interface, and communication method between processor and peripheral device
WO2015185017A1 (en) * 2014-06-05 2015-12-10 Mediatek Inc. Storage apparatus, storage system, storage apparatus controlling method
CN105531681A (zh) * 2014-06-05 2016-04-27 联发科技股份有限公司 存储装置、存储系统以及存储装置控制方法
CN109427383A (zh) * 2017-08-23 2019-03-05 南亚科技股份有限公司 动态随机存取存储器及其操作方法

Also Published As

Publication number Publication date
KR20050120344A (ko) 2005-12-22
CN1327311C (zh) 2007-07-18

Similar Documents

Publication Publication Date Title
CN1710519A (zh) 通过数据备份节省sdram的自刷新消耗电量的方法
US6732241B2 (en) Technique for migrating data between storage devices for reduced power consumption
US6738861B2 (en) System and method for managing data in memory for reducing power consumption
US6094705A (en) Method and system for selective DRAM refresh to reduce power consumption
US5148546A (en) Method and system for minimizing power demands on portable computers and the like by refreshing selected dram cells
US20070006000A1 (en) Using fine-grained power management of physical system memory to improve system sleep
US20170052727A1 (en) System and method for reducing power consumption of memory
US6948029B2 (en) DRAM device and refresh control method therefor
US7010656B2 (en) Method and apparatus for memory management
EP1979818A1 (en) Reducing power consumption by disabling refresh of unused portions of dram during periods of device inactivity
CN106406767A (zh) 一种非易失性双列直插式存储器及存储方法
CN101185066A (zh) 计算装置中的存储管理
CN101937321B (zh) 一种实现混合缓存的方法和装置
US20070294550A1 (en) Memory Management With Defragmentation In A Computing Device
CN107369464B (zh) 存储模块及包括其的系统
WO2005069148A3 (en) Memory management method and related system
CN1177279C (zh) 维持动态随机存取存储器的存储数据的方法及相关装置
CN106168926B (zh) 基于linux伙伴系统的内存分配方法
CN101000798B (zh) 存储器刷新方法及存储器刷新系统
CN1710664A (zh) 通过控制存储器延长便携装置的使用时间的方法
CN102034526B (zh) 一种用fpga实现的sdram刷新的方法
CN104166523A (zh) 一种存储器及提高计算机系统加载数据速率的方法
CN100383735C (zh) 嵌入式系统中基于sram的局部变量支持方法
Du et al. Adaptive energy-aware design of a multi-bank flash-memory storage system
US11556253B1 (en) Reducing power consumption by selective memory chip hibernation

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