JP5111020B2 - Image processing apparatus and control method thereof - Google Patents

Image processing apparatus and control method thereof Download PDF

Info

Publication number
JP5111020B2
JP5111020B2 JP2007223090A JP2007223090A JP5111020B2 JP 5111020 B2 JP5111020 B2 JP 5111020B2 JP 2007223090 A JP2007223090 A JP 2007223090A JP 2007223090 A JP2007223090 A JP 2007223090A JP 5111020 B2 JP5111020 B2 JP 5111020B2
Authority
JP
Japan
Prior art keywords
command
image processing
register
module
processing modules
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
JP2007223090A
Other languages
Japanese (ja)
Other versions
JP2009058994A (en
JP2009058994A5 (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2007223090A priority Critical patent/JP5111020B2/en
Publication of JP2009058994A publication Critical patent/JP2009058994A/en
Publication of JP2009058994A5 publication Critical patent/JP2009058994A5/ja
Application granted granted Critical
Publication of JP5111020B2 publication Critical patent/JP5111020B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、レジスタデータまたは、画像データを、コマンド化して、複数の画像処理モジュールを直列に接続する伝送路により転送する画像処理装置及びその制御方法に関する。   The present invention relates to an image processing apparatus that converts register data or image data into a command and transfers the data through a transmission path that connects a plurality of image processing modules in series, and a control method thereof.

従来より、複数の画像処理モジュールがデータ伝送路によって直列に接続された構成の画像処理装置が知られている(特許文献1)。この種の画像処理装置は、図6に示されるように、画像処理モジュール601〜604がデータ伝送路605により直列に接続された構成を有する。レジスタデータや画像データは、コマンド化されて、データ伝送路605上を流れ、画像処理モジュール601〜604に順次に提供されることになる。   Conventionally, an image processing apparatus having a configuration in which a plurality of image processing modules are connected in series via a data transmission path is known (Patent Document 1). As shown in FIG. 6, this type of image processing apparatus has a configuration in which image processing modules 601 to 604 are connected in series via a data transmission path 605. The register data and image data are converted into commands, flow on the data transmission path 605, and sequentially provided to the image processing modules 601 to 604.

各画像処理モジュールは、送られてきたコマンドに記述されているモジュールIDを参照して、自身が処理すべきコマンドであるか否かを判断する。そして、処理すべきコマンドであると判断した場合のみ当該コマンドについて処理を実行し、画像処理後にそのコマンドを後段の画像処理モジュールへ送信する。また、処理すべきコマンドでない場合には、何もせずに後段の画像処理モジュールへそのコマンドを転送する。
特開2001−162894号公報
Each image processing module determines whether or not it is a command to be processed by referring to the module ID described in the sent command. Only when it is determined that the command is to be processed, the command is processed, and after the image processing, the command is transmitted to the subsequent image processing module. If the command is not to be processed, the command is transferred to the subsequent image processing module without doing anything.
JP 2001-162894 A

しかしながら上記従来技術では、全ての画像処理モジュールに共通したレジスタの読み書きを行う場合にも、画像処理モジュールの数だけのコマンドが必要であった。特に、レジスタの読み出しの場合は、コマンドに読み出し結果のデータが記述されるため、各画像処モジュールに応じたコマンドを用意し、それらをデータ伝送路605へ流す必要がある。   However, in the above-described prior art, commands corresponding to the number of image processing modules are required even when reading / writing the registers common to all the image processing modules. In particular, in the case of register reading, since the read result data is described in the command, it is necessary to prepare a command corresponding to each image processing module and to send the command to the data transmission path 605.

本発明は、上記の課題に鑑みてなされたものであり、ひとつのレジスタコマンドで全ての画像処理モジュールにおけるレジスタの読み出し処理を実行可能にすることを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to enable register read processing in all image processing modules with one register command.

上記の目的を達成するための本発明の一態様による画像処理装置は以下の構成を備える。すなわち、
コマンド識別情報、モジュール識別情報及びコマンドの内容情報を含むコマンドを処理する複数の処理モジュールが直列に接続された画像処理装置であって、
前記複数の処理モジュールの各々が、
入力されたコマンドのコマンド識別情報がレジスタからのデータの読み出しを示すかどうかと、当該コマンドのモジュール識別情報が複数の処理モジュールを指定しているかどうかと、を判定する判定手段と、
前記判定手段によって前記コマンドがレジスタからのデータの読出しを示し、複数の処理モジュールを指定していると判定されると、前記コマンドをそのまま下流へ転送する転送手段と、
前記判定手段によって前記コマンドがレジスタからのデータの読出しを示し、複数の処理モジュールを指定していると判定されると、前記コマンドのモジュール識別情報を当該処理モジュールの識別情報に置き換え、内容情報に前記レジスタから読み出したデータを記述して新たなコマンドを生成する生成手段と、
前記生成手段で生成された新たなコマンドを下流へ送信する送信手段とを備える。
In order to achieve the above object, an image processing apparatus according to an aspect of the present invention has the following arrangement. That is,
An image processing apparatus in which a plurality of processing modules that process commands including command identification information, module identification information, and command content information are connected in series,
Each of the plurality of processing modules is
Determining means for determining whether the command identification information of the input command indicates reading of data from the register and whether the module identification information of the command specifies a plurality of processing modules;
When the determination means determines that the command indicates reading of data from a register and designates a plurality of processing modules, the transfer means transfers the command as it is downstream;
Wherein said command by judging means indicates the reading of data from the register, when it is determined that specifies a plurality of processing modules, replace the module identification information of the command identification information of the processing module, the content information Generating means for describing the data read from the register and generating a new command;
Transmitting means for transmitting a new command generated by the generating means downstream.

また、上記の目的を達成するための本発明の一態様による画像処理装置の制御方法は、
コマンド識別情報、モジュール識別情報及びコマンドの内容情報を含むコマンドを処理する複数の処理モジュールが直列に接続された画像処理装置の制御方法であって、
前記処理モジュールの判定手段が、入力されたコマンドのコマンド識別情報がレジスタからのデータの読み出しを示すかどうかと、当該コマンドのモジュール識別情報が複数の処理モジュールを指定しているかどうかと、を判定する判定工程と、
記判定工程で前記コマンドはレジスタからのデータの読出しを示し複数の処理モジュールを指定していると判定されると、前記コマンドをそのまま下流へ転送する転送工程と、
記判定工程で前記コマンドはレジスタからのデータの読出しを示し複数の処理モジュールを指定していると判定されると、前記コマンドのモジュール識別情報を当該処理モジュールの識別情報に置き換え、内容情報に前記レジスタから読み出したデータを記述して新たなコマンドを生成する生成工程と、
前記処理モジュールの送信手段が、前記生成工程で生成された新たなコマンドを下流へ送信する送信工程とを備える。
A method for controlling an image processing apparatus according to an aspect of the present invention for achieving the above-described object is as follows:
A method for controlling an image processing apparatus in which a plurality of processing modules for processing a command including command identification information, module identification information, and command content information are connected in series.
Determination judging means of the processing module, and whether to show the reading of data from the command identification information of the inputted command register, and whether the module identification information of the command specifies a plurality of processing modules, the A determination step to
When the front Symbol said command determination step it is determined that specifies a plurality of processing modules indicate the reading of data from the register, a transfer step of transferring the command directly to the downstream,
When the previous SL determination process command is determined that specifies a plurality of processing modules indicate the reading of data from the register, replacing the module identification information of the command identification information of the processing module, the content information Generating a new command by describing the data read from the register; and
The transmission means of the said processing module is provided with the transmission process which transmits the new command produced | generated by the said production | generation process downstream.

本発明によれば、ひとつのレジスタコマンドで全ての画像処理モジュールにおけるレジスタの読み出し処理が実行可能になり、コマンドの省力化によるシステムの高速化が期待できる。   According to the present invention, register read processing in all image processing modules can be executed with a single register command, and the system can be expected to speed up by saving the command.

以下、添付の図面を参照して、本発明の好適な実施形態を説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.

図1は本実施形態による画像処理装置の構成例を示すブロック図である。   FIG. 1 is a block diagram illustrating a configuration example of an image processing apparatus according to the present embodiment.

図1において、101はCPU、102はRAM、103はROMである。また、104は第1の画像処理モジュール、105は第2の画像処理モジュール、106は第3の画像処理モジュール、107は第4の画像処理モジュールである。更に、108は第1のダイレクトメモリアクセスコントローラ(以下、DMAC108)、109は第2のダイレクトメモリアクセスコントローラ(以下、DMAC108)である。   In FIG. 1, 101 is a CPU, 102 is a RAM, and 103 is a ROM. Reference numeral 104 denotes a first image processing module, 105 denotes a second image processing module, 106 denotes a third image processing module, and 107 denotes a fourth image processing module. Further, 108 is a first direct memory access controller (hereinafter referred to as DMAC 108), and 109 is a second direct memory access controller (hereinafter referred to as DMAC 108).

画像処理モジュール104〜107及びDMAC108、109は、単一の伝送路111で直列に接続され、DMAC108,109は汎用バス112経由でCPU101、RAM102、ROM103と接続されている。画像処理モジュール104〜107は、図示の順に上流側から下流側へ接続されている。   The image processing modules 104 to 107 and the DMACs 108 and 109 are connected in series by a single transmission path 111, and the DMACs 108 and 109 are connected to the CPU 101, the RAM 102, and the ROM 103 via the general-purpose bus 112. The image processing modules 104 to 107 are connected from the upstream side to the downstream side in the illustrated order.

画像処理モジュール104〜107は、例えばシェーディング補正回路、γ補正回路、色変換回路、拡大縮小回路等の画像処理モジュールを示している。また画像処理モジュール104〜107の各々は、図2に示されるようなレジスタを備えている。レジスタは、画像処理モジュール個別のレジスタアドレス領域(レジスタアドレス領域a、b、c、d)と、画像処理モジュール104〜107に共通したレジスタアドレス領域(ブロードキャストアドレス領域)を有する。画像処理モジュール104〜107は図1に示すように同一経路(伝送路111)によってデータ転送をすることで画像処理を行う回路であり、DMAC108,109を介して、汎用バス112と接続されている。また、CPU101、RAM102、ROM103は上記の汎用バス112と接続されている。   Image processing modules 104 to 107 are image processing modules such as a shading correction circuit, a γ correction circuit, a color conversion circuit, and an enlargement / reduction circuit, for example. Each of the image processing modules 104 to 107 includes a register as shown in FIG. The register has a register address area (register address area a, b, c, d) for each image processing module and a register address area (broadcast address area) common to the image processing modules 104 to 107. As shown in FIG. 1, the image processing modules 104 to 107 are circuits that perform image processing by transferring data through the same path (transmission path 111), and are connected to the general-purpose bus 112 via the DMACs 108 and 109. . The CPU 101, RAM 102, and ROM 103 are connected to the general-purpose bus 112.

次に第1の実施形態の画像処理装置の動作に関して説明する。   Next, the operation of the image processing apparatus according to the first embodiment will be described.

CPU101は画像処理開始前、決められた処理単位毎に、レジスタデータまたは画像データをコマンド化し、そのコマンドをRAM102に書き込む。または、あらかじめレジスタデータや画像データをコマンド化したコマンドをROM103に書き込んでおいてもよい。そしてDMAC108は、RAM102もしくはROM103に格納された上記のコマンド群を、最も上流にある画像処理モジュール104に順次に提供する。   The CPU 101 converts the register data or image data into a command for each determined processing unit before starting the image processing, and writes the command to the RAM 102. Alternatively, a command obtained by converting register data or image data into a command may be written in the ROM 103 in advance. The DMAC 108 sequentially provides the above-described command group stored in the RAM 102 or the ROM 103 to the image processing module 104 located upstream.

上記コマンドは、大きく分けて2つのコマンドに分けられる。1つ目は、各画像処理モジュールのレジスタの読み書きを行うためのレジスタコマンドである。2つ目は、画像処理を行うための画像データを含んだ画像コマンドである。   The above commands are roughly divided into two commands. The first is a register command for reading and writing the registers of each image processing module. The second is an image command including image data for performing image processing.

レジスタコマンドは図3の(a)に示されるように、ヘッダ情報とデータとで構成される。ヘッダ情報はレジスタコマンドであることを示すコマンドIDと、レジスタコマンドの送信先の画像処理モジュールを示すモジュール識別情報としてのモジュールIDで構成される。例えば図4で示されるように、画像処理モジュール104には“001”、画像処理モジュール105には“010”、画像処理モジュール106には“011”、画像処理モジュール107には“100”がモジュールIDとして割り振られている。また全ての処理モジュールに対応するモジュールIDは“000”が割り振られており、以下、このモジュールIDをブロードキャストIDと称する。   As shown in FIG. 3A, the register command is composed of header information and data. The header information includes a command ID indicating a register command and a module ID as module identification information indicating an image processing module to which the register command is transmitted. For example, as shown in FIG. 4, the image processing module 104 is “001”, the image processing module 105 is “010”, the image processing module 106 is “011”, and the image processing module 107 is “100”. It is assigned as an ID. Further, “000” is assigned as the module ID corresponding to all the processing modules, and this module ID is hereinafter referred to as a broadcast ID.

データは、画像処理モジュールのレジスタに対して読み出すコマンドか、書き込むコマンドかを識別するためのリード・ライトIDと、レジスタデータと、レジスタアドレスで構成される。上述したコマンドIDとリード・ライトIDの組み合わせにより、当該コマンドがレジスタの読み出し、レジスタの書き込みといったコマンドの種別を特定するコマンド識別情報が構成される。レジスタデータには、ライトコマンドの場合にはレジスタアドレスで特定される位置に書き込まれるべきデータが、リードコマンドの場合にはレジスタアドレスで特定される位置から読み出されたデータが格納される。すなわち、レジスタアドレス、レジスタデータは、レジスタコマンドの読み出しアドレス、書き込み内容を表す内容情報を構成している。   The data is composed of a read / write ID for identifying a command to be read from or written to a register of the image processing module, register data, and a register address. The combination of the command ID and the read / write ID described above constitutes command identification information that specifies the type of command such as register read or register write. The register data stores data to be written at a position specified by a register address in the case of a write command, and data read from a position specified by a register address in the case of a read command. That is, the register address and the register data constitute content information representing the read address and write content of the register command.

一方、画像コマンドは図3の(b)に示されるようにヘッダ情報とデータとで構成される。ヘッダ情報は画像コマンドを示すコマンドIDで構成される。画像コマンドは全ての画像処理モジュールで処理されるため、モジュールIDは画像コマンドに存在しない。データは属性データと画像データで構成される。属性データは、当該画像データの位置情報や、画像データの有効ビット、その他の制御信号等を示す。なお、画像コマンドの画像データは、画像処理モジュールにおいて処理されるべき画像データであり、画像処理モジュールで処理された後はその処理結果として得られた画像データで上書きされる。   On the other hand, the image command is composed of header information and data as shown in FIG. The header information is composed of a command ID indicating an image command. Since the image command is processed by all image processing modules, the module ID does not exist in the image command. The data is composed of attribute data and image data. The attribute data indicates position information of the image data, valid bits of the image data, other control signals, and the like. The image data of the image command is image data to be processed in the image processing module, and after being processed in the image processing module, it is overwritten with the image data obtained as a result of the processing.

上述したように、DMAC108ははRAM102またはROM103からコマンドを読み出し、読み出したコマンドを画像処理モジュール104へ転送する。画像処理モジュール104はコマンドのコマンドIDからレジスタコマンドまたは画像コマンドを認識し、コマンドに応じた処理を行う。   As described above, the DMAC 108 reads a command from the RAM 102 or the ROM 103 and transfers the read command to the image processing module 104. The image processing module 104 recognizes a register command or an image command from the command ID of the command, and performs processing according to the command.

まずコマンドがレジスタコマンドである場合の画像処理モジュール104の動作について、図5のフローチャートを用いて説明する。図5は本実施形態の画像処理モジュールが受信したコマンドについて実行する処理を説明するフローチャートである。   First, the operation of the image processing module 104 when the command is a register command will be described with reference to the flowchart of FIG. FIG. 5 is a flowchart for explaining processing executed for a command received by the image processing module of this embodiment.

ステップS501において、画像処理モジュール104は、送られてきたコマンドのモジュールIDを参照する。モジュールIDがブロードキャストIDでも自分自身の画像処理モジュールのモジュールIDでもない場合は、そのコマンドは画像処理モジュール104には必要ない。従って、ステップS502において、画像処理モジュール104は、当該コマンドについて何もせずに、当該コマンドを後段の画像処理モジュールに転送する。   In step S501, the image processing module 104 refers to the module ID of the sent command. If the module ID is neither a broadcast ID nor a module ID of its own image processing module, the command is not necessary for the image processing module 104. Accordingly, in step S502, the image processing module 104 does not do anything with the command and transfers the command to the subsequent image processing module.

一方、上記モジュールIDが自分自身の画像処理モジュールを示す場合には、ステップS503において、画像処理モジュール104は、当該コマンドのリード・ライトIDを参照する。リード・ライトIDがレジスタライトを示す場合、処理はステップS503からステップS504へ進む。ステップS504において、画像処理モジュール104は、自身のレジスタの、当該コマンドのレジスタアドレスによって指し示されるアドレスに、当該コマンドのレジスタデータを書き込む。そして、ステップS505において、画像処理モジュール104は、当該コマンドを後段の画像処理モジュール105へ転送する。   On the other hand, when the module ID indicates its own image processing module, in step S503, the image processing module 104 refers to the read / write ID of the command. If the read / write ID indicates register write, the process proceeds from step S503 to step S504. In step S504, the image processing module 104 writes the register data of the command to the address indicated by the register address of the command in its own register. In step S505, the image processing module 104 transfers the command to the subsequent image processing module 105.

一方、リード・ライトIDがレジスタリードを示す場合は、処理はステップS503からステップS506へ進む。ステップS506において、画像処理モジュール104は、自身のレジスタの、コマンドのレジスタアドレスが指し示す位置に格納されているデータを読み出す。そして、ステップS507において、画像処理モジュール104は、上記レジスタから読み出された値を当該コマンドのレジスタデータに書き込んでコマンド化し、これを後段の画像処理モジュール105に送信する。   On the other hand, if the read / write ID indicates register read, the process proceeds from step S503 to step S506. In step S506, the image processing module 104 reads the data stored in the position indicated by the register address of the command in its own register. In step S507, the image processing module 104 writes the value read from the register into the register data of the command to convert it into a command, and transmits this to the subsequent image processing module 105.

モジュールIDがブロードキャストIDを示す場合は、処理はステップS501からステップS508へ進む。ステップS508において、画像処理モジュール104は、リード・ライトIDを参照する。そして、リード・ライトIDがレジスタライトを示す場合は、処理はステップS509へ進む。ステップS509において、画像処理モジュール104は、自身のレジスタの、コマンドのレジスタアドレスが指し示す位置に、当該コマンドのレジスタデータを書き込む。そして、ステップS510において、画像処理モジュール104は、当該コマンドを後段の画像処理モジュール105に送信する。   If the module ID indicates a broadcast ID, the process proceeds from step S501 to step S508. In step S508, the image processing module 104 refers to the read / write ID. If the read / write ID indicates register write, the process proceeds to step S509. In step S509, the image processing module 104 writes the register data of the command at the position indicated by the register address of the command in its own register. In step S510, the image processing module 104 transmits the command to the subsequent image processing module 105.

一方、ステップS508においてリード・ライトIDがレジスタリードを示すと判定された場合は、処理はステップS511へ進む。ステップS511において、画像処理モジュール104は、前段(上流)のモジュールにビジー信号を送信し、次のコマンドを受け取らないようにする。なお、画像処理モジュール104の場合、前段のモジュールはDMAC108となる。そして、画像処理モジュール104は、既に受け取った当該コマンドをそのまま後段(下流)の画像処理モジュール105に転送する。   On the other hand, if it is determined in step S508 that the read / write ID indicates register read, the process proceeds to step S511. In step S511, the image processing module 104 transmits a busy signal to the preceding (upstream) module so as not to receive the next command. In the case of the image processing module 104, the previous module is the DMAC. Then, the image processing module 104 transfers the received command to the subsequent (downstream) image processing module 105 as it is.

続いて、ステップS512において、画像処理モジュール104は、当該コマンドに基づいて以下の構成の新規コマンドを発行する。新規コマンドは、当該コマンドのモジュールIDを画像処理モジュール104のモジュールIDに更新し、当該コマンドのレジスタデータを、レジスタデータから読み出したレジスタ値で更新することにより生成することができる。すなわち、新規コマンドにおいて、
・コマンドIDには、レジスタコマンドを示すIDが、
・モジュールIDには、自分自身の画像処理モジュールを示すID(図4を用いると、モジュールIDは“001”である)が、
・リード・ライトID及びレジスタアドレスには、入力された当該コマンドの値が、
・レジスタデータには、画像処理モジュール104のレジスタの、入力された当該コマンドのレジスタアドレスが指し示す位置のデータが記述される。
In step S512, the image processing module 104 issues a new command having the following configuration based on the command. The new command can be generated by updating the module ID of the command to the module ID of the image processing module 104 and updating the register data of the command with the register value read from the register data. That is, in the new command,
・ In command ID, ID indicating register command is
The module ID includes an ID indicating its own image processing module (using FIG. 4, the module ID is “001”),
・ The read / write ID and register address contain the value of the input command.
In the register data, data at the position indicated by the register address of the input command of the register of the image processing module 104 is described.

そして、ステップS513において、画像処理モジュール104は、後段の画像処理モジュール105に上記新規コマンドを送信すると共に、ステップS511で前段の画像処理モジュールに対して送信したビジー信号を解除する。新規コマンドのモジュールIDは後段の画像処理モジュール105〜107のいずれとも異なるので、新規コマンドは後段の画像処理モジュール105〜107によって処理されることはない。   In step S513, the image processing module 104 transmits the new command to the subsequent image processing module 105, and cancels the busy signal transmitted to the previous image processing module in step S511. Since the module ID of the new command is different from any of the subsequent image processing modules 105 to 107, the new command is not processed by the subsequent image processing modules 105 to 107.

以上説明したように、本実施形態によれば、画像処理モジュールが自らコマンドを発行し、送信することによって、1つのレジスタコマンドで、全ての画像処理モジュールに共通したレジスタの値を、お互いが干渉することなく読み出すことができる。   As described above, according to the present embodiment, when the image processing module issues and transmits a command by itself, the register values common to all the image processing modules interfere with each other by one register command. It can be read without doing.

コマンドが画像コマンドである場合、画像処理モジュール104はコマンドのデータを受信し画像処理を行う。そして、画像処理モジュール104は画像処理の出力データをコマンド化して後段の画像処理モジュール105に送信する。   If the command is an image command, the image processing module 104 receives the command data and performs image processing. Then, the image processing module 104 converts the output data of the image processing into a command and transmits it to the subsequent image processing module 105.

以上、レジスタコマンド、画像コマンドに対する画像処理モジュール104の処理について説明したが、他の画像処理モジュール105〜107でも同様の処理が行われる。そして、最後に、DMAC109は、最も下流の画像処理モジュール107から出力されたコマンドを受け取り、これを当該ダイレクトメモリアクセスにおいて予め指定されたRAM102のアドレスへ順次に書き込む。なお、本実施形態では、画像処理モジュールでレジスタ読み出しを行うと新たなコマンドが生成されることになるので、DMAC108によるコマンドの読み出し数と、DMAC109によるコマンドの書き込み数が異なる。例えば、画像処理モジュールが4つであり、DMAC108からブロードキャストIDを有する1つのリードコマンドが送られると、DMAC109では5つのリードコマンドを受け取ることになる。DMAC109はRAM102のアドレスカウンタを順次に増やしながら最終段の画像処理モジュール107から受け取ったコマンドをRAM102に格納していく。或いは、ブロードキャストのリードレジスタコマンドに続いて4つのコマンドが連続するとわかっているので、それぞれが格納されるアドレスを予め決定しておいて、そのアドレスに格納していくようにDMAC109を構成することも可能である。なお、DMAC109によるリードレジスタコマンドの判断は、受信したコマンドのヘッダを解析することで実現できる。或いは、画像コマンド終了後に必ずブロードキャストのレジスタリードが行われるシーケンスであれば、受信コマンドのカウント値のみでDMAC109がリードレジスタコマンドの判断を行うことが可能である。但し、この制御には、画像コマンドの間にリードレジスタコマンド等が入らないことが前提となる。   Although the processing of the image processing module 104 for register commands and image commands has been described above, similar processing is performed in the other image processing modules 105 to 107. Finally, the DMAC 109 receives the command output from the most downstream image processing module 107, and sequentially writes the command to the address of the RAM 102 designated in advance in the direct memory access. In this embodiment, when a register read is performed by the image processing module, a new command is generated. Therefore, the number of commands read by the DMAC 108 is different from the number of commands written by the DMAC 109. For example, when there are four image processing modules and one read command having a broadcast ID is sent from the DMAC 108, the DMAC 109 receives five read commands. The DMAC 109 stores the command received from the image processing module 107 at the final stage in the RAM 102 while sequentially increasing the address counter of the RAM 102. Alternatively, since it is known that four commands follow the broadcast read register command, the DMAC 109 may be configured so that each of the addresses to be stored is determined in advance and stored at that address. Is possible. The determination of the read register command by the DMAC 109 can be realized by analyzing the header of the received command. Alternatively, if the sequence is such that a broadcast register read is always performed after the end of the image command, the DMAC 109 can determine the read register command only with the count value of the received command. However, this control is premised on that a read register command or the like does not enter between image commands.

なお、上記説明において、4つの画像処理モジュール(画像処理モジュール104〜107)を用いて説明したが、画像処理モジュールの数に依存しないことは言うまでもない。   In the above description, the four image processing modules (image processing modules 104 to 107) have been described, but it goes without saying that the number does not depend on the number of image processing modules.

なお、全ての画像処理モジュールにおけるレジスタへの書き込みを行なう場合は、上述したようにレジスタコマンドのリード・ライトIDにライトを、モジュールIDにブロードキャストIDを設定する。各画像処理モジュールは、レジスタコマンドのレジスタアドレスで指定されたアドレスに、当該レジスタコマンドのレジスタデータを書き込み、当該レジスタコマンドをそのまま下流へ転送する(S509,S510)。   When writing to registers in all image processing modules, as described above, write is set to the read / write ID of the register command, and broadcast ID is set to the module ID. Each image processing module writes the register data of the register command to the address specified by the register address of the register command, and transfers the register command as it is downstream (S509, S510).

以上のように、本実施形態の画像処理装置によれば、一つのレジスタコマンドで全ての画像処理モジュールに共通したレジスタに対する読み書きが可能になる。その結果、コマンドの省力化によるシステムの高速化が期待できる。   As described above, according to the image processing apparatus of this embodiment, it is possible to read / write data from / to a register common to all image processing modules with one register command. As a result, it is expected that the system will be speeded up by saving the command.

尚、複数の画像処理モジュールに共通したレジスタの読み書きを行なう場合に、ブロードキャストIDの代わりに、各画像処理モジュールに共通の所定のアドレス範囲を使用してもよい。この場合、各画像処理モジュールにおけるレジスタコマンドの識別は自身のモジュールIDまたは上記特別なアドレス範囲の両者で判定する。即ち、自身のモジュール識別IDと一致するかアドレスが上記特別なアドレス範囲であった場合に、レジスタへの読み書きを行う。例えば、ステップS501において、特定の範囲のアドレスが指定されていた場合にも処理をステップS508へ分岐させる。このようにアドレス範囲によって複数の処理モジュールを指定する場合は、画像処理モジュール側で特定のアドレス範囲を設定可能にすることにより、全てではなく一部の複数の画像処理モジュールに対してレジスタコマンドを実行させることができる。   In addition, when reading / writing a register common to a plurality of image processing modules, a predetermined address range common to each image processing module may be used instead of the broadcast ID. In this case, the identification of the register command in each image processing module is determined by both its own module ID or the special address range. That is, when the address matches with its own module identification ID or the address is in the special address range, reading / writing to the register is performed. For example, even in the case where a specific range of addresses is specified in step S501, the process branches to step S508. When a plurality of processing modules are specified by an address range in this way, a specific address range can be set on the image processing module side, so that a register command can be issued to a part of a plurality of image processing modules instead of all of them. Can be executed.

実施形態による画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus by embodiment. 実施形態による画像処理モジュールのレジスタアドレスを説明する図である。It is a figure explaining the register address of the image processing module by embodiment. 実施形態のコマンドのデータ構成例を示す図である。It is a figure which shows the data structural example of the command of embodiment. 実施形態のモジュールIDの例を示す図である。It is a figure which shows the example of module ID of embodiment. 実施形態による画像処理モジュールのレジスタコマンド受信時の処理を説明するフローチャートである。It is a flowchart explaining the process at the time of register command reception of the image processing module by embodiment. 複数の画像処理モジュールが接続された一般的な画像処理装置を説明する図である。It is a figure explaining the general image processing apparatus to which the several image processing module was connected.

Claims (10)

コマンド識別情報、モジュール識別情報及びコマンドの内容情報を含むコマンドを処理する複数の処理モジュールが直列に接続された画像処理装置であって、
前記複数の処理モジュールの各々が、
入力されたコマンドのコマンド識別情報がレジスタからのデータの読み出しを示すかどうかと、当該コマンドのモジュール識別情報が複数の処理モジュールを指定しているかどうかと、を判定する判定手段と、
前記判定手段によって前記コマンドがレジスタからのデータの読出しを示し、複数の処理モジュールを指定していると判定されると、前記コマンドをそのまま下流へ転送する転送手段と、
前記判定手段によって前記コマンドがレジスタからのデータの読出しを示し、複数の処理モジュールを指定していると判定されると、前記コマンドのモジュール識別情報を当該処理モジュールの識別情報に置き換え、内容情報に前記レジスタから読み出したデータを記述して新たなコマンドを生成する生成手段と、
前記生成手段で生成された新たなコマンドを下流へ送信する送信手段とを備えることを特徴とする画像処理装置。
An image processing apparatus in which a plurality of processing modules that process commands including command identification information, module identification information, and command content information are connected in series,
Each of the plurality of processing modules is
Determining means for determining whether the command identification information of the input command indicates reading of data from the register and whether the module identification information of the command specifies a plurality of processing modules;
When the determination means determines that the command indicates reading of data from a register and designates a plurality of processing modules, the transfer means transfers the command as it is downstream;
Wherein said command by judging means indicates the reading of data from the register, when it is determined that specifies a plurality of processing modules, replace the module identification information of the command identification information of the processing module, the content information Generating means for describing the data read from the register and generating a new command;
An image processing apparatus comprising: a transmission unit that transmits a new command generated by the generation unit downstream.
前記判定手段は、前記コマンドのモジュール識別情報が、全ての処理モジュールを指定する特定の値である場合に、当該コマンドが複数の処理モジュールを指定していると判定することを特徴とする請求項1に記載の画像処理装置。   The determination unit determines that the command specifies a plurality of processing modules when the module identification information of the command is a specific value specifying all the processing modules. The image processing apparatus according to 1. 前記判定手段は、前記コマンドの内容情報が指定する読み出しアドレスが、所定のアドレス範囲にある場合に、当該コマンドが複数の処理モジュールを指定していると判定することを特徴とする請求項1に記載の画像処理装置。   2. The determination unit according to claim 1, wherein when the read address specified by the content information of the command is within a predetermined address range, it is determined that the command specifies a plurality of processing modules. The image processing apparatus described. メモリに格納されたコマンド群を順次に読み出し、前記複数の処理モジュールの最も上流の処理モジュールへ提供する提供手段と、
前記複数の処理モジュールの最も下流の処理モジュールから出力されたコマンドをメモリに順次に格納する格納手段とを更に備えることを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。
Providing means for sequentially reading a command group stored in a memory and providing the command group to a processing module upstream of the plurality of processing modules;
4. The image processing apparatus according to claim 1, further comprising: a storage unit that sequentially stores, in a memory, commands output from a processing module that is the most downstream of the plurality of processing modules. 5. .
前記処理モジュールは、前記判定手段によって前記コマンドがレジスタからのデータの読出しを示し複数の処理モジュールを指定していると判定されると、上流の処理モジュールにビジー信号を送信し、次のコマンドを受け取らないようにすることを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。  When it is determined by the determination means that the command indicates reading of data from the register and designates a plurality of processing modules, the processing module transmits a busy signal to the upstream processing module and outputs the next command. 5. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured not to receive the image. 前記処理モジュールは、前記判定手段によって前記コマンドがレジスタからのデータの読出しを示し複数の処理モジュールを指定していると判定され、前記送信手段によって前記新たなコマンドが送信されると、前記上流の処理モジュールに対して送信しているビジー信号を解除することを特徴とする請求項5に記載の画像処理装置。  When the determination unit determines that the command indicates reading of data from the register and designates a plurality of processing modules, and the transmission unit transmits the new command, the processing module determines that the upstream The image processing apparatus according to claim 5, wherein the busy signal transmitted to the processing module is canceled. コマンド識別情報、モジュール識別情報及びコマンドの内容情報を含むコマンドを処理する複数の処理モジュールが直列に接続された画像処理装置の制御方法であって、
前記処理モジュールの判定手段が、入力されたコマンドのコマンド識別情報がレジスタからのデータの読み出しを示すかどうかと、当該コマンドのモジュール識別情報が複数の処理モジュールを指定しているかどうかと、を判定する判定工程と、
記判定工程で前記コマンドはレジスタからのデータの読出しを示し複数の処理モジュールを指定していると判定されると、前記コマンドをそのまま下流へ転送する転送工程と、
記判定工程で前記コマンドはレジスタからのデータの読出しを示し複数の処理モジュールを指定していると判定されると、前記コマンドのモジュール識別情報を当該処理モジュールの識別情報に置き換え、内容情報に前記レジスタから読み出したデータを記述して新たなコマンドを生成する生成工程と、
前記処理モジュールの送信手段が、前記生成工程で生成された新たなコマンドを下流へ送信する送信工程とを備えることを特徴とする画像処理装置の制御方法。
A method for controlling an image processing apparatus in which a plurality of processing modules for processing a command including command identification information, module identification information, and command content information are connected in series.
Determination judging means of the processing module, and whether to show the reading of data from the command identification information of the inputted command register, and whether the module identification information of the command specifies a plurality of processing modules, the A determination step to
When the front Symbol said command determination step it is determined that specifies a plurality of processing modules indicate the reading of data from the register, a transfer step of transferring the command directly to the downstream,
When the previous SL determination process command is determined that specifies a plurality of processing modules indicate the reading of data from the register, replacing the module identification information of the command identification information of the processing module, the content information Generating a new command by describing the data read from the register; and
A method for controlling an image processing apparatus, comprising: a transmission step of transmitting a new command generated in the generation step to a downstream side.
前記判定工程では、前記コマンドのモジュール識別情報が、全ての処理モジュールを指定する特定の値である場合に、当該コマンドが複数の処理モジュールを指定していると判定することを特徴とする請求項に記載の画像処理装置の制御方法。 The determination step is characterized in that, when the module identification information of the command is a specific value that specifies all the processing modules, it is determined that the command specifies a plurality of processing modules. 8. A method for controlling the image processing apparatus according to 7 . 前記判定工程では、前記コマンドの内容情報が指定する読み出しアドレスが、所定のアドレス範囲にある場合に、当該コマンドが複数の処理モジュールを指定していると判定することを特徴とする請求項に記載の画像処理装置の制御方法。 Wherein in the determination step, the read address content information of the command is designated, when in a predetermined address range, in claim 7, wherein determining that the command specifies a plurality of processing modules A control method of the image processing apparatus described. 前記画像処理装置の提供手段が、メモリに格納されたコマンド群を順次に読み出し、前記複数の処理モジュールの最も上流の処理モジュールへ提供する提供工程と、
前記画像処理装置の格納手段が、前記複数の処理モジュールの最も下流の処理モジュールから出力されたコマンドをメモリに順次に格納する格納工程とを更に備えることを特徴とする請求項乃至のいずれか1項に記載の画像処理装置の制御方法。
A providing step in which the providing means of the image processing apparatus sequentially reads out a command group stored in a memory and provides the command group to the processing module upstream of the plurality of processing modules;
Any storage means of the image processing apparatus, according to claim 7 to 9, further comprising a storage step of sequentially storing the most downstream processing command outputted from the module of the plurality of processing modules in the memory A method for controlling the image processing apparatus according to claim 1.
JP2007223090A 2007-08-29 2007-08-29 Image processing apparatus and control method thereof Expired - Fee Related JP5111020B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007223090A JP5111020B2 (en) 2007-08-29 2007-08-29 Image processing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007223090A JP5111020B2 (en) 2007-08-29 2007-08-29 Image processing apparatus and control method thereof

Publications (3)

Publication Number Publication Date
JP2009058994A JP2009058994A (en) 2009-03-19
JP2009058994A5 JP2009058994A5 (en) 2010-09-24
JP5111020B2 true JP5111020B2 (en) 2012-12-26

Family

ID=40554716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007223090A Expired - Fee Related JP5111020B2 (en) 2007-08-29 2007-08-29 Image processing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5111020B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5166343B2 (en) * 2009-04-17 2013-03-21 株式会社ディジタルメディアプロフェッショナル 3D computer graphics processor
JP2010282429A (en) * 2009-06-04 2010-12-16 Canon Inc Image processing device and control method thereof
JP5671635B2 (en) * 2014-01-07 2015-02-18 キヤノン株式会社 Image processing apparatus and control method thereof
CN113673659A (en) * 2021-08-09 2021-11-19 苏州浩创信息科技有限公司 Serial electronic label system and information processing method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3871177B2 (en) * 1999-12-07 2007-01-24 セイコーエプソン株式会社 Data communication apparatus and data communication method
US7395415B2 (en) * 2004-09-30 2008-07-01 Intel Corporation Method and apparatus to provide a source operand for an instruction in a processor

Also Published As

Publication number Publication date
JP2009058994A (en) 2009-03-19

Similar Documents

Publication Publication Date Title
JP5922898B2 (en) Information processing apparatus, communication method, and program
US7325168B2 (en) Trace data source identification within a trace data stream
AU2007203661B2 (en) Control apparatus with fast I/O function, and control method for control data thereof
JP5111020B2 (en) Image processing apparatus and control method thereof
US10282343B2 (en) Semiconductor device
US20090138687A1 (en) Memory device having data processing function
CN101261611A (en) Peripheral apparatus data-transmission apparatus and transmission method
US7783804B2 (en) Bus relay device and bus control system including plurality of bus masters, bus slave, interconnect section, and bridge section
US20150149680A1 (en) Information processing apparatus and information processing method
JP2011120167A (en) Communication system and communication method
US20060236042A1 (en) Training sequence for deswizzling signals
JP2009058994A5 (en)
JP2009217714A (en) Data processing circuit, cache system and data transfer device
US20080114877A1 (en) Serial data transmission method and serial data transmission apparatus
JP5403665B2 (en) Data transfer method
US20160139860A1 (en) Communication system, image forming apparatus and communication method
JP2008186185A (en) Serial data transmission method and system therefor
JP4685368B2 (en) Apparatus for processing data, method for generating trace data, and apparatus for analyzing trace data
JP2009015783A (en) Interface controller
JP2007087086A (en) Dma transfer system
JP2007329670A (en) Data receiving device and data receiving method
JP2008033657A (en) Memory control device, information processor and memory control method
CN115344244A (en) Apparatus and method for processing program language function
JP2010020815A (en) Fifo access circuit
US11016449B2 (en) Duplexing process control device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100804

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100804

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120323

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120516

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

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

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

Free format text: PAYMENT UNTIL: 20151019

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 5111020

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20151019

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees