JPH0822413A - Information processor - Google Patents
Information processorInfo
- Publication number
- JPH0822413A JPH0822413A JP6153971A JP15397194A JPH0822413A JP H0822413 A JPH0822413 A JP H0822413A JP 6153971 A JP6153971 A JP 6153971A JP 15397194 A JP15397194 A JP 15397194A JP H0822413 A JPH0822413 A JP H0822413A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- instruction
- address
- memory bank
- stored
- 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
Links
- 239000000872 buffer Substances 0.000 claims abstract description 28
- 230000010365 information processing Effects 0.000 claims description 25
- 238000010586 diagram Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 3
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002401 inhibitory effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Memory System (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、情報処理装置の低消費
電力化技術に関するもので、特に中央処理装置が行うメ
モリへのアクセス時の省電力化に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technology for reducing power consumption of an information processing apparatus, and more particularly to power saving when a memory is accessed by a central processing unit.
【0002】[0002]
【従来の技術】近年、情報処理装置はその小型化に伴い
可搬性が重要な要素となってきたため、バッテリによる
電力供給が不可欠となっている。その場合、バッテリを
使用した場合の動作時間を延ばすために情報処理装置の
消費電力を可能なかぎり抑える必要がある。一方、情報
処理装置の消費電力を抑えることのみに着目すると処理
速度の低下を招くので望ましくない。2. Description of the Related Art In recent years, the portability of information processing apparatuses has become an important factor as the size of the information processing apparatuses has been reduced. In that case, it is necessary to reduce the power consumption of the information processing device as much as possible in order to extend the operation time when the battery is used. On the other hand, focusing only on reducing the power consumption of the information processing device causes a decrease in processing speed, which is not desirable.
【0003】そこで、従来の情報処理装置では、特開平
4ー230508号公報に示されるように、通常の電力
消費をする第一のメモリと電力消費量が少ない第二のメ
モリとを用い、アクセス頻度の高いデータを通常の第一
のメモリ上に格納し、第二のメモリの電源を切ることで
メモリでの消費電力を抑え、ひいては情報処理装置での
省電力化を図っていた。Therefore, in a conventional information processing apparatus, as disclosed in Japanese Patent Laid-Open No. 230508/1992, a first memory that consumes normal power and a second memory that consumes less power are used to access. By storing frequently-used data in the normal first memory and turning off the power of the second memory, the power consumption of the memory is suppressed, and thus the power consumption of the information processing device is reduced.
【0004】[0004]
【発明が解決しようとする課題】しかしながら従来の技
術では、第一のメモリ上にはアクセス頻度の高いデータ
が格納されているので、メモリへのアクセスが第一のメ
モリだけに対して行われた場合に、アクセスされていな
い第二のメモリへの電源を切ったとしても、メモリでの
消費電力は、メモリにアクセスするときに消費する電力
がメモリでの消費電力の大部分であるため、それほど大
きな省電力化が行えなかった。However, in the conventional technique, since the frequently accessed data is stored in the first memory, the memory is accessed only to the first memory. In this case, even if the power to the second memory that is not accessed is turned off, the power consumption in the memory is not so much because the power consumed when accessing the memory is the majority of the power consumption in the memory. We couldn't save much power.
【0005】そこで本発明は上記問題点に鑑み、処理速
度の低下を招くことなく消費電力を低減する情報処理装
置を提供することを目的とする。In view of the above problems, it is an object of the present invention to provide an information processing apparatus that reduces power consumption without causing a reduction in processing speed.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明では、命令の先行読み出しをするた
めの命令バッファを内蔵している中央処理装置と、消費
電力の異なる複数のRAM毎に構成された複数のメモリ
バンクであって、消費電力の大きいメモリバンクから順
に一つづつデータが格納されている複数のメモリバンク
と、前記メモリバンクのなかで最も消費電力が大きいメ
モリバンクへのアクセスが行われた場合に、それ以外の
メモリバンクに格納されているデータを同時にアクセス
するメモリ制御手段とを備えたことを特徴とする。In order to achieve the above object, according to the invention of claim 1, a central processing unit having a built-in instruction buffer for prefetching an instruction and a plurality of RAMs having different power consumptions. A plurality of memory banks each configured to store data one by one in order from the memory bank with the highest power consumption, and the memory bank with the highest power consumption among the memory banks. Memory access means for simultaneously accessing data stored in the other memory banks when the above access is performed.
【0007】請求項2の発明では、前記中央処理装置
は、さらに、命令の読み出しを行う場合に前記命令バッ
ファ内に格納可能な命令語数を示す格納可能情報を同時
に出力し、前記メモリ制御手段は、さらに、格納可能情
報に基づいて前記命令バッファに命令の格納が行えない
場合は前記複数のメモリバンクへの同時アクセスを禁止
することを特徴とする。According to a second aspect of the present invention, the central processing unit further simultaneously outputs storable information indicating the number of instruction words that can be stored in the instruction buffer when reading an instruction, and the memory control means Further, when the instruction cannot be stored in the instruction buffer based on the storable information, the simultaneous access to the plurality of memory banks is prohibited.
【0008】請求項3の発明では、命令の先行読み出し
をするための命令バッファを内蔵し、命令の読み出しを
行う場合に前記命令バッファ内に格納可能な命令語数を
示す格納可能情報を同時に出力する中央処理装置と、通
常の電力を消費するRAMにより構成され偶数又は奇数
どちらかの種類のアドレスのデータを格納する第1メモ
リバンクと、前記第1のメモリバンクより電力の消費が
少ないRAMにより構成され偶数又は奇数であって第1
のメモリバンクに格納された以外の種類のアドレスのデ
ータを格納する第2のメモリバンクと、メモリ制御手段
とを備え、前記メモリ制御手段は、前記第2のメモリバ
ンクへのアクセスを行うアドレスを保持するアドレス保
持部と、前記第2のメモリバンクから読み出した命令を
保持する命令保持部と、中央処理装置がアクセスしたア
ドレスがアドレス保持部に格納されている場合は、命令
保持部から保持している命令を読み出し、第1のメモリ
バンクにアクセスした場合で、格納可能情報に基づいて
前記命令バッファに命令の格納が行える場合は第2のメ
モリバンクにも同時アクセスし、第2のメモリバンクか
ら命令を読み出している最中に、現在読み出している命
令のアドレスに連続していなくてかつ第1のメモリバン
クに格納されているアドレスにアクセスした場合は、第
2のメモリバンクからの読み出しを継続し、第2のメモ
リバンクからの読み出し終了後、読み出した命令を命令
保持部に格納する制御部とを備えたことを特徴とする。According to a third aspect of the present invention, an instruction buffer for prefetching an instruction is built in, and when the instruction is read, storable information indicating the number of instruction words that can be stored in the instruction buffer is simultaneously output. Central processing unit, a first memory bank that is composed of a RAM that consumes normal power and stores data of an even or odd type of address, and a RAM that consumes less power than the first memory bank Is even or odd and the first
A second memory bank for storing data of an address other than the one stored in the memory bank, and the memory control means, wherein the memory control means provides an address for accessing the second memory bank. An address holding unit for holding, an instruction holding unit for holding an instruction read from the second memory bank, and an address accessed by the central processing unit, if the address holding unit stores it, holds it from the instruction holding unit. Read the specified instruction and access the first memory bank, and if the instruction can be stored in the instruction buffer based on the storable information, the second memory bank is simultaneously accessed and the second memory bank is accessed. While reading an instruction from, it is not contiguous with the address of the instruction currently being read and is not stored in the first memory bank. When the address is accessed, the reading from the second memory bank is continued, and after the reading from the second memory bank is completed, a control unit that stores the read instruction in the instruction holding unit is provided. To do.
【0009】請求項4の発明では、命令を格納している
メモリと、前記メモリにアクセスする中央処理装置であ
って、そのアクセスが分岐先が特定できる命令である無
条件分岐命令の実行によるものであるかを示すアクセス
属性情報を前記メモリへのアクセス時に出力する中央処
理装置と、アクセス制御情報及び前記メモリから読み出
した命令とを用いて、前記中央処理装置が前記メモリよ
り無条件分岐命令の読み出しを行ってから、無条件分岐
命令の実行を行うまで前記メモリへのアクセスを中断す
るメモリ制御手段とを備えたことを特徴とする。According to another aspect of the present invention, there is provided a memory storing an instruction and a central processing unit for accessing the memory, wherein the access is an unconditional branch instruction whose branch destination can be specified. Using the central processing unit that outputs access attribute information indicating whether or not the memory is accessed, and the access control information and the instruction read from the memory, the central processing unit outputs an unconditional branch instruction from the memory. Memory control means for interrupting access to the memory after reading is performed until execution of an unconditional branch instruction is performed.
【0010】[0010]
【作用】上記構成によれば、請求項1の発明では、命令
の先行読み出しをするための命令バッファは、中央処理
装置に内蔵されている。消費電力の異なる複数のRAM
毎に構成された複数のメモリバンクであって、消費電力
の大きいメモリバンクから順に一つづつデータが複数の
メモリバンクに格納されている。前記メモリバンクのな
かで最も消費電力が大きいメモリバンクへのアクセスが
行われた場合に、それ以外のメモリバンクに格納されて
いるデータは、メモリ制御手段によって同時にアクセス
される。According to the above structure, in the invention of claim 1, the instruction buffer for prefetching an instruction is built in the central processing unit. Multiple RAMs with different power consumption
Data is stored in the plurality of memory banks one by one in order of increasing power consumption. When access is made to the memory bank with the highest power consumption among the memory banks, the data stored in the other memory banks are simultaneously accessed by the memory control means.
【0011】請求項2の発明では、前記中央処理装置
は、さらに、命令の読み出しを行う場合に前記命令バッ
ファ内に格納可能な命令語数を示す格納可能情報を同時
に出力し、前記メモリ制御手段は、さらに、格納可能情
報に基づいて前記命令バッファに命令の格納が行えない
場合は前記複数のメモリバンクへの同時アクセスを禁止
することを特徴とする。According to a second aspect of the present invention, the central processing unit further simultaneously outputs storable information indicating the number of instruction words that can be stored in the instruction buffer when reading an instruction, and the memory control means. Further, when the instruction cannot be stored in the instruction buffer based on the storable information, the simultaneous access to the plurality of memory banks is prohibited.
【0012】請求項3の発明では、命令の先行読み出し
をするための命令バッファは、中央処理装置に内蔵さ
れ、命令の読み出しを行う場合に前記命令バッファ内に
格納可能な命令語数を示す格納可能情報は、中央処理装
置によって同時に出力される。通常の電力を消費するR
AMにより構成された第1のメモリバンクであって、偶
数又は奇数どちらかの種類のアドレスのデータは、第1
メモリバンクによって格納される。前記第1のメモリバ
ンクより電力の消費が少ないRAMにより構成される第
2のメモリバンクであって、偶数又は奇数であって第1
のメモリバンクに格納された以外の種類のアドレスのデ
ータが第2のメモリバンクによって格納される。メモリ
制御手段は、アドレス保持部とデータ保持部と制御部か
ら構成される。前記第2のメモリバンクへのアクセスを
行うアドレスは、アドレス保持部によって保持される。
前記第2のメモリバンクから読み出した命令は、命令保
持部によって保持される。中央処理装置がアクセスした
アドレスがアドレス保持部に格納されている場合は、命
令保持部から保持している命令を中央処理装置が読み出
す。、第1のメモリバンクにアクセスした場合で、格納
可能情報に基づいて前記命令バッファに命令の格納が行
える場合は第2のメモリバンクにも同時に中央処理装置
は、アクセスする。第2のメモリバンクから命令を読み
出している最中に、現在読み出している命令のアドレス
に連続していなくてかつ第1のメモリバンクに格納され
ているアドレスにアクセスした場合は、第2のメモリバ
ンクからの読み出しを継続し、第2のメモリバンクから
の読み出し終了後、読み出した命令は、制御部によって
命令保持部に格納される。According to the third aspect of the present invention, the instruction buffer for prefetching an instruction is built in the central processing unit and can be stored indicating the number of instruction words that can be stored in the instruction buffer when the instruction is read. The information is output simultaneously by the central processing unit. R that consumes normal power
In the first memory bank configured by AM, the data of the address of either even number or odd number is stored in the first
Stored by memory bank. A second memory bank configured by a RAM that consumes less power than the first memory bank, the first memory bank being an even number or an odd number.
Data of addresses other than those stored in the second memory bank are stored in the second memory bank. The memory control means is composed of an address holding unit, a data holding unit, and a control unit. The address for accessing the second memory bank is held by the address holding unit.
The instruction read from the second memory bank is held by the instruction holding unit. When the address accessed by the central processing unit is stored in the address holding unit, the central processing unit reads the instruction held in the instruction holding unit. , When the first memory bank is accessed and the instruction can be stored in the instruction buffer based on the storable information, the central processing unit simultaneously accesses the second memory bank. If the address of the instruction currently being read is not consecutive and the address stored in the first memory bank is accessed while the instruction is being read from the second memory bank, the second memory After the reading from the bank is continued and the reading from the second memory bank is completed, the read instruction is stored in the instruction holding unit by the control unit.
【0013】請求項4の発明では、命令は、メモリによ
り格納されている。前記メモリにアクセスする中央処理
装置であって、そのアクセスが分岐先が特定できる命令
である無条件分岐命令の実行によるものであるかを示す
アクセス属性情報は、前記メモリへのアクセス時に中央
処理装置によって出力される。アクセス制御情報及び前
記メモリから読み出した命令とを用いて、前記中央処理
装置が前記メモリより無条件分岐命令の読み出しを行っ
てから、無条件分岐命令の実行を行うまで前記メモリへ
のアクセスは、メモリ制御手段によって中断される。In the invention of claim 4, the instructions are stored in the memory. A central processing unit that accesses the memory, the access attribute information indicating whether the access is due to execution of an unconditional branch instruction that is an instruction whose branch destination can be specified. Output by. Using the access control information and the instruction read from the memory, the central processing unit reads the unconditional branch instruction from the memory until the execution of the unconditional branch instruction, access to the memory, It is interrupted by the memory control means.
【0014】[0014]
【実施例】以下本発明の一実施例の情報処理装置につい
て、図面を参照しながら説明する。図1は本発明の第一
の実施例における情報処理装置の構成を示すものであ
る。本図は、CPU100、メモリ制御回路110、メ
モリバンク130、メモリバンク150から構成されて
いる。DESCRIPTION OF THE PREFERRED EMBODIMENTS An information processing apparatus according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows the configuration of an information processing apparatus according to the first embodiment of the present invention. This diagram includes a CPU 100, a memory control circuit 110, a memory bank 130, and a memory bank 150.
【0015】CPU100は、中央処理装置であって、
命令フェッチを命令の実行に先行して行えるように命令
バッファを内部に持っている。この命令バッファには、
フェッチした命令を最大二つ格納することができる。ま
た、CPU100は、命令のフェッチを行うためにメモ
リにアクセスする際は、フェッチすべき命令のアドレス
をアドレスバス101を通じてメモリ制御回路110に
出力すると同時に、制御信号を制御信号線103を通じ
てメモリ制御回路110に出力する。ここで制御信号と
は、命令バッファ内に格納可能な命令語数を示す信号で
あり、Hi、Loで表される。Hiのときは一つ、Lo
のときは二つ命令バッファに格納出来ることを示してい
る。フェッチした命令は、メモリ制御回路110よりデ
ータバス102を通じて受け取り命令バッファに格納す
る。また、アドレスバス101と制御信号線103とデ
ータバス102の各ビット幅(以下このビット幅をワー
ドと記す)は同じである。The CPU 100 is a central processing unit,
It has an internal instruction buffer so that instruction fetch can be performed prior to instruction execution. This instruction buffer contains
Up to two fetched instructions can be stored. Further, when accessing the memory for fetching an instruction, the CPU 100 outputs the address of the instruction to be fetched to the memory control circuit 110 through the address bus 101 and simultaneously outputs a control signal through the control signal line 103. Output to 110. Here, the control signal is a signal indicating the number of instruction words that can be stored in the instruction buffer, and is represented by Hi and Lo. One for Hi, Lo
In case of, it means that two instruction buffers can be stored. The fetched instruction is received from the memory control circuit 110 through the data bus 102 and stored in the instruction buffer. Further, the address bus 101, the control signal line 103, and the data bus 102 have the same bit width (hereinafter, this bit width is referred to as a word).
【0016】メモリバンク130は、RAM120によ
って実現されるメモリバンクであり、アドレスが偶数で
ある偶数ワードアドレスのデータが格納されている。R
AM120は、通常の消費電力で動作するRAMであっ
て、図2に示すようにCPU100が一つの命令毎に動
作する時間であるC1、C2・・・などのようなサイク
ルタイム一つ分の時間でデータを読み出すことが出来る
ものである。The memory bank 130 is a memory bank implemented by the RAM 120 and stores data of even word addresses having even addresses. R
The AM 120 is a RAM that operates with normal power consumption, and is a time corresponding to one cycle time such as C1, C2, ... You can read the data with.
【0017】メモリバンク150は、RAM140によ
って実現されるメモリバンクであり、アドレスが奇数で
ある奇数ワードアドレスのデータが格納されている。R
AM140は、RAM120よりも少ない消費電力で動
作するRAMであって、図2に示すようにC1、C2・
・・などのようなサイクルタイム二つ分の時間でデータ
を読み出すことが出来るものである。The memory bank 150 is a memory bank implemented by the RAM 140, and stores data of odd word addresses whose addresses are odd. R
The AM 140 is a RAM that operates with less power consumption than the RAM 120, and as shown in FIG.
The data can be read in a time corresponding to two cycle times such as.
【0018】メモリ制御回路110は、CPU100か
らのメモリへのアクセスに従い、メモリバンク130、
メモリバンク150に対するアクセス、及びデータの読
み出しを行う。具体的には、図8の制御フロー図に示
す。まず、CPU100がアクセスしているアドレスが
偶数ワードアドレスであるかを判断する(ステップS8
01〜ステップS802)。CPU100がアクセスし
ているアドレスが偶数ワードアドレスであり、かつCP
U100から制御信号線103を通じて受けた制御信号
がLoであれば、メモリバンク130、150にアクセ
スし、その後メモリバンク130からデータを読み出す
(ステップS803〜ステップS806)。ここで、メ
モリバンク130に対するアクセスは、CPU100か
らアドレスバス101を通じて受けたアドレスの値をア
ドレスバス111を通じて送り、かつ制御信号を制御線
114を通じて送ることにより実現される。同様に、メ
モリバンク150に対するアクセスは、CPU100か
らアドレスバス101を通じて受けたアドレスの値をア
ドレスバス111を通じて送り、かつ制御信号を制御線
115を通じて送ることにより実現される。また、メモ
リバンク130からのデータの読み出しは、データバス
112を通じて行われる。CPU100がアクセスして
いるアドレスが偶数ワードアドレスであり、かつCPU
100から受けた制御信号がHiであれば、メモリバン
ク130のみにアクセスし、その後メモリバンク130
からデータを読み出す(ステップS807、ステップS
808)。一方、CPU100がアクセスしているアド
レスが奇数ワードアドレスで、かつCPU100が前回
読み出した命令のアドレスに連続していれば、メモリバ
ンク150からデータを読み出す(ステップS809、
ステップS810)。ここで、メモリバンク130から
のデータの読み出しは、データバス112を通じて行わ
れる。CPU100がアクセスしているアドレスが奇数
ワードアドレスでかつCPU100が前回読み出した命
令のアドレスの次のアドレスでなければ、メモリバンク
150にアクセスし、その後メモリバンク150からデ
ータを読み出す(ステップS811〜ステップS81
3)。The memory control circuit 110 follows the memory access from the CPU 100 to the memory bank 130,
The memory bank 150 is accessed and data is read. Specifically, it is shown in the control flow chart of FIG. First, it is determined whether the address accessed by the CPU 100 is an even word address (step S8).
01-step S802). The address accessed by the CPU 100 is an even word address, and CP
If the control signal received from the U100 through the control signal line 103 is Lo, the memory banks 130 and 150 are accessed, and then the data is read from the memory bank 130 (steps S803 to S806). Here, access to the memory bank 130 is realized by sending an address value received from the CPU 100 through the address bus 101 through the address bus 111 and sending a control signal through the control line 114. Similarly, access to the memory bank 150 is realized by sending the value of the address received from the CPU 100 through the address bus 101 through the address bus 111 and sending the control signal through the control line 115. Data is read from the memory bank 130 via the data bus 112. The address accessed by the CPU 100 is an even word address, and the CPU
If the control signal received from 100 is Hi, only memory bank 130 is accessed and then memory bank 130 is accessed.
Data is read from (step S807, step S
808). On the other hand, if the address accessed by the CPU 100 is an odd word address and is continuous with the address of the instruction previously read by the CPU 100, data is read from the memory bank 150 (step S809,
Step S810). Here, reading of data from the memory bank 130 is performed through the data bus 112. If the address accessed by the CPU 100 is an odd word address and is not the address next to the address of the instruction previously read by the CPU 100, the memory bank 150 is accessed, and then the data is read from the memory bank 150 (steps S811 to S81).
3).
【0019】以上のように構成された情報処理装置につ
いて、CPU100がメモリバンク130、150にア
クセスを行う場合の動作をタイミングチャート図2及び
図3を用いて説明する。図2は、CPU100が偶数ワ
ードアドレスから連続するデータへアクセスを行う場合
の動作を示したタイミングチャートである。The operation of the information processing apparatus configured as described above when the CPU 100 accesses the memory banks 130 and 150 will be described with reference to timing charts 2 and 3. FIG. 2 is a timing chart showing the operation when the CPU 100 accesses continuous data from even word addresses.
【0020】サイクルC1では、CPU100が出力し
たアドレスが偶数ワードアドレス(N)であり、かつ制
御信号線103がLoであるので、メモリバンク130
及びメモリバンク150に対して、アクセスする。メモ
リバンク130については、アクセスを1サイクルタイ
ムで終了し、データを読み出す。メモリバンク150は
アクセス速度が遅く、アクセスは1サイクルでは終了せ
ず次サイクルへ継続する。In cycle C1, since the address output by the CPU 100 is an even word address (N) and the control signal line 103 is Lo, the memory bank 130
And access the memory bank 150. With respect to the memory bank 130, access is completed within one cycle time, and data is read. The memory bank 150 has a low access speed, and the access is not completed in one cycle and continues to the next cycle.
【0021】サイクルC2では、CPU100が出力し
たアドレスは、奇数ワードアドレス(N+1)であり、
かつ前回(サイクルC1)にCPU100が読み出した
アドレスと連続しているので、メモリバンク150から
データを読み出す。このサイクルでは、メモリバンク1
30に対するアクセスは行わない。サイクルC3では、
CPU100が出力したアドレスが偶数ワードアドレス
(N+2)であり、かつ制御信号線103がLoである
ので、サイクルC1を同じ動作を行う。In cycle C2, the address output by the CPU 100 is an odd word address (N + 1),
Further, since it is continuous with the address read by the CPU 100 the previous time (cycle C1), the data is read from the memory bank 150. In this cycle, memory bank 1
No access is made to 30. In cycle C3,
Since the address output by the CPU 100 is an even word address (N + 2) and the control signal line 103 is Lo, the same operation is performed in the cycle C1.
【0022】サイクルC4では、CPU100が出力し
たアドレスが奇数ワードアドレス(N+3)であり、か
つ前回(サイクルC3)にCPU100が読み出したア
ドレスと連続しているので、サイクルC2と同じ動作を
行う。サイクルC5では、CPU100が出力したアド
レスが偶数ワードアドレス(N+4)であり、かつ制御
信号線103がLoでないので、メモリバンク130に
対して、アクセスする。メモリバンク130について
は、アクセスを1サイクルタイムで終了し、データを読
み出す。In cycle C4, the address output by the CPU 100 is an odd word address (N + 3) and is continuous with the address read by the CPU 100 the previous time (cycle C3), so the same operation as in cycle C2 is performed. In cycle C5, since the address output by the CPU 100 is an even word address (N + 4) and the control signal line 103 is not Lo, the memory bank 130 is accessed. With respect to the memory bank 130, access is completed within one cycle time, and data is read.
【0023】従って、偶数アドレスより連続アクセスを
行なう場合の平均消費電力は、アクセスされたメモリバ
ンクの消費電力で表されるので、(メモリバンク130
の消費電力+メモリバンク150の消費電力)/2と表
される。よって、メモリバンク130のみにアクセスさ
れる場合よりも消費電力が少なくなる。Therefore, the average power consumption in the case of continuous access from an even address is represented by the power consumption of the accessed memory bank.
Power consumption + memory bank 150 power consumption) / 2. Therefore, the power consumption is lower than when only the memory bank 130 is accessed.
【0024】次に図3は、CPU100が奇数ワードア
ドレスから連続するデータへアクセスを行う場合の動作
を示したタイミングチャートである。サイクルC1で
は、CPU100が出力したアドレスが奇数ワードアド
レス(N+1)であり、かつ前回にCPU100が読み
出したアドレスと連続していないので、メモリバンク1
50のみに対して、アクセスする。メモリバンク150
については、アクセスは1サイクルでは終了せず次サイ
クルへ継続する。Next, FIG. 3 is a timing chart showing the operation when the CPU 100 accesses continuous data from odd word addresses. In cycle C1, since the address output by the CPU 100 is an odd word address (N + 1) and is not continuous with the address read by the CPU 100 last time, the memory bank 1
Access only 50. Memory bank 150
For, the access does not end in one cycle and continues to the next cycle.
【0025】サイクルC2では、メモリバンク150へ
のアクセスは2サイクルで終了し、このサイクルで読み
出したデータを読み出す。サイクルC3では、CPU1
00が出力したアドレスが偶数ワードアドレス(N+
2)であり、かつ制御信号線103がLoであるので、
このサイクル以降の動作はCPU100が偶数ワードア
ドレスから連続するデータへアクセスを行う場合と同一
の動作を行う。In cycle C2, access to the memory bank 150 is completed in two cycles, and the data read in this cycle is read. In cycle C3, CPU1
The address output by 00 is an even word address (N +
2) and the control signal line 103 is Lo,
The operation after this cycle is the same as when the CPU 100 accesses continuous data from the even word address.
【0026】従って、奇数ワードアドレスより連続アク
セスを行う場合もメモリの消費電力は偶数ワードアドレ
スより連続アクセスする場合と同様である。なお、本実
施例ではRAM140はRAM120よりも低消費電力
なRAMとしたが、RAM120と同一のメモリを用い
て電源電圧を下げて消費電力を抑える構成でもよい。Therefore, the power consumption of the memory when the continuous access is performed from the odd word address is the same as that when the continuous access is performed from the even word address. In this embodiment, the RAM 140 has a lower power consumption than the RAM 120, but the same memory as the RAM 120 may be used to reduce the power consumption by reducing the power supply voltage.
【0027】なお、本実施例では、メモリバンクは、メ
モリバンク130とメモリバンク150との二種類であ
るが、二種類に限る必要はなく消費電力の異なる複数の
RAM毎に構成された複数のメモリバンクがあっても良
い。この場合、これらのメモリバンクには、消費電力の
大きいメモリバンクから順に一つづつデータが格納され
ている。そしてメモリ制御回路110は、前記メモリバ
ンクのなかで最も消費電力が大きいメモリバンクへのア
クセスが行われた場合に、それ以外のメモリバンクに格
納されているデータを同時にアクセスする構成とする。In this embodiment, there are two types of memory banks, that is, the memory bank 130 and the memory bank 150. However, the number of memory banks is not limited to two, and a plurality of RAMs each having different power consumption may be used. There may be a memory bank. In this case, data is stored in each of these memory banks in order from the memory bank with the largest power consumption. Then, the memory control circuit 110 is configured to simultaneously access the data stored in the other memory banks when the memory bank with the largest power consumption among the memory banks is accessed.
【0028】以上のように本実施例によれば、メモリバ
ンク130とメモリバンク130よりも消費電力の少な
いメモリバンク150設け、メモリバンク130へのア
クセスと並行してメモリバンク150へのアクセスを開
始することで、性能を低下させることなくメモリからの
読み出しが行え、メモリバンク130に対してだけアク
セスする場合に比較してメモリバンク150を効率良く
利用することで消費電力を抑えることが可能となる。さ
らに、制御信号線103を用いることで過度な先行アク
セスを禁止することができ、不要なメモリアクセスによ
る電力消費を低減できる。As described above, according to this embodiment, the memory bank 130 and the memory bank 150 which consumes less power than the memory bank 130 are provided, and the access to the memory bank 150 is started in parallel with the access to the memory bank 130. By doing so, it is possible to read from the memory without degrading the performance, and it is possible to reduce the power consumption by using the memory bank 150 more efficiently than when accessing only the memory bank 130. . Further, by using the control signal line 103, excessive preceding access can be prohibited, and power consumption due to unnecessary memory access can be reduced.
【0029】図4は本発明の第二の実施例における情報
処理装置の構成を示すものである。本図は、CPU10
0、メモリ制御回路410、メモリバンク130、メモ
リバンク150から構成されている。本図における構成
要素はほとんど図1と同様であるので異なる所のみ説明
する。異なるのは、第一の実施例におけるメモリ制御回
路110の代わりにメモリ制御回路410が設けられた
点と、第一の実施例におけるアドレスバス111の代わ
りに、アドレスバス414及びアドレスバス416を設
けた点である。FIG. 4 shows the configuration of the information processing apparatus in the second embodiment of the present invention. This figure shows the CPU 10
0, a memory control circuit 410, a memory bank 130, and a memory bank 150. Since the constituent elements in this figure are almost the same as those in FIG. 1, only different points will be described. The difference is that a memory control circuit 410 is provided instead of the memory control circuit 110 in the first embodiment, and an address bus 414 and an address bus 416 are provided instead of the address bus 111 in the first embodiment. It is a point.
【0030】メモリ制御回路410は、図6に示される
ように、制御回路200と、比較回路201と、ラッチ
202、203、204、206と、トライステートバ
ッファ210、211、212、213、214、21
5、216と、セレクタ205とから構成されている。
比較回路201は、ラッチ202に格納されているアド
レス(ただし最下位ビットは除く)とアドレスバス10
1から送られて来るアドレス(ただし最下位ビットは除
く)とを比較し、一致しているかを判断する。As shown in FIG. 6, the memory control circuit 410 includes a control circuit 200, a comparison circuit 201, latches 202, 203, 204 and 206, and tri-state buffers 210, 211, 212, 213 and 214. 21
5, 216 and a selector 205.
The comparison circuit 201 is configured to compare the address (excluding the least significant bit) stored in the latch 202 with the address bus 10.
The address sent from 1 (excluding the least significant bit) is compared to determine whether they match.
【0031】制御回路200は、CPU100からのメ
モリへのアクセスに従い、メモリバンク130、メモリ
バンク150に対するアクセス、及びデータの読み出し
を、制御回路200を除くメモリ制御回路410の各部
を制御することにより行う。また、制御回路200は、
内部に状態フラグ230を有する。状態フラグ230と
は、ラッチ202および204内にアドレスおよびデー
タが保持されていることを示すフラグである。具体的な
制御回路200の制御内容は、図9、図10の制御フロ
ーに示す。まず、CPUがメモリをアクセスしたとき状
態フラグ230がセットされているか判断する(ステッ
プS901、ステップS902)。状態フラグ230が
セットされていなければ、次に現在奇数アドレスにアク
セス中か判断する(ステップS906)。現在奇数アド
レスにアクセス中でなければ、現在アドレスバス101
は、偶数ワードアドレスであるかを判断する(ステップ
S912)。現在アドレスバス101によって示される
アドレスが偶数アドレスであれば、図8の処理1と同様
の処理を行い(ステップS913)、メモリバンク15
0にアクセスを行う場合は、奇数ワードアドレスをラッ
チ202/206に格納する(ステップS914)。ス
テップS912において、アドレスバス101によって
示されるアドレスが奇数アドレスであり、かつCPU1
00が前回アクセスしたアドレスに連続していれば(ス
テップS915)、メモリバンク150からデータを読
み出す(ステップS916)。ステップS912におい
て、アドレスバス101によって示されるあどれすが奇
数アドレスであり、かつCPU100が前回アクセスし
たアドレスの次のアドレスでなければ、メモリバンク1
50にアクセスし、データを読み出す(ステップS91
7〜ステップS919)。ステップS906において、
現在奇数アドレスにアクセス中であれば、さらに、アド
レスバス101によって示されるアドレスが偶数アドレ
スであり、かつ現在アクセス中のアドレスの次のアドレ
スでないことを判定する(ステップS907、ステップ
S908)。アドレスバス101によって示されるアド
レスが偶数アドレスでないか又は現在アクセス中のアド
レスに連続していれば、ステップS906に戻り、状態
が変わるまでループを繰り返す。アドレスバス101に
よって示されるアドレスが偶数アドレスであり、かつ現
在アクセス中のアドレスの次のアドレスでなければ、メ
モリバンク130にアクセスし(ステップS909)、
さらに、メモリバンク150からデータの読み出しを行
い、そのデータをラッチ204に格納する(ステップS
910)。その後、状態フラグ230をセットする(ス
テップS911)。ステップS902において、状態フ
ラグ230がセットされていれば、次に、比較回路20
1で、アドレスバス101が示すアドレスとラッチ20
2が保持しているアドレスとをそれぞれの最下位ビット
を無視して比較し(ステップS903)、それらが一致
していなければステップS906に進み、それらが一致
していれば、ラッチ204の内容を出力し、状態フラグ
230をクリアにする(ステップS904、ステップS
905)。The control circuit 200 performs access to the memory bank 130 and the memory bank 150 and reading of data by controlling each part of the memory control circuit 410 except the control circuit 200 in accordance with the memory access from the CPU 100. . Further, the control circuit 200 is
It has a status flag 230 inside. The status flag 230 is a flag indicating that the address and data are held in the latches 202 and 204. Specific control contents of the control circuit 200 are shown in the control flows of FIGS. 9 and 10. First, it is determined whether the state flag 230 is set when the CPU accesses the memory (steps S901 and S902). If the status flag 230 is not set, it is next determined whether or not the odd address is being accessed (step S906). If the odd address is not currently being accessed, the current address bus 101
Determines whether the address is an even word address (step S912). If the address indicated by the current address bus 101 is an even address, the same process as the process 1 of FIG. 8 is performed (step S913), and the memory bank 15
When accessing 0, the odd word address is stored in the latch 202/206 (step S914). In step S912, the address indicated by the address bus 101 is an odd address, and the CPU1
If 00 continues to the previously accessed address (step S915), the data is read from the memory bank 150 (step S916). In step S912, if the address indicated by the address bus 101 is an odd address and is not the address next to the address accessed by the CPU 100 last time, the memory bank 1
50 to read data (step S91)
7-step S919). In step S906,
If the odd address is currently being accessed, it is further determined that the address indicated by the address bus 101 is an even address and is not the address next to the address currently being accessed (steps S907 and S908). If the address indicated by the address bus 101 is not an even address or is continuous with the address currently being accessed, the process returns to step S906, and the loop is repeated until the state changes. If the address indicated by the address bus 101 is an even address and is not the address next to the address currently being accessed, the memory bank 130 is accessed (step S909),
Further, data is read from the memory bank 150 and stored in the latch 204 (step S
910). Then, the status flag 230 is set (step S911). If the status flag 230 is set in step S902, then the comparison circuit 20
1, the address indicated by the address bus 101 and the latch 20
2 is compared with the address held by 2 while ignoring the least significant bit (step S903). If they do not match, the process proceeds to step S906. Output and clear the status flag 230 (step S904, step S904
905).
【0032】以上のように構成された情報処理装置につ
いて、CPU100がメモリバンク130、150にア
クセスを行う場合の動作をタイミングチャートを用いて
説明する。ここで、連続するデータへアクセスを行う場
合は、第一の実施例において説明した図2、図3と同様
であるので説明を省略し、命令への連続アクセス時に、
他のアドレスのデータへのアクセスが行われる場合を図
5に示すタイミングチャートを用いて説明する。The operation of the information processing apparatus configured as described above when the CPU 100 accesses the memory banks 130 and 150 will be described with reference to timing charts. Here, when the continuous data is accessed, the description is omitted because it is the same as that in FIGS. 2 and 3 described in the first embodiment, and when the continuous access to the instruction is performed,
A case where data at another address is accessed will be described with reference to the timing chart shown in FIG.
【0033】サイクルC1では、CPU100が出力し
たアドレスは偶数ワードアドレス(N)であり、かつ制
御信号線103がLoであるので、メモリバンク130
及びメモリバンク150に対して、アクセスするととも
に、メモリバンク150へアクセスしているアドレスを
ラッチ202およびラッチ206に格納する。サイクル
C2では、CPU100はこのサイクルで奇数ワードア
ドレス(N+1)の命令へのアクセスに先行して偶数ワ
ードアドレス(M)を出力したので、偶数ワードアドレ
ス(M)のデータの読み出しを開始する。それとは、並
行にメモリバンク150に対しては、前回(サイクルC
1)ラッチ206に保持したアドレスが送られ、継続し
て読み出しを行う。2つのメモリバンクへのアクセスは
このサイクルで終了しするが、メモリバンク150より
読み出された奇数ワードアドレス(N+1)のデータ
は、ラッチ204に格納されるとともに、ラッチ202
および204内にアドレスおよびデータが保持されてい
ることを示す状態フラグ230をセットする。In cycle C1, since the address output by the CPU 100 is an even word address (N) and the control signal line 103 is Lo, the memory bank 130
In addition to accessing the memory bank 150, the address accessing the memory bank 150 is stored in the latch 202 and the latch 206. In cycle C2, the CPU 100 outputs the even word address (M) prior to the access to the instruction of the odd word address (N + 1) in this cycle, and thus starts reading the data of the even word address (M). This means that the memory bank 150 is read in parallel (cycle C
1) The address held in the latch 206 is sent, and reading is continued. Although the access to the two memory banks ends in this cycle, the data of the odd word address (N + 1) read from the memory bank 150 is stored in the latch 204 and the latch 202.
And state flag 230, which indicates that the address and data are held in 204.
【0034】サイクルC3では、状態フラグ230がセ
ットされているので、比較回路201によりラッチ20
2内に保持されているサイクルC1でCPU100がメ
モリバンク150アクセスした奇数ワードアドレスとア
ドレスバス101が示すアドレスとをそれぞれ最下位ビ
ットを無視して比較した結果一致していることからメモ
リバンク150へのアクセスは行わず、ラッチ204よ
りデータを読み出す。In cycle C3, since the status flag 230 is set, the comparison circuit 201 causes the latch 20 to operate.
In the cycle C1 held in 2, the odd-numbered word address accessed by the CPU 100 in the memory bank 150 and the address indicated by the address bus 101 are compared with each other by ignoring the least significant bit. Is not accessed, and the data is read from the latch 204.
【0035】サイクルC4以降は、第一の実施例におけ
る図2に示すタイミングチャートのサイクルC1、サイ
クルC2と同様であるので、説明を省略する。以上のよ
うに本実施例によれば、メモリ制御回路410内にラッ
チ204を設けることでメモリバンク150への先行ア
クセスを開始した後にメモリバンク130へのアクセス
が行われた場合でも、読み出したデータを無駄にするこ
とがないので消費電力を抑えることが可能となる。Since the cycle C4 and the subsequent steps are the same as the cycle C1 and the cycle C2 of the timing chart shown in FIG. 2 in the first embodiment, the description thereof will be omitted. As described above, according to the present embodiment, by providing the latch 204 in the memory control circuit 410, even when the memory bank 130 is accessed after the preceding access to the memory bank 150 is started, the read data is read. Since it is not wasted, the power consumption can be suppressed.
【0036】図7は本発明の第三の実施例における情報
処理装置の構成を示すものである。本図は、CPU30
0、メモリ310、メモリ制御回路320から構成され
ている。CPU300は、固定長の命令フォーマットを
持つ中央処理装置(CPU)であって、命令フェッチを
命令の実行に先行して行えるように、内部に命令バッフ
ァを有している。この命令バッファは、命令を先行して
読み出した命令を複数格納でき、CPU300が分岐命
令を実行し分岐する場合は、格納している命令を全てC
PU300の指示により廃棄する。命令のフェッチを行
うためにメモリにアクセスする際には、フェッチすべき
命令のアドレスをアドレスバス301を通じてメモリ3
10に出力すると同時に、制御線302を通じてアクセ
ス属性情報をメモリ制御回路320に出力し、かつ制御
線303を通じて制御情報をメモリ制御回路320に出
力する。ここで、アクセス属性情報とは、CPU300
によるメモリ310へのアクセスが、分岐先が特定出来
る命令である無条件分岐命令の実行によるアクセスであ
るか示す情報である。制御情報とは、メモリ310内で
使用されているメモリチップを選択し動作を開始させる
ための情報である。次に、フェッチした命令は、データ
バス304を通じて受け取り命令バッファに格納する。
データバス304のビット幅は、CPU300の命令長
の倍数になっている。FIG. 7 shows the configuration of the information processing apparatus in the third embodiment of the present invention. This figure shows the CPU 30
0, a memory 310, and a memory control circuit 320. The CPU 300 is a central processing unit (CPU) having a fixed length instruction format, and has an internal instruction buffer so that instruction fetch can be performed prior to execution of an instruction. This instruction buffer can store a plurality of instructions that have been read in advance, and when the CPU 300 executes a branch instruction and branches, all the stored instructions are C
Discard according to the instruction of PU300. When accessing the memory to fetch the instruction, the address of the instruction to be fetched is stored in the memory 3 via the address bus 301.
At the same time, the access attribute information is output to the memory control circuit 320 via the control line 302, and the control information is output to the memory control circuit 320 via the control line 303. Here, the access attribute information is the CPU 300.
It is information indicating whether the access to the memory 310 by is an access by executing an unconditional branch instruction whose branch destination can be specified. The control information is information for selecting a memory chip used in the memory 310 and starting an operation. Next, the fetched instruction is received through the data bus 304 and stored in the instruction buffer.
The bit width of the data bus 304 is a multiple of the instruction length of the CPU 300.
【0037】メモリ310は、メモリ制御回路320で
制御されるメモリである。メモリ制御回路320は、許
可フラグ制御回路330、メモリアクセス許可フラグ3
40、制御回路350、デコーダ360から構成されて
いる。メモリアクセス許可フラグ340は、このフラグ
がセットされているとき、メモリにアクセスできること
を示すフラグである。初期状態では、フラグがセットさ
れている状態であるとする。The memory 310 is a memory controlled by the memory control circuit 320. The memory control circuit 320 includes a permission flag control circuit 330 and a memory access permission flag 3.
40, a control circuit 350, and a decoder 360. The memory access permission flag 340 is a flag indicating that the memory can be accessed when this flag is set. It is assumed that the flag is set in the initial state.
【0038】デコーダ360は、CPU300により読
み出された命令が無条件分岐命令であるかどうかを判断
する。無条件分岐命令であれば、メモリアクセス許可フ
ラグ340をクリアにすべき旨の信号を制御線322を
通じて許可フラグ制御回路330に送る。許可フラグ制
御回路330は、デコーダ360よりメモリアクセス許
可フラグ340をクリアにすべき旨の信号を受けたとき
メモリアクセス許可フラグ340をクリアする。また、
CPU300より、制御線302を通じてアクセス属性
情報を受け、この情報がアクセスが無条件分岐命令の実
行によるアクセスである場合は、メモリアクセス許可フ
ラグ340をセットする。The decoder 360 determines whether the instruction read by the CPU 300 is an unconditional branch instruction. If it is an unconditional branch instruction, a signal indicating that the memory access permission flag 340 should be cleared is sent to the permission flag control circuit 330 through the control line 322. The permission flag control circuit 330 clears the memory access permission flag 340 when receiving a signal from the decoder 360 to clear the memory access permission flag 340. Also,
The access attribute information is received from the CPU 300 through the control line 302, and if the information is the access by executing the unconditional branch instruction, the memory access permission flag 340 is set.
【0039】制御回路350は、メモリアクセス許可フ
ラグ340を参照することにより、CPU300からメ
モリ310へのアクセスを制御する。具体的には、図7
の制御フローに示す。まずCPU300が命令のフェッ
チによるメモリ310へのアクセスを行ったかをどうか
を判断する(ステップS111)。アクセスを行ってい
れば、さらにCPU300から受け取るアクセス属性情
報によりそのアクセスが無条件分岐命令によるアクセス
であるか又は、メモリアクセス許可フラグ340がセッ
トされているかどうかを判断する(ステップS112、
ステップS113)。そのアクセスが無条件分岐命令に
よるアクセスであるか又は、メモリアクセス許可フラグ
340がセットされているときは、そのアクセスにより
メモリ310より命令を読み出す(ステップS11
5)。そのアクセスが無条件分岐命令によるアクセスで
あり、かつ許可フラグがセットされていなければ、その
アクセスによりメモリを読み出さずにバスサイクルを終
了させる(ステップS114)。The control circuit 350 controls the access from the CPU 300 to the memory 310 by referring to the memory access permission flag 340. Specifically, FIG.
Is shown in the control flow. First, it is determined whether the CPU 300 has accessed the memory 310 by fetching an instruction (step S111). If the access is being performed, it is further determined from the access attribute information received from the CPU 300 whether the access is an unconditional branch instruction or the memory access permission flag 340 is set (step S112,
Step S113). If the access is an access by an unconditional branch instruction or the memory access permission flag 340 is set, the instruction is read from the memory 310 by the access (step S11).
5). If the access is an unconditional branch instruction and the permission flag is not set, the access ends the bus cycle without reading the memory (step S114).
【0040】以上のように本実施例によれば、メモリよ
り無条件分岐命令をフェッチした場合は、新たに無条件
分岐先命令の実行による分岐先命令のフェッチが行われ
るまでメモリアクセス許可フラグ340をリセットし、
以降メモリアクセス許可フラグ340がリセットされて
いる場合はメモリ制御回路320のメモリへのアクセス
を禁止することでCPU300の処理に不要なメモリア
クセスを禁止でき、メモリを低消費電力状態に維持で
き、消費電力を抑える事ができる。また、無条件分岐命
令の検出をCPU300に先行してメモリ制御回路32
0で行うため、CPU内でフェッチの制御を行うよりも
早い段階での制御が可能であり、より多くの消費電力を
抑えることが可能である。As described above, according to this embodiment, when an unconditional branch instruction is fetched from the memory, the memory access permission flag 340 is executed until the branch destination instruction is fetched by executing the new unconditional branch destination instruction. Reset,
After that, when the memory access permission flag 340 is reset, by prohibiting the memory control circuit 320 from accessing the memory, it is possible to prohibit unnecessary memory access for the processing of the CPU 300, and to maintain the memory in a low power consumption state. Power can be suppressed. In addition, the memory control circuit 32 detects the unconditional branch instruction prior to the CPU 300.
Since it is 0, control can be performed at an earlier stage than fetch control in the CPU, and more power consumption can be suppressed.
【0041】なお、本実施例では、固定長の命令を持つ
中央処理装置としたが、命令フォーマットをメモリ制御
回路320で解読することで、可変長の命令フォーマッ
トを持つ中央処理装置においても利用することは可能で
ある。In this embodiment, the central processing unit having a fixed length instruction is used, but the memory control circuit 320 decodes the instruction format so that the central processing unit also has a variable length instruction format. It is possible.
【0042】[0042]
【発明の効果】以上のように、本発明の請求項1では、
消費電力の異なる複数のRAM毎に構成された複数のメ
モリバンクへのアクセスを並行して行うことで、処理速
度の低下を招くことなく消費電力を低減する情報処理装
置を提供することができる。本発明の請求項2では、中
央処理装置が格納可能情報を命令の読み出しを行う際に
出力し、メモリ制御手段がそれに基づいてメモリバンク
への同時アクセスを禁止することにより、不要なメモリ
アクセスを禁止することにより処理速度の低下を招くこ
となく情報処理装置の消費電力を低減することができ
る。As described above, according to claim 1 of the present invention,
By concurrently accessing a plurality of memory banks configured for each of a plurality of RAMs having different power consumptions, it is possible to provide an information processing device that reduces the power consumptions without lowering the processing speed. According to the second aspect of the present invention, the central processing unit outputs the storable information when the instruction is read out, and the memory control means prohibits the simultaneous access to the memory bank based on it, thereby avoiding unnecessary memory access. By prohibiting it, the power consumption of the information processing device can be reduced without lowering the processing speed.
【0043】本発明の請求項3では、メモリ制御手段の
中にアドレス保持部と命令保持部と制御部とを備えるこ
とにより、第2のメモリバンクから命令を読み出してい
る最中に第1のメモリバンクへのアクセスが行われた場
合でも、読み出したデータを無駄にすることがないので
不要なアクセスを行わずにすみ、ひいては処理速度の低
下を招くことなく情報処理装置の消費電力を低減するこ
とができる。According to the third aspect of the present invention, the memory control means is provided with the address holding section, the instruction holding section and the control section, so that the first section is provided while the instruction is being read from the second memory bank. Even if the memory bank is accessed, the read data is not wasted, so unnecessary access can be avoided, and the power consumption of the information processing device can be reduced without lowering the processing speed. be able to.
【0044】本発明の請求項4では、メモリから無条件
分岐命令を読み出した後、中央処理装置において無条件
分岐命令の実行による分岐先の命令のフェッチが行われ
るまで、中央処理装置がメモリに対するアクセスを停止
するので、無駄なアクセスを禁止することにより処理速
度の低下を招くことなく情報処理装置の消費電力を低減
することができる。According to the fourth aspect of the present invention, after the unconditional branch instruction is read from the memory, the central processing unit performs the fetching of the branch destination instruction by the execution of the unconditional branch instruction in the central processing unit. Since the access is stopped, it is possible to reduce the power consumption of the information processing device without inhibiting the processing speed by prohibiting the unnecessary access.
【図1】第一の実施例における情報処理装置の構成図で
ある。FIG. 1 is a configuration diagram of an information processing apparatus according to a first embodiment.
【図2】第一の実施例の動作を示すタイミングチャート
である。FIG. 2 is a timing chart showing the operation of the first embodiment.
【図3】第一の実施例の動作を示すタイミングチャート
である。FIG. 3 is a timing chart showing the operation of the first embodiment.
【図4】第二の実施例における情報処理装置の構成図で
ある。FIG. 4 is a configuration diagram of an information processing apparatus according to a second embodiment.
【図5】第二の実施例の動作を示すタイミングチャート
である。FIG. 5 is a timing chart showing the operation of the second embodiment.
【図6】第二の実施例におけるメモリ制御回路の構成図
である。FIG. 6 is a configuration diagram of a memory control circuit according to a second embodiment.
【図7】第三の実施例における情報処理装置の構成図で
ある。FIG. 7 is a block diagram of an information processing apparatus in a third embodiment.
【図8】第一の実施例におけるメモリ制御回路110の
制御内容を示すフロー図である。FIG. 8 is a flowchart showing the control contents of the memory control circuit 110 in the first embodiment.
【図9】第二の実施例における制御回路200の制御内
容を示すフロー図である。FIG. 9 is a flowchart showing the control contents of the control circuit 200 in the second embodiment.
【図10】図9の続きの図である。FIG. 10 is a continuation of FIG. 9;
【図11】第三の実施例における制御回路350の制御
内容を示すフロー図である。FIG. 11 is a flowchart showing the control contents of the control circuit 350 in the third embodiment.
100 CPU 110 メモリ制御回路 120 RAM 130 メモリバンク 140 RAM 150 メモリバンク 410 メモリ制御回路 200 制御回路 201 比較回路 230 状態フラグ 300 CPU 310 メモリ 320 メモリ制御回路 330 許可フラグ制御回路 340 メモリアクセス許可フラグ 350 制御回路 360 デコーダ 100 CPU 110 memory control circuit 120 RAM 130 memory bank 140 RAM 150 memory bank 410 memory control circuit 200 control circuit 201 comparison circuit 230 status flag 300 CPU 310 memory 320 memory control circuit 330 permission flag control circuit 340 memory access permission flag 350 control circuit 360 decoder
Claims (4)
ッファを内蔵している中央処理装置と、 消費電力の異なる複数のRAM毎に構成された複数のメ
モリバンクであって、消費電力の大きいメモリバンクか
ら順に一つづつデータが格納されている複数のメモリバ
ンクと、 前記メモリバンクのなかで最も消費電力が大きいメモリ
バンクへのアクセスが行われた場合に、それ以外のメモ
リバンクに格納されているデータを同時にアクセスする
メモリ制御手段とを備えたことを特徴とする情報処理装
置。1. A central processing unit having a built-in instruction buffer for prefetching instructions, and a plurality of memory banks configured for each of a plurality of RAMs having different power consumption, the memory having a large power consumption. A plurality of memory banks in which data is stored in order from the bank, and when the memory bank with the highest power consumption among the memory banks is accessed, the data is stored in the other memory banks. An information processing apparatus, comprising: a memory control unit for simultaneously accessing existing data.
内に格納可能な命令語数を示す格納可能情報を同時に出
力し、 前記メモリ制御手段は、 さらに、格納可能情報に基づいて前記命令バッファに命
令の格納が行えない場合は前記複数のメモリバンクへの
同時アクセスを禁止することを特徴とする請求項1記載
の情報処理装置。2. The central processing unit further outputs storable information indicating the number of instruction words that can be stored in the instruction buffer at the same time when the instruction is read, and the memory control unit further stores the storable information. 2. The information processing apparatus according to claim 1, wherein simultaneous access to the plurality of memory banks is prohibited when an instruction cannot be stored in the instruction buffer based on information.
ッファを内蔵し、命令の読み出しを行う場合に前記命令
バッファ内に格納可能な命令語数を示す格納可能情報を
同時に出力する中央処理装置と、 通常の電力を消費するRAMにより構成され偶数又は奇
数どちらかの種類のアドレスのデータを格納する第1メ
モリバンクと、 前記第1のメモリバンクより電力の消費が少ないRAM
により構成され偶数又は奇数であって第1のメモリバン
クに格納された以外の種類のアドレスのデータを格納す
る第2のメモリバンクと、 メモリ制御手段とを備え、 前記メモリ制御手段は、 前記第2のメモリバンクへのアクセスを行うアドレスを
保持するアドレス保持部と、 前記第2のメモリバンクから読み出した命令を保持する
命令保持部と、 中央処理装置がアクセスしたアドレスがアドレス保持部
に格納されている場合は、命令保持部から保持している
命令を読み出し、 第1のメモリバンクにアクセスした場合で、格納可能情
報に基づいて前記命令バッファに命令の格納が行える場
合は第2のメモリバンクにも同時アクセスし、 第2のメモリバンクから命令を読み出している最中に、
現在読み出している命令のアドレスに連続していなくて
かつ第1のメモリバンクに格納されているアドレスにア
クセスした場合は、第2のメモリバンクからの読み出し
を継続し、第2のメモリバンクからの読み出し終了後、
読み出した命令を命令保持部に格納する制御部とを備え
たことを特徴とする情報処理装置。3. A central processing unit having a built-in instruction buffer for prefetching an instruction and simultaneously outputting storable information indicating the number of instruction words that can be stored in the instruction buffer when the instruction is read. A first memory bank configured by a RAM that consumes normal power and storing data of an even or odd type of address; and a RAM that consumes less power than the first memory bank
A second memory bank configured to store even-numbered or odd-numbered data of an address other than that stored in the first memory bank, and memory control means, wherein the memory control means comprises: An address holding unit holding an address for accessing the second memory bank, an instruction holding unit for holding an instruction read from the second memory bank, and an address accessed by the central processing unit are stored in the address holding unit. If the stored instruction is read from the instruction storage unit and the first memory bank is accessed, and if the instruction can be stored in the instruction buffer based on the storable information, the second memory bank , While simultaneously reading the instructions from the second memory bank,
If the address of the instruction currently being read is not consecutive and the address stored in the first memory bank is accessed, the reading from the second memory bank is continued and the instruction from the second memory bank is continued. After reading,
An information processing apparatus, comprising: a control unit that stores a read instruction in an instruction holding unit.
アクセスが分岐先が特定できる命令である無条件分岐命
令の実行によるものであるかを示すアクセス属性情報を
前記メモリへのアクセス時に出力する中央処理装置と、 アクセス制御情報及び前記メモリから読み出した命令と
を用いて、前記中央処理装置が前記メモリより無条件分
岐命令の読み出しを行ってから、無条件分岐命令の実行
を行うまで前記メモリへのアクセスを中断するメモリ制
御手段とを備えたことを特徴とする情報処理装置。4. A memory that stores instructions and a central processing unit that accesses the memory, and indicates whether the access is due to execution of an unconditional branch instruction whose branch destination can be specified. After the central processing unit reads the unconditional branch instruction from the memory using the central processing unit that outputs access attribute information when accessing the memory and the access control information and the instruction read from the memory An information processing device, comprising: a memory control unit that suspends access to the memory until execution of an unconditional branch instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6153971A JPH0822413A (en) | 1994-07-05 | 1994-07-05 | Information processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6153971A JPH0822413A (en) | 1994-07-05 | 1994-07-05 | Information processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0822413A true JPH0822413A (en) | 1996-01-23 |
Family
ID=15574085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6153971A Pending JPH0822413A (en) | 1994-07-05 | 1994-07-05 | Information processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0822413A (en) |
-
1994
- 1994-07-05 JP JP6153971A patent/JPH0822413A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100307603B1 (en) | Low power data processing device | |
KR100806284B1 (en) | High Energy Efficiency Processor Using Dynamic Voltage Scaling | |
JP2004171177A (en) | Cache system and cache memory controller | |
JP2009032257A (en) | Processor architecture selectively using finite-state-machine for control code | |
JP2006107507A (en) | Controller of instruction word cache and instruction word conversion reference buffer, and control method thereof | |
JPH0822413A (en) | Information processor | |
KR0156976B1 (en) | Memory control circuit and integrated circuit element incorporating this circuit | |
KR20030010823A (en) | Multi-way set associative cache memory and data reading method therefrom | |
KR19980058221A (en) | Processor with pipeline stop circuit | |
JP2000099399A (en) | Way predictive cache memory and access method therefor | |
JP4498705B2 (en) | Cash system | |
US20020156964A1 (en) | Reduction of bank switching instructions in main memory of data processing apparatus having main memory and plural memory | |
JPWO2006132006A1 (en) | Memory control device and memory control method | |
JPH1020959A (en) | Low power consumption micro processor | |
JPH04255995A (en) | Instruction cache | |
JPH064398A (en) | Information processor | |
JP3753368B2 (en) | Data processor and data processing system | |
JPH0212358A (en) | Data transfer system | |
JPH11272544A (en) | Fetch data buffering circuit | |
KR100416858B1 (en) | Apparatus for processing instruction | |
JPH10333987A (en) | Cpu core | |
JPH11194969A (en) | Memory control circuit and memory device | |
JPH10333975A (en) | Microprocessor system | |
JPS62145430A (en) | Data processor | |
JP2009098819A (en) | Memory system, control method for memory system, and computer system |