JP2580078B2 - Instruction prefetch device - Google Patents

Instruction prefetch device

Info

Publication number
JP2580078B2
JP2580078B2 JP3006405A JP640591A JP2580078B2 JP 2580078 B2 JP2580078 B2 JP 2580078B2 JP 3006405 A JP3006405 A JP 3006405A JP 640591 A JP640591 A JP 640591A JP 2580078 B2 JP2580078 B2 JP 2580078B2
Authority
JP
Japan
Prior art keywords
instruction prefetch
queue
instruction
prefetch
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3006405A
Other languages
Japanese (ja)
Other versions
JPH04279938A (en
Inventor
幹雄 荻須
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3006405A priority Critical patent/JP2580078B2/en
Publication of JPH04279938A publication Critical patent/JPH04279938A/en
Application granted granted Critical
Publication of JP2580078B2 publication Critical patent/JP2580078B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンテキストスイッチ
後のタスク実行を高速に行なうことができる命令プリフ
ェッチ装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an instruction prefetch apparatus capable of executing a task after a context switch at a high speed.

【0002】[0002]

【従来の技術】従来の命令プリフェッチ装置において
は、命令プリフェッチはタスク切替えの際に行なわれて
いたため、バンキング方式のCPUではレジスタ群の待
避は発生しないが、バンクを切替えた後に命令をフェッ
チしてタスクを実行するので、パイプライン処理にアイ
ドルサイクルが存在するという問題があった。
2. Description of the Related Art In a conventional instruction prefetch device, instruction prefetch is performed at the time of task switching. Therefore, in a banking system CPU, saving of a register group does not occur, but instructions are fetched after bank switching. Since the task is executed, there is a problem that an idle cycle exists in the pipeline processing.

【0003】この問題を解決するため、予めサブルーチ
ンや特定プロシジャーをフェッチして常駐させておき、
タスクの実行時に待ち状態をつくらない方法も考えられ
ている。しかしながら、この方法によると、プリフェッ
チキューを常に占有することになり、またプログラムに
よってはサブルーチンや特定プロシジャーが数多く存在
するので、その数だけプリフェッチキューを用意する必
要がある。
To solve this problem, a subroutine or a specific procedure is fetched in advance and made resident,
A method that does not create a wait state when executing a task has also been considered. However, according to this method, the prefetch queue is always occupied, and since there are many subroutines and specific procedures depending on the program, it is necessary to prepare the prefetch queue by the number.

【0004】一方、大容量のプリフェッチキューを備え
る場合には、このプリフェッチキューが一杯の状態にな
るまで命令をフェッチするため、バスが開放されないの
で、現在実行中の処理のスループットが低下してしまう
という問題がある。
On the other hand, when a large-capacity prefetch queue is provided, instructions are fetched until the prefetch queue becomes full, so that the bus is not released, so that the throughput of the currently executing process is reduced. There is a problem.

【0005】この問題を解決するため、1チップの内部
にメモリを保有している場合には、命令用のバスとデー
タ用のバスとを独立して持たせ、命令フェッチによって
命令実行のスループットが低下しないように工夫がなさ
れている。しかしながら、外部メモリをアクセスする場
合、命令用のバスとデータ用のバスとを独立させると、
LSI端子がIOポートとして使用できなくなる。その
ため内部では分離バスであっても外部バスは共有化する
方法がとられており、外部メモリにアクセスする場合に
バスが開放されないので、現在実行中の処理のスループ
ットが低下してしまうという問題がある。
In order to solve this problem, when a memory is provided inside one chip, an instruction bus and a data bus are provided independently, and the instruction execution throughput is reduced by instruction fetch. The device is devised so that it does not decrease. However, when accessing an external memory, if the bus for instructions and the bus for data are made independent,
The LSI terminal cannot be used as an IO port. For this reason, a method is used in which the external bus is shared internally even if it is a separate bus, and the bus is not released when accessing the external memory, so that the throughput of the currently executing process is reduced. is there.

【0006】[0006]

【発明が解決しようとする課題】本発明は、前記従来の
問題を解消するものであって、タスク切替えの際におけ
る命令プリフェッチ待ち状態によるパイプラインのアイ
ドルサイクル状態をなくし、且つバスが開放されないた
めに現在実行中の処理のスループットが低下することを
できる限り回避できる命令プリフェッチ装置を提供する
ことを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problem, and eliminates an idle cycle state of a pipeline due to an instruction prefetch wait state at the time of task switching and does not release a bus. It is another object of the present invention to provide an instruction prefetch apparatus capable of avoiding a decrease in the throughput of a process currently being executed as much as possible.

【0007】[0007]

【課題を解決するための手段】前記の目的を達成するた
め、請求項1の発明に係る命令プリフェッチ装置は、現
在実行中のタスク用の命令プリフェッチがアクセスする
メモリユニットと次に実行する予定のタスク用の命令プ
リフェッチがアクセスするメモリユニットとが異なる場
合、同時に2系統の命令プリフェッチを行なうものであ
る。
In order to achieve the above object, an instruction prefetch apparatus according to the present invention includes a memory unit accessed by an instruction prefetch for a currently executing task and a memory unit to be executed next. When the instruction prefetch for the task is different from the memory unit to be accessed, two types of instruction prefetch are performed at the same time.

【0008】具体的に請求項1の発明が講じた解決手段
は、現在実行中のタスク用の命令プリフェッチキュー或
いは次に実行するタスク用の命令プリフェッチキューと
して使用される2系統の命令プリフェッチキューと、コ
ンテキストスイッチの際に現在実行中のタスク用の命令
プリフェッチキューの役割と次に実行するタスク用の命
令プリフェッチキューの役割とを切替える手段と、現在
実行中のタスク用の命令プリフェッチキューがアクセス
するメモリユニットと次に実行するタスク用の命令プリ
フェッチキューがアクセスするメモリユニットとが一致
しない場合には現在実行中のタスク用の命令プリフェッ
チと次に実行するタスク用の命令プリフェッチとを並行
して実行させる手段とを備えている構成とするものであ
る。
[0008] Specifically, the solution taken by the invention of claim 1 is a two-system instruction prefetch queue used as an instruction prefetch queue for a currently executing task or an instruction prefetch queue for a task to be executed next. Means for switching between the role of the instruction prefetch queue for the currently executing task and the role of the instruction prefetch queue for the next task to be executed at the time of context switching, and the instruction prefetch queue for the currently executing task accesses If the memory unit does not match the memory unit accessed by the instruction prefetch queue for the task to be executed next, the instruction prefetch for the currently executing task and the instruction prefetch for the next task to be executed are executed in parallel And means for causing it to be.

【0009】また、請求項2の発明に係る命令プリフェ
ッチ装置は、2種類のROMデータが同時に2系統の命
令プリフェッチキューにアクセスする場合における両デ
ータの競合を避けるために、請求項1の構成に、2種類
のROMデータを前記2系統の命令プリフェッチキュー
に同時にアクセスさせることができるバスと、同時にア
クセスした2種類のROMデータが同時に前記2系統の
命令プリフェッチキューに格納される場合に一方のRO
Mデータを一時待避用のメモリに一時格納することによ
り前記同時にアクセスした2種類のROMデータの競合
を回避させる手段とを備えている構成を付加するもので
ある。
Further, the instruction prefetch apparatus according to the second aspect of the present invention has a configuration as set forth in the first aspect, in order to avoid contention between the two types of ROM data when two types of ROM data simultaneously access two types of instruction prefetch queues. A bus that allows two types of ROM data to be simultaneously accessed to the two types of instruction prefetch queues, and one RO when two types of simultaneously accessed ROM data are simultaneously stored in the two types of instruction prefetch queues
A means for temporarily storing M data in a temporary save memory to avoid conflict between the two types of ROM data accessed at the same time is added.

【0010】また、請求項3の発明に係る命令プリフェ
ッチ装置は、2種類のROMデータが同時に2系統の命
令プリフェッチキューにアクセスする場合における両デ
ータの競合を避けるために、請求項1の構成に、2種類
のROMデータを前記2系統の命令プリフェッチキュー
に同時にアクセスさせることができるバスと、同時にア
クセスした2種類のROMデータが同時に前記2系統の
命令プリフェッチキューに格納される場合に内部メモリ
にアクセスした命令プリフェッチを一旦無効とした後再
度フェッチ動作させることにより前記同時にアクセスし
た2種類のROMデータの競合を回避する手段とを備え
ている構成を付加するものである。
The instruction prefetch device according to the third aspect of the present invention has a configuration according to the first aspect, in order to avoid contention between two types of ROM data when two types of ROM data simultaneously access two types of instruction prefetch queues. A bus that allows two types of ROM data to be simultaneously accessed to the two types of instruction prefetch queues; and a bus that allows two types of simultaneously accessed ROM data to be stored in the two types of instruction prefetch queues. A means is provided which includes means for avoiding contention between the two types of ROM data accessed simultaneously by invalidating the accessed instruction prefetch once and then performing the fetch operation again.

【0011】さらに、請求項4の発明に係る命令プリフ
ェッチ装置は、命令プリフェッチキューを2系統備えて
いるが、命令プリフェッチキューが2系統必要ないとき
には、プログラマブルに或いは外部入力により1系統の
命令プリフェッチキューとして使用するものである。
Further, the instruction prefetch apparatus according to the present invention has two instruction prefetch queues. When two instruction prefetch queues are not required, one instruction prefetch queue can be programmed or externally input. Is used as

【0012】具体的に請求項4の発明が講じた解決手段
は、現在実行中のタスク用の命令プリフェッチキュー或
いは次に実行するタスク用の命令プリフェッチキューと
して使用される2系統の命令プリフェッチキューと、前
記2系統の命令プリフェッチキューを連結して1系統の
命令プリフェッチキューとして使用するか或いは各々独
立した2系統の命令プリフェッチキューとして使用する
かをフラグにより切替える手段とを備えている構成とす
るものである。
[0012] Specifically, a solution taken by the invention of claim 4 is a two-system instruction prefetch queue used as an instruction prefetch queue for a currently executing task or an instruction prefetch queue for a task to be executed next. Means for connecting the two instruction prefetch queues and using them as a single instruction prefetch queue or two independent instruction prefetch queues by means of a flag. It is.

【0013】[0013]

【作用】請求項1の構成により、現在実行中のタスク用
の命令プリフェッチキューがアクセスするメモリユニッ
トと次に実行するタスク用の命令プリフェッチキューが
アクセスするメモリユニットとが一致しない場合には現
在実行中のタスク用の命令プリフェッチと次に実行する
タスク用の命令プリフェッチとを並行して実行すること
ができる。
According to the first aspect of the present invention, if the memory unit accessed by the instruction prefetch queue for the currently executing task does not match the memory unit accessed by the instruction prefetch queue for the task to be executed next, the current execution is performed. The instruction prefetch for the middle task and the instruction prefetch for the next task to be executed can be executed in parallel.

【0014】請求項2の構成により、同時にアクセスし
た2種類のROMデータが同時に2系統の命令プリフェ
ッチキューに格納される場合、一方のROMデータを一
時待避用のメモリに一時格納することにより、同時にア
クセスした2種類のROMデータの競合を回避させるこ
とができる。
According to the second aspect of the present invention, when two kinds of ROM data accessed at the same time are simultaneously stored in the instruction prefetch queues of two systems, one of the ROM data is temporarily stored in a temporary saving memory, thereby simultaneously storing the two ROM data. The conflict between the two types of accessed ROM data can be avoided.

【0015】請求項3の構成により、同時にアクセスし
た2種類のROMデータが同時に2系統の命令プリフェ
ッチキューに格納される場合、内部メモリにアクセスし
た命令プリフェッチを一旦無効とした後に再度フェッチ
動作させることにより、同時にアクセスした2種類のR
OMデータの競合を回避することができる。
According to the third aspect of the present invention, when two types of ROM data accessed at the same time are simultaneously stored in two types of instruction prefetch queues, the instruction prefetch accessing the internal memory is once invalidated and then fetched again. , Two types of R accessed simultaneously
OM data competition can be avoided.

【0016】請求項4の構成により、2系統の命令プリ
フェッチキューを連結して1系統の命令プリフェッチキ
ューとして使用するか或いは各々独立した2系統の命令
プリフェッチキューとして使用するかをフラグにより切
替えることができるので、命令プリフェッチキューを2
系統必要としない場合には1系統の命令プリフェッチキ
ューとして使用することができる。
According to the fourth aspect of the present invention, it is possible to switch between two instruction prefetch queues by connecting the two instruction prefetch queues and use them as one instruction prefetch queue or two independent instruction prefetch queues. The instruction prefetch queue can be
When a system is not required, it can be used as an instruction prefetch queue of one system.

【0017】[0017]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0018】図1は、現在実行中のタスク用の命令プリ
フェッチキュー及び次に実行する予定のタスク用の命令
プリフェッチキューに貯える有効命令バイト数を2系統
の命令プリフェッチキューに独立して指定できる命令プ
リフェッチ装置の構成を示した図である。
FIG. 1 shows an instruction prefetch queue for a task that is currently being executed and an instruction prefetch queue for a task to be executed next that can independently specify the number of valid instruction bytes stored in an instruction prefetch queue of two systems. FIG. 3 is a diagram illustrating a configuration of a prefetch device.

【0019】ROM1内のデータはキュー切替え制御部
15の制御によりキュー入力セレクタ2を介してキュー
a3或いはキューb4にプリフェッチされる。ROMア
クセス制御部5からアドレスバス18を介してROM1
のアドレスが入力され、ROM1内のデータが入力され
るタイミングにROM1からデータアクセス同期信号1
9が出力される。現在実行中のタスクがキューa3を使
用していれば次に実行されるタスクはキューb4を使用
する。そして現在実行中のタスクが終了すればキューb
4が現在実行中のタスク用に切替わり、キューa3は次
に実行されるタスク用になる。このキューa3とキュー
b4との切替え動作は最終オペランド解読信号16の入
力タイミングに、キュー切替え制御部15がキュー切替
え信号17を反転することにより行なわれる。
The data in the ROM 1 is prefetched to the queue a3 or the queue b4 via the queue input selector 2 under the control of the queue switching control unit 15. From the ROM access control unit 5 via the address bus 18
Of the data access synchronization signal 1 from the ROM 1 at the timing when the data in the ROM 1 is input.
9 is output. If the task currently being executed uses the queue a3, the task to be executed next uses the queue b4. When the currently executing task is completed, the queue b
4 is switched to the task currently being executed, and the queue a3 is used for the task to be executed next. The switching operation between the queue a3 and the queue b4 is performed by the queue switching control unit 15 inverting the queue switching signal 17 at the input timing of the final operand decoding signal 16.

【0020】キューa3及びキューb4には各々キュー
内の有効バイト数を示す有効バイト数レジスタa6及び
有効バイト数レジスタb7が設けられており、データア
クセス同期信号19が出力されるタイミングにROMア
クセス制御部5からの獲得データバイト数情報20とな
って、加算減算器9でキュー切替え信号17によってセ
レクタ8で選択される有効バイト数レジスタa6或いは
有効バイト数レジスタb7の値と加算され、加算結果は
キュー切替え信号17によってセレクタ10で選択され
る有効バイト数レジスタa6又は有効バイト数レジスタ
b7に格納される。獲得データバイト数情報20は、R
OM1内のデータがキューa3或いはキューb4にプリ
フェッチされたバイト数を示す。命令実行時にROM1
内のデータを使用すると、使用データバイト数情報21
が加算減算器9に入力され減算される。
The queues a3 and b4 are provided with a valid byte number register a6 and a valid byte number register b7 indicating the number of valid bytes in the queue, respectively. The ROM access control is performed at the timing when the data access synchronization signal 19 is output. The obtained data byte number information 20 from the unit 5 is added to the value of the valid byte number register a6 or the valid byte number register b7 selected by the selector 8 by the queue switching signal 17 by the addition / subtraction unit 9, and the addition result is The data is stored in the valid byte number register a6 or the valid byte number register b7 selected by the selector 10 by the queue switching signal 17. The acquired data byte number information 20 is R
It indicates the number of bytes of data in OM1 prefetched in queue a3 or queue b4. ROM1 when executing instructions
Is used, the used data byte number information 21
Is input to the addition / subtraction unit 9 and is subtracted.

【0021】バイト数指定レジスタa11,b12は、
実行されるタスク或いは次の命令の命令プリフェッチバ
イト数をユーザが指定するレジスタであり、キューa3
とキューb4とに各々対応している。バイト数指定レジ
スタa11,b12と有効バイト数レジスタa6,b7
との比較は減算器14によって行なわれ、(有効バイト
数)−(バイト数指定レジスタ)<0のとき、プリフェ
ッチイネーブル信号22がセレクタ10に入力される。
The byte number specification registers a11 and b12 are
This register is used by the user to specify the task to be executed or the number of instruction prefetch bytes of the next instruction.
And the queue b4. Byte number designation registers a11 and b12 and effective byte number registers a6 and b7
The prefetch enable signal 22 is input to the selector 10 when (valid byte number)-(byte number designation register) <0.

【0022】命令プリフェッチはキュー切替え制御部1
5により行なわれるが、最終オペランド解読信号16に
よる現在実行中のタスク或いは次に実行するタスク用の
命令プリフェッチキューの切替えタイミングとは異な
り、現在実行中のタスク用の命令プリフェッチが優先的
に行なわれ、現在実行中のタスク用の命令プリフェッチ
キューがバイト数指定レジスタa11或いはb12で指
定されたROM有効バイト数になると、次に実行するタ
スク用の命令プリフェッチが実行される。現在実行中の
タスク用の命令プリフェッチキューの有効バイト数レジ
スタa6或いはb7の値は使用データバイト数情報21
により減っていくので、命令プリフェッチ動作するキュ
ーは、次に実行するタスク用の命令プリフェッチキュー
がバイト数指定レジスタa11或いはb12で指定され
たROM有効バイト数になる前に現在実行中のタスクの
命令プリフェッチが実行される。次に実行するタスク用
の命令プリフェッチは次に実行するタスク用の有効バイ
ト数レジスタa6,b7で指定されたバイト数までフェ
ッチされる。
The instruction prefetch is performed by the queue switching control unit 1.
5, unlike the timing of switching the instruction prefetch queue for the currently executing task or the next task to be executed by the final operand decoding signal 16, the instruction prefetch for the currently executing task is preferentially performed. When the instruction prefetch queue for the currently executing task reaches the ROM valid byte number specified by the byte number specification register a11 or b12, the instruction prefetch for the task to be executed next is executed. The value of the effective byte number register a6 or b7 of the instruction prefetch queue for the currently executing task is the used data byte number information 21.
The instruction prefetching queue for the task to be executed next has an instruction of the task currently being executed before the instruction prefetch queue for the next task to be executed reaches the ROM effective byte number specified by the byte number specification register a11 or b12. Prefetch is performed. The instruction prefetch for the task to be executed next is fetched up to the number of bytes specified by the effective byte number registers a6 and b7 for the task to be executed next.

【0023】以上説明したように、本実施例によると、
現在実行中のタスク用の命令プリフェッチキューが優先
的に指定され且つプリフェッチするバイト数をバイト数
指定レジスタa6或いはb7で指定できるのでフェッチ
動作は円滑に処理され、また命令プリフェッチサイクル
を最適に押えられるため速やかにバスを開放することが
できる。
As described above, according to the present embodiment,
The instruction prefetch queue for the currently executing task is preferentially designated, and the number of bytes to be prefetched can be designated by the byte number designation register a6 or b7, so that the fetch operation can be processed smoothly and the instruction prefetch cycle can be optimally suppressed. Therefore, the bus can be quickly opened.

【0024】図2は、現在実行中のタスク用の命令プリ
フェッチがアクセスするメモリユニットと次に実行する
予定のタスク用の命令プリフェッチがアクセスするメモ
リユニットとが異なる場合、同時に2系統の命令プリフ
ェッチを行なう命令プリフェッチ装置の構成を示した図
である。
FIG. 2 shows that when the memory unit accessed by the instruction prefetch for the currently executing task is different from the memory unit accessed by the instruction prefetch for the task to be executed next, two types of instruction prefetch are simultaneously executed. FIG. 3 is a diagram illustrating a configuration of an instruction prefetch device that performs the instruction prefetch;

【0025】現在実行している命令のメモリアドレスを
示す実行中インストラクションポインタ(以下カレント
IPという)IPa23、及びプリフェッチするデータ
の先頭番地を示すプリフェッチインストラクションポイ
ンタ(以下プリフェッチIPという)IPa25は各々
キューa3用に設けられたポインタであり、キューb4
用にはカレントIPb24及びプリフェッチIPb26
が設けられている。
An executing instruction pointer (hereinafter referred to as current IP) IPa23 indicating the memory address of the currently executed instruction and a prefetch instruction pointer (hereinafter referred to as prefetch IP) IPa25 indicating the head address of the data to be prefetched are each used for the queue a3. Is a pointer provided in the queue b4
For current IPb24 and prefetch IPb26
Is provided.

【0026】カレントIPフラグ27はカレントIPa
23とカレントIPb24とを切替え、またプリフェッ
チIPフラグ28はプリフェッチIPa25とプリフェ
ッチIPb26とを切替える。そしてカレントIPフラ
グ27とプリフェッチIPフラグ28とはキュー切替え
信号31をトリガとして切替わるが、現在実行中のプリ
フェッチIPa25或いはプリフェッチIPb26と、
次に実行するプリフェッチIPa25或いはプリフェッ
チIPb26とが異なるアドレス空間である場合には、
プリフェッチIPフラグ28が切替わる。
The current IP flag 27 indicates the current IPa
23 and the current IPb 24, and the prefetch IP flag 28 switches between the prefetch IPa 25 and the prefetch IPb 26. The current IP flag 27 and the prefetch IP flag 28 are switched using the queue switching signal 31 as a trigger, and the currently executed prefetch IPa 25 or prefetch IPb 26
When the prefetch IPa25 or the prefetch IPb26 to be executed next has a different address space,
The prefetch IP flag 28 switches.

【0027】プリフェッチIPa25或いはプリフェッ
チIPb26の値はセレクタ29を介してアドレスバス
32に出力され、ROM1をアクセスすると共に比較器
30に入力される。比較器30は出力されたプリフェッ
チIPの値がどのアドレス空間であるかを判断し、空間
情報33としてプリフェッチIPフラグ28に入力され
る。空間情報33は一時記憶され、記憶された空間情報
がアクセスウエイトサイクルを必要とするメモリ空間で
あるときには、プリフェッチIPフラグ28が反転し、
次に実行するプリフェッチIPa25或いはプリフェッ
チIPb26が選択される。この選択されたプリフェッ
チIPと現在実行中のプリフェッチIPとが異なると、
セレクタ29を介してプリフェッチアドレスが出力され
る。
The value of the prefetch IPa 25 or the prefetch IPb 26 is output to the address bus 32 via the selector 29, accesses the ROM 1, and is input to the comparator 30. The comparator 30 determines which address space the output prefetch IP value is in, and inputs it to the prefetch IP flag 28 as space information 33. The space information 33 is temporarily stored, and when the stored space information is a memory space requiring an access wait cycle, the prefetch IP flag 28 is inverted,
Next, the prefetch IPa 25 or the prefetch IPb 26 to be executed is selected. If the selected prefetch IP is different from the currently executing prefetch IP,
The prefetch address is output via the selector 29.

【0028】図3は、同時に2系統の命令プリフェッチ
を行なった場合において命令データ獲得タイミングが重
なったとき、競合するデータの一方を待避する命令プリ
フェッチ装置のアービタ構成を示した図である。
FIG. 3 is a diagram showing an arbiter configuration of an instruction prefetch device that saves one of competing data when instruction data acquisition timings are overlapped when two systems of instruction prefetch are performed simultaneously.

【0029】現在実行中のタスクのプリフェッチが外部
メモリ35へのアクセスであり、次に実行するタスクの
プリフェッチが内部ROM34であるときにおいて、外
部メモリ35と内部ROM34とがROMデータをデー
タバス39に出力するタイミングが同時になりバス競合
が起こった場合には、内部ROM34がROMデータを
データバス39に出力するタイミングにイネーブルとな
る内部用データバスアクセス同期信号40と、外部メモ
リ35がROMデータをデータバス39に出力するタイ
ミングにイネーブルとなる外部用データバスアクセス同
期信号41とを入力とするANDゲート38により、内
部ROM34のROMデータを一時記憶するラッチ36
に対してラッチイネーブル信号42を出力してデータを
ラッチさせると共に、データバス39への出力を禁止し
てデータの競合を回避する。次に外部用データバスアク
セス同期信号41を入力とする遅延回路37により外部
用データバスアクセス同期信号41のパルスに遅延がか
かり、ラッチ出力イネーブル信号43となってラッチ3
6に入力され、ラッチ36からデータバス39に内部R
OMデータが出力される。本アービタタイミングにより
データ競合の回避を簡略な制御回路により実現すること
ができる。
When the prefetch of the currently executed task is access to the external memory 35 and the prefetch of the next task to be executed is the internal ROM 34, the external memory 35 and the internal ROM 34 transfer the ROM data to the data bus 39. When the output timing is the same and a bus conflict occurs, the internal data bus access synchronization signal 40 which is enabled at the timing when the internal ROM 34 outputs the ROM data to the data bus 39 and the external memory 35 transmits the ROM data A latch 36 for temporarily storing ROM data of an internal ROM 34 by an AND gate 38 which receives an external data bus access synchronization signal 41 enabled at the timing of outputting to a bus 39.
, A latch enable signal 42 is output to latch data, and output to the data bus 39 is prohibited to avoid data conflict. Next, the pulse of the external data bus access synchronizing signal 41 is delayed by the delay circuit 37 to which the external data bus access synchronizing signal 41 is input.
6 from the latch 36 to the data bus 39
OM data is output. With this arbiter timing, avoidance of data conflict can be realized by a simple control circuit.

【0030】図4は、同時に2系統の命令プリフェッチ
を行なった場合において命令データ獲得タイミングが重
なったとき、競合するデータの一方を待避する命令プリ
フェッチ装置のアービタ構成のタイミングを示した図で
ある。
FIG. 4 is a diagram showing the timing of the arbiter configuration of the instruction prefetch device that saves one of competing data when the instruction data acquisition timings overlap when two systems of instruction prefetch are performed simultaneously.

【0031】内部用データバスアクセス同期信号40と
外部用データバスアクセス同期信号41とが同時タイミ
ングで出力されると、ラッチイネーブル信号42が発生
し、ラッチ36はデータをラッチし且つラッチデータの
出力を禁止し、ハイインピーダンス状態(図示せず)と
なる。外部用データバスアクセス同期信号41は遅延回
路37によりラッチ出力イネーブル信号43となりラッ
チ36のデータ出力を許可する。
When the internal data bus access synchronization signal 40 and the external data bus access synchronization signal 41 are output at the same time, a latch enable signal 42 is generated, and the latch 36 latches the data and outputs the latched data. Are prohibited, and a high impedance state (not shown) is set. The external data bus access synchronizing signal 41 is turned into a latch output enable signal 43 by the delay circuit 37 to enable the data output of the latch 36.

【0032】図5は、同時に2系統の命令プリフェッチ
を行なった場合において命令データ獲得タイミングが重
なったとき、競合するデータの一方を再度フェッチする
命令プリフェッチ装置のアービタ構成を示した図であ
る。
FIG. 5 is a diagram showing an arbiter configuration of an instruction prefetch device that fetches one of competing data again when instruction data acquisition timings overlap when two systems of instruction prefetch are performed simultaneously.

【0033】現在実行中のタスクのプリフェッチが外部
メモリ49へのアクセスであり、次に実行するタスクの
プリフェッチが内部ROM48であるときにおいて、外
部メモリ49と内部ROM48とがROMデータを出力
するタイミングが同時になり、バス競合が起こった場合
には、内部ROM48がROMデータをデータバスに出
力するタイミングにイネーブルとなる内部用データバス
アクセス同期信号54と、外部メモリ49がROMデー
タを出力するタイミングにイネーブルとなる外部用デー
タバスアクセス同期信号55とを入力とするANDゲー
ト52から、内部ROM48のデータのキュー51への
入力を禁止するキューラッチ禁止信号56が出力され、
データの競合を回避する。次に外部用データバスアクセ
ス同期信号55を入力とする遅延回路53により、外部
用データバスアクセス同期信号55のパルスに遅延がか
かり、アドレス発生部50に入力され、再度アドレスを
発生することによりROMデータの獲得を行なう。
When the prefetch of the currently executing task is access to the external memory 49 and the prefetch of the next task to be executed is the internal ROM 48, the timing at which the external memory 49 and the internal ROM 48 output ROM data is determined. At the same time, when a bus conflict occurs, an internal data bus access synchronization signal 54 that is enabled when the internal ROM 48 outputs ROM data to the data bus, and an internal data bus access synchronization signal 54 that is enabled when the external memory 49 outputs ROM data. A queue latch inhibit signal 56 for inhibiting the input of data of the internal ROM 48 to the queue 51 is output from the AND gate 52 that receives the external data bus access synchronization signal 55 as an input.
Avoid data races. Next, the pulse of the external data bus access synchronizing signal 55 is delayed by the delay circuit 53 to which the external data bus access synchronizing signal 55 is input, and the pulse is input to the address generating unit 50, and the address is generated again. Acquire data.

【0034】図6は、命令プリフェッチキューが2系統
必要ないときには、プログラマブルに或いは外部入力に
より1系統の命令プリフェッチキューとして使用できる
命令プリフェッチ装置の構成を示した図である。
FIG. 6 is a diagram showing a configuration of an instruction prefetch apparatus which can be used as one instruction prefetch queue in a programmable or external manner when two instruction prefetch queues are not required.

【0035】ROM57のデータはキュー入力セレクタ
58によりキューa59或いはキューb60に入力され
る。プリフェッチIPa61で示されるROMアドレス
のデータがキューa59に入力され、カレントIPa6
3で示されるキューa59内のデータが命令解読部(図
示せず)に出力される。同様に、キューb60、プリフ
ェッチIPb62及びカレントIPb64が一組となっ
ている。プリフェッチIPa61とプリフェッチIPb
62とはプリフェッチIP切替え部65により切替わ
る。キューa59或いはb60を現在実行中のタスク用
或いは次に実行するタスク用として使用する場合、シン
グル・デュアルキュー切替え信号67によりデュアルキ
ューモードとなり、外部切替えトリガ信号70によりキ
ューa59の役割とキューb60の役割とが切替わる。
The data in the ROM 57 is input to the queue a 59 or the queue b 60 by the queue input selector 58. The data of the ROM address indicated by the prefetch IPa61 is input to the queue a59, and the current IPa6
The data in the queue a59 indicated by 3 is output to the instruction decoding unit (not shown). Similarly, the queue b60, the prefetch IPb62, and the current IPb64 form a set. Prefetch IPa61 and Prefetch IPb
62 is switched by the prefetch IP switching unit 65. When the queue a59 or b60 is used for the task currently being executed or for the task to be executed next, the dual / queue mode is set by the single / dual queue switching signal 67, and the role of the queue a59 and the role of the queue b60 are set by the external switching trigger signal 70. The role is switched.

【0036】シングル・デュアルキュー切替え信号67
によってシングルキューモードとすると、プリフェッチ
IPa61とプリフェッチIPb62とが同じ値をと
り、プリフェッチIPb62(或いはプリフェッチIP
a61)のビットポジション3(bp3)68をプリフ
ェッチIP切替え部65のフラグとして動作させ、キュ
ーa59或いはb60のいずれに入力するかを決定す
る。同様にシングル・デュアルキュー切替え信号67を
シングルキューモードとすると、カレントIPa63と
カレントIPb64とが同じ値をとり、カレントIPb
64(或いはカレントIPa63)のビットポジション
3(bp3)69をカレントIP切替え部66のフラグ
として動作させ、キューa59或いはb60のいずれに
入力するかをキュー入力セレクタ58を制御することに
より決定する。
Single / dual cue switching signal 67
In the single queue mode, the prefetch IPa61 and the prefetch IPb62 take the same value, and the prefetch IPb62 (or the prefetch
The bit position 3 (bp3) 68 of a61) is operated as a flag of the prefetch IP switching unit 65 to determine which of the queues a59 and b60 is to be input. Similarly, when the single / dual cue switching signal 67 is set to the single cue mode, the current IPa 63 and the current IPb 64 take the same value and the current IPb
The bit position 3 (bp3) 69 of 64 (or the current IPa 63) is operated as a flag of the current IP switching unit 66, and the input to the queue a59 or b60 is determined by controlling the queue input selector 58.

【0037】以上説明したように、本実施例によると、
システムのアプリケーションによって、シングルキュー
とデュアルキューとを任意に切替えることができ、シス
テム構築に柔軟性を持たせることができる。
As described above, according to the present embodiment,
Depending on the application of the system, the single queue and the dual queue can be arbitrarily switched, so that flexibility in system construction can be provided.

【0038】図7は、命令プリフェッチキューが2系統
必要ないときは、プログラマブルに或いは外部入力によ
り1系統の命令プリフェッチキューとして使用できるの
命令プリフェッチ装置のキュー管理方法を示した図であ
る。
FIG. 7 is a diagram showing a queue management method of an instruction prefetch device that can be used as one instruction prefetch queue either programmatically or by external input when two instruction prefetch queues are not required.

【0039】図7(a)に示すキューa71及び図7
(b)に示すキューb72内の数字は、シングルキュー
モードにおけるプリフェッチIPのbp3〜bp0或い
はカレントIPのbp3〜bp0との対応を示してい
る。キューa,bは各々8個のブロックから構成されて
おり、プリフェッチIPのbp3〜bp0或いはカレン
トIPのbp3〜bp0が(0011)の時にはキュー
a内の(0011)ブロックを選択し、(1011)の
時にはキューb内の(1011)ブロックを選択する。
従って、IP情報のbp3によりキューa或いはbのい
ずれかが選択され、bp2〜0でブロックの選択が行な
われる。シングルキューモードでは16個のブロックが
1タスクに割当てられる。一方、デュアルキューモード
ではキューbのプリフェッチIPのbp3〜bp0或い
はカレントIPのbp3〜bp0との対応はキューaと
同じになり(図示せず)、キューa,bの切替えはIP
情報ではなく、命令終了信号等の別の信号をトリガと
し、各々のブロックはIPのbp2〜0で選択される。
デュアルキューモードでは8個のブロックが1タスクに
割り当てられるため、最大2タスクに割当てられる。
The queue a71 shown in FIG.
The number in the queue b72 shown in (b) indicates the correspondence with the prefetch IP bp3 to bp0 or the current IP bp3 to bp0 in the single queue mode. Each of the queues a and b is composed of eight blocks. When bp3 to bp0 of the prefetch IP or bp3 to bp0 of the current IP is (0011), the (0011) block in the queue a is selected, and (1011) At the time of (1), the (1011) block in the queue b is selected.
Therefore, either queue a or b is selected by bp3 of the IP information, and a block is selected by bp2-0. In the single queue mode, 16 blocks are allocated to one task. On the other hand, in the dual queue mode, the correspondence between the prefetch IP bp3 to bp0 of the queue b or the current IP bp3 to bp0 is the same as that of the queue a (not shown), and the switching of the queues a and b is performed by the IP.
Instead of information, another signal such as an instruction end signal or the like is used as a trigger, and each block is selected by bp 2 to 0 of IP.
In the dual queue mode, eight blocks are allocated to one task, and thus are allocated to a maximum of two tasks.

【0040】[0040]

【発明の効果】以上説明したように、請求項1の発明に
よると、現在実行中のタスク用の命令プリフェッチキュ
ーがアクセスするメモリユニットと次に実行するタスク
用の命令プリフェッチキューがアクセスするメモリユニ
ットとが一致しない場合には現在実行中のタスク用の命
令プリフェッチと次に実行するタスク用の命令プリフェ
ッチとを並行して実行することができるため、同時に2
系統のバスのROMデータをプリフェッチできるので、
システムのスループットが向上する。
As described above, according to the first aspect of the present invention, the memory unit accessed by the instruction prefetch queue for the currently executing task and the memory unit accessed by the instruction prefetch queue for the task to be executed next Do not match, the instruction prefetch for the currently executing task and the instruction prefetch for the next task to be executed can be executed in parallel, and
Since the ROM data of the system bus can be prefetched,
The system throughput is improved.

【0041】また、請求項2の発明によると、同時にア
クセスした2種類のROMデータが同時に2系統の命令
プリフェッチキューに格納される場合、一方のROMデ
ータを一時待避用のメモリに一時格納することにより、
同時にアクセスした2種類のROMデータの競合を回避
させることができるので、バスの競合を簡素化された回
路で回避することができる。
According to the second aspect of the present invention, when two types of ROM data accessed simultaneously are stored in two instruction prefetch queues simultaneously, one of the ROM data is temporarily stored in a temporary save memory. By
Since conflict between two types of ROM data accessed simultaneously can be avoided, bus conflict can be avoided with a simplified circuit.

【0042】また、請求項3の発明によると、同時にア
クセスした2種類のROMデータが同時に2系統の命令
プリフェッチキューに格納される場合、内部メモリにア
クセスした命令プリフェッチを一旦無効とした後に再度
フェッチ動作させることにより、同時にアクセスした2
種類のROMデータの競合を回避することができるの
で、やはりバスの競合を簡素化された回路で回避するこ
とができる。
According to the third aspect of the present invention, when two types of ROM data accessed simultaneously are simultaneously stored in two types of instruction prefetch queues, the instruction prefetch accessing the internal memory is once invalidated and then fetched again. By operating, 2 accessed simultaneously
Since the conflict between the different types of ROM data can be avoided, the conflict between the buses can also be avoided with a simplified circuit.

【0043】さらに、請求項4の発明によると、2系統
の命令プリフェッチキューを連結して1系統の命令プリ
フェッチキューとして使用するか或いは各々独立した2
系統の命令プリフェッチキューとして使用するかをフラ
グにより切替えることができるため、シングルタスクが
主であるシステムにおいては1系統の命令プリフェッチ
キューとして使用することができるので、システムのス
ループットを向上させることができる。
Further, according to the invention of claim 4, two instruction prefetch queues are connected and used as one instruction prefetch queue, or two independent instruction prefetch queues are used.
Since it is possible to switch whether to use the instruction prefetch queue as a system by using a flag, it is possible to use the instruction prefetch queue as a system instruction prefetch queue in a system mainly using a single task, thereby improving the system throughput. .

【0044】以上のように、請求項1〜4の発明による
と、簡易な構成によりシステムのスループットを向上さ
せることができるので、実用効果が高い命令プリフェッ
チ装置を実現することができる。
As described above, according to the first to fourth aspects of the present invention, the throughput of the system can be improved with a simple configuration, so that an instruction prefetch device with a high practical effect can be realized.

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

【図1】本発明の一実施例に係り、現在実行中のタスク
用の命令プリフェッチキュー及び次に実行する予定のタ
スク用の命令プリフェッチキューとに貯える有効命令バ
イト数を2系統の命令プリフェッチキューに独立して指
定できる命令プリフェッチ装置の構成を示す図である。
FIG. 1 is a diagram illustrating two types of instruction prefetch queues for storing the number of valid instruction bytes stored in an instruction prefetch queue for a currently executing task and an instruction prefetch queue for a task to be executed next according to an embodiment of the present invention; FIG. 3 is a diagram showing a configuration of an instruction prefetch device that can be specified independently of the instruction prefetch device.

【図2】本発明の一実施例に係り、現在実行中のタスク
用の命令プリフェッチと次に実行予定のタスク用の命令
プリフェッチとのアクセスするメモリユニットが異なる
場合、同時に2系統の命令プリフェッチを行なう命令プ
リフェッチ装置の構成を示す図である。
FIG. 2 relates to an embodiment of the present invention, in which, when an instruction prefetch for a currently executing task and an instruction prefetch for a task to be executed next are different from each other, two types of instruction prefetch are simultaneously performed. FIG. 2 is a diagram illustrating a configuration of an instruction prefetch device that performs the instruction.

【図3】本発明の一実施例に係り、同時に2系統の命令
プリフェッチを行なった場合において命令データ獲得タ
イミングが重なったとき、競合するデータの一方を待避
させる命令プリフェッチ装置のアービタ構成を示す図で
ある。
FIG. 3 is a diagram showing an arbiter configuration of an instruction prefetch device that saves one of competing data when instruction data acquisition timings overlap in a case where two systems of instruction prefetch are performed simultaneously according to an embodiment of the present invention. It is.

【図4】本発明の一実施例に係り、同時に2系統の命令
プリフェッチを行なった場合において命令データ獲得タ
イミングが重なったとき、競合するデータの一方を待避
させる命令プリフェッチ装置のアービタ構成のタイミン
グを示す図である。
FIG. 4 is a timing chart of an arbiter configuration of an instruction prefetch device for saving one of competing data when instruction data acquisition timings overlap in the case where two systems of instruction prefetch are performed simultaneously according to an embodiment of the present invention. FIG.

【図5】本発明の一実施例に係り、同時に2系統の命令
プリフェッチを行なった場合において命令データ獲得タ
イミングが重なったとき、競合するデータの一方を再度
フェッチさせる命令プリフェッチ装置のアービタ構成を
示す図である。
FIG. 5 shows an arbiter configuration of an instruction prefetch device that fetches one of competing data again when instruction data acquisition timings overlap in a case where two systems of instruction prefetch are performed simultaneously according to an embodiment of the present invention. FIG.

【図6】本発明の一実施例に係り、命令プリフェッチキ
ューが2系統必要ないときはプログラマブルに、或いは
外部入力により1系統の命令プリフェッチキューとして
使用できる本発明の命令プリフェッチ装置の構成を示す
図である。
FIG. 6 is a diagram showing a configuration of an instruction prefetch apparatus according to the present invention which can be used as one instruction prefetch queue in a programmable manner when two instruction prefetch queues are not necessary or according to an embodiment of the present invention when external instruction is required; It is.

【図7】本発明の一実施例に係り、命令プリフェッチキ
ューが2系統必要ないときはプログラマブルに、或いは
外部入力により1系統の命令プリフェッチキューとして
使用できる本発明の命令プリフェッチ装置のキュー管理
方法を示す図である。
FIG. 7 relates to a queue management method for an instruction prefetch apparatus according to the present invention, which can be used as one instruction prefetch queue in a programmable manner when two instruction prefetch queues are not required or according to an embodiment of the present invention. FIG.

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

1,57…ROM 2,58…キュー入力セレクタ 3,4,51,59,60,71,72…キュー 5…ROMアクセス制御部 6,7…有効バイト数レジスタ 8,10,13,29…セレクタ 9…加算減算器 11,12…バイト数指定レジスタ 14…減算器 15…キュー切替え制御部 16…最終オペランド解読信号 17,31…キュー切替え信号 18,32…アドレスバス 19…データアクセス同期信号 20…獲得データバイト数情報 21…使用データバイト数情報 22…プリフェッチイネーブル信号 23,24,63,64…実行中インストラクションポ
インタ(カレントIP) 25,26,61,62…プリフェッチインストラクシ
ョンポインタ(プリフェッチIP) 27…カレントIPプラグ 28…プリフェッチIPフラグ 30…比較器 33…空間情報 34,48…内部ROM 35,49…外部メモリ 36…ラッチ 37,53…遅延回路 38,52…ANDゲート 39…データバス 40,54…内部用データバスアクセス同期信号 41、55…外部用データバスアクセス同期信号 42…ラッチイネーブル信号 43…ラッチ出力イネーブル信号 50…アドレス発生部 56…キューラッチ禁止信号 65…プリフェッチIP切替え部 66…カレントIP切替え部 67…シングル・デュアルキュー切替え信号 68…プリフェッチIPのビットポジション3(bp
3) 69…カレントIPのビットポジション3(bp3) 70…外部切替えトリガ信号
1, 57 ROM 2, 58 queue input selector 3, 4, 51, 59, 60, 71, 72 queue 5 ROM access controller 6, 7 effective byte number register 8, 10, 13, 29 selector 9 Addition / subtraction unit 11, 12 Byte number designation register 14 Subtractor 15 Queue switching control unit 16 Final operand decoding signal 17, 31 Queue switching signal 18, 32 Address bus 19 Data access synchronization signal 20 Acquired data byte number information 21 ... Used data byte number information 22 ... Prefetch enable signal 23,24,63,64 ... Executing instruction pointer (current IP) 25,26,61,62 ... Prefetch instruction pointer (Prefetch IP) 27 ... Current IP plug 28 ... Prefetch IP flag Reference Signs List 30 comparator 33 spatial information 34, 48 internal ROM 35, 49 external memory 36 latch 37, 53 delay circuit 38, 52 AND gate 39 data bus 40, 54 internal data bus access synchronization signal 41, 55: External data bus access synchronization signal 42: Latch enable signal 43: Latch output enable signal 50: Address generation unit 56: Queue latch inhibit signal 65: Prefetch IP switching unit 66: Current IP switching unit 67: Single / dual Queue switching signal 68 ... bit position 3 (bp) of prefetch IP
3) 69: bit position 3 (bp3) of current IP 70: external switching trigger signal

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 現在実行中のタスク用の命令プリフェッ
チキュー或いは次に実行するタスク用の命令プリフェッ
チキューとして使用される2系統の命令プリフェッチキ
ューと、コンテキストスイッチの際に現在実行中のタス
ク用の命令プリフェッチキューの役割と次に実行するタ
スク用の命令プリフェッチキューの役割とを切替える手
段と、現在実行中のタスク用の命令プリフェッチキュー
がアクセスするメモリユニットと次に実行するタスク用
の命令プリフェッチキューがアクセスするメモリユニッ
トとが一致しない場合には現在実行中のタスク用の命令
プリフェッチと次に実行するタスク用の命令プリフェッ
チとを並行して実行させる手段とを備えていることを特
徴とする命令プリフェッチ装置。
1. A two-system instruction prefetch queue used as an instruction prefetch queue for a currently executing task or an instruction prefetch queue for a task to be executed next, and an instruction prefetch queue for a currently executing task at the time of context switching. Means for switching between the role of the instruction prefetch queue and the role of the instruction prefetch queue for the next task to be executed, a memory unit accessed by the instruction prefetch queue for the currently executed task, and the instruction prefetch queue for the next task to be executed An instruction prefetch for a task currently being executed and an instruction prefetch for the next task to be executed in parallel when the memory unit to be accessed does not match Prefetch device.
【請求項2】 請求項1記載の命令プリフェッチ装置に
おいて、2種類のROMデータを前記2系統の命令プリ
フェッチキューに同時にアクセスさせることができるバ
スと、同時にアクセスした2種類のROMデータが同時
に前記2系統の命令プリフェッチキューに格納される場
合に一方のROMデータを一時待避用のメモリに一時格
納することにより前記同時にアクセスした2種類のRO
Mデータの競合を回避させる手段とを備えていることを
特徴とする命令プリフェッチ装置。
2. The instruction prefetch device according to claim 1, wherein a bus capable of simultaneously accessing two types of ROM data to said two types of instruction prefetch queues and said two types of ROM data accessed simultaneously are stored in said two lines. When stored in the instruction prefetch queue of one system, one ROM data is temporarily stored in a temporary save memory, so that the two types of ROs simultaneously accessed are stored.
Means for avoiding contention of M data.
【請求項3】 請求項1記載の命令プリフェッチ装置に
おいて、2種類のROMデータを前記2系統の命令プリ
フェッチキューに同時にアクセスさせることができるバ
スと、同時にアクセスした2種類のROMデータが同時
に前記2系統の命令プリフェッチキューに格納される場
合に内部メモリにアクセスした命令プリフェッチを一旦
無効とした後再度フェッチ動作させることにより前記同
時にアクセスした2種類のROMデータの競合を回避す
る手段とを備えていることを特徴とする命令プリフェッ
チ装置。
3. The instruction prefetch device according to claim 1, wherein a bus capable of simultaneously accessing two types of ROM data to said two types of instruction prefetch queues and said two types of ROM data accessed simultaneously are simultaneously stored in said two lines. Means for avoiding a conflict between the two types of simultaneously accessed ROM data by temporarily invalidating the instruction prefetch accessing the internal memory and performing the fetch operation again when the instruction prefetch is stored in the system instruction prefetch queue. An instruction prefetch device characterized by the above-mentioned.
【請求項4】 現在実行中のタスク用の命令プリフェッ
チキュー或いは次に実行するタスク用の命令プリフェッ
チキューとして使用される2系統の命令プリフェッチキ
ューと、前記2系統の命令プリフェッチキューを連結し
て1系統の命令プリフェッチキューとして使用するか或
いは各々独立した2系統の命令プリフェッチキューとし
て使用するかをフラグにより切替える手段とを備えてい
ることを特徴とする命令プリフェッチ装置。
4. An instruction prefetch queue of two systems used as an instruction prefetch queue for a currently executing task or an instruction prefetch queue of a task to be executed next, and the two systems of instruction prefetch queues are connected to each other. An instruction prefetch device comprising: means for switching, using a flag, whether the instruction prefetch queue is used as a system instruction prefetch queue or used as two independent system instruction prefetch queues.
JP3006405A 1991-01-23 1991-01-23 Instruction prefetch device Expired - Lifetime JP2580078B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3006405A JP2580078B2 (en) 1991-01-23 1991-01-23 Instruction prefetch device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3006405A JP2580078B2 (en) 1991-01-23 1991-01-23 Instruction prefetch device

Publications (2)

Publication Number Publication Date
JPH04279938A JPH04279938A (en) 1992-10-06
JP2580078B2 true JP2580078B2 (en) 1997-02-12

Family

ID=11637461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3006405A Expired - Lifetime JP2580078B2 (en) 1991-01-23 1991-01-23 Instruction prefetch device

Country Status (1)

Country Link
JP (1) JP2580078B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60250438A (en) * 1984-05-25 1985-12-11 Nec Corp Information processor
JPS6349937A (en) * 1986-08-20 1988-03-02 Fujitsu Ltd Instruction prefetch control device

Also Published As

Publication number Publication date
JPH04279938A (en) 1992-10-06

Similar Documents

Publication Publication Date Title
JP3431626B2 (en) Data processing device
US6895475B2 (en) Prefetch buffer method and apparatus
JPH0564825B2 (en)
JP2580078B2 (en) Instruction prefetch device
US7389405B2 (en) Digital signal processor architecture with optimized memory access for code discontinuity
US8234452B2 (en) Device and method for fetching instructions
JP2002535749A (en) Processor and method for executing instructions from multiple instruction sources
KR100197783B1 (en) Data processor with pipeline processing function
JPH11184799A (en) Method for transferring memory data and device therefor
US20070038435A1 (en) Emulation method, emulator, computer-attachable device, and emulator program
JP3206528B2 (en) Bus bridge circuit
JP2000347931A (en) Cache memory and method for controlling cache memory
JP2586690B2 (en) Instruction prefetch device
JP3039391B2 (en) Memory system
JP2001184259A (en) Arithmetic processor and data transferring method in the device
JPH02242337A (en) Instruction pre-fetch device
JP2806690B2 (en) Microprocessor
JP3669616B2 (en) Microcomputer and data processing system
JP2677706B2 (en) Memory access control circuit
JP2000047930A (en) Data processor
JPH02242338A (en) Instruction pre-fetch device
JPH05204826A (en) Data processor
JPS6221130B2 (en)
JP2000057047A (en) Microcomputer
JPH06202982A (en) Method and device for bus control and information processor