JP2005301665A - Data processor and data processing method - Google Patents

Data processor and data processing method Download PDF

Info

Publication number
JP2005301665A
JP2005301665A JP2004116739A JP2004116739A JP2005301665A JP 2005301665 A JP2005301665 A JP 2005301665A JP 2004116739 A JP2004116739 A JP 2004116739A JP 2004116739 A JP2004116739 A JP 2004116739A JP 2005301665 A JP2005301665 A JP 2005301665A
Authority
JP
Japan
Prior art keywords
data
input
processing
output
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004116739A
Other languages
Japanese (ja)
Inventor
Masamitsu Azumaya
真実 東屋
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.)
Hudson Soft Co Ltd
Original Assignee
Hudson Soft Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hudson Soft Co Ltd filed Critical Hudson Soft Co Ltd
Priority to JP2004116739A priority Critical patent/JP2005301665A/en
Publication of JP2005301665A publication Critical patent/JP2005301665A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a DMA system with arithmetic processing for processing data in an arbitrary data format without being restricted by the input/output format of the arithmetic processing. <P>SOLUTION: This data processor 1 is provided with: a DMA device 11 for input for DMA-transferring processing object data from a memory 22; an input register 12 for temporarily storing the processing object data transferred from the DMA device 11 for input; and an arithmetic processing part 15 for operating the arithmetic processing of the processing object data stored in the input register 12. The processing object data in the input register 12 are rearranged according to the input format of the arithmetic processing part 15 by a format converting part 14 according to a pickup table stored in a pickup table part 13 for input, and inputted to the arithmetic processing part 15. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、データ処理装置、及び、このデータ処理装置におけるデータ処理方法に関する。   The present invention relates to a data processing device and a data processing method in the data processing device.

装置内部でデータを転送する方法として、DMA(Direct Memory Access)方式が知られている。また、DMA方式によってメモリからデータを転送する際に演算処理を行う演算処理付DMA方式が知られている(例えば、特許文献1参照。)。
特開平7−79353号公報
As a method for transferring data inside the apparatus, a DMA (Direct Memory Access) method is known. There is also known a DMA system with arithmetic processing that performs arithmetic processing when data is transferred from a memory by the DMA system (see, for example, Patent Document 1).
JP-A-7-79353

以下、従来の演算処理付DMA方式について、図8及び図9を参照して説明する。
図8に示すデータ処理装置3は、従来の演算処理付DMA方式によりデータを転送する装置の一例であり、入力メモリエリア31内のデータを順次処理部30によって演算処理し、出力メモリエリア32に出力するものである。
Hereinafter, a conventional DMA system with arithmetic processing will be described with reference to FIGS.
A data processing device 3 shown in FIG. 8 is an example of a device that transfers data using a conventional DMA system with arithmetic processing. Output.

処理部30の処理実行部30aは、入力インタフェース30bから入力される処理対象データAin,Bin,Cin,Dinを演算処理して、Aout,Bout,Cout,Doutを出力する。処理部30は、処理対象データAin,Bin,Cin,Dinが入力される入力インタフェース30bと、処理実行部30aの処理により生成される出力データAout,Bout,Cout,Doutを出力する出力インタフェース30cとを備える。   The processing execution unit 30a of the processing unit 30 performs arithmetic processing on the processing target data Ain, Bin, Cin, Din input from the input interface 30b, and outputs Aout, Bout, Cout, Dout. The processing unit 30 includes an input interface 30b to which processing target data Ain, Bin, Cin, and Din are input, and an output interface 30c that outputs output data Aout, Bout, Cout, and Dout generated by the processing of the processing execution unit 30a. Is provided.

入力メモリエリア31には、処理実行部30aによる処理の複数回分に相当する処理対象データが格納され、これら複数回分の処理対象データは、いずれも、入力インタフェース30bにおける入力フォーマットに合わせて、Ain,Bin,Cin,Dinの順に4個のデータが一組となっている。
また、出力メモリエリア32には、処理実行部30aによる複数回の処理によって出力されたデータが、いずれも、出力インタフェース30cから出力されたフォーマットの通り、すなわちAout,Bout,Cout,Doutの順に格納される。
In the input memory area 31, processing target data corresponding to a plurality of times of processing by the processing execution unit 30a is stored, and the processing target data for the plurality of times are all in accordance with the input format in the input interface 30b, Ain, A set of four data sets in the order of Bin, Cin, and Din.
Further, in the output memory area 32, all the data output by the processing executed by the processing execution unit 30a is stored in the format output from the output interface 30c, that is, in the order of Aout, Bout, Cout, and Dout. Is done.

つまり、入力メモリエリア31及び出力メモリエリア32におけるデータのフォーマットは、処理部30の入出力フォーマットに適合している。入力メモリエリア31における処理対象データのフォーマットが、処理部30の入力フォーマットと異なっている場合は、図9に示すようにフォーマットを変換する処理が必要になる。   That is, the data format in the input memory area 31 and the output memory area 32 is compatible with the input / output format of the processing unit 30. When the format of the processing target data in the input memory area 31 is different from the input format of the processing unit 30, a process of converting the format as shown in FIG. 9 is necessary.

図9に示す入力メモリエリア31においては、処理対象データAin[0],Bin[0],Cin[0],Din[0],…が、入力インタフェース30bに入力されるフォーマットは異なり、Bin[0],Din[0],Ain[0],Cin[0],…のように並んでいる。
この場合、いったん入力メモリエリア31に格納された処理対象データを、入力インタフェース30bの入力フォーマットに合わせて並べ替える処理を実行し、並べ替えたデータを順次入力メモリエリア31から入力インタフェース30bに出力していた。
In the input memory area 31 shown in FIG. 9, the processing object data Ain [0], Bin [0], Cin [0], Din [0],. 0], Din [0], Ain [0], Cin [0], and so on.
In this case, the processing target data once stored in the input memory area 31 is rearranged according to the input format of the input interface 30b, and the rearranged data is sequentially output from the input memory area 31 to the input interface 30b. It was.

このように、従来の演算処理付DMA方式では、処理対象データのフォーマットを、予め、演算処理を実行する処理部の入力フォーマットに合わせておく必要があった。また、上記処理部による演算処理によって出力される出力データは、出力フォーマットの通りにメモリエリアに格納されていた。つまり処理対象データ及び出力データのフォーマットが、処理部30における入出力フォーマットの制約を受けるという問題があった。   As described above, in the conventional DMA system with arithmetic processing, the format of the processing target data needs to be matched with the input format of the processing unit that executes arithmetic processing in advance. The output data output by the arithmetic processing by the processing unit is stored in the memory area according to the output format. That is, there is a problem that the format of the processing target data and the output data is restricted by the input / output format in the processing unit 30.

また、処理部30における入力フォーマットとは異なるフォーマットのデータを転送・処理する場合、予めデータフォーマットを変換しておく等の処理が必要になり、処理の負荷が増す上に、高速なデータ転送を妨げるおそれがあるという問題があった。   In addition, when data in a format different from the input format in the processing unit 30 is transferred and processed, it is necessary to perform processing such as converting the data format in advance, and the processing load increases and high-speed data transfer is performed. There was a problem that it might interfere.

そこで、本発明の目的は、演算処理付DMA方式において、演算処理の入出力フォーマットに制限されることなく、任意のデータフォーマットのデータを処理できるようにすることである。   Therefore, an object of the present invention is to enable processing of data in an arbitrary data format without being limited to the input / output format of arithmetic processing in the DMA system with arithmetic processing.

上記の目的を達成するために、本発明は、次のような特徴を備えている。なお、次に示す説明中、括弧書きにより実施の形態に対応する構成を一例として示す。符号等は、後述する図面参照符号等である。   In order to achieve the above object, the present invention has the following features. In the following description, a configuration corresponding to the embodiment is shown as an example in parentheses. Reference numerals and the like are reference numerals for drawings to be described later.

本発明のデータ処理装置は、処理対象データを演算処理する演算処理手段(例えば、演算処理部15)と、メモリ(例えば、メモリ22)内の処理対象データをDMA転送する処理対象データ転送手段(例えば、入力用DMA装置11)と、前記処理対象データ転送手段により転送される処理対象データを一時的に格納する第1の記憶手段(例えば、入力レジスタ12)と、前記第1の記憶手段から、少なくとも前記演算処理手段による1回の処理に必要な処理対象データを読み出し、読み出した処理対象データを前記演算処理手段の入力フォーマットに適合する状態で前記演算処理手段へ入力する入力フォーマット変換手段(例えば、フォーマット変換部14)とを備えることを特徴とする。   The data processing apparatus according to the present invention includes an arithmetic processing unit (for example, the arithmetic processing unit 15) that performs arithmetic processing on processing target data, and a processing target data transfer unit (for example, a DMA transfer of processing target data in a memory (for example, the memory 22)). For example, from the input DMA device 11), the first storage means (for example, the input register 12) for temporarily storing the processing target data transferred by the processing target data transfer means, and the first storage means , Input format conversion means for reading at least processing target data required for one processing by the arithmetic processing means, and inputting the read processing target data to the arithmetic processing means in a state suitable for the input format of the arithmetic processing means ( For example, a format conversion unit 14) is provided.

また、本発明において、前記第1の記憶手段に記憶された処理対象データの配列順序を定める設定テーブルを保持する設定テーブル保持手段(例えば、入力用ピックアップテーブル部13)をさらに備え、前記入力フォーマット変換手段が、前記第1の記憶手段に記憶された処理対象データを、前記設定テーブル保持手段により保持される設定テーブルに定められた配列順序に従って並べ、前記演算処理手段へ入力する構成としても良い。   The present invention further comprises setting table holding means (for example, an input pickup table section 13) for holding a setting table for determining the arrangement order of the processing target data stored in the first storage means. The conversion unit may arrange the processing target data stored in the first storage unit according to the arrangement order defined in the setting table held by the setting table holding unit, and input the data to the arithmetic processing unit. .

また、本発明において、前記設定テーブル保持手段に保持される設定テーブルが、前記第1の記憶手段に記憶された複数のデータのうち、特定の複数のデータと、これら特定の複数のデータの配列順序とを定めるものであって、前記入力フォーマット変換手段が、前記設定テーブル保持手段に保持される設定テーブルを参照し、当該設定テーブルに定められた特定の複数のデータを前記第1の記憶手段から読み出して、当該設定テーブルに定められた配列順序に従って並べて前記演算処理手段へ入力する構成としても良い。   In the present invention, the setting table held in the setting table holding unit includes a plurality of specific data among a plurality of data stored in the first storage unit and an arrangement of the specific plurality of data. The input format conversion means refers to the setting table held in the setting table holding means, and the first storage means stores a plurality of specific data set in the setting table. It is good also as a structure which reads out from and arranges according to the arrangement | sequence order defined in the said setting table, and inputs into the said arithmetic processing means.

また、本発明において、前記演算処理手段から出力される出力データを、所定のフォーマットに従って並べる出力フォーマット変換手段(例えば、フォーマット変換部17)と、前記出力フォーマット変換手段により並べられた出力データを一時的に格納する第2の記憶手段(例えば、出力レジスタ18)と、前記第2の記憶手段に記憶された出力データを前記メモリにDMA転送する出力データ転送手段(例えば、出力用DMA装置19)と、をさらに備える構成としても良い。   In the present invention, the output data output from the arithmetic processing means is arranged in accordance with a predetermined format. For example, the output format conversion means (for example, the format conversion section 17) and the output data arranged by the output format conversion means are temporarily stored. Second storage means (for example, output register 18) for storing the output data, and output data transfer means (for example, output DMA device 19) for DMA-transferring the output data stored in the second storage means to the memory It is good also as a structure further equipped with these.

また、本発明のデータ処理方法は、メモリ(例えば、メモリ22)内の処理対象データをDMA転送するとともに、演算処理手段(例えば、演算処理部15)によって演算処理するデータ処理方法であって、前記メモリから転送される処理対象データを第1の記憶手段(例えば、入力レジスタ12)に一時的に格納し、前記第1の記憶手段から、少なくとも前記演算処理手段による1回の処理に必要な処理対象データを読み出し、読み出した処理対象データを前記演算処理手段の入力フォーマットに適合する状態で前記演算処理手段へ入力することを特徴とする。   Further, the data processing method of the present invention is a data processing method in which processing target data in a memory (for example, the memory 22) is DMA-transferred and arithmetic processing is performed by an arithmetic processing means (for example, the arithmetic processing unit 15). Data to be processed transferred from the memory is temporarily stored in a first storage means (for example, the input register 12), and is necessary for at least one process by the arithmetic processing means from the first storage means. The processing target data is read out, and the read processing target data is input to the arithmetic processing unit in a state suitable for the input format of the arithmetic processing unit.

本発明によれば、メモリ内の処理対象データを処理対象データ転送手段によってDMA転送し、演算処理手段によって処理対象データを演算処理する場合に、転送手段により転送される処理対象データを第1の記憶手段に一時的に格納し、入力フォーマット変換手段により、第1の記憶手段から少なくとも演算処理手段による1回の処理に必要な処理対象データを読み出し、読み出した処理対象データを演算処理手段の入力フォーマットに適合する状態で演算処理手段へ入力するので、メモリからDMA転送される処理対象データのフォーマットがどのようなフォーマットであっても、演算処理手段には、当該演算処理手段の入力フォーマットに適した処理対象データが入力される。これにより、演算処理の入力フォーマットに関係なく、様々なフォーマットのデータを処理対象として演算処理付DMA転送を実行することが可能になる。   According to the present invention, when the processing target data in the memory is DMA-transferred by the processing target data transfer unit, and the processing target data is arithmetically processed by the arithmetic processing unit, the processing target data transferred by the transfer unit is the first data Temporarily stored in the storage means, the input format conversion means reads from the first storage means at least processing target data necessary for the processing by the arithmetic processing means, and the read processing target data is input to the arithmetic processing means. Since the data is input to the arithmetic processing means in conformity with the format, the arithmetic processing means is suitable for the input format of the arithmetic processing means regardless of the format of the data to be processed that is DMA-transferred from the memory. Processed data is input. This makes it possible to execute DMA transfer with arithmetic processing on data in various formats regardless of the input format of arithmetic processing.

また、本発明において、第1の記憶手段に記憶された処理対象データの配列順序を定める設定テーブルを設定テーブル保持手段によって保持し、入力フォーマット変換手段が、第1の記憶手段に記憶された処理対象データを、設定テーブル保持手段により保持される設定テーブルに定められた配列順序に従って並べ、演算処理手段へ入力する構成とした場合、入力フォーマット変換手段は、設定テーブルを参照しながら第1の記憶手段に記憶された処理対象データを読み出して並べれば良い。従って、メモリから転送される処理対象データのフォーマットと、演算処理手段の入力フォーマットに合わせた設定テーブルを保持しておくだけで、様々なフォーマットのデータに対応できる。さらに、処理対象の全データについてフォーマットを一括変換する等の処理を実行する場合に比べ、処理の負荷が小さく、極めて高速に処理を行うことができるので、DMA転送の処理速度を損なうことなく様々なフォーマットのデータを処理できる。   In the present invention, the setting table for determining the arrangement order of the processing target data stored in the first storage means is held by the setting table holding means, and the input format conversion means is the process stored in the first storage means. When the target data is arranged according to the arrangement order defined in the setting table held by the setting table holding means and is input to the arithmetic processing means, the input format conversion means refers to the setting table and stores the first memory The processing target data stored in the means may be read and arranged. Therefore, it is possible to deal with data in various formats by simply holding a setting table that matches the format of the processing target data transferred from the memory and the input format of the arithmetic processing means. Furthermore, the processing load is small and processing can be performed at a very high speed compared to the case where processing such as batch conversion of the format of all data to be processed is performed, so that various processing can be performed without impairing the DMA transfer processing speed. Can process data in various formats.

また、本発明において、設定テーブル保持手段に保持される設定テーブルが、第1の記憶手段に記憶された複数のデータのうち、特定の複数のデータと、これら複数のデータの配列順とを定めるものであって、入力フォーマット変換手段が、設定テーブル保持手段に保持される設定テーブルを参照し、当該設定テーブルに定められた特定の複数のデータを第1の記憶手段から読み出して、当該設定テーブルに定められた順序に並べて演算処理手段へ入力する構成とした場合、入力フォーマット変換手段は、第1の記憶手段に格納された特定のデータを読み出し、並べ替える処理を行うので、第1の記憶手段に格納されたデータを1回ずつ読み出しても、1個のデータを複数回にわたって読み出しても、処理に要する時間や手順は全く変化しない。すなわち、同一内容の複数のデータが演算処理手段によって処理される場合に、第1の記憶手段には当該データを1個だけ記憶させておき、入力フォーマット変換手段によって、当該データを複数回読み出すようにすれば、第1の記憶手段に記憶すべきデータの量を圧縮できる。これにより、処理速度を全く損なうことなくデータ量を圧縮できるという効果が得られる。   In the present invention, the setting table held in the setting table holding unit determines a plurality of specific data among the plurality of data stored in the first storage unit and the arrangement order of the plurality of data. The input format conversion means refers to the setting table held in the setting table holding means, reads a plurality of specific data defined in the setting table from the first storage means, and sets the setting table. When the input format conversion unit reads the specific data stored in the first storage unit and rearranges it, the input data is converted to the first storage unit. Whether the data stored in the means is read once or when one piece of data is read multiple times, the time and procedure required for the process do not change at all. . That is, when a plurality of data having the same contents are processed by the arithmetic processing means, only one piece of the data is stored in the first storage means, and the data is read out a plurality of times by the input format conversion means. If so, the amount of data to be stored in the first storage means can be compressed. As a result, it is possible to compress the amount of data without any loss in processing speed.

また、本発明において、出力フォーマット変換手段によって、演算処理手段から出力される出力データを所定のフォーマットに従って並べ、並べられた出力データを第2の記憶手段に一時的に格納し、第2の記憶手段に記憶された出力データを出力データ転送手段によってメモリにDMA転送する構成とした場合、演算処理手段による処理後に出力される出力データを、演算処理手段の出力フォーマットとは異なるフォーマットに並べ替えて、メモリに転送することが可能となるので、出力データを様々なフォーマットで得ることができる。   In the present invention, the output data output from the arithmetic processing means is arranged in accordance with a predetermined format by the output format conversion means, the arranged output data is temporarily stored in the second storage means, and the second storage When the output data stored in the means is DMA-transferred to the memory by the output data transfer means, the output data output after the processing by the arithmetic processing means is rearranged into a format different from the output format of the arithmetic processing means. Since the data can be transferred to the memory, the output data can be obtained in various formats.

以下、本発明の実施の形態を図面に基づき説明する。
図1は、本発明の実施の形態におけるデータ処理装置1の機能的構成を示すブロック図である。図1に示すようにデータ処理装置1は、シーケンス制御部10、入力用DMA装置11、入力レジスタ12、入力用ピックアップテーブル部13、フォーマット変換部14、演算処理部15、出力用ピックアップテーブル部16、フォーマット変換部17、出力レジスタ18及び出力用DMA装置19の各部を備えて構成される。
また、データ処理装置1のシーケンス制御部10、入力用DMA装置11及び出力用DMA装置19の各部はバス20に接続され、バス20を介して、CPU(Central Processing Unit)21及びメモリ22との間でデータを送受信する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a functional configuration of a data processing device 1 according to an embodiment of the present invention. As shown in FIG. 1, the data processing apparatus 1 includes a sequence control unit 10, an input DMA device 11, an input register 12, an input pickup table unit 13, a format conversion unit 14, an arithmetic processing unit 15, and an output pickup table unit 16. , A format conversion unit 17, an output register 18, and an output DMA device 19.
Each unit of the sequence control unit 10, the input DMA device 11, and the output DMA device 19 of the data processing device 1 is connected to the bus 20, and is connected to a CPU (Central Processing Unit) 21 and a memory 22 via the bus 20. Send and receive data between them.

シーケンス制御部10は、CPU21から入力される制御信号に従って、データ処理装置1の各部を制御する。すなわち、シーケンス制御部10は、入力用DMA装置11及び出力用DMA装置19を制御して、メモリ22との間でDMA方式によるデータの転送を実行させる。また、シーケンス制御部10は、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16を制御して、ピックアップテーブルを選択するためのカウンタのリセット等を行う。   The sequence control unit 10 controls each unit of the data processing device 1 in accordance with a control signal input from the CPU 21. That is, the sequence control unit 10 controls the input DMA device 11 and the output DMA device 19 to transfer data to and from the memory 22 by the DMA method. Further, the sequence control unit 10 controls the input pickup table unit 13 and the output pickup table unit 16 to reset a counter for selecting the pickup table.

入力用DMA装置11は、シーケンス制御部10の制御に従って、バス20を介してメモリ22から処理対象データを読み出して入力レジスタ12に格納する。
入力レジスタ12は、入力用DMA装置11から入力される処理対象データを一時的に格納するバッファメモリである。
The input DMA device 11 reads processing target data from the memory 22 via the bus 20 and stores it in the input register 12 under the control of the sequence control unit 10.
The input register 12 is a buffer memory that temporarily stores processing target data input from the input DMA device 11.

入力用ピックアップテーブル部13は、フォーマット変換部14により参照される複数のピックアップテーブルを格納する。入力用ピックアップテーブル部13は、格納したピックアップテーブルを選択するためのカウンタ(図示略)を備え、フォーマット変換部14によってピックアップテーブルが参照される毎にカウンタをインクリメント(+1)する。
フォーマット変換部14は、入力用ピックアップテーブル部13内のカウンタ(図示略)のカウント値に基づいて、入力用ピックアップテーブル部13に格納されたピックアップテーブルを参照し、このピックアップテーブルに従って入力レジスタ12内の処理対象データを読み出し、演算処理部15へ出力する。
The input pickup table unit 13 stores a plurality of pickup tables referred to by the format conversion unit 14. The input pickup table unit 13 includes a counter (not shown) for selecting a stored pickup table, and increments (+1) the counter every time the pickup table is referred to by the format conversion unit 14.
The format conversion unit 14 refers to the pickup table stored in the input pickup table unit 13 based on the count value of a counter (not shown) in the input pickup table unit 13, and in the input register 12 according to the pickup table. The processing target data is read out and output to the arithmetic processing unit 15.

演算処理部15は、フォーマット変換部14から入力された処理対象データを演算処理して出力データを生成し、フォーマット変換部17へ出力する。
出力用ピックアップテーブル部16は、フォーマット変換部17により参照される複数のピックアップテーブルを格納する。出力用ピックアップテーブル部16は、格納したピックアップテーブルを選択するためのカウンタ(図示略)を備え、フォーマット変換部17によってピックアップテーブルが参照される毎にカウンタをインクリメント(+1)する。
フォーマット変換部17は、出力用ピックアップテーブル部16内のカウンタ(図示略)のカウント値に基づいて、出力用ピックアップテーブル部16に格納されたピックアップテーブルを参照し、このピックアップテーブルに従って、演算処理部15から出力される出力データを出力レジスタ18に出力する。
The arithmetic processing unit 15 performs arithmetic processing on the processing target data input from the format conversion unit 14 to generate output data, and outputs the output data to the format conversion unit 17.
The output pickup table unit 16 stores a plurality of pickup tables referred to by the format conversion unit 17. The output pickup table unit 16 includes a counter (not shown) for selecting the stored pickup table, and increments (+1) the counter each time the pickup table is referred to by the format conversion unit 17.
The format conversion unit 17 refers to the pickup table stored in the output pickup table unit 16 based on the count value of a counter (not shown) in the output pickup table unit 16, and operates in accordance with this pickup table. The output data output from 15 is output to the output register 18.

出力レジスタ18は、フォーマット変換部17から入力される出力データを一時的に格納するバッファメモリである。
出力用DMA装置19は、シーケンス制御部10の制御に従って出力レジスタ18に格納された出力データを読み出し、バス20を介してメモリ22に出力する。
The output register 18 is a buffer memory that temporarily stores output data input from the format conversion unit 17.
The output DMA device 19 reads the output data stored in the output register 18 under the control of the sequence control unit 10 and outputs it to the memory 22 via the bus 20.

図2は、入力用ピックアップテーブル部13に格納されるピックアップテーブルの構成例を模式的に示す図である。
図2に示すように、入力用ピックアップテーブル部13には複数のテーブルが格納され、各ピックアップテーブルを識別するためのピックアップインデックスが付されている。
FIG. 2 is a diagram schematically illustrating a configuration example of a pickup table stored in the input pickup table unit 13.
As shown in FIG. 2, a plurality of tables are stored in the input pickup table unit 13, and a pickup index for identifying each pickup table is attached.

各ピックアップテーブルには、入力レジスタ12におけるアドレスが所定の順序で格納されている。例えば、図2中の「ピックアップテーブル0」には、X個のアドレス「P00」,「P01」,…,「P0x」が格納される。これらのアドレスは、入力レジスタ12内において処理対象データが格納されたアドレスを指す。また、ピックアップテーブルにおけるアドレス「P00」,「P01」,…,「P0x」の順序は、各アドレスの処理対象データを演算処理部15の入力フォーマットに合わせて並べるための順序を示す。従って、フォーマット変換部14は、「ピックアップテーブル0」のアドレス「P00」,「P01」,…,「P0x」に格納された処理対象データを入力レジスタ12から順次読み出して、「ピックアップテーブル0」における順序に従って並べることにより、処理対象データのフォーマットを演算処理部15の入力フォーマットに適合させることができる。   Each pickup table stores addresses in the input register 12 in a predetermined order. For example, “Pickup table 0” in FIG. 2 stores X addresses “P00”, “P01”,..., “P0x”. These addresses indicate addresses where processing target data is stored in the input register 12. Further, the order of the addresses “P00”, “P01”,..., “P0x” in the pickup table indicates the order for arranging the processing target data of each address according to the input format of the arithmetic processing unit 15. Therefore, the format conversion unit 14 sequentially reads out the processing target data stored at the addresses “P00”, “P01”,..., “P0x” of the “pickup table 0” from the input register 12 and stores them in the “pickup table 0”. By arranging according to the order, the format of the processing target data can be adapted to the input format of the arithmetic processing unit 15.

また、上述のように、入力用ピックアップテーブル部13はカウンタ(図示略)を備えている。フォーマット変換部14は、入力用ピックアップテーブル部13内のピックアップテーブルを参照する場合に、カウンタのカウント値に基づいてピックアップテーブルを選択する。例えば、カウント値が「0」の場合、フォーマット変換部14は、入力用ピックアップテーブル部13内の「ピックアップテーブル0」を参照し、カウント値が「1」の場合、フォーマット変換部14は「ピックアップテーブル1」を参照する。
従って、入力用ピックアップテーブル部13に格納された複数のピックアップテーブルは、処理の進行に伴って順番に参照される。
As described above, the input pickup table unit 13 includes a counter (not shown). When referring to the pickup table in the input pickup table unit 13, the format conversion unit 14 selects the pickup table based on the count value of the counter. For example, when the count value is “0”, the format conversion unit 14 refers to “pickup table 0” in the input pickup table unit 13, and when the count value is “1”, the format conversion unit 14 selects “pickup table”. Refer to “Table 1”.
Accordingly, the plurality of pickup tables stored in the input pickup table unit 13 are referred to in order as the process proceeds.

なお、図2には入力用ピックアップテーブル部13内に格納されるピックアップテーブルの構成例を示したが、出力用ピックアップテーブル部16に格納されるピックアップテーブルの構成も同様である。すなわち、出力用ピックアップテーブル部16に格納されるピックアップテーブルには、出力レジスタ18において出力データが格納されるアドレスが所定の順序に従って格納されている。フォーマット変換部17は、出力用ピックアップテーブル部16内のピックアップテーブルを参照することにより、出力レジスタ18内のアドレスを取得し、取得したアドレスに出力データを順次格納する。これにより、出力レジスタ18におけるデータフォーマットを、演算処理部15の出力フォーマットに関係なく、任意のフォーマットにすることができる。   2 shows an example of the configuration of the pickup table stored in the input pickup table unit 13, the configuration of the pickup table stored in the output pickup table unit 16 is the same. In other words, in the pickup table stored in the output pickup table unit 16, addresses where output data is stored in the output register 18 are stored in a predetermined order. The format conversion unit 17 acquires the address in the output register 18 by referring to the pickup table in the output pickup table unit 16, and sequentially stores the output data at the acquired address. Thereby, the data format in the output register 18 can be changed to an arbitrary format regardless of the output format of the arithmetic processing unit 15.

図3は、データ処理装置1において、演算処理付DMA方式によりデータを処理する動作を示すフローチャートである。また、図4は、データ処理装置1によるメモリ22に格納された複数の処理対象データの処理を示す図である。
なお、メモリエリア22aは、演算処理部15によって処理されるべき処理対象データを格納する領域であり、図4に示す例ではn個の処理対象データscr_1,scr_2,…,scr_nが格納されている。また、メモリエリア22bは、演算処理部15によって生成された出力データを格納する領域であり、図4に示す例ではn個の出力データdst_1,dst_2,…,dst_nを格納する。
FIG. 3 is a flowchart showing the operation of processing data in the data processing apparatus 1 by the DMA system with arithmetic processing. FIG. 4 is a diagram illustrating processing of a plurality of processing target data stored in the memory 22 by the data processing apparatus 1.
The memory area 22a is an area for storing processing target data to be processed by the arithmetic processing unit 15, and in the example shown in FIG. 4, n processing target data scr_1, scr_2,..., Scr_n are stored. . In addition, the memory area 22b is an area for storing output data generated by the arithmetic processing unit 15, and in the example shown in FIG. 4, n output data dst_1, dst_2,..., Dst_n are stored.

以下、図3及び図4を参照して、データ処理装置1の動作について説明する。
まず、シーケンス制御部10は、データ処理装置1の動作状態を示すステータスを、「動作中」に更新する(図3のステップS11)。続いて、シーケンス制御部10は、入力用DMA装置11を制御することにより、1処理単位分の処理対象データをDMA転送させる(ステップS12)。
Hereinafter, the operation of the data processing apparatus 1 will be described with reference to FIGS. 3 and 4.
First, the sequence control unit 10 updates the status indicating the operation state of the data processing apparatus 1 to “in operation” (step S11 in FIG. 3). Subsequently, the sequence control unit 10 controls the input DMA device 11 to perform DMA transfer of processing target data for one processing unit (step S12).

ここで、入力用DMA装置11は、1処理単位分の処理対象データ、すなわち、メモリエリア22a内のscr_1(図4)を、バス20(図1)を介して読み出し、入力レジスタ12に格納する(図3のステップS13)。   Here, the input DMA device 11 reads out processing target data for one processing unit, that is, scr_1 (FIG. 4) in the memory area 22a via the bus 20 (FIG. 1) and stores it in the input register 12. (Step S13 in FIG. 3).

続いて、シーケンス制御部10は、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16を制御して、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16に格納された複数のピックアップテーブルの中からピックアップテーブルを選択するためのカウンタをリセットさせる(ステップS14)。   Subsequently, the sequence control unit 10 controls the input pickup table unit 13 and the output pickup table unit 16, and among the plurality of pickup tables stored in the input pickup table unit 13 and the output pickup table unit 16. The counter for selecting the pickup table from the reset is reset (step S14).

ここで、フォーマット変換部14は、入力用ピックアップテーブル部13内のカウンタ(図示略)のカウント値に従って、入力用ピックアップテーブル部13内のピックアップテーブルを参照し、このピックアップテーブルに従って、入力レジスタ12から処理対象データを読み出して演算処理部15に入力する(ステップS15)。
演算処理部15は、フォーマット変換部14から入力された処理対象データをもとに演算処理を実行して出力データを生成し、フォーマット変換部17に出力する(ステップS16)。
Here, the format conversion unit 14 refers to the pickup table in the input pickup table unit 13 according to the count value of a counter (not shown) in the input pickup table unit 13, and from the input register 12 in accordance with this pickup table. Data to be processed is read out and input to the arithmetic processing unit 15 (step S15).
The arithmetic processing unit 15 performs arithmetic processing based on the processing target data input from the format conversion unit 14, generates output data, and outputs the output data to the format conversion unit 17 (step S16).

演算処理部15による処理が終わると、フォーマット変換部17は、出力用ピックアップテーブル部16内のカウンタ(図示略)のカウント値に従って、出力用ピックアップテーブル部16に格納されたピックアップテーブルを参照し、このピックアップテーブルに従って、演算処理部15から出力される出力データを出力レジスタ18に格納する(ステップS17)。   When the processing by the arithmetic processing unit 15 is finished, the format conversion unit 17 refers to the pickup table stored in the output pickup table unit 16 according to the count value of the counter (not shown) in the output pickup table unit 16, According to this pickup table, the output data output from the arithmetic processing unit 15 is stored in the output register 18 (step S17).

さらに、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16は、内蔵するカウンタのカウント値をインクリメント(+1)する(ステップS18)。   Further, the input pickup table unit 13 and the output pickup table unit 16 increment (+1) the count value of the built-in counter (step S18).

シーケンス制御部10は、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16内のカウンタのカウント値が、予め指定された指定値に達したか否かを判定する(ステップS19)。
ここで、指定値とは、すなわち、入力用DMA装置11によってメモリエリア22a(図4)から読み出され、入力レジスタ12に格納されたscr_1の全部を処理したか否かを示す指標となる値である。例えば、処理対象データscr_1が、演算処理部15によって1回に処理可能な量を超えるデータを含む場合、入力レジスタ12内の処理対象データscr_1を全部処理するためには、演算処理部15によって複数回の処理を行う必要がある。この場合、演算処理部15によって実行すべき処理の回数を予め求めておき、その回数を指定値としておけば、入力レジスタ12内の全ての処理対象データを確実に処理できる。
The sequence control unit 10 determines whether or not the count values of the counters in the input pickup table unit 13 and the output pickup table unit 16 have reached specified values specified in advance (step S19).
Here, the specified value is a value indicating whether or not all of the scr_1 read from the memory area 22a (FIG. 4) by the input DMA device 11 and stored in the input register 12 has been processed. It is. For example, when the processing target data scr_1 includes data exceeding the amount that can be processed at one time by the arithmetic processing unit 15, in order to process all the processing target data scr_1 in the input register 12, the arithmetic processing unit 15 Needs to be processed once. In this case, if the number of processes to be executed by the arithmetic processing unit 15 is obtained in advance and the number is set as a specified value, all the processing target data in the input register 12 can be reliably processed.

入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16内のカウンタのカウント値が指定値に達していなければ(図3のステップS19;No)、データ処理装置1の動作はステップS15に戻る。   If the count values of the counters in the input pickup table unit 13 and the output pickup table unit 16 have not reached the specified values (step S19 in FIG. 3; No), the operation of the data processing device 1 returns to step S15.

また、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16内のカウンタのカウント値が指定値に達した場合(ステップS19;Yes)、シーケンス制御部10は、出力用DMA装置19を制御して、出力レジスタ18に格納された1処理単位分の出力データをメモリ22(図1)へDMA転送させ、メモリエリア22b(図4)にdst_1として格納する(図3のステップS20)。   When the count values of the counters in the input pickup table unit 13 and the output pickup table unit 16 reach the specified values (step S19; Yes), the sequence control unit 10 controls the output DMA device 19 to The output data for one processing unit stored in the output register 18 is DMA-transferred to the memory 22 (FIG. 1) and stored as dst_1 in the memory area 22b (FIG. 4) (step S20 in FIG. 3).

その後、シーケンス制御部10は、バス20(図1)を介してCPU21から入力される制御信号に従って、全ての処理が完了したか否かを判定する(ステップS21)。全ての処理が完了した状態とは、すなわち、図4に示すメモリエリア22a内のn個の処理対象データscr_1,scr_2,…,scr_nが、全て演算処理部15によって処理され、メモリエリア22bにn個の出力データdst_1,dst_2,…,dst_nが格納された状態を指す。   Thereafter, the sequence control unit 10 determines whether or not all the processes are completed according to the control signal input from the CPU 21 via the bus 20 (FIG. 1) (step S21). The state in which all the processes are completed means that all the n processing target data scr_1, scr_2,..., Scr_n in the memory area 22a shown in FIG. This refers to the state where the output data dst_1, dst_2,..., Dst_n are stored.

図3のステップS21において、データ処理装置1による処理が完了していなければ、データ処理装置1の動作はステップS11に戻り、メモリエリア22a(図4)に格納された次の処理対象データを処理する。また、処理が完了した場合(図3のステップS21;Yes)、シーケンス制御部10は、データ処理装置1の動作状態を示すステータスを「アイドル状態」に更新して(ステップS22)、本処理を終了する。   In step S21 of FIG. 3, if the processing by the data processing device 1 is not completed, the operation of the data processing device 1 returns to step S11 to process the next processing target data stored in the memory area 22a (FIG. 4). To do. When the process is completed (step S21 in FIG. 3; Yes), the sequence control unit 10 updates the status indicating the operation state of the data processing apparatus 1 to “idle state” (step S22), and performs this process. finish.

図5は、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16に格納されるピックアップテーブルの具体的な構成例と、ピックアップテーブルに基づく処理を示す説明図である。   FIG. 5 is an explanatory diagram illustrating a specific configuration example of the pickup table stored in the input pickup table unit 13 and the output pickup table unit 16 and processing based on the pickup table.

なお、図5において、シーケンス制御部10、入力用DMA装置11、出力用DMA装置19、バス20、CPU21及びメモリ22の各部については図示を省略する。また、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16については、その中に格納されるピックアップテーブル13a,16aのみを図示する。   In FIG. 5, the sequence controller 10, the input DMA device 11, the output DMA device 19, the bus 20, the CPU 21, and the memory 22 are not shown. For the input pickup table unit 13 and the output pickup table unit 16, only the pickup tables 13a and 16a stored therein are shown.

演算処理部15は、演算処理を実行する処理実行部15aと、処理実行部15aにより処理される情報の入力を受け付ける入力インタフェース15bと、処理実行部15aによる処理により生成されるデータを出力する出力インタフェース15cとを備える。
以下、処理対象データ及び出力データには、処理実行部15aによって処理・生成される順序を示す添え字[0]〜[3]を付す。
The arithmetic processing unit 15 is a process execution unit 15a that executes arithmetic processing, an input interface 15b that receives input of information processed by the process execution unit 15a, and an output that outputs data generated by the processing performed by the process execution unit 15a. And an interface 15c.
Hereinafter, subscripts [0] to [3] indicating the order of processing and generation by the processing execution unit 15a are attached to the processing target data and the output data.

図5に示す例において、演算処理部15は、Ain,Bin,Cin,Dinの4つの処理対象データに基づく演算処理を実行し、出力データAout,Bout,Cout,Doutを出力する。
入力レジスタ12には、No.0〜Fの16アドレスに対応づけて、処理対象データBin[0],Din[0],Ain[0],Cin[0],…,Bin[3],Din[3],Ain[3],Cin[3]が格納される。これら16個の処理対象データは、演算処理部15による4回の演算処理によって処理される。
In the example shown in FIG. 5, the arithmetic processing unit 15 executes arithmetic processing based on four processing target data of Ain, Bin, Cin, and Din, and outputs output data Aout, Bout, Cout, and Dout.
In the input register 12, No. Corresponding to 16 addresses from 0 to F, processing target data Bin [0], Din [0], Ain [0], Cin [0], ..., Bin [3], Din [3], Ain [3] , Cin [3] is stored. These 16 pieces of data to be processed are processed by four calculation processes by the calculation processing unit 15.

ピックアップテーブル13aには、入力レジスタ12内の16個のデータを演算処理部15の入力フォーマットに合わせてAin,Bin,Cin,Dinの順に並べるため、データの配列順序と入力レジスタ12内のアドレスとが対応づけて格納される。   In the pickup table 13a, 16 data in the input register 12 are arranged in the order of Ain, Bin, Cin, and Din in accordance with the input format of the arithmetic processing unit 15, so that the data arrangement order, the address in the input register 12, and Are stored in association with each other.

フォーマット変換部14は、まず、ピックアップテーブル13a中、最初に処理される処理対象データアドレスを示すデータ2,0,3,1を参照し、入力レジスタ12のアドレス2,0,3,1に格納された処理対象データAin[0],Bin[0],Cin[0],Din[0]を読み出す。これにより、入力レジスタ12内の処理対象データBin[0],Din[0],Ain[0],Cin[0]が、入力インタフェース15bの入力フォーマットに合わせてAin[0],Bin[0],Cin[0],Din[0]の順に並べられ、演算処理部15の処理実行部15aに入力される。   The format conversion unit 14 first refers to the data 2, 0, 3, 1 indicating the processing target data address to be processed first in the pickup table 13a, and stores the data at addresses 2, 0, 3, 1 of the input register 12. The processed data Ain [0], Bin [0], Cin [0], and Din [0] are read. Thereby, the processing target data Bin [0], Din [0], Ain [0], and Cin [0] in the input register 12 are matched with the input format of the input interface 15b by Ain [0] and Bin [0]. , Cin [0], Din [0] are arranged in this order and are input to the processing execution unit 15a of the arithmetic processing unit 15.

そして、入力インタフェース15bに入力されたデータAin[0],Bin[0],Cin[0],Din[0]に基づいて、処理実行部15aによる処理が実行されると、出力インタフェース15cから、最初の処理による出力データAout[0],Bout[0],Cout[0],Dout[0]が出力される。
フォーマット変換部17は、ピックアップテーブル16aを参照し、最初の出力データAout[0],Bout[0],Cout[0],Dout[0]を格納すべき出力レジスタ18内のアドレス0,1,2,3を取得し、このアドレス0,1,2,3に、Aout[0],Bout[0],Cout[0],Dout[0]を、それぞれ格納する。
When the processing by the processing execution unit 15a is executed based on the data Ain [0], Bin [0], Cin [0], Din [0] input to the input interface 15b, the output interface 15c Output data Aout [0], Bout [0], Cout [0], and Dout [0] by the first processing are output.
The format converter 17 refers to the pickup table 16a, and addresses 0, 1, and 2 in the output register 18 where the first output data Aout [0], Bout [0], Cout [0], and Dout [0] are to be stored. 2 and 3 are acquired, and Aout [0], Bout [0], Cout [0], and Dout [0] are stored in the addresses 0, 1, 2, and 3, respectively.

以後、同様に、入力レジスタ12内の処理対象データBin[1],Din[1],Ain[1],Cin[1],…,Bin[3],Din[3],Ain[3],Cin[3]が、フォーマット変換部14によって、入力インタフェース15bの入力フォーマットに合わせて並べられ、演算処理部15によって処理され、出力データAout[1],Bout[1],Cout[1],Dout[1],…,Aout[3],Bout[3],Cout[3],Dout[3]が、ピックアップテーブル16aにより定められるフォーマットで出力レジスタ18に格納される。   Thereafter, similarly, the processing target data Bin [1], Din [1], Ain [1], Cin [1], ..., Bin [3], Din [3], Ain [3], in the input register 12 Cin [3] is arranged in accordance with the input format of the input interface 15b by the format conversion unit 14, processed by the arithmetic processing unit 15, and output data Aout [1], Bout [1], Cout [1], Dout [1],..., Aout [3], Bout [3], Cout [3], Dout [3] are stored in the output register 18 in a format determined by the pickup table 16a.

以上のように、本発明を適用した実施の形態におけるデータ処理装置1は、DMA転送によりメモリ22から入力レジスタ12に転送された処理対象データが、演算処理部15によって処理され、処理後の出力データが出力レジスタ18に格納される一連の動作において、フォーマット変換部14によって、入力レジスタ12に格納された処理対象データが、入力用ピックアップテーブル部13内のピックアップテーブルに基づく順序で並べられ、演算処理部15の入力フォーマットに適合する状態で演算処理部15に入力される。
これにより、入力レジスタ12に格納された処理対象データのフォーマットが、演算処理部15の入力フォーマットと異なっていても速やかに処理できるので、様々なデータフォーマットのデータを、効率よく高速に処理できる。
As described above, in the data processing device 1 according to the embodiment to which the present invention is applied, the processing target data transferred from the memory 22 to the input register 12 by the DMA transfer is processed by the arithmetic processing unit 15, and the output after processing is performed. In a series of operations in which data is stored in the output register 18, the format conversion unit 14 arranges the processing target data stored in the input register 12 in the order based on the pickup table in the input pickup table unit 13. The data is input to the arithmetic processing unit 15 in a state compatible with the input format of the processing unit 15.
Thereby, even if the format of the processing target data stored in the input register 12 is different from the input format of the arithmetic processing unit 15, it can be processed quickly, so that data of various data formats can be processed efficiently and at high speed.

また、入力用ピックアップテーブル部13に格納されるピックアップテーブルは、入力レジスタ12におけるアドレスを指定するものであるから、入力レジスタ12内の処理対象データを細かく指定できる。これにより、演算処理部15による複数回の処理において同一のデータを用いる場合には、当該データを一つだけ入力レジスタ12に格納し、複数のピックアップテーブルにおいて当該データのアドレスを指定するようにすれば、フォーマット変換部14によって当該データが処理される毎に、入力レジスタ12からの読み出しが行われ、演算処理部15に入力される。従って、入力レジスタ12に同一のデータを複数格納する必要がなく、これら複数のデータを一つだけにすることができるので、入力レジスタ12のデータ量を圧縮できる。また、入力レジスタ12における1つのデータを複数回読み出す処理は、複数のデータを1回ずつ読み出す処理と全く同一の手順で行われるので、処理速度を損なうことなくデータ量を圧縮できるという利点がある。   Further, since the pickup table stored in the input pickup table unit 13 specifies an address in the input register 12, the processing target data in the input register 12 can be specified in detail. Thus, when the same data is used in a plurality of processes by the arithmetic processing unit 15, only one piece of the data is stored in the input register 12, and the address of the data is designated in a plurality of pickup tables. For example, every time the data is processed by the format conversion unit 14, the data is read from the input register 12 and input to the arithmetic processing unit 15. Therefore, it is not necessary to store a plurality of identical data in the input register 12, and only one of the plurality of data can be stored. Therefore, the data amount of the input register 12 can be compressed. Further, the process of reading one data in the input register 12 a plurality of times is performed in exactly the same procedure as the process of reading a plurality of data once, so that there is an advantage that the data amount can be compressed without impairing the processing speed. .

さらに、演算処理部15の処理により生成された出力データについても、フォーマット変換部17により、演算処理部15からの出力フォーマットに関係なく、ピックアップテーブルに従って出力レジスタ18に格納される。このため、演算処理後に出力されるデータのフォーマットを任意のフォーマットにすることができる。   Further, the output data generated by the processing of the arithmetic processing unit 15 is also stored in the output register 18 by the format conversion unit 17 according to the pickup table regardless of the output format from the arithmetic processing unit 15. For this reason, the format of the data output after the arithmetic processing can be changed to an arbitrary format.

このように、データ処理装置1によれば、様々なデータフォーマットに容易に対応することができ、どのようなフォーマットのデータであっても、効率よく高速に処理できるという利点がある。   As described above, the data processing apparatus 1 has an advantage that it can easily cope with various data formats, and can process data of any format efficiently and at high speed.

なお、上記実施の形態において、図4に示すメモリエリア22a,22bの容量や、メモリエリア22a,22bに格納されるデータscr_1,…,scr_n,dst_1,…,dst_nのサイズ等は、任意に変更可能である。また、メモリエリア22aに格納されるデータscr_1,…,scr_nを、それぞれ分割して複数回にわたって処理する構成としても良い。さらに、入力レジスタ12及び出力レジスタ18を1つのメモリとして実装することも可能である。この場合、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16に格納されるピックアップテーブルには、同一メモリ内におけるアドレスが格納されることになる。なお、入力レジスタ12のアドレスまたは出力レジスタ18のアドレスをオフセットしておくことにより、ピックアップテーブルに格納されるアドレスを小さくすることができる。   In the above embodiment, the capacity of the memory areas 22a and 22b shown in FIG. 4 and the size of the data scr_1,..., Scr_n, dst_1, ..., dst_n stored in the memory areas 22a and 22b are arbitrarily changed. Is possible. Also, the data scr_1,..., Scr_n stored in the memory area 22a may be divided and processed multiple times. Furthermore, the input register 12 and the output register 18 can be implemented as one memory. In this case, the pickup tables stored in the input pickup table unit 13 and the output pickup table unit 16 store addresses in the same memory. Note that the address stored in the pickup table can be reduced by offsetting the address of the input register 12 or the address of the output register 18.

ここで、上記実施の形態におけるデータ処理装置1のより具体的な例として、本発明を、YUVフォーマットの映像信号をRGBフォーマットに変換する映像変換処理に適用した場合について、実施例として説明する。   Here, as a more specific example of the data processing apparatus 1 in the above embodiment, a case where the present invention is applied to video conversion processing for converting a video signal in YUV format into RGB format will be described as an example.

図6は、本発明を適用したデータ処理装置1において、YUV映像信号をRGB信号に変換する映像変換処理を実行する場合を示す図である。なお、図6において、CPU21及びメモリ22については図示を省略する。   FIG. 6 is a diagram showing a case where the data conversion apparatus 1 to which the present invention is applied executes a video conversion process for converting a YUV video signal into an RGB signal. In FIG. 6, the CPU 21 and the memory 22 are not shown.

図6に示す例において、データ処理装置1は、YUV444(YUV4:4:4)フォーマットのデータをRGBフォーマットのデータに変換する処理を実行する。
この処理では、YUV444フォーマットのY(輝度信号)、U(輝度信号と赤色成分の差)、V(輝度信号と青色成分の差)の3つのデータをもとに、1ピクセル分のRGBデータを生成する。
演算処理部15は、Y,U,Vの3つのデータをもとに演算処理を行って、R,G,Bのデータを生成するYUV−RGB変換処理部15d、入力インタフェース15e、及び、出力インタフェース15fを備える。
In the example shown in FIG. 6, the data processing apparatus 1 executes processing for converting data in YUV444 (YUV4: 4: 4) format into data in RGB format.
In this process, RGB data for one pixel is obtained based on three data of Y (luminance signal), U (difference between luminance signal and red component), and V (difference between luminance signal and blue component) in the YUV444 format. Generate.
The arithmetic processing unit 15 performs arithmetic processing based on the three data of Y, U, and V to generate R, G, and B data, an YUV-RGB conversion processing unit 15d, an input interface 15e, and an output An interface 15f is provided.

本実施例1では、12個のY,U,Vデータから、4ピクセル分のRGBデータを生成する処理を例にとって、その手順について説明する。
入力レジスタ12には、12個のY,U,Vデータが、YUVフォーマットに従って、U,V,Yの順に格納されている。一方、演算処理部15の入力インタフェース15eの入力フォーマットは、Y,U,Vの順にデータが並んだものである。
In the first embodiment, a procedure for generating RGB data for four pixels from twelve pieces of Y, U, and V data will be described as an example.
The input register 12 stores 12 pieces of Y, U, V data in the order of U, V, Y according to the YUV format. On the other hand, the input format of the input interface 15e of the arithmetic processing unit 15 is such that data is arranged in the order of Y, U, and V.

手順1.シーケンス制御部10により入力用DMA装置11を制御して、処理対象データを格納したメモリ22(図示略)から12個の処理対象データを入力レジスタ12に転送する。
手順2.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13bにおけるTBL0を参照し、最初に処理されるY,U,Vの各処理対象データのアドレスS1,S0,S2を取得し、このアドレスに従って入力レジスタ12内の処理対象データY0,U0,V0を読み出し、入力インタフェース15eに入力する。
手順3.YUV−RGB変換処理部15dにより、YUV→RGB変換処理を実行し、出力データR0,G0,B0を生成して出力インタフェース15fから出力する。
手順4.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16bにおけるTBL0を参照し、最初に出力されるR,G,Bの各出力データのアドレスD0,D1,D2を取得し、このアドレスに従って、出力インタフェース15fから出力された出力データR0,G0,B0を出力レジスタ18に格納する。
Procedure 1. The sequence control unit 10 controls the input DMA device 11 to transfer 12 pieces of processing target data from the memory 22 (not shown) storing the processing target data to the input register 12.
Procedure 2. The format conversion unit 14 refers to the TBL0 in the pickup table 13b in the input pickup table unit 13 to obtain the addresses S1, S0, and S2 of each processing target data of Y, U, and V to be processed first. Data to be processed Y0, U0, V0 in the input register 12 is read according to the address and input to the input interface 15e.
Procedure 3. The YUV-RGB conversion processing unit 15d executes YUV → RGB conversion processing, generates output data R0, G0, and B0 and outputs them from the output interface 15f.
Procedure 4. The format conversion unit 17 refers to the TBL0 in the pickup table 16b in the output pickup table unit 16 to obtain the addresses D0, D1, and D2 of the R, G, and B output data that are output first, and this address Accordingly, the output data R0, G0, B0 output from the output interface 15f is stored in the output register 18.

手順5.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13bにおけるTBL1を参照し、処理対象データのアドレスS4,S3,S5を取得し、このアドレスに従って入力レジスタ12内の処理対象データY1,U1,V1を読み出し、入力インタフェース15eに入力する。
手順6.YUV−RGB変換処理部15dにより、YUV→RGB変換処理を実行し、出力データR1,G1,B1を生成して出力インタフェース15fから出力する。
手順7.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16bにおけるTBL1を参照し、出力データのアドレスD3,D4,D5を取得し、このアドレスに従って、出力インタフェース15fから出力された出力データR1,G1,B1を出力レジスタ18に格納する。
Procedure 5. The format conversion unit 14 refers to the TBL1 in the pickup table 13b in the input pickup table unit 13 and acquires the addresses S4, S3, and S5 of the processing target data, and the processing target data Y1, in the input register 12 according to this address U1 and V1 are read out and input to the input interface 15e.
Procedure 6. The YUV-RGB conversion processing unit 15d executes YUV → RGB conversion processing, generates output data R1, G1, and B1 and outputs them from the output interface 15f.
Step 7. The format conversion unit 17 refers to the TBL1 in the pickup table 16b in the output pickup table unit 16 to obtain output data addresses D3, D4, and D5, and the output data R1 output from the output interface 15f according to this address. , G1, B1 are stored in the output register 18.

手順8.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13bにおけるTBL2を参照し、処理対象データのアドレスS7,S6,S8を取得して、このアドレスに従って入力レジスタ12内の処理対象データY2,U2,V2を読み出し、入力インタフェース15eに入力する。
手順9.YUV−RGB変換処理部15dにより、YUV→RGB変換処理を実行し、出力データR2,G2,B2を生成して出力インタフェース15fから出力する。
手順10.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16bにおけるTBL2を参照し、出力データのアドレスD6,D7,D8を取得して、このアドレスに従って、出力インタフェース15fから出力された出力データR2,G2,B2を出力レジスタ18に格納する。
Procedure 8. The format conversion unit 14 refers to the TBL2 in the pickup table 13b in the input pickup table unit 13, acquires the addresses S7, S6, and S8 of the processing target data, and processes the processing target data Y2 in the input register 12 according to this address. , U2, V2 are read out and input to the input interface 15e.
Procedure 9. The YUV-RGB conversion processing unit 15d executes YUV → RGB conversion processing, generates output data R2, G2, and B2 and outputs them from the output interface 15f.
Procedure 10. The format conversion unit 17 refers to the TBL2 in the pickup table 16b in the output pickup table unit 16, acquires the output data addresses D6, D7, and D8, and outputs the output data output from the output interface 15f according to the addresses. R2, G2, and B2 are stored in the output register 18.

手順11.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13bにおけるTBL3を参照し、処理対象データのアドレスS10,S9,S11を取得して、このアドレスに従って入力レジスタ12内の処理対象データY3,U3,V3を読み出し、入力インタフェース15eに入力する。
手順12.YUV−RGB変換処理部15dによりYUV→RGB変換処理を実行し、出力データR3,G3,B3を生成して出力インタフェース15fから出力する。
手順13.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16bにおけるTBL3を参照し、出力データのアドレスD9,D10,D11を取得して、このアドレスに従って、出力インタフェース15fから出力された出力データR3,G3,B3を出力レジスタ18に格納する。
Procedure 11. The format conversion unit 14 refers to the TBL3 in the pickup table 13b in the input pickup table unit 13 to obtain the addresses S10, S9, and S11 of the processing target data, and the processing target data Y3 in the input register 12 according to this address. , U3, V3 are read out and input to the input interface 15e.
Procedure 12. YUV-RGB conversion processing is executed by the YUV-RGB conversion processing unit 15d, and output data R3, G3, B3 are generated and output from the output interface 15f.
Procedure 13. The format conversion unit 17 refers to the TBL3 in the pickup table 16b in the output pickup table unit 16 to obtain the output data addresses D9, D10, D11, and the output data output from the output interface 15f according to this address R3, G3, and B3 are stored in the output register 18.

手順14.シーケンス制御部10の制御により、出力レジスタ18に格納された出力データを出力用DMA装置19によってメモリ22(図示略)にDMA転送する。
手順15.手順1〜14の処理を、メモリ22(図示略)内の全ての処理対象データが処理されるまで繰り返し実行する。
Procedure 14. Under the control of the sequence control unit 10, the output data stored in the output register 18 is DMA-transferred to the memory 22 (not shown) by the output DMA device 19.
Procedure 15. The processes of steps 1 to 14 are repeatedly executed until all the processing target data in the memory 22 (not shown) is processed.

以上のように、本実施例1で、フォーマット変換部14は、U,Y,Vの順にデータが並ぶYUVフォーマットの処理対象データを、Y,U,Vの順にデータが並ぶフォーマットに変換して演算処理部15に入力するので、YUVフォーマットのデータを高速に処理し、RGBフォーマットの映像データを得ることができる。   As described above, in the first embodiment, the format conversion unit 14 converts the processing target data in the YUV format in which data is arranged in the order of U, Y, and V into a format in which the data is arranged in the order of Y, U, and V. Since the data is input to the arithmetic processing unit 15, YUV format data can be processed at high speed, and RGB format video data can be obtained.

また、YUVフォーマットにおいてU,Y,Vの順に並ぶ処理対象データを、フォーマット変換部14によって、入力インタフェース15eの入力フォーマットであるY,U,Vの順に並べ替えるので、予め、全ての処理対象データを変換する等の処理が不要である。従って、入力用DMA装置11は、メモリ22(図示略)から入力レジスタ12へ、YUVフォーマットのデータをそのまま転送すれば良い。これにより、DMA転送の速度を損なうことなく、データを処理できる。   Further, since the processing target data arranged in the order of U, Y, V in the YUV format is rearranged in the order of Y, U, V, which is the input format of the input interface 15e, by the format conversion unit 14, all the processing target data is preliminarily arranged. It is not necessary to convert the data. Therefore, the input DMA device 11 may transfer the data in the YUV format as it is from the memory 22 (not shown) to the input register 12. Thereby, data can be processed without impairing the DMA transfer speed.

図7は、本発明を適用したデータ処理装置1において、YUV映像信号をRGB信号に変換する映像変換処理を実行する場合を示す図であり、YUV422フォーマットのデータをRGBフォーマットのデータに変換する処理を示す。なお、図7において、CPU21及びメモリ22については図示を省略する。   FIG. 7 is a diagram showing a case where a video conversion process for converting a YUV video signal into an RGB signal is executed in the data processing apparatus 1 to which the present invention is applied, and a process for converting data in the YUV422 format into RGB format data. Indicates. In FIG. 7, the CPU 21 and the memory 22 are not shown.

YUV422(YUV4:2:2)フォーマットのデータをRGBフォーマットに変換する場合、Y×2,U×1,V×1の4個のデータから2ピクセルのRGBデータを生成する。すなわち、一つのUデータ及びVデータを用いて1ピクセルのRGBデータを生成する処理を2回実行するので、Uデータ及びVデータは、それぞれ2回利用されることになる。   When converting data in YUV422 (YUV4: 2: 2) format to RGB format, RGB data of 2 pixels is generated from four data of Y × 2, U × 1, and V × 1. That is, the process of generating RGB data of one pixel using one U data and V data is executed twice, so that the U data and V data are used twice.

本実施例2では、8個のY,U,Vデータから、4ピクセル分のRGBデータを生成する処理を例にとって、その手順について説明する。   In the second embodiment, a procedure for generating RGB data for four pixels from eight pieces of Y, U, and V data will be described as an example.

手順1.シーケンス制御部10により入力用DMA装置11を制御して、処理対象データを格納したメモリ22(図示略)から8個の処理対象データを入力レジスタ12に転送する。
手順2.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13cにおけるTBL0を参照し、最初に処理されるY,U,Vの各処理対象データのアドレスS1,S0,S2を取得し、このアドレスに従って入力レジスタ12内の処理対象データY0,U0,V0を読み出し、入力インタフェース15eに入力する。
手順3.YUV−RGB変換処理部15dにより、YUV→RGB変換処理を実行し、出力データR0,G0,B0を生成して出力インタフェース15fから出力する。
手順4.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16cにおけるTBL0を参照し、最初に出力されるR,G,Bの各出力データのアドレスD0,D1,D2を取得し、このアドレスに従って、出力インタフェース15fから出力された出力データR0,G0,B0を出力レジスタ18に格納する。
Procedure 1. The sequence control unit 10 controls the input DMA device 11 to transfer eight processing target data from the memory 22 (not shown) storing the processing target data to the input register 12.
Procedure 2. The format conversion unit 14 refers to the TBL0 in the pickup table 13c in the input pickup table unit 13 to obtain the addresses S1, S0, and S2 of each processing target data of Y, U, and V to be processed first. Data to be processed Y0, U0, V0 in the input register 12 is read according to the address and input to the input interface 15e.
Procedure 3. The YUV-RGB conversion processing unit 15d executes YUV → RGB conversion processing, generates output data R0, G0, and B0 and outputs them from the output interface 15f.
Procedure 4. The format conversion unit 17 refers to the TBL0 in the pickup table 16c in the output pickup table unit 16 to obtain the addresses D0, D1, and D2 of the R, G, and B output data that are output first, and this address Accordingly, the output data R0, G0, B0 output from the output interface 15f is stored in the output register 18.

手順5.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13cにおけるTBL1を参照し、処理対象データのアドレスS3,S0,S2を取得し、このアドレスに従って入力レジスタ12内の処理対象データY1,U0,V0を読み出して、入力インタフェース15eに入力する。
手順6.YUV−RGB変換処理部15dにより、YUV→RGB変換処理を実行し、出力データR1,G1,B1を生成して出力インタフェース15fから出力する。
手順7.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16cにおけるTBL1を参照し、出力データのアドレスD3,D4,D5を取得し、このアドレスに従って、出力インタフェース15fから出力された出力データR1,G1,B1を出力レジスタ18に格納する。
Procedure 5. The format conversion unit 14 refers to the TBL1 in the pickup table 13c in the input pickup table unit 13 to obtain the addresses S3, S0, and S2 of the processing target data, and the processing target data Y1, in the input register 12 according to this address U0 and V0 are read out and input to the input interface 15e.
Procedure 6. The YUV-RGB conversion processing unit 15d executes YUV → RGB conversion processing, generates output data R1, G1, and B1 and outputs them from the output interface 15f.
Step 7. The format conversion unit 17 refers to the TBL1 in the pickup table 16c in the output pickup table unit 16 to obtain output data addresses D3, D4, and D5, and the output data R1 output from the output interface 15f according to this address. , G1, B1 are stored in the output register 18.

手順8.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13cにおけるTBL2を参照し、処理対象データのアドレスS5,S4.S6を取得して、このアドレスに従って入力レジスタ12内の処理対象データY2,U2,V2を読み出し、入力インタフェース15eに入力する。
手順9.YUV−RGB変換処理部15dにより、YUV→RGB変換処理を実行し、出力データR2,G2,B2を生成して出力インタフェース15fから出力する。
手順10.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16cにおけるTBL2を参照し、出力データのアドレスD6,D7,D8を取得して、このアドレスに従って、出力インタフェース15fから出力された出力データR2,G2,B2を出力レジスタ18に格納する。
Procedure 8. The format conversion unit 14 refers to the TBL2 in the pickup table 13c in the input pickup table unit 13, and addresses S5, S4. S6 is acquired, and the processing target data Y2, U2, and V2 in the input register 12 are read according to this address and input to the input interface 15e.
Procedure 9. The YUV-RGB conversion processing unit 15d executes YUV → RGB conversion processing, generates output data R2, G2, and B2 and outputs them from the output interface 15f.
Procedure 10. The format conversion unit 17 refers to the TBL2 in the pickup table 16c in the output pickup table unit 16, acquires the output data addresses D6, D7, and D8, and outputs the output data output from the output interface 15f according to the addresses. R2, G2, and B2 are stored in the output register 18.

手順11.フォーマット変換部14により、入力用ピックアップテーブル部13内のピックアップテーブル13cにおけるTBL3を参照し、処理対象データのアドレスS7,S4,S6を取得して、このアドレスに従って入力レジスタ12内の処理対象データY3,U2,V2を読み出し、入力インタフェース15eに入力する。
手順12.YUV−RGB変換処理部15dによりYUV→RGB変換処理を実行し、出力データR3,G3,B3を生成して出力インタフェース15fから出力する。
手順13.フォーマット変換部17により、出力用ピックアップテーブル部16内のピックアップテーブル16cにおけるTBL3を参照し、出力データのアドレスD9,D10,D11を取得して、このアドレスに従って、出力インタフェース15fから出力された出力データR3,G3,B3を出力レジスタ18に格納する。
Procedure 11. The format conversion unit 14 refers to the TBL3 in the pickup table 13c in the input pickup table unit 13 to obtain the addresses S7, S4, and S6 of the processing target data, and the processing target data Y3 in the input register 12 according to this address , U2, V2 are read out and input to the input interface 15e.
Procedure 12. YUV-RGB conversion processing is executed by the YUV-RGB conversion processing unit 15d, and output data R3, G3, B3 are generated and output from the output interface 15f.
Procedure 13. The format conversion unit 17 refers to the TBL3 in the pickup table 16c in the output pickup table unit 16, acquires the output data addresses D9, D10, and D11, and outputs the output data output from the output interface 15f according to the addresses. R3, G3, and B3 are stored in the output register 18.

手順14.シーケンス制御部10の制御により、出力レジスタ18に格納された出力データを出力用DMA装置19によってメモリ22(図示略)にDMA転送する。
手順15.手順1〜14の処理を、メモリ22(図示略)内の全ての処理対象データが処理されるまで繰り返し実行する。
Procedure 14. Under the control of the sequence control unit 10, the output data stored in the output register 18 is DMA-transferred to the memory 22 (not shown) by the output DMA device 19.
Procedure 15. The processes of steps 1 to 14 are repeatedly executed until all the processing target data in the memory 22 (not shown) is processed.

以上説明したように、本実施例2のデータ処理装置1においては、ピックアップテーブル13cを適宜設定することで、入力レジスタ12に格納された8個のデータを、3個ずつ読み出して演算処理部15に入力し、4回の処理を行うことができる。すなわち、上記の手順1〜14においては、入力レジスタ12内の処理対象データU0,U2,Y0,Y2は、それぞれ2回ずつ読み出されて入力インタフェース15eに入力される。
このように、データ処理装置1によれば、1個のデータを複数回の処理において用いる場合に、予めデータをコピーしてデータの数を揃えるといった処理を必要としないので、様々なフォーマットのデータを効率よく高速に処理できる。
さらに、入力レジスタ12内の1個のデータを複数回読み出す場合の処理は、ピックアップテーブルの内容が異なるだけで、入力レジスタ12内のデータを1回ずつ読み出す処理と全く同様である。従って、処理速度に全く影響を与えることなく、データ量を圧縮できる。
As described above, in the data processing apparatus 1 according to the second embodiment, by appropriately setting the pickup table 13c, the eight data stored in the input register 12 are read out three by three, and the arithmetic processing unit 15 Can be processed four times. That is, in the above procedures 1 to 14, the processing target data U0, U2, Y0, Y2 in the input register 12 are read twice and input to the input interface 15e.
As described above, according to the data processing apparatus 1, when one piece of data is used in a plurality of processes, it is not necessary to perform a process of copying data in advance and aligning the number of data. Can be processed efficiently and at high speed.
Furthermore, the process for reading a single data in the input register 12 a plurality of times is exactly the same as the process for reading the data in the input register 12 once, only the contents of the pickup table are different. Therefore, the amount of data can be compressed without affecting the processing speed at all.

なお、上記実施例1及び2においては、4ピクセルのRGBデータを生成する場合について説明したが、本発明はこれに限定されるものではなく、1処理単位の設定はハードウェアの仕様等に基づいて適宜変更可能である。また、入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16を一体として実装することも可能であり、入力レジスタ12に格納されるデータのサイズ等のその他の具体的な細部構成についても、任意に変更可能であることは勿論である。   In the first and second embodiments, the case of generating RGB data of 4 pixels has been described. However, the present invention is not limited to this, and the setting of one processing unit is based on the hardware specifications and the like. Can be changed as appropriate. Further, the input pickup table unit 13 and the output pickup table unit 16 can be mounted integrally, and other specific details such as the size of data stored in the input register 12 can be arbitrarily set. Of course, it can be changed.

本発明の実施の形態におけるデータ処理装置1の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the data processing apparatus 1 in embodiment of this invention. 図1に示す入力用ピックアップテーブル部13に格納されるピックアップテーブルの構成例を模式的に示す図である。It is a figure which shows typically the structural example of the pickup table stored in the input pickup table part 13 shown in FIG. 図1に示すデータ処理装置1において、演算処理付DMA方式によりデータを処理する動作を示すフローチャートである。2 is a flowchart showing an operation of processing data by a DMA system with arithmetic processing in the data processing apparatus 1 shown in FIG. 図1に示すデータ処理装置1によってメモリ22に格納された複数のデータを処理する様子を示す図である。It is a figure which shows a mode that several data stored in the memory 22 are processed by the data processor 1 shown in FIG. 図1に示す入力用ピックアップテーブル部13及び出力用ピックアップテーブル部16に格納されるピックアップテーブルの具体的な構成例と、ピックアップテーブルに基づく処理を示す説明図である。It is explanatory drawing which shows the specific structural example of the pick-up table stored in the input pick-up table part 13 and the output pick-up table part 16 shown in FIG. 1, and the process based on a pick-up table. 本発明の実施例として、図1に示すデータ処理装置1において、YUV映像信号をRGB信号に変換する映像変換処理を実行する場合を示す図である。FIG. 2 is a diagram showing a case where a video conversion process for converting a YUV video signal into an RGB signal is executed in the data processing apparatus 1 shown in FIG. 1 as an embodiment of the present invention. 本発明の実施例として、図1に示すデータ処理装置1において、YUV映像信号をRGB信号に変換する映像変換処理を実行する場合を示す図である。FIG. 2 is a diagram showing a case where a video conversion process for converting a YUV video signal into an RGB signal is executed in the data processing apparatus 1 shown in FIG. 1 as an embodiment of the present invention. 従来の演算処理付DMA方式の例を示す図である。It is a figure which shows the example of the conventional DMA system with arithmetic processing. 従来の演算処理付DMA方式の例を示す図である。It is a figure which shows the example of the conventional DMA system with arithmetic processing.

符号の説明Explanation of symbols

1 データ処理装置
10 シーケンス制御部
11 入力用DMA装置
12 入力レジスタ
13 入力用ピックアップテーブル部
14 フォーマット変換部
15 演算処理部
16 出力用ピックアップテーブル部
17 フォーマット変換部
18 出力レジスタ
19 出力用DMA装置
20 バス
21 CPU
22 メモリ
DESCRIPTION OF SYMBOLS 1 Data processing apparatus 10 Sequence control part 11 Input DMA apparatus 12 Input register 13 Input pickup table part 14 Format conversion part 15 Arithmetic processing part 16 Output pickup table part 17 Format conversion part 18 Output register 19 Output DMA apparatus 20 Bus 21 CPU
22 memory

Claims (5)

処理対象データを演算処理する演算処理手段と、
メモリ内の処理対象データをDMA転送する処理対象データ転送手段と、
前記処理対象データ転送手段により転送される処理対象データを一時的に格納する第1の記憶手段と、
前記第1の記憶手段から、少なくとも前記演算処理手段による1回の処理に必要な処理対象データを読み出し、読み出した処理対象データを前記演算処理手段の入力フォーマットに適合する状態で前記演算処理手段へ入力する入力フォーマット変換手段と、
を備えることを特徴とするデータ処理装置。
Arithmetic processing means for arithmetically processing the processing target data;
Processing target data transfer means for DMA transfer of processing target data in the memory;
First storage means for temporarily storing processing target data transferred by the processing target data transfer means;
The processing target data required for at least one process by the arithmetic processing unit is read from the first storage unit, and the read processing target data is transferred to the arithmetic processing unit in a state suitable for the input format of the arithmetic processing unit. Input format conversion means for input;
A data processing apparatus comprising:
前記第1の記憶手段に記憶された処理対象データの配列順序を定める設定テーブルを保持する設定テーブル保持手段をさらに備え、
前記入力フォーマット変換手段は、前記第1の記憶手段に記憶された処理対象データを、前記設定テーブル保持手段により保持される設定テーブルに定められた配列順序に従って並べ、前記演算処理手段へ入力すること、
を特徴とする請求項1記載のデータ処理装置。
A setting table holding unit for holding a setting table for determining an arrangement order of the processing target data stored in the first storage unit;
The input format conversion means arranges the processing target data stored in the first storage means in accordance with an arrangement order defined in a setting table held by the setting table holding means, and inputs the data to the arithmetic processing means. ,
The data processing apparatus according to claim 1.
前記設定テーブル保持手段に保持される設定テーブルは、前記第1の記憶手段に記憶された複数のデータのうち、特定の複数のデータと、これら特定の複数のデータの配列順序とを定めるものであって、
前記入力フォーマット変換手段は、前記設定テーブル保持手段に保持される設定テーブルを参照し、当該設定テーブルに定められた特定の複数のデータを前記第1の記憶手段から読み出して、当該設定テーブルに定められた配列順序に従って並べて前記演算処理手段へ入力することを特徴とする請求項2記載のデータ処理装置。
The setting table held in the setting table holding means defines a plurality of specific data among a plurality of data stored in the first storage means, and an arrangement order of the plurality of specific data. There,
The input format conversion means refers to a setting table held in the setting table holding means, reads a plurality of specific data set in the setting table from the first storage means, and sets the setting table in the setting table. 3. The data processing apparatus according to claim 2, wherein the data processing devices are arranged in accordance with the arranged order and input to the arithmetic processing means.
前記演算処理手段から出力される出力データを、所定のフォーマットに従って並べる出力フォーマット変換手段と、
前記出力フォーマット変換手段により並べられた出力データを一時的に格納する第2の記憶手段と、
前記第2の記憶手段に記憶された出力データを前記メモリにDMA転送する出力データ転送手段と、
をさらに備えることを特徴とする請求項1から3のいずれかに記載のデータ処理装置。
Output format conversion means for arranging the output data output from the arithmetic processing means according to a predetermined format;
Second storage means for temporarily storing the output data arranged by the output format conversion means;
Output data transfer means for DMA-transferring the output data stored in the second storage means to the memory;
The data processing apparatus according to claim 1, further comprising:
メモリ内の処理対象データをDMA転送するとともに、演算処理手段によって演算処理するデータ処理方法であって、
前記メモリから転送される処理対象データを第1の記憶手段に一時的に格納し、
前記第1の記憶手段から、少なくとも前記演算処理手段による1回の処理に必要な処理対象データを読み出し、読み出した処理対象データを前記演算処理手段の入力フォーマットに適合する状態で前記演算処理手段へ入力すること、
を特徴とするデータ処理方法。
A data processing method for performing DMA transfer of processing target data in a memory and performing arithmetic processing by arithmetic processing means,
Temporarily storing the processing target data transferred from the memory in the first storage means;
The processing target data required for at least one process by the arithmetic processing unit is read from the first storage unit, and the read processing target data is transferred to the arithmetic processing unit in a state suitable for the input format of the arithmetic processing unit. Typing,
A data processing method characterized by the above.
JP2004116739A 2004-04-12 2004-04-12 Data processor and data processing method Pending JP2005301665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004116739A JP2005301665A (en) 2004-04-12 2004-04-12 Data processor and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004116739A JP2005301665A (en) 2004-04-12 2004-04-12 Data processor and data processing method

Publications (1)

Publication Number Publication Date
JP2005301665A true JP2005301665A (en) 2005-10-27

Family

ID=35333117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004116739A Pending JP2005301665A (en) 2004-04-12 2004-04-12 Data processor and data processing method

Country Status (1)

Country Link
JP (1) JP2005301665A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8433829B2 (en) 2009-12-03 2013-04-30 Samsung Electronics Co., Ltd. Direct memory access controller and method of operating the same
KR20160115833A (en) * 2015-03-27 2016-10-06 인피니언 테크놀로지스 아게 Method and device for processing radar signals
US10223304B2 (en) 2013-11-07 2019-03-05 Renesas Electronics Corporation Semiconductor device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8433829B2 (en) 2009-12-03 2013-04-30 Samsung Electronics Co., Ltd. Direct memory access controller and method of operating the same
US10223304B2 (en) 2013-11-07 2019-03-05 Renesas Electronics Corporation Semiconductor device
KR20160115833A (en) * 2015-03-27 2016-10-06 인피니언 테크놀로지스 아게 Method and device for processing radar signals
JP2016188859A (en) * 2015-03-27 2016-11-04 インフィネオン テクノロジーズ アクチエンゲゼルシャフトInfineon Technologies AG Method and device for processing radar signals
KR101906662B1 (en) * 2015-03-27 2018-10-10 인피니언 테크놀로지스 아게 Method and device for processing radar signals
US10852409B2 (en) 2015-03-27 2020-12-01 Infineon Technologies Ag Method and device for processing radar signals

Similar Documents

Publication Publication Date Title
US5191647A (en) Image data processing system
JP2005301665A (en) Data processor and data processing method
JP4442905B2 (en) Image data processing method
JP3971559B2 (en) Parallel processor and image processing apparatus using the same
JP3305406B2 (en) Program-controlled processor
JP4294190B2 (en) Parallel processor and image processing apparatus using the same
JP2007109253A (en) Parallel processor
JP2752902B2 (en) Vector processing equipment
JP2526644B2 (en) Data processing device
US20080158238A1 (en) Format conversion apparatus from band interleave format to band separate format
JPH01113806A (en) Sequence controller
JP2819661B2 (en) Discrete cosine transform / scalar quantization transform circuit
JP3331682B2 (en) Arithmetic unit
JPH1040165A (en) Data read method and read buffer
US8073992B2 (en) Data transfer device and data transfer method
JPH08316836A (en) Signal processing circuit
JP2007323491A (en) Direct memory access control device and control method
US7096346B2 (en) Microprocessor having instructions for exchanging values between two registers or two memory locations
JP3182497B2 (en) Arithmetic processing unit and instruction conversion unit
JPH07129398A (en) Microprocessor
JPH06208614A (en) Image processor
JPH0490622A (en) Bit order conversion device
JPS63147247A (en) Converting device for data format
JP2000020455A (en) Data transfer device
JPH10315548A (en) Apparatus and method for processing data and, printing apparatus