JPH11306029A - Device, method and medium for interruption - Google Patents

Device, method and medium for interruption

Info

Publication number
JPH11306029A
JPH11306029A JP10107516A JP10751698A JPH11306029A JP H11306029 A JPH11306029 A JP H11306029A JP 10107516 A JP10107516 A JP 10107516A JP 10751698 A JP10751698 A JP 10751698A JP H11306029 A JPH11306029 A JP H11306029A
Authority
JP
Japan
Prior art keywords
interrupt
processing
interrupt processing
processing program
main
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
JP10107516A
Other languages
Japanese (ja)
Inventor
Shigeru Azeyanagi
滋 畔柳
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP10107516A priority Critical patent/JPH11306029A/en
Publication of JPH11306029A publication Critical patent/JPH11306029A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an interruption processing device, its method and its medium which can improve a processing speed. SOLUTION: A history of interruption instructions by an input 32 for having interruption processing executed is stored in a storage part 28 of an interruption means 26. Based on the stored history, the interruption means 26 predicts an interruption occurrence timing of the interruption processing from the next time onward. Based on this predicted generation timing, the interruption means 26 has a transfer demand generation part 30 demand transfer of an interruption processing program to a cache memory 20 from a main storage means. Receiving this demand, a cache means 18 has the demanded interruption processing program transferred to the cache memory 20 and has a processing means 12 execute it. As the interruption processing program is made to transfer in the interruption predicted based on the history, it is possible to reduce a processing time of a header part spent for transfer as in the case of transferring it to the cache means 18 at the time of an occurrence of the interruption.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、割り込み処理装
置、方法及び媒体にかかり、特に、主処理の実行中に割
り込み処理する割り込み処理装置、方法及び媒体に関す
る。
The present invention relates to an interrupt processing apparatus, method, and medium, and more particularly, to an interrupt processing apparatus, method, and medium for performing interrupt processing during execution of main processing.

【0002】[0002]

【従来の技術】近年、車両には中央処理装置(以下、C
PUという)とメモリ装置を含んで構成した、電子制御
装置(以下、ECUという)が搭載されており、そのE
CUが車両に搭載された電子制御機器を制御している。
2. Description of the Related Art In recent years, central processing units (hereinafter referred to as C) have been installed in vehicles.
And an electronic control unit (hereinafter, referred to as an ECU) including a memory device.
The CU controls an electronic control device mounted on the vehicle.

【0003】周知のように、CPUの処理速度は、RA
M等を含む一般的なメモリ装置の処理速度に比べて高速
である。このため、CPUの処理速度がメモリ装置の処
理速度で制限される。そこで、最近では、キャッシュ装
置として知られている容量は小さいが処理速度の高速な
メモリをCPUとメモリ装置との間に設けて、処理速度
を高速化する技術が実用化されている。
[0003] As is well known, the processing speed of a CPU is RA
It is faster than the processing speed of general memory devices including M and the like. For this reason, the processing speed of the CPU is limited by the processing speed of the memory device. Therefore, recently, a technique of increasing the processing speed by providing a memory having a small capacity but having a high processing speed known as a cache device between the CPU and the memory device has been put to practical use.

【0004】キャッシュ装置では、データ転送時にCP
Uとメモリ装置との間に設けられたメモリで処理速度が
緩衝されるが、メモリ装置へのアクセスはCPUからの
命令によるものであり、結果的には処理時間が増大す
る。そこで、データ先読み方式で知られるように、次に
実行される命令を予測し、予測した命令や必要とするデ
ータを先読みしたり、一定アドレス先の命令やデータを
先読みしたりすることが知られている。
In a cache device, when data is transferred, the CP
Although the processing speed is buffered by the memory provided between the U and the memory device, access to the memory device is performed by an instruction from the CPU, and as a result, the processing time increases. Therefore, as is known in the data prefetching method, it is known to predict the next instruction to be executed, prefetch the predicted instruction or required data, or prefetch the instruction or data at a fixed address. ing.

【0005】ところが、先読みは分岐命令の発生や一定
アドレス先の固定的な先読みであるため、先読み確度が
低い。そこで、アクセス要求に対する次のアクセス予測
のアドレスを履歴として格納し、履歴を参照してアクセ
ス情報に対するアクセス予測のアドレスのデータを先読
みする先読み制御装置が知られている(特開平6−16
8119号公報参照)。
However, since the prefetching is a fixed prefetching of a branch instruction or a fixed address, the prefetching accuracy is low. Therefore, there is known a look-ahead control device that stores, as a history, the address of the next access prediction for an access request and refers to the history to pre-read the data at the address of the access prediction for the access information (Japanese Patent Laid-Open No. 6-16).
No. 8119).

【0006】[0006]

【発明が解決しようとする課題】しかしながら、CPU
による処理では、通常、割り込み処理が行われるが、割
り込み処理は予測できない。従って、先読み制御装置で
は、割り込み処理が発生すると、その割り込み処理にお
いてはCPUの処理速度とメモリ装置との処理速度のい
差がそのまま全体の処理速度に影響してしまう。
SUMMARY OF THE INVENTION However, CPU
In the process according to, an interrupt process is usually performed, but the interrupt process cannot be predicted. Therefore, in the prefetch control device, when an interrupt process occurs, in the interrupt process, the difference between the processing speed of the CPU and the processing speed of the memory device directly affects the overall processing speed.

【0007】本発明は、上記事実を考慮して、処理速度
を向上できる割り込み処理装置、方法及び媒体を得るこ
とが目的である。
SUMMARY OF THE INVENTION An object of the present invention is to provide an interrupt processing apparatus, method and medium capable of improving the processing speed in consideration of the above fact.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に請求項1に記載の発明の割り込み処理装置は、命令及
びデータからなる主処理を記述した主処理プログラム、
及び前記処理の実行中に割り込んで他処理をする命令及
びデータからなる割り込み処理を記述した割り込み処理
プログラムを記憶する主記憶手段と、命令及びデータに
基づいて主処理または割り込み処理を実行する処理手段
と、要求された割り込み処理プログラムを読み取りかつ
記憶すると共に、記憶した割り込み処理プログラムを処
理手段で実行させるキャッシュ手段と、前記主処理中に
発生する割り込み処理を実行させるための入力の履歴を
記憶しかつ記憶した履歴に基づいて割り込み処理の発生
タイミングを予測すると共に、予測した発生タイミング
に基づいて割り込み処理プログラムを読み取る処理実行
を要求する割込手段と、を備えている。
In order to achieve the above object, according to the present invention, there is provided an interrupt processing apparatus comprising: a main processing program describing a main processing comprising instructions and data;
Main storage means for storing an interrupt processing program describing an interrupt processing consisting of an instruction and data for interrupting and performing other processing during execution of the processing, and processing means for executing a main processing or an interrupt processing based on the instruction and data A cache means for reading and storing the requested interrupt processing program, executing the stored interrupt processing program in the processing means, and storing an input history for executing the interrupt processing occurring during the main processing. And interrupt means for predicting the timing of occurrence of interrupt processing based on the stored history and requesting execution of processing for reading an interrupt processing program based on the predicted occurrence timing.

【0009】請求項2に記載の発明は、請求項1に記載
の割り込み処理装置において前記キャッシュ手段は、前
記要求が予め定めた時間間隔以内であるときに、記憶し
た割り込み処理プログラムを常駐記憶させる常駐手段を
有することを特徴とする。
According to a second aspect of the present invention, in the interrupt processing apparatus according to the first aspect, the cache means causes the stored interrupt processing program to be resident when the request is within a predetermined time interval. It is characterized by having resident means.

【0010】請求項3に記載の発明は、命令及びデータ
からなる主処理を記述した主処理プログラム及び前記処
理の実行中に割り込んで他処理をする命令及びデータか
らなる割り込み処理を記述した割り込み処理プログラム
によりプログラムされたコンピュータによって主処理の
実行中に割り込み処理する割り込み処理方法であって、
前記主処理中に発生する割り込み処理を実行させるため
の入力の履歴を記憶しかつ記憶した履歴に基づいて割り
込み処理の発生タイミングを予測すると共に、予測した
発生タイミングに基づいて割り込み処理プログラムを読
み取る処理実行を要求する割込工程と、要求された割り
込み処理プログラムを読み取りかつ記憶すると共に、記
憶した割り込み処理プログラムを実行させるキャッシュ
工程と、を含むことを特徴とする。
According to a third aspect of the present invention, there is provided a main processing program in which a main processing including instructions and data is described, and an interrupt processing in which interrupt processing including instructions and data for interrupting and performing other processing during execution of the processing are described. An interrupt processing method for performing interrupt processing during execution of main processing by a computer programmed by a program,
A process of storing an input history for executing an interrupt process occurring during the main process, predicting an interrupt process occurrence timing based on the stored history, and reading an interrupt process program based on the predicted occurrence timing It is characterized by including an interruption step for requesting execution, and a cache step for reading and storing the requested interrupt processing program, and for executing the stored interrupt processing program.

【0011】請求項4に記載の発明は、コンピュータに
よって命令及びデータからなる主処理を記述した主処理
プログラムの実行中に割り込み処理させるための割り込
み処理プログラムを記録した記録媒体であって、前記割
り込み処理を実行させるための入力の履歴を記憶させか
つ記憶させた履歴に基づいて割り込み処理の発生タイミ
ングを予測させると共に、予測された発生タイミングに
基づいて割り込み処理プログラムを読み取らせる処理実
行を要求させ、要求された割り込み処理プログラムを読
み取りかつ記憶させると共に、記憶された割り込み処理
プログラムを実行させることを特徴とする。
According to a fourth aspect of the present invention, there is provided a recording medium recording an interruption processing program for causing an interruption processing during execution of a main processing program in which a main processing consisting of instructions and data is described by a computer, Storing an input history for executing the processing and predicting the occurrence timing of the interrupt processing based on the stored history, and requesting a processing execution to read an interrupt processing program based on the predicted occurrence timing; The requested interrupt processing program is read and stored, and the stored interrupt processing program is executed.

【0012】図1には、本発明の原理ブロック図を示し
た。図1に示すように、本発明の割り込み処理装置10
は、CPU等の処理手段12、RAM&ROM等の主記
憶手段14、からなるマイクロコンピュータで構成さ
れ、各々はコマンドやデータの授受が可能なようにバス
38によって接続されている。このバス38には、キャ
ッシュ手段18、及び割込手段26が接続されている。
なお、主記憶装置14には、主処理プログラム及び割り
込み処理プログラム16が記憶されている。キャッシュ
手段18は、プログラムの少なくとも一部を一時的に記
憶するためのキャッシュメモリ20及び主記憶手段14
からキャッシュメモリ20へ割り込み処理プログラムを
転送制御するキャッシュ制御部22を含んで構成されて
いる。また、割込手段26は割込発生履歴の記憶部28
及び転送要求発生部30を含んで構成されている。割り
込みは入力32からの入力によってなされるものとす
る。
FIG. 1 is a block diagram showing the principle of the present invention. As shown in FIG. 1, the interrupt processing apparatus 10 of the present invention
Is constituted by a microcomputer including a processing unit 12 such as a CPU and a main storage unit 14 such as a RAM & ROM, and each is connected by a bus 38 so that commands and data can be exchanged. The cache means 18 and the interrupt means 26 are connected to the bus 38.
Note that the main storage device 14 stores a main processing program and an interrupt processing program 16. The cache unit 18 includes a cache memory 20 for temporarily storing at least a part of the program and a main storage unit 14.
From the cache memory 20 to the cache memory 20. Further, the interrupt means 26 is provided with a storage unit 28 of the interrupt occurrence history.
And a transfer request generating unit 30. It is assumed that the interruption is made by the input from the input 32.

【0013】主処理プログラムによる主処理中には、割
り込み処理を実行させるための入力32による割込指示
により割り込み処理が実行されるが、この主処理中に発
生する割り込み処理を実行させるための入力32の履歴
は割込手段26の記憶部28に記憶される。記憶した履
歴に基づいて割込手段26は、割り込み処理の次回より
の割り込み発生タイミングを予測する。この予測した発
生タイミングに基づいて、割込手段26は、転送要求発
生部30によって割り込み処理プログラムを主記憶手段
から読み取る処理実行、すなわち転送を要求する。この
要求を受けて、キャッシュ手段18は、要求された割り
込み処理プログラムを読み取りかつ記憶する。すなわ
ち、主記憶手段14に記憶された割り込み処理プログラ
ム16をキャッシュメモリ20へ転送させる。これと共
に、記憶した割り込み処理プログラムを処理手段12で
実行させる。処理手段12は、命令及びデータに基づい
て割り込み処理を実行する。このように、記憶した履歴
に基づいて割り込み処理の次回よりの割り込み発生タイ
ミングを予測し、予測したタイミングで、割り込み処理
プログラムを主記憶手段からキャッシュ手段へ転送させ
て割り込み処理実行へ移行するので、割り込みが発生し
たや時点にキャッシュ手段へ転送する場合にように、転
送にかかるヘッダ部分の処理時間を削減できる。
During the main processing by the main processing program, the interrupt processing is executed by the interrupt instruction by the input 32 for executing the interrupt processing. The input for executing the interrupt processing generated during the main processing is performed. The history of 32 is stored in the storage unit 28 of the interrupt unit 26. Based on the stored history, the interrupt unit 26 predicts an interrupt generation timing from the next time of the interrupt processing. Based on the predicted occurrence timing, the interrupt unit 26 requests the transfer request generation unit 30 to execute the process of reading the interrupt processing program from the main storage unit, that is, transfer. In response to this request, the cache unit 18 reads and stores the requested interrupt processing program. That is, the interrupt processing program 16 stored in the main storage unit 14 is transferred to the cache memory 20. At the same time, the stored interrupt processing program is executed by the processing unit 12. The processing unit 12 executes an interrupt process based on the instruction and the data. As described above, the interrupt occurrence timing from the next time of the interrupt processing is predicted based on the stored history, and at the predicted timing, the interrupt processing program is transferred from the main storage means to the cache means, and the processing shifts to the execution of the interrupt processing. The processing time of the header portion required for the transfer can be reduced as in the case where the data is transferred to the cache unit at the time when the interrupt occurs.

【0014】主記憶手段14からキャッシュ手段18の
キャッシュメモリ20へ割り込み処理プログラムを転送
させる場合、同一の割り込み処理が短時間で行われると
き、その度に転送を行っていたのでは処理負荷が増加す
る。そこで、請求項2に記載したように、要求が予め定
めた時間間隔以内であるときに、記憶した割り込み処理
プログラムを常駐記憶させる常駐手段24を、前記キャ
ッシュ手段18のキャッシュ制御部22内に有させる。
このようにすることにより、同一の割り込み処理が短時
間で行われる場合であっても、その度に転送することな
く、常駐しているので、処理負荷を軽減することができ
る。
When the interrupt processing program is transferred from the main storage means 14 to the cache memory 20 of the cache means 18, when the same interrupt processing is performed in a short time, the processing load increases if the transfer is performed every time. I do. Therefore, a resident means 24 for resident storing the stored interrupt processing program when the request is within a predetermined time interval is provided in the cache control unit 22 of the cache means 18, as described in claim 2. Let it.
In this way, even when the same interrupt processing is performed in a short time, the processing is not transferred every time, but resides resident, so that the processing load can be reduced.

【0015】主処理の実行中に行われる割り込み処理
は、以下の工程による割り込み処理方法により実行可能
である。具体的には、請求項3に記載したように、命令
及びデータからなる主処理を記述した主処理プログラム
及び前記処理の実行中に割り込んで他処理をする命令及
びデータからなる割り込み処理を記述した割り込み処理
プログラムによりプログラムされたコンピュータによっ
て主処理の実行中に割り込み処理する割り込み処理方法
であって、前記主処理中に発生する割り込み処理を実行
させるための入力の履歴を記憶しかつ記憶した履歴に基
づいて割り込み処理の発生タイミングを予測すると共
に、予測した発生タイミングに基づいて割り込み処理プ
ログラムを読み取る処理実行を要求する割込工程と、要
求された割り込み処理プログラムを読み取りかつ記憶す
ると共に、記憶した割り込み処理プログラムを実行させ
るキャッシュ工程と、を含むことを特徴とする。
The interrupt processing performed during the execution of the main processing can be executed by an interrupt processing method according to the following steps. More specifically, as described in claim 3, a main processing program describing a main process consisting of instructions and data, and an interrupt process consisting of an instruction and data for interrupting and executing other processes during execution of the process are described. An interrupt processing method for performing interrupt processing during execution of main processing by a computer programmed by an interrupt processing program, wherein an input history for executing an interrupt processing occurring during the main processing is stored and stored in the stored history. An interrupt process for requesting execution of a process of reading an interrupt processing program based on the predicted occurrence timing, reading and storing the requested interrupt processing program, and storing the stored interrupt. And a cache step for executing the processing program. And wherein the door.

【0016】主処理プログラムにより実行される主処理
の実行中に割り込んで処理する割り込み処理は、請求項
4に記載した割り込み処理プログラムを記録した記録媒
体に格納可能である。具体的には、コンピュータによっ
て命令及びデータからなる主処理を記述した主処理プロ
グラムの実行中に割り込み処理させるための割り込み処
理プログラムを記録した記録媒体であって、前記割り込
み処理を実行させるための入力の履歴を記憶させかつ記
憶させた履歴に基づいて割り込み処理の発生タイミング
を予測させると共に、予測された発生タイミングに基づ
いて割り込み処理プログラムを読み取らせる処理実行を
要求させ、要求された割り込み処理プログラムを読み取
りかつ記憶させると共に、記憶された割り込み処理プロ
グラムを実行させる。
The interrupt processing for interrupting and executing during the execution of the main processing executed by the main processing program can be stored in a recording medium having the interrupt processing program recorded thereon. Specifically, a recording medium recording an interrupt processing program for performing an interrupt processing during execution of a main processing program in which a main processing including instructions and data is described by a computer, wherein an input for executing the interrupt processing is provided. Of the interrupt processing is predicted based on the stored history, and a request is made to request execution of a processing to read the interrupt processing program based on the predicted occurrence timing. Read and store, and execute the stored interrupt processing program.

【0017】すなわち、バス38には、記録媒体として
のフロッピーディスク36が挿抜可能なフロッピーデュ
スクユニット(FDU)34が接続可能である。このF
DU34を用いてフロッピーディスク36に対して読み
書き可能な構成とすることによって、フロッピーディス
ク36から処理プログラムが実行されるようにしてもよ
い。すなわち、処理プログラムを主記憶手段14に記憶
することなく、予めフロッピーディスク36に記録して
おき、FDU34を介してフロッピーディスク36に記
録された処理プログラムを実行してもよいし、処理プロ
グラムを主記憶手段14に格納(インストール)させて
もよい。また、ハードディスク装置等の大容量記憶装置
(図示省略)を接続し、フロッピーディスク36に記録
された処理プログラムを大容量記憶装置(図示省略)へ
格納(インストール)して実行するようにしてもよい。
また、記録媒体としては、CD−ROM等の光ディスク
や、MD,MO等の光磁気ディスクがあり、これらを用
いるときには、上記FDU24に代えてまたはさらにC
D−ROM装置、MD装置、MO装置等の何れかの装置
を用いればよい。
That is, a floppy disk unit (FDU) 34 into which a floppy disk 36 as a recording medium can be inserted and removed can be connected to the bus 38. This F
The processing program may be executed from the floppy disk 36 by making the DU 34 readable and writable to the floppy disk 36. That is, the processing program may be recorded on the floppy disk 36 in advance without storing the processing program in the main storage unit 14, and the processing program recorded on the floppy disk 36 may be executed via the FDU 34. It may be stored (installed) in the storage unit 14. Further, a large-capacity storage device (not shown) such as a hard disk device may be connected, and the processing program recorded on the floppy disk 36 may be stored (installed) in the large-capacity storage device (not shown) and executed. .
As a recording medium, there is an optical disk such as a CD-ROM and a magneto-optical disk such as an MD and an MO. When these are used, instead of the FDU 24 or further,
Any device such as a D-ROM device, an MD device, and an MO device may be used.

【0018】[0018]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態の一例を詳細に説明する。本実施の形態はエン
ジン制御ECU(電子制御装置)における処理に本発明
を適用したものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. In the present embodiment, the present invention is applied to processing in an engine control ECU (electronic control device).

【0019】図2に示すように、本実施の形態のエンジ
ン制御装置40は、エンジン制御ECU42を備えてい
る。エンジン制御ECU42はマイコン44と、波形成
形回路64とから構成されている。マイコン44は、C
PU46、変数等を一時的に記憶するRAM48、処理
ルーチンを格納したE2 PROM等のフラッシュメモリ
50、ルーチンの少なくとも一部を記憶するための高速
作動のキャッシュメモリ52、キャッシュメモリ52を
制御するキャッシュ制御部54、割込制御部56、入力
された信号から割り込み処理を実行するための入力信号
を生成して出力するインプットキャプチャ60、及びタ
イマ62を備えている。これらの各要素はデータやコマ
ンドが授受可能なようにバス58によって接続されてい
る。なお、インプットキャプチャ60には波形成形回路
64を介してエンジン回転センサ66が接続されてい
る。
As shown in FIG. 2, the engine control device 40 of the present embodiment includes an engine control ECU 42. The engine control ECU 42 includes a microcomputer 44 and a waveform shaping circuit 64. The microcomputer 44 uses C
PU 46, RAM 48 for temporarily storing variables and the like, flash memory 50 such as E 2 PROM for storing processing routines, high-speed operation cache memory 52 for storing at least a part of routines, and cache for controlling cache memory 52 The control unit includes a control unit 54, an interrupt control unit 56, an input capture 60 for generating and outputting an input signal for executing an interrupt process from an input signal, and a timer 62. These elements are connected by a bus 58 so that data and commands can be exchanged. Note that an engine rotation sensor 66 is connected to the input capture 60 via a waveform shaping circuit 64.

【0020】エンジン制御ECU42のマイコン44に
は、フロッピーディスク36が挿抜可能なフロッピーデ
ュスクユニット(FDU)34が接続可能であり、上記
説明したように、FDU34を用いてフロッピーディス
ク36に対するアクセスによって、フロッピーディスク
36から処理実行されるようにしてもよい。また、FD
U34及びフロッピーディスク36に限定されるもので
はなく、大容量磁気ディスク(例えばハードディス
ク)、CD−ROM等の光ディスクや、MD,MO等の
光磁気ディスクがあり、これらを用いるときには、上記
FDU24に代えてまたはさらにハードディスク装置、
CD−ROM装置、MD装置、MO装置等の何れかの装
置を用いればよい。
A floppy disk unit (FDU) 34 into which a floppy disk 36 can be inserted and withdrawn can be connected to the microcomputer 44 of the engine control ECU 42. As described above, by accessing the floppy disk 36 using the FDU 34, The processing may be executed from the floppy disk 36. Also, FD
The present invention is not limited to the U34 and the floppy disk 36, but includes a large-capacity magnetic disk (for example, a hard disk), an optical disk such as a CD-ROM, and a magneto-optical disk such as an MD or MO. Or even hard disk drive,
Any device such as a CD-ROM device, an MD device, and an MO device may be used.

【0021】図3に示すように、フラッシュメモリ48
は主記憶装置として機能し、エンジン制御ECU42の
主要な処理(主処理)を命令及びデータにより記述した
メインルーチン(主処理プログラム)、主処理中に割り
込んで他処理をする命令及びデータからなる割り込み処
理を記述した複数の割込ルーチン(割り込み処理プログ
ラム)が記憶されている。
As shown in FIG. 3, the flash memory 48
Functions as a main storage device, a main routine (main processing program) in which main processing (main processing) of the engine control ECU 42 is described by instructions and data, and an interrupt including instructions and data for interrupting the main processing and performing other processing. A plurality of interrupt routines (interrupt processing programs) describing processing are stored.

【0022】次に、本実施の形態の作用を説明する。エ
ンジン制御装置40に電源が投入されると、CPU46
はフラッシュメモリ50に格納された図4に示すメイン
ルーチンに従って、主処理を実行する。すなわち、電源
が遮断されるまで(ステップ102で肯定判断されるま
で)、ステップ100において主処理を実行する。
Next, the operation of the present embodiment will be described. When power is applied to the engine control device 40, the CPU 46
Executes the main processing according to the main routine shown in FIG. That is, the main processing is executed in step 100 until the power is turned off (until a positive determination is made in step 102).

【0023】この主処理の実行中には、エンジン回転セ
ンサ66からの信号により割り込み処理が実行される。
すなわち、エンジン回転センサ66からの信号は波形成
形回路64で成形され、インプットキャプチャ60で割
り込み処理を実行するための割込信号を生成して出力さ
れる。この割込信号は、図8の信号Intに相当する。
図8の例では、割込信号を時系列的に示しており、現在
の割込信号をIntn、次回の割込信号をIntn+1
前回の割込信号をIntn-1 、前前回の割込信号をIn
n-2 で示している。この割込信号が入力されると、図
5に示す割り込みルーチンに従って、割り込み処理を実
行する。すなわち、ステップ104で割り込み処理す
る。なお、このステップ104では、複数の割り込み処
理のなかから該当する割り込み処理を指定することを含
んでいる。本実施の形態では、エンジン回転センサ66
の出力による割り込み処理を指定するものとする。
During execution of the main processing, an interrupt processing is executed by a signal from the engine rotation sensor 66.
That is, the signal from the engine rotation sensor 66 is shaped by the waveform shaping circuit 64, and the input capture 60 generates and outputs an interrupt signal for executing an interrupt process. This interrupt signal corresponds to the signal Int in FIG.
In the example of FIG. 8, the interrupt signals are shown in chronological order, the current interrupt signal is Int n , the next interrupt signal is Int n + 1 ,
The previous interrupt signal is Int n-1 , the previous previous interrupt signal is In
Indicated by t n-2 . When this interrupt signal is input, interrupt processing is executed according to the interrupt routine shown in FIG. That is, an interrupt process is performed in step 104. It should be noted that this step 104 includes designating a corresponding interrupt process from a plurality of interrupt processes. In the present embodiment, the engine rotation sensor 66
Interrupt processing based on the output of

【0024】図6には、割込制御部56において実行さ
れる処理を示した。割り込みが指示されると、図6のス
テップ110で肯定判断され、ステップ112へ進み、
割込発生履歴を記憶する。割込発生履歴は、割り込みが
発生した時刻であり、タイマ62の現在時刻を読み取
り、蓄積することによって、割込発生履歴を記憶するも
のとする。このため、割込制御部56は、割込発生履歴
を記憶するための図1の記憶部28に相当する記憶領域
を有している。次のステップ114では、周期Tを算出
する。この周期Tは前回の割り込みから今回の割り込み
までの時間であり、これを周期Tn とする。すなわち、
記憶された割込発生履歴を参照し周期Tnを算出する。
また、他の周期は、前回の周期Tn-1 、次回の周期T
n+1 、・・・、と記述し、求めるものとする。なお、前
回算出した周期を記憶するようにしてもよい。
FIG. 6 shows the processing executed in the interrupt control unit 56. When an interrupt is instructed, an affirmative determination is made in step 110 of FIG.
An interrupt occurrence history is stored. The interrupt occurrence history is the time at which the interrupt occurred, and the current time of the timer 62 is read and accumulated to store the interrupt occurrence history. For this reason, the interrupt control unit 56 has a storage area corresponding to the storage unit 28 in FIG. 1 for storing an interrupt occurrence history. In the next step 114, the cycle T is calculated. The period T is a time until the current interrupt from the previous interrupt, this is the period T n. That is,
The cycle Tn is calculated with reference to the stored interrupt occurrence history.
The other periods are the previous period T n-1 and the next period T
n + 1 ,... to be obtained. Note that the previously calculated cycle may be stored.

【0025】次のステップ116では、フラッシュメモ
リ50からキャッシュメモリ52へ割り込み処理ルーチ
ンの転送を要求するための転送要求の発信時間Txが割
込制御部56内の図示しないレジスタ(RAM48でも
よい)にセットされているか否かを判断する。リセット
されているときはステップ116で否定され、次のステ
ップ118において、周期Tn が周期性を有しているか
否かを判断する。この判断は、現在の周期Tn と、少な
くとも前回の周期Tn-1 を比較して予め定めた時間差以
内のときに周期性有と判断する。ステップ118で肯定
されると、次のステップ120において、転送要求の発
信時間Tx(=Tn−α)を算出して、次のステップ1
22において発信時間Txをセットする。
In the next step 116, the transmission time Tx of the transfer request for requesting the transfer of the interrupt processing routine from the flash memory 50 to the cache memory 52 is stored in a register (not shown) in the interrupt control unit 56 (may be the RAM 48). Determine whether it is set. If it has been reset, the result in step 116 is negative, and in the next step 118, it is determined whether or not the cycle Tn has periodicity. This determination is made the current period T n, the periodicity Yes when within time difference predetermined by comparing the period T n-1 of at least the last. If the determination in step 118 is affirmative, in the next step 120, the transmission time Tx (= Tn-α) of the transfer request is calculated, and in the next step 1
At 22, the transmission time Tx is set.

【0026】転送要求の発信時間Txは、次の割り込み
指示以前に、フラッシュメモリ50からキャッシュメモ
リ52への割り込み処理ルーチンを転送させるための転
送開始時間であり、周期Tnから割り込み処理ルーチン
の転送時間より少なくとも短くされている。この時間α
は予め実験や計算によって求めておき、周期Tn から時
間αを減算することによって、転送要求の発信時間Tx
を算出する。なお、転送に要する時間を本ルーチン内で
計測して計測時間より大きな時間を時間αに設定しても
よい。
The transmission time Tx of the transfer request is a transfer start time for transferring the interrupt processing routine from the flash memory 50 to the cache memory 52 before the next interrupt instruction. Has been at least shorter. This time α
The advance obtained in advance by experiment or calculation, by subtracting the time α from the cycle T n, outgoing time transfer request Tx
Is calculated. The time required for the transfer may be measured in this routine, and a time longer than the measured time may be set as the time α.

【0027】次のステップ124では、キャッシュ制御
部54に対して転送要求を出力し、次のステップ138
においてカウンタCをリセットし、転送要求を出力する
ための時間計測を開始する。すなわち、カウンタCはタ
イマ62と連動する時間計測カウンタである。
In the next step 124, a transfer request is output to the cache control unit 54, and the next step 138
Resets the counter C and starts time measurement for outputting a transfer request. That is, the counter C is a time measurement counter that works with the timer 62.

【0028】ステップ124は図1の転送要求発生部3
0に相当する。この転送要求の出力によって、後述する
ようにキャッシュ制御部54はフラッシュメモリ50か
らキャッシュメモリ52へ割り込み処理ルーチンを転送
する。
Step 124 is the transfer request generation unit 3 in FIG.
It corresponds to 0. In response to the output of the transfer request, the cache control unit 54 transfers an interrupt processing routine from the flash memory 50 to the cache memory 52 as described later.

【0029】発信時間Txがセットされており、ステッ
プ116で肯定された場合には、ステップ126へ進
み、周期性があるか否かを判断し、周期性がある時は肯
定されステップ138へ進み、周期性がないときは否定
されステップ128へ進む。ステップ128では発信時
間Txをリセットし、次のステップ132でキャッシュ
制御部54に対して転送要求を出力する。
If the transmission time Tx has been set and the result in step 116 is affirmative, the routine proceeds to step 126, where it is determined whether or not there is periodicity. If there is no periodicity, the determination is negative and the routine proceeds to step 128. In step 128, the transmission time Tx is reset, and in the next step 132, a transfer request is output to the cache control unit 54.

【0030】一方、割り込みが指示されていないとき
は、図6のステップ110で否定判断され、ステップ1
34へ進み、カウンタCの時間が転送要求の発信時間T
xと一致するか否かを判断する。一致しないときはステ
ップ134で否定され、ステップ138へそのまま進
む。一方、C=Txのときはステップ134で肯定さ
れ、次のステップ136においてキャッシュ制御部54
に対して転送要求を出力する。
On the other hand, when an interrupt is not instructed, a negative determination is made in step 110 of FIG.
34, the counter C indicates the transmission request transmission time T
It is determined whether or not it matches x. If they do not match, the result in step 134 is NO, and the routine proceeds to step 138. On the other hand, when C = Tx, the result in step 134 is affirmative, and in the next step 136, the cache control unit 54
Outputs a transfer request to.

【0031】このように、周期性がある割り込みの場合
には、割り込み処理が指示されることを予測して、割り
込み処理が指示される以前にキャッシュ制御部54に対
して転送要求を行い、割り込み処理が指示される以前に
割り込み処理ルーチンの転送が完了すべく、実行してい
る。従って、割り込み処理が指示されたときには、キャ
ッシュメモリ52に割り込み処理ルーチンが転送されて
いるので、処理をすぐに開始することができ、転送によ
るヘッダ部を有させる必要がない。
As described above, in the case of an interrupt having periodicity, it is predicted that an interrupt process will be instructed, and a transfer request is issued to the cache control unit 54 before the interrupt process is instructed. The processing is performed so that the transfer of the interrupt processing routine is completed before the processing is instructed. Therefore, when the interrupt processing is instructed, the interrupt processing routine has been transferred to the cache memory 52, so that the processing can be started immediately, and it is not necessary to provide a header part by the transfer.

【0032】キャッシュ制御部54では、図7の処理ル
ーチンが実行される。まず、ステップ140において、
転送要求がなされたか否かを判断し、転送要求無のとき
はステップ140で否定され、本ルーチンを終了する。
一方、転送要求がなされたときには、ステップ140で
肯定され、次のステップ142において、キャッシュメ
モリ52のリフレッシュが禁止された状態か否かを判断
する。キャッシュメモリ52の内容はリフレッシュによ
りクリアすることが可能であるが、このリフレッシュに
よるキャッシュメモリ52の内容のクリアを禁止された
状態を、リフレッシュが禁止された状態という。なお、
キャッシュメモリ52の内容のクリアを禁止された状態
は、メモリ内の内容がそのまま保存されていることにな
るので、プログラムを常駐させることに相当する。
The cache control unit 54 executes the processing routine shown in FIG. First, in step 140,
It is determined whether or not a transfer request has been made. If there is no transfer request, the determination in step 140 is negative, and this routine ends.
On the other hand, when a transfer request is made, the result in step 140 is affirmative, and in the next step 142, it is determined whether or not the refresh of the cache memory 52 is prohibited. Although the contents of the cache memory 52 can be cleared by refreshing, a state in which clearing of the contents of the cache memory 52 by refreshing is prohibited is referred to as a state in which refreshing is prohibited. In addition,
The state in which the clearing of the contents of the cache memory 52 is prohibited is equivalent to making the program resident because the contents in the memory are stored as it is.

【0033】リフレッシュが禁止された状態であるとき
は、ステップ142で肯定され、そのままステップ14
6へ進む。一方、リフレッシュが禁止されていない状態
であるときは、ステップ142で否定され、次のステッ
プ144へ進み、フラッシュメモリ50から割り込み処
理プログラムを読み取ってキャッシュメモリ52へ転送
する。
When the refresh is prohibited, the result in step 142 is affirmative, and the process proceeds to step 14
Proceed to 6. On the other hand, if the refresh is not prohibited, the result in step 142 is negative, and the process proceeds to the next step 144, where the interrupt processing program is read from the flash memory 50 and transferred to the cache memory 52.

【0034】次のステップ146では、Tn−α<βか
否かを判断する。このステップ146の判断は、短時間
内に転送を繰り返す処理を抑制するか否かを判断するた
めである。すなわち、周期が短く、その短い周期毎に同
一の割り込み処理ルーチンを転送することは無駄であ
る。このため、転送要求の発信時間Txが予め定めた時
間β未満のときには転送することなく、キャッシュメモ
リ内に割り込み処理ルーチンを常駐させれば、転送時間
を削減することができ、転送負荷を軽減することができ
る。
In the next step 146, it is determined whether or not Tn-α <β. The determination in step 146 is for determining whether to suppress the process of repeating the transfer within a short time. That is, the cycle is short, and it is useless to transfer the same interrupt processing routine every short cycle. For this reason, if the transmission time Tx of the transfer request is shorter than the predetermined time β, the transfer time can be reduced and the transfer load can be reduced by making the interrupt processing routine resident in the cache memory without performing the transfer. be able to.

【0035】従って、Tn−α<βであるときは、ステ
ップ146で肯定され、キャッシュメモリ内に割り込み
処理ルーチンを常駐させるために、ステップ148へ進
み、キャッシュメモリ52をリフレッシュ禁止の状態に
設定する。一方、Tn−α≧βであるときは、ステップ
146で否定され、キャッシュメモリ内に割り込み処理
ルーチンを常駐させることが不要であるために、ステッ
プ150へ進み、キャッシュメモリ52のリフレッシュ
禁止の状態を解除する。
Therefore, if Tn-α <β, the result in step 146 is affirmative, and the process proceeds to step 148 to make the interrupt processing routine resident in the cache memory, where the cache memory 52 is set to the state in which refresh is prohibited. . On the other hand, if Tn-α ≧ β, the determination in step 146 is negative, and it is unnecessary to make the interrupt processing routine resident in the cache memory. To release.

【0036】このように、転送要求の発信時間Txが短
時間であるときには割り込み処理ルーチンを転送するこ
となく、キャッシュメモリ内に常駐させることができ、
転送時間を削減することができ、転送負荷を軽減するこ
とができる。
As described above, when the transmission time Tx of the transfer request is short, the transfer request can be resident in the cache memory without transferring the interrupt processing routine.
The transfer time can be reduced, and the transfer load can be reduced.

【0037】図8は、フラッシュメモリ50からキャッ
シュメモリ52への割り込み処理ルーチンの転送をブロ
ック70(枡目線部)で示し、転送された割り込み処理
ルーチンに従ったCPU46の割り込み処理をブロック
72(斜線部)で示したものである。
FIG. 8 shows the transfer of the interrupt processing routine from the flash memory 50 to the cache memory 52 by a block 70 (meshed line), and the interrupt processing of the CPU 46 in accordance with the transferred interrupt processing routine is shown by a block 72 (shaded line). Part).

【0038】図8に示す前前回の割込信号Intn-2
割り込み処理を初回とすると、以前に割り込みがないの
で、キャッシュメモリ52には割り込み処理ルーチンが
転送されていない。従って、前前回の割込信号Int
n-2 による割り込み発生時点でフラッシュメモリ50か
らキャッシュメモリ52へ割り込み処理ルーチンを転送
した後に、転送された割り込み処理ルーチンに従って、
CPU46は割り込み処理をする。また、前回の割込信
号Intn-1 の割り込み処理では、割り込み処理に周期
性がないため、前前回と同様に処理する。
If the interrupt processing of the previous and previous interrupt signal Int n-2 shown in FIG. 8 is the first time, there is no interrupt before, so the interrupt processing routine is not transferred to the cache memory 52. Therefore, the previous and previous interrupt signals Int
After the interrupt processing routine is transferred from the flash memory 50 to the cache memory 52 at the time of occurrence of the interrupt due to n-2, according to the transferred interrupt processing routine,
The CPU 46 performs an interrupt process. Further, in the previous interrupt processing of the interrupt signal Int n−1 , since the interrupt processing has no periodicity, the processing is performed in the same manner as in the previous interrupt processing.

【0039】図8に示す現在の割込信号Intn の割り
込み処理では、以前の割り込みによる周期Tn-1 と現在
の周期Tn は周期性があるので、キャッシュメモリ52
には割り込み処理ルーチンを転送するが、転送要求の発
信時間Tx(=Tn −α)をセットする。これによっ
て、次回の割込信号Intn+1 の割り込み指示がなされ
るときには、割り込み処理ルーチンの転送は完了してい
る。従って、次回の割込信号Intn+1 による割り込み
では、転送時間がなく、割込信号Intn+1 の直後に割
り込み処理を実行できる。
In the interrupt processing of the current interrupt signal Int n shown in FIG. 8, since the cycle T n-1 by the previous interrupt and the current cycle T n have periodicity, the cache memory 52
, An interrupt processing routine is transferred, and the transmission request transmission time Tx (= T n -α) is set. Thus, when the next interrupt instruction of the interrupt signal Int n + 1 is issued, the transfer of the interrupt processing routine is completed. Therefore, in the next interrupt by the interrupt signal Int n + 1 , there is no transfer time, and the interrupt process can be executed immediately after the interrupt signal Int n + 1 .

【0040】図9には、周期的な割り込みがなされる場
合について、従来の割り込み処理装置と本実施の形態の
割り込み処理装置との比較結果をイメージで示した。
FIG. 9 shows, as an image, a comparison result between the conventional interrupt processing device and the interrupt processing device of the present embodiment when a periodic interrupt is made.

【0041】エンジン回転センサ66からの信号(図9
では矩形波で示した)によりインプットキャプチャ60
から出力される割込信号Int(時間t1,t2,t
3,t4)により、従来ではフラッシュメモリ50から
キャッシュメモリ52へ割り込み処理ルーチンを転送し
(ブロック70)、キャッシュメモリ52に記憶した割
り込み処理ルーチンを実行する(ブロック72)。この
ため、転送時間がヘッダ部として時間遅れを誘発する。
一方、本実施の形態では、割込発生履歴から周期的な割
り込みを予測し、転送要求の発信時間Txを周期Tより
短い時間で出力する。このため、割込信号Intの時点
で、フラッシュメモリ50からキャッシュメモリ52へ
の割り込み処理ルーチンの転送は完了している。これに
よって、本実施の形態では、割込信号Intの時点で、
キャッシュメモリ52に記憶した割り込み処理ルーチン
を直ちに実行(ブロック72)でき、時間遅れを生じさ
せることがない。
A signal from the engine rotation sensor 66 (FIG. 9)
Input capture 60
Signal Int (time t1, t2, t
According to (3, t4), the interrupt processing routine is conventionally transferred from the flash memory 50 to the cache memory 52 (block 70), and the interrupt processing routine stored in the cache memory 52 is executed (block 72). For this reason, the transfer time induces a time delay as a header portion.
On the other hand, in the present embodiment, a periodic interrupt is predicted from the interrupt occurrence history, and the transmission time Tx of the transfer request is output in a time shorter than the cycle T. Therefore, at the time of the interrupt signal Int, the transfer of the interrupt processing routine from the flash memory 50 to the cache memory 52 has been completed. Thereby, in the present embodiment, at the time of the interrupt signal Int,
The interrupt processing routine stored in the cache memory 52 can be immediately executed (block 72), and no time delay occurs.

【0042】また、転送要求の発信時間Txが短いとき
には、キャッシュメモリ52がリフレッシュ禁止の状態
に設定されるので、フラッシュメモリ50からキャッシ
ュメモリ52への割り込み処理ルーチンの転送を省略で
きブロック70(枡目線部)が不要となる。このように
すれば、さらに処理負荷を軽減できる。
When the transmission time Tx of the transfer request is short, the cache memory 52 is set in the refresh-inhibited state, so that the transfer of the interrupt processing routine from the flash memory 50 to the cache memory 52 can be omitted. (Gaze line part) becomes unnecessary. This can further reduce the processing load.

【0043】[0043]

【発明の効果】以上説明したように請求項1に記載した
発明によれば、記憶した履歴に基づいて割り込み処理の
次回よりの割り込み発生タイミングを予測し、予測した
タイミングで、割り込み処理プログラムを主記憶手段か
らキャッシュ手段へ転送させて割り込み処理実行へ移行
するので、割り込みが発生したや時点にキャッシュ手段
へ転送する場合にように、転送にかかるヘッダ部分の処
理時間を削減できる、という効果がある。
As described above, according to the first aspect of the present invention, the interrupt occurrence timing from the next interrupt processing is predicted based on the stored history, and the interrupt processing program is mainly executed at the predicted timing. Since the transfer is performed from the storage unit to the cache unit and the process shifts to the execution of the interrupt processing, the processing time of the header portion required for the transfer can be reduced as in the case where the transfer is performed to the cache unit when an interrupt occurs. .

【0044】請求項2に記載した発明によれば、常駐手
段によって、キャッシュ手段に、要求が予め定めた時間
間隔以内であるときに、記憶した割り込み処理プログラ
ムを常駐記憶させることができるので、同一の割り込み
処理が短時間で行われる場合であっても、その度に転送
することなく、常駐しているので、処理負荷を軽減する
ことができる、という効果がある。
According to the second aspect of the present invention, when the request is within a predetermined time interval, the stored interrupt processing program can be resident and stored in the cache means by the resident means. Even if the interrupt processing is performed in a short period of time, there is an effect that the processing load can be reduced because it is resident without being transferred each time.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本実施の形態のエンジン制御装置の概略構成を
示すブロック図である。
FIG. 2 is a block diagram illustrating a schematic configuration of an engine control device according to the present embodiment.

【図3】フラッシュメモリの内部を説明するための説明
図である。
FIG. 3 is an explanatory diagram for explaining the inside of a flash memory;

【図4】主処理の流れを示すフローチャートである。FIG. 4 is a flowchart illustrating a flow of a main process.

【図5】割込処理の流れを示すフローチャートである。FIG. 5 is a flowchart illustrating a flow of an interrupt process.

【図6】割込制御部の処理の流れを示すフローチャート
である。
FIG. 6 is a flowchart illustrating a flow of processing of an interrupt control unit.

【図7】キャッシュ制御部の処理の流れを示すフローチ
ャートである。
FIG. 7 is a flowchart illustrating a flow of processing of a cache control unit.

【図8】本実施の形態の割り込み処理装置における割り
込み処理ルーチンの転送及び処理を時系列的に示したイ
メージ図である。
FIG. 8 is an image diagram showing, in chronological order, transfer and processing of an interrupt processing routine in the interrupt processing apparatus of the present embodiment.

【図9】周期的な割り込みがなされる場合について、従
来と本実施の形態における比較結果を示したイメージ図
である。
FIG. 9 is an image diagram showing a comparison result between the related art and the present embodiment when a periodic interruption is performed.

【符号の説明】 10 割り込み処理装置 12 処理手段 14 主記憶手段 18 キャッシュ手段 26 割込手段[Description of Signs] 10 interrupt processing device 12 processing means 14 main storage means 18 cache means 26 interrupt means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 命令及びデータからなる主処理を記述し
た主処理プログラム、及び前記処理の実行中に割り込ん
で他処理をする命令及びデータからなる割り込み処理を
記述した割り込み処理プログラムを記憶する主記憶手段
と、 命令及びデータに基づいて主処理または割り込み処理を
実行する処理手段と、 要求された割り込み処理プログラムを読み取りかつ記憶
すると共に、記憶した割り込み処理プログラムを処理手
段で実行させるキャッシュ手段と、 前記主処理中に発生する割り込み処理を実行させるため
の入力の履歴を記憶しかつ記憶した履歴に基づいて割り
込み処理の発生タイミングを予測すると共に、予測した
発生タイミングに基づいて割り込み処理プログラムを読
み取る処理実行を要求する割込手段と、 を備えた割り込み処理装置。
1. A main memory for storing a main processing program describing a main processing composed of instructions and data, and an interrupt processing program describing an interrupt processing composed of instructions and data for interrupting and performing other processing during execution of the processing. Means for executing main processing or interrupt processing based on instructions and data; cache means for reading and storing a requested interrupt processing program, and causing the processing means to execute the stored interrupt processing program; A process of storing an input history for executing an interrupt process occurring during the main process, predicting an interrupt process occurrence timing based on the stored history, and reading an interrupt process program based on the predicted occurrence timing. Interrupt processing means for requesting .
【請求項2】 前記キャッシュ手段は、前記要求が予め
定めた時間間隔以内であるときに、記憶した割り込み処
理プログラムを常駐記憶させる常駐手段を有することを
特徴とする請求項1に記載の割り込み処理装置。
2. The interrupt processing according to claim 1, wherein said cache means has a resident means for resident storing said stored interrupt processing program when said request is within a predetermined time interval. apparatus.
【請求項3】 命令及びデータからなる主処理を記述し
た主処理プログラム及び前記処理の実行中に割り込んで
他処理をする命令及びデータからなる割り込み処理を記
述した割り込み処理プログラムによりプログラムされた
コンピュータによって主処理の実行中に割り込み処理す
る割り込み処理方法であって、 前記主処理中に発生する割り込み処理を実行させるため
の入力の履歴を記憶しかつ記憶した履歴に基づいて割り
込み処理の発生タイミングを予測すると共に、予測した
発生タイミングに基づいて割り込み処理プログラムを読
み取る処理実行を要求する割込工程と、 要求された割り込み処理プログラムを読み取りかつ記憶
すると共に、記憶した割り込み処理プログラムを実行さ
せるキャッシュ工程と、 を含むことを特徴とする割り込み処理方法。
3. A computer programmed with a main processing program describing a main processing consisting of instructions and data, and an interrupt processing program describing an interrupt processing consisting of instructions and data for interrupting and performing other processing during execution of the processing. An interrupt processing method for performing an interrupt process during execution of a main process, comprising storing an input history for executing an interrupt process occurring during the main process, and predicting an occurrence timing of the interrupt process based on the stored history. And an interrupt step of requesting execution of a process of reading an interrupt processing program based on the predicted occurrence timing, a cache step of reading and storing the requested interrupt processing program, and executing the stored interrupt processing program, Interrupt characterized by including Processing method.
【請求項4】 コンピュータによって命令及びデータか
らなる主処理を記述した主処理プログラムの実行中に割
り込み処理させるための割り込み処理プログラムを記録
した記録媒体であって、 前記割り込み処理を実行させるための入力の履歴を記憶
させかつ記憶させた履歴に基づいて割り込み処理の発生
タイミングを予測させると共に、予測された発生タイミ
ングに基づいて割り込み処理プログラムを読み取らせる
処理実行を要求させ、 要求された割り込み処理プログラムを読み取りかつ記憶
させると共に、記憶された割り込み処理プログラムを実
行させる、ことを特徴とする割り込み処理プログラムを
記録した記録媒体。
4. A recording medium recording an interrupt processing program for causing an interrupt processing during execution of a main processing program in which a main processing consisting of instructions and data is described by a computer, wherein an input for executing the interrupt processing is provided. Of the interrupt processing is predicted based on the stored history, and a request is made to request execution of a processing to read the interrupt processing program based on the predicted occurrence timing. A recording medium on which an interrupt processing program is read and stored, and the stored interrupt processing program is executed.
JP10107516A 1998-04-17 1998-04-17 Device, method and medium for interruption Pending JPH11306029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10107516A JPH11306029A (en) 1998-04-17 1998-04-17 Device, method and medium for interruption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10107516A JPH11306029A (en) 1998-04-17 1998-04-17 Device, method and medium for interruption

Publications (1)

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

Family

ID=14461190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10107516A Pending JPH11306029A (en) 1998-04-17 1998-04-17 Device, method and medium for interruption

Country Status (1)

Country Link
JP (1) JPH11306029A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007328441A (en) * 2006-06-06 2007-12-20 Fujitsu Ltd Process scheduling device and process scheduling program
US8122192B2 (en) 2005-04-28 2012-02-21 Renesas Electronics Corporation Data processing apparatus and data processing method
JPWO2013099022A1 (en) * 2011-12-28 2015-04-30 富士通株式会社 Data processing apparatus, transmission apparatus, scheduling method, transmission control method, scheduling program, and transmission control program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8122192B2 (en) 2005-04-28 2012-02-21 Renesas Electronics Corporation Data processing apparatus and data processing method
US8312216B2 (en) 2005-04-28 2012-11-13 Renesas Electronics Corporation Data processing apparatus and data processing method
JP2007328441A (en) * 2006-06-06 2007-12-20 Fujitsu Ltd Process scheduling device and process scheduling program
JPWO2013099022A1 (en) * 2011-12-28 2015-04-30 富士通株式会社 Data processing apparatus, transmission apparatus, scheduling method, transmission control method, scheduling program, and transmission control program

Similar Documents

Publication Publication Date Title
KR100610730B1 (en) Method and apparatus for memory access scheduling to reduce memory access latency
US6085261A (en) Method and apparatus for burst protocol in a data processing system
JP3922487B2 (en) Memory control apparatus and method
JPH11306029A (en) Device, method and medium for interruption
JP2006215621A (en) Dma controller
US6859849B2 (en) Method and architecture capable of adaptively accessing data and instructions
JP2694799B2 (en) Information processing device
JP2822903B2 (en) Data storage device
JP2760747B2 (en) I / O instruction issuing method
CN101571841A (en) Controller, hard disk drive and control method
JP3145765B2 (en) Information processing device
JPH103785A (en) Refresh method of memory and memory controller for it
JP2747258B2 (en) Write buffer busy control method
JP2006331008A (en) Memory interface
JP3114791B2 (en) Data storage device
JPH09198305A (en) Memory controller
JPH0827718B2 (en) Information processing device
JP2798107B2 (en) Data transfer method
JPH0479022B2 (en)
CN114721974A (en) Data prefetching method and device
JPS58205258A (en) Data processor
JPH08328751A (en) Look-ahead cache control system
JPH0594407A (en) Bus control system
JP2003316723A (en) Bus bridge device, and bus cycle control method and program
JPH07253962A (en) Semiconductor device