The present invention relates to a data processing apparatus and a method for controlling the same, and particularly relates to technology for realizing complicated processing by controlling the flow of data (data flow) into a plurality of data processing units.
Conventionally, a method has been known in which in order to efficiently realize a data processing series such as print image processing at high speed, all data processing is divided into prescribed functions so as to be provided by hardware; modules implemented using said hardware are then connected in the order of processing flow, and a data processing series is executed through pipelining. On the other hand, in image processing, processing can be efficiently realized by changing the order of a processing series.
For example, if an image is output to an output apparatus having a prescribed number of pixels, although resolution conversion is necessary in order to adjust the number of pixels (resolution), if the number of pixels of an input image is greater than the number of pixels of the output apparatus, it is better to perform processing after the number of pixels is reduced by performing resolution conversion upstream of processing. On the other hand, if the number of pixels of an input image is smaller than the number of pixels of the output apparatus, image quality is better if processing is performed in the state with a smaller number of pixels without performing resolution conversion and, thereafter, resolution conversion is performed immediately before output (downstream).
Further, for example, also in the case in which processing is performed after a certain space (for example, an input device space) is converted into standard space (for example, a resolution of 600 dpi and the CIELAB color space, or the like), and then the resultant space is converted into another space (for example, an output device space), the processing order is a problem. In other words, the processing order performed by a space conversion unit on an input side and that on an output side are opposite (the processing order of processing such as one-dimensional LUT, matrix operation, and three-dimensional LUT). That is, if the processing order can be changed, the same processing module can also be shared on the input side and the output side.
However, in data processing for performing pipeline processing using modules to which a prescribed function is assigned, the processing order cannot be changed. Accordingly, an example case as described above is handled by implementing a plurality of modules that have the same function, which is a waste in the efficient use of resources.
In order to solve the aforementioned problem, a configuration in which processing modules are connected via a ring shaped network is proposed (Japanese Patent Laid-Open No. 01-023340, Japanese Patent No. 2518293). According to these techniques, by changing the connection destination of data using such a ring shaped network, it is possible to change the processing order. Note that in the configuration disclosed in Japanese Patent No. 2518293, since each processing module is respectively executed by a processor, it is also possible to change the processing order by changing the program of each processor. Further, Japanese Patent No. 2834210 discloses a data flow control method in which expandability and maintainability have been improved by using broadcast communication.
However, in the configurations disclosed in Japanese Patent Laid-Open No. 01-023340 and Japanese Patent No. 2518293, the connecting relationship for processing data is set to one to one. Accordingly, it is not possible to control complicated data paths, such as separating a data path into branches (the same data being referenced by a plurality of modules), simultaneously executing a plurality of data paths, and performing time division multiplexing processing with a processing module.
Further, if broadcast communication is used as disclosed in the configuration of Japanese Patent No. 2834210, it is possible to separate a data path into branches (reference the same data by a plurality of modules). However, it is not possible to control complicated data paths, such as integrating data paths, simultaneously executing a plurality of data paths, and performing time division multiplexing processing with a processing module. Note that in the case of using broadcast communication, there is also a disadvantage in that the ring bus occupancy will increase since a transmission packet is not basically erased until it returns to a transmission source. Further, with the configuration disclosed in Japanese Patent No. 2834210, since a module in a state in which it is unable to receive erases a packet, after waiting one ring's worth of time or more, a transmission source starts retransmission processing. Accordingly, there has been a problem in that not only does control become complicated, but also transfer efficiency remarkably falls.
The present invention has been conceived in view of the aforementioned problems, and provides technology for enabling a change of the processing order with a simple configuration and, furthermore, enabling data processing with complicated data paths, such as separating a data path into branches, integrating data paths, and simultaneously executing a plurality of data paths.
According to one aspect of the present invention, a data processing apparatus includes a plurality of processing means for performing prescribed data processing that are connected in a ring shape in a prescribed order via communication means respectively corresponding thereto, wherein
each of the communication means includes a reception means for receiving data from a previous communication means in the order, and a transmission means for transmitting data to a next communication means in the order,
to each of the reception means and the transmission means, connection information for identifying logical connection of data processing is assigned,
the communication means,
in a case of receiving a packet that has same connection information as the connection information that is assigned to the reception means of the communication means, causes the corresponding processing means to perform data processing on the packet, sets the connection information that is assigned to the transmission means of the communication means to the packet on which data processing has been performed, and transmits the packet to the next communication means in the order, and
in a case of receiving a packet that has connection information that is not same as the connection information that is assigned to the reception means of the communication means, transmits the packet to the next communication means in the order without changing the connection information of the packet.
According to another aspect of the present invention, a method for controlling a data processing apparatus comprising a plurality of processing means for performing prescribed data processing that are connected in a ring shape in a prescribed order via communication means respectively corresponding thereto, wherein
each of the communication means executes a reception step in which a reception means receives data from a previous communication means in the order, and a transmission step in which a transmission means transmits data to a next communication means in the order,
to each of the reception means and the transmission means, connection information for identifying a logical connection of data processing is assigned,
the communication means,
in a case of receiving a packet that has same connection information as the connection information that is assigned to the reception means of the communication means, executes steps of causing the corresponding processing means to perform data processing on the packet, setting the connection information that is assigned to the transmission means of the communication means to the packet on which data processing has been performed, and transmitting the packet to the next communication means in the order, and
in a case of receiving a packet that has connection information that is not same as the connection information that is assigned to the reception means of the communication means, executes a step of transmitting the packet to the next communication means in the order without changing the connection information of the packet.
According to still another aspect of the present invention, a program causes each of a plurality of modules that have a reception means and a transmission means as communication means, and are connected in a ring shape in a prescribed order to execute:
a reception step in which the reception means receives data from a previous communication means in the order;
a transmission step in which the transmission means transmits data to a next communication means in the order;
connection information for identifying logical connection of data processing is assigned to the reception means and the transmission means, and in a case of receiving a packet that has same connection information as the connection information that is assigned to the reception means of the communication means, steps of causing the corresponding processing means to perform data processing on the packet, setting the connection information that is assigned to the transmission means of the communication means to the packet on which data processing has been performed, and transmitting the packet to the next communication means in the order; and
in a case of receiving a packet that has connection information that is not same as the connection information that is assigned to the reception means of the communication means, a step of transmitting the packet to the next communication means in the order without changing the connection information of the packet.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Embodiments of the present invention are described below. Of course, the following embodiments are intended to provide disclosure to allow a person skilled in the technical field of the present invention to easily practice it, and are merely some of the embodiments of the present invention specified in the scope of the claims. Therefore, it is obvious for a person skilled in the art that even embodiments that are not directly described in this specification are included in the technical scope of the present invention, as far as the technical ideas thereof are commonly applied. It should be noted that although a plurality of embodiments are described for the sake of convenience, a person skilled in the art will easily understand that not only these embodiments are individually realized as an invention, but of course, the invention is realized by combining a plurality of embodiments as appropriate. Hereinafter, embodiments according to the present invention are described in detail in accordance with the attached drawings.
Configuration of Data Processing Apparatus
The communication units 102-1 to 102-m are connected to the communication units that are adjacent thereto, respectively (note that the communication unit 102-m is connected to the communication unit 102-1), and constitute a ring bus. Furthermore, the communication units 102-1 to 102-m transmit and receive data between the ring bus and the data input/output unit 101 or the data processing units 103-2 to 103-m. Accordingly, the communication units 102-2 to 102-m are connected to the data processing unit 103-2 to 103-m, respectively.
Data input from an input terminal 151 is input to the communication unit 102-1 via the data input/output unit 101. The input data is packetized and is passed onto the ring bus. The communication unit 102 takes in a necessary packet from the ring bus in accordance with information that has been set in advance, extracts data from the packet that has been taken in, and inputs the extracted data to the data processing unit 103. The data processing unit 103 performs prescribed data processing thereon (for example, color space conversion, resolution conversion, or the like), and outputs the data after processing to the communication unit 102.
The data after processing is packetized in the communication unit 102, and is passed onto the ring bus. In this way, by the communication units 102-2 to 102-m, data is successively processed in the data processing units 103-2 to 103-m in the order that has been set in advance. Then, data for which the set data processing has ended is taken into the data input/output unit 101 via the communication unit 102-1, and is output from an output terminal 152. Note that the data input/output unit 101 serves as an interface with an external device (or a module), and can be omitted if the communication unit 102-1 can serve as a direct interface.
Here, the outline of operations performed by a data processing apparatus according to the present embodiment is described. In the data processing apparatus according to the present embodiment, a plurality of the data processing units 103 that perform prescribed data processing and the data input/output unit 101 are connected in a ring shape in the prescribed order via the communication units 102 corresponding thereto, respectively. As described later, each of the communication units 102 is provided with a reception unit 201 that receives data from the previous communication unit 102 in the order, and a transmission unit 204 that transmits data to the next communication unit 102 in the order. Further, connection identifier information (connection information) for identifying the processing order of data processing (logical connection of data processing units or communication units) is assigned to each of the reception unit 201 and the transmission unit 204. In such a configuration, in the case of receiving a packet that has the same identifier information as the connection identifier information that is assigned to the reception unit 201 of the communication unit 102, the communication unit 102 causes the corresponding data processing unit 103 to perform data processing on the packet. Then, connection identifier information that is assigned to the transmission unit 204 of the communication unit 102 is set to the packet on which data processing has been performed, and the resultant packet is transmitted to the next communication unit 102 in the order. On the other hand, in the case of receiving a packet that has identifier information that is not the same as the connection identifier information that is assigned to the reception unit 201 of the communication unit 102, the packet is transmitted to the next communication unit 102 in the order, without the identifier information thereof being changed. In this way, by controlling the transmission channel of a packet by assigning connection identifier information to each of the reception unit 201 and the transmission unit 204, data processing with a complicated data path can be efficiently realized. Hereinafter, the detailed configuration of the communication unit 102 is described.
Communication Unit
An output terminal 259 of the adjacent communication unit is connected to an input terminal 257; thus, the communication units 102-1 to 102-m constitute a ring bus. Further, signal lines 251, 252, 253, 254, 255, and 256 are connected to the corresponding data processing unit 103 (one of 103-2 to 103-m). Note that the signal lines 251 to 256 of the communication unit 102-1 are connected to the data input/output unit 101.
The packet input from the adjacent communication unit is once held in the buffer 202, and is output to the selector 203 at the next clock cycle. The data reception unit 201 monitors a packet from the input terminal 257, and if all of the following are satisfied, takes in this packet, and outputs the data thereof to the data processing unit 103 from the output terminal 252 (validating the valid signal 251):
The valid flag of the packet is valid,
the connection identifier and count value thereof match those held in the reception unit 201, and
the data processing unit 103 that is connected can input data (the stall signal 253 is not in a holding state).
At this time, the data reception unit 201 notifies the buffer 202 that the data is taken in via a signal line 260, and clears the valid flag of the packet stored in the buffer 202, so as to invalidate the packet. Further, after taking in the packet, the count value 503 that the reception unit 201 holds is incremented.
On the other hand, if all of the following are satisfied, the data reception unit 201 notifies the buffer 202 of a data hold via the signal line 260, and sets the stall flag of the packet stored in the buffer 202:
The valid flag of the input packet is valid,
the connection identifier and count value thereof match those held in the reception unit 201, and
the data processing unit 103 that is connected cannot input data (the stall signal 253 is in a holding state).
Further, in the case in which, even though the valid flag of the input packet is valid and the connection identifier matches, the count value does not match the value that the reception unit 201 holds, since data cannot be taken in, a stall flag is also set in this case. Note that as described in an operation example described later, it is not necessary to evaluate a count value in determining whether or not to receive a packet.
The data transmission unit 204 monitors the valid flag of the output packet (a signal line 258) from the buffer 202. Since data cannot be output onto the ring bus when a valid flag is valid, the data transmission unit 204 sets the stall signal 254 in order to hold the output of data from the data processing unit 103 that is connected. Note that when a valid flag is invalid, the stall signal 254 is reset. If both of the following are satisfied, the data transmission unit 204 validates a valid flag and invalidates a stall flag, adds a count value and a connection identifier set in a register, and generates a packet:
Data can be output from the data processing unit 103 that is connected (if the valid signal 256 is valid), and
the valid flag of the output packet from the buffer 202 is invalid.
Then, the selector 203 is controlled, and this generated packet is passed onto the ring bus from the output terminal 259. After outputting the packet, the count value that the data transmission unit 204 holds is incremented. Note that as described in an operation example described later, with the configuration in which a count value is not evaluated, it is not necessary to increment a count value (for example, in the case of performing processing in which a problem due to the packet processing order being switched does not occur, the case in which the packet processing order is not switched, or the case in which packet processing is not held, a count value is not necessarily needed).
Data Reception Unit
The comparison unit 303 monitors a valid flag, a connection identifier, and a count value of a packet on the ring bus input from the input terminal 257. Then, if all of the following are satisfied, the valid signal 251 is validated:
The valid flag of the packet is valid,
the connection identifier of the packet matches a connection identifier that is stored in the register 301, and
the count value of the packet matches the value in the counter 302.
Note that a data portion of this packet is output to the output terminal 252. Further, the comparison unit 303 inputs the following into the determination unit 304:
An input packet determination signal showing that the valid flag of the input packet is valid, and the connection identifier of this packet matches a connection identifier stored in the register 301, and
a count-value matching signal showing that the count value of this packet matched the value in the counter 302.
The determination unit 304 determines whether or not the data processing unit 103 was able to take in data based on an input packet determination signal, a count-value matching signal, and the stall signal 253 from the data processing unit 103 that is connected. If it is determined that the data processing unit 103 was able to take in data, the data reception unit 201 notifies the buffer 202 that the data is taken in via the signal line 260, and clears the valid flag of the packet stored in the buffer 202, so as to invalidate the packet. Note that, as is described later, for branching data (using data in a plurality of data processing units), this packet invalidating processing can be turned ON/OFF by a CPU, for instance.
A data taking-in notification signal is also input to the counter 302, and if it is determined that data could be taken in, in order to obtain the next data, the count value in the counter 302 is incremented (+1) at a next clock cycle. On the other hand, based on an input packet determination signal, a count-value matching signal, and the stall signal 253 from the data processing unit 103 that is connected, if it is determined that the data that is to be taken in cannot be taken in, the data reception unit 201 notifies the buffer 202 of a data hold via the signal line 260. Furthermore, the stall flag of the packet stored in the buffer 202 is set. Further, when it is determined that the order in which the data is taken in is not appropriate although it is a packet to be taken in, based on an input packet determination signal and a count-value matching signal, similar processing is performed. Specifically, via the signal line 260, the data reception unit 201 notifies the buffer 202 of a data hold, and sets the stall flag of the packet stored in the buffer 202. Note that although a description has been given regarding the case of evaluating a count value here, if a count value is not evaluated, it is not necessary to transmit and receive a signal regarding a count value.
Data Transmission Unit
The comparison unit 403 monitors the valid flag, the stall flag, and the connection identifier of an output packet (the signal line 258) from the buffer 202. Since data cannot be output onto the ring bus when a valid flag is valid, in order to hold the data output from the data processing unit 103 that is connected, the stall signal 254 is set. Note that when a valid flag is invalid, the stall signal 254 is reset.
If both of the following are satisfied, the comparison unit 403 determines that the packet output by the unit itself was not held and returned:
The valid flag of the output packet from the buffer 202 is valid, and the stall flag thereof does not show that it is held, and
the connection identifier of the output packet from the buffer 202 matches the connection identifier stored in the register 401.
Then, the comparison unit 403 controls the selector 203 via the packet generation unit 404, and a valid flag is invalidated so as to invalidate the packet. Since a packet can also be output in this case, the stall signal 254 is reset.
The packet generation unit 404 refers to the valid signal 256 from the data processing unit 103 that is connected. If it is determined that data can be output from the data processing unit 103 (if the valid signal 256 is valid), and if an output packet from the buffer 202 matches one of the following cases, a valid flag is validated and a stall flag is invalidated and, then, a count value in the counter 402 and a connection identifier set in the register 401 are added so as to generate a packet:
The case in which the valid flag of that output packet is invalid, and
the case in which the packet is to be invalidated (when the valid flag is valid and the stall flag does not show that it is held, and the connection identifier of the packet matches a connection identifier stored in the register 401).
Then, the packet generation unit 404 controls the selector 203 so as to pass the generated packet onto the ring bus from the output terminal 259. Furthermore, at the next clock cycle, the count value in the counter 402 is incremented (+1). Note that since the counter 402 of the transmission unit 204 and the counter 302 of the reception unit 201 that receives a packet from this transmission unit synchronize, the counters are initialized to the same value before starting data transfer. Note that although a description has been given regarding the case of evaluating a count value here, if a count value is not evaluated, it is not necessary to execute processing regarding a count value.
Operations Performed by Data Processing Apparatus
Next, operations performed by the data processing apparatus according to the present embodiment are described with reference to the drawings.
First, if it is assumed that processing is simply performed in the order from processing A, processing B, processing C, processing D, and processing E, a signal flow graph is as shown in
Since the input terminal 151 corresponds to a node “1” and the output terminal 152 corresponds to a node “6”, “6” is stored in the register of the reception unit 201 of the communication unit 102-1, and “1” is stored in the register of the transmission unit 204 thereof.
The communication unit 102-1 adds a connection identifier “1” to the data input from the input terminal 151, and outputs the resultant data to the communication unit 102-2. Since “1” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 takes in the packet having the connection identifier “1”, and inputs a data portion thereof to the data processing unit 103-2. The data processing unit 103-2 performs processing A on the input data, and outputs the resultant data to the communication unit 102-2. Since “2” is stored in the register 401 of the transmission unit of the communication unit 102-2, the communication unit 102-2 generates a packet having a connection identifier “2” and outputs the generated packet to the communication unit 102-3.
Since “2” is stored in the register 301 of the reception unit of the communication unit 102-3, the communication unit 102-3 takes in the packet having the connection identifier “2”, and the data processing unit 103-3 performs processing B thereon, and outputs the result to the communication unit 102-3. Since “3” is stored in the register 401 of the transmission unit of the communication unit 102-3, the communication unit 102-3 generates a packet having a connection identifier “3” and outputs the generated packet to the communication unit 102-4.
Similarly, the communication unit 102-4 takes in the packet having the connection identifier “3”, the data processing unit 103-4 performs processing C thereon, so that a packet having a connection identifier “4” is generated and is output to the communication unit 102-5. The communication unit 102-5 takes in the packet having the connection identifier “4”, and the data processing unit 103-5 performs processing D thereon, so that a packet having a connection identifier “5” is generated and is output to the communication unit 102-6. The communication unit 102-6 takes in the packet having the connection identifier “5”, and the data processing unit 103-6 performs processing E thereon, so that a packet having a connection identifier “6” is generated and is output to the communication unit 102-1. Since “6” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 takes in the packet having the connection identifier “6”, and outputs a data portion thereof from the output terminal 152. In this way, the input data is processed in the order from processing A, processing B, processing C, processing D, and processing E, and the resultant data is output.
The communication unit 102-1 adds the connection identifier “1” to the data input from the input terminal 151, and outputs the resultant data to the communication unit 102-2. The communication unit 102-2 takes in the packet having the connection identifier “1”, and the data processing unit 103-2 performs processing A thereon, so that a packet having the connection identifier “2” is generated, and the generated packet is output to the communication unit 102-3.
Since “3” is stored in the register 301 of the reception unit of the communication unit 102-3, the communication unit 102-3 does not take in any packet other than a packet having the connection identifier “3”, and outputs the packet to the communication unit 102-4 as it is. Therefore, the above-mentioned packet having the connection identifier “2” is output to the communication unit 102-4, without any processing being performed thereon. The communication unit 102-4 takes in the packet having the connection identifier “2”, and the data processing unit 103-4 performs processing C thereon, so that a packet having the connection identifier “3” is generated, and the generated packet is output to the communication unit 102-5.
Since “4” is stored in the register 301 of the reception unit of the communication unit 102-5, the communication unit 102-5 does not take in the packet having the connection identifier “3” and outputs the packet to the communication unit 102-4 as it is. Similarly, the communication unit 102-6, the communication unit 102-1, and the communication unit 102-2 do not perform any processing on a packet having the connection identifier “3”. Therefore, after four clock cycles since the communication unit 102-4 has output the packet, the packet having the connection identifier “3” reaches the communication unit 102-3 and is taken in, and the data processing unit 103-3 performs processing B thereon, so that a packet having the connection identifier “4” is generated, and the generated packet is output to the communication unit 102-4.
Since “2” is stored in the register 301 of the reception unit of the communication unit 102-4, the communication unit 102-4 does not take in the packet having the connection identifier “4” and outputs the packet to the communication unit 102-5 as it is. The communication unit 102-5 takes in the packet having the connection identifier “4”, and the data processing unit 103-5 performs processing D thereon, so that a packet having the connection identifier “5” is generated, and the generated packet is output to the communication unit 102-6. The communication unit 102-6 takes in the packet having the connection identifier “5”, and the data processing unit 103-6 performs processing E thereon, so that a packet having the connection identifier “6” is generated, and the generated packet is output to the communication unit 102-1. Since “6” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 takes in the packet having the connection identifier “6”, and outputs a data portion thereof from the output terminal 152. In this way, the input data is processed in the order from processing A, processing C, processing B, processing D, and processing E, and the resultant data is output.
(1) Using two of the same image, processing is performed on one of the images in which a low-frequency component is extracted therefrom by applying an LPF (low pass filter), and processing is performed on the other image in which a high frequency component is extracted therefrom by applying an HPF (high pass filter); and
(2) the low-frequency component and the high frequency component of the images are composited so as to generate an output image.
The following is a description regarding the case in which processing including branching/integration is executed using a count value.
In order that data pieces from two lines that have been branched and processed are synchronized and taken in by the communication unit 102-6, before starting processing, the counter 402 of the transmission unit of the communication unit 102-3 is initialized to “0”, and the counter 402 of the transmission unit of the communication unit 102-5 is initialized to “1”. Further, the above-mentioned two counters are incremented by an increment of 2 (that is, +2 every time a packet is output). By setting the counters in this way, the communication unit 102-6 can alternately receive the output from the communication unit 102-3, and the output from the communication unit 102-5. Further, since the communication unit 102-4 also needs to take in the packet that the communication unit 102-2 takes in, the communication unit 102-2 does not invalidate the packet that has been taken in, and is set so as to output the packet to the communication unit 102-3 as it is. In other words, the input packet invalidating processing described above is set to OFF.
Next, operations are described following the data flow. The communication unit 102-1 adds the connection identifier “1” to the data input from the input terminal 151, and outputs the resultant data to the communication unit 102-2. Since “1” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 takes in the packet having the connection identifier “1”, and inputs a data portion thereof to the data processing unit 103-2. Further, the input packet invalidating processing is set to OFF in the communication unit 102-2 to branch data and, accordingly, the communication unit 102-2 does not invalidate (erase) the packet that has been taken in, and outputs the packet to the communication unit 102-3 as it is. On the other hand, the data processing unit 103-2 performs processing A on the input data, and the resultant data is output to the communication unit 102-2. Since “2” is stored in the register 401 of the transmission unit of the communication unit 102-2, a packet having the connection identifier “2” is generated, and the generated packet is output to the communication unit 102-3.
The communication unit 102-3 takes in the packet having the connection identifier “2”, and the data processing unit 103-3 performs processing B on that packet, so that a packet having the connection identifier “3” is generated, and the generated packet is output to the communication unit 102-4. At this time, the initial value “0” is added as a count value. Further, the counter 402 of the transmission unit is incremented by an increment of 2 for transmitting a next packet (that is, +2 every time a packet is output).
Since “1” is stored in the register 301 of the reception unit of the communication unit 102-4, the communication unit 102-4 does not take in the packet having the connection identifier “3”, and outputs the packet to the communication unit 102-5 as it is. Similarly, the communication unit 102-5 does not perform any processing on the packet either, and outputs the packet to the communication unit 102-6 as it is.
Since “3” is stored in the register 301 of the reception unit of the communication unit 102-6, and the counter 302 of the reception unit is initialized to “0”, the communication unit 102-6 takes in the packet having the connection identifier “3” and the count value “0”, and inputs a data portion thereof to the data processing unit 103-6. At this time, in order to receive the data on which processing D has been performed next, the counter 302 of the reception unit is incremented (+1).
Since the packet branched by the communication unit 102-2 has the connection identifier “1”, the communication unit 102-3 does not perform any processing thereon, and outputs the packet to the communication unit 102-4. Since “1” is stored in the register 301 of the reception unit of the communication unit 102-4, the communication unit 102-4 takes in the packet having the connection identifier “1”, and outputs a data portion thereof to the data processing unit 103-4. Note that since this packet will no longer be used by other data processing units, invalidating processing is performed thereon to facilitate effective use of the ring bus. The data processing unit 103-4 performs processing C on the input data, and outputs the resultant data to the communication unit 102-4. Since “4” is stored in the register 401 of the transmission unit of the communication unit 102-4, the communication unit 102-4 generates a packet having the connection identifier “4”, and outputs the generated packet to the communication unit 102-5.
The communication unit 102-5 takes in the packet having the connection identifier “4”, the data processing unit 103-5 performs processing D thereon, so that a packet having the connection identifier “3” is generated, and the generated packet is output to the communication unit 102-6. At this time, the initial value “1” is added as a count value. Further, the counter 402 of the transmission unit is incremented by an increment of 2 for transmitting the next packet (that is, +2 every time a packet is output).
Since “3” is stored in the register 301 of the reception unit of the communication unit 102-6, and the counter 302 of the reception unit is incremented so as to be “1”, the communication unit 102-6 takes in a packet having the connection identifier “3” and the count value “1”, and inputs a data portion thereof to the data processing unit 103-6. At this time, in order to receive the data on which processing B has been performed next, the counter 302 of the reception unit is incremented (+1).
By performing the above operations, the data on which processing A and processing B have been performed is input for the even numbered times, and the data on which processing C and processing D have been performed is input for the odd numbered times, sequentially, to the data processing unit 103-6. The data processing unit 103-6 (processing E) composites (integrates) these data pieces, and outputs the result to the communication unit 102-6. Since “6” is stored in the register 401 of the transmission unit of the communication unit 102-6, the communication unit 102-6 generates a packet having the connection identifier “6”, and outputs the generated packet to the communication unit 102-1. Since “6” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 takes in the packet having the connection identifier “6”, and outputs a data portion thereof from the output terminal 152. The input data is branched and processed through two lines, namely, a line including processing A and processing B and a line including processing C and processing D, and composite processing is performed on the resultant data pieces in processing E, and the composited data is output.
Similarly, it is also possible to separate a data path into branches based on a count value or to perform different processing on data arranged in specific intervals. For example, it is also possible to divide pixels into even-numbered pixels and odd-numbered pixels, and perform different processing thereon, easily. A description is given using an example in which in the signal flow graph shown in
Also in this case, similar to Operation Example 4, in order that data pieces from two lines that have been branched and processed are synchronized and taken in by the communication unit 102-6, before starting processing, the counter 402 of the transmission unit of the communication unit 102-3 is initialized to “0”, and the counter 402 of the transmission unit of the communication unit 102-5 is initialized to “1”. Further, the above-mentioned two counters are incremented by an increment of 2 (that is, +2 every time a packet is output). In addition to this, in order that pixels are divided into even-numbered pixels and odd-numbered pixels and processed, before starting processing, the counter 302 of the reception unit of the communication unit 102-2 is initialized to “0”, and the counter 302 of the reception unit of the communication unit 102-4 is initialized to “1”. Further, the above-mentioned two counters are incremented by an increment of 2 (that is, +2 every time a packet is output). By setting such settings, the communication unit 102-2 takes in a packet having an even-numbered count value, and the communication unit 102-4 takes in a packet having an odd-numbered count value. Note that in this case, since the same data is not referenced, the packet that has been taken in may be invalidated (the input packet invalidating processing is set to ON).
Reference numeral 1110 denotes a data input unit that takes in data to be processed from outside the system. For example, the data input unit 1110 may be realized by an image reading apparatus that has devices, such as an image scanner and an A/D converter, an audio input apparatus that has devices, such as a microphone and an A/D converter, or the like.
Reference numeral 1120 denotes a data processing apparatus according to the present embodiment. Reference numeral 1130 denotes a data output unit that outputs data processed in this system to the outside. For example, the data output unit 1130 may be realized by an image output apparatus including a printer device that converts image data into a print dot pattern and outputs the result, or an audio output apparatus that outputs audio data through a D/A converter, for instance.
Data input in the data input unit 1110 may be sent to the system control unit and processed by the CPU 1101, or may be temporarily recorded on the RAM 1103 or the external storage device 1104 as it is. Thus, the data processing apparatus 1120 may directly accept input data from the data input unit 1110 and perform processing thereon, or may perform processing by receiving instructions and data supplied from the system control unit 1100.
Further, the output from the data processing apparatus 1120 may be again sent to the system control unit 1100, or may be directly sent to the data output unit 1130. Based on the control of the system control unit 1100, a variety of data processing content is set in the data processing apparatus 1120, and then the data processing apparatus 1120 is supplied with a variety of processing, executes processing according to the settings, and outputs the processed data to the outside.
Control Procedure
The procedure in which the system control unit controls the data processing apparatus 1120 is shown in
In step S1220, the registers 301 and 401 that store connection identifiers of the communication units are set. Further, the initial values and increments of the counters 302 and 402 that show the data order, the packet invalidating setting register, and so on are set as necessary.
In step S1230, parameter designation for the data processing unit, and the like are performed. Next, in step S1240, an instruction to start the data processing apparatus 1120 is given.
In step S1250, processing for monitoring an end notice from the data processing apparatus 1120 is performed, and this is repeated until it is determined that the end of processing has been detected in step S1260. In step S1260, if an end notice from the data processing apparatus 1120 is confirmed (YES in step S1260), the processing ends.
As described above, the data processing apparatus according to the present embodiment sets the node numbers in a signal flow graph in the registers of the communication unit, and controls the data flow using these node numbers. Thereby, it is possible to configure data flows that correspond to various signal flow graphs.
Further, in the present embodiment, the transmission unit 204 that is provided to at least one of the communication units 102 is provided with the counter 402 that holds a counter value. Then, if a packet that has the same identifier information as connection identifier information assigned to the corresponding reception unit 201 is received, a counter value held by the counter 402 is set in a packet on which data processing has been performed, and the resultant packet is transmitted to the next communication unit 102 in the order. Furthermore, the counter value held by the counter 402 is incremented by a first value. On the other hand, the reception unit 201 provided to at least one of the communication units 102 is also provided with the counter 302 that holds a counter value. Then, only in the case of receiving a packet that has both of the following, the communication unit 102 causes the corresponding data processing unit 103 to perform data processing on that packet, and increments the counter value held by the counter 302 by a second value:
The same identifier information as the connection identifier information assigned to the reception unit 201 of the communication unit 102, and
the same counter value as the counter value held by the counter 302 of the reception unit 201. Therefore, according to the present embodiment, it is possible to execute data processing with complicated data paths, such as separating a data path into branches, integrating data paths, or simultaneously executing a plurality of data paths, by appropriately setting the following, for instance:
Connection identifier information that is to be assigned to the transmission unit and the reception unit, and
the transmission unit and the reception unit that increment the counter values, and increment values of the counters (the first increment value, the second increment value).
Further, in the case of receiving a packet that has the same identifier information as the connection identifier information assigned to the reception unit 201 of the communication unit 102, at least one of the communication units 102:
transmits, to the next communication unit 102 in the order, a packet to which the connection identifier information assigned to the transmission unit 204 of the communication unit 102 has been set, and on which data processing has been performed; and also
transmits the received packet to the next communication unit 102 in the order without changing the identifier information thereof.
Accordingly, it is possible to perform different data processing, respectively, on the same data using the different data processing units 103, and to monitor a data processing result obtained by a certain data processing unit.
Note that counter values held by the counters 402 and 302 may be initialized (first initialization, second initialization). Alternatively, the increment value of the counter 402 (first value), and the increment value of the counter 302 (second value) may be set (first setting, second setting). This setting can be set by a user inputting an instruction, or by reading out data that shows details of the settings from a storage device. Accordingly, data processing can be arbitrarily customized.
Further, in the present embodiment, registers (storage means) that store connection identifier information to be assigned to the reception unit 201 and the transmission unit 204 of the communication unit 102 are provided. Accordingly, by appropriately setting the contents stored in the registers, the data processing flow can be arbitrarily customized.
Note that in the description given above, although the buffer of the communication unit 102 is arranged between the reception unit 201 and transmission unit 204, the configuration is not limited to this, and for example, as shown in
The configuration shown in
Next, operations are described using a signal flow graph. In order to simplify the description, as shown in
The case in which a data flow (a) and a data flow (b) shown in
Next, in order to configure the data flow (b), “2” is stored in the register (the register 301) of the reception unit of the communication unit 102-4 corresponding to the processing unit C (the data processing unit 103-4), and “4” is stored in the register (the register 401) of the transmission unit of the communication unit 102-4. “4” is stored in the register of the reception unit of the communication unit 102-6 corresponding to the processing unit E (the data processing unit 103-6), and “6” is stored in the register of the transmission unit thereof. Since the input terminal 151-2 corresponds to the node “2” and the output terminal 152-2 corresponds to the node “6”, “6” is stored in the register of the reception unit of the communication unit 102-1, and “2” is stored in the register of the transmission unit thereof.
Data Flow (a)
After the above settings have been set, if data is input from the input terminal 151-1, the communication unit 102-1 adds the connection identifier “1” to the input data, and outputs the resultant data to the communication unit 102-2. Since “6” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 does not take in the packet, and outputs the packet to the communication unit 102-3 as it is.
Since “1” is stored in the register 301 of the reception unit of the communication unit 102-3, the communication unit 102-3 takes in the packet having the connection identifier “1”, and the data processing unit 103-3 performs processing B thereon, and outputs the result to the communication unit 102-3. Since “3” is stored in the register 401 of the transmission unit of the communication unit 102-3, the communication unit 102-3 generates a packet having the connection identifier “3”, and outputs the generated packet to the communication unit 102-4.
Since “2” is stored in the register 301 of the reception unit of the communication unit 102-4, the communication unit 102-4 outputs the packet to the communication unit 102-5 as it is, without taking in the packet. Since “3” is stored in the register 301 of the reception unit of the communication unit 102-5, the communication unit 102-5 takes in the packet having the connection identifier “3”, and the data processing unit 103-5 performs processing D thereon, and outputs the result to the communication unit 102-5. Since “5” is stored in the register 401 of the transmission unit of the communication unit 102-5, the communication unit 102-5 generates a packet having the connection identifier “5”, and outputs the generated packet to the communication unit 102-6.
Since “4” is stored in the register 301 of the reception unit of the communication unit 102-6, the communication unit 102-6 outputs the packet to the communication unit 102-1 as it is, without taking in the packet. Since “5” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 takes in the packet having the connection identifier “5”, and outputs a data portion thereof from the output terminal 152-1. In this way, processing B and processing D are sequentially performed on the data input from the input terminal 151-1, and the resultant data is output from the output terminal 152-1.
Data Flow (b)
On the other hand, if data is input from the input terminal 151-2, the communication unit 102-2 adds the connection identifier “2” to the input data, and outputs the resultant data to the communication unit 102-3. Since “1” is stored in the register 301 of the reception unit of the communication unit 102-3, the communication unit 102-3 outputs that packet to the communication unit 102-4 as it is, without taking in the packet.
Since “2” is stored in the register 301 of the reception unit of the communication unit 102-4, the communication unit 102-4 takes in the packet having the connection identifier “2”, the data processing unit 103-4 performs processing C thereon, and outputs the result to the communication unit 102-4. Since “4” is stored in the register 401 of the transmission unit of the communication unit 102-4, the communication unit 102-4 generates a packet having the connection identifier “4”, and outputs the generated packet to the communication unit 102-5.
Since “3” is stored in the register 301 of the reception unit of the communication unit 102-5, the communication unit 102-5 outputs the packet to the communication unit 102-6 as it is, without taking in the packet. Since “4” is stored in the register 301 of the reception unit of the communication unit 102-6, the communication unit 102-6 takes in the packet having the connection identifier “4”, and the data processing unit 103-6 performs processing E thereon, and outputs the result to the communication unit 102-6. Since “6” is stored in the register 401 of the transmission unit of the communication unit 102-6, the communication unit 102-6 generates a packet having the connection identifier “6”, and outputs the generated packet to the communication unit 102-1.
Since “5” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 outputs the packet to the communication unit 102-2 as it is, without taking in the packet. Since “6” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 takes in the packet having the connection identifier “6”, and outputs a data portion thereof from the output terminal 152-2.
In this way, processing C and processing E are sequentially performed on the data input from the input terminal 151-2, and the resultant data is output from the output terminal 152-2. Therefore, it can be seen that even if data pieces are simultaneously input to the input terminal 151-1 and the input terminal 151-2, processing following the data flows that have been set is executed on the data pieces, and the data pieces are output from the output terminal 152-1 and the output terminal 152-2, respectively.
Next, a description is given regarding the case in which the sampling of data is performed in units of the prescribed number of pixels, and data pieces are output from different lines. For example, a description is given regarding the case in which JPEG compression is performed in one processing, and in another processing, only a DC component is extracted when performing JPEG compression so as to generate a reduced image. First, in the main data flow, data is input in a luminance/color difference format using YCC, DCT conversion is performed in processing B, quantization and zigzag scan conversion are performed in processing D, and variable length coding is performed in processing E, thus performing JPEG compression. On the other hand, in the sub-data flow, only a DC component is extracted from the output of processing B, and color conversion is performed in processing C so as to convert data into RGB data, thus obtaining a reduced image.
Therefore, a signal flow graph showing such processing is the graph as shown in
The following values are set in the register of the reception unit and the register of the transmission unit of the communication units 102:
“4” in the register of the reception unit of the communication unit 102-1, and “1” in the register of the transmission unit thereof;
“5” in the register of the reception unit of the communication unit 102-2, and an arbitrary value in the register of the transmission unit thereof (although any value may be set, 0 or the maximum value is normally set);
“1” in the register of the reception unit of the communication unit 102-3, and “2” in the register of the transmission unit thereof;
“2” in the register of the reception unit of the communication unit 102-4, and “5” in the register of the transmission unit thereof;
“2” in the register of the reception unit of the communication unit 102-5, and “3” in the register of the transmission unit thereof; and
“3” in the register of the reception unit of the communication unit 102-6, and “4” in the register of the transmission unit thereof.
Hereinafter, an operation is described following a data flow. After the above-mentioned settings have been set, if data is input from the input terminal 151-1, the communication unit 102-1 adds the connection identifier “1” to the input data, and outputs the resultant data to the communication unit 102-2. Since “5” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 outputs the packet to the communication unit 102-3 as it is, without taking in the packet.
Since “1” is stored in the register 301 of the reception unit of the communication unit 102-3, the communication unit 102-3 takes in the packet having the connection identifier “1”, the data processing unit 103-3 performs processing B (DCT conversion) thereon, and outputs the result to the communication unit 102-3. Since “2” is stored in the register 401 of the transmission unit of the communication unit 102-3, and the counter 402 of the transmission unit of the communication unit 102-3 is initialized to “0” before the processing starts, the communication unit 102-3 generates a packet having the connection identifier “2” and the count value “0”, and outputs the generated packet to the communication unit 102-4. After outputting the packet, the counter 402 of the transmission unit of the communication unit 102-3 is incremented (+1) for the output of the next data.
In the register 301 of the reception unit of the communication unit 102-4, “2” is stored, and the counter 302 of the reception unit of the communication unit 102-4 is initialized to “0”. Accordingly, the communication unit 102-4 takes in the packet having the connection identifier “2” and the count value “0”, and inputs a data portion thereof to the data processing unit 103-4. At this time, in order to receive the next DC component, the counter 302 of the reception unit is incremented by +64. Further, in the communication unit 102-4, the input packet invalidating processing is set to OFF for data branching and, accordingly, the communication unit 102-4 outputs the packet that has been taken in, to the communication unit 102-5 as it is, without invalidating (erasing) it.
Processing C (color conversion) is performed on the data input to the data processing unit 103-4, and the resultant data is output to the communication unit 102-4. Since “5” is stored in the register 401 of the transmission unit of the communication unit 102-4, the communication unit 102-4 generates a packet having the connection identifier “5”, and outputs the generated packet to the communication unit 102-5.
Since “2” is stored in the register 301 of the reception unit of the communication unit 102-5, the communication unit 102-5 outputs the packet having the connection identifier “5” to the communication unit 102-6 as it is, without taking in the packet. Since “3” is stored in the register 301 of the reception unit of the communication unit 102-6, the communication unit 102-6 outputs the packet to the communication unit 102-1 as it is. Since “3” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 outputs the packet to the communication unit 102-2 as it is.
Since “5” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 takes in the packet having the connection identifier “5”, and outputs a data portion thereof from the output terminal 152-2. In this way, processing B is performed on the data input from the input terminal 151-1 and, thereafter, the resultant data is extracted in units of 64 pixels, then processing C is performed thereon, and the resultant data is output from the output terminal 152-2.
On the other hand, “2” is stored in the register 301 of the reception unit of the communication unit 102-5, and the counter 302 of the reception unit of the communication unit 102-5 is initialized to “0”. Accordingly, the communication unit 102-5 takes in the packet having the connection identifier “2” and the count value “0”, and inputs a data portion thereof to the data processing unit 103-5. At this time, in order to receive the next data (AC components), the counter 302 of the reception unit is incremented by +1. Further, the input packet invalidating processing is set to ON in the communication unit 102-5 since the packet taken in is not used in subsequent processing and, thus, the packet taken in is invalidated (erased).
Processing D (quantization and zigzag scan conversion) is performed on the data input to the data processing unit 103-5, and the resultant data is output to the communication unit 102-5. Since “3” is stored in the register 401 of the transmission unit of the communication unit 102-5, the communication unit 102-5 generates a packet having the connection identifier “3”, and outputs the generated packet to the communication unit 102-6.
Since “3” is stored in the register 301 of the reception unit of the communication unit 102-6, the communication unit 102-6 takes in the packet having the connection identifier “3”, the data processing unit 103-6 performs processing E (variable length coding) on that packet, and outputs the resultant packet to the communication unit 102-6. Since “4” is stored in the register 401 of the transmission unit of the communication unit 102-6, the communication unit 102-6 generates a packet having the connection identifier “4”, and outputs the generated packet to the communication unit 102-1. Since “4” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 takes in the packet having the connection identifier “4”, and outputs a data portion thereof from the output terminal 152-1. In this way, processing B, processing D, and processing E are sequentially performed on the data input from the input terminal 151-1, and the resultant data is output from the output terminal 152-1.
Next, a description is given regarding the case of outputting the output of an arbitrary data processing unit from different lines. The signal flow graph shown in
The following values are set in the register of the reception unit and the register of the transmission unit of the communication units 102:
“4” in the register of the reception unit of the communication unit 102-1, and “1” in the register of the transmission unit thereof;
“2” in the register of the reception unit of the communication unit 102-2, and an arbitrary value in the register of the transmission unit thereof (although any value may be set, 0 or the maximum value is normally set);
“1” in the register of the reception unit of the communication unit 102-3, and “2” in the register of the transmission unit thereof;
“5” (a value that is not used in the main data flow) in the register of the reception unit of the communication unit 102-4, and an arbitrary value in the register of the transmission unit thereof (although any value may be set, 0 or the maximum value is normally set);
“2” in the register of the reception unit of the communication unit 102-5, and “3” in the register of the transmission unit thereof; and
“3” in the register of the reception unit of the communication unit 102-6, and “4” in the register of the transmission unit thereof.
Further, a setting is set in the communication unit 102-5 so as to output the packet that has been taken in to the communication unit 102-6 as it is, without invalidating the packet. Specifically, the input packet invalidating processing described above is set to OFF.
Hereinafter, an operation is described following a data flow. After the above-mentioned settings have been set, if data is input from the input terminal 151-1, the communication unit 102-1 adds the connection identifier “1” to the input data, and outputs the resultant data to the communication unit 102-2. Since “2” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 outputs the packet to the communication unit 102-3 as it is, without taking in the packet.
Since “1” is stored in the register 301 of the reception unit of the communication unit 102-3, the communication unit 102-3 takes in the packet having the connection identifier “1”, the data processing unit 103-3 performs processing B thereon, and outputs the result to the communication unit 102-3. Since “2” is stored in the register 401 of the transmission unit of the communication unit 102-3, the communication unit 102-3 generates a packet having the connection identifier “2”, and outputs the generated packet to the communication unit 102-4. Since “5” is stored in the register 301 of the reception unit of the communication unit 102-4, the communication unit 102-4 outputs the packet having the connection identifier “2” to the communication unit 102-5 as it is, without taking in the packet.
Since “2” is stored in the register 301 of the reception unit of the communication unit 102-5, the communication unit 102-5 takes in the packet having the connection identifier “2”, and inputs a data portion thereof to the data processing unit 103-5. Note that for monitoring, the communication unit 102-5 outputs the packet that has been taken in to the communication unit 102-6 as it is, without invalidating the packet. This is because the input packet invalidating processing described above is set to OFF.
Since “3” is stored in the register 301 of the reception unit of the communication unit 102-6, the communication unit 102-6 outputs the packet having the connection identifier “2” to the communication unit 102-1 as it is, without taking in the packet. Since “4” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 outputs the packet having the connection identifier “2” to the communication unit 102-2 as it is, without taking in the packet. Since “2” is stored in the register 301 of the reception unit of the communication unit 102-2, the communication unit 102-2 takes in the packet having the connection identifier “2”, and outputs a data portion thereof from the output terminal 152-2.
On the other hand, the data processing unit 103-5 performs processing D on the data portion of the packet that the communication unit 102-5 has taken in, and outputs the result to the communication unit 102-5. Since “3” is stored in the register 401 of the transmission unit of the communication unit 102-5, the communication unit 102-5 generates a packet having the connection identifier “3”, and outputs the generated packet to the communication unit 102-6.
Since “3” is stored in the register 301 of the reception unit of the communication unit 102-6, the communication unit 102-6 takes in the packet having the connection identifier “3”, the data processing unit 103-6 performs processing E thereon, and outputs the result to the communication unit 102-6. Since “4” is stored in the register 401 of the transmission unit of the communication unit 102-6, the communication unit 102-6 generates a packet having the connection identifier “4”, and outputs the generated packet to the communication unit 102-1.
Since “4” is stored in the register 301 of the reception unit of the communication unit 102-1, the communication unit 102-1 takes in the packet having the connection identifier “4”, and outputs a data portion thereof from the output terminal 152-1. In this way, processing B, processing D, and processing E are sequentially performed on the data input from the input terminal 151-1, and the resultant data is output from the output terminal 152-1 and, also, from the output terminal 152-2, the output of processing B that is an intermediate result of the series of processing can be obtained.
As described above, by adding another data input/output unit, it is possible to simultaneously process a plurality of data flows. Further, since it is possible to simultaneously output data in an intermediate node, other data processing apparatuses can also use intermediate data from the processing.
Note that although a value is set to the register 401 of the transmission unit of the communication unit 102, such a value may be fixed in each of the communication units. For example, “1” may be fixed in the communication unit 102-1, “2” in the communication unit 102-2, . . . , and “m” in the communication unit 102-m. In this case, although the node number of the destination of the arrow that shows a process in the signal flow graph is fixed for each process, since the source of the arrow (input) can be programmed, it is possible to perform an operation similar to that as described above.
Further, in the embodiment described above, although a valid flag showing that a packet is valid is used, the configuration is not limited to this. For example, a specific connection identifier (for example, “0”) may be used to show that a packet including it is an invalid packet.
As described above, the data processing apparatus described above is provided with a plurality of data processing units that perform data processing, a data input/output unit that inputs and outputs data, and a plurality of communication units that connect the data processing units and the data input/output unit. Furthermore, the data processing apparatus is provided with the following:
A means for storing a connection identifier with which an input unit and an output unit of the communication unit that is connected to each module identify a logical connection for processing data;
a data output means for adding a connection identifier stored in the output unit of the communication unit to data when the data is output from the communication unit; and
a data input means for comparing the connection identifier added to the data input to the input unit of the communication unit with a connection identifier stored in the input unit of the communication unit, and taking the data whose connection identifier matched into the module.
In this way, the data processing apparatus controls a data path using numbers (connection identifiers) for identifying a node in a signal flow graph that shows the flow of data processing. Accordingly, since it is possible to realize complicated data paths, such as separating a data path into branches, integrating data paths, or simultaneously executing a plurality of data paths, even if each processing module is constituted from hardware (a circuit whose function cannot be changed using a program), flexible processing can be realized. Further, since the erasing of a packet can also be controlled for each processing module, a ring bus can be efficiently used.
According to the present invention, it is possible to provide technology with which the order of processing, such as pipeline processing, can be changed with a simple configuration if pipeline processing or the like is performed using a plurality of modules to which a prescribed function has been assigned.
Further, it is possible to provide technology that enables data processing with complicated data paths, such as separating a data path into branches, integrating data paths, or simultaneously executing a plurality of data paths.
Further, in the embodiment described above, although a valid flag showing that a packet is valid is used, a packet length may be shortened by using a specific connection identifier (for example, “0”) to show that a packet including it is an invalid packet.
Further, it is sufficient to input data obtained from the outside in the form of a packet handled in the ring bus, as it is. Furthermore, it is sufficient that the processing unit may interpret a packet and process the packet as it is.
The diagrams schematically showing configurations of the units of the data processing apparatus referenced in the embodiments described above are intended to describe a circuit and the connecting relationship of functional means, and are not intended to limit the positional relationship of the configurations and the number thereof. For example, in order to implement the present invention, it is sufficient to use three or more communication units (including an input/output unit). Further, it is sufficient to use two or more processing units.
The diagrams schematically showing configurations of the units of the data processing apparatus referenced in the embodiments described above are intended to describe a circuit and the connecting relationship of functional means, and are not intended to limit the positional relationship of the configurations. For example, a processing module may be formed as a separate chip, or may be formed as a single chip. The same follows for the data processing unit and the communication unit. Of course, the configuration of the present invention may be formed as one chip.
Further, in the embodiments described above, although only an example in which single pipeline processing is set is described, the present invention can be applied to a parallel processing unit that executes a plurality of pipeline processing using time division multiplexing. In that case, it is sufficient that a path identifier for identifying pipeline processing to which a packet belongs is provided to the format of the packet, and each module is also caused to store a setting according to each module, for each pipeline processing. Further, a register that identifies an input packet for identifying input data, and a register that stores an identifier added to a packet to be output must also to store an identifier for each pipeline processing.
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiments, and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiments. For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable storage medium).
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2009-049713, filed on Mar. 3, 2009, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2009-049713 | Mar 2009 | JP | national |
This application is a continuation of application Ser. No. 13/139,502, filed Jun. 13, 2011, which is a Section 371 of international Application No. PCT/JP2010/050741, filed Jan. 5, 2010, the contents of each of which are incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
4554659 | Blood | Nov 1985 | A |
4615029 | Hu | Sep 1986 | A |
4768190 | Giancarlo | Aug 1988 | A |
4884192 | Terada | Nov 1989 | A |
5155858 | DeBruler | Oct 1992 | A |
5216670 | Ofek | Jun 1993 | A |
5274637 | Sakamura | Dec 1993 | A |
5490145 | Tanabe | Feb 1996 | A |
5539747 | Ito | Jul 1996 | A |
5666484 | Orimo | Sep 1997 | A |
5764392 | Van As | Jun 1998 | A |
5896384 | Erickson | Apr 1999 | A |
6026425 | Suguri | Feb 2000 | A |
6028837 | Miller | Feb 2000 | A |
6246692 | Dai | Jun 2001 | B1 |
6370579 | Partridge | Apr 2002 | B1 |
6496516 | Dabecki | Dec 2002 | B1 |
6594237 | Kiuchi | Jul 2003 | B1 |
6611871 | Kada | Aug 2003 | B1 |
6959358 | Regev | Oct 2005 | B2 |
7304998 | Kada | Dec 2007 | B2 |
7352765 | Dai | Apr 2008 | B2 |
7379067 | Deering | May 2008 | B2 |
7933049 | Yoshitani | Apr 2011 | B2 |
20020012340 | Kalkunte | Jan 2002 | A1 |
20020015413 | Kaganoi | Feb 2002 | A1 |
20020075836 | Uematsu | Jun 2002 | A1 |
20040100954 | Dai | May 2004 | A1 |
20060050702 | Matsui | Mar 2006 | A1 |
20070211725 | Kawata | Sep 2007 | A1 |
20080317022 | Ahmed | Dec 2008 | A1 |
20090060196 | Fujiwara | Mar 2009 | A1 |
20090168791 | Hamamoto | Jul 2009 | A1 |
20090210709 | Fujiwara | Aug 2009 | A1 |
20110060855 | Kuschke | Mar 2011 | A1 |
20110255549 | Nakamura | Oct 2011 | A1 |
20130100963 | Hartman | Apr 2013 | A1 |
Number | Date | Country |
---|---|---|
62-42260 | Feb 1987 | JP |
01-23340 | Jan 1989 | JP |
2518293 | Jul 1996 | JP |
2834210 | Dec 1998 | JP |
Entry |
---|
Yong M. Chong, “A Data-Flow Architecture for Digital Image Processing”, Wescon Conference Record, XX,XX,I, Jan. 1984 (Jan. 1, 1984), pp. 4/601-4/610. |
PCT International Search Report in corresponding International Application No. PCT/JP2010/050741, dated Aug. 4, 2010. |
Written Opinion of the International Searching Authority in corresponding International Application No. PCT/JP2010/050741, dated Aug. 4, 2010. |
Japanese Office Action dated Aug. 5, 2013 issued during prosecution of related Japanese application No. 2009-049713. |
Number | Date | Country | |
---|---|---|---|
20150188726 A1 | Jul 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13139502 | US | |
Child | 14658694 | US |