[go: up one dir, main page]

CN100340992C - Memory control device for estimating memory power consumption - Google Patents

Memory control device for estimating memory power consumption Download PDF

Info

Publication number
CN100340992C
CN100340992C CNB2004100040310A CN200410004031A CN100340992C CN 100340992 C CN100340992 C CN 100340992C CN B2004100040310 A CNB2004100040310 A CN B2004100040310A CN 200410004031 A CN200410004031 A CN 200410004031A CN 100340992 C CN100340992 C CN 100340992C
Authority
CN
China
Prior art keywords
memory
random access
dynamic random
synchronous dynamic
control device
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
CNB2004100040310A
Other languages
Chinese (zh)
Other versions
CN1652086A (en
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.)
Sunplus Technology Co Ltd
Original Assignee
Sunplus Technology 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 Sunplus Technology Co Ltd filed Critical Sunplus Technology Co Ltd
Priority to CNB2004100040310A priority Critical patent/CN100340992C/en
Publication of CN1652086A publication Critical patent/CN1652086A/en
Application granted granted Critical
Publication of CN100340992C publication Critical patent/CN100340992C/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

Landscapes

  • Dram (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a memory control device capable of estimating memory power consumption, which comprises a control device, a command dispatching device, a plurality of row state machines and a power state and current accumulation device. The power state and current accumulation device control device generates a control signal according to a memory access command transmitted by a system so as to access a synchronous dynamic random access memory; the command dispatch device synchronously receives the control signal from the control device to the synchronous dynamic random access memory; the plurality of row state machines are coupled to the command dispatching device to receive the control signals dispatched by the command dispatching device and judge whether the internal state of the command dispatching device is transferred or not; the power state and current accumulation device judges the state of the synchronous dynamic random access memory according to the states of the plurality of rows of state machines so as to calculate the current consumption of the synchronous dynamic random access memory.

Description

可估测存储器功率消耗的存储器控制装置Memory control device for estimating memory power consumption

技术领域technical field

本发明是关于一种存储器控制装置,尤指一种可估测存储器功率消耗的存储器控制装置。The invention relates to a memory control device, in particular to a memory control device capable of estimating memory power consumption.

背景技术Background technique

由于半导体制程快速的演进,今日的嵌入式系统设计已进入所谓的单晶片系统(System on Chip,SOC)时代,其是将一CPU棋组、特定目的的IP及周边控制装置等构成一特定目的系统整合至一单晶片中。图1是一MPEGII单晶片解码系统的方块图,其中为加速执行速度,一般在单晶片系统系统上会放置On-chip存储器120模组,同时在MIPS模组110中会有资料快取及指令快取(图未示),然而该On-chip中存储器120、资料快取及指令快取由于制程限制,一般为8Kbyte、16Kbyte或32Kbyte。Due to the rapid evolution of semiconductor manufacturing processes, today's embedded system design has entered the so-called System on Chip (SOC) era, which consists of a CPU board, specific-purpose IP and peripheral control devices to form a specific-purpose The system is integrated into a single chip. Fig. 1 is a block diagram of an MPEGII single-chip decoding system, wherein in order to accelerate the execution speed, an On-chip memory 120 module is generally placed on the single-chip system, and there are data cache and instructions in the MIPS module 110 Cache (not shown in the figure), however, the on-chip memory 120, data cache and instruction cache are generally 8Kbyte, 16Kbyte or 32Kbyte due to process limitations.

但是一般单晶片系统的存储器需求远非该On-chip存储器120所能满足,同时也由于die面积限制,大量存储器仍无法在单晶片系统内予以实现(implement),故为了满足存储器的需求,一般会在该MPEGII单晶片解码系统外,另行增加一同步动态随机存取存储器180,以让该MIPS模组110储存暂时性的资料。然而此种架构,由于同步动态随机存取存储器180是位于该单晶片系统之外,其功率的消耗则无法的估算,一般则是使用该同步动态随机存取存储器180的Datasheet上所记载的平均功率去估算该同步动态随机存取存储器180所消耗的功率。此种方式无法正确的估算,所以已知同步动态随机存取存储器所消耗功率的估算仍有诸多缺点而有予以改进的必要。However, the memory requirements of a general single-chip system are far from being met by the On-chip memory 120. At the same time, due to the limitation of the die area, a large amount of memory cannot be implemented in a single-chip system. Therefore, in order to meet the memory requirements, generally In addition to the MPEGII single-chip decoding system, a synchronous dynamic random access memory 180 is additionally added to allow the MIPS module 110 to store temporary data. However, for this kind of architecture, since the synchronous dynamic random access memory 180 is located outside the single-chip system, its power consumption cannot be estimated. Generally, the average value recorded on the Datasheet of the synchronous dynamic random access memory 180 is used. power to estimate the power consumed by the SDRAM 180 . This method cannot be correctly estimated, so the estimation of the power consumption of the known SDR still has many shortcomings and needs to be improved.

发明内容Contents of the invention

本发明的主要目的是在提供一种可估测存储器功率消耗的存储器控制装置,以便能准确地估测存储器功率消耗,以避免已知技术仅能粗略估算的问题。The main purpose of the present invention is to provide a memory control device capable of estimating memory power consumption, so as to accurately estimate memory power consumption, and avoid the problem that the known technology can only roughly estimate.

为达成上述目的,本发明提供一种可估测存储器功率消耗的存储器控制装置,其特征在于,包括:To achieve the above object, the present invention provides a memory control device capable of estimating memory power consumption, which is characterized in that it includes:

一控制装置,是依据一系统所传送的存储器存取命令而产生控制信号,以对一同步动态随机存取存储器进行存取;A control device generates a control signal according to a memory access command sent by a system to access a synchronous dynamic random access memory;

一命令派送装置,其是同步接收由该控制装置至该同步动态随机存取存储器的控制信号;a command dispatching device, which is synchronously receiving control signals from the control device to the synchronous dynamic random access memory;

复数个排状态机,其是耦合至该命令派送装置,以接收该命令派送装置所分派的控制信号,并以判断其内部状态是否应转移;以及A plurality of row state machines, which are coupled to the command dispatching device, to receive the control signal dispatched by the command dispatching device, and to judge whether its internal state should be transferred; and

一功率状态及电流累加装置,其依据该复数个排状态机的状态以判断该同步动态随机存取存储器所属的状态,且查询一电流消耗表,进而计算该同步动态随机存取存储器的电流消耗。A power state and current accumulating device, which judges the state of the synchronous dynamic random access memory according to the state of the plurality of row state machines, and queries a current consumption table, and then calculates the current consumption of the synchronous dynamic random access memory .

其还包含一暂存器,是用以储存该同步动态随机存取存储器的电流消耗值。It also includes a register for storing the current consumption value of the synchronous dynamic random access memory.

其中,该暂存器是定期被写入该同步动态随机存取存储器的电流消耗值。Wherein, the temporary register is a current consumption value that is regularly written into the synchronous dynamic random access memory.

其中,该同步动态随机存取存储器为倍速资料传输同步动态随机存取存储器。Wherein, the synchronous dynamic random access memory is a double-speed data transmission synchronous dynamic random access memory.

附图说明Description of drawings

为进一步说明本发明的技术内容,以下结合实施例及附图详细说明如后,其中:In order to further illustrate the technical content of the present invention, the following detailed description is as follows in conjunction with the embodiments and accompanying drawings, wherein:

图1是一已知MPEGII单晶片解码系统的方块图。FIG. 1 is a block diagram of a known MPEGII single-chip decoding system.

图2是本发明的可估测存储器功率消耗的存储器控制装置的一较佳实施例的运作图。FIG. 2 is an operation diagram of a preferred embodiment of a memory control device capable of estimating memory power consumption according to the present invention.

图3是本发明随机存取存储器动态耗电估算装置的详细电路图。FIG. 3 is a detailed circuit diagram of the random access memory dynamic power consumption estimation device of the present invention.

图4是本发明A排状态机320及B排状态机的状态转移图。FIG. 4 is a state transition diagram of the row A state machine 320 and the row B state machine of the present invention.

具体实施方式Detailed ways

图2显示本发明的可估测存储器功率消耗的存储器控制装置的一较佳实施例的运作图,其中包含一存储器控制装置210、随机存取存储器动态耗电估算装置220、暂存器总线230及一同步动态随机存取存储器200。该同步动态随机存取存储器200亦可为倍速资料传输同步动态随机存取存储器(Double Data Rate SDRAM,DDR-SDRAM)。该存储器控制装置210则为一般的动态随机存取存储器的控制装置,其会产生存取该同步动态随机存取存储器200的控制信号。FIG. 2 shows an operation diagram of a preferred embodiment of a memory control device capable of estimating memory power consumption according to the present invention, which includes a memory control device 210, a random access memory dynamic power consumption estimation device 220, and a register bus 230. And a synchronous dynamic random access memory 200 . The synchronous dynamic random access memory 200 can also be a double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR-SDRAM). The memory control device 210 is a general dynamic random access memory control device, which generates a control signal for accessing the synchronous dynamic random access memory 200 .

该随机存取存储器动态耗电估算装置220是耦合至该存储器控制装置210,并监看该存储器控制装置210所送出的存取该同步动态随机存取存储器200的控制信号,以作为其内合状态机的驱动事件。The random access memory dynamic power consumption estimating device 220 is coupled to the memory control device 210, and monitors the control signal for accessing the synchronous dynamic random access memory 200 sent by the memory control device 210 as an internal combination The driving event of the state machine.

图3为该随机存取存储器动态耗电估算装置220的详细电路图,包含一命令派送装置310、一A排状态机320、一B排状态机330及一功率状态及电流累加装置340。该命令派送装置310同步接收由存储器控制装置210至同步动态随机存取存储器200的控制信号,并分派其控制信号至各对应的记忆排(memory bank)。该存储器控制装置210所传来的对同步动态随机存取存储器200的存取命令包含命令(读/写)及资料长度,而命令派送装置310则将该存取命令转为相关的记忆排的命令(读/写、长度)。3 is a detailed circuit diagram of the random access memory dynamic power consumption estimating device 220, including a command dispatching device 310, a bank A state machine 320, a bank B state machine 330, and a power state and current accumulating device 340. The command dispatching device 310 synchronously receives the control signal from the memory control device 210 to the SDMA 200, and distributes the control signal to each corresponding memory bank. The access command sent by the memory control device 210 to the synchronous dynamic random access memory 200 includes a command (read/write) and a data length, and the command dispatching device 310 converts the access command into the relevant memory row. command(read/write, length).

A排状态机320及B排状态机330由控制信号以判断状态是否应转移,图4为其状态转移图,其与该同步动态随机存取存储器200的状态图完全相同。亦即当A排状态机320及B排状态机330与该同步动态随机存取存储器200接收相同的控制信号时,其状态则与该同步动态随机存取存储器200相同。A排状态机320及B排状态机330并输出其状态给该功率状态及电流累加装置340,以判断该同步动态随机存取存储器200属于何种状态。The A-row state machine 320 and the B-row state machine 330 judge whether the state should transfer according to the control signal. FIG. That is, when the bank A state machine 320 and the bank B state machine 330 receive the same control signal as the SDR 200 , their states are the same as those of the SDR 200 . The A-row state machine 320 and the B-row state machine 330 output their states to the power state and current accumulation device 340 to determine which state the SDR 200 belongs to.

该功率状态及电流累加装置340依据A排状态机320及B排状态机330的状态及一内建的电流消耗表格341,查寻该状态时的记忆排电流消耗值,并由一累加器342加以累计。所累计电流消耗值会在一定周期时间被存入一暂存器343,系统固体(图未示)可由暂存器总线230读取该累计电流消耗值(前一时间区间),累加器342会在将累计值存入暂存器343时并清除累加器342重新累计。如此即可得知准确的存储器消耗功率。The power state and current accumulating device 340 searches the current consumption value of the memory row in this state according to the state of the A row state machine 320 and the B row state machine 330 and a built-in current consumption table 341, and adds it by an accumulator 342 Grand total. The accumulated current consumption value will be stored in a temporary register 343 in a certain period of time, and the system solid state (not shown) can read the accumulated current consumption value (previous time interval) through the temporary register bus 230, and the accumulator 342 will When the accumulated value is stored in the temporary register 343, the accumulator 342 is cleared and accumulated again. In this way, the accurate power consumption of the memory can be known.

由上述说明可知,本发明将模拟动态存储器的状态机内建于控制器内,即可同步模拟动态存储器的行为,并得知其状态。如此即可准确地计算该同步动态随机存取存储器200的功率消耗,而可逆免已知技术仅能粗略估算同步动态随机存取存储器200的功率消耗的问题。It can be seen from the above description that the present invention builds the state machine of the simulated dynamic memory into the controller, so that the behavior of the simulated dynamic memory can be synchronized and its state can be known. In this way, the power consumption of the SRAM 200 can be accurately calculated, and the problem that the known technology can only roughly estimate the power consumption of the SRAM 200 can be reversibly avoided.

上述实施例仅是为了方便说明而举例而已,本发明所主张的权利范围自应以申请专利范围所述为准,而非仅限于上述实施例。The above-mentioned embodiments are only examples for convenience of description, and the scope of rights claimed by the present invention should be based on the scope of the patent application, rather than limited to the above-mentioned embodiments.

Claims (4)

1.一种可估测存储器功率消耗的存储器控制装置,其特征在于,包括:1. A memory control device capable of estimating memory power consumption, comprising: 一控制装置,是依据一系统所传送的存储器存取命令而产生控制信号,以对一同步动态随机存取存储器进行存取;A control device generates a control signal according to a memory access command sent by a system to access a synchronous dynamic random access memory; 一命令派送装置,其是同步接收由该控制装置至该同步动态随机存取存储器的控制信号;a command dispatching device, which is synchronously receiving control signals from the control device to the synchronous dynamic random access memory; 复数个排状态机,其是耦合至该命令派送装置,以接收该命令派送装置所分派的控制信号,并以判断其内部状态是否应转移;以及A plurality of row state machines, which are coupled to the command dispatching device, to receive the control signal dispatched by the command dispatching device, and to judge whether its internal state should be transferred; and 一功率状态及电流累加装置,其依据该复数个排状态机的状态以判断该同步动态随机存取存储器所属的状态,且查询一电流消耗表,进而计算该同步动态随机存取存储器的电流消耗。A power state and current accumulating device, which judges the state of the synchronous dynamic random access memory according to the state of the plurality of row state machines, and queries a current consumption table, and then calculates the current consumption of the synchronous dynamic random access memory . 2.如权利要求1所述的可估测存储器功率消耗的存储器控制装置,其特征在于,其还包含一暂存器,是用以储存该同步动态随机存取存储器的电流消耗值。2. The memory control device capable of estimating memory power consumption as claimed in claim 1, further comprising a temporary register for storing the current consumption value of the synchronous dynamic random access memory. 3.如权利要求2所述的可估测存储器功率消耗的存储器控制装置,其特征在于,其中,该暂存器是定期被写入该同步动态随机存取存储器的电流消耗值。3 . The memory control device capable of estimating memory power consumption as claimed in claim 2 , wherein the register is a current consumption value that is regularly written into the synchronous dynamic random access memory. 4 . 4.如权利要求1所述的可估测存储器功率消耗的存储器控制装置,其特征在于,其中,该同步动态随机存取存储器为倍速资料传输同步动态随机存取存储器。4. The memory control device capable of estimating memory power consumption as claimed in claim 1, wherein the synchronous dynamic random access memory is a double-speed data transmission synchronous dynamic random access memory.
CNB2004100040310A 2004-02-04 2004-02-04 Memory control device for estimating memory power consumption Expired - Fee Related CN100340992C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100040310A CN100340992C (en) 2004-02-04 2004-02-04 Memory control device for estimating memory power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100040310A CN100340992C (en) 2004-02-04 2004-02-04 Memory control device for estimating memory power consumption

Publications (2)

Publication Number Publication Date
CN1652086A CN1652086A (en) 2005-08-10
CN100340992C true CN100340992C (en) 2007-10-03

Family

ID=34867607

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100040310A Expired - Fee Related CN100340992C (en) 2004-02-04 2004-02-04 Memory control device for estimating memory power consumption

Country Status (1)

Country Link
CN (1) CN100340992C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359305B (en) * 2007-08-01 2010-04-14 微星科技股份有限公司 Computer power measuring device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5894579A (en) * 1996-02-26 1999-04-13 International Business Machines Corporation Power management system and method
CN1214130A (en) * 1995-12-29 1999-04-14 英特尔公司 Power management appts. and method
US6446173B1 (en) * 1997-09-17 2002-09-03 Sony Corporation Memory controller in a multi-port bridge for a local area network
US20020190708A1 (en) * 1999-09-02 2002-12-19 Micron Technology, Inc. Memory device tester and method for testing reduced power states

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1214130A (en) * 1995-12-29 1999-04-14 英特尔公司 Power management appts. and method
US5894579A (en) * 1996-02-26 1999-04-13 International Business Machines Corporation Power management system and method
US6446173B1 (en) * 1997-09-17 2002-09-03 Sony Corporation Memory controller in a multi-port bridge for a local area network
US20020190708A1 (en) * 1999-09-02 2002-12-19 Micron Technology, Inc. Memory device tester and method for testing reduced power states

Also Published As

Publication number Publication date
CN1652086A (en) 2005-08-10

Similar Documents

Publication Publication Date Title
TWI252399B (en) Memory control device capable of estimating the memory power consumption
Rixner Memory controller optimizations for web servers
US7596707B1 (en) System and method for efficient power throttling in multiprocessor chip
US7149857B2 (en) Out of order DRAM sequencer
EP2901293B1 (en) Intelligent far memory bandwidth scaling
EP1836583B1 (en) Dynamic control of memory access speed
EP1369767A3 (en) Method and apparatus for adaptive power management of memory
CN105518784A (en) Data processor with memory controller for high reliability operation and method
CN101526924A (en) Method for accessing optimal digital signal processing chip data
CN1902566A (en) Method and an apparatus for power management in a computer system
CN1989478A (en) Method and apparatus for dynamic DLL powerdown and memory self-refresh
CN107391392A (en) A kind of garbage reclamation optimization method based on flash memory device Concurrent Feature
EP2015192A1 (en) A bus arbitration device
CN117827464B (en) Memory optimization method and system for hardware and software collaborative design in heterogeneous memory scenarios
CN101344812A (en) A Disk Dynamic Power Management Method Based on Embedded System
CN101271435A (en) A way to access external memory
Zheng et al. Power and performance trade-offs in contemporary DRAM system designs for multicore processors
CN1177279C (en) DRAM data maintaining method and relative device
CN100340992C (en) Memory control device for estimating memory power consumption
CN108388498B (en) Power Modeling Method and Power Management Method for In-Memory Computing
JP2009251713A (en) Cache memory control unit
CN1591290A (en) Method and apparatus for obtaining physical layer chip condition information
CN1801396A (en) Memory controller to utilize dram write buffers
CN1783203A (en) Hardware acceleration display horizontal line section device and method
CN101425044A (en) Write-through cache oriented SDRAM read-write method

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071003

Termination date: 20170204