JP2007219837A - Interrupt control method, arithmetic unit, and image processor - Google Patents

Interrupt control method, arithmetic unit, and image processor Download PDF

Info

Publication number
JP2007219837A
JP2007219837A JP2006039664A JP2006039664A JP2007219837A JP 2007219837 A JP2007219837 A JP 2007219837A JP 2006039664 A JP2006039664 A JP 2006039664A JP 2006039664 A JP2006039664 A JP 2006039664A JP 2007219837 A JP2007219837 A JP 2007219837A
Authority
JP
Japan
Prior art keywords
interrupt
identification information
register
information
processing
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
JP2006039664A
Other languages
Japanese (ja)
Inventor
Mamoru Kani
守 可児
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita 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 Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2006039664A priority Critical patent/JP2007219837A/en
Publication of JP2007219837A publication Critical patent/JP2007219837A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an interrupt control method and arithmetic unit for recognizing an interrupt processing request which occurs during another interrupt processing and executing the former interrupt request. <P>SOLUTION: The interrupt control method for the arithmetic unit X2 is provided with: an interrupt identification information write process 1-2 for writing interrupt identification information for an ASIC 110 to identify each of interrupt information successively written to a factor register 113; and interrupt request signal stop processes 1-3 and 1-4 for stopping outputs of the interrupt request signal on the basis of the interrupt identification information and information written by a CPU 120 to a clear register 114. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は,割り込み制御方法とそれを実行する演算装置と画像処理装置に関し,特に,ある割り込み処理実行中にそれとは別の割り込み処理要求が発生しても上記別の割り込み処理要求を認識可能な割り込み制御方法と装置に関するものである。   The present invention relates to an interrupt control method, an arithmetic unit that executes the interrupt control method, and an image processing apparatus, and in particular, can recognize another interrupt processing request even if another interrupt processing request occurs during execution of a certain interrupt processing. The present invention relates to an interrupt control method and apparatus.

従来の一般的な割り込み制御方法について説明する。
まず,従来の一般的な割り込み制御方法がなされている演算装置の概略を説明する。
図1に示すように,従来の一般的な演算装置X1は,半導体集積回路の一例であるASIC(Application Specific Integrated Circuit)10と,演算手段の一例でありプログラムを実行するCPU(Central Processing Unit)20と,上記CPU20により実行されるプログラムなどを記憶するメモリ30とを備えて構成されている。上記演算装置X1には,スキャナなどの周辺装置が接続されている。
上記演算装置X1が行う処理の概略は次の通りである。
(1)ASIC10は周辺装置からの割り込み処理の要求があるとCPU20に割り込み処理を要求。
(2)CPU20はASIC10からの割り込み要求に基づいて割り込み処理を実行。
(3)CPU20は割り込み処理が終了すると,ASIC10に割り込み処理要求を停止させる処理を実行。
上記演算装置X1の構成詳細は次の通りである。
上記ASIC10は,上記(1)のCPU20に割り込み要求信号を出力する割り込み要求出力手段12と,割り込み要因と処理内容などの割り込みに関する情報である割り込み情報を記憶する記憶素子である要因レジスタ13と,上記(3)の割り込み要求信号停止のためのフラグを記憶する記憶素子であるクリアレジスタ14と,これらを統括的に制御する制御部11とを備えて構成されている。
上記クリアレジスタ14に格納されている割り込み要求信号停止のためのフラグは,初期値は0である。
上記メモリ30には,例えば,上記周辺装置からデータを読み取るプログラムなど,各周辺装置に割り込み処理を実行するためのプログラムが記憶されている。
A conventional general interrupt control method will be described.
First, an outline of an arithmetic unit having a conventional general interrupt control method will be described.
As shown in FIG. 1, a conventional general arithmetic device X1 includes an ASIC (Application Specific Integrated Circuit) 10 that is an example of a semiconductor integrated circuit and a CPU (Central Processing Unit) that is an example of arithmetic means and executes a program. 20 and a memory 30 for storing a program executed by the CPU 20. A peripheral device such as a scanner is connected to the arithmetic device X1.
The outline of the processing performed by the arithmetic device X1 is as follows.
(1) When there is a request for interrupt processing from a peripheral device, the ASIC 10 requests the CPU 20 for interrupt processing.
(2) The CPU 20 executes interrupt processing based on the interrupt request from the ASIC 10.
(3) When the interrupt processing is completed, the CPU 20 executes processing for causing the ASIC 10 to stop the interrupt processing request.
The detailed configuration of the arithmetic device X1 is as follows.
The ASIC 10 includes an interrupt request output unit 12 that outputs an interrupt request signal to the CPU 20 of (1), a factor register 13 that is a storage element that stores interrupt information that is information about interrupts such as interrupt factors and processing contents, It comprises a clear register 14 that is a storage element for storing a flag for stopping the interrupt request signal in (3) above, and a control unit 11 that comprehensively controls them.
The initial value of the flag for stopping the interrupt request signal stored in the clear register 14 is 0.
The memory 30 stores a program for executing interrupt processing for each peripheral device, such as a program for reading data from the peripheral device.

上記演算装置X1により実行される割り込み処理を説明する。かっこ()内の符号は図1中に記載された手順の番号を表す。
(1)ASIC10は周辺装置からの割り込み処理の要求があるとCPU20に割り込み処理を要求。
まず,上記周辺装置により割り込み要求信号が出力され,上記ASIC10の制御部11に入力される(1−0)。上記制御部11により,割り込み要求があった周辺装置の割り込み情報(例えば割り込み情報Cとする)が上記要因レジスタ13に書き込まれる(1−1)。上記割り込み情報Cは,例えば,上記メモリ30に記憶されている周辺装置からデータを読み取るプログラムCを実行,といったように,上記CPU20により実行されるべき予め定められた割り込み処理内容に関する情報である。
上記要因レジスタ13に割り込み情報が書き込まれると,上記制御部11により,上記クリアレジスタ14のフラグが読み取られる(1−2)。フラグの初期値は「0」である。上記クリアレジスタ14に格納されているフラグが「0」であれば,上記CPU20から割り込み要求信号停止の要求がされていないと判断され,上記割り込み要求出力手段12に割り込み要求信号の出力を指示する(1−3)。上記制御部11により割り込み要求信号の出力が指示されると,上記割り込み要求出力手段12により割り込み要求信号が出力される(1−4)。出力された割り込み要求信号は,上記CPU20に入力される。
(2)CPU20はASIC10からの割り込み要求に基づいて割り込み処理を実行。
割り込み要求信号が入力されると,上記CPU20により,上記ASIC10の要因レジスタ13に格納された割り込み情報が読み取られる(2−1)。読み取られた割り込み情報に基づいて,上記CPU20により,上記メモリ30に格納されているプログラムが実行され,割り込み処理(例えば,上記周辺装置からデータを読み取る処理)が行われる(2−2)。
(3)CPU20は割り込み処理が終了すると,ASIC10に割り込み処理要求を停止させる処理を実行。
割り込み処理が終了すると,上記CPU20により,上記ASIC10のクリアレジスタ14のフラグに割り込み要求信号停止を示す「1」が書き込まれる(3−1)。
続いて,上記ASIC10では,上記ASIC10の制御部11により,上記割り込み要求出力手段12に割り込み要求信号の停止が指示される(3−2)。上記ASIC10の制御部11からの割り込み要求信号停止の指示により,上記ASIC10の割り込み要求出力手段12からの割り込み要求信号の出力が停止される(3−3)。そして,上記ASIC10の制御部11により,上記クリアレジスタ14のフラグは初期値「0」に戻される(3−4)。
An interrupt process executed by the arithmetic device X1 will be described. Reference numerals in parentheses () represent the number of the procedure described in FIG.
(1) When there is a request for interrupt processing from a peripheral device, the ASIC 10 requests the CPU 20 for interrupt processing.
First, an interrupt request signal is output by the peripheral device and input to the control unit 11 of the ASIC 10 (1-0). The control unit 11 writes the interrupt information (for example, interrupt information C) of the peripheral device that requested the interrupt to the factor register 13 (1-1). The interrupt information C is information related to predetermined interrupt processing contents to be executed by the CPU 20 such as executing a program C for reading data from a peripheral device stored in the memory 30.
When interrupt information is written in the cause register 13, the control unit 11 reads the flag of the clear register 14 (1-2). The initial value of the flag is “0”. If the flag stored in the clear register 14 is “0”, it is determined that the interrupt request signal stop request is not made from the CPU 20 and the interrupt request output means 12 is instructed to output the interrupt request signal. (1-3). When the controller 11 instructs the output of the interrupt request signal, the interrupt request output means 12 outputs the interrupt request signal (1-4). The output interrupt request signal is input to the CPU 20.
(2) The CPU 20 executes interrupt processing based on the interrupt request from the ASIC 10.
When an interrupt request signal is input, the CPU 20 reads the interrupt information stored in the factor register 13 of the ASIC 10 (2-1). Based on the read interrupt information, the CPU 20 executes the program stored in the memory 30 and performs interrupt processing (for example, processing for reading data from the peripheral device) (2-2).
(3) When the interrupt processing is completed, the CPU 20 executes processing for causing the ASIC 10 to stop the interrupt processing request.
When the interrupt process is completed, the CPU 20 writes “1” indicating stop of the interrupt request signal to the flag of the clear register 14 of the ASIC 10 (3-1).
Subsequently, in the ASIC 10, the controller 11 of the ASIC 10 instructs the interrupt request output means 12 to stop the interrupt request signal (3-2). In response to an instruction to stop the interrupt request signal from the control unit 11 of the ASIC 10, the output of the interrupt request signal from the interrupt request output means 12 of the ASIC 10 is stopped (3-3). Then, the control unit 11 of the ASIC 10 returns the flag of the clear register 14 to the initial value “0” (3-4).

このような割り込み処理は,画像処理装置では,画像形成に用いる1ページ分の画像データが複数に分割されたバンドごとに発生する。
画像処理装置では,1つのバンドのバンド情報を転送する時間内に描画処理が終わらないと思われるバンドについては,先行描画処理を行う。
特許文献1に記載のデータ処理方法では,先行描画処理を減らし,本来ならば先行描画すべきバンドを,確保されるバンド領域に対して調整された制限描画時間内で処理して正常に出力することができる。
特開平9−272231号公報
In the image processing apparatus, such an interrupt process occurs for each band in which image data for one page used for image formation is divided into a plurality of parts.
In the image processing apparatus, a preceding drawing process is performed for a band that is considered not to finish the drawing process within the time for transferring the band information of one band.
In the data processing method described in Patent Document 1, the preceding drawing process is reduced, and the band that should be drawn in advance is processed within the limited drawing time adjusted with respect to the secured band region and is normally output. be able to.
JP-A-9-272231

従来は,例えば上記ASIC10などの半導体集積回路からの割り込み要求が続けて起こることが少なかったが,演算装置の高速化に伴い,同じ半導体集積回路からの割り込み要求が連続して起こることが考えられる。
その場合,ある割り込み処理実行中にそれとは別の割り込み処理要求が発生すると,従来の一般的な割り込み制御方法では,以下に述べる理由により,上記後発の割り込み処理要求を認識できないおそれがある。
具体的には,上記演算装置X1では,上記CPU20で実行された割り込み処理内容を識別することなく上記ASIC10のクリアレジスタ14のフラグに割り込み要求信号停止を示す「1」を格納する(3−1)。上記ASIC10の制御部11は,クリアレジスタ14に割り込み要求信号停止のフラグ「1」が格納されるとすぐに,上記ASIC10の要因レジスタ13を確認することなく,すなわち,周辺装置から別の割り込み処理要求が書き込まれたか(1−1)否かを判断することなく,上記割り込み要求出力手段12に割り込み要求信号の停止が指示される(3−2)。上記ASIC10の制御部11からの割り込み要求信号停止の指示により,上記ASIC10の割り込み要求出力手段12からの割り込み要求信号の出力が停止される(3−3)。そして,上記ASIC10の制御部11により,上記クリアレジスタ14のフラグは初期値「0」に戻される(3−4)。
つまり,上記ASIC10の制御部11は,割り込み要求信号出力停止の前に,上記要因レジスタ13を確認しない(次の割り込み処理要求の確認をしていない)。さらに,上記要因レジスタ13を確認したとしても,上記クリアレジスタ14に書き込まれたフラグだけでは,どのような割り込み処理が実行されたのかが認識できない,という2つの理由から,後発の割り込み処理要求を認識できない場合があった。
基本例としては,「上記周辺装置からの割り込み処理要求」を「バンドごとの描画処理が終了したときに実行されるバンド転送処理要求」に,「上記CPU20により実行される割り込み処理」を「画像処理装置のバンド転送処理」に置き換えて考えてみると,特許文献1に記載のデータ処理方法では,あるバンド転送処理中にバンド描画処理が終了し上記とは別のバンド転送処理要求が発生すると,上記別のバンド転送処理要求が認識されず,上記別のバンド転送処理が実行されないという問題があった。
本発明では,ある割り込み処理実行中にそれとは別の割り込み処理要求が発生しても上記別の割り込み処理要求を認識可能であり,上記別の割り込み処理を実行することができる割り込み制御方法,演算装置を提供することができる。
Conventionally, for example, interrupt requests from semiconductor integrated circuits such as the ASIC 10 are rarely generated continuously. However, it is conceivable that interrupt requests from the same semiconductor integrated circuit are continuously generated as the arithmetic device is increased in speed. .
In this case, if another interrupt processing request is generated during execution of a certain interrupt processing, the conventional interrupt control method may not recognize the subsequent interrupt processing request for the following reason.
Specifically, the arithmetic unit X1 stores “1” indicating interruption of the interrupt request signal in the flag of the clear register 14 of the ASIC 10 without identifying the interrupt processing contents executed by the CPU 20 (3-1). ). As soon as the interrupt request signal stop flag “1” is stored in the clear register 14, the control unit 11 of the ASIC 10 does not check the factor register 13 of the ASIC 10, that is, performs another interrupt processing from the peripheral device. Without determining whether or not the request has been written (1-1), the interrupt request output means 12 is instructed to stop the interrupt request signal (3-2). In response to an instruction to stop the interrupt request signal from the control unit 11 of the ASIC 10, the output of the interrupt request signal from the interrupt request output means 12 of the ASIC 10 is stopped (3-3). Then, the control unit 11 of the ASIC 10 returns the flag of the clear register 14 to the initial value “0” (3-4).
That is, the control unit 11 of the ASIC 10 does not check the factor register 13 before stopping the interrupt request signal output (does not check the next interrupt processing request). Further, even if the cause register 13 is confirmed, a subsequent interrupt processing request is issued for two reasons that it is not possible to recognize what interrupt processing has been executed only by the flag written in the clear register 14. There were cases where it could not be recognized.
As a basic example, “interrupt processing request from the peripheral device” is set to “band transfer processing request executed when drawing processing for each band is completed”, and “interrupt processing executed by the CPU 20” is set to “image”. Considering the “band transfer processing of the processing device”, in the data processing method described in Patent Document 1, when a band drawing process ends during a certain band transfer process and a band transfer process request different from the above occurs. However, there is a problem that the other band transfer processing request is not recognized and the other band transfer processing is not executed.
In the present invention, even when another interrupt processing request is generated during execution of a certain interrupt processing, the other interrupt processing request can be recognized, and the other interrupt processing can be executed. An apparatus can be provided.

上記目的を達成するために本発明は,割り込み処理を実行する演算手段(例えばCPU)と,該演算手段に割り込み処理を要求する半導体集積回路(例えばASIC)とを具備し,上記半導体集積回路が,上記割り込み処理に用いられる割り込み情報を格納し上記演算手段により参照可能な要因レジスタと,上記演算手段に対して割り込み要求信号を出力する割り込み要求出力手段と,上記演算手段により情報が書き込まれるクリアレジスタと,を備えてなる演算装置の割り込み制御方法に適用され,以下の(1)〜(3)に示す各工程を具備することを特徴とする方法である。
(1)上記半導体集積回路が,上記要因レジスタに,続けて書き込まれる割り込み情報を各々識別するための識別情報を書き込む割り込み識別情報書き込み工程。
(2)上記半導体集積回路が,上記要因レジスタに書き込んだ上記割り込み処理の識別情報と,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて,上記割り込み要求信号の出力を停止させる割り込み要求信号停止工程。
(3)上記演算手段が,上記要因レジスタに格納された上記割り込み情報に基づく割り込み処理の実行後,上記要因レジスタに格納された上記割り込み処理の識別情報を上記クリアレジスタに書き込むクリアレジスタ書込工程。
上記のような構成により,上記半導体集積回路は,割り込み要求信号停止の前に,上記要因レジスタに書き込まれた上記割り込み処理の識別情報を確認することができ,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて上記割り込み要求信号の出力を停止させることができる。従って,ある割り込み処理実行中に別の割り込み処理要求が発生しても,別の割り込み処理要求を確認することなく割り込み要求信号を停止することはないので,上記別の割り込み処理要求を認識することができ,上記別の割り込み処理を実行することができる。
また,本発明を演算装置として把握すると,割り込み処理を実行する演算手段と,該演算手段に割り込み処理を要求する半導体集積回路とを具備し,上記半導体集積回路が,上記割り込み処理に用いられる割り込み情報を格納し上記演算手段により参照可能な要因レジスタと,上記演算手段に対して割り込み要求信号を出力する割り込み要求出力手段と,上記演算手段により情報が書き込まれるクリアレジスタと,を備えてなる演算装置であって,上記半導体集積回路が,上記要因レジスタに,続けて書き込まれる割り込み情報を各々識別するための識別情報を書き込む割り込み識別情報書き込み手段と,上記割り込み識別情報書き込み手段により上記要因レジスタに書き込まれた上記割り込み処理の識別情報と,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて,上記割り込み要求信号の出力を停止させる割り込み要求信号停止手段と,を備え,上記演算手段が,上記要因レジスタに格納された上記割り込み情報に基づく割り込み処理の実行後,上記要因レジスタに格納された上記割り込み処理の識別情報を上記クリアレジスタに書き込むクリアレジスタ書込手段を備えてなることを特徴とする演算装置として把握される。
このような構成により,上記半導体集積回路は,割り込み要求信号停止の前に,上記要因レジスタに書き込まれた上記割り込み処理の識別情報を確認することができ,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて上記割り込み要求信号の出力を停止させることができる。従って,ある割り込み処理実行中に別の割り込み処理要求が発生しても,別の割り込み処理要求を確認することなく割り込み要求信号を停止することはないので,上記別の割り込み処理要求を認識することができ,上記別の割り込み処理を実行することができる演算装置を提供することができる。
一方,本発明を画像処理装置として考えてみると,割り込み処理を実行する演算手段と,画像形成に用いる1ページ分の画像データが複数に分割されたバンドごとに該演算手段に割り込み処理を要求する半導体集積回路とを具備し,上記半導体集積回路が,上記割り込み処理に用いられる割り込み情報を格納し,上記演算手段により参照可能な要因レジスタと,上記演算手段に対して割り込み要求信号を出力する割り込み要求出力手段と,上記演算手段により情報が書き込まれるクリアレジスタと,を備えてなる画像処理装置であって,上記半導体集積回路が,上記要因レジスタに,続けて書き込まれる割り込み情報を各々識別するための識別情報を書き込む割り込み識別情報書き込み手段と,上記要因レジスタに書き込んだ上記割り込み処理の識別情報と,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて,上記割り込み要求信号の出力を停止させる割り込み要求信号停止手段と,を備え,上記演算手段が,上記要因レジスタに格納された上記割り込み情報に基づく上記バンドごとの割り込み処理の実行後,上記要因レジスタに格納された上記割り込み処理の識別情報を上記クリアレジスタに書き込むクリアレジスタ書込手段を備えてなることを特徴とする画像処理装置として構成される。
上記のような構成の画像処理装置であれば,あるバンドの割り込み処理実行中に別のバンドの割り込み処理要求が発生しても,別のバンドの割り込み処理要求を確認することなく割り込み要求信号を停止することはないので,上記別のバンドの割り込み処理要求を認識することができ,上記別のバンドの割り込み処理を実行することができる画像処理装置を提供することができる。
In order to achieve the above object, the present invention comprises arithmetic means (for example, a CPU) for executing interrupt processing and a semiconductor integrated circuit (for example, ASIC) for requesting the arithmetic means for interrupt processing. , A factor register which stores interrupt information used for the interrupt processing and can be referred to by the arithmetic means, an interrupt request output means for outputting an interrupt request signal to the arithmetic means, and a clear in which information is written by the arithmetic means The method is characterized in that it is applied to an interrupt control method for an arithmetic device comprising a register, and comprises the following steps (1) to (3).
(1) An interrupt identification information writing step in which the semiconductor integrated circuit writes identification information for identifying each interrupt information to be subsequently written in the factor register.
(2) The semiconductor integrated circuit stops outputting the interrupt request signal based on the comparison between the interrupt processing identification information written in the factor register and the information written in the clear register by the arithmetic means. Interrupt request signal stop process.
(3) A clear register writing step in which the arithmetic means writes the identification information of the interrupt processing stored in the factor register to the clear register after executing the interrupt processing based on the interrupt information stored in the factor register .
With the configuration as described above, the semiconductor integrated circuit can check the identification information of the interrupt process written in the factor register before stopping the interrupt request signal, and write it in the clear register by the arithmetic means. The output of the interrupt request signal can be stopped based on the comparison with the received information. Therefore, even if another interrupt processing request is generated during execution of a certain interrupt processing, the interrupt request signal is not stopped without confirming the other interrupt processing request, so that the other interrupt processing request is recognized. And another interrupt process can be executed.
Further, when the present invention is grasped as an arithmetic unit, it comprises arithmetic means for executing interrupt processing and a semiconductor integrated circuit for requesting the arithmetic means for interrupt processing, and the semiconductor integrated circuit is used for the interrupt processing. A computation comprising a factor register that stores information and can be referred to by the computing means, an interrupt request output means that outputs an interrupt request signal to the computing means, and a clear register in which information is written by the computing means An interrupt identification information writing means for writing identification information for identifying each interrupt information to be subsequently written to the factor register; and the interrupt identification information writing means in the factor register. The written identification information of the interrupt process and the arithmetic means Interrupt request signal stop means for stopping the output of the interrupt request signal based on comparison with the information written in the register, wherein the arithmetic means is configured to interrupt the interrupt based on the interrupt information stored in the cause register. After execution of the processing, it is grasped as an arithmetic unit characterized by comprising clear register writing means for writing the identification information of the interrupt processing stored in the factor register into the clear register.
With such a configuration, the semiconductor integrated circuit can check the identification information of the interrupt process written in the factor register before stopping the interrupt request signal, and is written in the clear register by the arithmetic means. The output of the interrupt request signal can be stopped based on the comparison with the information. Therefore, even if another interrupt processing request is generated during execution of a certain interrupt processing, the interrupt request signal is not stopped without confirming the other interrupt processing request, so that the other interrupt processing request is recognized. Therefore, it is possible to provide an arithmetic device capable of executing the other interrupt processing.
On the other hand, when the present invention is considered as an image processing apparatus, an arithmetic unit for executing an interrupt process and an interrupt process are requested to the arithmetic unit for each band in which image data for one page used for image formation is divided into a plurality of bands. The semiconductor integrated circuit stores interrupt information used for the interrupt processing, and outputs an interrupt request signal to the factor register that can be referred to by the arithmetic means and the arithmetic means. An image processing apparatus comprising: an interrupt request output unit; and a clear register into which information is written by the arithmetic unit, wherein the semiconductor integrated circuit identifies each interrupt information to be subsequently written to the factor register Interrupt identification information writing means for writing the identification information for the interrupt, and the interrupt processing written in the factor register. And interrupt request signal stop means for stopping the output of the interrupt request signal based on a comparison between the identification information and the information written in the clear register by the calculation means, and the calculation means includes the factor And a clear register writing means for writing the identification information of the interrupt processing stored in the factor register into the clear register after execution of the interrupt processing for each band based on the interrupt information stored in the register. It is configured as a featured image processing apparatus.
In the case of the image processing apparatus configured as described above, even if an interrupt processing request for another band occurs during execution of interrupt processing for a certain band, an interrupt request signal is sent without confirming the interrupt processing request for another band. Since it does not stop, it is possible to provide an image processing apparatus capable of recognizing the interrupt processing request of another band and executing the interrupt processing of the other band.

本発明によれば,ある割り込み処理実行中にそれとは別の割り込み処理要求が発生しても上記別の割り込み処理要求を認識可能であり,上記別の割り込み処理を実行することができる割り込み制御方法,演算装置を提供することができる。   According to the present invention, even when another interrupt processing request occurs during execution of a certain interrupt processing, the other interrupt processing request can be recognized and the other interrupt processing can be executed. , An arithmetic unit can be provided.

以下添付図面を参照しながら,本発明の実施の形態について説明し,本発明の理解に供する。尚,以下の実施の形態は,本発明を具体化した一例であって,本発明の技術的範囲を限定する性格のものではない。
ここに,図1は従来の一般的な演算装置である演算装置X1のブロック図,図2は本発明の実施の形態に係る演算装置X2のブロック図,図3は要因レジスタ113に書き込まれる予め定められた割り込み識別情報の値と書き込まれるべき順序を示す図,図4は本発明の実施の形態に係る演算装置X2のCPU120により実行される割り込み処理及びASIC110の制御部111により実行される割り込み制御処理の手順についてその一例を説明するためのフローチャートである。
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings so that the present invention can be understood. The following embodiment is an example embodying the present invention, and does not limit the technical scope of the present invention.
FIG. 1 is a block diagram of an arithmetic device X1 which is a conventional general arithmetic device, FIG. 2 is a block diagram of the arithmetic device X2 according to the embodiment of the present invention, and FIG. FIG. 4 is a diagram showing the determined interrupt identification information values and the order in which they should be written. FIG. 4 shows interrupt processing executed by the CPU 120 of the arithmetic unit X2 and interrupts executed by the control unit 111 of the ASIC 110 according to the embodiment of the present invention. It is a flowchart for demonstrating the example about the procedure of a control process.

まず,図2のブロック図を用いて,本発明の実施の形態に係る演算装置X2の概略構成について説明する。
図2に示すように,上記演算装置X2は,半導体集積回路の一例であるASIC110と,演算手段の一例であり,プログラムを実行するCPU120と,上記CPU120により実行されるプログラムなどを記憶するメモリ130とを備えて構成されている。上記演算装置X2には,スキャナなどの周辺装置が接続されている。
ここで,上記演算装置X2が行う処理の概略を説明する。
(1)ASIC110は周辺装置からの割り込み処理の要求があると要因レジスタ113に割り込み情報と割り込み識別情報を記憶して,記憶された割り込み識別情報とクリアレジスタ114に格納されている割り込み識別情報とに基づいてCPU120に対する割り込み処理の要求,停止の制御を行う。
(2)CPU120はASIC110からの割り込み要求に基づいて割り込み処理を実行。
(3)CPU120は割り込み処理が終了すると,ASIC110に割り込み処理要求を停止させる処理を実行。
本発明は,演算装置の高速化に伴って例えばASIC110などの半導体集積回路からの割り込み要求が連続して起こった場合,ある割り込み処理実行中に別の割り込み処理要求が発生しても,上記別の割り込み処理要求を認識できず,上記別の割り込み処理が実行されないという問題が発生しないような割り込み制御方法である。
上記演算装置X2の構成の詳細は次の通りである。
上記ASIC110は,上記(1)のCPU120に割り込み要求信号を出力する割り込み要求出力手段112と,上記CPU120によって読取可能であり各種情報を記憶する記憶素子である要因レジスタ113と,上記CPU120によって書込可能であり各種情報を記憶する記憶素子であるクリアレジスタ114と,上記要因レジスタ113に書き込まれる予め定められた割り込み識別情報の値と書き込まれるべき順序(図3参照)を記憶する記憶部115と,これらを統括的に制御する制御部111とを備えて構成されている。
上記ASIC110は,上記割り込み要求出力手段112から割り込み要求信号を出力することにより,上記CPU120に割り込み処理を要求する。
上記要因レジスタ113は,割り込み要因と処理内容などの割り込みに関する情報である割り込み情報及び割り込み処理を識別する割り込み識別情報を記憶する。上記割り込み情報及び割り込み識別情報は,周辺装置から割り込み要求があると,要求のあった割り込み処理に合わせて,書き換えられる。書き換え処理の詳細は後述する。
ここで,上記要因レジスタ113に記憶される割り込み識別情報は,周辺装置から続けて要求のあった割り込み処理を識別するための情報である。具体的には,上記周辺装置からの割り込み要求発生により上記要因レジスタ113に格納されたある割り込み情報と,上記周辺装置から続けて別の割り込み要求が発生したことにより上記要因レジスタ113に格納された(すなわち上記ある割り込み情報が消去され書き換えられた)別の割り込み情報とを各々識別するための識別情報である。上記割り込み識別情報は,例えば数字や文字などが考えられる。上記割り込み識別情報として書き込まれる値は,一例として,図3に示すように,初期値を「ア」とすると,次に変更される値は「イ」,その次は「ウ」,その次は「エ」であり,「エ」の次は「ア」に戻る。
上記割り込み識別情報は,上記割り込み情報が上記ASIC110の制御部111により上記要因レジスタ113に書き込まれるたびに変更される。従って,上記周辺装置から続けて同じ割り込み要求があり,上記制御部111により上記要因レジスタ113に書き込まれた割り込み情報と,新たに同じ内容の割り込み情報が上記制御部111により上記要因レジスタ113に書き込まれたとしても,上記要因レジスタ113に書き込まれる割り込み識別情報は変更される。これにより,上記要因レジスタ113に格納されている割り込み情報は同じでも,割り込み識別情報が変更されていれば,先ほどの要求(上記周辺装置からの先発の割り込み要求)とは別の要求(上記周辺装置からの後発の割り込み要求)だと識別することができるのである。
また,上記CPU120による割り込み処理の実行中に,上記ASIC110の上記要因レジスタ113に別の割り込み情報が書き込まれると,上記要因レジスタ113に格納されている割り込み識別情報が変更されるので,上記CPU120による割り込み処理が終了した際,上記クリアレジスタ114に書き込まれる終了した割り込み処理に関する割り込み識別情報と,上記要因レジスタ113に格納されている割り込み識別情報とを比べることにより,新たに割り込み処理要求があったか否かを判定することができる。詳しくは後述する。
上記クリアレジスタ114は,上記CPU120により実行された割り込み処理の割り込み識別情報を記憶する。
ここで,上記クリアレジスタ114に記憶される割り込み識別情報は,後述のCPU120により実行された割り込み処理を示すための情報である。具体的には,上記CPU120により実行される割り込み処理に関する割り込み処理情報と共に上記要因レジスタ113から取得され,上記CPU120により割り込み処理が実行されている間上記メモリ130に一時的に記憶されていた割り込み識別情報である。
上記クリアレジスタ114に格納されている割り込み識別情報の初期値は,上記要因レジスタ113に格納されている初期値と同じ値(例えば「ア」)である。
上記要因レジスタ113に記憶される割り込み識別情報と,上記クリアレジスタ114に格納されている割り込み識別情報は,上述のような意味であるので,これらが違うということは,まだ周辺装置から要求があった割り込み処理がCPU120によって終了されていないということである。また,これらが同じということは,周辺装置から要求があった割り込み処理がCPU120によってすべて終了したということである。従って,上記要因レジスタ113に記憶される割り込み識別情報と,上記クリアレジスタ114に格納されている割り込み識別情報とが異なれば,上記ASIC110の割り込み要求出力手段112から割り込み要求信号が出力される(もしくは出力されたまま停止されない)。同じであれば,割り込み要求信号が停止される。詳細は後述する。
このように,上記要因レジスタ113と上記クリアレジスタ114とが割り込み識別情報を記憶し,これらに基づいてCPU120に対する割り込み処理の要求,停止の制御を行うことが,従来の一般的な割り込み制御方法と異なる点である。
上記CPU120は,上記ASIC110から割り込み要求信号が入力されると,上記ASIC110の要因レジスタ113に格納されている割り込み情報及び割り込み識別情報を取得し,取得された割り込み情報に基づいて上記メモリ130に格納されているプログラムが実行され,割り込み処理が実行される。
上記メモリ130は,例えば,上記周辺装置からデータを読み取るプログラムなど,各周辺装置からの要求に対する割り込み処理を実行するためのプログラムが記憶されている。また,上記CPU120により実行されている割り込み処理に関する割り込み処理情報と共に取得された割り込み識別情報を,一時的に記憶する。
First, the schematic configuration of the arithmetic device X2 according to the embodiment of the present invention will be described with reference to the block diagram of FIG.
As shown in FIG. 2, the arithmetic device X2 is an ASIC 110 that is an example of a semiconductor integrated circuit, an example of arithmetic means, a CPU 120 that executes a program, and a memory 130 that stores a program executed by the CPU 120, and the like. And is configured. A peripheral device such as a scanner is connected to the arithmetic device X2.
Here, an outline of the processing performed by the arithmetic device X2 will be described.
(1) When there is a request for interrupt processing from a peripheral device, the ASIC 110 stores interrupt information and interrupt identification information in the cause register 113, and stores the interrupt identification information stored in the clear register 114 and the interrupt identification information stored in the clear register 114. Based on the above, the CPU 120 requests and stops the interrupt process.
(2) The CPU 120 executes interrupt processing based on the interrupt request from the ASIC 110.
(3) When the interrupt processing ends, the CPU 120 executes processing for causing the ASIC 110 to stop the interrupt processing request.
In the present invention, when the interrupt request from the semiconductor integrated circuit such as the ASIC 110 is continuously generated along with the increase in the speed of the arithmetic unit, even if another interrupt process request is generated during execution of a certain interrupt process, This interrupt control method is such that the above-described interrupt processing request cannot be recognized and the problem that the other interrupt processing is not executed does not occur.
Details of the configuration of the arithmetic unit X2 are as follows.
The ASIC 110 includes an interrupt request output means 112 that outputs an interrupt request signal to the CPU 120 of (1), a factor register 113 that is a storage element that can be read by the CPU 120 and stores various information, and a write by the CPU 120. A clear register 114 which is a storage element capable of storing various types of information, and a storage unit 115 for storing a predetermined interrupt identification information value written in the factor register 113 and an order to be written (see FIG. 3). , And a control unit 111 for comprehensively controlling them.
The ASIC 110 requests the CPU 120 for interrupt processing by outputting an interrupt request signal from the interrupt request output means 112.
The factor register 113 stores interrupt information, which is information about interrupts such as interrupt factors and processing contents, and interrupt identification information for identifying interrupt processing. When there is an interrupt request from the peripheral device, the interrupt information and the interrupt identification information are rewritten according to the requested interrupt processing. Details of the rewriting process will be described later.
Here, the interrupt identification information stored in the factor register 113 is information for identifying an interrupt process requested continuously from the peripheral device. Specifically, certain interrupt information stored in the factor register 113 when an interrupt request from the peripheral device is generated and stored in the factor register 113 when another interrupt request is continuously generated from the peripheral device. This is identification information for identifying each other interrupt information (that is, the above-mentioned certain interrupt information is erased and rewritten). The interrupt identification information can be, for example, numbers or letters. As an example, the value written as the interrupt identification information is as follows. As shown in FIG. 3, when the initial value is “a”, the next value to be changed is “a”, the next is “c”, the next It is “e”, and after “e”, it returns to “a”.
The interrupt identification information is changed each time the interrupt information is written into the factor register 113 by the control unit 111 of the ASIC 110. Therefore, the same interrupt request is continuously received from the peripheral device, and the interrupt information written to the factor register 113 by the control unit 111 and the interrupt information having the same contents are newly written to the factor register 113 by the control unit 111. Even if it is, the interrupt identification information written in the factor register 113 is changed. Thus, even if the interrupt information stored in the cause register 113 is the same, if the interrupt identification information is changed, a request (the peripheral request) different from the previous request (the first interrupt request from the peripheral device) is changed. It can be identified as a subsequent interrupt request from the device.
When another interrupt information is written in the factor register 113 of the ASIC 110 during execution of the interrupt processing by the CPU 120, the interrupt identification information stored in the factor register 113 is changed. When interrupt processing is completed, whether or not there is a new interrupt processing request by comparing the interrupt identification information about the completed interrupt processing written in the clear register 114 with the interrupt identification information stored in the cause register 113 Can be determined. Details will be described later.
The clear register 114 stores interrupt identification information of interrupt processing executed by the CPU 120.
Here, the interrupt identification information stored in the clear register 114 is information for indicating an interrupt process executed by the CPU 120 described later. Specifically, the interrupt identification acquired from the factor register 113 together with the interrupt processing information related to the interrupt processing executed by the CPU 120 and temporarily stored in the memory 130 while the CPU 120 executes the interrupt processing. Information.
The initial value of the interrupt identification information stored in the clear register 114 is the same value (for example, “a”) as the initial value stored in the factor register 113.
Since the interrupt identification information stored in the factor register 113 and the interrupt identification information stored in the clear register 114 have the above-mentioned meanings, it is still requested by the peripheral device that they are different. This means that the interrupt process has not been terminated by the CPU 120. The fact that they are the same means that the CPU 120 has completed all the interrupt processing requested by the peripheral device. Therefore, if the interrupt identification information stored in the factor register 113 is different from the interrupt identification information stored in the clear register 114, an interrupt request signal is output from the interrupt request output means 112 of the ASIC 110 (or The output is not stopped.) If they are the same, the interrupt request signal is stopped. Details will be described later.
As described above, the cause register 113 and the clear register 114 store interrupt identification information, and based on these, the interrupt processing request and stop control for the CPU 120 are performed. It is a different point.
When an interrupt request signal is input from the ASIC 110, the CPU 120 acquires interrupt information and interrupt identification information stored in the cause register 113 of the ASIC 110, and stores the interrupt information and interrupt identification information in the memory 130 based on the acquired interrupt information. The program being executed is executed and interrupt processing is executed.
The memory 130 stores a program for executing an interrupt process for a request from each peripheral device, such as a program for reading data from the peripheral device. In addition, interrupt identification information acquired together with interrupt processing information related to interrupt processing executed by the CPU 120 is temporarily stored.

ここで,図4(a)は,本発明の実施の形態に係る演算装置X2のCPU120により実行される割り込み処理の手順についてその一例を説明するためのフローチャート,図4(b)は,本発明の実施の形態に係る演算装置X2のASIC110の制御部111により実行される割り込み制御処理の手順についてその一例を説明するためのフローチャートである。
まず,図4(b)を用いて,本発明の実施の形態に係る演算装置X2のASIC110の制御部111により実行される割り込み制御処理の手順についてその一例を説明する。
図中のS10,S20…は処理手順(ステップ)番号を示し,処理はステップS10より開始される。
かっこ()内の符号は,図2中に記載された手順の番号を表す。
Here, FIG. 4A is a flowchart for explaining an example of the procedure of the interrupt processing executed by the CPU 120 of the arithmetic device X2 according to the embodiment of the present invention, and FIG. It is a flowchart for demonstrating the example about the procedure of the interrupt control process performed by the control part 111 of ASIC110 of the arithmetic unit X2 which concerns on this embodiment.
First, an example of the procedure of the interrupt control process executed by the control unit 111 of the ASIC 110 of the arithmetic device X2 according to the embodiment of the present invention will be described with reference to FIG.
In the figure, S10, S20,... Indicate process procedure (step) numbers, and the process starts from step S10.
Reference numerals in parentheses () represent the number of the procedure described in FIG.

(1)ASIC110は周辺装置からの割り込み処理の要求があると要因レジスタ113に割り込み情報と割り込み識別情報を記憶して,記憶された割り込み識別情報とクリアレジスタ114に格納されている割り込み識別情報とに基づいてCPU120に対する割り込み処理の要求,停止の制御を行う。
ステップS10では,上記制御部111により,上記周辺装置によって割り込み要求があるか否かが判別される。上記周辺装置により割り込み要求信号が入力される(1−0)と,上記周辺装置によって割り込み要求があると判別され(ステップS10のYes側),処理はステップS20に移行される。
(1) When there is a request for interrupt processing from a peripheral device, the ASIC 110 stores interrupt information and interrupt identification information in the cause register 113, and stores the interrupt identification information stored in the clear register 114 and the interrupt identification information stored in the clear register 114. Based on the above, the CPU 120 requests and stops the interrupt process.
In step S10, the control unit 111 determines whether or not there is an interrupt request from the peripheral device. When an interrupt request signal is input by the peripheral device (1-0), it is determined that there is an interrupt request by the peripheral device (Yes side of step S10), and the process proceeds to step S20.

ステップS20では,上記制御部111により,割り込み要求があった周辺装置の割り込み情報(例えば割り込み情報Aとする)が上記要因レジスタ113に書き込まれる(1−1)。上記割り込み情報Aは,例えば,上記メモリ130に記憶されているプログラムA(周辺装置からデータを読み取るプログラム)を実行,といったように,CPU120により実行されるべき予め定められた割り込み処理内容に関する情報である。
続いて,上記制御部111により,上記要因レジスタ113に,上記割り込み情報Aが書き込まれたことと連動して,割り込み識別情報が,上記記憶部115に記憶されている予め定められた割り込み識別情報の値と書き込まれるべき順序(図3参照)に基づいて変更され(1−2),処理はステップS30に移行される。例えば,上記要因レジスタ113に格納されている割り込み識別情報が,初期値「ア」であれば,図3が参照され,「ア」の次の値である「イ」に変更される。ここでは,上記割り込み識別情報は文字であるが,例えば,「1」「2」「3」といった数字が順に書き込まれるものでもよい。
なお,割り込み情報そのものにより識別しないのは,割り込み情報は,割り込み処理の内容であるので,連続して同じ割り込み処理の要求があったときに識別できないからである。
ここで,割り込み要求があった周辺装置の割り込み情報を上記要因レジスタ113に書き込むたびに割り込み識別情報を上記要因レジスタ113に書き込む処理を実行する制御部111が,割り込み識別情報書き込み手段の一例に相当する。
割り込み要求があった周辺装置の割り込み情報を上記要因レジスタ113に書き込むたびに割り込み識別情報を上記要因レジスタ113に書き込む工程が,割り込み識別情報書込工程の一例に相当する。
In step S20, the control unit 111 writes the interrupt information (for example, interrupt information A) of the peripheral device that requested the interrupt to the factor register 113 (1-1). The interrupt information A is information related to predetermined interrupt processing contents to be executed by the CPU 120, such as executing the program A (a program for reading data from the peripheral device) stored in the memory 130, for example. is there.
Subsequently, in conjunction with the writing of the interrupt information A into the factor register 113 by the control unit 111, interrupt identification information is stored in the storage unit 115 as predetermined interrupt identification information. And the order to be written (see FIG. 3) (1-2), the process proceeds to step S30. For example, if the interrupt identification information stored in the cause register 113 is the initial value “a”, FIG. 3 is referred to, and the value is changed to “a”, which is the next value after “a”. Here, although the interrupt identification information is a character, for example, numbers such as “1”, “2”, and “3” may be sequentially written.
The reason why the interrupt information itself is not identified is that the interrupt information is the contents of the interrupt processing, and therefore cannot be identified when there is a continuous request for the same interrupt processing.
Here, the control unit 111 that executes a process of writing the interrupt identification information to the factor register 113 each time the interrupt information of the peripheral device that requested the interrupt is written to the factor register 113 corresponds to an example of the interrupt identification information writing unit. To do.
A process of writing interrupt identification information to the factor register 113 each time interrupt information of a peripheral device that has requested an interrupt is written to the factor register 113 corresponds to an example of an interrupt identification information writing process.

ステップS30では,上記要因レジスタ113に格納されている割り込み識別情報と,上記クリアレジスタ114に格納されている割り込み識別情報とが比較され,上記制御部111により,同じか否かが判別され,割り込み要求出力手段112から出力される割り込み要求信号制御に関する指示が決定される(1−3)。
後述するように,上記要因レジスタ113に格納されている割り込み情報の割り込み処理がまだ上記CPU120により実行されていない状態では,上記制御部111により,上記要因レジスタ113に格納されている割り込み識別情報(例えば,上記割り込み識別情報=「イ」)と,上記クリアレジスタ114に格納されている割り込み識別情報(例えば,割り込み識別情報=初期値「ア」)とが異なると判別される。この場合,上記割り込み要求出力手段112に割り込み要求信号出力の指示が出され(ステップS30のYes側),処理はステップS40に移行される。
後述するように,上記要因レジスタ113に格納されている割り込み情報の割り込み処理が上記CPU120により実行された後であれば,上記制御部111により,上記要因レジスタ113に格納されている割り込み識別情報(例えば,上記割り込み識別情報=「イ」)と,上記クリアレジスタ114に格納されている割り込み識別情報(例えば,割り込み識別情報=「イ」)とが同じであると判別される。この場合には,上記割り込み要求出力手段112に割り込み要求信号出力停止の指示が出され(ステップS30のNo側),処理はステップS50に移行される。
In step S30, the interrupt identification information stored in the factor register 113 and the interrupt identification information stored in the clear register 114 are compared, and the control unit 111 determines whether or not they are the same. An instruction relating to interrupt request signal control output from the request output means 112 is determined (1-3).
As will be described later, when the interrupt processing of the interrupt information stored in the factor register 113 has not yet been executed by the CPU 120, the control unit 111 causes the interrupt identification information ( For example, it is determined that the interrupt identification information = “I”) and the interrupt identification information stored in the clear register 114 (for example, interrupt identification information = initial value “A”) are different. In this case, the interrupt request output means 112 is instructed to output an interrupt request signal (Yes in step S30), and the process proceeds to step S40.
As will be described later, after the interrupt processing of the interrupt information stored in the factor register 113 is executed by the CPU 120, the control unit 111 causes the interrupt identification information ( For example, it is determined that the interrupt identification information = “I”) and the interrupt identification information stored in the clear register 114 (for example, interrupt identification information = “I”) are the same. In this case, an interrupt request signal output stop instruction is issued to the interrupt request output means 112 (No side of step S30), and the process proceeds to step S50.

ステップS40では,上記制御部111により,上記割り込み要求出力手段112から割り込み要求信号が出力され(1−4),処理はステップS30戻り,次に割り込み識別情報が同じであると判別されるまで,すなわち割り込み要求信号の出力停止指示がなされるまで上記割り込み要求信号は出力され続ける。   In step S40, the control unit 111 outputs an interrupt request signal from the interrupt request output means 112 (1-4), the process returns to step S30, and then it is determined that the interrupt identification information is the same. That is, the interrupt request signal continues to be output until an instruction to stop outputting the interrupt request signal is issued.

ステップS50では,上記制御部111により,上記割り込み要求出力手段112から出力されている割り込み要求信号の出力が停止される(1−5)。
ここで,上記制御部111により上記要因レジスタ113に書き込まれた割り込み識別情報と,後述の様にCPU120により上記クリアレジスタ114に書き込まれた割り込み識別情報との比較に基づいて,上記割り込み要求信号の出力を停止させる処理を実行する制御部111が,割り込み要求信号停止手段の一例に相当する。
上記制御部111により上記要因レジスタ113に書き込まれた割り込み識別情報と,後述の様にCPU120により上記クリアレジスタ114に書き込まれた割り込み識別情報との比較に基づいて,上記割り込み要求信号の出力を停止させる工程が,割り込み要求信号停止工程の一例に相当する。
このように,上記要因レジスタ113に格納された割り込み識別情報と,上記クリアレジスタ114に格納されている割り込み識別情報とを比較する(1−3)ことにより,上記ASIC110から上記CPU120への割り込み要求信号を制御する(1−4,1−5)ことができることが,従来の一般的な割り込み制御方法と異なる点である。
In step S50, the control unit 111 stops outputting the interrupt request signal output from the interrupt request output means 112 (1-5).
Here, based on the comparison between the interrupt identification information written in the factor register 113 by the control unit 111 and the interrupt identification information written in the clear register 114 by the CPU 120 as described later, the interrupt request signal The control unit 111 that executes the process of stopping the output corresponds to an example of an interrupt request signal stop unit.
The output of the interrupt request signal is stopped based on a comparison between the interrupt identification information written in the factor register 113 by the control unit 111 and the interrupt identification information written in the clear register 114 by the CPU 120 as will be described later. This process corresponds to an example of an interrupt request signal stop process.
Thus, by comparing the interrupt identification information stored in the cause register 113 with the interrupt identification information stored in the clear register 114 (1-3), an interrupt request from the ASIC 110 to the CPU 120 is obtained. The ability to control the signal (1-4, 1-5) is different from the conventional general interrupt control method.

(2)CPU120はASIC110からの割り込み要求に基づいて割り込み処理を実行。
続いて,図4(a)本発明の実施の形態に係る演算装置X2のCPU120により実行される割り込み処理の手順についてその一例を説明する。
図中のS100,S110…は処理手順(ステップ)番号を示し,処理はステップS100より開始される。
ステップS100では,上記CPU120により,割り込み要求信号が入力されたか否かが判別される。上記ASIC110の割り込み要求出力手段112により出力された割り込み要求信号が,上記CPU120に入力されると,上記CPU120により,割り込み要求信号が入力されたと判別され(ステップS100のYes側),処理はステップS110に移行される。
上記ASIC110の割り込み要求出力手段112により割り込み要求信号の出力が停止されると,上記CPU120により,割り込み要求信号が入力されていないと判別され,割り込み要求信号が入力されるまで待ちの状態となる。
(2) The CPU 120 executes interrupt processing based on the interrupt request from the ASIC 110.
Next, FIG. 4A illustrates an example of an interrupt processing procedure executed by the CPU 120 of the arithmetic device X2 according to the embodiment of the present invention.
In the figure, S100, S110... Indicate processing procedure (step) numbers, and the processing starts from step S100.
In step S100, the CPU 120 determines whether an interrupt request signal has been input. When the interrupt request signal output by the interrupt request output means 112 of the ASIC 110 is input to the CPU 120, the CPU 120 determines that the interrupt request signal has been input (Yes in step S100), and the processing is performed in step S110. It is transferred to.
When the output of the interrupt request signal is stopped by the interrupt request output means 112 of the ASIC 110, the CPU 120 determines that the interrupt request signal is not input, and waits until the interrupt request signal is input.

ステップS110では,上記CPU120により,上記ASIC110の要因レジスタ113に格納されている割り込み情報(例えば割り込み識別情報A)と(該割り込み情報が上記要因レジスタに書き込まれたことと連動して変更された)割り込み識別情報(例えば「イ」)とが取得される(2−1)。上記取得された割り込み情報と割り込み識別情報は,上記メモリ130に一時的に記憶され,処理はステップS120に移行される。
ステップS120では,上記CPU120により,上記メモリ130に一時的に記憶された割り込み情報に基づいて,上記メモリ130に格納されているプログラムが実行され,割り込み処理が行われ(2−2),処理はステップS130に移行される。
In step S110, the CPU 120 causes the interrupt information (for example, interrupt identification information A) stored in the cause register 113 of the ASIC 110 (changed in conjunction with the writing of the interrupt information to the cause register). Interrupt identification information (for example, “I”) is acquired (2-1). The acquired interrupt information and interrupt identification information are temporarily stored in the memory 130, and the process proceeds to step S120.
In step S120, the CPU 120 executes the program stored in the memory 130 based on the interrupt information temporarily stored in the memory 130, and performs interrupt processing (2-2). The process proceeds to step S130.

(3)CPU120は割り込み処理が終了すると,ASIC110に割り込み処理要求を停止させる処理を実行。
ステップS130では,上記CPU120により,上記メモリ130に一時的に記憶された割り込み識別情報が,上記ASIC110のクリアレジスタ114に書き込まれる(3−1)。例えば,実行された割り込み処理の割り込み情報,すなわち上記メモリ130に記憶された割り込み情報が上記割り込み情報Aであり,上記メモリ130に記憶された割り込み識別情報が「イ」であれば,上記クリアレジスタ114の割り込み識別情報は「イ」に変更され,処理は終了する。
つまり,上記CPU120により割り込み処理が実行されている間,上記周辺装置から新たな割り込み処理要求がなければ,上記ASIC110の上記要因レジスタ113に格納されている割り込み識別情報は変更されない,すなわちメモリ130に記憶されている割り込み識別情報と同じままであり,上記CPU120により上記クリアレジスタ114に書き込まれる割り込み識別情報も同じとなる。これは,上記要因レジスタ113に格納されている割り込み情報の割り込み処理が上記CPU120により実行された後であれば,要因レジスタ113に格納されている割り込み識別情報とクリアレジスタ114に格納されている割り込み識別情報が同じことを意味する。
一方,上記CPU120により割り込み処理が実行されている間,上記周辺装置から新たな割り込み処理要求があれば,上記ASIC110の上記要因レジスタ113に格納されている割り込み識別情報が変更される(例えば「イ」→「ウ」)。すなわちメモリ130に記憶されている割り込み識別情報(ここでは「イ」)とは別の値になってしまい,上記CPU120により上記クリアレジスタ114に書き込まれる割り込み識別情報(ここでは「イ」)とも別の値となる。これは,上記要因レジスタ113に格納されている割り込み情報の割り込み処理が上記CPU120によりまだ実行されていない状態であれば,要因レジスタ113に格納されている割り込み識別情報とクリアレジスタ114に格納されている割り込み識別情報が異なることを意味するのである。
ここで,上記要因レジスタ113から取得され上記メモリ130に一時的に記憶されていた割り込み識別情報を,上記要因レジスタ113に格納された割り込み情報に基づく割り込み処理の実行後,上記クリアレジスタ114に書き込む処理を実行するCPU120が,クリアレジスタ書込手段の一例に相当する。
上記要因レジスタ113から取得され上記メモリ130に一時的に記憶されていた割り込み識別情報を,上記要因レジスタ113に格納された割り込み情報に基づく割り込み処理の実行後,上記クリアレジスタ114に書き込む工程が,クリアレジスタ書込工程の一例に相当する。
このように上記CPU120によりクリアレジスタ114に割り込み識別情報が書き込まれると,上記ASIC110では,上記ステップS30以降の処理が行われる。
(3) When the interrupt processing ends, the CPU 120 executes processing for causing the ASIC 110 to stop the interrupt processing request.
In step S130, the CPU 120 writes the interrupt identification information temporarily stored in the memory 130 into the clear register 114 of the ASIC 110 (3-1). For example, if the interrupt information of the executed interrupt process, that is, the interrupt information stored in the memory 130 is the interrupt information A and the interrupt identification information stored in the memory 130 is “I”, the clear register The interrupt identification information 114 is changed to “I”, and the process ends.
That is, while the interrupt processing is executed by the CPU 120, if there is no new interrupt processing request from the peripheral device, the interrupt identification information stored in the factor register 113 of the ASIC 110 is not changed, that is, the memory 130 is not changed. It remains the same as the stored interrupt identification information, and the interrupt identification information written to the clear register 114 by the CPU 120 is also the same. This is because the interrupt identification information stored in the cause register 113 and the interrupt stored in the clear register 114 are executed after the interrupt processing of the interrupt information stored in the cause register 113 is executed by the CPU 120. This means that the identification information is the same.
On the other hand, while the interrupt processing is being executed by the CPU 120, if there is a new interrupt processing request from the peripheral device, the interrupt identification information stored in the factor register 113 of the ASIC 110 is changed (for example, “I "→" U "). That is, the value is different from the interrupt identification information (here “a”) stored in the memory 130, and is different from the interrupt identification information (here “a”) written to the clear register 114 by the CPU 120. It becomes the value of. If the interrupt processing of the interrupt information stored in the factor register 113 is not yet executed by the CPU 120, the interrupt identification information stored in the factor register 113 and the clear register 114 are stored. This means that the interrupt identification information is different.
Here, the interrupt identification information acquired from the factor register 113 and temporarily stored in the memory 130 is written to the clear register 114 after execution of interrupt processing based on the interrupt information stored in the factor register 113. The CPU 120 that executes the process corresponds to an example of a clear register writing unit.
Writing the interrupt identification information acquired from the factor register 113 and temporarily stored in the memory 130 into the clear register 114 after execution of interrupt processing based on the interrupt information stored in the factor register 113; This corresponds to an example of a clear register writing process.
As described above, when the CPU 120 writes the interrupt identification information to the clear register 114, the ASIC 110 performs the processing after the step S30.

上述のように,上記要因レジスタ113に格納された割り込み識別情報と,上記クリアレジスタ114に格納されている割り込み識別情報とを比較することにより,上記ASIC110から上記CPU120への割り込み要求信号を制御することができることが,従来の一般的な割り込み制御方法と異なる点である。そして,ある割り込み処理実行中にそれとは別の割り込み処理要求が発生しても上記別の割り込み処理要求を認識可能であり,上記別の割り込み処理を実行することができる演算装置を提供することができる。
なお,画像処理装置において実行される,画像形成に用いる1ページ分の画像データが複数に分割されたバンドのバンド転送処理を,上記割り込み処理に置き換えて考えてみると,上記のような割り込み制御方法は,割り込み処理を実行するCPUと,バンドごとにCPUに割り込み処理を要求するASICとを備えた画像処理装置にも適用できる。
As described above, the interrupt request signal from the ASIC 110 to the CPU 120 is controlled by comparing the interrupt identification information stored in the factor register 113 with the interrupt identification information stored in the clear register 114. This is different from the conventional general interrupt control method. And providing an arithmetic unit capable of recognizing the other interrupt processing request and executing the other interrupt processing even if another interrupt processing request occurs during execution of the interrupt processing. it can.
When the band transfer processing of a band in which image data for one page used for image formation, which is executed in the image processing apparatus is divided into a plurality of parts, is replaced with the above interrupt processing, the above interrupt control is performed. The method can also be applied to an image processing apparatus including a CPU that executes interrupt processing and an ASIC that requests the CPU for interrupt processing for each band.

従来の一般的な演算装置である演算装置X1のブロック図。The block diagram of the arithmetic unit X1 which is a conventional general arithmetic unit. 本発明の実施の形態に係る演算装置X2のブロック図。The block diagram of the arithmetic unit X2 which concerns on embodiment of this invention. 要因レジスタ113に書き込まれる予め定められた割り込み識別情報の値と書き込まれるべき順序を示す図。The figure which shows the value of the predetermined | prescribed interruption identification information written in the factor register | resistor 113, and the order which should be written. 本発明の実施の形態に係る演算装置X2のCPU120により実行される割り込み処理及びASIC110の制御部111により実行される割り込み制御処理の手順についてその一例を説明するためのフローチャート。The flowchart for demonstrating the example about the procedure of the interrupt process performed by CPU120 of the arithmetic unit X2 which concerns on embodiment of this invention, and the interrupt control process performed by the control part 111 of ASIC110.

符号の説明Explanation of symbols

10,110…ASIC
11,111…制御部
12,112…割り込み要求出力手段
13,113…要因レジスタ
14,114…クリアレジスタ
115…記憶部
20,120…CPU
30,130…メモリ
10, 110 ... ASIC
11, 111... Control unit 12, 112... Interrupt request output means 13, 113... Factor register 14, 114.
30, 130 ... memory

Claims (3)

割り込み処理を実行する演算手段と,該演算手段に割り込み処理を要求する半導体集積回路とを具備し,
上記半導体集積回路が,上記割り込み処理に用いられる割り込み情報を格納し上記演算手段により参照可能な要因レジスタと,上記演算手段に対して割り込み要求信号を出力する割り込み要求出力手段と,上記演算手段により情報が書き込まれるクリアレジスタと,を備えてなる演算装置の割り込み制御方法であって,
上記半導体集積回路が,上記要因レジスタに,続けて書き込まれる割り込み情報を各々識別するための識別情報を書き込む割り込み識別情報書き込み工程と,
上記半導体集積回路が,上記要因レジスタに書き込んだ上記割り込み処理の識別情報と,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて,上記割り込み要求信号の出力を停止させる割り込み要求信号停止工程と,
上記演算手段が,上記要因レジスタに格納された上記割り込み情報に基づく割り込み処理の実行後,上記要因レジスタに格納された上記割り込み処理の識別情報を上記クリアレジスタに書き込むクリアレジスタ書込工程と,
を具備してなることを特徴とする演算装置の割り込み制御方法。
Comprising arithmetic means for executing interrupt processing, and a semiconductor integrated circuit for requesting interrupt processing to the arithmetic means,
The semiconductor integrated circuit stores interrupt information used for the interrupt processing and can be referred to by the arithmetic means, an interrupt request output means for outputting an interrupt request signal to the arithmetic means, and the arithmetic means An interrupt control method for an arithmetic unit comprising a clear register to which information is written,
An interrupt identification information writing step in which the semiconductor integrated circuit writes identification information for identifying each interrupt information to be subsequently written to the factor register;
An interrupt request for stopping output of the interrupt request signal based on a comparison between the interrupt processing identification information written in the factor register and information written in the clear register by the arithmetic means by the semiconductor integrated circuit. A signal stop process;
A clear register writing step for writing identification information of the interrupt processing stored in the factor register to the clear register after the arithmetic means executes the interrupt processing based on the interrupt information stored in the factor register;
An interrupt control method for an arithmetic device, comprising:
割り込み処理を実行する演算手段と,該演算手段に割り込み処理を要求する半導体集積回路とを具備し,
上記半導体集積回路が,上記割り込み処理に用いられる割り込み情報を格納し上記演算手段により参照可能な要因レジスタと,上記演算手段に対して割り込み要求信号を出力する割り込み要求出力手段と,上記演算手段により情報が書き込まれるクリアレジスタと,を備えてなる演算装置であって,
上記半導体集積回路が,上記要因レジスタに,続けて書き込まれる割り込み情報を各々識別するための識別情報を書き込む割り込み識別情報書き込み手段と,上記割り込み識別情報書き込み手段により上記要因レジスタに書き込まれた上記割り込み処理の識別情報と,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて,上記割り込み要求信号の出力を停止させる割り込み要求信号停止手段と,を備え,
上記演算手段が,上記要因レジスタに格納された上記割り込み情報に基づく割り込み処理の実行後,上記要因レジスタに格納された上記割り込み処理の識別情報を上記クリアレジスタに書き込むクリアレジスタ書込手段を備えてなることを特徴とする演算装置。
Comprising arithmetic means for executing interrupt processing, and a semiconductor integrated circuit for requesting interrupt processing to the arithmetic means,
The semiconductor integrated circuit stores interrupt information used for the interrupt processing and can be referred to by the arithmetic means, an interrupt request output means for outputting an interrupt request signal to the arithmetic means, and the arithmetic means An arithmetic unit comprising a clear register to which information is written,
The semiconductor integrated circuit writes identification information for identifying each interrupt information to be subsequently written into the factor register, and the interrupt identification information writing means for writing the interrupt information written in the factor register by the interrupt identification information writing means. Interrupt request signal stop means for stopping output of the interrupt request signal based on a comparison between processing identification information and information written in the clear register by the arithmetic means;
The arithmetic means comprises clear register writing means for writing the identification information of the interrupt processing stored in the factor register into the clear register after execution of interrupt processing based on the interrupt information stored in the factor register. An arithmetic unit characterized by comprising:
割り込み処理を実行する演算手段と,画像形成に用いる1ページ分の画像データが複数に分割されたバンドごとに該演算手段に割り込み処理を要求する半導体集積回路とを具備し,上記半導体集積回路が,上記割り込み処理に用いられる割り込み情報を格納し,上記演算手段により参照可能な要因レジスタと,上記演算手段に対して割り込み要求信号を出力する割り込み要求出力手段と,上記演算手段により情報が書き込まれるクリアレジスタと,を備えてなる画像処理装置であって,
上記半導体集積回路が,上記要因レジスタに,続けて書き込まれる割り込み情報を各々識別するための識別情報を書き込む割り込み識別情報書き込み手段と,上記要因レジスタに書き込んだ上記割り込み処理の識別情報と,上記演算手段により上記クリアレジスタに書き込まれた情報との比較に基づいて,上記割り込み要求信号の出力を停止させる割り込み要求信号停止手段と,を備え,
上記演算手段が,上記要因レジスタに格納された上記割り込み情報に基づく上記バンドごとの割り込み処理の実行後,上記要因レジスタに格納された上記割り込み処理の識別情報を上記クリアレジスタに書き込むクリアレジスタ書込手段を備えてなることを特徴とする画像処理装置。
Comprising arithmetic means for executing interrupt processing, and a semiconductor integrated circuit for requesting interrupt processing to the arithmetic means for each band in which image data for one page used for image formation is divided into a plurality of bands. , Interrupt information used for the interrupt processing, a factor register that can be referred to by the arithmetic means, an interrupt request output means for outputting an interrupt request signal to the arithmetic means, and information is written by the arithmetic means An image processing apparatus comprising a clear register,
The semiconductor integrated circuit writes interrupt identification information writing means for writing identification information for identifying each interrupt information to be subsequently written to the factor register, the interrupt processing identification information written to the factor register, and the calculation Interrupt request signal stop means for stopping output of the interrupt request signal based on comparison with information written to the clear register by the means,
Clear register write in which the arithmetic means writes the identification information of the interrupt processing stored in the factor register to the clear register after executing the interrupt processing for each band based on the interrupt information stored in the factor register An image processing apparatus comprising: means.
JP2006039664A 2006-02-16 2006-02-16 Interrupt control method, arithmetic unit, and image processor Pending JP2007219837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006039664A JP2007219837A (en) 2006-02-16 2006-02-16 Interrupt control method, arithmetic unit, and image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006039664A JP2007219837A (en) 2006-02-16 2006-02-16 Interrupt control method, arithmetic unit, and image processor

Publications (1)

Publication Number Publication Date
JP2007219837A true JP2007219837A (en) 2007-08-30

Family

ID=38497073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006039664A Pending JP2007219837A (en) 2006-02-16 2006-02-16 Interrupt control method, arithmetic unit, and image processor

Country Status (1)

Country Link
JP (1) JP2007219837A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013097442A (en) * 2011-10-28 2013-05-20 Kyocera Document Solutions Inc Interruption control circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013097442A (en) * 2011-10-28 2013-05-20 Kyocera Document Solutions Inc Interruption control circuit

Similar Documents

Publication Publication Date Title
JP4536742B2 (en) Arithmetic processing apparatus and method for flash memory according to priority
US20100169546A1 (en) Flash memory access circuit
JP4935107B2 (en) Information processing device
US9172839B2 (en) Image forming apparatus, control method and storage medium
US8127052B2 (en) Data transfer control device and computer system
US20180182059A1 (en) Information processing apparatus and communication control method having communication mode based on function
WO2009098737A1 (en) External device access apparatus, its controlling method and system lsi
JP2007219837A (en) Interrupt control method, arithmetic unit, and image processor
JP2009080673A (en) Portable electronic apparatus and command processing method thereof
JP2008276739A (en) Information processing system and information processing program
JP4597032B2 (en) Computer system, basic program startup method, and loader program
US20080209085A1 (en) Semiconductor device and dma transfer method
JP6940283B2 (en) DMA transfer control device, DMA transfer control method, and DMA transfer control program
JP2009129459A (en) Interrupt jitter suppression
JP3130798B2 (en) Bus transfer device
JPS6148741B2 (en)
JP4522292B2 (en) Image processing apparatus and image processing method
JP2010122813A (en) Information processing apparatus, integrated circuit device, electronic apparatus
JP2007304926A (en) Information processing method and instruction generation method
JP2008305093A (en) Memory controller, control method for memory controller, program, and storage medium
JP5656589B2 (en) Data transfer device, data transfer method, and data transfer program
JP5088566B2 (en) PLC with interrupt function
JP2007185911A (en) Printer controller and printer
JP2008065512A (en) Data processor
JP2017117071A (en) Micro computer and electronic control device