JPH05181747A - Data processing system - Google Patents

Data processing system

Info

Publication number
JPH05181747A
JPH05181747A JP3360052A JP36005291A JPH05181747A JP H05181747 A JPH05181747 A JP H05181747A JP 3360052 A JP3360052 A JP 3360052A JP 36005291 A JP36005291 A JP 36005291A JP H05181747 A JPH05181747 A JP H05181747A
Authority
JP
Japan
Prior art keywords
data
cache
data transfer
microprocessor
cache memory
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
JP3360052A
Other languages
Japanese (ja)
Inventor
Tsukio Nakamoto
突男 仲元
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3360052A priority Critical patent/JPH05181747A/en
Publication of JPH05181747A publication Critical patent/JPH05181747A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To shorten an excessive processing time generated due to the misreading cache of a cache memory at the time of transferring much data. CONSTITUTION:A microprocessor 9 compares data transfer frequency previously set up in a transfer frequency setting circuit 6 at the time of executing a data transfer instruction with the data transfer frequency of a data transfer counter 5 which is counted at the time of executing the data transfer instruction by means of a comparator 7, and when both the values are equal to each other, outputs a cache inhibition signal from a cache inhibition signal output part 4. Thereby the operation of the cache memory is inhibited until the execution end of the data transfer instruction.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は主メモリあるいはキャ
ッシュメモリをアクセスしてデータ処理を行うマイクロ
プロセッサを備えたデータ処理システムに関するもの
で、特にキャッシュメモリを効率的に使用するための構
成に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing system equipped with a microprocessor for accessing data in a main memory or a cache memory for data processing, and more particularly to a configuration for efficiently using the cache memory. is there.

【0002】[0002]

【従来の技術】図2はこの種のデータ処理システムの構
成を示すブロック図である。図2において、10はデー
タ処理に必要なデータを記憶した主メモリ、11は主メ
モリ10がアクセスされた時のデータを一時的に格納す
るキャッシュメモリ、9は主メモリ10あるいはキャッ
シュメモリ11をアクセスしてデータ処理を行うマイク
ロプロセッサである。また、12はデータ,アドレス,
及び各種制御信号をマイクロプロセッサ9と主メモリ1
0とキャッシュメモリ11との間でやり取りするための
バス、13はマイクロプロセッサ9がキャッシュメモリ
11に対してキャッシュ動作を禁止するためのキャッシ
ュ禁止信号が流れるキャッシュ禁止信号線である。な
お、このデータ処理システムにおけるアドレス幅,デー
タ幅は32ビットであるとし、1WORDは32ビット
と定義する。
2. Description of the Related Art FIG. 2 is a block diagram showing the configuration of a data processing system of this type. In FIG. 2, 10 is a main memory that stores data necessary for data processing, 11 is a cache memory that temporarily stores data when the main memory 10 is accessed, and 9 is an access to the main memory 10 or the cache memory 11. It is a microprocessor for performing data processing. 12 is data, address,
And various control signals to the microprocessor 9 and the main memory 1.
0 is a bus for exchanging data between the cache memory 11 and 13 is a cache inhibit signal line through which a cache inhibit signal for the microprocessor 9 to inhibit the cache operation of the cache memory 11 flows. The address width and data width in this data processing system are 32 bits, and 1WORD is defined as 32 bits.

【0003】キャッシュメモリ11は、マイクロプロセ
ッサ9が主メモリ10にアクセスするアドレスを監視
し、そのアドレスに対応するデータがキャッシュメモリ
11内にあれば、マイクロプロセッサ9からのアクセス
に応答し(これをキャッシュヒットという)、アドレス
に対応するデータをマイクロプロセッサ9に返す。ま
た、キャッシュメモリ11は、アドレスに対応するデー
タがキャッシュメモリ11内に無ければ(これをキャッ
シュミスという)、主メモリ10にアクセスし、そのア
ドレスとデータをマイクロプロセッサ9に返すと同時に
キャッシュメモリ11内部に取り込む。更に、キャッシ
ュメモリ11は、マイクロプロセッサ9がリードしたア
ドレスから連続した残り3WORDをアクセスし、その
アドレスとデータを取り込み、マイクロプロセッサ9が
リードしたアドレスを含む連続した4WORDのアドレ
スとデータを取り込む。
The cache memory 11 monitors the address at which the microprocessor 9 accesses the main memory 10, and if the data corresponding to the address is in the cache memory 11, it responds to the access from the microprocessor 9 (this The data corresponding to the address (called cache hit) is returned to the microprocessor 9. If the data corresponding to the address does not exist in the cache memory 11 (this is called cache miss), the cache memory 11 accesses the main memory 10 and returns the address and data to the microprocessor 9 and at the same time the cache memory 11 Take it in. Further, the cache memory 11 accesses the remaining 3 words in succession from the address read by the microprocessor 9, fetches the address and data, and fetches the addresses and data in consecutive 4 words including the address read by the microprocessor 9.

【0004】図4は、従来のマイクロプロセッサとキャ
ッシュメモリを用いたデータ処理システムのリード時の
タイミング図である。
FIG. 4 is a timing chart at the time of reading of the data processing system using the conventional microprocessor and cache memory.

【0005】次に従来例の動作を図2及び図4を用いて
説明する。マイクロプロセッサ9が連続したアドレスに
格納された複数のデータを連続して次々とリードする動
作を行い、かつリードしようとする全てのデータをキャ
ッシュメモリ11が内部に持っていないため、全てリー
ドキャッシュミスするような場合を考える。まず、主メ
モリ10は3クロック、キャッシュメモリは2クロック
でマイクロプロセッサ9からアクセスされ、リードキャ
ッシュミス時に主メモリ10にアクセスするときは余分
に1クロック必要で4クロックでアクセスする。
Next, the operation of the conventional example will be described with reference to FIGS. The microprocessor 9 performs an operation of continuously reading a plurality of data stored at consecutive addresses one after another, and the cache memory 11 does not have all the data to be read. Consider the case. First, the main memory 10 is accessed in 3 clocks, and the cache memory is accessed in 2 clocks from the microprocessor 9. When accessing the main memory 10 in the case of a read cache miss, an extra 1 clock is required and the access is performed in 4 clocks.

【0006】クロックCLK0から、マイクロプロセッ
サ9が連続アドレスに格納された複数のデータを連続し
てリードする動作を行う。キャッシュメモリ11は1ク
ロックでキャッシュミスと判断しクロックCLK1で主
メモリ10からのリードを開始し、これと同時にマイク
ロプロセッサ9もリードを行う。クロックCLK4で1
WORDの主メモリ10からのリードを終了する。キャ
ッシュメモリ11はリードキャッシュミスしたので、ク
ロックCLK4からクロックCLK13の間3WORD
連続して主メモリ10からデータを取り込む。この間マ
イクロプロセッサ9はホールド状態にありバスサイクル
を開始しない。キャッシュメモリ11による4WORD
のリードが終了するクロックCLK13でマイクロプロ
セッサ9はリードを開始する。このときのリードすべき
データはクロックCLK4〜クロックCLK7において
キャッシュメモリ11が主メモリ10から取り込んでい
るのでキャッシュヒットし、マイクロプロセッサ9はク
ロックCLK13〜クロックCLK15の2クロックで
キャッシュメモリ11からデータをリードする。続く2
WORDのリードも同様にリードヒットしクロックCL
K19で最初から数えて4WORD目のデータのリード
が終了する。次にリードすべきデータはキャッシュメモ
リ11内に格納されていないので、リードキャッシュミ
スしクロックCLK0〜クロックCLK19と同じ動作
を以下繰り返す。
From the clock CLK0, the microprocessor 9 performs an operation of continuously reading a plurality of data stored in consecutive addresses. The cache memory 11 determines a cache miss in one clock and starts reading from the main memory 10 at the clock CLK1. At the same time, the microprocessor 9 also reads. 1 with clock CLK4
The reading from the main memory 10 of WORD is completed. Since the cache memory 11 has missed the read cache, 3 words are generated between the clock CLK4 and the clock CLK13.
Data is continuously taken from the main memory 10. During this time, the microprocessor 9 is in the hold state and does not start the bus cycle. 4 words with cache memory 11
The microprocessor 9 starts the read at the clock CLK13 at which the read is finished. The data to be read at this time is a cache hit because the cache memory 11 fetches it from the main memory 10 in the clocks CLK4 to CLK7, and the microprocessor 9 reads the data from the cache memory 11 in two clocks of the clocks CLK13 to CLK15. To do. Continued 2
Similarly, the read of WORD hits the read CL as well.
At K19, the reading of the 4th word data from the beginning is completed. Since the data to be read next is not stored in the cache memory 11, a read cache miss occurs and the same operations as the clocks CLK0 to CLK19 are repeated.

【0007】このようにリードすべきデータが全てリー
ドキャッシュミスする場合はキャッシュメモリ11が主
メモリ10からデータをリードする処理時間によるロス
の時間がキャッシュメモリ11のアクセス時間の高速化
を図る時間よりも大きくなってしまうことがある。この
例では4WORD転送するのに19クロックかかってい
るが、キャッシュメモリ11が動作しないとしたら3ク
ロック×4WORDの12クロックで済むことになる。
キャッシュメモリ11を使用する場合、最初のリードで
リードキャッシュミスしても、同じアドレスのデータを
リードする回数が多ければ、全体でデータの転送時間を
短縮できる。しかし、同じアドレスをアクセスせず、大
量のデータを一度に転送する場合はこのような効果が期
待できない場合がある。例えば転送しようとするデータ
量がキャッシュメモリ11の記憶容量を超える場合、最
初の方にリードしたデータはキャッシュメモリ11には
残っていないため、再度、同じデータ転送を行ってもリ
ードキャッシュヒットしない。
When all the data to be read has a read cache miss in this way, the loss time due to the processing time for the cache memory 11 to read the data from the main memory 10 is longer than the time for increasing the access time of the cache memory 11. May become large. In this example, it takes 19 clocks to transfer 4 words, but if the cache memory 11 does not operate, then it will be 12 clocks of 3 clocks × 4 words.
When the cache memory 11 is used, even if a read cache miss occurs in the first read, if the number of times of reading the data of the same address is large, the data transfer time can be shortened as a whole. However, when a large amount of data is transferred at once without accessing the same address, such an effect may not be expected. For example, when the amount of data to be transferred exceeds the storage capacity of the cache memory 11, the first read data does not remain in the cache memory 11, and therefore the read cache hit does not occur even if the same data transfer is performed again.

【0008】[0008]

【発明が解決しようとする課題】従来のデータ処理シス
テムにおけるマイクロプロセッサは、大量のデータの転
送を行うような場合(例えば、データ転送命令の実行)
でも、キャッシュメモリを動作させていたので、かえっ
てキャッシュメモリを使用しない場合に比べてデータ転
送に多くの時間がかかるという問題点があった。
The microprocessor in the conventional data processing system is used for transferring a large amount of data (for example, executing a data transfer instruction).
However, since the cache memory was operating, there was a problem that it took a lot of time to transfer the data as compared with the case where the cache memory is not used.

【0009】本発明は上記のような問題点を解決するた
めになされたもので、大量のデータの転送を行ってもキ
ャッシュメモリの動作により発生する余分な処理時間を
減少させることができるマイクロプロセッサを備えたデ
ータ処理システムを提供することを目的とする。
The present invention has been made to solve the above problems, and a microprocessor capable of reducing the extra processing time generated by the operation of the cache memory even when a large amount of data is transferred. An object of the present invention is to provide a data processing system provided with.

【0010】[0010]

【課題を解決するための手段】この発明に係るデータ処
理システムは、キャッシュメモリ11の動作を禁止させ
るための任意のデータ転送回数を予め設定する転送回数
設定回路6と、データ転送命令実行時にデータ転送回数
をカウントするデータ転送カウンタ5と、データ転送命
令実行時に転送回数設定回路6の値とデータ転送カウン
タ5の値を比較しデータ転送カウンタ5の値が転送回数
設定回路6の値と一致した時に一致信号を出力する比較
器7と、この比較器7からの一致信号によりキャッシュ
メモリ11の動作を禁止させるためのキャッシュ禁止信
号を出力するキャッシュ禁止信号出力部4とを、マイク
ロプロセッサ9に設けたものである。
A data processing system according to the present invention includes a transfer number setting circuit 6 for presetting an arbitrary number of data transfers for inhibiting an operation of a cache memory 11, and a data transfer command for executing a data transfer instruction. The value of the data transfer counter 5 that counts the number of transfers and the value of the transfer number setting circuit 6 and the value of the data transfer counter 5 when the data transfer instruction is executed are compared, and the value of the data transfer counter 5 matches the value of the transfer number setting circuit 6. The microprocessor 9 is provided with a comparator 7 which sometimes outputs a coincidence signal and a cache inhibit signal output unit 4 which outputs a cache inhibit signal for inhibiting the operation of the cache memory 11 by the coincidence signal from the comparator 7. It is a thing.

【0011】[0011]

【作用】マイクロプロセッサ9は、データ転送命令実行
時、予め転送回数設定回路6に設定されたデータ転送回
数とデータ転送命令実行時にカウントされるデータ転送
カウンタ5のデータ転送回数とを比較器7により比較
し、両者が一致すると、キャッシュ禁止信号出力部4か
らキャッシュ禁止信号を出力する。これによりキャッシ
ュメモリ11の動作はデータ転送命令の実行終了まで禁
止される。
When the data transfer instruction is executed, the microprocessor 9 uses the comparator 7 to compare the data transfer number set in advance in the transfer number setting circuit 6 and the data transfer number of the data transfer counter 5 counted when the data transfer instruction is executed. If they are compared with each other and they match each other, the cache inhibition signal output unit 4 outputs a cache inhibition signal. As a result, the operation of the cache memory 11 is prohibited until the execution of the data transfer instruction is completed.

【0012】[0012]

【実施例】図1はこの発明の一実施例に係るマイクロプ
ロセッサの内部構成を示すブロック図である。このマイ
クロプロセッサを含むデータ処理システムの構成は前述
した図2に示す。図1において、1は外部のバス12よ
り命令をフェッチする命令フェッチ部、2はフェッチし
た命令を認識しデコード結果を制御部に出力する命令デ
コード部、3は命令のデコード結果よりマイクロプロセ
ッサ9全体を制御する制御信号を生成し、特にデータ転
送命令を実行中は、論理ゲート8に対してその命令の実
行を示す信号を出力する制御部、4は論理ゲート8から
の出力信号を入力するとキャッシュ禁止信号を出力する
キャッシュ禁止信号出力部、5はデータ転送命令の実行
開始にリセットされ、一回の転送ごとに制御部3からの
信号により、データ転送回数がインクリメントされるデ
ータ転送カウンタである。6はデータ転送カウンタ5と
比較される任意の値(キャッシュメモリ11の動作を禁
止させるための任意のデータ転送回数)を設定する転送
回数設定回路、7はデータ転送カウンタ5の値と転送回
数設定回路6の値を比較し、両者が一致した時、一致信
号を論理ゲート8に出力する比較器、8は制御部3が出
力する信号と比較器7が出力する信号を入力して両者の
信号がともに有効に出力されているときにキャッシュ禁
止信号出力部4にその有効信号を出力する論理ゲートで
ある。
1 is a block diagram showing the internal configuration of a microprocessor according to an embodiment of the present invention. The configuration of the data processing system including this microprocessor is shown in FIG. In FIG. 1, 1 is an instruction fetch unit that fetches an instruction from an external bus 12, 2 is an instruction decoding unit that recognizes the fetched instruction and outputs the decoding result to the control unit, 3 is the entire microprocessor 9 based on the instruction decoding result. The control unit 4 generates a control signal for controlling the control signal, and outputs a signal indicating execution of the instruction to the logic gate 8 during execution of the data transfer instruction. The cache inhibition signal output units 5 that output inhibition signals are data transfer counters that are reset at the start of execution of a data transfer instruction and whose number of data transfers is incremented by a signal from the control unit 3 for each transfer. 6 is a transfer number setting circuit for setting an arbitrary value (arbitrary data transfer number for inhibiting the operation of the cache memory 11) to be compared with the data transfer counter 5, and 7 is a value and a transfer number setting for the data transfer counter 5. The comparator 6 compares the values of the circuit 6 and outputs a coincidence signal to the logic gate 8 when the two coincide with each other, and 8 inputs the signal output from the control unit 3 and the signal output from the comparator 7 to input both signals. Is a logic gate that outputs the valid signal to the cache inhibit signal output unit 4 when both are effectively output.

【0013】図3は、本発明の一実施例のマイクロプロ
セッサとキャッシュメモリを用いたデータ処理システム
のリード時のタイミング図である。
FIG. 3 is a timing chart at the time of reading of the data processing system using the microprocessor and the cache memory according to the embodiment of the present invention.

【0014】次に図1を用いて実施例のマイクロプロセ
ッサの動作を説明する。ユーザは予め、転送回数設定回
路6にデータ転送命令実行時にキャッシュ動作を禁止と
したいデータ転送回数値を書き込んでおく。マイクロプ
ロセッサ9は命令フェッチ部1で外部のバス12より命
令をフェッチし命令デコード部2がその命令を認識しデ
コード結果を制御部3に出力する。制御部3はデータ転
送命令の実行中、論理ゲート8に対してその命令実行を
示す信号を出力する。従って、データ転送命令以外の命
令では、論理ゲート8からキャッシュ禁止信号出力部4
に対して有効信号が出力されないので、キャッシュ禁止
信号は出力されない。比較器7はデータ転送カウンタ5
の値と予め設定された転送回数設定回路6の値を比較
し、両者が一致した場合に論理ゲート8に対して一致信
号を出力する。従って、データ転送命令実行中、データ
転送カウンタ5の値が転送回数設定回路6の値未満の間
は、論理ゲート8から有効信号、即ちキャッシュ禁止信
号出力部4からキャッシュ禁止信号は出力されない。ま
た、データ転送命令実行中であり、データ転送カウンタ
5の値が転送回数設定回路6の値以上になった場合は、
論理ゲート8から有効信号が出力されるので、キャッシ
ュ禁止信号出力部4からキャッシュ禁止信号が出力され
る。これによりキャッシュメモリ11の動作は禁止され
る。
Next, the operation of the microprocessor of the embodiment will be described with reference to FIG. The user writes in advance a data transfer count value for which the cache operation is to be prohibited when the data transfer instruction is executed, in the transfer count setting circuit 6. In the microprocessor 9, the instruction fetch unit 1 fetches an instruction from the external bus 12, the instruction decoding unit 2 recognizes the instruction, and outputs the decoding result to the control unit 3. The control unit 3 outputs a signal indicating the instruction execution to the logic gate 8 during the execution of the data transfer instruction. Therefore, for instructions other than the data transfer instruction, the logic gate 8 causes the cache inhibit signal output unit 4 to
Since the valid signal is not output to, the cache inhibit signal is not output. The comparator 7 is the data transfer counter 5
Is compared with the preset value of the transfer number setting circuit 6, and when the two match, a match signal is output to the logic gate 8. Therefore, during execution of the data transfer instruction, while the value of the data transfer counter 5 is less than the value of the transfer number setting circuit 6, the valid signal from the logic gate 8, that is, the cache prohibition signal output unit 4 does not output the cache prohibition signal. When the data transfer instruction is being executed and the value of the data transfer counter 5 becomes equal to or greater than the value of the transfer number setting circuit 6,
Since the valid signal is output from the logic gate 8, the cache inhibit signal output unit 4 outputs the cache inhibit signal. As a result, the operation of the cache memory 11 is prohibited.

【0015】次にこの実施例のマイクロプロセッサとキ
ャッシュメモリを用いたデータ処理システムの動作を図
2及び図3を用いて説明する。マイクロプロセッサ9が
データ転送命令の実行により、大量のデータ転送を行う
場合、アドレスは連続しており、同じアドレスは命令の
実行終了まで、参照されることはない。データ転送命令
によって指定されるデータの容量がキャッシュメモリ1
1の容量を越えた場合はキャッシュ容量を越えてリード
されるデータのアクセスに対しては、キャッシュミスが
発生し、以降のアクセスに対して全てキャッシュミスす
る。主メモリ10は3クロック、キャッシュメモリ11
は2クロックでマイクロプロセッサ9からアクセスさ
れ、リードキャッシュミス時、主メモリ10にアクセス
するときは余分に1クロック必要で4クロックでアクセ
スする。この場合、4WORDリードするのにキャッシ
ュメモリ11が動作すれば従来例と同様19クロックか
かる。しかし、アクセスに対してキャッシュ禁止信号を
出力し、キャッシュメモリ11を動作させなかった場
合、3クロック×4WORD=12クロックしかかから
ない。
Next, the operation of the data processing system using the microprocessor and cache memory of this embodiment will be described with reference to FIGS. When the microprocessor 9 executes a data transfer instruction to transfer a large amount of data, the addresses are continuous and the same address is not referred to until the execution of the instruction is completed. The capacity of the data specified by the data transfer instruction is the cache memory 1
When the capacity of 1 is exceeded, a cache miss occurs for the access of data that is read beyond the cache capacity, and a cache miss occurs for all subsequent accesses. Main memory 10 has 3 clocks, cache memory 11
Is accessed from the microprocessor 9 in 2 clocks, and when the read cache miss occurs, an extra 1 clock is required to access the main memory 10, and access is performed in 4 clocks. In this case, if the cache memory 11 operates to read 4 words, it takes 19 clocks as in the conventional example. However, if the cache inhibit signal is output in response to the access and the cache memory 11 is not operated, it takes only 3 clocks × 4 words = 12 clocks.

【0016】ユーザは転送回数設定回路6にデータ転送
回数の値を設定し、データ転送命令実行時のキャッシュ
禁止信号の出力タイミングを調整することで、プログラ
ム実行速度の最適化ができる。
The user can optimize the program execution speed by setting the value of the data transfer number in the transfer number setting circuit 6 and adjusting the output timing of the cache inhibit signal when the data transfer instruction is executed.

【0017】なお、上記実施例では論理ゲート8とキャ
ッシュ禁止信号出力部4とを別々に記載したが、論理ゲ
ート8はキャッシュ禁止信号出力部4に含まれると考え
てもよい。
Although the logic gate 8 and the cache inhibit signal output section 4 are described separately in the above embodiment, it may be considered that the logic gate 8 is included in the cache inhibit signal output section 4.

【0018】[0018]

【発明の効果】以上のように本発明によれば、データ転
送命令実行時、予め転送回数設定回路に設定されたデー
タ転送回数とデータ転送命令実行時にカウントされるデ
ータ転送カウンタのデータ転送回数とを比較器により比
較し、両者が一致すると、キャッシュ禁止信号出力部か
らキャッシュ禁止信号を出力するようにマイクロプロセ
ッサを構成したので、設定されたデータ転送回数以降の
データ転送ではキャッシュメモリは動作しなくなり、大
量のデータの転送を行ってもキャッシュメモリがリード
キャッシュミスすることにより発生する余分な処理時間
を減少させることができるという効果が得られる。即
ち、本発明によれば、リードキャッシュミスが連続して
大量に発生することによるデータ転送速度の低下を減少
させることができるという効果が得られる。
As described above, according to the present invention, when the data transfer instruction is executed, the number of times of data transfer set in advance in the transfer number setting circuit and the number of times of data transfer of the data transfer counter which is counted when the data transfer instruction is executed, The microprocessor is configured to output the cache prohibition signal from the cache prohibition signal output unit when the two are compared and the cache prohibition signal output unit outputs the cache prohibition signal. Therefore, the cache memory will not operate after the set number of data transfers. Even if a large amount of data is transferred, it is possible to reduce the extra processing time caused by a read cache miss in the cache memory. That is, according to the present invention, it is possible to obtain an effect that it is possible to reduce a decrease in the data transfer rate due to a large number of consecutive read cache misses.

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

【図1】この発明の一実施例に係るマイクロプロセッサ
の内部構成を示すブロック図である。
FIG. 1 is a block diagram showing an internal configuration of a microprocessor according to an embodiment of the present invention.

【図2】この実施例のマイクロプロセッサあるいは従来
例のマイクロプロセッサを備えたデータ処理システムの
構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a data processing system including a microprocessor of this embodiment or a conventional microprocessor.

【図3】この実施例のマイクロプロセッサとキャッシュ
メモリを用いたデータ処理システムのリード時のタイミ
ング図である。
FIG. 3 is a timing chart at the time of reading of the data processing system using the microprocessor and the cache memory of this embodiment.

【図4】従来のマイクロプロセッサとキャッシュメモリ
を用いたデータ処理システムのリード時のタイミング図
である。
FIG. 4 is a timing diagram at the time of reading of the data processing system using the conventional microprocessor and cache memory.

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

4 キャッシュ禁止信号出力部 5 データ転送カウンタ 6 転送回数設定回路 7 比較器 9 マイクロプロセッサ 10 主メモリ 11 キャッシュメモリ 4 cache inhibit signal output unit 5 data transfer counter 6 transfer count setting circuit 7 comparator 9 microprocessor 10 main memory 11 cache memory

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年8月27日[Submission date] August 27, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0003[Name of item to be corrected] 0003

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0003】キャッシュメモリ11は、マイクロプロセ
ッサ9が主メモリ10にアクセスするアドレスを監視
し、そのアドレスに対応するデータがキャッシュメモリ
11内にあれば、マイクロプロセッサ9からのアクセス
に応答し(これをキャッシュヒットという)、アドレス
に対応するデータをマイクロプロセッサ9に返す。ま
た、キャッシュメモリ11は、アドレスに対応するデー
タがキャッシュメモリ11内に無ければ(これをキャッ
シュミスという)、主メモリ10にアクセスし、そのデ
ータをマイクロプロセッサ9に返すと同時に、アドレ
スとそのデータをキャッシュメモリ11内部に取り込
む。更に、キャッシュメモリ11は、マイクロプロセッ
サ9がリードしたアドレスから連続した残り3WORD
をアクセスし、そのアドレスとデータを取り込み、マイ
クロプロセッサ9がリードしたアドレスを含む連続した
4WORDのアドレスとデータを取り込む。
The cache memory 11 monitors the address at which the microprocessor 9 accesses the main memory 10, and if the data corresponding to the address is in the cache memory 11, it responds to the access from the microprocessor 9 (this The data corresponding to the address (called cache hit) is returned to the microprocessor 9. The cache memory 11, if the data corresponding to the address is not in the cache memory 11 (this is called a cache miss), access to the main memory 10 returns the de <br/> over data of it to the microprocessor 9 And at the same time ,
Memory and its data are taken into the cache memory 11. Furthermore, the cache memory 11 has 3 consecutive words remaining from the address read by the microprocessor 9.
Is accessed, the address and data are fetched, and consecutive 4WORD addresses and data including the address read by the microprocessor 9 are fetched.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】符号の説明[Correction target item name] Explanation of code

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【符号の説明】1 命令フェッチ部 2 命令デコード部 3 制御部 4 キャッシュ禁止信号出力部 5 データ転送カウンタ 6 転送回数設定回路 7 比較器 9 マイクロプロセッサ 10 主メモリ 11 キャッシュメモリ12 バス 13 キャッシュ禁止信号線 [Description of Codes] 1 instruction fetch unit 2 instruction decode unit 3 control unit 4 cache inhibit signal output unit 5 data transfer counter 6 transfer count setting circuit 7 comparator 9 microprocessor 10 main memory 11 cache memory 12 bus 13 cache inhibit signal line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データ処理に必要なデータを記憶した主
メモリと、この主メモリがアクセスされた時のデータを
一時的に格納するキャッシュメモリと、上記主メモリあ
るいは上記キャッシュメモリをアクセスしてデータ処理
を行うマイクロプロセッサとを備えたデータ処理システ
ムにおいて、上記キャッシュメモリの動作を禁止させる
ための任意のデータ転送回数を予め設定する転送回数設
定回路と、データ転送命令実行時にデータ転送回数をカ
ウントするデータ転送カウンタと、データ転送命令実行
時に上記転送回数設定回路の値と上記データ転送カウン
タの値を比較し上記データ転送カウンタの値が上記転送
回数設定回路の値と一致した時に一致信号を出力する比
較器と、この比較器からの一致信号により上記キャッシ
ュメモリの動作を禁止させるためのキャッシュ禁止信号
を出力するキャッシュ禁止信号出力部とを、上記マイク
ロプロセッサに設けたことを特徴とするデータ処理シス
テム。
1. A main memory that stores data required for data processing, a cache memory that temporarily stores data when the main memory is accessed, and a data that is accessed by the main memory or the cache memory. In a data processing system including a microprocessor for performing processing, a transfer number setting circuit that presets an arbitrary data transfer number for inhibiting the operation of the cache memory, and a data transfer number when executing a data transfer instruction When the data transfer counter and the data transfer instruction are executed, the value of the transfer count setting circuit is compared with the value of the data transfer counter, and a match signal is output when the value of the data transfer counter matches the value of the transfer count setting circuit. The operation of the cache memory is prohibited by the comparator and the coincidence signal from this comparator. A data processing system, wherein the microprocessor is provided with a cache inhibit signal output section for outputting a cache inhibit signal for stopping.
JP3360052A 1991-12-27 1991-12-27 Data processing system Pending JPH05181747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3360052A JPH05181747A (en) 1991-12-27 1991-12-27 Data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3360052A JPH05181747A (en) 1991-12-27 1991-12-27 Data processing system

Publications (1)

Publication Number Publication Date
JPH05181747A true JPH05181747A (en) 1993-07-23

Family

ID=18467661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3360052A Pending JPH05181747A (en) 1991-12-27 1991-12-27 Data processing system

Country Status (1)

Country Link
JP (1) JPH05181747A (en)

Similar Documents

Publication Publication Date Title
CA1332248C (en) Processor controlled interface with instruction streaming
US5168571A (en) System for aligning bytes of variable multi-bytes length operand based on alu byte length and a number of unprocessed byte data
US5394528A (en) Data processor with bus-sizing function
US5301296A (en) Microprocessor with cache memory
US5509137A (en) Store processing method in a pipelined cache memory
JPS5936350B2 (en) Cash access method
JP3242508B2 (en) Microcomputer
WO1995022103A1 (en) Microprocessor access control unit with fetch address queue
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
US4910671A (en) Data processing system having a performance control pulse with a variable duty cycle for controlling execution and non-execution of instructions
US5179693A (en) System for controlling operation of processor by adjusting duty cycle of performance control pulse based upon target performance value
KR100321745B1 (en) A micro controller unit for external memory access
JPH05181747A (en) Data processing system
US5724548A (en) System including processor and cache memory and method of controlling the cache memory
JPH05181746A (en) Data processing system and memory control system
JP2783285B2 (en) Information processing device
KR100197783B1 (en) Data processor with pipeline processing function
KR100300875B1 (en) How to deal with cache misses
US20040103267A1 (en) Data processor having cache memory
JP3476314B2 (en) Microprocessor
JPH05257807A (en) Cache memory controller
JP2833259B2 (en) Program repeat control method and program repeat control device
JP3078293B2 (en) Storage controller
JPS59216252A (en) Information processing device
KR950010526B1 (en) Cache memory circuit for reducing lru setting time of cache hit