JP4107278B2 - Processor control circuit and information processing apparatus - Google Patents

Processor control circuit and information processing apparatus Download PDF

Info

Publication number
JP4107278B2
JP4107278B2 JP2004283611A JP2004283611A JP4107278B2 JP 4107278 B2 JP4107278 B2 JP 4107278B2 JP 2004283611 A JP2004283611 A JP 2004283611A JP 2004283611 A JP2004283611 A JP 2004283611A JP 4107278 B2 JP4107278 B2 JP 4107278B2
Authority
JP
Japan
Prior art keywords
processor
unit
dma
detection
inquiry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004283611A
Other languages
Japanese (ja)
Other versions
JP2005158036A (en
Inventor
晃成 轟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004283611A priority Critical patent/JP4107278B2/en
Priority to US10/968,876 priority patent/US20050149771A1/en
Publication of JP2005158036A publication Critical patent/JP2005158036A/en
Application granted granted Critical
Publication of JP4107278B2 publication Critical patent/JP4107278B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Information Transfer Systems (AREA)

Description

本発明は、プロセッサを介さない所定処理の実行中に、プロセッサの動作状態を制御するプロセッサ制御回路およびプロセッサを介さずに所定処理を実行する情報処理装置に関する。   The present invention relates to a processor control circuit that controls an operating state of a processor during execution of a predetermined process without using a processor, and an information processing apparatus that executes the predetermined process without using a processor.

従来、この種の技術としては、DMA(Direct Memory Access)コントローラによるDMA処理モードの実行時、つまりI/OユニットとメモリとによるDMA処理中に、プロセッサへのクロック信号の供給を停止し、消費電力を低減する技術が知られている(例えば、特許文献1参照)。
特開平8−83133号公報
Conventionally, this type of technology has stopped the supply of the clock signal to the processor during execution of the DMA processing mode by the DMA (Direct Memory Access) controller, that is, during the DMA processing by the I / O unit and the memory. A technique for reducing electric power is known (see, for example, Patent Document 1).
JP-A-8-83133

しかしながら、上記従来技術にあっては、DMA処理中は、常に、プロセッサへのクロック信号の供給を停止するようになっているため、DMA処理中にプロセッサによって処理を行うことができず、プロセッサによる処理効率が低下してしまう恐れがあった。
本発明は、上記従来の技術の未解決の課題を解決することを目的とするものであって、プロセッサによる処理効率の低下を防止しつつ、プロセッサによる消費電力を低減することができるプロセッサ制御回路および情報処理装置を提供することを課題とする。
However, in the above prior art, during the DMA processing, the supply of the clock signal to the processor is always stopped. Therefore, the processing cannot be performed by the processor during the DMA processing. There was a risk that the processing efficiency would decrease.
An object of the present invention is to solve the above-mentioned unsolved problems of the prior art, and a processor control circuit capable of reducing power consumption by a processor while preventing a decrease in processing efficiency by the processor. It is another object of the present invention to provide an information processing apparatus.

上記課題を解決するために、第1の発明であるプロセッサ制御回路は、プロセッサを介さずに所定処理を実行可能な機能部と、前記機能部において前記所定処理の実行が開始された後、前記プロセッサが前記機能部の動作状態を問い合わせたか否かを検出する問い合わせ検出部と、前記機能部における前記所定処理の終了を検出する終了検出部と、前記機能部において前記所定処理の実行が開始された場合、前記プロセッサの動作状態を維持し、さらに、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を抑制する抑制部とを備えたことを特徴とする。 In order to solve the above-described problem, the processor control circuit according to the first invention includes a functional unit capable of executing a predetermined process without using a processor, and after the execution of the predetermined process is started in the functional unit, An inquiry detection unit that detects whether or not the processor has inquired about an operation state of the function unit, an end detection unit that detects the end of the predetermined process in the function unit, and execution of the predetermined process in the function unit is started. The operation state of the processor is maintained, and when the inquiry detection unit detects that the processor has inquired about the operation state of the function unit, the end detection unit performs the predetermined process in the function unit. End until is detected, and a suppressor for suppressing unit operations related query operating state of the functional unit by the processor And said that there were pictures.

なお、機能部の動作状態の問い合わせに関する動作を抑制する方法としては、問い合わせの頻度を低くする方法や、問い合わせを禁止する方法等を挙げることができる。
また、第2の発明であるプロセッサ制御回路は、前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を遅延させることを特徴とする。
As a method for suppressing the operation related to the inquiry about the operation state of the functional unit, a method for reducing the frequency of inquiries, a method for prohibiting inquiries, and the like can be given.
The processor control circuit according to a second aspect of the present invention is the processor control circuit, wherein when the inquiry detecting unit detects that the processor has inquired about the operating state of the functional unit, the termination detecting unit detects the functional unit. Until the end of the predetermined process is detected, the operation relating to the inquiry about the operation state of the functional unit by the processor is delayed.

さらに、第3の発明であるプロセッサ制御回路は、前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサに供給するクロック信号の周波数を低くすることを特徴とする。
この第1〜第3の発明によれば、機能部で所定処理が実行されたとしても、プロセッサが機能部の動作状態を問い合わせるまでは、プロセッサでそれまでの処理を継続することができ、またプロセッサによって機能部の動作状態の問い合わせがされると、プロセッサによる機能部の動作状態の問い合わせが抑制されるようにしたため、プロセッサによる処理効率の低下を防止しつつ、プロセッサによる消費電力を低減することができる。
The processor control circuit according to a third aspect of the present invention is the processor control circuit according to the present invention, wherein when the inquiry detecting unit detects that the processor has inquired about the operating state of the functional unit, the termination detecting unit detects the functional unit. The frequency of the clock signal supplied to the processor is lowered until the end of the predetermined processing is detected .
According to the first to third aspects of the invention, even if the predetermined process is executed in the functional unit, the processor can continue the process until the processor inquires about the operating state of the functional unit. When an inquiry about the operating state of a functional unit is made by the processor, the inquiry about the operating state of the functional unit by the processor is suppressed, thereby reducing power consumption by the processor while preventing a decrease in processing efficiency by the processor. Can do.

また、第4の発明であるプロセッサ制御回路は、前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサへのクロック信号の供給を停止することを特徴とする。
この第4の発明によれば、プロセッサの内部を構成するトランジスタのスイッチング動作が停止され、プロセッサによる消費電力をより低減することができる。
The processor control circuit according to a fourth aspect of the present invention is the processor control circuit, wherein when the inquiry detecting unit detects that the processor has inquired about the operating state of the functional unit, the termination detecting unit detects the functional unit. The supply of the clock signal to the processor is stopped until the end of the predetermined processing is detected .
According to the fourth aspect of the invention, the switching operation of the transistors constituting the inside of the processor is stopped, and the power consumption by the processor can be further reduced.

また、第5の発明であるプロセッサ制御回路は、前記抑制部は、前記クロック信号の供給が停止されているときに、前記クロック信号の供給を一時的に再開可能としたことを特徴とする。
さらに、第6の発明であるプロセッサ制御回路は、前記機能部は、DMA処理を実行可能であり、前記抑制部は、前記クロック信号の供給が停止されているときには、所定長のデータがDMA転送されるたびに前記クロック信号の供給を一時的に再開することを特徴とする。
The processor control circuit according to a fifth aspect of the invention is characterized in that the supply of the clock signal can be temporarily resumed when the supply of the clock signal is stopped.
Furthermore, in the processor control circuit according to a sixth aspect of the present invention, the functional unit can execute DMA processing, and the suppression unit transfers data of a predetermined length when the supply of the clock signal is stopped. It is characterized in that the supply of the clock signal is temporarily resumed every time it is performed.

これら第5及び第6の発明によれば、例えば、DMA処理中に、プロセッサへのクロック信号の供給が停止されても、そのDMA処理が終了するまえ、つまりDMA処理中にクロック信号の供給を一時的に再開することができる。
また、第7の発明であるプロセッサ制御回路は、前記機能部は、該機能部の動作状態を示す実行状態情報を記憶する状態記憶部と、前記プロセッサが該実行状態情報の読み出し信号を出力することにより前記機能部の動作状態を問い合わせたことが前記問い合わせ検出部によって検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されることに対応して、前記実行状態情報の読み出しが完了したことを示す読み出し完了信号を前記プロセッサに出力することによって、前記機能部における所定処理が終了したことを前記プロセッサに通知する状態通知部とを備えることを特徴とする。
According to the fifth and sixth inventions, for example, even if the supply of the clock signal to the processor is stopped during the DMA processing, the clock signal is supplied before the DMA processing is completed, that is, during the DMA processing. You can resume temporarily.
In the processor control circuit according to a seventh aspect of the invention, the functional unit stores a state storage unit that stores execution state information indicating an operation state of the functional unit, and the processor outputs a read signal of the execution state information. When the inquiry detection unit detects that the operation state of the function unit has been inquired, the execution state corresponds to the end detection unit detecting the end of the predetermined process in the function unit. And a status notification unit that notifies the processor that the predetermined processing in the functional unit is completed by outputting a read completion signal indicating that the reading of information is completed to the processor.

この第7の発明によれば、プロセッサによる実行状態情報の読み出し動作によって、前記動作状態の問い合わせを行うことができるため、所定処理の実行状態を検出する処理のためのプログラミングを容易なものとすることができる。
また、上記課題を解決するために、第8の発明である情報処理装置は、所定の演算処理を実行するプロセッサと、該プロセッサを介さずに所定処理を実行可能な機能部と、
前記機能部において前記所定処理の実行が開始された後、前記プロセッサが前記機能部の動作状態を問い合わせたか否かを検出する問い合わせ検出部と、前記機能部における前記所定処理の終了を検出する終了検出部と、前記機能部において前記所定処理の実行が開始された場合、前記プロセッサの動作状態を維持し、さらに、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を抑制する抑制部とを備えたことを特徴とする。
According to the seventh aspect of the invention, since the operation state can be inquired by the execution state information read operation by the processor, the programming for the process of detecting the execution state of the predetermined process is facilitated. be able to.
In order to solve the above-described problem, an information processing apparatus according to an eighth invention includes a processor that executes predetermined arithmetic processing, a functional unit that can execute the predetermined processing without using the processor,
After the execution of the predetermined process is started in the functional unit, an inquiry detection unit that detects whether or not the processor has inquired about an operation state of the functional unit, and an end that detects the end of the predetermined process in the functional unit When the execution of the predetermined process is started in the detection unit and the function unit, the operation state of the processor is maintained, and further, the inquiry detection unit detects that the processor inquires about the operation state of the function unit A suppression unit that suppresses an operation related to an inquiry about an operation state of the functional unit by the processor until the end detection unit detects the end of the predetermined process in the functional unit. To do.

なお、機能部の動作状態の問い合わせに関する動作を抑制する方法としては、第1の発明と同様に、問い合わせの頻度を低くする方法や、問い合わせを禁止する方法等を挙げることができる。
また、第9の発明である情報処理装置は、前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を遅延させることを特徴とする。
Note that, as a method of suppressing the operation related to the inquiry about the operation state of the functional unit, a method of reducing the frequency of inquiries, a method of prohibiting inquiries, and the like can be cited as in the first invention.
Further, in the information processing device according to the ninth invention, when the suppression unit detects that the processor has inquired about an operating state of the function unit, the end detection unit detects the function unit. Until the end of the predetermined process is detected, the operation relating to the inquiry about the operation state of the functional unit by the processor is delayed.

さらに、第10の発明である情報処理装置は、前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサに供給するクロック信号の周波数を低くすることを特徴とする。
この第8〜第10の発明によれば、機能部で所定処理が実行されたとしても、プロセッサが機能部の動作状態を問い合わせるまでは、プロセッサでそれまでの処理を継続することができ、またプロセッサによって機能部の動作状態の問い合わせがされると、プロセッサによる機能部の動作状態の問い合わせが抑制されるようにしたため、プロセッサによる処理効率の低下を防止しつつ、プロセッサによる消費電力を低減することができる。
Furthermore, in the information processing apparatus according to the tenth aspect of the invention, when the suppression unit detects that the processor has inquired about the operating state of the function unit, the end detection unit detects the function unit. The frequency of the clock signal supplied to the processor is lowered until the end of the predetermined processing is detected .
According to the eighth to tenth inventions, even if a predetermined process is executed in the functional unit, the processor can continue the process until the processor inquires about the operating state of the functional unit. When an inquiry about the operating state of a functional unit is made by the processor, the inquiry about the operating state of the functional unit by the processor is suppressed, thereby reducing power consumption by the processor while preventing a decrease in processing efficiency by the processor. Can do.

また、第11の発明である情報処理装置は、前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサへのクロック信号の供給を停止することを特徴とする。
この第11の発明によれば、プロセッサの内部を構成するトランジスタのスイッチング動作が停止され、プロセッサによる消費電力をより低減することができる。
The information processing apparatus according to an eleventh aspect of the present invention is the information processing apparatus, wherein when the inquiry detecting unit detects that the processor has inquired about an operating state of the function unit, the end detecting unit detects the function unit. The supply of the clock signal to the processor is stopped until the end of the predetermined processing is detected .
According to the eleventh aspect, the switching operation of the transistors constituting the inside of the processor is stopped, and the power consumption by the processor can be further reduced.

また、第12の発明である情報処理装置は、前記抑制部は、前記クロック信号の供給が停止されているときに、前記クロック信号の供給を一時的に再開可能としたことを特徴とする。
また、第13の発明である情報処理装置は、前記機能部は、DMA処理を実行可能であり、前記抑制部は、前記クロック信号の供給が停止されているときには、所定長のデータがDMA転送されるたびに前記クロック信号の供給を一時的に再開することを特徴とする。
The information processing apparatus according to a twelfth aspect of the invention is characterized in that the suppression unit can temporarily resume the supply of the clock signal when the supply of the clock signal is stopped.
In the information processing apparatus according to a thirteenth aspect of the present invention, the functional unit can execute DMA processing, and the suppression unit transfers data of a predetermined length by DMA transfer when the supply of the clock signal is stopped. It is characterized in that the supply of the clock signal is temporarily resumed every time it is performed.

これら第12及び第13の発明によれば、例えば、DMA処理中に、プロセッサへのクロック信号の供給が停止されても、そのDMA処理が終了するまえ、つまりDMA処理中にクロック信号の供給を一時的に再開することができる。
また、第14の発明である情報処理装置は、前記機能部は、該機能部の動作状態に関する検出条件を示す検出条件情報を記憶する検出条件記憶部を備え、前記プロセッサは、動作状態の検出における所定条件が設定された前記検出条件情報の前記検出条件記憶部への書き込み信号を出力することにより、前記動作状態の問い合わせを行い、前記機能部は、前記動作状態が前記検出条件情報の示す条件を充足した場合に、前記検出条件情報の書き込みが完了したことを示す書き込み完了信号を前記プロセッサに出力することによって、前記機能部における所定処理が終了したことを前記プロセッサに通知する状態通知部を備えることを特徴とする。
According to these twelfth and thirteenth inventions, for example, even if the supply of the clock signal to the processor is stopped during the DMA processing, the clock signal is supplied before the DMA processing ends, that is, during the DMA processing. You can resume temporarily.
The information processing apparatus according to a fourteenth aspect of the present invention is that the functional unit includes a detection condition storage unit that stores detection condition information indicating a detection condition related to an operation state of the function unit, and the processor detects the operation state. The operation condition is inquired by outputting a write signal to the detection condition storage section of the detection condition information in which the predetermined condition is set, and the function section indicates the operation condition indicated by the detection condition information. A state notifying unit for notifying the processor that a predetermined process has been completed by outputting a write completion signal indicating that the writing of the detection condition information has been completed to the processor when a condition is satisfied. It is characterized by providing .

さらに、第15の発明である情報処理装置は、前記機能部は、前記所定処理を複数実行可能であり、前記プロセッサは、前記所定処理それぞれを特定する情報と、複数の前記所定処理の間に設定された動作状態の検出条件とを含む前記検出条件情報の前記検出条件記憶部への書き込み信号を出力することにより、前記動作状態の問い合わせを行い、前記機能部における前記状態通知部は、前記検出条件情報に示される所定処理間において動作状態が検出条件と一致した場合に、前記書き込み完了信号を前記プロセッサに出力することによって、前記機能部における所定処理が終了したことを前記プロセッサに通知することを特徴とする。 Furthermore, in the information processing apparatus according to the fifteenth aspect, the functional unit can execute a plurality of the predetermined processes, and the processor can execute information between each of the predetermined processes and a plurality of the predetermined processes. by outputting a write signal to the detection condition storing unit of the detection condition information including the detection condition of the set operation condition, inquires of the operating state, the state notification unit in the functional unit, the When the operation state coincides with the detection condition between the predetermined processes indicated in the detection condition information, the write completion signal is output to the processor to notify the processor that the predetermined process in the functional unit is completed. It is characterized by that.

これら第14及び第15の発明によれば、プロセッサが前記機能部の動作状態を問い合わせる際に、その動作状態に関する検出条件を示す検出条件情報が前記検出条件記憶部に書き込まれる。そのため、DMAのチャネルが複数ある場合等、前記機能部において所定処理が複数実行される場合に、それらの間における複雑な条件を設定して動作状態を問い合わせることができるため、ソフトウェアの効率的な実行制御を行うことが可能となる。   According to these fourteenth and fifteenth inventions, when the processor inquires about the operation state of the functional unit, detection condition information indicating a detection condition related to the operation state is written in the detection condition storage unit. Therefore, when a plurality of predetermined processes are executed in the functional unit, such as when there are a plurality of DMA channels, it is possible to set an intricate condition between them and inquire about the operation state, so that the efficient software Execution control can be performed.

このように、本発明によれば、プロセッサによる処理効率の低下を防止しつつ、プロセッサによる消費電力を低減することができるプロセッサ制御回路および情報処理装置を提供することが可能となる。   As described above, according to the present invention, it is possible to provide a processor control circuit and an information processing apparatus capable of reducing power consumption by a processor while preventing a decrease in processing efficiency by the processor.

以下、本発明の実施形態を図面に基づいて説明する。
(第1の実施の形態)
初めに、本発明のプロセッサ制御回路の実施形態を説明する。
図1は、本発明の第1の実施の形態におけるプロセッサ制御回路を備えた情報処理装置1の概略構成を示すブロック図である。この図1に示すように、情報処理装置1は、プロセッサ2、RAM(Random Access Memory)3、状態通知レジスタ7を有するDMA(D irect Memory Access)コントローラ4、及びクロック制御部5で構成され、クロック制御部5を除く各部は、データバス6で互いにデータ授受可能に接続されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
First, an embodiment of the processor control circuit of the present invention will be described.
FIG. 1 is a block diagram showing a schematic configuration of an information processing apparatus 1 including a processor control circuit according to the first embodiment of the present invention. As shown in FIG. 1, the information processing apparatus 1 includes a processor 2, a RAM (Random Access Memory) 3, a DMA (Direct Memory Access) controller 4 having a state notification register 7, and a clock control unit 5. Each unit except the clock control unit 5 is connected to the data bus 6 so as to be able to exchange data.

これらのうちプロセッサ2は、図示しない記憶装置に格納されている基本制御プログラムやアプリケーションプログラム等の各種プログラム及びデータを読み込み、それら各種プログラム及びデータをRAM3内に設けられるワークエリアに展開実行する。そして、情報処理装置1が備える各部の制御や演算処理等といった、各種処理を実行する。
さらに、プロセッサ2は、図2のフローチャートに示すように、DMA処理のためのパラメータ(DMAパラメータ)を設定し(ステップS101)、DMAコントローラ4にDMA処理を開始させるDMAスタートコマンドを出力する(ステップS102)。そして、DMAの動作状態を取得するために、状態通知レジスタ読み出し要求信号をDMAコントローラ4に出力する。その後、DMAコントローラ4からDMA処理中でないことを示すDMA実行状態フラグが読み出されると、状態通知レジスタ読み出し要求信号の出力を停止し、状態通知レジスタの読み出しが完了する(ステップS103)。なお、プロセッサ2は、状態通知レジスタ読み出し要求信号の出力中にクロック信号の供給が停止されても、状態通知レジスタ読み出し要求信号の出力を継続するようになっている。
Among these, the processor 2 reads various programs and data such as a basic control program and application program stored in a storage device (not shown), and develops and executes these various programs and data in a work area provided in the RAM 3. And various processes, such as control of each part with which the information processing apparatus 1 is provided, and arithmetic processing, are performed.
Further, as shown in the flowchart of FIG. 2, the processor 2 sets a parameter (DMA parameter) for DMA processing (step S101), and outputs a DMA start command for causing the DMA controller 4 to start DMA processing (step S101). S102). Then, a status notification register read request signal is output to the DMA controller 4 in order to acquire the DMA operation status. Thereafter, when a DMA execution status flag indicating that DMA processing is not in progress is read from the DMA controller 4, the output of the status notification register read request signal is stopped, and the reading of the status notification register is completed (step S103). Note that the processor 2 continues to output the status notification register read request signal even if the supply of the clock signal is stopped during the output of the status notification register read request signal.

また、RAM3は、プロセッサ2が各種プログラムに従って上記処理を実行するときに、各種プログラムを展開するワークエリアを形成するとともに、プロセッサ2により実行される各種処理に係るデータを展開するためのメモリ領域を形成する。
さらに、DMAコントローラ4は、プロセッサ2からDMAスタートコマンドが出力されるとDMA処理を開始する。
The RAM 3 forms a work area for developing various programs when the processor 2 executes the above-described processing according to various programs, and also has a memory area for developing data related to various processes executed by the processor 2. Form.
Furthermore, when the DMA start command is output from the processor 2, the DMA controller 4 starts the DMA processing.

また、DMAコントローラ4は、プロセッサ2から状態通知レジスタ読み出し要求信号が入力されると、DMA処理中であるか否かを判定し、DMA処理中でない場合には状態通知レジスタ7に格納されているDMA処理中でないことを示すDMA実行状態フラグをプロセッサ2に読み出させ、DMA処理中である場合にはプロセッサ2に対するクロック信号の供給が停止された状態とさせるWAIT信号をクロック制御部5に出力する。   When the status notification register read request signal is input from the processor 2, the DMA controller 4 determines whether or not DMA processing is in progress. If the DMA processing is not in progress, it is stored in the status notification register 7. A DMA execution status flag indicating that DMA processing is not in progress is read out by the processor 2, and when DMA processing is in progress, a WAIT signal that causes the supply of the clock signal to the processor 2 to be stopped is output to the clock controller 5. To do.

さらに、クロック制御部5は、DMAコントローラ4からWAIT信号が出力されているか否かを判定し、WAIT信号が出力されていない場合にはプロセッサ2にクロック信号を供給し、WAIT信号が出力されている場合にはクロック信号の供給を停止する。
次に、本実施形態の情報処理装置1の動作を詳細に説明する。
まず、図3に示すように、サイクル「2」で、DMAコントローラ4にDMAの開始を要求するDMA要求信号が出力されたとする。すると、サイクル「3」で、DMAコントローラ4からDMA転送処理中であることを通知する信号を出力する。プロセッサ2で所定の処理が実行され、図2に示すように、まずそのステップS101で、DMAパラメータが設定され、ステップS102で、図3(b)に示すように、DMAスタートコマンドがDMAコントローラ4に出力される。そして、サイクル「3」で、図3(c)に示すように、DMAコントローラの動作状態が「動作中」とされ、DMAコントローラ4によってDMA処理が開始される。
Further, the clock control unit 5 determines whether or not the WAIT signal is output from the DMA controller 4, and when the WAIT signal is not output, supplies the clock signal to the processor 2 and outputs the WAIT signal. If so, the supply of the clock signal is stopped.
Next, the operation of the information processing apparatus 1 according to the present embodiment will be described in detail.
First, as shown in FIG. 3, it is assumed that a DMA request signal for requesting the DMA controller 4 to start DMA is output in the cycle “2”. Then, in cycle “3”, the DMA controller 4 outputs a signal notifying that DMA transfer processing is in progress. As shown in FIG. 2, the processor 2 executes predetermined processing. First, in step S101, a DMA parameter is set. In step S102, a DMA start command is sent to the DMA controller 4 as shown in FIG. Is output. Then, in cycle “3”, as shown in FIG. 3C, the operation state of the DMA controller is set to “in operation”, and the DMA processing is started by the DMA controller 4.

また、DMA処理が継続されるうちに、サイクル「4」〜「6」を経て、サイクル「7」で、図3(d)に示すように、プロセッサ2からDMAコントローラ4に状態通知レジスタ読み出し要求信号が出力される。すると、サイクル「8」で、図3(f)に示すように、DMAコントローラ4からクロック制御部5にハイレベルのWAIT信号が出力され、サイクル「9」で、図3(h)に示すように、クロック制御部5によってプロセッサ2に供給していた動作クロック信号が停止される。   Further, while the DMA processing is continued, through cycles “4” to “6”, in cycle “7”, as shown in FIG. 3D, the processor 2 sends a status notification register read request to the DMA controller 4. A signal is output. Then, in cycle “8”, as shown in FIG. 3F, a high level WAIT signal is output from the DMA controller 4 to the clock controller 5, and in cycle “9”, as shown in FIG. In addition, the operation clock signal supplied to the processor 2 by the clock controller 5 is stopped.

さらに、サイクル「10」〜「13」を経て、サイクル「14」で、図3(c)に示すように、DMAコントローラ4の動作状態がローレベルとされ、DMA処理が終了したとする。
すると、サイクル「15」で、DMAコントローラ4によって、DMA処理中でないことを示すDMA実行状態フラグがプロセッサ2に読み出され、WAIT信号が停止状態とされ、クロック制御部5からプロセッサ2にクロック信号の供給が再開され、前記DMA実行状態フラグが読み出されると状態通知レジスタ読み出し要求信号が停止され、サイクル「16」で、プロセッサ2の処理が再開される。
Furthermore, it is assumed that the operation state of the DMA controller 4 is set to the low level and the DMA processing is completed in the cycle “14” through the cycles “10” to “13” as shown in FIG. 3C.
Then, in cycle “15”, the DMA execution state flag indicating that the DMA processing is not in progress is read to the processor 2 by the DMA controller 4, the WAIT signal is stopped, and the clock signal from the clock control unit 5 to the processor 2 is read. When the DMA execution status flag is read, the status notification register read request signal is stopped, and the processing of the processor 2 is restarted in cycle “16”.

このように、本実施形態の情報処理装置1によれば、DMAコントローラ4でDMA処理が実行されたとしても、プロセッサ2がDMAコントローラ4の動作状態を問い合わせるまで、つまり状態通知レジスタ読み出し要求信号を出力するまでは、プロセッサ2でそれまでの処理を継続することができ、またプロセッサ2から状態通知レジスタ読み出し要求信号が出力されると、プロセッサ2へのクロック信号の供給が停止されるようにしたため、プロセッサ2による処理効率の低下を防止しつつ、プロセッサ2による消費電力を低減することができる。   Thus, according to the information processing apparatus 1 of the present embodiment, even if the DMA processing is executed by the DMA controller 4, the processor 2 inquires about the operation state of the DMA controller 4, that is, the state notification register read request signal is transmitted. Until the output, the processor 2 can continue the processing so far, and when the processor 2 outputs the status notification register read request signal, the supply of the clock signal to the processor 2 is stopped. The power consumption by the processor 2 can be reduced while preventing the processing efficiency by the processor 2 from being lowered.

また、DMA処理が終了するまでクロック信号の供給を停止するようにしたため、DMA処理の実行中に、DMAコントローラ4の動作状態の問い合わせが何度も実行されてしまうことを防止でき、プロセッサ2による消費電力をより低減することができる。
ちなみに、図15に示すように、DMA処理が実行されているときにプロセッサ2に自身の動作を停止させる従来の方法では、DMA処理の実行中に、DMAコントローラ4の動作状態の問い合わせをプロセッサ2自身に何度も実行させなければならず、プロセッサ2による消費電力が大きくなってしまう。
In addition, since the supply of the clock signal is stopped until the DMA processing is completed, it is possible to prevent the inquiry about the operation state of the DMA controller 4 from being performed many times during the execution of the DMA processing. Power consumption can be further reduced.
Incidentally, as shown in FIG. 15, in the conventional method of causing the processor 2 to stop its own operation when the DMA processing is being executed, an inquiry about the operating state of the DMA controller 4 is made during the DMA processing. It must be executed several times by itself and power consumption by the processor 2 becomes large.

また、本実施形態の情報処理装置1によれば、プロセッサ2が状態通知レジスタ7を読み出す動作によってDMAコントローラ4の動作状態を問い合わせることができるため、DMAの実行状態を検出する処理のためのプログラミングを容易なものとすることができる。   Further, according to the information processing apparatus 1 of the present embodiment, the processor 2 can inquire about the operation state of the DMA controller 4 by the operation of reading the state notification register 7, and therefore programming for processing for detecting the DMA execution state Can be made easy.

(第2の実施の形態)
次に、本発明のプロセッサ制御回路の第2の実施の形態について説明する。
この実施形態は、プロセッサ2へのクロック信号の供給が停止されているときには、所定長のデータがDMA転送されるたびにクロック信号の供給を一時的に再開するようにした点が前記第1の実施の形態とは異なる。具体的には、図4に示すように、DMA転送するデータ長を設定する転送データ長設定部8がDMAコントローラ4に設けられ、DMAコントローラ4に、そのデータ長がデータ転送されるたびに、DMA実行状態フラグをプロセッサ2に読み出させるようにした。また、前記第1実施形態のプロセッサ2で行われる図2の処理に代えて、図5のステップS201〜S207の制御処理が行われる。なお、この実施形態は、前記第1実施形態と同等の構成を多く含んでおり、同等の構成には同等の符号を付して、その詳細な説明を省略する。
(Second Embodiment)
Next, a second embodiment of the processor control circuit of the present invention will be described.
In the present embodiment, when the supply of the clock signal to the processor 2 is stopped, the supply of the clock signal is temporarily resumed every time data of a predetermined length is DMA-transferred. Different from the embodiment. Specifically, as shown in FIG. 4, a transfer data length setting unit 8 for setting a data length for DMA transfer is provided in the DMA controller 4, and every time the data length is transferred to the DMA controller 4, The processor 2 is made to read the DMA execution state flag. Further, instead of the processing of FIG. 2 performed by the processor 2 of the first embodiment, the control processing of steps S201 to S207 of FIG. 5 is performed. In addition, this embodiment contains many structures equivalent to the said 1st Embodiment, an equivalent code | symbol is attached | subjected to an equivalent structure and the detailed description is abbreviate | omitted.

まずそのステップS201では、DMAパラメータを設定する。
次にステップS202に移行して、連続してDMA転送するデータ長、つまりプロセッサ2へのクロック信号の供給を一時的に再開するためのデータ長を転送データ長設定部8に設定させる。
次にステップS203に移行して、DMAコントローラ4にDMAスタートコマンドを出力する。
First, in step S201, DMA parameters are set.
In step S202, the transfer data length setting unit 8 sets the data length for continuous DMA transfer, that is, the data length for temporarily restarting the supply of the clock signal to the processor 2.
In step S203, a DMA start command is output to the DMA controller 4.

次にステップS204に移行して、状態通知レジスタ読み出し要求信号をDMAコントローラ4に出力する。
次にステップS205に移行して、転送データ長設定部8で設定されたデータ長がDMA転送されたのちに、状態通知レジスタ7からDMAの転送状態を読み出し、DMA転送処理が終了している場合には図5の制御フローを終了し、DMA転送が終了していない場合には、プロセッサ2において所定処理を実行する必要があるか否かを判定する(ステップS206)。所定処理実行が必要ない場合には、ステップS204に制御が戻り、所定処理実行が必要な場合にはステップS207において処理を行う。そして、ステップS207の所定処理の実行が完了した時点でステップS204に移行する。
Next, the process proceeds to step S <b> 204, and a status notification register read request signal is output to the DMA controller 4.
Next, the process proceeds to step S205, and after the data length set by the transfer data length setting unit 8 is DMA-transferred, the DMA transfer state is read from the status notification register 7 and the DMA transfer process is completed. If the control flow of FIG. 5 is finished and the DMA transfer is not finished, it is determined whether or not the processor 2 needs to execute a predetermined process (step S206). If the predetermined process execution is not necessary, the control returns to step S204, and if the predetermined process execution is necessary, the process is performed in step S207. Then, when the execution of the predetermined process in step S207 is completed, the process proceeds to step S204.

次に、本実施形態の情報処理装置1の動作を詳細に説明する。
まず、図6に示すように、サイクル「1」で、DMAコントローラ4にDMAの開始を要求するDMA要求信号が出力されたとする。すると、サイクル「2」で、DMAコントローラ4からDMA転送処理中であることを通知する信号を出力する。プロセッサ2で所定の処理が実行され、図5に示すように、まずそのステップS201で、DMAパラメータが設定され、ステップS202で、連続してDMA転送するデータ長が転送データ長設定部8で設定され、ステップS203で、図6(b)に示すように、ハイレベルのDMAスタートコマンドがDMAコントローラ4に出力され、DMAコントローラ4によってDMA処理が開始される。
Next, the operation of the information processing apparatus 1 according to the present embodiment will be described in detail.
First, as shown in FIG. 6, it is assumed that a DMA request signal for requesting the DMA controller 4 to start DMA is output in the cycle “1”. Then, in cycle “2”, the DMA controller 4 outputs a signal notifying that DMA transfer processing is in progress. As shown in FIG. 5, the processor 2 executes predetermined processing. First, in step S201, the DMA parameter is set. In step S202, the data length for continuous DMA transfer is set by the transfer data length setting unit 8. In step S203, a high-level DMA start command is output to the DMA controller 4 as shown in FIG. 6B, and the DMA processing is started by the DMA controller 4.

また、DMA処理が継続されるうちに、サイクル「3」を経て、サイクル「4」で、プロセッサ2から、図6(d)に示すように、ステップS204によって、プロセッサ2からDMAコントローラ4にハイレベルの状態通知レジスタ読み出し要求信号が出力されたとする。すると、サイクル「5」で、図6(f)に示すように、DMAコントローラ4からクロック制御部5にハイレベルのWAIT信号が出力され、サイクル「6」で、図6(h)に示すように、クロック制御部5によってプロセッサ2に供給していた動作クロック信号が停止される。   In addition, as the DMA processing continues, after going through cycle “3”, in cycle “4”, as shown in FIG. Assume that a level status notification register read request signal is output. Then, in cycle “5”, as shown in FIG. 6F, the DMA controller 4 outputs a high-level WAIT signal to the clock controller 5, and in cycle “6”, as shown in FIG. 6H. In addition, the operation clock signal supplied to the processor 2 by the clock controller 5 is stopped.

さらに、サイクル「7」を経て、サイクル「8」で、図6(c)に示すように、転送データ長設定部8で設定されたデータ長がDMA転送され、DMAコントローラの動作状態がローレベルとされたとする。すると、DMAコントローラ4によって、DMA実行状態フラグがプロセッサ2に読み出され、WAIT信号が停止状態とされ、クロック制御部5からプロセッサ2にクロック信号の供給が一時的に再開され、前記DMA実行状態フラグが読み出されると状態通知レジスタ読み出し要求信号が停止され、DMA転送が終了していないのでステップS205の判定が「No」となり、またステップS206の判定が「Yes」となると、ステップS207で所定処理を実行する。サイクル「9」で、ステップS204によって、プロセッサ2からDMAコントローラ4にハイレベルの状態通知レジスタ読み出し要求信号が再び出力される。   Further, after cycle “7”, in cycle “8”, as shown in FIG. 6C, the data length set by transfer data length setting unit 8 is DMA-transferred, and the operating state of the DMA controller is low level. Suppose that Then, the DMA execution state flag is read by the DMA controller 4 to the processor 2, the WAIT signal is stopped, the supply of the clock signal from the clock controller 5 to the processor 2 is temporarily resumed, and the DMA execution state is When the flag is read, the status notification register read request signal is stopped, and the DMA transfer is not completed, so the determination in step S205 is “No”, and if the determination in step S206 is “Yes”, a predetermined process is performed in step S207. Execute. In cycle “9”, a high-level state notification register read request signal is output again from the processor 2 to the DMA controller 4 in step S204.

このように、本実施形態にあっては、DMA処理中に、プロセッサ2へのクロック信号の供給が停止されても、そのDMA処理が終了する前、つまりDMA処理中にクロック信号の供給を一時的に再開することができる。
なお、上記実施形態では、DMAコントローラ4が機能部を構成し、クロック制御部5が抑制部を構成し、状態通知レジスタ7が状態記憶部を構成する。
As described above, in the present embodiment, even if the supply of the clock signal to the processor 2 is stopped during the DMA process, the supply of the clock signal is temporarily performed before the DMA process ends, that is, during the DMA process. Can be resumed.
In the above embodiment, the DMA controller 4 constitutes a functional unit, the clock control unit 5 constitutes a suppression unit, and the state notification register 7 constitutes a state storage unit.

また、上記実施形態は、本発明に係るプロセッサ制御回路の一例を示したものであり、その構成等を限定するものではない。
例えば、上記実施形態では、プロセッサ2から状態通知レジスタ読み出し要求信号が出力されると、プロセッサ2へのクロック信号の供給を停止する例を示したが、これに限られるものではなく、例えば、プロセッサ2に供給するクロック信号の周波数を低くし、状態通知レジスタ7の読み出しの頻度が低くなるようにしてもよい。
The above embodiment shows an example of the processor control circuit according to the present invention, and does not limit the configuration or the like.
For example, in the above-described embodiment, when the status notification register read request signal is output from the processor 2, the supply of the clock signal to the processor 2 is stopped. However, the present invention is not limited to this. The frequency of the clock signal supplied to 2 may be lowered so that the frequency of reading the status notification register 7 is lowered.

また、プロセッサ2へのクロック信号の供給を停止し、プロセッサ2の機能を完全に停止する(WAIT状態とする)例を示したが、これに限られるものではなく、例えば、プロセッサ2へのクロック信号の供給を停止しつつ、外部からの割り込みによって割り込み処理プログラムを起動可能とする(スリープ状態とする)ようにしてもよい。
さらに、クロック制御部5によって、プロセッサ2へのクロック信号の供給状態を制御する例を示したが、これに限られるものではなく、例えば、DMA処理が終了するまで、単に、プロセッサ2によるDMAコントローラ4の動作状態の問い合わせに関する動作を遅延させるようにしてもよい。そのようにすれば、プロセッサ2によってDMA処理中にポーリングを行う方法に比べ、プロセッサ2によって実行するプログラムを簡潔なものとすることができ、プロセッサ2による処理効率を向上させることができる。
Further, the example in which the supply of the clock signal to the processor 2 is stopped and the function of the processor 2 is completely stopped (set to the WAIT state) is shown, but the present invention is not limited to this. The interrupt processing program may be activated (set to the sleep state) by an external interrupt while the supply of signals is stopped.
Furthermore, although the example in which the clock control unit 5 controls the supply state of the clock signal to the processor 2 has been shown, the present invention is not limited to this. For example, the DMA controller by the processor 2 is simply used until the DMA processing is completed. The operation relating to the inquiry about the operation state 4 may be delayed. By doing so, the program executed by the processor 2 can be simplified compared to the method in which the processor 2 performs polling during DMA processing, and the processing efficiency of the processor 2 can be improved.

(第3の実施の形態)
次に、本発明の情報処理装置の実施形態を説明する。
この実施形態は、第1の実施形態においてプロセッサ2がDMAコントローラ4の動作状態を問い合わせる際に、状態通知レジスタ7を読み出すのに対し、後述するプロセッサ102がDMAコントローラ104の動作状態を問い合わせる際に、条件設定レジスタ107に所定情報(後述する検出条件情報)を書き込む点が前記第1の実施の形態とは異なる。
(Third embodiment)
Next, an embodiment of the information processing apparatus of the present invention will be described.
In this embodiment, when the processor 2 inquires about the operation state of the DMA controller 4 in the first embodiment, the state notification register 7 is read, whereas when the processor 102 to be described later inquires about the operation state of the DMA controller 104. This is different from the first embodiment in that predetermined information (detection condition information described later) is written in the condition setting register 107.

図7は、本発明の第3の実施の形態における情報処理装置100の概略構成を示すブロック図である。この図7に示すように、情報処理装置100は、プロセッサ102、RAM103、条件設定レジスタ107を有するDMAコントローラ104、及びクロック制御部105で構成され、クロック制御部105を除く各部は、データバス106で互いにデータ授受可能に接続されている。   FIG. 7 is a block diagram showing a schematic configuration of the information processing apparatus 100 according to the third embodiment of the present invention. As shown in FIG. 7, the information processing apparatus 100 includes a processor 102, a RAM 103, a DMA controller 104 having a condition setting register 107, and a clock control unit 105. Each unit excluding the clock control unit 105 includes a data bus 106. Are connected to each other so as to be able to exchange data.

これらのうちプロセッサ102は、図示しない記憶装置に格納されている基本制御プログラムやアプリケーションプログラム等の各種プログラム及びデータを読み込み、それら各種プログラム及びデータをRAM103内に設けられるワークエリアに展開実行する。そして、情報処理装置100が備える各部の制御や演算処理等といった、各種処理を実行する。   Among these, the processor 102 reads various programs and data such as a basic control program and application program stored in a storage device (not shown), and develops and executes these various programs and data in a work area provided in the RAM 103. And various processes, such as control of each part with which the information processing apparatus 100 is provided, and arithmetic processing, are performed.

さらに、プロセッサ102は、図8のフローチャートに示すように、DMA処理のためのパラメータ(DMAパラメータ)を設定し(ステップS301)、DMAコントローラ104にDMA処理を開始させるDMAスタートコマンドを出力する(ステップS302)。そして、DMAの動作状態を取得するために、条件設定レジスタ書き込み要求信号および検出条件情報(書き込みデータ)をDMAコントローラ104に出力する。その後、DMAコントローラ104から条件設定レジスタ107への書き込みが完了したことを示す書き込み完了信号が出力されると、条件設定レジスタ107への書き込みが完了する(ステップS303)。   Further, as shown in the flowchart of FIG. 8, the processor 102 sets a parameter (DMA parameter) for DMA processing (step S301), and outputs a DMA start command for causing the DMA controller 104 to start DMA processing (step S301). S302). Then, a condition setting register write request signal and detection condition information (write data) are output to the DMA controller 104 in order to acquire the DMA operation state. Thereafter, when a write completion signal indicating completion of writing to the condition setting register 107 is output from the DMA controller 104, writing to the condition setting register 107 is completed (step S303).

ここで、検出条件情報について説明する。
本実施の形態において、DMAコントローラ104には複数のチャネルが用意され複数のハードウェアモジュールにおけるDMAを実行可能である。そのため、同時に複数のDMA転送が行われる場合等には、図9に示すように、DMAの動作状態を示すステートマシンが複数動作している状態となる。検出条件情報は、これら複数のステートマシンSM0〜SMnにおける動作状態を検出する際の検出条件を示している。
Here, the detection condition information will be described.
In the present embodiment, a plurality of channels are prepared in the DMA controller 104, and DMA in a plurality of hardware modules can be executed. Therefore, when a plurality of DMA transfers are performed at the same time, as shown in FIG. 9, a plurality of state machines indicating the DMA operation state are operating. The detection condition information indicates a detection condition when detecting an operation state in the plurality of state machines SM0 to SMn.

図10は、検出条件情報のデータ構成例を示す図である。
図10において、検出条件情報は、8ビットのデータによって構成されており、下位4ビットは、4つのステートマシンSM0〜SM3それぞれの指定状態(DMA転送状態の確認対象であることを示す“1”およびDMA転送の確認対象でないことを示す“0”)を示すビットデータ(以下、「確認対象設定データ」と言う。)、上位4ビットは、下位4ビットのビットデータについて設定された検出条件(ビットデータに対してAND条件が設定されていることを示す“1000”およびビットデータに対してOR条件が設定されていることを示す“1100”)を示すビットデータ(以下、「条件設定データ」と言う。)である。
FIG. 10 is a diagram illustrating a data configuration example of detection condition information.
In FIG. 10, the detection condition information is composed of 8-bit data, and the lower 4 bits are “1” indicating the specified state of each of the four state machines SM0 to SM3 (DMA transfer state confirmation target). In addition, bit data (hereinafter referred to as “confirmation target setting data”) indicating bit data “0” indicating that it is not a confirmation target of DMA transfer, and the upper 4 bits are detection conditions set for bit data of lower 4 bits ( Bit data (hereinafter, “condition setting data”) indicating “1000” indicating that an AND condition is set for bit data and “1100” indicating that an OR condition is set for bit data Say.)

即ち、検出条件情報の条件設定データ(上位4ビット)が“1000”である場合には、確認対象設定データ(下位4ビット)において“1”が設定されているステートマシン(ハードウェアモジュール)の全てがDMA転送中でなければ、DMAコントローラ104から書き込み完了信号が出力される。また、検出条件情報の上位4ビットが“1100”である場合には、確認対象設定データ(下位4ビット)において“1”が設定されているステートマシン(ハードウェアモジュール)のいずれかがDMA転送中でなければ、DMAコントローラ104から書き込み完了信号が出力される。   That is, when the condition setting data (upper 4 bits) of the detection condition information is “1000”, the state machine (hardware module) in which “1” is set in the confirmation target setting data (lower 4 bits). If not all of the DMA transfer is in progress, a write completion signal is output from the DMA controller 104. When the upper 4 bits of the detection condition information is “1100”, any of the state machines (hardware modules) in which “1” is set in the confirmation target setting data (lower 4 bits) is DMA-transferred. If not, the DMA controller 104 outputs a write completion signal.

図7に戻り、RAM103は、プロセッサ102が各種プログラムに従って上記処理を実行するときに、各種プログラムを展開するワークエリアを形成するとともに、プロセッサ102により実行される各種処理に係るデータを展開するためのメモリ領域を形成する。
DMAコントローラ104は、プロセッサ102からDMAスタートコマンドが出力されるとDMA処理を開始する。
Returning to FIG. 7, the RAM 103 forms a work area for developing the various programs when the processor 102 executes the above-described processing according to the various programs, and expands data related to the various processes executed by the processor 102. A memory area is formed.
The DMA controller 104 starts DMA processing when a DMA start command is output from the processor 102.

また、DMAコントローラ104は、DMA処理の状態を管理する状態通知部104aを備えている。そして、状態通知部104aは、プロセッサ102から条件設定レジスタ書き込み要求信号および検出条件情報がDMAコントローラ104に入力されると、検出条件情報に基づいて、DMA処理の状態、即ち、複数のDMAチャネルにおけるステートマシンの動作状態を判定する。そして、状態通知部104aは、各ステートマシンの動作状態が検出条件情報に示される検出条件に適合する場合には、条件設定レジスタ107に対する書き込みが完了したことを示す書き込み完了信号をプロセッサ102に出力し、各ステートマシンの動作状態が検出条件情報に示される検出条件に適合しない場合には、WAIT信号をクロック制御部105に出力する。   The DMA controller 104 also includes a status notification unit 104a that manages the status of DMA processing. Then, when the condition setting register write request signal and the detection condition information are input from the processor 102 to the DMA controller 104, the state notification unit 104a, based on the detection condition information, determines the state of DMA processing, that is, in a plurality of DMA channels. Determine the operating state of the state machine. Then, when the operation state of each state machine meets the detection condition indicated by the detection condition information, the state notification unit 104a outputs a write completion signal indicating that writing to the condition setting register 107 is completed to the processor 102. If the operating state of each state machine does not match the detection condition indicated in the detection condition information, the WAIT signal is output to the clock control unit 105.

図11は、状態通知部104aの概略構成を示すブロック図である。
図11において、状態通知部104aは、上述の条件設定レジスタ107と、AND回路104bと、OR回路104cと、選択回路104dとを備えている。
AND回路104bには、DMA転送を行っているハードウェアモジュールにおけるステートマシンそれぞれから、DMA転送中であるか否かを示す信号(busy_ready信号)が入力される。なお、このbusy_ready信号は、DMA転送中である場合には“1”とされ、DMA転送中でない場合には“0”とされる。また、AND回路104bには、条件設定レジスタ107が記憶しているビットデータ(確認対象設定データ)が入力される。
FIG. 11 is a block diagram illustrating a schematic configuration of the state notification unit 104a.
In FIG. 11, the state notification unit 104a includes the above-described condition setting register 107, an AND circuit 104b, an OR circuit 104c, and a selection circuit 104d.
A signal (busy_ready signal) indicating whether or not DMA transfer is being performed is input to the AND circuit 104b from each state machine in the hardware module performing the DMA transfer. The busy_ready signal is “1” when the DMA transfer is in progress, and is “0” when the DMA transfer is not in progress. The bit data (confirmation target setting data) stored in the condition setting register 107 is input to the AND circuit 104b.

そして、AND回路104bは、各ハードウェアモジュールのbusy_ready信号を基に、確認対象設定データにおいて“1”が設定されているハードウェアモジュール(ステートマシン)の動作状態を確認し、確認対象設定データにおいて“1”が設定されているハードウェアモジュールから入力されるbusy_ready信号の全てが“0”である場合(いずれもDMA転送中でないことを示す場合)には、AND回路104bにおける検出条件が充足されたことを示すAND条件結果(ここでは“1”とする)を選択回路104dに出力する。一方、確認対象設定データにおいて“1”が設定されているハードウェアモジュールから入力されるbusy_ready信号の全ては“0”でない場合(いずれかがDMA転送中であることを示す場合)には、AND回路104bにおける検出条件が充足されていないことを示すAND条件結果(ここでは“0”とする)を選択回路104dに出力する。   Then, the AND circuit 104b confirms the operation state of the hardware module (state machine) in which “1” is set in the confirmation target setting data based on the busy_ready signal of each hardware module. When all of the busy_ready signals input from the hardware module in which “1” is set are “0” (indicating that none of them are in DMA transfer), the detection condition in the AND circuit 104b is satisfied. An AND condition result (in this case, “1”) indicating this is output to the selection circuit 104d. On the other hand, when all of the busy_ready signals input from the hardware module in which “1” is set in the confirmation target setting data are not “0” (indicating that one of them is performing DMA transfer), AND An AND condition result (here, “0”) indicating that the detection condition in the circuit 104b is not satisfied is output to the selection circuit 104d.

OR回路104cには、AND回路104bと同様に、DMA転送を行っているハードウェアモジュールにおけるステートマシンそれぞれから、DMA転送中であるか否かを示す信号(busy_ready信号)が入力される。また、OR回路104cには、条件設定レジスタ107が記憶しているビットデータ(確認対象設定データ)が入力される。
そして、OR回路104cは、各ハードウェアモジュールのbusy_ready信号を基に、確認対象設定データにおいて“1”が設定されているハードウェアモジュール(ステートマシン)の動作状態を確認し、確認対象設定データにおいて“1”が設定されているハードウェアモジュールから入力されるbusy_ready信号のいずれかが“0”である場合(いずれかがDMA転送中でないことを示す場合)には、OR回路104cにおける検出条件が充足されたことを示すOR条件結果(ここでは“1”とする)を選択回路104dに出力する。一方、確認対象設定データにおいて“1”が設定されているハードウェアモジュールから入力されるbusy_ready信号の全てが“1”である場合(いずれもDMA転送中であることを示す場合)には、OR回路104cにおける検出条件が充足されていないことを示すOR条件結果(ここでは“0”とする)を選択回路104dに出力する。
Similarly to the AND circuit 104b, the OR circuit 104c receives a signal (busy_ready signal) indicating whether or not the DMA transfer is being performed from each state machine in the hardware module performing the DMA transfer. The bit data (confirmation target setting data) stored in the condition setting register 107 is input to the OR circuit 104c.
Then, the OR circuit 104c confirms the operation state of the hardware module (state machine) in which “1” is set in the confirmation target setting data based on the busy_ready signal of each hardware module. When one of the busy_ready signals input from the hardware module in which “1” is set is “0” (indicating that one of them is not performing DMA transfer), the detection condition in the OR circuit 104c is An OR condition result (here, “1”) indicating that the condition is satisfied is output to the selection circuit 104d. On the other hand, when all the busy_ready signals input from the hardware module in which “1” is set in the confirmation target setting data are “1” (indicating that all are DMA transfers), OR An OR condition result (here, “0”) indicating that the detection condition in the circuit 104c is not satisfied is output to the selection circuit 104d.

選択回路104dには、プロセッサ102から入力された検出条件情報における条件設定データが入力される。
また、選択回路104dには、AND回路104bからAND条件結果が入力されると共に、OR回路104cからOR条件結果が入力される。
そして、選択回路104dは、条件設定データによって示される検出条件(即ち、AND条件あるいはOR条件)に応じて、AND条件結果とOR条件結果とのいずれかを選択し、選択結果をプロセッサ102に出力する。この選択結果は、条件が充足されたことを示すAND条件結果あるいはOR条件結果である場合には書き込み完了信号となり、条件が充足されていないことを示すAND条件結果あるいはOR条件結果である場合にはプロセッサ102に対するWAIT信号となる。
The condition setting data in the detection condition information input from the processor 102 is input to the selection circuit 104d.
The selection circuit 104d receives the AND condition result from the AND circuit 104b and the OR condition result from the OR circuit 104c.
Then, the selection circuit 104d selects either the AND condition result or the OR condition result according to the detection condition (that is, the AND condition or the OR condition) indicated by the condition setting data, and outputs the selection result to the processor 102. To do. This selection result is a write completion signal when the result is an AND condition result or an OR condition result indicating that the condition is satisfied, and when the selection result is an AND condition result or an OR condition result indicating that the condition is not satisfied. Becomes a WAIT signal for the processor 102.

図7に戻り、クロック制御部105は、DMAコントローラ104からWAIT信号が出力されているか否かを判定し、WAIT信号が出力されていない場合にはプロセッサ102にクロック信号を供給し、WAIT信号が出力されている場合にはクロック信号の供給を停止する。
次に、本実施形態の情報処理装置100の動作を詳細に説明する。
Returning to FIG. 7, the clock control unit 105 determines whether or not the WAIT signal is output from the DMA controller 104. If the WAIT signal is not output, the clock control unit 105 supplies the clock signal to the processor 102, and the WAIT signal is If it is output, supply of the clock signal is stopped.
Next, the operation of the information processing apparatus 100 of this embodiment will be described in detail.

まず、図12に示すようにサイクル「2」で、DMAコントローラ104にDMAの開始を要求するDMA要求信号が出力されたとする。
すると、サイクル「3」で、DMAコントローラ104からDMA転送処理中であることを通知する信号が出力される。プロセッサ102で所定の処理が実行され、図8に示すように、まずそのステップS301で、DMAパラメータが設定され、ステップS302で、図12(b)に示すように、DMAスタートコマンドがDMAコントローラ104に出力される。そして、サイクル「3」で、図12(c)に示すように、DMAコントローラの動作状態が「動作中」とされ、DMAコントローラ104によってDMA処理が開始される。
First, it is assumed that a DMA request signal for requesting the DMA controller 104 to start DMA is output in cycle “2” as shown in FIG.
Then, in cycle “3”, the DMA controller 104 outputs a signal notifying that DMA transfer processing is in progress. As shown in FIG. 8, the processor 102 executes predetermined processing. First, in step S301, the DMA parameter is set. In step S302, the DMA start command is sent to the DMA controller 104 as shown in FIG. 12B. Is output. Then, in cycle “3”, as shown in FIG. 12C, the operation state of the DMA controller is set to “operating”, and the DMA processing is started by the DMA controller 104.

また、DMA処理が継続されるうちに、サイクル「4」〜「6」を経て、サイクル「7」で、図12(d)に示すように、プロセッサ102からDMAコントローラ104に条件設定レジスタ書き込み要求信号および書き込みデータ(検出条件情報)が出力される。
すると、サイクル「8」で、図12(f)に示すように、DMAコントローラ104からクロック制御部105にハイレベルのWAIT信号が出力され、サイクル「9」で、図12(h)に示すように、クロック制御部105によってプロセッサ102に供給していた動作クロック信号が停止される。
In addition, while the DMA processing is continued, through cycles “4” to “6”, in cycle “7”, as shown in FIG. 12D, the processor 102 requests the DMA controller 104 to write a condition setting register. A signal and write data (detection condition information) are output.
Then, in cycle “8”, as shown in FIG. 12F, a high-level WAIT signal is output from the DMA controller 104 to the clock controller 105, and in cycle “9”, as shown in FIG. Further, the operation clock signal supplied to the processor 102 by the clock control unit 105 is stopped.

さらに、サイクル「10」〜「13」を経て、サイクル「14」で、図12(c)に示すように、DMAコントローラ104の動作状態がローレベルとされ、DMA処理が終了したとする。
すると、サイクル「15」で、DMAコントローラ104によって、DMA処理中でないことを示す書き込み完了信号がプロセッサ102に出力され、WAIT信号が停止状態とされる。また、クロック制御部105からプロセッサ102にクロック信号の供給が再開され、前記書き込み完了信号が出力されると条件設定レジスタ書き込み要求信号が停止され、サイクル「16」で、プロセッサ102の処理が再開される。
Further, it is assumed that the cycle “10” to “13” is followed by the cycle “14”, the operation state of the DMA controller 104 is set to the low level as shown in FIG.
Then, in cycle “15”, the DMA controller 104 outputs a write completion signal indicating that the DMA processing is not in progress to the processor 102, and the WAIT signal is stopped. Also, the supply of the clock signal from the clock control unit 105 to the processor 102 is resumed, and when the write completion signal is output, the condition setting register write request signal is stopped, and the processing of the processor 102 is resumed at cycle “16”. The

このように、本実施形態の情報処理装置100によれば、DMAコントローラ104でDMA処理が実行されたとしても、プロセッサ102がDMAコントローラ104の動作状態を問い合わせるまで、つまり条件設定レジスタ書き込み要求信号を出力するまでは、プロセッサ102でそれまでの処理を継続することができ、またプロセッサ102から条件設定レジスタ書き込み要求信号が出力されると、プロセッサ102へのクロック信号の供給が停止されるようにしたため、プロセッサ102による処理効率の低下を防止しつつ、プロセッサ102による消費電力を低減することができる。   As described above, according to the information processing apparatus 100 of the present embodiment, even when the DMA processing is executed by the DMA controller 104, until the processor 102 inquires about the operation state of the DMA controller 104, that is, the condition setting register write request signal is transmitted. Until the output, the processor 102 can continue the processing so far, and when the condition setting register write request signal is output from the processor 102, the supply of the clock signal to the processor 102 is stopped. The power consumption by the processor 102 can be reduced while preventing the processing efficiency by the processor 102 from being lowered.

また、DMA処理が終了するまでクロック信号の供給を停止するようにしたため、DMA処理の実行中に、DMAコントローラ104の動作状態の問い合わせが何度も実行されてしまうことを防止でき、プロセッサ102による消費電力をより低減することができる。
さらに、プロセッサ102が条件設定レジスタ書き込み要求信号を出力する際に、DMAコントローラ104の動作状態に対する検出条件を示す検出条件情報が書き込みデータとして出力される。そのため、DMAのチャネルが複数ある場合に、それらのチャネルにおける複雑な条件を設定してDMAコントローラ104の動作状態を問い合わせることができるため、上記の効果に加え、ソフトウェアの効率的な実行制御を行うことが可能となる。具体的には、プログラムにおける条件判断の回数を軽減することができるため、実行速度の向上を図ることが可能となる。また、DMAコントローラに対するポーリングのために条件判断を繰り返す従来の方法に比し、無用な消費電力を削減することが可能となる。さらに、DMAコントローラ104における種々の条件を検出する処理が、書き込み要求信号および検出条件情報(書き込みデータ)の出力のみで実行できるため、このような処理を実現するためのプログラムの作成が容易なものとなる。
In addition, since the supply of the clock signal is stopped until the DMA processing is completed, it is possible to prevent the inquiry about the operation state of the DMA controller 104 from being performed many times during the execution of the DMA processing. Power consumption can be further reduced.
Further, when the processor 102 outputs a condition setting register write request signal, detection condition information indicating a detection condition for the operation state of the DMA controller 104 is output as write data. Therefore, when there are a plurality of DMA channels, it is possible to inquire about the operation state of the DMA controller 104 by setting complicated conditions in those channels. In addition to the above effects, efficient execution control of software is performed. It becomes possible. Specifically, since the number of condition judgments in the program can be reduced, the execution speed can be improved. Further, unnecessary power consumption can be reduced as compared with the conventional method in which the condition determination is repeated for polling the DMA controller. Further, since the process for detecting various conditions in the DMA controller 104 can be executed only by outputting a write request signal and detection condition information (write data), it is easy to create a program for realizing such a process. It becomes.

なお、本実施形態において、DMAコントローラ104は、検出条件情報に示されるAND条件あるいはOR条件を判定するものとして説明したが、AND条件およびOR条件以外の条件(XOR条件等)を設定することも可能であるとともに、DMAコントローラ104がAND条件あるいはOR条件等のいずれか1つのみを判定することとしても良い。DMAコントローラ104において1つの固定的な条件のみが判定される場合、検出条件情報の上位4ビットのビットデータが不要となり、プロセッサ102による書き込みデータが削減されると共に、状態通知部104aの構成を、例えば図13および図14に示すように簡略なものとすることができる。   In the present embodiment, the DMA controller 104 has been described as determining the AND condition or the OR condition indicated in the detection condition information. However, a condition (such as an XOR condition) other than the AND condition and the OR condition may be set. In addition, the DMA controller 104 may determine only one of the AND condition and the OR condition. When only one fixed condition is determined in the DMA controller 104, the upper 4 bits of the detection condition information are not necessary, the write data by the processor 102 is reduced, and the configuration of the status notification unit 104a is For example, it can be simplified as shown in FIGS.

また、本実施形態において、プロセッサ102によって条件設定レジスタ書き込み要求信号が出力された場合、DMAコントローラ104から書き込み完了信号が出力されるまで、プロセッサ102に対するクロックの供給が継続して停止されるものとして説明したが、第2の実施の形態に示すように、所定長のデータがDMA転送されるたびにクロック信号の供給を一時的に再開するようにしても良い。   In this embodiment, when the condition setting register write request signal is output by the processor 102, the supply of the clock to the processor 102 is continuously stopped until the write completion signal is output from the DMA controller 104. As described in the second embodiment, the supply of the clock signal may be temporarily resumed each time a predetermined length of data is DMA transferred.

また、上記実施形態では、プロセッサ102が特許請求の範囲におけるプロセッサを構成し、DMAコントローラ104が機能部を構成し、クロック制御部105が抑制部を構成し、条件設定レジスタ107が検出条件記憶部を構成する。   In the above embodiment, the processor 102 constitutes the processor in the claims, the DMA controller 104 constitutes the function unit, the clock control unit 105 constitutes the suppression unit, and the condition setting register 107 serves as the detection condition storage unit. Configure.

本発明のプロセッサ制御回路の第1実施形態を示す概略構成図である。It is a schematic block diagram which shows 1st Embodiment of the processor control circuit of this invention. 図1のプロセッサで実行される演算処理のフローチャートである。It is a flowchart of the arithmetic processing performed with the processor of FIG. 図1の情報処理装置の動作を示すタイミングチャートである。2 is a timing chart illustrating an operation of the information processing apparatus in FIG. 1. 本発明のプロセッサ制御回路の第2実施形態を示す概略構成図である。It is a schematic block diagram which shows 2nd Embodiment of the processor control circuit of this invention. 図4のプロセッサで実行される演算処理のフローチャートである。It is a flowchart of the arithmetic processing performed with the processor of FIG. 図4の情報処理装置の動作を示すタイミングチャートである。5 is a timing chart showing the operation of the information processing apparatus of FIG. 本発明の第3の実施の形態における情報処理装置100の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the information processing apparatus 100 in the 3rd Embodiment of this invention. 図7のプロセッサで実行される演算処理のフローチャートである。It is a flowchart of the arithmetic processing performed with the processor of FIG. DMAの動作状態を示すステートマシンが複数動作している状態を示すフローチャートである。It is a flowchart which shows the state in which the state machine which shows the operation state of DMA is operating in multiple numbers. 検出条件情報のデータ構成例を示す図である。It is a figure which shows the data structural example of detection condition information. 状態通知部104aの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the status notification part 104a. 図7の情報処理装置の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the information processing apparatus of FIG. AND条件のみを判定する場合の状態通知部104aの構成例を示す図である。It is a figure which shows the structural example of the status notification part 104a in the case of determining only AND conditions. OR条件のみを判定する場合の状態通知部104aの構成例を示す図である。It is a figure which shows the structural example of the status notification part 104a in the case of determining only OR condition. 従来のプロセッサで実行される演算処理のフローチャートである。It is a flowchart of the arithmetic processing performed with the conventional processor.

符号の説明Explanation of symbols

1,100は情報処理装置、2,102はプロセッサ、3,103はRAM、4,104はDMAコントローラ、5,105はクロック制御部、6,106はデータバス、7は状態通知レジスタ、107は条件設定レジスタ、8は転送データ長設定部   1, 100 is an information processing device, 2, 102 is a processor, 3, 103 is RAM, 4, 104 is a DMA controller, 5, 105 is a clock controller, 6, 106 is a data bus, 7 is a status notification register, 107 is Condition setting register, 8 is transfer data length setting section

Claims (15)

プロセッサを介さずに所定処理を実行可能な機能部と、
前記機能部において前記所定処理の実行が開始された後、前記プロセッサが前記機能部の動作状態を問い合わせたか否かを検出する問い合わせ検出部と、
前記機能部における前記所定処理の終了を検出する終了検出部と、
前記機能部において前記所定処理の実行が開始された場合、前記プロセッサの動作状態を維持し、さらに、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を抑制する抑制部と、
を備えたことを特徴とするプロセッサ制御回路。
A functional unit capable of executing a predetermined process without using a processor;
An inquiry detection unit that detects whether or not the processor has inquired about an operating state of the functional unit after the execution of the predetermined process is started in the functional unit;
An end detection unit for detecting the end of the predetermined process in the function unit;
When the execution of the predetermined process is started in the function unit, the operation state of the processor is maintained, and further, when the inquiry detection unit detects that the processor has inquired about the operation state of the function unit, A suppression unit that suppresses an operation related to an inquiry about an operation state of the function unit by the processor until the end detection unit detects the end of the predetermined process in the function unit;
A processor control circuit comprising:
前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を遅延させることを特徴とする請求項1に記載のプロセッサ制御回路。 When it is detected by the inquiry detection unit that the processor has inquired about the operating state of the function unit , the suppression unit until the end detection unit detects the end of the predetermined process in the function unit. The processor control circuit according to claim 1, wherein an operation related to an inquiry about an operation state of the functional unit by the processor is delayed. 前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサに供給するクロック信号の周波数を低くすることを特徴とする請求項1に記載のプロセッサ制御回路。 When it is detected by the inquiry detection unit that the processor has inquired about the operating state of the function unit , the suppression unit until the end detection unit detects the end of the predetermined process in the function unit. 2. The processor control circuit according to claim 1, wherein the frequency of the clock signal supplied to the processor is lowered. 前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサへのクロック信号の供給を停止することを特徴とする請求項1に記載のプロセッサ制御回路。 When it is detected by the inquiry detection unit that the processor has inquired about the operating state of the function unit , the suppression unit until the end detection unit detects the end of the predetermined process in the function unit. 2. The processor control circuit according to claim 1, wherein the supply of the clock signal to the processor is stopped. 前記抑制部は、前記クロック信号の供給が停止されているときに、前記クロック信号の供給を一時的に再開可能としたことを特徴とする請求項4に記載のプロセッサ制御回路。   5. The processor control circuit according to claim 4, wherein when the supply of the clock signal is stopped, the suppression unit can temporarily resume the supply of the clock signal. 6. 前記機能部は、DMA処理を実行可能であり、前記抑制部は、前記クロック信号の供給が停止されているときには、所定長のデータがDMA転送されるたびに前記クロック信号の供給を一時的に再開することを特徴とする請求項5に記載のプロセッサ制御回路。   The functional unit is capable of executing DMA processing, and when the supply of the clock signal is stopped, the suppression unit temporarily supplies the clock signal every time a predetermined length of data is DMA transferred. The processor control circuit according to claim 5, wherein the processor control circuit restarts. 前記機能部は、該機能部の動作状態を示す実行状態情報を記憶する状態記憶部と、
前記プロセッサが該実行状態情報の読み出し信号を出力することにより前記機能部の動作状態を問い合わせたことが前記問い合わせ検出部によって検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されることに対応して、前記実行状態情報の読み出しが完了したことを示す読み出し完了信号を前記プロセッサに出力することによって、前記機能部における所定処理が終了したことを前記プロセッサに通知する状態通知部と、
を備えることを特徴とする請求項1から6のいずれか1項に記載のプロセッサ制御回路。
The function unit includes a state storage unit that stores execution state information indicating an operation state of the function unit ;
When the inquiry detection unit detects that the processor has inquired about the operation state of the function unit by outputting a read signal of the execution state information, the end detection unit ends the predetermined process in the function unit Is output to the processor in response to the detection of the execution state information, thereby notifying the processor that the predetermined processing in the functional unit has been completed. A status notification section;
Processor control circuit according to any one of claims 1 to 6, characterized in that it comprises a.
所定の演算処理を実行するプロセッサと、
該プロセッサを介さずに所定処理を実行可能な機能部と、
前記機能部において前記所定処理の実行が開始された後、前記プロセッサが前記機能部の動作状態を問い合わせたか否かを検出する問い合わせ検出部と、
前記機能部における前記所定処理の終了を検出する終了検出部と、
前記機能部において前記所定処理の実行が開始された場合、前記プロセッサの動作状態を維持し、さらに、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を抑制する抑制部と、
を備えたことを特徴とする情報処理装置。
A processor for executing predetermined arithmetic processing;
A functional unit capable of executing predetermined processing without going through the processor;
An inquiry detection unit that detects whether or not the processor has inquired about an operating state of the functional unit after the execution of the predetermined process is started in the functional unit;
An end detection unit for detecting the end of the predetermined process in the function unit;
When the execution of the predetermined process is started in the function unit, the operation state of the processor is maintained, and further, when the inquiry detection unit detects that the processor has inquired about the operation state of the function unit, A suppression unit that suppresses an operation related to an inquiry about an operation state of the function unit by the processor until the end detection unit detects the end of the predetermined process in the function unit;
An information processing apparatus comprising:
前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサによる前記機能部の動作状態の問い合わせに関する動作を遅延させることを特徴とする請求項8に記載の情報処理装置。 When it is detected by the inquiry detection unit that the processor has inquired about the operating state of the function unit , the suppression unit until the end detection unit detects the end of the predetermined process in the function unit. The information processing apparatus according to claim 8, wherein an operation related to an inquiry about an operation state of the functional unit by a processor is delayed. 前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサに供給するクロック信号の周波数を低くすることを特徴とする請求項8に記載の情報処理装置。 When it is detected by the inquiry detection unit that the processor has inquired about the operating state of the function unit , the suppression unit until the end detection unit detects the end of the predetermined process in the function unit. The information processing apparatus according to claim 8, wherein a frequency of a clock signal supplied to the processor is lowered. 前記抑制部は、前記問い合わせ検出部によって前記プロセッサが前記機能部の動作状態を問い合わせたことが検出されると、前記終了検出部によって前記機能部における前記所定処理の終了が検出されるまで、前記プロセッサへのクロック信号の供給を停止することを特徴とする請求項8に記載の情報処理装置。 When it is detected by the inquiry detection unit that the processor has inquired about the operating state of the function unit , the suppression unit until the end detection unit detects the end of the predetermined process in the function unit. The information processing apparatus according to claim 8, wherein supply of a clock signal to the processor is stopped. 前記抑制部は、前記クロック信号の供給が停止されているときに、前記クロック信号の供給を一時的に再開可能としたことを特徴とする請求項11に記載の情報処理装置。   The information processing apparatus according to claim 11, wherein when the supply of the clock signal is stopped, the suppression unit can temporarily resume the supply of the clock signal. 前記機能部は、DMA処理を実行可能であり、前記抑制部は、前記クロック信号の供給が停止されているときには、所定長のデータがDMA転送されるたびに前記クロック信号の供給を一時的に再開することを特徴とする請求項12に記載の情報処理装置。   The functional unit is capable of executing DMA processing, and when the supply of the clock signal is stopped, the suppression unit temporarily supplies the clock signal every time a predetermined length of data is DMA transferred. The information processing apparatus according to claim 12, wherein the information processing apparatus is restarted. 前記機能部は、該機能部の動作状態に関する検出条件を示す検出条件情報を記憶する検出条件記憶部を備え、
前記プロセッサは、動作状態の検出における所定条件が設定された前記検出条件情報の前記検出条件記憶部への書き込み信号を出力することにより、前記動作状態の問い合わせを行い、
前記機能部は、前記動作状態が前記検出条件情報の示す条件を充足した場合に、前記検出条件情報の書き込みが完了したことを示す書き込み完了信号を前記プロセッサに出力することによって、前記機能部における所定処理が終了したことを前記プロセッサに通知する状態通知部を備えることを特徴とする請求項8から13のいずれか1項に記載の情報処理装置。
The functional unit includes a detection condition storage unit that stores detection condition information indicating a detection condition related to an operation state of the functional unit,
The processor makes an inquiry about the operation state by outputting a write signal to the detection condition storage unit of the detection condition information in which a predetermined condition in detection of the operation state is set,
The functional unit outputs a write completion signal indicating that writing of the detection condition information is completed to the processor when the operation state satisfies a condition indicated by the detection condition information. The information processing apparatus according to claim 8, further comprising a state notification unit that notifies the processor that a predetermined process has been completed.
前記機能部は、前記所定処理を複数実行可能であり、
前記プロセッサは、前記所定処理それぞれを特定する情報と、複数の前記所定処理の間に設定された動作状態の検出条件とを含む前記検出条件情報の前記検出条件記憶部への書き込み信号を出力することにより、前記動作状態の問い合わせを行い、
前記機能部における前記状態通知部は、前記検出条件情報に示される所定処理間において動作状態が検出条件と一致した場合に、前記書き込み完了信号を前記プロセッサに出力することによって、前記機能部における所定処理が終了したことを前記プロセッサに通知することを特徴とする請求項14に記載の情報処理装置。
The functional unit can execute a plurality of the predetermined processes,
The processor outputs a write signal to the detection condition storage unit of the detection condition information including information specifying each of the predetermined processes and a detection condition of an operation state set during a plurality of the predetermined processes. To inquire about the operating state,
The state notification unit in the functional unit, if the operating condition matches the detection condition between predetermined process shown in the detected condition information, by outputting the write completion signal to the processor, predetermined in the functional unit The information processing apparatus according to claim 14, wherein the processor is notified that the process has been completed .
JP2004283611A 2003-11-07 2004-09-29 Processor control circuit and information processing apparatus Expired - Fee Related JP4107278B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2004283611A JP4107278B2 (en) 2003-11-07 2004-09-29 Processor control circuit and information processing apparatus
US10/968,876 US20050149771A1 (en) 2003-11-07 2004-10-21 Processor control circuit, information processing apparatus, and central processing unit

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003378367 2003-11-07
JP2004283611A JP4107278B2 (en) 2003-11-07 2004-09-29 Processor control circuit and information processing apparatus

Publications (2)

Publication Number Publication Date
JP2005158036A JP2005158036A (en) 2005-06-16
JP4107278B2 true JP4107278B2 (en) 2008-06-25

Family

ID=34741497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004283611A Expired - Fee Related JP4107278B2 (en) 2003-11-07 2004-09-29 Processor control circuit and information processing apparatus

Country Status (1)

Country Link
JP (1) JP4107278B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3870970B2 (en) 2005-03-15 2007-01-24 セイコーエプソン株式会社 Processor control unit

Also Published As

Publication number Publication date
JP2005158036A (en) 2005-06-16

Similar Documents

Publication Publication Date Title
US7711918B2 (en) Apparatus and method for operating flash memory according to priority order
US20130036426A1 (en) Information processing device and task switching method
JP4325685B2 (en) MEMORY CONTROLLER, MEMORY MODULE, MEMORY CONTROL METHOD, AND COMPUTER FOR CONTROLLING MEMORY
JP2011095916A (en) Electronic apparatus
JP2008009817A (en) Semiconductor device and data transfer method
JP6151465B1 (en) Latency-based power mode unit for controlling the power mode of a processor core, and related methods and systems
JP3866749B2 (en) Microprocessor
JP4957283B2 (en) Memory controller for controlling memory and memory control method.
JP3870970B2 (en) Processor control unit
WO2009098737A1 (en) External device access apparatus, its controlling method and system lsi
JP4107278B2 (en) Processor control circuit and information processing apparatus
JP5783348B2 (en) Control device, control program, and image forming apparatus
US20050149771A1 (en) Processor control circuit, information processing apparatus, and central processing unit
JP2008225608A (en) Memory controller for controlling memory, memory module, and memory control method
JP3991999B2 (en) Central processing unit and processor control method
JP2011013836A (en) Memory arrangement management device and microprocessor
JPH11353291A (en) Multiprocessor system and medium recording task exchange program
JP2006126938A (en) Data transfer system and its data transfer method
JP2004118300A (en) Dma controller
JP2006331248A (en) Data transfer device
JP2007179103A (en) Information processor and method for controlling information processor
JP6940283B2 (en) DMA transfer control device, DMA transfer control method, and DMA transfer control program
JP2006059303A (en) Computer system
JP2006331008A (en) Memory interface
JP2013196112A (en) Memory system and method for controlling power saving of the same

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070816

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070821

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071022

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080121

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080311

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080324

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110411

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110411

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120411

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130411

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees