[go: up one dir, main page]

JP2002229864A - Semiconductor device - Google Patents

Semiconductor device

Info

Publication number
JP2002229864A
JP2002229864A JP2001021322A JP2001021322A JP2002229864A JP 2002229864 A JP2002229864 A JP 2002229864A JP 2001021322 A JP2001021322 A JP 2001021322A JP 2001021322 A JP2001021322 A JP 2001021322A JP 2002229864 A JP2002229864 A JP 2002229864A
Authority
JP
Japan
Prior art keywords
data
dram
semiconductor device
saving mode
storage means
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.)
Pending
Application number
JP2001021322A
Other languages
Japanese (ja)
Inventor
Hiroyuki Takeuchi
裕之 竹内
Fumio Sumi
史生 角
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001021322A priority Critical patent/JP2002229864A/en
Publication of JP2002229864A publication Critical patent/JP2002229864A/en
Pending legal-status Critical Current

Links

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

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To save power consumption by eliminating the need of ensuring an extra area in a SRAM as a area for saving data stored in a DRAM to the SRAM during shifting to a power saving mode, in a semiconductor device provided with the DRAM and the SRAM. SOLUTION: When a power saving mode shift command is inputted, a stack saving processing portion 105 saving data stored in the DRAM 103 in a stack area 102b of the SRAM 102. After the data stored in the DRAM 103 is saved in the stack area 102b of the SRAM 102, a power saving mode shift processing portion 104 stops a refresh action of the DRAM 103, and shifts to the power saving mode.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、第1および第2の
記憶手段を備えた半導体装置において、通常モードから
省電力モードに移行する際、第1の記憶手段に格納され
たデータを第2の記憶手段に退避させ、第1の記憶手段
の動作を停止することにより消費電力を削減する技術に
属する。
BACKGROUND OF THE INVENTION The present invention relates to a semiconductor device having first and second storage means, which stores data stored in the first storage means in a second mode when the mode shifts from the normal mode to the power saving mode. And saves power to the first storage means, thereby reducing power consumption.

【0002】[0002]

【従来の技術】半導体装置全体の消費電力を削減する従
来の半導体装置の構成およびその動作を説明する。ここ
では、例えば、第1の記憶手段をダイナミックランダム
アクセスメモリ(以下、DRAMと略称する)とし、第
2の記憶手段をスタティックランダムアクセスメモリ
(以下、SRAMと略称する)とした場合について、図
7、図8を参照しながら説明する。図7は、従来の省電
力モードを備えた半導体装置のブロック図であり、図8
は図7に示す半導体装置の動作を示すフローチャートで
ある。
2. Description of the Related Art The structure and operation of a conventional semiconductor device for reducing the power consumption of the entire semiconductor device will be described. Here, for example, the case where the first storage means is a dynamic random access memory (hereinafter abbreviated as DRAM) and the second storage means is a static random access memory (hereinafter abbreviated as SRAM) is shown in FIG. This will be described with reference to FIG. FIG. 7 is a block diagram of a conventional semiconductor device having a power saving mode.
8 is a flowchart showing the operation of the semiconductor device shown in FIG.

【0003】図7の半導体装置は、バス600と、CP
U601と、変数領域602aおよびDRAMデータ退
避用変数領域602cを有するSRAM602と、DR
AM603と、省電力モード移行処理部604と、変数
領域退避処理部605とを備えるものである。
[0003] The semiconductor device shown in FIG.
U601, an SRAM 602 having a variable area 602a and a DRAM data saving variable area 602c,
An AM 603, a power saving mode shift processing unit 604, and a variable area saving processing unit 605 are provided.

【0004】バス600は、CPU601と、SRAM
602と、DRAM603などを結ぶ共通結線である。
A bus 600 includes a CPU 601 and an SRAM.
602 and a common connection connecting the DRAM 603 and the like.

【0005】CPU601は、SRAM602やDRA
M603から、バス600を介してデータを入力して各
種データ処理を行ない、処理したデータを、バス600
を介して再びSRAM602やDRAM603に格納す
る。
[0005] The CPU 601 includes an SRAM 602 and a DRA.
Data is input from the M603 via the bus 600 to perform various data processing, and the processed data is
Again in the SRAM 602 or the DRAM 603.

【0006】SRAM602は、DRAM603と比較
して、動作周波数は高く、消費電力は小さい反面、単位
記憶容量当たりの製造コストが高いため、記憶容量は小
さい。SRAM602の変数領域602aは、通常動作
時において、各種データ処理をした際のグローバル変数
等を保存する領域である。SRAM602のDRAMデ
ータ退避用変数領域602cは、半導体装置が省電力モ
ードに移行する場合、DRAM603に格納されたデー
タを格納する。半導体装置が通常モードに復帰する場合
には、DRAMデータ退避用変数領域602cに格納し
たデータはDRAM603に書き戻される。
The SRAM 602 has a higher operating frequency and lower power consumption than the DRAM 603, but has a small storage capacity due to a high manufacturing cost per unit storage capacity. The variable area 602a of the SRAM 602 is an area for storing global variables and the like when performing various data processing during normal operation. The DRAM data saving variable area 602c of the SRAM 602 stores data stored in the DRAM 603 when the semiconductor device shifts to the power saving mode. When the semiconductor device returns to the normal mode, the data stored in the DRAM data saving variable area 602c is written back to the DRAM 603.

【0007】DRAM603は、SRAM602と比較
して、動作周波数は低く、消費電力は大きい反面、単位
記憶容量当たりの製造コストが低いため、記憶容量は大
きい。
The DRAM 603 has a lower operating frequency and higher power consumption than the SRAM 602, but has a large storage capacity because the manufacturing cost per unit storage capacity is low.

【0008】省電力モード移行処理部604は、DRA
M603に格納されたデータがDRAMデータ退避用変
数領域602cに退避された後に、DRAM603のリ
フレッシュ動作を停止させ、半導体装置を通常モードか
ら省電力モードに移行する処理を行なう。
[0008] The power saving mode shift processing unit 604 has a DRA
After the data stored in the M603 is saved in the DRAM data save variable area 602c, the refresh operation of the DRAM 603 is stopped, and the semiconductor device is shifted from the normal mode to the power saving mode.

【0009】変数領域退避処理部605は、省電力モー
ド移行命令が入力されると、DRAM603に格納され
たデータを、DRAMデータ退避用変数領域602cに
退避する処理を行なう。また、省電力モードから復帰す
るとき、DRAMデータ退避用変数領域602cからD
RAM603にデータを戻す処理を行なう。
When a command to shift to the power saving mode is input, the variable area saving processing unit 605 performs processing for saving data stored in the DRAM 603 to the DRAM data saving variable area 602c. When returning from the power saving mode, the DRAM data saving variable area 602c
A process of returning data to the RAM 603 is performed.

【0010】以下、以上のように構成された従来の半導
体装置の動作を、図8を参照しながら説明する。
Hereinafter, the operation of the conventional semiconductor device configured as described above will be described with reference to FIG.

【0011】まず、ステップST701において、省電
力モードへの移行命令が半導体装置に入力されると、半
導体装置は省電力モードへの移行を開始する。そして、
ステップST702において、DRAM603にデータ
が格納されているか否かを判定する。
First, in step ST701, when a command to shift to the power saving mode is input to the semiconductor device, the semiconductor device starts shifting to the power saving mode. And
In step ST702, it is determined whether or not data is stored in the DRAM 603.

【0012】ステップST702において、DRAM6
03にデータが格納されていると判定された場合は、ス
テップST703において、DRAMデータ退避用変数
領域602cにDRAM603に格納されたデータを退
避するだけの空き容量があるか否かを判定する。そし
て、DRAMデータ退避用変数領域602cに退避する
だけの空き容量があると判定されたときは、ステップS
T704において、DRAM603に格納されたデータ
をDRAMデータ退避用変数領域602cに退避する。
その後、ステップST705において、DRAM603
のリフレッシュ動作を停止し、ステップST706に進
む。一方、DRAMデータ退避用変数領域602cに退
避するだけの空き容量がないと判定されたときは、退避
を行なわないで、ステップST706に進む。
In step ST702, DRAM 6
If it is determined that the data stored in the DRAM 603 is stored in the DRAM data saving variable area 602c, it is determined in step ST703 whether or not there is enough free space for saving the data stored in the DRAM 603. If it is determined that there is free space in the DRAM data saving variable area 602c to save, the process proceeds to step S
At T704, the data stored in the DRAM 603 is saved in the DRAM data saving variable area 602c.
Thereafter, in step ST705, the DRAM 603
Is stopped, and the process proceeds to Step ST706. On the other hand, if it is determined that there is not enough free space to save in the DRAM data saving variable area 602c, the process proceeds to step ST706 without saving.

【0013】一方、ステップST702において、DR
AM603にデータが格納されていないと判定された場
合に、ステップST705において、DRAM603の
リフレッシュ動作を停止する。リフレッシュ動作の停止
後、ステップST706に進む。
On the other hand, in step ST702, DR
If it is determined that no data is stored in the AM 603, the refresh operation of the DRAM 603 is stopped in step ST705. After stopping the refresh operation, the process proceeds to Step ST706.

【0014】ステップST706において、省電力モー
ドへ移行する処理を行なう。
In step ST706, processing for shifting to the power saving mode is performed.

【0015】省電力モードで動作中に、ステップST7
07において、復帰割り込み信号が入力されると、半導
体装置の動作モードを省電力モードから通常モードに復
帰させる処理を開始する。
During operation in the power saving mode, step ST7
At 07, when a return interrupt signal is input, processing for returning the operation mode of the semiconductor device from the power saving mode to the normal mode is started.

【0016】まず、ステップST708において、DR
AM603のリフレッシュ動作が停止されているか否か
を判定する。リフレッシュ動作が停止されているとき
は、ステップST709において、DRAM603のリ
フレッシュ動作を再開し、ステップST710に進む。
一方、リフレッシュ動作が停止されていないときは、そ
のままステップST710に進む。
First, in step ST708, DR
It is determined whether the refresh operation of the AM 603 has been stopped. If the refresh operation has been stopped, in step ST709, the refresh operation of the DRAM 603 is restarted, and the process proceeds to step ST710.
On the other hand, when the refresh operation has not been stopped, the process directly proceeds to step ST710.

【0017】ステップST710において、DRAMデ
ータ退避用変数領域602cにデータを退避させている
か否かを判定する。DRAMデータ退避用変数領域60
2cにデータが退避されているときは、ステップST7
11において、DRAMデータ退避用変数領域602c
に退避されたデータをDRAM603に戻し、ステップ
ST712に進む。一方、DRAMデータ退避用変数領
域602cにデータが退避されていないときは、そのま
まステップST712に進む。
In step ST710, it is determined whether or not data has been saved in the DRAM data saving variable area 602c. Variable area 60 for saving DRAM data
If the data has been saved to 2c, step ST7
11, the DRAM data saving variable area 602c
Is returned to the DRAM 603, and the process proceeds to step ST712. On the other hand, if the data has not been saved in the DRAM data saving variable area 602c, the process directly proceeds to step ST712.

【0018】ステップST712において、省電力モー
ドから通常モードに復帰する処理を行なう。
In step ST712, a process for returning from the power saving mode to the normal mode is performed.

【0019】以上のように、従来の省電力モードを備え
た半導体装置において、SRAMにDRAMデータ退避
用変数領域を余分に確保して、通常モードから省電力モ
ードに移行する場合、DRAMに格納されたデータをS
RAMのDRAMデータ退避用変数領域に退避させ、D
RAMのリフレッシュ動作を停止する。これにより、半
導体装置全体としての消費電力を削減していた。
As described above, in the conventional semiconductor device having the power saving mode, when an extra variable area for saving DRAM data is secured in the SRAM and the normal mode is shifted to the power saving mode, the data is stored in the DRAM. Data
Save to the DRAM data save variable area of the RAM,
Stop the refresh operation of the RAM. As a result, the power consumption of the entire semiconductor device has been reduced.

【0020】[0020]

【発明が解決しようとする課題】しかしながら、上記従
来の構成では、通常モードから省電力モード移行時に、
DRAMに格納されたデータをSRAMに退避させる領
域として、SRAMの変数領域にDRAMデータ退避用
の記憶領域を余分に確保する必要があった。このため、
記憶容量が増大し、LSI規模が大きくなるという問題
を有していた。また、SRAMはDRAMに比べ高価で
あるため、製造コストが高くなるという問題を有してい
た。
However, in the above-described conventional configuration, when shifting from the normal mode to the power saving mode,
As an area for saving data stored in the DRAM to the SRAM, it is necessary to secure an extra storage area for saving the DRAM data in the variable area of the SRAM. For this reason,
There is a problem that the storage capacity increases and the LSI scale increases. In addition, since the SRAM is more expensive than the DRAM, there is a problem that the manufacturing cost is increased.

【0021】そこで、これらの問題に鑑み、本発明は、
DRAMなどの第1の記憶手段に格納されたデータをS
RAMなどの第2の記憶手段に退避する場合、第2の記
憶手段に領域を余分に確保することなく、消費電力の削
減可能な半導体装置を提供することを課題とする。
Accordingly, in view of these problems, the present invention provides:
The data stored in the first storage means such as a DRAM is
An object of the present invention is to provide a semiconductor device capable of reducing power consumption without reserving an extra area in the second storage means when saving to a second storage means such as a RAM.

【0022】[0022]

【課題を解決するための手段】上記課題を解決するため
に、請求項1に係る半導体装置は、第1の記憶手段と、
スタック領域を有する第2の記憶手段と、省電力モード
移行命令が入力されるとき、第1の記憶手段に格納され
たデータを、スタック領域に退避させる制御を行なうス
タック退避制御手段と、第1の記憶手段に格納されたデ
ータがスタック領域に退避された後に、第1の記憶手段
の動作を停止し、省電力モードへ移行する制御を行なう
省電力モード移行制御手段とを備えるものである。
According to a first aspect of the present invention, there is provided a semiconductor device comprising: a first storage unit;
A second storage unit having a stack area, a stack evacuation control unit for performing control to save data stored in the first storage unit to the stack area when a power saving mode shift instruction is input, After the data stored in the storage unit is saved in the stack area, the operation of the first storage unit is stopped, and the control unit shifts to the power saving mode.

【0023】これによると、第1の記憶手段に格納され
たデータを第2の記憶手段のスタック領域に退避させる
ことで、データ退避用の記憶領域を第2の記憶手段に余
分に確保する必要がなくなる。このため、記憶容量を増
大することなく、また、製造コストを高くすることな
く、半導体装置全体として消費電力を削減することがで
きる。
According to this, by storing the data stored in the first storage means in the stack area of the second storage means, it is necessary to secure an extra storage area for data saving in the second storage means. Disappears. Therefore, power consumption of the semiconductor device as a whole can be reduced without increasing the storage capacity and without increasing the manufacturing cost.

【0024】また、上記課題を解決するために、請求項
2に係る半導体装置は、第1の記憶手段は、ダイナミッ
クランダムアクセスメモリであり、第2の記憶手段は、
スタティックランダムアクセスメモリであり、省電力モ
ード移行制御手段は、ダイナミックランダムアクセスメ
モリのリフレッシュ動作を停止して、ダイナミックラン
ダムアクセスメモリの動作を停止するものである。
According to another aspect of the present invention, the first storage means is a dynamic random access memory, and the second storage means is:
A static random access memory, wherein the power saving mode transition control means stops the refresh operation of the dynamic random access memory and stops the operation of the dynamic random access memory.

【0025】また、上記課題を解決するために、請求項
3に係る半導体装置は、第1の記憶手段は、データとデ
ータに対応したタグデータを格納したものであり、省電
力モード移行命令が入力されるとき、タグデータをスタ
ック領域に退避させる一方、省電力モードから復帰する
とき、タグデータを用いてタグデータに対応するデータ
を獲得し、獲得したデータを第1の記憶手段に復元する
制御を行なうデータ復元制御手段をさらに備えるもので
ある。
According to a third aspect of the present invention, in the semiconductor device according to the third aspect, the first storage means stores data and tag data corresponding to the data. When input, the tag data is saved in the stack area, and when returning from the power saving mode, data corresponding to the tag data is acquired using the tag data, and the acquired data is restored in the first storage means. It further comprises data restoration control means for performing control.

【0026】これによると、第1の記憶手段に格納され
たタグデータを用いれば、タグデータに対応するデータ
を復元することができるので、第1の記憶手段に格納さ
れたタグデータに対応するデータ量がスタック領域の空
き領域の容量よりも大きい場合でも、データ退避が実現
できる。このため、第1の記憶手段の動作を停止する確
率を高め、第2の記憶手段にデータ退避用の変数領域を
余分に確保することなく、半導体装置全体として消費電
力をさらに削減することができる。
According to this, if the tag data stored in the first storage means is used, the data corresponding to the tag data can be restored, so that the tag data corresponding to the tag data stored in the first storage means can be restored. Even when the data amount is larger than the capacity of the free area of the stack area, data can be saved. Therefore, the probability of stopping the operation of the first storage unit is increased, and the power consumption of the semiconductor device as a whole can be further reduced without securing an extra variable area for data saving in the second storage unit. .

【0027】また、上記課題を解決するために、請求項
4に係る半導体装置は、第1の記憶手段は、各々独立し
て動作停止が可能である複数の記憶手段により構成され
たものであり、スタック退避制御手段は、省電力モード
移行命令が入力されるとき、複数の記憶手段に格納され
たデータを、スタック領域に退避させる制御を複数の記
憶手段に対して各々独立して行なうものであり、省電力
モード移行制御手段は、複数の記憶手段のうち、データ
が退避された記憶手段の動作を停止するものである。
According to a fourth aspect of the present invention, there is provided a semiconductor device according to the fourth aspect, wherein the first storage means includes a plurality of storage means each of which can be independently stopped. The stack evacuation control means controls the evacuation of data stored in the plurality of storage means to the stack area independently of the plurality of storage means when the power saving mode shift instruction is input. In addition, the power saving mode transition control means stops the operation of the storage means from which the data has been saved among the plurality of storage means.

【0028】これによると、第1の記憶手段を各々独立
して動作停止が可能な複数の記憶手段により構成し、各
々独立して退避する処理を行なうことで、データを退避
した記憶手段ごとに動作停止が可能となる。このため、
第1の記憶手段の動作を停止する確率を高め、第2の記
憶手段にデータ退避用の変数領域を余分に確保すること
なく、半導体装置全体として消費電力をさらに削減する
ことができる。
According to this, the first storage means is constituted by a plurality of storage means each of which can independently stop the operation, and the processing for independently saving is performed, so that the first storage means can be stored for each of the storage means for which data has been saved. Operation can be stopped. For this reason,
The probability of stopping the operation of the first storage means can be increased, and the power consumption of the semiconductor device as a whole can be further reduced without securing an extra variable area for data saving in the second storage means.

【0029】また、上記課題を解決するために、請求項
5に係る半導体装置は、省電力モード移行命令が入力さ
れるとき、スタック領域の空き容量の情報を、スタック
退避制御手段に示す制御を行うスタック情報告知制御手
段をさらに備えるものである。
According to another aspect of the present invention, there is provided a semiconductor device, comprising: It further comprises a stack information notification control means for performing.

【0030】これによると、スタック領域の空き容量を
示す機能を備えたことで、スタック領域の空き状態に応
じて、第1の記憶手段のデータが整理され後に、また、
スタック領域の空き容量が増えた後に、スタック領域へ
のデータの退避が可能となる。このため、第1の記憶手
段の動作を停止する確率を高め、第2の記憶手段にデー
タ退避用の変数領域を余分に確保することなく、半導体
装置全体として消費電力をさらに削減することができ
る。
According to this, the function of indicating the free space of the stack area is provided, so that after the data in the first storage means is sorted according to the free state of the stack area,
After the free space in the stack area increases, data can be saved to the stack area. Therefore, the probability of stopping the operation of the first storage unit is increased, and the power consumption of the semiconductor device as a whole can be further reduced without securing an extra variable area for data saving in the second storage unit. .

【0031】[0031]

【発明の実施の形態】以下、本発明の実施形態につい
て、図面を参照しながら説明する。また、以下の各実施
形態では、第1の記憶手段をDRAM(ダイナミックラ
ンダムアクセスメモリ)とし、第2の記憶手段をSRA
M(スタティックランダムアクセスメモリ)として説明
する。
Embodiments of the present invention will be described below with reference to the drawings. In the following embodiments, the first storage unit is a DRAM (Dynamic Random Access Memory), and the second storage unit is an SRA
Description will be given as M (static random access memory).

【0032】(第1の実施形態)本発明の第1の実施形
態については、図1および図2を参照しながら説明す
る。図1は本発明の第1の実施形態に係る省電力モード
を備えた半導体装置の構成を示すブロック図でり、図2
は図1の半導体装置の動作を示すフローチャートであ
る。
(First Embodiment) A first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing a configuration of a semiconductor device having a power saving mode according to the first embodiment of the present invention.
3 is a flowchart showing the operation of the semiconductor device of FIG.

【0033】図1の半導体装置は、バス100と、CP
U101と、変数領域102aおよびスタック領域10
2bを有する第2の記憶手段としてのSRAM102
と、第1の記憶手段としてのDRAM103と、省電力
モード移行処理部(省電力モード移行制御手段に対応す
る)104と、スタック退避処理部(スタック退避制御
手段に対応する)105とを備えるものである。
The semiconductor device shown in FIG.
U101, variable area 102a and stack area 10
SRAM 102 serving as a second storage unit having 2b
And a DRAM 103 as a first storage unit, a power saving mode transition processing unit (corresponding to the power saving mode transition control unit) 104, and a stack saving processing unit (corresponding to the stack saving control unit) 105. It is.

【0034】バス100は、CPU101と、SRAM
102と、DRAM103などを結ぶ共通結線である。
The bus 100 includes a CPU 101 and an SRAM.
This is a common connection that connects the DRAM 102 and the like.

【0035】CPU101は、SRAM102やDRA
M103から、バス100を介してデータを入力して各
種データ処理を行い、処理したデータを、バス100を
介して再びSRAM102やDRAM103に格納す
る。
The CPU 101 has an SRAM 102 or DRA
From M103, data is input via the bus 100 to perform various data processing, and the processed data is stored again in the SRAM 102 or the DRAM 103 via the bus 100.

【0036】SRAM102は、DRAM103と比較
して、動作周波数は高く、消費電力は小さい反面、単位
記憶容量当たりの製造コストが高いため、記憶容量は小
さい。SRAM102の変数領域102aは、通常動作
時において、各種データ処理をした際のグローバル変数
等を保存する領域である。SRAM102のスタック領
域102bは、通常動作時において、ローカル変数等を
保存する。すなわち、通常動作時には、各種データ処理
をした時に生じるグローバル変数等は変数領域102a
に格納され、スタック領域102bには格納されない。
また、スタック領域102bは、半導体装置が省電力モ
ードに移行する場合、DRAM103に格納されたデー
タを格納する。半導体装置が通常モードに復帰する場合
には、スタック領域102bに格納したデータはDRA
M103に書き戻される。
The SRAM 102 has a higher operating frequency and lower power consumption than the DRAM 103, but has a small storage capacity because of a high manufacturing cost per unit storage capacity. The variable area 102a of the SRAM 102 is an area for storing global variables and the like when performing various data processing during a normal operation. The stack area 102b of the SRAM 102 stores local variables and the like during normal operation. That is, during normal operation, global variables and the like generated when performing various data processing are stored in the variable area 102a.
And not stored in the stack area 102b.
The stack area 102b stores data stored in the DRAM 103 when the semiconductor device shifts to the power saving mode. When the semiconductor device returns to the normal mode, the data stored in the stack area 102b is DRA
It is written back to M103.

【0037】DRAM103は、SRAM102と比較
して、動作周波数は低く、消費電力は大きい反面、単位
記憶容量当たりの製造コストが低いため、記憶容量は大
きい。
The DRAM 103 has a lower operating frequency and higher power consumption than the SRAM 102, but has a large storage capacity because the manufacturing cost per unit storage capacity is low.

【0038】省電力モード移行処理部104は、DRA
M103に格納されたデータがスタック領域102bに
退避された後に、DRAM103のリフレッシュ動作を
停止させ、半導体装置が省電力モードに移行する処理を
行う。
The power saving mode shift processing unit 104
After the data stored in M103 is saved to the stack area 102b, the refresh operation of the DRAM 103 is stopped, and the semiconductor device shifts to the power saving mode.

【0039】スタック退避処理部105は、省電力モー
ド移行命令が入力されると、スタック領域102bの記
憶容量の空き状況を調べ、空きがある場合に、DRAM
103に格納されたデータを、スタック領域102bに
退避する処理を行なう。また、省電力モードから復帰す
るとき、スタック領域102bからDRAM103にデ
ータを戻す処理を行う。
When a command to shift to the power saving mode is input, the stack save processing unit 105 checks the vacant state of the storage capacity of the stack area 102b.
A process is performed to save the data stored in 103 to the stack area 102b. When returning from the power saving mode, a process of returning data from the stack area 102b to the DRAM 103 is performed.

【0040】すなわち、省電力モード移行時は、グロー
バル変数等のデータはDRAM103にあまり格納され
ておらず、また、プログラムは上位関数実行中であるこ
とが多いことからローカル変数はスタック領域102b
にあまり格納されていない。このため、スタック領域1
02bには使われていない空き容量が多い。本実施形態
は、このような点に着目し、省電力モードに移行すると
きは、DRAM103に格納されたグローバル変数等の
データを、通常動作時はグローバル変数等を格納するこ
とのないスタック領域102bに退避するようにしたも
のである。
That is, at the time of transition to the power saving mode, data such as global variables are not stored much in the DRAM 103, and since local programs are often executing higher-level functions, local variables are stored in the stack area 102b.
Is not stored much. Therefore, the stack area 1
02b has a lot of unused free space. The present embodiment focuses on such a point, and when shifting to the power saving mode, the data such as global variables stored in the DRAM 103 is stored in the stack area 102b which does not store the global variables during normal operation. Is to be evacuated.

【0041】以下、以上のように構成された本実施形態
に係る半導体装置の動作を、図2を参照しながら説明す
る。
Hereinafter, the operation of the semiconductor device according to the present embodiment configured as described above will be described with reference to FIG.

【0042】まず、ステップST201において、省電
力モードへの移行命令が半導体装置に入力されると、半
導体装置は省電力モードへの移行を開始する。そして、
ステップST202において、DRAM103にデータ
が格納されているか否かを判定する。
First, in step ST201, when an instruction to shift to the power saving mode is input to the semiconductor device, the semiconductor device starts shifting to the power saving mode. And
In step ST202, it is determined whether or not data is stored in the DRAM 103.

【0043】ステップST202において、DRAM1
03にデータが格納されていると判定された場合は、ス
テップST203において、スタック領域102bにD
RAM103に格納されたデータを退避するだけの空き
容量があるか否かを判定する。そして、スタック領域1
02bに退避するだけの空き容量があると判定されたと
きは、ステップST204において、DRAM103に
格納されたデータをスタック領域102bに退避する。
その後、ステップST205において、DRAM103
のリフレッシュ動作を停止し、ステップST206に進
む。一方、スタック領域102bに退避するだけの空き
容量がないと判定されたときは、退避を行なわないで、
ステップST206に進む。
In step ST202, the DRAM 1
03 is stored in the stack area 102b in step ST203.
It is determined whether there is enough free space to save the data stored in the RAM 103. And the stack area 1
If it is determined that there is enough free space to save the data in the DRAM 102b, the data stored in the DRAM 103 is saved in the stack area 102b in step ST204.
Thereafter, in step ST205, the DRAM 103
Is stopped, and the process proceeds to step ST206. On the other hand, when it is determined that there is not enough free space to save in the stack area 102b, the saving is not performed, and
Proceed to step ST206.

【0044】一方、ステップST202において、DR
AM103にデータが格納されていないと判定された場
合に、ステップST205において、DRAM103の
リフレッシュ動作を停止する。リフレッシュ動作の停止
後、ステップST206に進む。
On the other hand, in step ST202, DR
If it is determined that no data is stored in the AM 103, the refresh operation of the DRAM 103 is stopped in step ST205. After stopping the refresh operation, the process proceeds to step ST206.

【0045】ステップST206において、省電力モー
ドへ移行する処理を行なう。
In step ST206, processing for shifting to the power saving mode is performed.

【0046】省電力モードで動作中に、ステップST2
07において、復帰割り込み信号が入力されると、半導
体装置の動作モードを省電力モードから通常モードに復
帰させる処理を開始する。
During operation in the power saving mode, step ST2
At 07, when a return interrupt signal is input, processing for returning the operation mode of the semiconductor device from the power saving mode to the normal mode is started.

【0047】まず、ステップST208において、DR
AM103のリフレッシュ動作が停止されているか否か
を判定する。リフレッシュ動作が停止されているとき
は、ステップST209において、DRAM103のリ
フレッシュ動作を再開し、ステップST210に進む。
一方、リフレッシュ動作が停止されていないときは、そ
のままステップST210に進む。
First, in step ST208, DR
It is determined whether the refresh operation of the AM 103 has been stopped. When the refresh operation has been stopped, in step ST209, the refresh operation of the DRAM 103 is restarted, and the process proceeds to step ST210.
On the other hand, if the refresh operation has not been stopped, the process directly proceeds to step ST210.

【0048】ステップST210において、スタック領
域102bにデータを退避させているか否かを判定す
る。スタック領域102bにデータが退避されていると
きは、ステップST211において、スタック領域10
2bに退避されたデータをDRAM103に戻し、ステ
ップST212に進む。一方、スタック領域102bに
データが退避されていないときは、そのままステップS
T212に進む。
In step ST210, it is determined whether or not data has been saved in the stack area 102b. When data is saved in the stack area 102b, in step ST211 the stack area 10b
The data saved in 2b is returned to the DRAM 103, and the process proceeds to step ST212. On the other hand, if the data is not saved in the stack area 102b, the process proceeds to step S
Proceed to T212.

【0049】ステップST212において、省電力モー
ドから通常モードに復帰する処理を行なう。
In step ST212, a process for returning from the power saving mode to the normal mode is performed.

【0050】以上のように、本実施形態によると、DR
AMおよびSRAMを備えた半導体装置において、省電
力モードに移行するとき、DRAMに格納されたデータ
をSRAMのスタック領域に退避させ、DRAMのリフ
レッシュ動作を停止する。これにより、SRAMにDR
AMデータ退避用の変数領域を余分に確保することな
く、半導体装置全体として消費電力の削減が可能とな
る。
As described above, according to this embodiment, the DR
In the semiconductor device including the AM and the SRAM, when shifting to the power saving mode, data stored in the DRAM is saved in a stack area of the SRAM, and the refresh operation of the DRAM is stopped. As a result, the DR
The power consumption of the entire semiconductor device can be reduced without securing an extra variable area for saving AM data.

【0051】(第2の実施形態)本発明の第2の実施形
態については、図3を参照しながら説明する。
(Second Embodiment) A second embodiment of the present invention will be described with reference to FIG.

【0052】図3は、本発明の第2の実施形態に係る省
電力モードを備えた半導体装置のブロック図である。図
3では、図1と共通の構成要素には図1と同一の符号を
付しており、ここではその詳細な説明は省略する。図1
と相違するのは、図3に示した半導体装置は、データ削
除・復元処理部(データ復元制御手段に対応する)11
0を備えたことである。
FIG. 3 is a block diagram of a semiconductor device having a power saving mode according to the second embodiment of the present invention. In FIG. 3, the same components as those in FIG. 1 are denoted by the same reference numerals as those in FIG. Figure 1
3 is different from the semiconductor device shown in FIG. 3 in that a data deletion / restoration processing unit (corresponding to a data restoration control unit) 11
0 is provided.

【0053】本実施形態において、データとして光ディ
スク(図示せず)から読み出されたデータ、および、デ
ータの存在場所を示すタグデータとして光ディスクから
読み出されたデータに対応したTOC(Track Of Conte
nts:トラック オフ゛ コンテンツ)情報が、DRAM103に格納さ
れているものとする。ここで、TOC情報が存在すれ
ば、たとえDRAM103に格納されたデータが消去さ
れたとしても、消去されたデータに対応するTOC情報
を用いて光ディスクから対応するデータを読み出すこと
によって、消去されたデータを復元することができる。
本実施形態は、このような特性を利用したものである。
In this embodiment, a TOC (Track Of Content) corresponding to data read from an optical disk (not shown) as data and data read from the optical disk as tag data indicating the location of the data is provided.
nts: track off (content) information is stored in the DRAM 103. Here, if the TOC information exists, even if the data stored in the DRAM 103 is erased, by reading the corresponding data from the optical disk using the TOC information corresponding to the erased data, the erased data is read. Can be restored.
The present embodiment utilizes such characteristics.

【0054】すなわち、省電力モード移行命令が入力さ
れるとき、まずデータ削除・復元処理部110は、DR
AM103に格納されたTOC情報をSRAM102の
スタック領域102bに退避する。次に、TOC情報を
すべて退避し終えてもスタック領域102bにまだ空き
容量が残っている場合には、スタック退避処理部105
は、DRAM103に格納されたデータも可能な限り退
避させる。退避しきれなかったデータは、データ削除・
復元処理部110により削除する。
That is, when a power saving mode shift command is input, first, the data deletion / restoration processing unit 110
The TOC information stored in the AM 103 is saved in the stack area 102b of the SRAM 102. Next, if there is still free space in the stack area 102b even after all the TOC information has been saved, the stack save processing unit 105
Saves data stored in the DRAM 103 as much as possible. Data that cannot be backed up is deleted /
It is deleted by the restoration processing unit 110.

【0055】そして、省電力モードから復帰するとき
は、スタック退避処理部105が、スタック領域102
bに退避させたデータをDRAM103に戻すととも
に、データ削除・復元処理部110が、スタック領域1
02bに退避されたTOC情報を用いて、光ディスクか
ら対応するデータを読み出し、DRAM103に格納
し、削除されたデータを復元する。
When returning from the power saving mode, the stack evacuation processing unit 105 sets the stack area 102
b is returned to the DRAM 103, and the data deletion / restoration processing unit 110
Using the TOC information saved in 02b, the corresponding data is read from the optical disk, stored in the DRAM 103, and the deleted data is restored.

【0056】以上のように、本実施形態によると、DR
AMおよびSRAMを備えた半導体装置において、DR
AMにデータとタグデータとが格納された状態で省電力
モードに移行するとき、タグデータをSRAMのスタッ
ク領域に退避させて、データは削除する。そして、削除
されたデータはタグデータを用いれば復元できる。この
ため、DRAMに格納されたデータ量がSRAMのスタ
ック領域の空き容量よりも大きい場合であっても、タグ
データのみを退避しデータを削除すれば、DRAMのリ
フレッシュ動作の停止が可能になる。これにより、DR
AMのリフレッシュ動作をより高い確率で停止すること
ができ、SRAMにDRAMデータ退避用の変数領域を
余分に確保することなく、半導体装置全体として消費電
力のさらなる削減が可能となる。
As described above, according to the present embodiment, the DR
In a semiconductor device having AM and SRAM, DR
When shifting to the power saving mode with data and tag data stored in the AM, the tag data is saved to the stack area of the SRAM, and the data is deleted. Then, the deleted data can be restored by using the tag data. Therefore, even if the amount of data stored in the DRAM is larger than the free space in the stack area of the SRAM, the refresh operation of the DRAM can be stopped by saving only the tag data and deleting the data. Thereby, DR
The AM refresh operation can be stopped with a higher probability, and the power consumption of the entire semiconductor device can be further reduced without securing an extra variable area for saving DRAM data in the SRAM.

【0057】なお、本実施形態では、DRAMに格納し
た全てのデータについて対応するTOC情報がDRAM
に格納されているものとしたが、DRAMに格納したデ
ータの一部について対応するTOC情報をDRAMに格
納した場合であっても、本実施形態と同様に実施可能で
ある。
In this embodiment, TOC information corresponding to all data stored in the DRAM is stored in the DRAM.
However, even when the TOC information corresponding to a part of the data stored in the DRAM is stored in the DRAM, the present invention can be implemented similarly to the present embodiment.

【0058】また、本実施形態では、タグデータとして
TOC情報を用いてデータを復元するものとしたが、何
らかの付加情報によって対応するデータを復元できる場
合には、TOC情報の代わりにその付加情報を用いるこ
とによっても本実施形態と同様に実施可能である。
In this embodiment, the data is restored using the TOC information as the tag data. However, if the corresponding data can be restored by any additional information, the additional information is used instead of the TOC information. It can also be implemented in the same manner as this embodiment by using.

【0059】(第3の実施形態)本発明の第3の実施形
態については、図4を参照しながら説明する。
(Third Embodiment) A third embodiment of the present invention will be described with reference to FIG.

【0060】図4は、本発明の第3の実施形態に係る省
電力モードを備えた半導体装置のブロック図である。図
4では、図1と共通の構成要素には図1と同一の符号を
付しており、ここではその詳細な説明は省略する。図1
と相違するのは、図4に示した半導体装置において、D
RAM103は複数のDRAM103a〜DRAM10
3dで構成され、それぞれ独立してリフレッシュ動作を
可能とした点と、スタック退避処理部105はDRAM
105a〜105dに対して各々独立してスタック領域
102bへ退避する動作を行うようにした点である。
FIG. 4 is a block diagram of a semiconductor device having a power saving mode according to the third embodiment of the present invention. In FIG. 4, the same reference numerals as in FIG. 1 denote the same components as in FIG. 1, and a detailed description thereof will be omitted. Figure 1
The difference is that in the semiconductor device shown in FIG.
The RAM 103 includes a plurality of DRAMs 103a to DRAM10.
3d, the refresh operation can be performed independently of each other, and the stack
The point is that the operation of retracting to the stack area 102b is performed independently for each of 105a to 105d.

【0061】本実施形態において、スタック退避処理部
105は、省電力モードに移行するとき、DRAM10
5aから順に格納されたデータを読み出し始め、SRA
M102のスタック領域102bに退避させ始める。そ
して、スタック領域102bの空き領域がなくなった時
点で、スタック領域102bへの退避動作を停止する。
例えば、DRAM103a、103bに格納されたデー
タがSRAM102のスタック領域102bに退避さ
れ、DRAM103c、103dに格納されたデータは
スタック領域102bに退避できなかったとする。この
場合、DRAM103a、103bのリフレッシュ動作
を停止し、DRAM103c、103dのリフレッシュ
動作は停止せず、データを保持した状態を保ち続ける。
In the present embodiment, when shifting to the power saving mode, the stack save processing unit 105
5a, the stored data is sequentially read out, and the SRA
The evacuation to the stack area 102b of M102 is started. Then, when there is no more free space in the stack area 102b, the evacuation operation to the stack area 102b is stopped.
For example, it is assumed that data stored in the DRAMs 103a and 103b is saved in the stack area 102b of the SRAM 102, and data stored in the DRAMs 103c and 103d is not saved in the stack area 102b. In this case, the refresh operation of the DRAMs 103a and 103b is stopped, the refresh operation of the DRAMs 103c and 103d is not stopped, and the data holding state is maintained.

【0062】以上のように、本実施形態によると、DR
AMおよびSRAMを備えた半導体装置において、複数
のDRAMにデータが格納された状態で省電力モードに
移行するとき、各DRAMごとにデータを退避させて、
退避できたDRAMごとにリフレッシュ動作を停止す
る。このため、DRAMに格納されたデータを退避させ
る制御の柔軟度が増し、DRAMのリフレッシュ動作を
より高い確率で停止することができる。これにより、S
RAMにDRAMデータ退避用の変数領域を余分に確保
することなく、半導体装置全体として消費電力のさらな
る削減が可能となる。
As described above, according to the present embodiment, the DR
In a semiconductor device including an AM and an SRAM, when shifting to a power saving mode in a state where data is stored in a plurality of DRAMs, data is saved for each DRAM,
The refresh operation is stopped for each saved DRAM. For this reason, the flexibility of the control for saving the data stored in the DRAM is increased, and the refresh operation of the DRAM can be stopped with a higher probability. Thereby, S
The power consumption of the semiconductor device as a whole can be further reduced without securing an extra variable area for saving DRAM data in the RAM.

【0063】なお、本実施形態は、例えば、半導体装置
が省電力モードに入ってから長期間その状態が続く場合
などには、特に有効である。
The present embodiment is particularly effective, for example, when the state of the semiconductor device continues for a long time after entering the power saving mode.

【0064】(第4の実施形態)本発明の第4の実施形
態については、図5を参照しながら説明する。図5は、
本発明の第4の実施形態に係る省電力モードを備えた半
導体装置のブロック図である。図5では、図1と共通の
構成要素には図1と同一の符号を付しており、ここでは
その詳細な説明は省略する。図1と相違するのは、図5
に示した半導体装置は、スタック退避調整部120を備
えたことである。
(Fourth Embodiment) A fourth embodiment of the present invention will be described with reference to FIG. FIG.
FIG. 14 is a block diagram of a semiconductor device having a power saving mode according to a fourth embodiment of the present invention. 5, the same components as those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and the detailed description thereof will be omitted. 5 is different from FIG.
Is provided with a stack evacuation adjustment unit 120.

【0065】本実施形態において、スタック退避調整部
120は、スタック領域102bの空き状態に応じて、
DRAM103に格納されたデータの整理を行ない、ま
た、スタック領域102bへの退避が可能になるまで時
間調整を行なう。例えば、DRAM103に格納された
データ量がスタック領域102bの空き容量より大きい
場合には、スタック領域102bに退避できるようにす
るため、DRAM103のデータを整理してデータ量を
削減したり、また、スタック領域102bの空き容量が
増えるまでスタック領域102bへ退避する動作を待機
させる。このようなスタック領域102bへ退避させる
調整をした後、スタック退避処理部105は、DRAM
103に格納されたデータをスタック領域102bに退
避させる。
In the present embodiment, the stack evacuation adjusting unit 120 determines whether the stack area 102b is empty or not.
The data stored in the DRAM 103 is rearranged, and the time is adjusted until the data can be saved in the stack area 102b. For example, if the amount of data stored in the DRAM 103 is larger than the free space in the stack area 102b, the data in the DRAM 103 is organized to reduce the data amount so that the data can be saved to the stack area 102b. The operation of saving to the stack area 102b is waited until the free space in the area 102b increases. After making such an adjustment to save to the stack area 102b, the stack save processing unit 105
The data stored in 103 is saved in the stack area 102b.

【0066】以上のように、本実施形態によると、DR
AMおよびSRAMを備えた半導体装置において、省電
力モードに移行するとき、移行命令後すぐに省電力モー
ドに移行するのではなく、スタック領域の空き状態に応
じてデータの整理や時間調整を行なった後、スタック領
域への退避処理を行なう。このため、DRAMに格納さ
れたデータを退避させる制御の柔軟度が増し、DRAM
のリフレッシュ動作をより高い確率で停止することがで
きる。これにより、SRAMにDRAMデータ退避用の
変数領域を余分に確保することなく、半導体装置全体と
して消費電力のさらなる削減を可能とする。
As described above, according to the present embodiment, the DR
In a semiconductor device provided with an AM and an SRAM, when shifting to the power saving mode, the data is sorted and the time is adjusted according to the free state of the stack area instead of shifting to the power saving mode immediately after the shift instruction. Thereafter, a save process to the stack area is performed. For this reason, the flexibility of control for saving data stored in the DRAM is increased,
Can be stopped with a higher probability. As a result, it is possible to further reduce the power consumption of the entire semiconductor device without securing an extra variable area for saving the DRAM data in the SRAM.

【0067】(第5の実施形態)本発明の第5の実施形
態については、図6を参照しながら説明する。図6は、
本発明の第5の実施形態に係る省電力モードを備えた半
導体装置のブロック図である。図6では、図1と共通の
構成要素には図1と同一の符号が付しており、ここでは
その詳細な説明は省略する。図1と相違するのは、図6
に示した半導体装置は、スタック情報告知処理部(スタ
ック情報告知制御手段に対応する)130を備えたこと
である。
(Fifth Embodiment) A fifth embodiment of the present invention will be described with reference to FIG. FIG.
It is a block diagram of a semiconductor device provided with a power saving mode according to a fifth embodiment of the present invention. 6, the same components as those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and a detailed description thereof will be omitted. FIG. 6 differs from FIG.
Is provided with a stack information notification processing unit (corresponding to stack information notification control means) 130.

【0068】本実施形態において、省電力モード移行命
令が入力されるとき、スタック情報告知処理部130
は、スタック領域102bの空き容量を示す機能を備え
ているので、半導体装置が省電力モードへ移行する前
に、スタック領域102bの空き容量とDRAM103
に存在するデータ量を示す情報を獲得し、スタック退避
処理部105に示す。そして、スタック退避処理部10
5は、この情報をもとに、例えば、DRAM103に格
納されたデータ量がスタック領域102bの空き容量よ
りも大きい場合には、DRAM103のデータが整理さ
れデータ量の削減が行なわれた後に、また、スタック領
域102bの空き容量が増えた後に、DRAM103に
格納されたデータをスタック領域102bに退避するこ
とができる。その後、省電力モード移行処理部104は
省電力モードへ移行するので、DRAM103のデータ
を消去したり、復元するなどの処理を省くことができ
る。また、DRAM103の中に消去したくないデータ
がある場合でも、DRAM103のリフレッシュ動作を
停止させる可能性を高めることができる。
In this embodiment, when a power saving mode shift command is input, the stack information notification processing unit 130
Has a function of indicating the free space of the stack area 102b, and therefore, before the semiconductor device shifts to the power saving mode, the free space of the stack area 102b and the DRAM 103
The information indicating the amount of data existing in the stack is acquired, and is shown to the stack save processing unit 105. Then, the stack evacuation processing unit 10
5, based on this information, for example, when the amount of data stored in the DRAM 103 is larger than the free space of the stack area 102b, after the data in the DRAM 103 is organized and the amount of data is reduced, After the free space in the stack area 102b increases, the data stored in the DRAM 103 can be saved to the stack area 102b. Thereafter, the power saving mode shift processing unit 104 shifts to the power saving mode, so that processing such as erasing or restoring data in the DRAM 103 can be omitted. Further, even when there is data that the user does not want to erase in the DRAM 103, the possibility of stopping the refresh operation of the DRAM 103 can be increased.

【0069】以上のように、本実施形態によると、DR
AMおよびSRAMを備えた半導体装置において、省電
力モードに移行するとき、スタック領域の空き容量を示
す機能により、スタック退避処理部は、DRAMのデー
タが整理された後に、また、スタック領域の空き容量が
増えた後に、スタック領域への退避処理を行なう。この
ため、DRAMに格納されたデータを退避させる制御の
柔軟度が増し、DRAMのリフレッシュ動作をより高い
確率で停止することができる。これにより、SRAMに
DRAMデータ退避用の変数領域を余分に確保すること
なく、半導体装置全体として消費電力のさらなる削減を
可能とする。
As described above, according to the present embodiment, DR
In the semiconductor device including the AM and the SRAM, when shifting to the power saving mode, the function of indicating the free space of the stack area allows the stack evacuation processing unit to execute the free space of the stack area after the data of the DRAM is organized. After the number has increased, a save process to the stack area is performed. For this reason, the flexibility of the control for saving the data stored in the DRAM is increased, and the refresh operation of the DRAM can be stopped with a higher probability. As a result, it is possible to further reduce the power consumption of the entire semiconductor device without securing an extra variable area for saving the DRAM data in the SRAM.

【0070】なお、上述した全ての実施形態では、記憶
手段として、DRAMとSRAMとを用いた場合につい
て説明したが、他の種類のメモリを用いることによって
も同様に実施可能である。
In all of the above-described embodiments, a case has been described in which a DRAM and an SRAM are used as storage means. However, the present invention can be similarly implemented by using other types of memories.

【0071】また、上述した全ての実施形態では、DR
AMに格納されているデータをSRAMのスタック領域
に退避する場合の構成および動作について説明したが、
DRAMに格納されたデータをSRAMの変数領域に退
避する場合であっても同様に実施可能である。
In all the above-described embodiments, the DR
The configuration and operation when the data stored in the AM is saved to the stack area of the SRAM has been described.
The same applies to the case where data stored in the DRAM is saved in the variable area of the SRAM.

【0072】[0072]

【発明の効果】上述のように、本発明によると、第1の
記憶手段(例えば、DRAMなど)およびスタック領域
を有する第2の記憶手段(例えば、SRAMなど)を有
する半導体装置において、第1の記憶手段に格納された
データを第2の記憶手段のスタック領域に退避すること
としため、第2の記憶手段の変数領域にデータ退避用の
記憶領域を余分に確保して回路規模を大きくすることな
く、半導体装置全体として消費電力を削減することがで
きる。
As described above, according to the present invention, in a semiconductor device having a first storage means (for example, DRAM) and a second storage means (for example, SRAM) having a stack area, In order to save the data stored in the storage means in the stack area of the second storage means, an extra storage area for saving data is secured in the variable area of the second storage means to increase the circuit scale. Accordingly, power consumption of the entire semiconductor device can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施形態に係る半導体装置のブ
ロック図である。
FIG. 1 is a block diagram of a semiconductor device according to a first embodiment of the present invention.

【図2】本発明の第1の実施形態に係る半導体装置の動
作を説明するフローチャートである。
FIG. 2 is a flowchart illustrating an operation of the semiconductor device according to the first embodiment of the present invention.

【図3】本発明の第2の実施形態に係る半導体装置のブ
ロック図である。
FIG. 3 is a block diagram of a semiconductor device according to a second embodiment of the present invention.

【図4】本発明の第3の実施形態に係る半導体装置のブ
ロック図である。
FIG. 4 is a block diagram of a semiconductor device according to a third embodiment of the present invention.

【図5】本発明の第4の実施形態に係る半導体装置のブ
ロック図である。
FIG. 5 is a block diagram of a semiconductor device according to a fourth embodiment of the present invention.

【図6】本発明の第5の実施形態に係る半導体装置のブ
ロック図である。
FIG. 6 is a block diagram of a semiconductor device according to a fifth embodiment of the present invention.

【図7】従来の半導体装置のブロック図である。FIG. 7 is a block diagram of a conventional semiconductor device.

【図8】従来の半導体装置の動作を説明するフローチャ
ートである。
FIG. 8 is a flowchart illustrating an operation of a conventional semiconductor device.

【符号の説明】[Explanation of symbols]

100 バス 101 CPU 102 SRAM(第2の記憶手段) 102a SRAMの変数領域 102b SRAMのスタック領域 103 DRAM(第1の記憶手段) 103a、103b、103c、103d DRAM
(複数の記憶手段) 104 省電力モード移行処理部(省電力モード移行
制御手段) 105 スタック退避処理部(スタック退避制御手
段) 110 データ削除・復元処理部(データ復元制御手
段) 120 スタック退避調整部 130 スタック情報告知処理部(スタック情報告知
制御手段)
100 Bus 101 CPU 102 SRAM (second storage unit) 102a Variable area of SRAM 102b Stack area of SRAM 103 DRAM (first storage unit) 103a, 103b, 103c, 103d DRAM
(Multiple storage units) 104 Power saving mode transition processing unit (Power saving mode transition control unit) 105 Stack save processing unit (Stack save control unit) 110 Data deletion / restoration processing unit (Data restoration control unit) 120 Stack save adjustment unit 130 Stack information notification processing unit (stack information notification control means)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 第1の記憶手段と、 スタック領域を有する第2の記憶手段と、 省電力モード移行命令が入力されるとき、前記第1の記
憶手段に格納されたデータを、前記スタック領域に退避
させる制御を行なうスタック退避制御手段と、 前記第1の記憶手段に格納されたデータが前記スタック
領域に退避された後に、前記第1の記憶手段の動作を停
止し、省電力モードへ移行する制御を行なう省電力モー
ド移行制御手段とを備えることを特徴とする半導体装
置。
A first storage unit, a second storage unit having a stack area, and when a power-saving mode shift instruction is input, data stored in the first storage unit is transferred to the stack area. Stack evacuation control means for performing control for evacuation in the first storage means, and after the data stored in the first storage means has been evicted in the stack area, stop the operation of the first storage means and shift to a power saving mode And a power-saving mode shift control unit for performing control to perform the control.
【請求項2】 請求項1記載の半導体装置において、 前記第1の記憶手段は、ダイナミックランダムアクセス
メモリであり、 前記第2の記憶手段は、スタティックランダムアクセス
メモリであり、 前記省電力モード移行制御手段は、前記ダイナミックラ
ンダムアクセスメモリのリフレッシュ動作を停止して、
前記ダイナミックランダムアクセスメモリの動作を停止
するものであることを特徴とする半導体装置。
2. The semiconductor device according to claim 1, wherein said first storage means is a dynamic random access memory; said second storage means is a static random access memory; Means for stopping a refresh operation of the dynamic random access memory,
A semiconductor device for stopping the operation of the dynamic random access memory.
【請求項3】 請求項1記載の半導体装置において、 前記第1の記憶手段は、データと前記データに対応した
タグデータを格納したものであり、 省電力モード移行命令が入力されるとき、前記タグデー
タを前記スタック領域に退避させる一方、省電力モード
から復帰するとき、前記タグデータを用いて前記タグデ
ータに対応するデータを獲得し、獲得したデータを前記
第1の記憶手段に復元する制御を行なうデータ復元制御
手段をさらに備えることを特徴とする半導体装置。
3. The semiconductor device according to claim 1, wherein said first storage means stores data and tag data corresponding to said data, and when a power saving mode shift command is input, said first storage means stores said data. Control for saving tag data to the stack area and acquiring data corresponding to the tag data using the tag data when returning from the power saving mode, and restoring the acquired data to the first storage means A semiconductor device further comprising data restoration control means for performing the data restoration.
【請求項4】 請求項1記載の半導体装置において、 前記第1の記憶手段は、各々独立して動作停止が可能で
ある複数の記憶手段により構成されたものであり、 前記スタック退避制御手段は、省電力モード移行命令が
入力されるとき、前記複数の記憶手段に格納されたデー
タを前記スタック領域に退避させる制御を、前記複数の
記憶手段に対して各々独立して行なうものであり、 前記省電力モード移行制御手段は、前記複数の記憶手段
のうち、データが退避された記憶手段の動作を停止する
ものであることを特徴とする半導体装置。
4. The semiconductor device according to claim 1, wherein said first storage means comprises a plurality of storage means each of which can be independently stopped in operation, and said stack evacuation control means is When a power-saving mode shift command is input, control for saving data stored in the plurality of storage units to the stack area is performed independently for each of the plurality of storage units. The semiconductor device, wherein the power-saving mode shift control means stops the operation of the storage means in which the data has been saved among the plurality of storage means.
【請求項5】 請求項1記載の半導体装置において、 省電力モード移行命令が入力されるとき、前記スタック
領域の空き容量の情報を、前記スタック退避制御手段に
示す制御を行うスタック情報告知制御手段をさらに備え
ることを特徴とする半導体装置。
5. The stack information notification control means according to claim 1, wherein when a power-saving mode shift command is input, information on the free space of said stack area is provided to said stack evacuation control means. A semiconductor device further comprising:
JP2001021322A 2001-01-30 2001-01-30 Semiconductor device Pending JP2002229864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001021322A JP2002229864A (en) 2001-01-30 2001-01-30 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001021322A JP2002229864A (en) 2001-01-30 2001-01-30 Semiconductor device

Publications (1)

Publication Number Publication Date
JP2002229864A true JP2002229864A (en) 2002-08-16

Family

ID=18886900

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001021322A Pending JP2002229864A (en) 2001-01-30 2001-01-30 Semiconductor device

Country Status (1)

Country Link
JP (1) JP2002229864A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100383735C (en) * 2006-03-02 2008-04-23 浙江大学 SRAM-based local variable support method in embedded system
JP2009301358A (en) * 2008-06-13 2009-12-24 Brother Ind Ltd Control board, image forming apparatus having the same, and power saving method for the control board
JP2011192212A (en) * 2010-03-16 2011-09-29 Toshiba Corp Memory system
WO2011122088A1 (en) * 2010-03-29 2011-10-06 ブラザー工業株式会社 Display device and program for display device
CN102262593A (en) * 2010-05-25 2011-11-30 联发科技股份有限公司 Data movement engine and memory control method
WO2012002142A1 (en) * 2010-06-29 2012-01-05 ブラザー工業株式会社 Display device, display method and display programme
JP2025027261A (en) * 2023-08-14 2025-02-27 トヨタ自動車株式会社 Information processing device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100383735C (en) * 2006-03-02 2008-04-23 浙江大学 SRAM-based local variable support method in embedded system
JP2009301358A (en) * 2008-06-13 2009-12-24 Brother Ind Ltd Control board, image forming apparatus having the same, and power saving method for the control board
JP2011192212A (en) * 2010-03-16 2011-09-29 Toshiba Corp Memory system
WO2011122088A1 (en) * 2010-03-29 2011-10-06 ブラザー工業株式会社 Display device and program for display device
CN102262593A (en) * 2010-05-25 2011-11-30 联发科技股份有限公司 Data movement engine and memory control method
WO2012002142A1 (en) * 2010-06-29 2012-01-05 ブラザー工業株式会社 Display device, display method and display programme
JP2025027261A (en) * 2023-08-14 2025-02-27 トヨタ自動車株式会社 Information processing device

Similar Documents

Publication Publication Date Title
JP4015835B2 (en) Semiconductor memory device
US5802551A (en) Method and apparatus for controlling the writing and erasing of information in a memory device
TWI590049B (en) Memory device and operating method of same
JP3986950B2 (en) CPU, information processing apparatus having the same, and control method of CPU
US5928365A (en) Computer system using software controlled power management method with respect to the main memory according to a program's main memory utilization states
KR101391270B1 (en) Non-volatile memory system using MRAM
US20070016719A1 (en) Memory device including nonvolatile memory and memory controller
US20050086551A1 (en) Memory optimization for a computer system having a hibernation mode
KR20080094938A (en) Reduced power consumption by disabling refresh of unused portions of the DDR during device inactivity
KR101054217B1 (en) store
CN116954511A (en) Storage processing method, electronic device, and readable storage medium
US20020103984A1 (en) Information processing system, information processing method and readable-by-computer recording medium
US7196961B2 (en) Memory control device
JP2002229864A (en) Semiconductor device
US12283304B2 (en) Memory system and apparatus for evicting cold data from volatile memory and storing the evicted cold data into the non-volatile memory
US20030081478A1 (en) Nonvolatile semiconductor memory device with backup memory block
US20070061507A1 (en) Semiconductor storage apparatus
CN110727470B (en) Hybrid nonvolatile memory device
CN113986001A (en) Chip and control method
US20070106835A1 (en) Display controller and method of updating parameters of the same
JP2009230205A (en) Memory system
KR100586031B1 (en) Real-time database operation method using nonvolatile memory
US20250060805A1 (en) Information processing device
JPH06161842A (en) External storage device and computer using the same
CN120353641A (en) Data outage maintaining method and device, storage medium and electronic equipment