JP4847407B2 - Data processing apparatus and data processing method - Google Patents

Data processing apparatus and data processing method Download PDF

Info

Publication number
JP4847407B2
JP4847407B2 JP2007187817A JP2007187817A JP4847407B2 JP 4847407 B2 JP4847407 B2 JP 4847407B2 JP 2007187817 A JP2007187817 A JP 2007187817A JP 2007187817 A JP2007187817 A JP 2007187817A JP 4847407 B2 JP4847407 B2 JP 4847407B2
Authority
JP
Japan
Prior art keywords
descriptor
information
module
data
setting
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
JP2007187817A
Other languages
Japanese (ja)
Other versions
JP2009026023A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007187817A priority Critical patent/JP4847407B2/en
Publication of JP2009026023A publication Critical patent/JP2009026023A/en
Application granted granted Critical
Publication of JP4847407B2 publication Critical patent/JP4847407B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Bus Control (AREA)

Description

本発明は、データ処理装置及びデータ処理方法に関し、詳細には、ディスクリプタを用いたDMA転送を効率的に行うデータ処理装置及びデータ処理方法に関する。   The present invention relates to a data processing apparatus and a data processing method, and more particularly, to a data processing apparatus and a data processing method that efficiently perform DMA transfer using a descriptor.

複写装置、プリンタ装置、ファクシミリ装置、複合装置等の画像処理装置においては、近年、複合化及びデジタル化に伴って、RAM(Random Access Memory)等の半導体メモリを利用した画像処理が種々行われるようになってきている。このようなメモリ上にあるデータを高速に転送する技術としては、DMA(Direct Memory Access)があり、DMAでは、一般的に、メモリアドレスと転送量を指定することで、CPU(Central Processing Unit )が介在することなく、データ転送を行うが、メモリ上にデータが点在する場合には、ディスクリプタ方式を用いて、メモリ上に点在するデータを接続して連続的に転送を行う。   In recent years, various image processing using a semiconductor memory such as a RAM (Random Access Memory) has been performed in an image processing apparatus such as a copying apparatus, a printer apparatus, a facsimile apparatus, or a composite apparatus in accordance with the combination and digitization. It is becoming. As a technique for transferring data on the memory at high speed, there is DMA (Direct Memory Access). In DMA, generally, a CPU (Central Processing Unit) is specified by specifying a memory address and a transfer amount. However, when data is scattered on the memory, the data is continuously transferred by connecting the data scattered on the memory using the descriptor method.

ディスクリプタ方式では、DMAコントローラ(以下、DMACという。)が、ディスクリプタと呼ばれるメモリ上の識別子を読み込み、ディスクリプタに示されているスタートアドレスや転送量に基づいてデータ転送を行い、また、点在したデータを連続してアクセスできるように、ディスクリプタの中に次のディスクリプタが存在するポインタを格納して、一連の動作が終ると、次のディスクリプタのポインタへアクセスを行い、そのポインタのディスクリプタからディスクリプタ情報を取得して、再び転送を行うという動作を繰り返す。   In the descriptor method, a DMA controller (hereinafter referred to as DMAC) reads an identifier on a memory called a descriptor, performs data transfer based on a start address and a transfer amount indicated in the descriptor, and has scattered data. When a series of operations is completed, the pointer of the next descriptor is accessed and the descriptor information is read from the descriptor of the pointer. The operation of acquiring and transferring again is repeated.

そして、画像処理装置等のようにモジュールでデータに各種画像処理を施す場合には、モジュールにDMACを搭載して、CPUによってメモリ上に格納されている該データ処理のパラメータ(設定値)等のディスクリプタをメモリから読み込んで、モジュールのレジスタに設定し、その後、DMACがメモリ上のデータを読み込むと、モジュールが、先に設定されているパラメータに基づいて該画像データに画像処理を施した後、DMACがメモリに該画像処理後の画像データを転送する。   When various image processing is performed on data by a module as in an image processing apparatus or the like, a DMAC is mounted on the module and parameters (setting values) of the data processing stored in the memory by the CPU are set. When the descriptor is read from the memory and set in the module register, and then the DMAC reads the data on the memory, the module performs image processing on the image data based on the previously set parameters, The DMAC transfers the image data after the image processing to the memory.

このように、ディスクリプタ方式によるDMAにおいては、CPUが1ブロックの転送毎にDMACにコマンドを発行するため、全体のデータ量が多く、1ブロックのサイズが小さいと、DMAにCPUが関与する回数も増え、CPUへの負荷が大きくなる。   As described above, in the descriptor-based DMA, since the CPU issues a command to the DMAC for each transfer of one block, if the entire data amount is large and the size of one block is small, the number of times the CPU is involved in the DMA is also small. The load on the CPU increases.

そして、従来、データ転送用のDMACとコマンド発行用のDMACを設けることで、CPUがデータ転送のためのコマンド発行を無くして、CPUのコマンド発行にかかる負荷を削減する技術が提案されている(特許文献1参照)。   Conventionally, a technique has been proposed in which a CPU for issuing commands for data transfer is eliminated by providing a DMAC for data transfer and a DMAC for issuing commands, thereby reducing the load on the CPU issuing commands. Patent Document 1).

特開2001−282705号公報JP 2001-282705 A

しかしながら、上記従来技術にあっては、データ転送用のDMACとコマンド発行用のDMACを設けることで、CPUのコマンド発行にかかる負荷の軽減を図っているため、ディスクリプタ情報が固定されており、ディスクリプタフォーマットが変わる度にハードウェアの修正が必要となる。その結果、データ転送を効率的に行う上で、改良の必要があった。   However, in the above prior art, by providing a DMAC for data transfer and a DMAC for command issue, the load on the CPU command issue is reduced, so the descriptor information is fixed and the descriptor information is fixed. Every time the format changes, hardware modifications are required. As a result, there is a need to improve the data transfer efficiently.

そこで、本発明は、CPUへの負荷を低減させつつ、データ転送を効率的に行うことのできるデータ処理装置及びデータ処理方法を提供することを目的としている。   Accordingly, an object of the present invention is to provide a data processing apparatus and a data processing method capable of efficiently performing data transfer while reducing the load on the CPU.

請求項1記載の発明のデータ処理装置は、記憶手段上に格納されているディスクリプタ情報に基づいて設定情報やデータをDMA転送するDMAコントローラを搭載し該データに対して所定のデータ処理を行う複数のモジュールと、該記憶手段への該ディスクリプタ情報の設定等を行って該DMAコントローラによる該記憶手段への動作及び該モジュールの動作を制御するとともに、該モジュールに設定する設定値と該設定値を設定する該モジュールのモジュールアドレスを該ディスクリプタ情報として該記憶手段に格納する制御手段と、該ディスクリプタ情報を該記憶手段から読み込んで該各モジュールに渡す設定情報読み込み手段と、を備えたデータ処理装置であって、前記各モジュールは、前記設定情報読み込み手段から渡された該ディスクリプタ情報が自己に設定するディスクリプタ情報であるか否かを前記モジュールアドレスに基づいてチェックし、自己のモジュールに設定すべきディスクリプタ情報であると、該ディスクリプタ情報を自己のモジュールに設定するチェック手段を備え、前記制御手段は、前記ディスクリプタ情報に、該ディスクリプタの全データサイズを示す全ディスクリプタサイズ情報を追加して前記記憶手段に格納し、前記設定情報読み込み手段は、該記憶手段から読み込んだ前記ディスクリプタ情報のデータサイズが該全ディスクリプタサイズ情報の示しているデータサイズであるかを検知するデータサイズ検知手段を備え、該データサイズ検知手段の検知結果に基づいて、該全ディスクリプタサイズ情報の示しているデータサイズのディスクリプタ情報を該記憶手段から読み込むことにより、上記目的を達成している。 The data processing apparatus according to the first aspect of the present invention is equipped with a DMA controller that DMA-transfers setting information and data based on descriptor information stored on the storage means, and performs a plurality of predetermined data processing on the data. And setting the descriptor information in the storage means and controlling the operation to the storage means by the DMA controller and the operation of the module, and setting the setting value and the setting value to be set in the module A data processing apparatus comprising: a control unit that stores the module address of the module to be set as the descriptor information in the storage unit; and a setting information reading unit that reads the descriptor information from the storage unit and passes it to each module. Each module receives the setting information read from the setting information reading means. Checking means for checking whether or not the scripter information is descriptor information to be set in the self based on the module address, and if the descriptor information is to be set in the own module, check means for setting the descriptor information in the own module. And the control means adds to the descriptor information all descriptor size information indicating the total data size of the descriptor and stores it in the storage means, and the setting information read means reads the descriptor read from the storage means Data size detecting means for detecting whether the data size of the information is the data size indicated by the all descriptor size information is provided, and the all descriptor size information indicates based on the detection result of the data size detecting means. Data size description By reading the data information from the storage means, it has achieved the above objects.

また、請求項の場合、例えば、請求項に記載するように、前記設定情報読み込み手段は、前記全てのモジュールに起動信号を出力する起動通知手段を備え、前記データサイズ検知手段が前記全ディスクリプタサイズ情報の示しているデータサイズの前記ディスクリプタ情報の読み込みを検知すると、該起動通知手段が該全てのモジュールに該起動信号を出力してもよい。 In the case of claim 1 , for example, as described in claim 2 , the setting information reading unit includes a start notification unit that outputs a start signal to all the modules, and the data size detecting unit When the reading of the descriptor information having the data size indicated by the descriptor size information is detected, the activation notification means may output the activation signal to all the modules.

さらに、請求項1または2の場合、例えば、請求項に記載するように、前記制御手段は、前記設定値を設定する前記モジュールアドレスが連続する場合に、その連続するモジュールアドレス毎に、該モジュールアドレス連続サイズと該連続する設定値を前記ディスクリプタ情報として前記記憶手段に格納し、前記設定情報読み込み手段は、該記憶手段から読み込んだ前記ディスクリプタ情報のアドレスを計算するアドレス計算手段を備え、該アドレス計算手段が、該連続する各設定値のモジュールアドレスを該設定値の先頭のモジュールアドレスから順次計算して、該計算結果のモジュールアドレスを前記各モジュールに渡してもよい。 Further, in the case of claim 1 or 2 , for example, as described in claim 3 , when the module address for setting the setting value is continuous, the control means, for each continuous module address, The module address continuous size and the continuous setting value are stored in the storage means as the descriptor information, and the setting information reading means includes an address calculation means for calculating an address of the descriptor information read from the storage means, The address calculation means may sequentially calculate the module address of each successive set value from the first module address of the set value, and pass the module address of the calculation result to each module.

また、請求項1から請求項の場合、例えば、請求項に記載するように、前記制御手段は、前記ディスクリプタ情報を所定のブロック毎に分割して異なる前記記憶手段上の異なるディスクリプタアドレスに格納するとともに、該ブロック毎の該ディスクリプタ情報に、次の該ブロックのディスクリプタ情報の該ディスクリプタアドレスを追加して格納し、前記設定情報読み込み手段は、該ブロック毎のディスクリプタ情報を該次の該ディスクリプタアドレスに基づいて順次読み込んでもよい。 Further, in the case of claims 1 to 3 , for example, as described in claim 4 , the control unit divides the descriptor information into predetermined blocks and assigns different descriptor addresses on different storage units. And storing the descriptor information of the next block by adding the descriptor address of the descriptor information of the next block, and the setting information reading means stores the descriptor information of the block of the next descriptor. You may read sequentially based on the address.

さらに、請求項1から請求項の場合、例えば、請求項に記載するように、前記設定情報読み込み手段は、前記各モジュールに個別に起動信号を出力する個別起動通知手段を備え、前記制御手段は、前記ディスクリプタ情報として、該ディスクリプタ情報の設定先のモジュールを特定するモジュール情報を追加して格納し、前記設定情報読み込み手段は、前記ディスクリプタ情報の読み込みを完了すると、該個別起動通知手段が該モジュール情報に基づいて該設定先のモジュールに該起動信号を出力してもよい。 Further, in the case of claims 1 to 4 , for example, as set forth in claim 5 , the setting information reading means includes individual activation notification means for individually outputting activation signals to the modules, and the control The means additionally stores module information for specifying a module to which the descriptor information is set as the descriptor information, and the setting information reading means, when the reading of the descriptor information is completed, the individual activation notifying means The activation signal may be output to the setting destination module based on the module information.

また、請求項1から請求項の場合、例えば、請求項に記載するように、前記各モジュールは、前記データ処理が完了すると、前記設定情報読み込み手段にデータ処理終了信号を出力するデータ処理終了通知手段を備え、前記設定情報読み込み手段は、起動させた全てのモジュールの該データ処理終了通知手段から該データ処理終了信号を受信すると、該全てのモジュールの起動が終了したと判断する起動モジュール終了判定手段を備えていてもよい。 Further, in the case of claims 1 to 5 , for example, as described in claim 6 , each module outputs a data processing end signal to the setting information reading means when the data processing is completed. An activation module for determining that the activation of all the modules is completed when the setting information reading unit receives the data processing completion signal from the data processing completion notification unit of all activated modules. End determination means may be provided.

請求項記載のデータ処理方法は、DMAコントローラを搭載しデータに対して所定のデータ処理を行う複数のモジュールに設定する設定値と該設定値を設定する該モジュールのモジュールアドレスをディスクリプタ情報として記憶手段に格納するディスクリプタ設定処理ステップと、該ディスクリプタ情報を該記憶手段から読み込んで該各モジュールに渡すディスクリプタ取得処理ステップと、各モジュールが該渡されたディスクリプタ情報が自己に設定するディスクリプタ情報であるか否かを該モジュールアドレスに基づいてチェックし、自己に設定すべきディスクリプタ情報であると、該ディスクリプタ情報を取り込んで設定するディスクリプタ情報判別処理ステップとを有し、前記ディスクリプタ設定処理ステップにおいて、前記ディスクリプタ情報に、該ディスクリプタの全データサイズを示す全ディスクリプタサイズ情報を追加して前記記憶手段に格納し、前記ディスクリプタ取得処理ステップにおいて、前記設定情報読み込み手段は、該記憶手段から読み込んだ前記ディスクリプタ情報のデータサイズが該全ディスクリプタサイズ情報の示しているデータサイズであるかを検知し、該検知結果に基づいて、該全ディスクリプタサイズ情報の示しているデータサイズのディスクリプタ情報を該記憶手段から読み込むことにより、上記目的を達成している。 The data processing method according to claim 7 , wherein a setting value to be set in a plurality of modules mounted with a DMA controller and performing predetermined data processing on data and a module address of the module to set the setting value are stored as descriptor information. Descriptor setting processing step to be stored in the means, descriptor acquisition processing step to read the descriptor information from the storage means and pass to each module, and whether each module is the descriptor information to which the passed descriptor information is set the whether to check based on the module address, if it is the descriptor information to be set to itself possess the descriptor information determination processing step of setting captures the descriptor information, in the descriptor setting processing step, the de All descriptor size information indicating all data sizes of the descriptor is added to the scripter information and stored in the storage means. In the descriptor acquisition processing step, the setting information reading means reads the descriptor information read from the storage means. Is read out from the storage means, based on the detection result, whether the data size is the data size indicated by the total descriptor size information. The above-mentioned purpose is achieved.

本発明によれば、DMAコントローラを搭載しデータに対して所定のデータ処理を行う複数のモジュールに設定する設定値と該設定値を設定するモジュールのモジュールアドレスを、制御手段がディスクリプタ情報として記憶手段に格納し、設定情報読み込み手段が、該ディスクリプタ情報を該記憶手段から読み込んで各モジュールに渡して、各モジュールのチェック手段が、該渡されたディスクリプタ情報が自己に設定するディスクリプタ情報であるか否かをモジュールアドレスに基づいてチェックし、自己のモジュールに設定すべきディスクリプタ情報であると、該ディスクリプタ情報を自己のモジュールに設定しているので、ディスクリプタフォーマットを自由に配置することができ、従来、制御手段が設定値の各モジュールへの設定と該設定値に基づくデータの転送のための設定の双方でDMAデータ転送に介在していたのを、記憶手段へ設定値をディスクリプタ情報として格納するだけで、設定値を各モジュールへ設定して、該設定値に基づくデータの転送を行わせることができ、制御手段への負荷を低減させることができるとともに、データ転送を効率的に行うことができる。   According to the present invention, the control means stores the setting values set in a plurality of modules that are equipped with the DMA controller and perform predetermined data processing on the data and the module addresses of the modules that set the setting values as descriptor information. And the setting information reading means reads the descriptor information from the storage means and passes it to each module, and the checking means of each module determines whether or not the passed descriptor information is the descriptor information set to itself. If it is descriptor information to be set in its own module based on the module address, since the descriptor information is set in its own module, the descriptor format can be freely arranged. The control means sets the set value to each module By simply storing the setting value as descriptor information in the storage means, the setting value is set in each module, which was involved in the DMA data transfer in both the settings for data transfer based on the setting value, Data transfer based on the set value can be performed, the load on the control means can be reduced, and data transfer can be performed efficiently.

以下、本発明の好適な実施例を添付図面に基づいて詳細に説明する。なお、以下に述べる実施例は、本発明の好適な実施例であるから、技術的に好ましい種々の限定が付されているが、本発明の範囲は、以下の説明において特に本発明を限定する旨の記載がない限り、これらの態様に限られるものではない。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, since the Example described below is a suitable Example of this invention, various technically preferable restrictions are attached | subjected, However, The scope of the present invention limits this invention especially in the following description. As long as there is no description of the effect, it is not restricted to these aspects.

図1〜図6は、本発明のデータ処理装置及びデータ処理方法の第1実施例を示す図であり、図1は、本発明のデータ処理装置及びデータ処理方法の第1実施例を適用した複写装置、複合装置、プリンタ装置等の画像処理装置1の要部ブロック構成図である。   1 to 6 are diagrams showing a first embodiment of the data processing apparatus and data processing method of the present invention, and FIG. 1 applies the first embodiment of the data processing apparatus and data processing method of the present invention. 1 is a block diagram of a main part of an image processing apparatus 1 such as a copying apparatus, a composite apparatus, or a printer apparatus.

図1において、データ処理装置としての画像処理装置1は、CPU2、データ処理部3及びメモリ4等を備えており、データ処理部3は、画像処理モジュールとしての回転器11、変倍器12、設定情報読み込み部13、CPU I/F14及びメモリ I/F15等を備えている。   In FIG. 1, an image processing apparatus 1 as a data processing apparatus includes a CPU 2, a data processing unit 3, a memory 4, and the like. The data processing unit 3 includes a rotator 11, a magnification changer 12, and an image processing module. A setting information reading unit 13, a CPU I / F 14, a memory I / F 15 and the like are provided.

画像処理装置1は、CPU2の指示情報に応じてデータ処理部3がメモリ4上の画像データの読み込みを行って、該読み込んだ画像データに画像処理を施して、メモリ4に書き戻す処理を行う。   In the image processing apparatus 1, the data processing unit 3 reads image data on the memory 4 in accordance with the instruction information of the CPU 2, performs image processing on the read image data, and writes it back to the memory 4. .

CPU I/F14は、CPU2とのインターフェイスであり、メモリ I/F15は、メモリ4とのインターフェイスである。   The CPU I / F 14 is an interface with the CPU 2, and the memory I / F 15 is an interface with the memory 4.

メモリ4は、RAM(Random Access Memory)やハードディスク等が用いられ、画像データ及びディスクリプタ等が書き込まれ、また、読み出される記憶手段である。   The memory 4 is a storage unit that uses a RAM (Random Access Memory), a hard disk, or the like, and in which image data, descriptors, and the like are written and read.

CPU2は、データ処理部3に設定するレジスタ情報(設定情報)やデータ処理部3に入力するデータをメモリ4に書き込み、また、データ処理部3の設定情報読み込み部13に対して、メモリ4の読み込み開始アドレスを設定したり、起動開始の指示を行う。すなわち、CPU2は、複数のモジュールである回転器11、変倍器12に設定する設定値(レジスタ設定値)と該設定値を設定する回転器11、変倍器12のレジスタアドレス(モジュールアドレス)をディスクリプタ情報としてメモリ4に格納するディスクリプタ設定処理を行う制御手段として機能する。   The CPU 2 writes register information (setting information) to be set in the data processing unit 3 and data to be input to the data processing unit 3 in the memory 4, and also stores the setting information reading unit 13 in the data processing unit 3 in the memory 4. Set the reading start address and give instructions to start. That is, the CPU 2 sets a set value (register set value) for the rotator 11 and the variable power multiplier 12 which are a plurality of modules, and a register address (module address) of the rotator 11 and the variable power generator 12 for setting the set value. Functions as control means for performing descriptor setting processing for storing the information in the memory 4 as descriptor information.

設定情報読み込み部13は、CPU2によって設定されたメモリ4の読み込み開始アドレスからレジスタアドレス(モジュールアドレス)とレジスタ設定値からなるディスクリプタ情報を読み込み、レジスタアドレスは、レジスタ設定値を設定するデータ処理部3内のモジュールである回転器11、変倍器12のレジスタアドレスである。設定情報読み込み部13は、該読み込んだレジスタアドレスとレジスタ設定値のレジスタ情報(ディスクリプタ情報)をデータ処理部3内の全ての画像処理モジュール、すなわち、回転器11、変倍器12に対して流すディスクリプタ取得処理を実行する。   The setting information reading unit 13 reads descriptor information including a register address (module address) and a register setting value from the reading start address of the memory 4 set by the CPU 2, and the register processing unit 3 sets the register setting value. It is a register address of the rotator 11 and the variable magnification device 12 which are the modules in the inside. The setting information reading unit 13 sends the read register address and register information (descriptor information) of the register setting value to all the image processing modules in the data processing unit 3, that is, the rotator 11 and the magnification changer 12. Execute descriptor acquisition processing.

回転器11は、メモリ4から読み込んだ画像データに対して画像回転処理を施す画像処理モジュールであり、データDMAC(DATA DMAC)11a及びアドレスチェッカー11b等を備えている。変倍器12は、メモリ4から読み込んだ画像データに対して画像変倍処理を行う画像処理モジュールであり、データDMAC12a及びアドレスチェッカー12b等を備えている。   The rotator 11 is an image processing module that performs image rotation processing on image data read from the memory 4, and includes a data DMAC (DATA DMAC) 11a, an address checker 11b, and the like. The magnification changer 12 is an image processing module that performs image magnification processing on image data read from the memory 4, and includes a data DMAC 12a, an address checker 12b, and the like.

データDMAC11a、12aは、CPU2を介さずにデータの受け渡しを制御するものであり、メモリ I/F15を介してメモリ4との間で、メモリ4上のディスクリプタ情報に基づいてデータ転送を行う。   The data DMACs 11a and 12a control data transfer without going through the CPU 2, and transfer data to and from the memory 4 via the memory I / F 15 based on descriptor information on the memory 4.

アドレスチェッカー11b、12bは、設定情報読み込み部13から受け取ったレジスタ情報のレジスタアドレスが、該レジスタ情報を自己に設定するアドレスであるか否かチェックし、受け取ったレジスタ情報のレジスタアドレスが自己の回転器11、変倍器12に設定すべきアドレスであると判断すると、内部のレジスタに該受信したレジスタ設定値を保持し、また、アドレスチェッカー11b、12bは、受け取ったレジスタ情報のレジスタアドレスが自己に設定すべきアドレスではないと判断すると、該レジスタ情報を破棄するディスクリプタ情報判別処理を行う。   The address checkers 11b and 12b check whether or not the register address of the register information received from the setting information reading unit 13 is an address for setting the register information to the self, and the register address of the received register information is rotated by itself. When it is determined that the address is to be set in the converter 11 and the variable magnification unit 12, the received register setting value is held in an internal register, and the address checkers 11b and 12b receive the register address of the received register information. If it is determined that the address is not to be set, descriptor information determination processing for discarding the register information is performed.

回転器11、変倍器12は、設定情報読み込み部13から受け取ったレジスタ設定値を内部レジスタに保持すると、データDMAC11a、12aが、該レジスタ設定値に基づいてメモリ4から画像処理パラメータや画像データを読み込み、画像処理パラメータに基づいて画像データに画像回転処理や画像変倍処理を施して、ディスクリプタ情報で指定されているメモリ4上のアドレスに書き込む。   When the rotator 11 and the magnification changer 12 hold the register setting value received from the setting information reading unit 13 in the internal register, the data DMACs 11a and 12a receive image processing parameters and image data from the memory 4 based on the register setting value. Is subjected to image rotation processing and image scaling processing on the image data based on the image processing parameters, and written to the address on the memory 4 specified by the descriptor information.

次に、本実施例の作用を説明する。本実施例の画像処理装置1は、ディスクリプタのフォーマットを自由に配置して、DMAによるデータ転送のためのCPU2の関与を削減する。   Next, the operation of this embodiment will be described. The image processing apparatus 1 according to the present embodiment freely arranges descriptor formats to reduce the involvement of the CPU 2 for data transfer by DMA.

すなわち、図2に示すように、画像処理装置1は、CPU2が、データ処理部2に設定するレジスタ情報(図2では、設定情報と表記している。)をメモリ4上に書き込む(ステップS101)。このレジスタ情報は、データ処理部2に入力する画像データや画像データに施す処理のパラメータや画像データ等のデータの格納されているメモリ4上のメモリアドレスと転送量を示すディスクリプタ情報である。   That is, as shown in FIG. 2, the image processing apparatus 1 writes the register information (denoted as setting information in FIG. 2) that the CPU 2 sets in the data processing unit 2 on the memory 4 (step S101). ). This register information is descriptor information indicating the memory address on the memory 4 in which data such as image data input to the data processing unit 2, processing parameters applied to the image data, and data such as image data are stored, and the transfer amount.

CPU2は、次に、設定情報読み込み部13に対して、レジスタ情報のメモリ4上での読み込み開始アドレスを設定して、起動開始を指示する(ステップS102)。   Next, the CPU 2 sets the reading start address of the register information on the memory 4 to the setting information reading unit 13 and instructs the start of activation (step S102).

設定情報読み込み部13は、メモリ4上のCPU2によって設定された読み込み開始アドレスからデータ処理部3に取り込む上記レジスタ情報を読み込み(ステップS103)、該メモリ4から読み込んだレジスタアドレスとレジスタ設定値を内部の画像処理モジュールの全てである回転器11と変倍器12に対して流す(ステップS104)。   The setting information reading unit 13 reads the register information to be taken into the data processing unit 3 from the reading start address set by the CPU 2 on the memory 4 (step S103), and internally stores the register address and the register setting value read from the memory 4 The image data is sent to the rotator 11 and the variable magnification device 12 which are all the image processing modules (step S104).

回転器11と変倍器12のアドレスチェッカー11b、12bは、レジスタアドレスとレジスタ設定値であるレジスタ情報(ディスクリプタ情報)を設定情報読み込み部13から受け取ると、該受け取ったレジスタ情報のレジスタアドレスが自己に設定すべきアドレスであるか否か判断し(ステップS105)、受け取ったレジスタ情報のレジスタアドレスが自己に設定すべきアドレスであると判断すると、回転器11または変倍器12の内部のレジスタに該受信したレジスタ情報のレジスタ設定値を保持する(ステップS106)。また、アドレスチェッカー11b、12bは、受け取ったレジスタ情報のレジスタアドレスが自己に設定すべきアドレスではないと判断すると、該レジスタ情報を破棄する(ステップS107)。   When the address checkers 11b and 12b of the rotator 11 and the variable magnification unit 12 receive the register information (descriptor information), which is a register address and a register setting value, from the setting information reading unit 13, the register address of the received register information is self-registered. Is determined (step S105). If it is determined that the register address of the received register information is an address to be set to itself, it is stored in the register inside the rotator 11 or the variable magnification unit 12. The register setting value of the received register information is held (step S106). If the address checkers 11b and 12b determine that the register address of the received register information is not an address to be set, the address checkers 11b and 12b discard the register information (step S107).

そして、上記レジスタ情報を内部レジスタに設定した回転器11または変倍器12は、データDMAC11a、12aが、該設定情報であるレジスタ設定値に基づいてメモリ4にアクセスして、メモリ4からデータを読み出し、回転器11または変倍器12は、該データが画像処理の処理パラメータであると、内部レジスタに該処理パラメータの設定を行い、該データが画像データであると、画像データに既に設定されている処理パラメータに基づいて画像回転処理や画像変倍処理を行って、データDMAC11a、12aが該処理後の画像データをメモリ4上に書き戻す。   Then, in the rotator 11 or the variable power multiplier 12 that has set the register information in the internal register, the data DMACs 11a and 12a access the memory 4 based on the register setting value that is the setting information, and transfer data from the memory 4 If the data is a processing parameter for image processing, the read / rotator 11 or the variable magnification unit 12 sets the processing parameter in an internal register. If the data is image data, the data is already set in the image data. The image DMAC 11a, 12a writes the processed image data back to the memory 4 by performing image rotation processing and image scaling processing based on the processing parameters.

このように、本実施例の画像処理装置1は、複数の画像処理モジュールである回転器11、変倍器12に設定するレジスタ設定値と該レジスタ設定値を設定する該回転器11、変倍器12のモジュールアドレスを、CPU2がディスクリプタ情報としてメモリ4に格納し、設定情報読み込み部13が、該ディスクリプタ情報をメモリ4から読み込んで回転器11及び変倍器12に渡して、回転器11及び変倍器12のアドレスチェッカー11b、12bが、該渡されたディスクリプタ情報が自己に設定するディスクリプタ情報であるか否かをモジュールアドレスに基づいてチェックし、自己に設定すべきディスクリプタ情報であると、該ディスクリプタ情報を自己のレジスタに設定している。   As described above, the image processing apparatus 1 according to the present exemplary embodiment includes the rotator 11 and the magnification changer 12 that are a plurality of image processing modules, the register setting value to be set to the register setting value, the rotator 11 to set the register setting value, and the magnification change. The CPU 2 stores the module address of the device 12 as descriptor information in the memory 4, and the setting information reading unit 13 reads the descriptor information from the memory 4, and passes it to the rotator 11 and the power multiplier 12. If the address checkers 11b and 12b of the magnification changer 12 check whether or not the passed descriptor information is descriptor information to be set to the self, based on the module address, The descriptor information is set in its own register.

したがって、ディスクリプタフォーマットを自由に配置することができ、従来、レジスタ設定値の各画像処理モジュールである回転器11、変倍器12への設定と該レジスタ設定値に基づくデータの転送のための設定の双方でCPUがDMAデータ転送に介在していたのを、メモリ4へレジスタ設定値をディスクリプタ情報として格納するだけで、レジスタ設定値を回転器11、変倍器12へ設定させて、該レジスタ設定値に基づくデータの転送を行わせることができ、CPU2への負荷を低減することができるとともに、データ転送を効率的に行うことができる。   Therefore, the descriptor format can be freely arranged. Conventionally, the setting of the register setting values to the rotator 11 and the magnification changer 12 which are each image processing module and the setting for transferring the data based on the register setting values In both cases, the CPU is involved in the DMA data transfer. By simply storing the register setting value in the memory 4 as descriptor information, the register setting value is set in the rotator 11 and the variable magnification unit 12, and the register is set. Data transfer based on the set value can be performed, the load on the CPU 2 can be reduced, and data transfer can be performed efficiently.

すなわち、本実施例の画像処理装置1は、ディスクリプタフォーマットを、モジュールアドレスであるレジスタアドレスとレジスタ設定値で構成し、回転器11、変倍器12のアドレスチェッカー11b、12bがレジスタアドレスに基づいて、レジスタデータが自己宛であるかチェックして、レジスタ設定値の取り込みの制御を行っているので、ディスクリプタフォーマットを自由に配置することができる。   In other words, the image processing apparatus 1 according to the present embodiment configures the descriptor format with a register address that is a module address and a register setting value, and the address checkers 11b and 12b of the rotator 11 and the variable magnification unit 12 are based on the register address. Since the register data is controlled by checking whether the register data is addressed to itself, the descriptor format can be freely arranged.

なお、通常、ディスクリプタは、メモリアドレスと転送量からなる上記レジスタ設定値(レジスタ値)のみからなるフォーマット構成となっているが、本実施例の画像処理装置1では、CPU2がメモリ4上に書き込むディスクリプタフォーマットは、データ処理部3の画像処理モジュールである回転器11と変倍器12のレジスタのアドレスであるレジスタアドレスとレジスタ設定値(メモリアドレスと転送量)からなっている。   Normally, the descriptor has a format configuration consisting only of the register setting value (register value) consisting of the memory address and the transfer amount. However, in the image processing apparatus 1 of this embodiment, the CPU 2 writes the data on the memory 4. The descriptor format is composed of a register address and a register set value (memory address and transfer amount) which are register addresses of the rotator 11 and the magnification changer 12 which are image processing modules of the data processing unit 3.

そして、回転器11のアドレスチェッカー11bと変倍器12のアドレスチェッカー12bは、該レジスタアドレスに基づいて設定情報読み込み部13から受け取ったレジスタ設定値が自己宛であるか判断している。   Then, the address checker 11b of the rotator 11 and the address checker 12b of the magnification changer 12 determine whether the register setting value received from the setting information reading unit 13 is addressed to itself based on the register address.

本実施例で用いるディスクリプタは、上記フォーマット構成に限るものではなく、例えば、図3に示すように、ディスクリプタの先頭に、全ディスクリプタサイズ(全データサイズ)を組み込み、その後に、レジスタアドレスとレジスタ値(レジスタ設定値)の順で格納されていてもよい。すなわち、「全ディスクリプタサイズ、レジスタアドレス、レジスタ値・・・・レジスタアドレス、レジスタ値」の順に格納されたディスクリプタ構成であってもよい。   The descriptor used in this embodiment is not limited to the above format configuration. For example, as shown in FIG. 3, all descriptor sizes (all data sizes) are incorporated at the beginning of the descriptor, and then the register address and register value are included. They may be stored in the order of (register set value). That is, the descriptor configuration may be stored in the order of “all descriptor sizes, register address, register value... Register address, register value”.

このようにディスクリプタに、全ディスクリプタサイズを組み込む場合、設定情報読み込み部13に、データサイズ検知部21(図4参照)を設け、設定情報読み込み部13が、まず、メモリ4の全ディスクリプタサイズ(全データサイズ)を取り込んで、データサイズ検知部21が、該全ディスクリプタサイズを計算しながら、全ディスクリプタサイズ以降のディスクリプタ情報であるレジスタアドレスとレジスタ値(レジスタ設定値)を読み込んで、全画像処理モジュール(回転器11、変倍器12)に対して該レジスタアドレスとデータ値を流す。設定情報読み込み部13は、以下、データサイズ検知部21が読み込んだデータサイズを計算して全ディスクリプタサイズ(全データサイズ)になるまで、メモリ4からレジスタアドレスとレジスタ値を読み込んで、全画像処理モジュールに流す処理を行う。   When the entire descriptor size is incorporated in the descriptor as described above, the setting information reading unit 13 is provided with the data size detection unit 21 (see FIG. 4). Data size), the data size detector 21 reads the register address and the register value (register set value), which are descriptor information after the entire descriptor size, while calculating the total descriptor size, The register address and the data value are supplied to (rotator 11 and variable magnification unit 12). Hereinafter, the setting information reading unit 13 calculates the data size read by the data size detection unit 21 and reads the register address and the register value from the memory 4 until the entire descriptor size (all data size) is reached. Perform processing to flow to the module.

このようにすると、ディスクリプタ情報として設定可能なレジスタ設定数を自由に変更することができ、自由度をより一層向上させることができる。   In this way, the number of register settings that can be set as descriptor information can be freely changed, and the degree of freedom can be further improved.

この場合、図4に示すように、設定情報読み込み部13に、上記データサイズ検知部21と起動通知部22を設け、データサイズ検知部21が、全ディスクリプタサイズを計算すると、すなわち、全ディスクリプタサイズのディスクリプタ情報の読み込みを検出すると、データサイズ検知部21が終了信号を起動通知部22に出力し、起動通知部22が、全画像処理モジュールに対して、すなわち、回転器11及び変倍器12に対して、起動信号(スタート信号)を出力して、各画像処理モジュール、すなわち、回転器11及び変倍器12が上記処理を実行するようにしてもよい。   In this case, as shown in FIG. 4, the setting information reading unit 13 is provided with the data size detection unit 21 and the activation notification unit 22, and when the data size detection unit 21 calculates the total descriptor size, that is, the total descriptor size. When the descriptor information is read, the data size detection unit 21 outputs an end signal to the activation notification unit 22, and the activation notification unit 22 applies to all image processing modules, that is, the rotator 11 and the magnification changer 12. On the other hand, a start signal (start signal) may be output so that each image processing module, that is, the rotator 11 and the magnification changer 12 execute the above processing.

このようにすると、回転器11及び変倍器12を自動的に起動させることができ、CPU2がわざわざ各画像処理モジュールである回転器11や変倍器12の起動をかける必要がなくなり、CPU2の負荷をより一層削減することができる。   In this way, the rotator 11 and the magnification changer 12 can be automatically activated, and it is not necessary for the CPU 2 to bother to activate the rotator 11 and the magnification changer 12 that are image processing modules. The load can be further reduced.

また、本実施例で用いるディスクリプタは、上記フォーマット構成に限るものではなく、例えば、レジスタアドレスが連続領域に配置されている場合には、図5に示すように、ディスクリプタ情報にレジスタアドレス連続サイズを設定してもよい。   Further, the descriptor used in the present embodiment is not limited to the above format configuration. For example, when the register address is arranged in the continuous area, the register address continuous size is set in the descriptor information as shown in FIG. It may be set.

この場合、設定情報読み込み部13に、上記データサイズ検知部21とアドレス計算部を設け、設定情報読み込み部13が、まず、メモリ4の全ディスクリプタサイズ(全データサイズ)を取り込んで、データサイズ検知部21が、該全ディスクリプタサイズを計算しながら、次に、レジスタアドレス連続サイズを読み込み、さらに、全ディスクリプタサイズ以降のディスクリプタ情報であるレジスタアドレスとレジスタ値(レジスタ設定値)を読み込んで、アドレス計算部が、最初に読み込んだレジスタアドレスから計算して、全画像処理モジュール(回転器11、変倍器12)に対して該レジスタアドレスとデータ値を流す。設定情報読み込み部13は、以下、アドレス計算部が計算したレジスタアドレス連続サイズ分読み込んで、次のレジスタアドレス連続サイズ及び以下のレジスタアドレスとレジスタ値の読み込みを、データサイズ検知部21が該読み込んだデータのデータサイズを計算して全ディスクリプタサイズ(全データサイズ)になるまで、行って、順次、全画像処理モジュールに流す処理を行う。   In this case, the setting information reading unit 13 is provided with the data size detection unit 21 and the address calculation unit, and the setting information reading unit 13 first acquires all descriptor sizes (all data sizes) of the memory 4 to detect the data size. While calculating the total descriptor size, the unit 21 next reads the register address continuous size, and further reads the register address and register value (register set value), which are descriptor information after the total descriptor size, to calculate the address. The unit calculates from the register address read first, and sends the register address and the data value to all the image processing modules (rotator 11 and variable magnification unit 12). The setting information reading unit 13 reads the register address continuous size calculated by the address calculation unit, and the data size detection unit 21 reads the next register address continuous size and the following register address and register value. The processing is performed until the data size of the data is calculated until the entire descriptor size (total data size) is reached, and the processing is sequentially performed through all the image processing modules.

このようにすると、レジスタアドレスを連続空間で設定する場合に、最初のレジスタアドレスの設定のみで、後のアドレスを自動計算することができ、確保するメモリ空間を削減することができる。   In this way, when register addresses are set in a continuous space, the subsequent addresses can be automatically calculated only by setting the first register address, and the memory space to be secured can be reduced.

さらに、本実施例で用いるディスクリプタは、上記フォーマット構成に限るものではなく、例えば、図6に示すように、ディスクリプタ情報を複数個に分けてメモリ4上に配置してもよい。   Furthermore, the descriptor used in the present embodiment is not limited to the format configuration described above. For example, as shown in FIG. 6, the descriptor information may be divided into a plurality of pieces and arranged on the memory 4.

この場合、上記同様に、設定情報読み込み部13は、起動されると、最初に、最初にディスクリプタ情報の格納されているアドレスに対してディスクリプタ情報(設定情報)の読み込みを行い、まず、全データサイズの取得を行う。データサイズ検知部21で該全データサイズになるまでメモリ4上からディスクリプタ情報であるレジスタアドレスとレジスタ値の読み込みを行うと、最後に設定されているディスクリプタ情報である次のディスクリプタアドレスを判定する。   In this case, as described above, when the setting information reading unit 13 is activated, the setting information reading unit 13 first reads the descriptor information (setting information) from the address where the descriptor information is stored. Get the size. When the data size detection unit 21 reads the register address and register value as descriptor information from the memory 4 until the total data size is reached, the next descriptor address as the descriptor information set last is determined.

設定情報読み込み部13は、次のディスクリプタアドレスが「0」でなければ、そのデータ値を次の設定情報(ディスクリプタ情報)の格納されているアドレスと判断して、上述のように、最初に全データサイズを取得して、上記同様にディスクリプタ情報を読み込む動作を繰り返し行う。   If the next descriptor address is not “0”, the setting information reading unit 13 determines that the data value is an address at which the next setting information (descriptor information) is stored, and first sets all data as described above. The operation of acquiring the data size and reading the descriptor information is repeated as described above.

そして、設定情報読み込み部13は、次のディスクリプタアドレスが「0」であると、その設定情報が最後の設定情報であると判断して、読み込み動作を完了する。   When the next descriptor address is “0”, the setting information reading unit 13 determines that the setting information is the last setting information, and completes the reading operation.

このようにすると、設定情報が膨大な場合等のようにメモリ連続空間を確保することが難しい場合、ディスクリプタ情報を複数個に分けることができ、レジスタ設定値を複数のディスクリプタ情報に分割することで、より一層自由度を向上させることができる。   In this way, when it is difficult to secure a continuous memory space, such as when the setting information is huge, the descriptor information can be divided into a plurality of pieces, and the register setting value can be divided into a plurality of pieces of descriptor information. The degree of freedom can be further improved.

図7及び図8は、本発明のデータ処理装置及びデータ処理方法の第2実施例を示す図であり、図7は、本発明のデータ処理装置及びデータ処理方法の第2実施例を適用した画像処理装置のデータ処理部の要部ブロック構成図である。   7 and 8 are diagrams showing a second embodiment of the data processing apparatus and data processing method of the present invention, and FIG. 7 applies the second embodiment of the data processing apparatus and data processing method of the present invention. It is a principal block block diagram of the data processing part of an image processing apparatus.

なお、本実施例は、上記第1実施例の画像処理装置1と同様の画像処理装置に適用したものであり、本実施例の説明においては、上記第1実施例の画像処理装置1と同様の構成部分には、同一の符号を付してその詳細な説明を省略するとともに、図示しない部分についても、必要に応じて、第1実施例で用いた符号をそのまま用いて説明する。   The present embodiment is applied to an image processing apparatus similar to the image processing apparatus 1 of the first embodiment, and the description of the present embodiment is the same as the image processing apparatus 1 of the first embodiment. The same reference numerals are assigned to the components, and detailed description thereof is omitted, and portions not shown will be described using the symbols used in the first embodiment as they are as necessary.

図7において、画像処理装置1のデータ処理部3は、画像処理モジュールとしての回転器11及び変倍器12及び設定情報読み込み部13等を備えており、設定情報読み込み部13は、モジュール起動判定部31及び各画像処理モジュール毎の起動通知部である回転器起動通知部32と変倍器起動通知部33を備えている。   In FIG. 7, the data processing unit 3 of the image processing apparatus 1 includes a rotator 11, a magnification changer 12, a setting information reading unit 13, and the like as an image processing module, and the setting information reading unit 13 performs module activation determination. A rotator activation notification unit 32 and a magnification changer activation notification unit 33 which are activation notification units for each of the image processing modules 31 and the image processing modules.

そして、CPU2によってメモリ4に設定されるディスクリプタ情報は、そのディスクリプタフォーマットが図8に示すように構成されており、全データサイズ(全ディスクリプタサイズ)、レジスタアドレス、レジスタ値(レジスタ設定値)・・・レジスタアドレス、レジスタ値が設定されて、最後に、モジュール番号データサイズ及びモジュール番号としての回転器番号と変倍器番号が設定されている。   The descriptor information set in the memory 4 by the CPU 2 has a descriptor format as shown in FIG. 8, and includes all data sizes (all descriptor sizes), register addresses, register values (register set values),. A register address and a register value are set, and finally, a module number data size and a rotator number and a variable number as a module number are set.

本実施例の画像処理装置1は、CPU2がメモリ4に上記構成のディスクリプタ情報を書き込んで、読み込み開始アドレスを設定情報読み込み部13に通知すると、設定情報読み込み部13が、メモリ4の該読み込み開始アドレスからディスクリプタ情報のレジスタアドレスとレジスタ設定値(レジスタ値)を全て読み込み、次に、ディスクリプタに設定されているモジュール番号データサイズを読み込んで、該モジュール番号データサイズ分のモジュール番号、すなわち、回転器番号と変倍器番号を読み込む。   In the image processing apparatus 1 of the present embodiment, when the CPU 2 writes the descriptor information having the above configuration in the memory 4 and notifies the setting information reading unit 13 of the reading start address, the setting information reading unit 13 starts the reading of the memory 4. Read all the register address and register setting value (register value) of descriptor information from the address, then read the module number data size set in the descriptor, and the module number corresponding to the module number data size, that is, the rotator Read the number and the multiplier number.

モジュール情報読み込み部13は、モジュール番号(回転器番号と変倍器番号)を読み込むと、モジュール起動判定部31が、必要なモジュール起動通知部である回転器起動通知部32と変倍器起動通知部33に対して、通知要求を出し、通知要求を受け取った回転器起動通知部32及び変倍器起動通知部33は、対応する画像処理モジュールである回転器11及び変倍器12に対して起動信号を流す。   When the module information reading unit 13 reads the module number (rotator number and variable number), the module activation determination unit 31 and the rotary unit activation notification unit 32 and the variable magnification unit activation notification which are necessary module activation notification units. The rotator activation notifying unit 32 and the magnification changer activation notifying unit 33 that have issued a notification request to the unit 33 and received the notification request are sent to the rotator 11 and the magnification changer 12 that are corresponding image processing modules. Start signal.

回転器11及び変倍器12は、回転器起動通知部32及び変倍器起動通知部33から起動信号を受け取ると、設定情報読み込み部13から受け取ってレジスタアドレスとレジスタ設定値に基づいて上記レジスタ設定処理を行って、必要な画像データやパラメータの読み込みをメモリ4から行う。   When the rotator 11 and the magnification changer 12 receive the activation signal from the rotator activation notification unit 32 and the magnification changer activation notification unit 33, the rotator 11 and the magnification changer 12 receive the setting signal from the setting information reading unit 13 and based on the register address and the register setting value, Setting processing is performed, and necessary image data and parameters are read from the memory 4.

このように、本実施例の画像処理装置1は、起動させるモジュールを指定して、様々なモジュールの組み合わせをディスクリプタ設定情報で制御することができ、より一層自由度を向上させることができる。   As described above, the image processing apparatus 1 according to the present exemplary embodiment can specify the modules to be activated and can control various combinations of modules with the descriptor setting information, thereby further improving the degree of freedom.

図9は、本発明のデータ処理装置及びデータ処理方法の第3実施例を適用した画像処理装置のデータ処理部の要部ブロック構成図である。   FIG. 9 is a block diagram of the main part of the data processing unit of the image processing apparatus to which the third embodiment of the data processing apparatus and data processing method of the present invention is applied.

なお、本実施例は、上記第1実施例の画像処理装置1と同様の画像処理装置に適用したものであり、本実施例の説明においては、上記第1実施例の画像処理装置1と同様の構成部分には、同一の符号を付してその詳細な説明を省略するとともに、図示しない部分についても、必要に応じて、第1実施例で用いた符号をそのまま用いて説明する。   The present embodiment is applied to an image processing apparatus similar to the image processing apparatus 1 of the first embodiment, and the description of the present embodiment is the same as the image processing apparatus 1 of the first embodiment. The same reference numerals are assigned to the components, and detailed description thereof is omitted, and portions not shown will be described using the symbols used in the first embodiment as they are as necessary.

図9において、画像処理装置1のデータ処理部3は、画像処理モジュールとしての回転器11及び変倍器12及び設定情報読み込み部13等を備えている。   In FIG. 9, the data processing unit 3 of the image processing apparatus 1 includes a rotator 11, a magnification changer 12, a setting information reading unit 13, and the like as image processing modules.

回転器11及び変倍器12は、それぞれ設定情報読み込み部13に終了信号を出力してデータ処理の終了を通知するデータ処理終了通知部11c、12cを備えており、設定情報読み込み部13は、各画像処理モジュールである回転器11、変倍器12のデータ処理終了通知部11c、12cからの終了信号に基づいて、各画像処理モジュールでのデータ処理の終了を判定する。   Each of the rotator 11 and the magnification changer 12 includes data processing end notification units 11c and 12c that output an end signal to the setting information reading unit 13 to notify the end of data processing. The setting information reading unit 13 includes: The end of data processing in each image processing module is determined based on end signals from the data processing end notification units 11c and 12c of the rotator 11 and the variable magnification device 12 that are image processing modules.

本実施例の画像処理装置1は、各画像処理モジュールである回転器11及び変倍器12でのディスクリプタ情報に基づくメモリ4からのデータ転送やメモリ4から読み込んだデータに対する画像処理等のデータ処理が終了すると、そのデータ処理終了通知部11c、12cが、設定情報読み込み部13に、終了信号を出力して、データ処理が終了したことを通知する。   The image processing apparatus 1 according to the present embodiment performs data processing such as data transfer from the memory 4 based on descriptor information in the rotator 11 and the variable magnification unit 12 that are image processing modules and image processing for data read from the memory 4. When the data processing ends, the data processing end notification units 11c and 12c output an end signal to the setting information reading unit 13 to notify the end of data processing.

設定情報読み込み部13は、回転器11及び変倍器12からの終了信号を起動モジュール終了判定部41が受け取り、起動モジュール終了判定部41は、起動させたた全ての画像処理モジュールである回転器11、変倍器12から終了信号を受け取った時点でデータ処理部3の処理が終了したと判定する。   The setting information reading unit 13 receives the end signal from the rotator 11 and the power multiplier 12 by the activation module end determination unit 41, and the activation module end determination unit 41 is a rotator that is all the activated image processing modules. 11. It is determined that the processing of the data processing unit 3 has been completed when the end signal is received from the power multiplier 12.

このようにすると、設定情報読み込み部13一箇所でデータ処理部3の全ての動作完了を集中管理して、CPU2は、データ処理部3の終了を各画像処理モジュールである回転器11、変倍器12から通知されるのではなく、設定情報読み込み部13からの通知のみで制御することができ、制御を簡単にして、CPU2の負荷をより一層軽減することができる。   By doing this, the setting information reading unit 13 centrally manages the completion of all operations of the data processing unit 3 in one place, and the CPU 2 determines the end of the data processing unit 3 by the rotator 11 that is each image processing module, the magnification change. The control can be performed only by the notification from the setting information reading unit 13 instead of being notified from the device 12, and the control can be simplified and the load on the CPU 2 can be further reduced.

以上、本発明者によってなされた発明を好適な実施例に基づき具体的に説明したが、本発明は上記のものに限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。   The invention made by the present inventor has been specifically described based on the preferred embodiments. However, the present invention is not limited to the above, and various modifications can be made without departing from the scope of the invention. Needless to say.

本発明は、プリンタ装置、複合装置等のDMAによってデータ転送するデータ処理装置及びデータ処理方法に適用することができる。   The present invention can be applied to a data processing apparatus and a data processing method for transferring data by DMA such as a printer apparatus or a composite apparatus.

本発明の第1実施例を適用した画像処理装置の要部ブロック構成図。1 is a block diagram of a main part of an image processing apparatus to which a first embodiment of the present invention is applied. 図1の画像処理装置によるデータ転送制御処理を示すフローチャート。3 is a flowchart showing data transfer control processing by the image processing apparatus of FIG. 1. 図1の画像処理装置で用いる全データサイズ、レジスタアドレス及びレジスタ値の設定されているディスクリプタの一例を示す図。FIG. 2 is a diagram illustrating an example of a descriptor in which all data sizes, register addresses, and register values used in the image processing apparatus of FIG. 1 are set. 図1のデータサイズ検知部と起動通知部を有する場合の設定情報読み込み部のブロック構成図。The block block diagram of the setting information reading part in the case of having the data size detection part and starting notification part of FIG. 図1の画像処理装置で用いる全データサイズ、レジスタアドレス連続サイズ、レジスタアドレス及びレジスタ値の設定されているディスクリプタの一例を示す図。FIG. 2 is a diagram illustrating an example of a descriptor in which all data sizes, register address continuous sizes, register addresses, and register values are used in the image processing apparatus of FIG. 1. 図1の画像処理装置で用いる全データサイズ、レジスタアドレス、レジスタ値及び次のディスクリプタアドレスの設定されているディスクリプタの一例を示す図。FIG. 2 is a diagram illustrating an example of a descriptor in which all data sizes, register addresses, register values, and next descriptor addresses are used in the image processing apparatus of FIG. 1. 本発明の第2実施例を適用した画像処理装置のデータ処理部の要部ブロック構成図。The principal part block block diagram of the data processing part of the image processing apparatus to which 2nd Example of this invention is applied. 図7の画像処理装置で用いる全データサイズ、レジスタアドレス、レジスタ値、モジュール番号データサイズ、回転器番号及び変倍器番号の設定されているディスクリプタの一例を示す図。FIG. 8 is a diagram illustrating an example of a descriptor in which all data sizes, register addresses, register values, module number data sizes, rotator numbers, and magnification numbers are used in the image processing apparatus of FIG. 7. 本発明の第3実施例を適用した画像処理装置のデータ処理部の要部ブロック構成図。FIG. 9 is a block diagram of the main part of a data processing unit of an image processing apparatus to which a third embodiment of the present invention is applied.

符号の説明Explanation of symbols

1 画像処理装置
2 CPU
3 データ処理部
4 メモリ
11 回転器
11a データDMAC
11b アドレスチェッカー
12 変倍器
12a データDMAC
12b アドレスチェッカー
13 設定情報読み込み部
14 CPU I/F
15 メモリ I/F
21 データサイズ検知部
22 起動通知部
31 モジュール起動判定部
32 回転器起動通知部
33 変倍器起動通知部
41 起動モジュール終了判定部
11c、12c データ処理終了通知部
1 Image processing device 2 CPU
3 Data processor 4 Memory 11 Rotator 11a Data DMAC
11b Address checker 12 Multiplier 12a Data DMAC
12b Address checker 13 Setting information reading unit 14 CPU I / F
15 Memory I / F
21 Data size detection unit 22 Start notification unit 31 Module start determination unit 32 Rotator start notification unit 33 Zoomer start notification unit 41 Start module end determination unit 11c, 12c Data processing end notification unit

Claims (7)

記憶手段上に格納されているディスクリプタ情報に基づいて設定情報やデータをDMA転送するDMAコントローラを搭載し該データに対して所定のデータ処理を行う複数のモジュールと、該記憶手段への該ディスクリプタ情報の設定等を行って該DMAコントローラによる該記憶手段への動作及び該モジュールの動作を制御するとともに、該モジュールに設定する設定値と該設定値を設定する該モジュールのモジュールアドレスを該ディスクリプタ情報として該記憶手段に格納する制御手段と、該ディスクリプタ情報を該記憶手段から読み込んで該各モジュールに渡す設定情報読み込み手段と、を備えたデータ処理装置であって、前記各モジュールは、前記設定情報読み込み手段から渡された該ディスクリプタ情報が自己に設定するディスクリプタ情報であるか否かを前記モジュールアドレスに基づいてチェックし、自己のモジュールに設定すべきディスクリプタ情報であると、該ディスクリプタ情報を自己のモジュールに設定するチェック手段を備え
前記制御手段は、前記ディスクリプタ情報に、該ディスクリプタの全データサイズを示す全ディスクリプタサイズ情報を追加して前記記憶手段に格納し、前記設定情報読み込み手段は、該記憶手段から読み込んだ前記ディスクリプタ情報のデータサイズが該全ディスクリプタサイズ情報の示しているデータサイズであるかを検知するデータサイズ検知手段を備え、該データサイズ検知手段の検知結果に基づいて、該全ディスクリプタサイズ情報の示しているデータサイズのディスクリプタ情報を該記憶手段から読み込むことを特徴とするデータ処理装置。
A plurality of modules that are equipped with a DMA controller for performing DMA transfer of setting information and data based on descriptor information stored on the storage means, and that perform predetermined data processing on the data, and the descriptor information to the storage means To control the operation to the storage means by the DMA controller and the operation of the module, and the setting value to be set for the module and the module address of the module to set the setting value as the descriptor information A data processing apparatus comprising: a control unit that stores data in the storage unit; and a setting information reading unit that reads the descriptor information from the storage unit and passes the descriptor information to the modules. The descriptor information passed from the means is set to self. Whether the descriptor information checked based on the module address, if it is the descriptor information to be set in its own module, comprising a check means for setting the descriptor information in its own module,
The control means adds all descriptor size information indicating the total data size of the descriptor to the descriptor information and stores it in the storage means, and the setting information reading means stores the descriptor information read from the storage means. Data size detection means for detecting whether the data size is the data size indicated by the total descriptor size information, and based on the detection result of the data size detection means, the data size indicated by the total descriptor size information The data processing apparatus is characterized in that the descriptor information is read from the storage means .
前記設定情報読み込み手段は、前記全てのモジュールに起動信号を出力する起動通知手段を備え、前記データサイズ検知手段が前記全ディスクリプタサイズ情報の示しているデータサイズの前記ディスクリプタ情報の読み込みを検知すると、該起動通知手段が該全てのモジュールに該起動信号を出力することを特徴とする請求項1記載のデータ処理装置。 The setting information reading unit includes a start notification unit that outputs a start signal to all the modules, and when the data size detection unit detects reading of the descriptor information of the data size indicated by the all descriptor size information, 2. The data processing apparatus according to claim 1, wherein the activation notification means outputs the activation signal to all the modules . 前記制御手段は、前記設定値を設定する前記モジュールアドレスが連続する場合に、その連続するモジュールアドレス毎に、該モジュールアドレス連続サイズと該連続する設定値を前記ディスクリプタ情報として前記記憶手段に格納し、前記設定情報読み込み手段は、該記憶手段から読み込んだ前記ディスクリプタ情報のアドレスを計算するアドレス計算手段を備え、該アドレス計算手段が、該連続する各設定値のモジュールアドレスを該設定値の先頭のモジュールアドレスから順次計算して、該計算結果のモジュールアドレスを前記各モジュールに渡すことを特徴とする請求項1または2に記載のデータ処理装置。 When the module addresses for setting the setting values are continuous, the control means stores the module address continuous size and the continuous setting values as the descriptor information in the storage means for each continuous module address. The setting information reading means includes address calculating means for calculating the address of the descriptor information read from the storage means, and the address calculating means sets the module address of each successive setting value at the head of the setting value. 3. The data processing apparatus according to claim 1 , wherein calculation is performed sequentially from module addresses, and module addresses of the calculation results are passed to each module . 前記制御手段は、前記ディスクリプタ情報を所定のブロック毎に分割して異なる前記記憶手段上の異なるディスクリプタアドレスに格納するとともに、該ブロック毎の該ディスクリプタ情報に、次の該ブロックのディスクリプタ情報の該ディスクリプタアドレスを追加して格納し、前記設定情報読み込み手段は、該ブロック毎のディスクリプタ情報を該次の該ディスクリプタアドレスに基づいて順次読み込むことを特徴とする請求項1から請求項3のいずれかに記載のデータ処理装置。 The control means divides the descriptor information into predetermined blocks and stores them in different descriptor addresses on the different storage means, and the descriptor information of the next block in the descriptor information for each block. 4. An address is added and stored, and the setting information reading unit sequentially reads descriptor information for each block based on the next descriptor address. Data processing equipment. 前記設定情報読み込み手段は、前記各モジュールに個別に起動信号を出力する個別起動通知手段を備え、前記制御手段は、前記ディスクリプタ情報として、該ディスクリプタ情報の設定先のモジュールを特定するモジュール情報を追加して格納し、前記設定情報読み込み手段は、前記ディスクリプタ情報の読み込みを完了すると、該個別起動通知手段が該モジュール情報に基づいて該設定先のモジュールに該起動信号を出力することを特徴とする請求項1から請求項4のいずれかに記載のデータ処理装置。 The setting information reading unit includes an individual activation notifying unit that individually outputs an activation signal to each module, and the control unit adds module information that identifies a module to which the descriptor information is set as the descriptor information. The setting information reading means outputs the activation signal to the setting destination module based on the module information when the setting information reading means completes reading of the descriptor information. The data processing apparatus according to any one of claims 1 to 4. 前記各モジュールは、前記データ処理が完了すると、前記設定情報読み込み手段にデータ処理終了信号を出力するデータ処理終了通知手段を備え、前記設定情報読み込み手段は、起動させた全てのモジュールの該データ処理終了通知手段から該データ処理終了信号を受信すると、該全てのモジュールの起動が終了したと判断する起動モジュール終了判定手段を備えていることを特徴とする請求項1から請求項5のいずれかに記載のデータ処理装置。 Each of the modules includes a data processing end notifying unit that outputs a data processing end signal to the setting information reading unit when the data processing is completed, and the setting information reading unit includes the data processing unit for all the activated modules. 6. The apparatus according to claim 1, further comprising start module end determination means for determining that start of all the modules has ended when the data processing end signal is received from the end notification means. The data processing apparatus described. DMAコントローラを搭載しデータに対して所定のデータ処理を行う複数のモジュールに設定する設定値と該設定値を設定する該モジュールのモジュールアドレスをディスクリプタ情報として記憶手段に格納するディスクリプタ設定処理ステップと、該ディスクリプタ情報を該記憶手段から読み込んで該各モジュールに渡すディスクリプタ取得処理ステップと、各モジュールが該渡されたディスクリプタ情報が自己に設定するディスクリプタ情報であるか否かを該モジュールアドレスに基づいてチェックし、自己に設定すべきディスクリプタ情報であると、該ディスクリプタ情報を取り込んで設定するディスクリプタ情報判別処理ステップとを有し、
前記ディスクリプタ設定処理ステップにおいて、前記ディスクリプタ情報に、該ディスクリプタの全データサイズを示す全ディスクリプタサイズ情報を追加して前記記憶手段に格納し、前記ディスクリプタ取得処理ステップにおいて、前記設定情報読み込み手段は、該記憶手段から読み込んだ前記ディスクリプタ情報のデータサイズが該全ディスクリプタサイズ情報の示しているデータサイズであるかを検知し、該検知結果に基づいて、該全ディスクリプタサイズ情報の示しているデータサイズのディスクリプタ情報を該記憶手段から読み込むことを特徴とするデータ処理方法。
A descriptor setting processing step for storing a setting value to be set in a plurality of modules that are equipped with a DMA controller and perform predetermined data processing on data, and a module address of the module to set the setting value in a storage unit as descriptor information; A descriptor acquisition processing step of reading the descriptor information from the storage means and passing it to each module, and checking whether each module is based on the module address whether the passed descriptor information is the descriptor information set to itself If the descriptor information is to be set in itself, the descriptor information determination processing step for fetching and setting the descriptor information is included.
In the descriptor setting processing step, all descriptor size information indicating all data sizes of the descriptor is added to the descriptor information and stored in the storage means. In the descriptor acquisition processing step, the setting information reading means includes the descriptor information It is detected whether the data size of the descriptor information read from the storage means is the data size indicated by the total descriptor size information, and based on the detection result, the descriptor of the data size indicated by the total descriptor size information A data processing method , wherein information is read from the storage means .
JP2007187817A 2007-07-19 2007-07-19 Data processing apparatus and data processing method Expired - Fee Related JP4847407B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007187817A JP4847407B2 (en) 2007-07-19 2007-07-19 Data processing apparatus and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007187817A JP4847407B2 (en) 2007-07-19 2007-07-19 Data processing apparatus and data processing method

Publications (2)

Publication Number Publication Date
JP2009026023A JP2009026023A (en) 2009-02-05
JP4847407B2 true JP4847407B2 (en) 2011-12-28

Family

ID=40397781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007187817A Expired - Fee Related JP4847407B2 (en) 2007-07-19 2007-07-19 Data processing apparatus and data processing method

Country Status (1)

Country Link
JP (1) JP4847407B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH031264A (en) * 1989-05-30 1991-01-07 Oki Electric Ind Co Ltd Multi-processor system
JPH11134287A (en) * 1997-10-28 1999-05-21 Nec Corp Input/output bus data transfer device
JP2006119971A (en) * 2004-10-22 2006-05-11 Canon Inc Data transfer device
JP4456490B2 (en) * 2005-01-14 2010-04-28 富士通株式会社 DMA equipment

Also Published As

Publication number Publication date
JP2009026023A (en) 2009-02-05

Similar Documents

Publication Publication Date Title
JP5217929B2 (en) Interrupt detection device and information processing system
JP2008022372A (en) Alteration detection information generating apparatus, imaging apparatus, alteration detection information generating method, program, and storage medium
JP2009527820A5 (en)
JP4847407B2 (en) Data processing apparatus and data processing method
JP5651622B2 (en) Data transmission apparatus, data transmission method, and program
JP4446968B2 (en) Data processing device
JP5675278B2 (en) Data processing apparatus and image processing apparatus
US20080005389A1 (en) Direct memory access controller
JP2001157049A5 (en)
JP3747213B1 (en) NAND flash memory device and controller for sequential ROM interface
JP2015187833A (en) Information processor, information processing method, and program
JP2006338533A (en) Multilayered bus system having ecc circuit
JP2020197857A (en) Image forming apparatus, control method thereof, and program
JP6635696B2 (en) Information processing apparatus and control method
JP4560398B2 (en) Data processing circuit
JP2016154001A (en) Image processor, data transfer control method for image processing, and data transfer control program for image processing
JP2008059452A (en) Image processor and image processing method
JP2007087086A (en) Dma transfer system
JP2009245005A (en) Data processor, data processing method and data processing program
JP2007280373A (en) Data processing device, image processing device, image forming apparatus, and computer program
JP2020077246A (en) Data transfer device, image capturing device, and data transfer method
JP2007072910A (en) Image input device
JP2011180653A (en) Data transfer device and data transfer method
JP5392037B2 (en) Information processing device
JP2011150625A (en) Apparatus and method for processing signal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100223

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20100310

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20100310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110810

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110913

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: 20111004

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111013

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

Free format text: PAYMENT UNTIL: 20141021

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20141021

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees