JPH11306073A - Information processor - Google Patents

Information processor

Info

Publication number
JPH11306073A
JPH11306073A JP10113080A JP11308098A JPH11306073A JP H11306073 A JPH11306073 A JP H11306073A JP 10113080 A JP10113080 A JP 10113080A JP 11308098 A JP11308098 A JP 11308098A JP H11306073 A JPH11306073 A JP H11306073A
Authority
JP
Japan
Prior art keywords
main memory
cpu
write buffer
write
signal
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
JP10113080A
Other languages
Japanese (ja)
Inventor
Ryoichi Sato
亮一 佐藤
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP10113080A priority Critical patent/JPH11306073A/en
Publication of JPH11306073A publication Critical patent/JPH11306073A/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

  • Memory System (AREA)

Abstract

PROBLEM TO BE SOLVED: To attain improvement of performance and low power consumption in writing data in a main memory which consists of a high-speed memory and a low-speed memory in an information processor using a write buffer. SOLUTION: In an information processor having a write buffer 6 between a CPU 1 and a main memory 5, the main memory 5 consists of a main memory A51 and a main memory B52 a write speed of which is slower than that of the main memory A51. Then, a first mode in which the CPU 1 directly writes data in the main memory A51 without the write buffer 6 intervened and a second mode in which the CPU 1 writes the data in the main memory B52 through the write buffer 6 are switched in accordance with a written destination of the main memory 5.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、書き込み速度の異
なる複数のメモリから構成されるメインメモリを有する
情報処理装置において、メインメモリの能力に応じてラ
イトバッファを使用、不使用にして低消費電力化を図る
ことのできる情報処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus having a main memory composed of a plurality of memories having different writing speeds. The present invention relates to an information processing device that can be realized.

【0002】[0002]

【従来の技術】一般に、高性能CPUは、その動作に比
して低速なメインメモリに書き込みを行う際、全体の動
作を高速化するためにライトバッファを採用している。
ライトバッファには、ライトスルー方式とライトバック
方式の2つの制御方式があるが、基本的な機能は同一な
ので、ここでは構造がより単純なライトスルー方式のラ
イトバッファについて説明する。
2. Description of the Related Art Generally, a high-performance CPU employs a write buffer in order to speed up the entire operation when writing to a main memory which is slower than its operation.
The write buffer has two control systems, a write-through system and a write-back system, but since the basic functions are the same, a write buffer of a write-through system with a simpler structure will be described here.

【0003】図3に、ライトバッファの構成を示す。ラ
イトバッファ6は、ライトバッファ制御回路2、アドレ
スレジスタ3、及びデータレジスタ4から構成される。
61は中央演算処理装置1(以下、CPU1という)が
ライトバッファ6へのメインメモリ書き込み要求を示す
信号、62はライトバッファ6がCPU1からの書き込
みアドレス31と書き込みデータ41の受け取りを完了
したことを示す信号、27はライトバッファ6がメイン
メモリ5への書き込み要求を示す信号、28はメインメ
モリ5がライトバッファ6からの書き込みアドレス34
と書き込みデータ44の受け取りを完了したことを示す
信号、25はライトバッファ制御回路2がアドレスレジ
スタ3にラッチ制御する信号、26はライトバッファ制
御回路2がデータレジスタ4をラッチ制御する信号であ
る。
FIG. 3 shows a configuration of a write buffer. The write buffer 6 includes a write buffer control circuit 2, an address register 3, and a data register 4.
Reference numeral 61 denotes a signal indicating that the central processing unit 1 (hereinafter, referred to as CPU 1) requests main memory writing to the write buffer 6, and 62 indicates that the write buffer 6 has completed receiving the write address 31 and the write data 41 from the CPU 1. A signal 27 indicates a write request from the write buffer 6 to the main memory 5, and a signal 28 indicates a write address 34 from the write buffer 6 to the main memory 5.
25, a signal indicating that the reception of the write data 44 has been completed, 25 is a signal that the write buffer control circuit 2 latches and controls the address register 3, and 26 is a signal that the write buffer control circuit 2 latches the data register 4.

【0004】次に、このライトバッファの動作について
説明する。CPU1からメインメモリ5への書き込み要
求が発生すると、CPU1は、信号61を出すと同時に
書き込みアドレス31と書き込みデータ41を出力す
る。ライトバッファ6は信号61を受け、書き込みアド
レス31と書き込みデータ41をそれぞれアドレスレジ
スタ3とデータレジスタ4に取り込む。そして取り込み
が完了すると即座に信号62をCPU1に出力し、同時
にメインメモリ5への信号27を出力しメインメモリ5
への書き込み動作を開始する。メインメモリ5は、信号
27を受け、書き込みアドレス34に書き込みデータ4
4を取り込む。そして取り込みが完了すると信号28を
ライトバッファ6に出力し、一連の書き込み動作を完了
する。一般にメインメモリへの書き込み動作はCPUの
動作に比べて遅いため、ライトバッファ6を設けること
によりCPU1は信号62を受け取るとメインメモリ5
への書き込み完了を待たずして次の動作に入れるため、
システム全体の実行速度が向上する。
Next, the operation of the write buffer will be described. When a write request from the CPU 1 to the main memory 5 occurs, the CPU 1 outputs a write address 31 and write data 41 at the same time as outputting a signal 61. The write buffer 6 receives the signal 61 and takes the write address 31 and the write data 41 into the address register 3 and the data register 4, respectively. As soon as the capture is completed, a signal 62 is output to the CPU 1, and at the same time, a signal 27 to the main memory 5 is output.
Start the write operation to the. The main memory 5 receives the signal 27 and stores the write data 4 in the write address 34.
Import 4 Then, when the capture is completed, the signal 28 is output to the write buffer 6, and a series of write operations is completed. In general, the write operation to the main memory is slower than the operation of the CPU. Therefore, by providing the write buffer 6, the CPU 1
In order to start the next operation without waiting for the completion of writing to
The execution speed of the entire system is improved.

【0005】また、ライトバッファ方式を動的に切り替
える技術は、特開平6−348592号公報に記載され
ている。
A technique for dynamically switching the write buffer system is described in Japanese Patent Application Laid-Open No. 6-348592.

【0006】[0006]

【発明が解決しようとする課題】ところで、ライトバッ
ファは、CPUの動作速度が高速化する一方でメインメ
モリの書き込み速度がそれほど高速化されないために、
両者の速度差を吸収し、システム全体の性能を落とさな
いために導入されている。しかしながら、携帯機器など
低消費電力を重視するシステムではCPUの動作周波数
を負荷に応じて変化させ、例えば、待機時には動作周波
数を遅くしてCPUを低速動作させている。従来、ライ
トバッファを採用しているシステムでは処理性能の向上
を重視しているため、CPUを低速動作させた場合に
は、CPUとメインメモリが同じ動作速度で動作可能、
つまりCPUの動作周波数に同期して書き込み可能にな
ればライトバッファが不要になるにもかかわらず、従来
はメインメモリへの書き込みはライトバッファを介さな
いと出来ない仕組みになっており、これがオーバーヘッ
ドとして低消費電力化の妨げとなっていた。
By the way, the write buffer has a problem that the operating speed of the CPU is increased while the writing speed of the main memory is not so increased.
It is introduced to absorb the speed difference between the two and not to reduce the performance of the whole system. However, in a system that places importance on low power consumption, such as a portable device, the operating frequency of the CPU is changed in accordance with the load. For example, the operating frequency is reduced during standby to operate the CPU at low speed. Conventionally, in systems employing a write buffer, the emphasis has been placed on improving processing performance. Therefore, when the CPU is operated at a low speed, the CPU and the main memory can operate at the same operating speed.
In other words, if writing becomes possible in synchronization with the operating frequency of the CPU, a write buffer becomes unnecessary, but writing to the main memory has conventionally been made possible only through the write buffer. This hindered low power consumption.

【0007】また、メインメモリは、システム上の要求
から高速メモリと低速メモリを組み合わせて用いる場合
があるが、高速メモリではCPUの動作周波数と同期し
て書き込み動作が可能な場合でも、従来ライトバッファ
を前提としたシステムでは一律にライトバッファを介し
てでないとメインメモリに書き込みが行えない仕組みに
なっており、この場合低速メモリに書き込みを行うには
ライトバッファが有効に働く一方、高速メモリに書き込
みを行うにはライトバッファがオーバーヘッドとなり低
消費電力化の妨げになるという問題があった。
The main memory may be used in combination with a high-speed memory and a low-speed memory depending on the requirements of the system. In a system that presupposes that data cannot be written to the main memory without writing via a write buffer, the write buffer works effectively to write to the low-speed memory, while writing to the high-speed memory However, there is a problem in that a write buffer becomes an overhead to prevent power consumption.

【0008】本発明の目的は、上記課題に鑑み、低消費
電力化が可能な情報処理装置を提供することにある。
An object of the present invention is to provide an information processing apparatus capable of reducing power consumption in view of the above problems.

【0009】[0009]

【課題を解決するための手段】請求項1記載の情報処理
装置は、CPUとメインメモリと前記CPUと前記メイ
ンメモリとの間にライトバッファとを有する情報処理装
置において、前記メインメモリは、第1メインメモリと
第1メインメモリより書き込み速度の遅い第2メインメ
モリとからなり、前記CPUが前記ライトバッファを介
さずに第1メインメモリにデータを直接書き込む第1モ
ードと前記CPUが前記ライトバッファを介して第2メ
インメモリにデータを書き込む第2モードとを前記メイ
ンメモリの書き込み先のアドレスに応じて切り替える切
替手段を有することを特徴とする。
According to a first aspect of the present invention, there is provided an information processing apparatus having a CPU, a main memory, and a write buffer between the CPU and the main memory. A first mode in which the CPU directly writes data to the first main memory without passing through the write buffer; and a first mode in which the CPU writes the data directly to the first main memory. Switching means for switching between a second mode in which data is written to the second main memory via the main memory according to a write destination address of the main memory.

【0010】請求項2記載の情報処理装置は、請求項1
記載の情報処理装置において、前記切替手段は、前記C
PUからの第1メインメモリまたは前記ライトバッファ
への書き込み要求信号、及び第1メインメモリまたは前
記ライトバッファから前記CPUへのデータ受け取り完
了信号を切り替えることを特徴とする。
[0010] The information processing apparatus according to the second aspect is the first aspect.
In the information processing device described in the above, the switching means may be configured to switch the C
A write request signal from a PU to the first main memory or the write buffer and a data reception completion signal from the first main memory or the write buffer to the CPU are switched.

【0011】請求項3記載の情報処理装置は、請求項2
記載の情報処理装置において、前記切替手段は、前記C
PUからの第1メインメモリまたは前記ライトバッファ
へのアドレス経路、及び前記CPUからの第1メインメ
モリまたは前記ライトバッファへのデータ経路を切り替
えることを特徴とする。
[0011] The information processing apparatus according to the third aspect is the second aspect.
In the information processing device described in the above, the switching means may be configured to switch the C
An address path from a PU to the first main memory or the write buffer and a data path from the CPU to the first main memory or the write buffer are switched.

【0012】請求項4記載の情報処理装置は、請求項1
記載の情報処理装置において、前記切替手段を切り替え
るための制御信号を出力する切替手段制御手段を有し、
前記CPUからのCPU動作速度を示すCPU出力制御
信号に基づいて前記制御手段が制御されることを特徴と
する。
An information processing apparatus according to a fourth aspect of the present invention provides the information processing apparatus according to the first aspect.
The information processing apparatus according to claim 1, further comprising a switching unit control unit that outputs a control signal for switching the switching unit,
The control means is controlled based on a CPU output control signal indicating a CPU operation speed from the CPU.

【0013】請求項5記載の情報処理装置は、請求項1
記載の情報処理装置において、前記切替手段を切り替え
るための制御信号を出力する切替手段制御手段を有し、
前記メインメモリの容量、書き込み速度、またはアドレ
ス範囲の少なくとも一つを示す外部入力制御信号に基づ
いて前記制御手段が制御されることを特徴とする。
According to a fifth aspect of the present invention, there is provided an information processing apparatus according to the first aspect.
The information processing apparatus according to claim 1, further comprising a switching unit control unit that outputs a control signal for switching the switching unit,
The control unit is controlled based on an external input control signal indicating at least one of a capacity, a write speed, and an address range of the main memory.

【0014】請求項6記載の情報処理装置は、請求項1
記載の情報処理装置において、前記切替手段を切り替え
るための制御信号を出力する切替手段制御手段を有し、
前記メインメモリからの前記メインメモリの容量、書き
込み速度、またはアドレス範囲の少なくとも一つを示す
出力制御信号に基づいて前記制御手段が制御されること
を特徴とする。
[0014] The information processing apparatus according to claim 6 is the information processing apparatus according to claim 1.
The information processing apparatus according to claim 1, further comprising a switching unit control unit that outputs a control signal for switching the switching unit,
The control unit is controlled based on an output control signal indicating at least one of a capacity, a writing speed, and an address range of the main memory from the main memory.

【0015】[0015]

【発明の実施の形態】(実施の形態1)図1に、実施の
形態1に係る情報処理装置を示す。以下、図3と同一部
は同一符号を付して説明を省略する。図3と相違するの
は、CPU1とライトバッファ6との間に、切替手段と
しての切替器A7、B8、C9が設けられ、これら切替
器は、アドレス合致判定手段としての切替器制御回路1
0からの制御信号11により切り替えが制御され、メイ
ンメモリ5は書き込み速度が高速なメインメモリA51
とメインメモリA51より低速な書き込み速度のメイン
メモリB52とからなる点である。切替手段により、書
き込み先アドレスが高速メモリのアドレスである場合に
はCPU1からのメインメモリ5への書き込み要求をラ
イトバッファ6を迂回して直接メインメモリ5に出力す
るように経路選択を行う。なお、本実施の形態では、切
替器制御回路10が書き込み先アドレスが高速メモリの
アドレスかどうかを判定したが、書き込み先アドレスが
低速メモリのアドレスかどうかを判定するようにしても
よい。
(Embodiment 1) FIG. 1 shows an information processing apparatus according to Embodiment 1. Hereinafter, the same parts as those in FIG. 3 is different from FIG. 3 in that switches A7, B8, and C9 are provided between the CPU 1 and the write buffer 6 as switching means.
The switching is controlled by a control signal 11 from 0, and the main memory 5 is a main memory A51 having a high writing speed.
And a main memory B52 having a lower writing speed than the main memory A51. When the write destination address is a high-speed memory address, the switching means selects a path so that a write request from the CPU 1 to the main memory 5 is output to the main memory 5 directly, bypassing the write buffer 6. In this embodiment, the switch control circuit 10 determines whether the write destination address is an address of a high-speed memory. However, the switch control circuit 10 may determine whether the write destination address is an address of a low-speed memory.

【0016】なお、信号21は、切替器B8により信号
23、61に切り替わる書き込み要求信号、信号23
は、切替器B8経由でメインメモリ5のメインメモリA
51に入力されるメインメモリ書き込み要求信号、信号
61は、切替器B8経由でライトバッファ制御回路2に
入力されるメインメモリ書き込み要求信号、信号22
は、切替器B8により信号24、62に切り替わる受け
取り完了信号、信号24は、メインメモリ5から出力さ
れ切替器B8に入力されるデータ受け取り完了信号、信
号62は、ライトバッファ制御回路2から出力され切替
器B8に入力されるデータ受け取り完了信号であり、3
2は、CPU1からのアドレス31が切替器A7を経由
してメインメモリ5に入力されるアドレス、33は、C
PU1からのアドレス31が切替器A7を経由してアド
レスレジスタ3に入力されるアドレス、42は、CPU
1からのデータ41が切替器C9を経由してメインメモ
リ5に入力されるデータ、43は、CPU1からのデー
タ41が切替器C9を経由してデータレジスタ4に入力
されるデータである。
The signal 21 is a write request signal which is switched to signals 23 and 61 by the switch B8, and a signal 23.
Is the main memory A of the main memory 5 via the switch B8.
The main memory write request signal, signal 61 input to the write buffer control circuit 2 via the switch B8 is the main memory write request signal, signal 22
Is a reception completion signal switched to the signals 24 and 62 by the switch B8, the signal 24 is a data reception completion signal output from the main memory 5 and input to the switch B8, and the signal 62 is output from the write buffer control circuit 2. A data reception completion signal input to the switch B8,
2 is an address at which the address 31 from the CPU 1 is input to the main memory 5 via the switch A7, and 33 is a C
The address at which the address 31 from the PU1 is input to the address register 3 via the switch A7, and 42 is the CPU
Data 41 from 1 is input to the main memory 5 via the switch C9, and 43 is data from the CPU 1 input to the data register 4 via the switch C9.

【0017】次に、この情報処理装置の動作について説
明する。CPU1の低速動作時、つまりその動作周波数
がメインメモリA51の書き込み周波数と同等またはそ
れ以下の場合、CPU1が出力する書き込みアドレス3
1を切替器制御回路10が受けて、書き込み先のアドレ
スがメインメモリA51宛のものと判断されれば、制御
信号11により切替器A7、切替器B8、切替器C9を
制御してライトバッファ6を迂回するようにアドレス、
メインメモリ書き込み要求信号、データの経路をそれぞ
れ選択する。即ち、CPU1の出力する信号21は切替
器B8により信号23としてメインメモリ5に入力さ
れ、書き込みアドレス31は切替器A7によりアドレス
32としてメインメモリ5に入力され、書き込みデータ
41は切替器C9によりデータ42としてメインメモリ
5に入力される。メインメモリ5は信号23を受けると
指定されたアドレス32にデータ42を書き込み、直ち
に24を出力する。信号24は切替器B8を経由して信
号22としてCPU1に入力される。CPU1は信号2
2を受けるとメインメモリ5への書き込みが完了したと
判断し、次の動作に移る。
Next, the operation of the information processing apparatus will be described. When the CPU 1 operates at a low speed, that is, when the operation frequency is equal to or lower than the write frequency of the main memory A51, the write address 3
1 is received by the switch control circuit 10, and if it is determined that the write destination address is addressed to the main memory A51, the switch A7, the switch B8, and the switch C9 are controlled by the control signal 11 and the write buffer 6 is controlled. Address to bypass the
A main memory write request signal and a data path are selected. That is, the signal 21 output from the CPU 1 is input to the main memory 5 as a signal 23 by the switch B8, the write address 31 is input to the main memory 5 as the address 32 by the switch A7, and the write data 41 is output to the data by the switch C9. 42 is input to the main memory 5. When receiving the signal 23, the main memory 5 writes the data 42 to the designated address 32 and immediately outputs 24. The signal 24 is input to the CPU 1 as the signal 22 via the switch B8. CPU1 is signal 2
Upon receiving the command 2, it is determined that the writing to the main memory 5 is completed, and the operation proceeds to the next operation.

【0018】一方、CPU1の動作周波数が、前記より
高速の場合、即ちメインメモリA51の書き込み速度以
上の場合であって、切替器制御回路10がCPU1から
受けた書き込み先のアドレスがメインメモリA51また
はメインメモリB52宛のものと判断されれば、切替器
制御回路10は制御信号11により切替器A7、B8、
C9を制御してライトバッファ6を使用するようにアド
レス、メインメモリ書き込み制御信号、データをそれぞ
れ制御する。この場合の動作は図3で説明したのと同様
のため説明を省略する。この場合はライトバッファの使
用によるシステムのパフォーマンス向上が期待できる。
On the other hand, when the operating frequency of the CPU 1 is higher than the above, that is, when it is higher than the writing speed of the main memory A51, the write destination address received from the CPU 1 by the switch control circuit 10 is the main memory A51 or If it is determined that the signal is destined for the main memory B52, the switch control circuit 10 switches the switches A7, B8,
The address, the main memory write control signal, and the data are controlled so as to use the write buffer 6 by controlling C9. The operation in this case is the same as that described with reference to FIG. In this case, improvement in system performance can be expected by using the write buffer.

【0019】CPU1の動作速度によってライトバッフ
ァ6を使用するメリットが得られるか否かの判断は以下
のようにして行う。通常、図1に示した情報処理装置で
は、メインメモリ5やライトバッファ6等周辺装置を制
御する動作周波数は設計段階においてあらかじめ決めら
れている。メインメモリ5およびライトバッファ6への
アドレス及びデータの書き込みが完了するのに要する必
要サイクル数は、メインメモリ5を実現するために選択
された半導体メモリの性能や、ライトバッファ6の設計
により決まっている。従ってシステムが動作する際には
CPU1にとってメインメモリ5及びライトバッファ6
への書き込みに要するサイクル数は既知である。一方C
PU1は周辺装置を制御する動作周波数とは独立かつ可
変の動作周波数で動作可能であり、CPU1の動作周波
数と周辺装置を制御する動作周波数の比較によりライト
バッファ6を使用するメリットがあるか否かを判断す
る。仮に、メインメモリ5とライトバッファ6が、書き
込みに動作周波数で5サイクルと1サイクルそれぞれ要
するシステムとする。もしCPU1の動作周波数がライ
トバッファの制御される動作周波数と同じであった場
合、CPU1がメインメモリ5とライトバッファ6のそ
れぞれに書き込みを行うためにはそれぞれCPU1の動
作周波数で5サイクルと1サイクルかかることになり、
この場合ライトバッファを使うメリットが生じる。ま
た、CPU1の動作周波数が前記動作周波数より5倍遅
い場合は、CPU1がメインメモリ5及びライトバッフ
ァ6に書き込みを行うのに、どちらもCPU1の動作周
波数で1サイクルで良いことになり、この場合ライトバ
ッファを使うメリットが消失する。一般に情報処理装置
ではCPUが周辺機器にアクセスするタイミングをRO
M(読み出し専用メモリ)などに書き込んで、この情報
に基づいてCPUと周辺機器間のやりとりを制御する方
法がよく行われており、この中にCPUの動作周波数と
周辺機器を制御する動作周波数を比較し、この結果に基
づいてライトバッファの使用、不使用を切り替えるよう
に制御すればよい。
Whether the merit of using the write buffer 6 can be obtained depending on the operation speed of the CPU 1 is determined as follows. Normally, in the information processing apparatus shown in FIG. 1, an operating frequency for controlling peripheral devices such as the main memory 5 and the write buffer 6 is predetermined in a design stage. The number of cycles required to complete the writing of the address and data to the main memory 5 and the write buffer 6 is determined by the performance of the semiconductor memory selected to realize the main memory 5 and the design of the write buffer 6. I have. Therefore, when the system operates, the main memory 5 and the write buffer 6
The number of cycles required to write data to is already known. Meanwhile C
The PU 1 can operate at an operating frequency that is independent and variable from the operating frequency for controlling the peripheral device, and whether or not there is an advantage in using the write buffer 6 by comparing the operating frequency of the CPU 1 with the operating frequency for controlling the peripheral device Judge. It is assumed that the main memory 5 and the write buffer 6 require 5 cycles and 1 cycle at the operating frequency for writing, respectively. If the operating frequency of the CPU 1 is the same as the operating frequency controlled by the write buffer, the CPU 1 needs to write 5 cycles and 1 cycle at the operating frequency of the CPU 1 to write to the main memory 5 and the write buffer 6, respectively. Will be
In this case, there is an advantage in using the write buffer. If the operating frequency of the CPU 1 is five times slower than the operating frequency, the CPU 1 can write to the main memory 5 and the write buffer 6 in one cycle at the operating frequency of the CPU 1. The merit of using the write buffer disappears. Generally, in an information processing apparatus, the timing at which a CPU accesses a peripheral
M (read only memory) or the like, and a method of controlling the exchange between the CPU and the peripheral device based on this information is often performed. In this method, the operating frequency of the CPU and the operating frequency for controlling the peripheral device are included. The comparison may be performed, and based on the result, control may be performed to switch between using and not using the write buffer.

【0020】(実施の形態2)図2に、実施の形態2に
係る情報処理装置を示す。図1と相違する点は、CPU
出力制御信号12、外部入力制御信号13、及びメイン
メモリ出力制御信号14が切替器制御回路10に供給さ
れ、これらの信号に基づいて制御信号11を出力してラ
イトバッファの使用、不使用を切り替えるようになされ
ており、基本的な動作は実施の形態1と同様であるが、
実施の形態1に加えてシステム状況に応じた精度よく細
かな制御が可能となる。
(Embodiment 2) FIG. 2 shows an information processing apparatus according to Embodiment 2. The difference from FIG. 1 is that the CPU
The output control signal 12, the external input control signal 13, and the main memory output control signal 14 are supplied to the switch control circuit 10, and the control signal 11 is output based on these signals to switch between using and not using the write buffer. The basic operation is the same as in the first embodiment,
In addition to the first embodiment, fine and precise control according to the system status is possible.

【0021】パワーマネジメント機能によって動的に動
作周波数を変化させるCPUの場合、CPU1とメイン
メモリ5との相対速度が変化するため、CPU1の動作
周波数を示す情報をCPU出力制御信号12として切替
器制御回路10に入力し、この動作周波数に応じて最適
な制御を行うことができる。また、プログラムによって
ライトバッファの使用、不使用を切り替えるようにCP
U出力制御信号12を用いてもよい。
In the case of a CPU in which the operating frequency is dynamically changed by the power management function, the relative speed between the CPU 1 and the main memory 5 changes, and information indicating the operating frequency of the CPU 1 is used as a CPU output control signal 12 as a CPU control signal. The signal is input to the circuit 10, and optimal control can be performed according to the operating frequency. Also, the CP is used to switch between using and not using the write buffer according to the program.
The U output control signal 12 may be used.

【0022】また、システムによってはメインメモリの
構成を変える場合があるが、この場合、構成されるメイ
ンメモリの容量、書き込み速度、またはアドレス範囲を
示す情報の少なくとも一つを外部入力制御信号13とし
て切替器制御回路10に入力し、この情報に基づいてメ
インメモリ5の高速メモリと低速メモリの範囲等を変更
して最適な制御をシステムに応じて柔軟に行うことがで
きる。
Depending on the system, the configuration of the main memory may be changed. In this case, at least one of the information indicating the capacity of the configured main memory, the writing speed, or the address range is used as the external input control signal 13. The optimum control can be flexibly performed according to the system by inputting the information to the switch control circuit 10 and changing the range of the high-speed memory and the low-speed memory of the main memory 5 based on this information.

【0023】さらに、メインメモリ5がインテリジェン
トなタイプであれば、メインメモリ5からその容量、書
き込み速度、またはアドレス範囲を示す情報の少なくと
も一つをメインメモリ出力制御信号14として切替器制
御回路10に入力し、この情報に基づいてメインメモリ
5の高速メモリと低速メモリの範囲等を変更して最適な
制御をシステムに応じて柔軟に行うことができる。
Further, if the main memory 5 is of an intelligent type, at least one of the information indicating its capacity, write speed, or address range is sent from the main memory 5 to the switch control circuit 10 as a main memory output control signal 14. By inputting and changing the range of the high-speed memory and the low-speed memory of the main memory 5 based on this information, optimal control can be flexibly performed according to the system.

【0024】また、切替器制御回路10は、CPU出力
制御信号12のみを用いて制御信号11を生成してもよ
く、外部入力制御信号13のみを用いて制御信号11を
生成してもよく、メインメモリ出力制御信号14のみを
用いて制御信号11を生成してもよく、あるいはこれら
の信号を組み合わせて制御信号11を生成してもよい。
なお、以上の実施の形態における情報処理装置は、一般
に集積回路として実現され、その全てあるいは一部が集
積回路として実現される。
The switch control circuit 10 may generate the control signal 11 using only the CPU output control signal 12, or may generate the control signal 11 using only the external input control signal 13. The control signal 11 may be generated using only the main memory output control signal 14, or the control signal 11 may be generated by combining these signals.
Note that the information processing apparatus according to the above-described embodiments is generally realized as an integrated circuit, and all or a part of the information processing apparatus is realized as an integrated circuit.

【0025】[0025]

【発明の効果】本発明によれば、書き込み先のメインメ
モリの書き込み速度に応じて合理的にライトバッファの
使用、不使用を切り替え、パフォーマンスの向上と低消
費電力化を図ることができる。つまり、メインメモリの
低速メモリに書き込みを行う場合には、ライトバッファ
を介して従来通りシステムを高いパフォーマンスで動作
させることができると共に、メインメモリの高速メモリ
に書き込みを行う場合には、ライトバッファを迂回し、
直接メインメモリに書き込みを行うため、通常ならライ
トバッファで消費されるクロックと電力を削減すること
ができ、高速化と低消費電力化を図ることができる。
According to the present invention, the use / non-use of the write buffer can be rationally switched in accordance with the write speed of the write destination main memory, and the performance can be improved and the power consumption can be reduced. In other words, when writing to the low-speed memory of the main memory, the system can be operated with high performance through the write buffer as before, and when writing to the high-speed memory of the main memory, the write buffer can be used. Detour,
Since writing is performed directly in the main memory, the clock and power that would otherwise be consumed by the write buffer can be reduced, and higher speed and lower power consumption can be achieved.

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

【図1】本実施の形態1の情報処理装置を示す図であ
る。
FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment.

【図2】本実施の形態2の情報処理装置を示す図であ
る。
FIG. 2 is a diagram illustrating an information processing apparatus according to a second embodiment;

【図3】従来のライトスルー方式のライトバッファを説
明するための図である。
FIG. 3 is a diagram for explaining a conventional write-through type write buffer.

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

1 CPU 2 ライトバッファ制御回路 3 アドレスレジスタ 4 データレジスタ 5 メインメモリ 6 ライトバッファ 7 切替器A 8 切替器B 9 切替器C 10 切替器制御回路 DESCRIPTION OF SYMBOLS 1 CPU 2 Write buffer control circuit 3 Address register 4 Data register 5 Main memory 6 Write buffer 7 Switch A 8 Switch B 9 Switch C 10 Switch control circuit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 CPUとメインメモリと前記CPUと前
記メインメモリとの間にライトバッファとを有する情報
処理装置において、 前記メインメモリは、第1メインメモリと第1メインメ
モリより書き込み速度の遅い第2メインメモリとからな
り、 前記CPUが前記ライトバッファを介さずに第1メイン
メモリにデータを直接書き込む第1モードと前記CPU
が前記ライトバッファを介して第2メインメモリにデー
タを書き込む第2モードとを前記メインメモリの書き込
み先のアドレスに応じて切り替える切替手段を有するこ
とを特徴とする情報処理装置。
1. An information processing apparatus having a CPU, a main memory, and a write buffer between the CPU and the main memory, wherein the main memory has a first main memory and a write speed lower than the first main memory. A first mode in which the CPU directly writes data to the first main memory without passing through the write buffer;
An information processing apparatus, comprising: a switching unit that switches between a second mode in which data is written to a second main memory via the write buffer in accordance with an address of a write destination of the main memory.
【請求項2】 前記切替手段は、前記CPUからの第1
メインメモリまたは前記ライトバッファへの書き込み要
求信号、及び第1メインメモリまたは前記ライトバッフ
ァから前記CPUへのデータ受け取り完了信号を切り替
えることを特徴とする請求項1記載の情報処理装置。
2. The method according to claim 1, wherein the switching unit is configured to output a first signal from the CPU.
2. The information processing apparatus according to claim 1, wherein a signal for requesting writing to a main memory or the write buffer and a signal for completing data reception from the first main memory or the write buffer to the CPU are switched.
【請求項3】 前記切替手段は、前記CPUからの第1
メインメモリまたは前記ライトバッファへのアドレス経
路、及び前記CPUからの第1メインメモリまたは前記
ライトバッファへのデータ経路を切り替えることを特徴
とする請求項2記載の情報処理装置。
3. The method according to claim 1, wherein the switching unit is configured to output a first signal from the CPU.
3. The information processing apparatus according to claim 2, wherein an address path to a main memory or the write buffer and a data path from the CPU to the first main memory or the write buffer are switched.
【請求項4】 前記切替手段を切り替えるための制御信
号を出力する切替手段制御手段を有し、前記CPUから
のCPU動作速度を示すCPU出力制御信号に基づいて
前記制御手段が制御されることを特徴とする請求項1記
載の情報処理装置。
4. A switching means control means for outputting a control signal for switching the switching means, wherein the control means is controlled based on a CPU output control signal indicating a CPU operating speed from the CPU. The information processing apparatus according to claim 1, wherein:
【請求項5】 前記切替手段を切り替えるための制御信
号を出力する切替手段制御手段を有し、前記メインメモ
リの容量、書き込み速度、またはアドレス範囲の少なく
とも一つを示す外部入力制御信号に基づいて前記制御手
段が制御されることを特徴とする請求項1記載の情報処
理装置。
5. A switching means control means for outputting a control signal for switching the switching means, based on an external input control signal indicating at least one of a capacity, a writing speed, and an address range of the main memory. The information processing apparatus according to claim 1, wherein the control unit is controlled.
【請求項6】 前記切替手段を切り替えるための制御信
号を出力する切替手段制御手段を有し、前記メインメモ
リからの前記メインメモリの容量、書き込み速度、また
はアドレス範囲の少なくとも一つを示す出力制御信号に
基づいて前記制御手段が制御されることを特徴とする請
求項1記載の情報処理装置。
6. An output control unit that includes a switching unit control unit that outputs a control signal for switching the switching unit, and that indicates at least one of a capacity of the main memory, a writing speed, and an address range from the main memory. 2. The information processing apparatus according to claim 1, wherein the control unit is controlled based on a signal.
JP10113080A 1998-04-23 1998-04-23 Information processor Pending JPH11306073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10113080A JPH11306073A (en) 1998-04-23 1998-04-23 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10113080A JPH11306073A (en) 1998-04-23 1998-04-23 Information processor

Publications (1)

Publication Number Publication Date
JPH11306073A true JPH11306073A (en) 1999-11-05

Family

ID=14602984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10113080A Pending JPH11306073A (en) 1998-04-23 1998-04-23 Information processor

Country Status (1)

Country Link
JP (1) JPH11306073A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100399308C (en) * 2005-04-29 2008-07-02 扬智科技股份有限公司 Data processing system with two modes excuted independently and mutually
US7924601B2 (en) 2007-03-28 2011-04-12 Fujitsu Limited Resistive memory and data write-in method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100399308C (en) * 2005-04-29 2008-07-02 扬智科技股份有限公司 Data processing system with two modes excuted independently and mutually
US7924601B2 (en) 2007-03-28 2011-04-12 Fujitsu Limited Resistive memory and data write-in method

Similar Documents

Publication Publication Date Title
JP2886856B2 (en) Redundant bus connection method
US5652536A (en) Non-glitch clock switching circuit
KR100806284B1 (en) High Energy Efficiency Processor Using Dynamic Voltage Scaling
US7429898B2 (en) Clock signal generating circuit, semiconductor integrated circuit and method for controlling a frequency division ratio
JP3638271B2 (en) Information processing device
US20050198418A1 (en) Multilayer system and clock control method
JP3467631B2 (en) Logic LSI
JP2993466B2 (en) Information processing device
US5579526A (en) Synchronous/asynchronous feedback system having logic circuit for changing the state of the processing core in response to output of synchronous state machine and asynchronous late inputs
JPH07281782A (en) Clock control circuit
JPH10149237A (en) Semiconductor circuit
JPH11306073A (en) Information processor
JPH11306074A (en) Information processor
EP1285340B1 (en) Shared bus interface for digital signal processor
JP2000227895A (en) Device and method for transferring image data
JP3119618B2 (en) Data processing device
KR100528443B1 (en) Data transmission circuit of digital signal processor
JP3620181B2 (en) Semiconductor device and read access method
JP2734312B2 (en) Memory circuit
JP2912090B2 (en) Time slot interchange circuit
JPH06332842A (en) Direct memory access control circuit
JPS60142768A (en) Data transfer device
JPH03257608A (en) Microcomputer
KR19990011185A (en) Data buffer memory expansion circuit of I / O board
JPH02281312A (en) Semiconductor device