Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6567476B2 - Data processing device - Google Patents
[go: Go Back, main page]

JP6567476B2 - Data processing device - Google Patents

Data processing device Download PDF

Info

Publication number
JP6567476B2
JP6567476B2 JP2016157931A JP2016157931A JP6567476B2 JP 6567476 B2 JP6567476 B2 JP 6567476B2 JP 2016157931 A JP2016157931 A JP 2016157931A JP 2016157931 A JP2016157931 A JP 2016157931A JP 6567476 B2 JP6567476 B2 JP 6567476B2
Authority
JP
Japan
Prior art keywords
data
memory
unit
dma
processing
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.)
Active
Application number
JP2016157931A
Other languages
Japanese (ja)
Other versions
JP2018026004A (en
Inventor
隆幸 木村
隆幸 木村
伴則 飯田
伴則 飯田
隆太 江▲崎▼
隆太 江▲崎▼
Original Assignee
株式会社ワイ・デー・ケー
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 株式会社ワイ・デー・ケー filed Critical 株式会社ワイ・デー・ケー
Priority to JP2016157931A priority Critical patent/JP6567476B2/en
Publication of JP2018026004A publication Critical patent/JP2018026004A/en
Application granted granted Critical
Publication of JP6567476B2 publication Critical patent/JP6567476B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Bus Control (AREA)

Description

本発明は、DMAコントローラおよび通信処理装置を用いた技術に関する。より詳しくは、計算機とネットワークインターフェイスとのデータ転送処理の技術に関する。
The present invention relates to a technique using a DMA controller and a communication processing device. More specifically, the present invention relates to a technique for data transfer processing between a computer and a network interface.

イーサネット(登録商標)に代表されるネットワークでは、ネットワークインターフェイスにおいてネットワーク上を流れるデータ(パケット化される)との送受信については、マイクロプロセッサ(以下、「CPU」と略記する)が実行する。
最も簡単な構成に基づくネットワークインターフェイスとCPUとのデータ転送は、CPUがネットワークインターフェイスに実装されているバッファをCPUのメモリ空間上にマッピングし、CPUからメモリアクセス命令を発行することによって実行される。
In a network typified by Ethernet (registered trademark), a microprocessor (hereinafter abbreviated as “CPU”) executes transmission / reception with data (packetized) flowing over the network at a network interface.
Data transfer between the network interface and the CPU based on the simplest configuration is executed by the CPU mapping a buffer mounted on the network interface on the memory space of the CPU and issuing a memory access command from the CPU.

しかし、大量のパケットデータを送受信しなければならない場合には、メモリアクセス命令の発行およびその実行において、処理時間が増加してしまう。すると、CPUが実行すべきパケット処理の時間を圧迫してしまい、その結果として通信のスループットが低下してしまう、という問題が発生する。   However, when a large amount of packet data must be transmitted and received, processing time increases in issuing and executing a memory access instruction. Then, the packet processing time to be executed by the CPU is compressed, and as a result, the communication throughput is lowered.

通信スループットの低下を防止する方式として、ダイレクトメモリアクセス(DMA)およびそのコントローラを設置し、ネットワークインターフェイスからCPUのメモリへ転送し、データコピーに費やされるCPU負荷を低減させる方法が、一般には採用される。
ここで、ダイレクトメモリアクセス(DMA)とは、CPUを介さずに、メモリとメモリまたはメモリと周辺機器の間でデータを直接転送することをいう。
たとえば特許文献1では、DMAコントローラにプログラマブルシーケンサを利用し、開発効率の短縮等に伴うコスト増大を抑える方法が開示されている。
As a method to prevent a decrease in communication throughput, a method is generally adopted in which a direct memory access (DMA) and its controller are installed, transferred from the network interface to the CPU memory, and the CPU load consumed for data copying is reduced. The
Here, direct memory access (DMA) refers to direct transfer of data between the memory and the memory or the peripheral device without going through the CPU.
For example, Patent Document 1 discloses a method of using a programmable sequencer as a DMA controller to suppress an increase in cost associated with shortening development efficiency.

また、特許文献2では、ネットワークインターフェイスとCPUの間に2種類のデータバスを設け、一方のデータバスにはプロトコル処理をネットワークインターフェイスで行ったデータを、他方のデータバスにはホストコンピュータで実行されるプロトコル処理のデータを送受信できるようにした方式が開示されている。   In Patent Document 2, two types of data buses are provided between the network interface and the CPU. Data obtained by performing protocol processing on the network interface is executed on one data bus, and the other data bus is executed by a host computer. A method is disclosed that enables transmission and reception of protocol processing data.

更に、特許文献3では、開発効率の短縮と通信スループットの向上とを意図したDMAコントローラおよび通信処理装置が開示されている。   Further, Patent Document 3 discloses a DMA controller and a communication processing device intended to shorten development efficiency and improve communication throughput.

図1(フローチャート)および図2(ブロック図)に基づいて、画像データや映像データといった容量の大きなデータを、ネットワークを介して転送する一般的な手順およびハードウェア構成について説明する。
カメラ100にて画像または映像(動画)を撮影し、カメラインタフェースによってその撮影した画像データまたは映像データ(以下、「画像データ」と略記)を画像処理部101へ入力する(S1)。 続いて、画像処理部100で原画像データに画像処理を施し、その処理済みの画像データを通信受信部22へ保存する(S2)。
Based on FIG. 1 (flow chart) and FIG. 2 (block diagram), a general procedure and hardware configuration for transferring large-capacity data such as image data and video data via a network will be described.
An image or video (moving image) is captured by the camera 100, and the captured image data or video data (hereinafter abbreviated as “image data”) is input to the image processing unit 101 by the camera interface (S1). Subsequently, the image processing unit 100 performs image processing on the original image data, and stores the processed image data in the communication receiving unit 22 (S2).

通信受信部22へ保存された画像データをDMAコントローラ部21の制御によって、メモリ部20へバースト転送する(S3)。メモリ部20へ転送された画像データを、DMAコントローラ31の制御によってメモリ部50のTCPペイロードへバースト転送する(S4)。
メモリ部20へ転送された画像データをDMAコントローラ30の制御によって、SUM処理部10へバースト転送する。 SUM処理部10でSUM値を計算し、CPU40はSUM値を得る(S5)。
The image data stored in the communication receiving unit 22 is burst transferred to the memory unit 20 under the control of the DMA controller unit 21 (S3). The image data transferred to the memory unit 20 is burst transferred to the TCP payload of the memory unit 50 under the control of the DMA controller 31 (S4).
The image data transferred to the memory unit 20 is burst transferred to the SUM processing unit 10 under the control of the DMA controller 30. The SUM processing unit 10 calculates the SUM value, and the CPU 40 obtains the SUM value (S5).

CPU40は、SUM値をメモリ部50のTCPヘッダへ格納する(S6)。メモリ部50へ保管されたTCPパケットデータを、DMAコントローラ51の制御によって通信送信部52へバースト転送する(S7)。通信送信部52は、受信したTCPパケットデータをネットワークへ送信する(S8)。
The CPU 40 stores the SUM value in the TCP header of the memory unit 50 (S6). The TCP packet data stored in the memory unit 50 is burst transferred to the communication transmitting unit 52 under the control of the DMA controller 51 (S7). The communication transmission unit 52 transmits the received TCP packet data to the network (S8).

特開平11−41297号公報Japanese Patent Laid-Open No. 11-41297 特開2000−235536号公報JP 2000-235536 A 特開2007−27951号公報JP 2007-27951 A

たとえば、50メガバイト/秒といった転送速度を求められると、図1、2に示したような技術では、達成が困難であった。   For example, if a transfer rate of 50 megabytes / second is required, it is difficult to achieve with the techniques shown in FIGS.

CPUの性能を高めることで、各種の処理速度を向上させ、転送速度を速める、という手法が最も単純であり、多く採用されてきた手法でもある。
しかし、CPU性能の向上が達成される頃には、転送速度の要求も向上してしまうのが常である。たとえば、転送したい画像データの画質向上が求められるからである。
The method of improving various processing speeds and increasing the transfer speed by improving the performance of the CPU is the simplest method and has been widely adopted.
However, when the improvement in CPU performance is achieved, the transfer speed requirement is usually improved. For example, it is required to improve the image quality of image data to be transferred.

本発明が解決すべき課題は、CPU性能の向上とは無関係に、データの転送速度を向上させることができる技術を提供することにある。
The problem to be solved by the present invention is to provide a technique capable of improving the data transfer speed irrespective of the improvement in CPU performance.

本願では、データ転送の際にCPUが処理することでボトルネックとなっている処理手順を分散処理させることで、CPU性能の向上とは無関係にデータの転送速度を向上させることができる技術に係る発明を提供する。   The present application relates to a technique capable of improving the data transfer speed regardless of the improvement in CPU performance by distributing the processing procedure which is a bottleneck by processing by the CPU at the time of data transfer. Provide an invention.

(第一の発明)
第一の発明は、 通信ネットワークを介して送信対象となるデジタルデータをプロトコル処理済みデータへ加工する前に格納する受信データ用メモリ20と、
その受信データ用メモリ20へ格納されたデジタルデータについてのSUM値を算出するデータ処理装置10Aと、
前記の受信データ用メモリ20へ格納されたデジタルデータに対するプロトコル処理を実行するCPU40と、
そのCPU40にてプロトコル処理されたプロトコル処理済みデータ、および前記のデータ処理装置10Aによって算出された前記のSUM値を格納する送信データ用メモリ50と、
を備えたデータ送信装置における前記のデータ処理装置10Aに係る。
前記の受信データ用メモリ20へ格納されたデジタルデータに対してDMA処理を施すDMAリード部11と、
そのDMAリード部11がDMA処理したデジタルデータの送信用のSUM値を計算するSUM計算手段12と、
そのSUM計算手段によって計算されたSUM値を格納するレジスタ部13と、
前記の受信データ用メモリ20へ格納されたデジタルデータを一時的に格納するデータバッファ15と、
そのデータバッファ15へ格納したデジタルデータを前記の送信データ用メモリ50へ転送するDMAライト部14と、
を備える。
そして、前記のDMAリード部11は、前記のSUM計算手段12への前記のデジタルデータの転送を、前記のデジタルデータのデータバッファ15への格納と同時に実行することとしている。
(First invention)
The first invention is a received data memory 20 for storing digital data to be transmitted via a communication network before processing it into protocol-processed data;
A data processing device 10A for calculating a SUM value for the digital data stored in the received data memory 20;
CPU 40 for executing protocol processing on the digital data stored in the received data memory 20;
A transmission data memory 50 for storing the protocol processed data processed by the CPU 40 and the SUM value calculated by the data processing apparatus 10A;
The data processing apparatus 10A according to the data processing apparatus 10A.
A DMA read unit 11 for performing a DMA process on the digital data stored in the received data memory 20 ;
SUM calculation means 12 for calculating a SUM value for transmission of digital data DMA-processed by the DMA read unit 11;
A register unit 13 for storing the SUM value calculated by the SUM calculation means;
A data buffer 15 for temporarily storing digital data stored in the received data memory 20;
A DMA write unit 14 for transferring the digital data stored in the data buffer 15 to the transmission data memory 50 ;
Is provided.
The DMA read unit 11 executes the transfer of the digital data to the SUM calculation unit 12 simultaneously with the storage of the digital data in the data buffer 15.

(用語説明)
送信対象であるデジタルデータとは、代表的には画像データ(静止画、動画)、音声データなど、容量が大きいものが適している。
前記の送信対象となるデジタルデータに対して通信プロトコルに合わせるためのプロトコル処理などを実行してプロトコル加工済みデータとするが、前記のSUM計算手段(12)は、そうしたプロトコル処理手段(CPU40)とは別に備える。
本願に係る「データ処理装置」は、たとえばワンチップ化して既存のデータ送信装置へ組み込むことが可能である。
(Glossary)
As the digital data to be transmitted, data having a large capacity, such as image data (still image, moving image) and audio data, is suitable.
The digital data to be transmitted is subjected to protocol processing or the like for matching with a communication protocol to obtain protocol-processed data. The SUM calculation means (12) includes such protocol processing means (CPU 40) and Prepare separately.
The “data processing apparatus” according to the present application can be integrated into an existing data transmission apparatus, for example, in one chip.

(作用)
そのSUM計算手段(12)によるSUM値の計算のためのデジタルデータを、DMAリード部(11)が受信データ用メモリ(20)から読み込む。読み込まれたデジタルデータに対して、SUM計算手段(12)が送信用のSUM値を計算する。そのSUM計算手段(12)によって計算されたSUM値は、レジスタ部(13)へ格納される。
一方、受信データ用メモリ(20)に格納されたデジタルデータは、SUM値付きデジタルデータへ加工処理するための送信データ用メモリ(50)へ、DMAライト部(14)が転送させる。DMAリード部(11)は、前記の送信データ用メモリ(50)へ転送およびSUM計算を同時に実行させる。
(Function)
The digital data for calculating the SUM value by the SUM calculation means (12) is read from the received data memory (20) by the DMA read unit (11). The SUM calculation means (12) calculates the SUM value for transmission with respect to the read digital data. The SUM value calculated by the SUM calculation means (12) is stored in the register unit (13).
On the other hand, the digital data stored in the reception data memory (20) is transferred by the DMA write unit (14) to the transmission data memory (50) for processing into digital data with a SUM value. The DMA read unit (11) causes the transmission data memory (50) to be transferred and the SUM calculation executed simultaneously.

SUM計算手段(12)によるSUM計算および送信データ用メモリ(50)への送信対象であるデジタルデータの送信処理を同時に実行できるため、トータルで要する処理時間を短縮でき、データ送信速度を向上させることができる。   Since the SUM calculation by the SUM calculation means (12) and the transmission processing of the digital data to be transmitted to the transmission data memory (50) can be executed at the same time, the total processing time can be reduced and the data transmission speed can be improved. Can do.

(第二の発明)
第二の発明は、通信ネットワークを介して送信対象となるデジタルデータをプロトコル処理済みデータへ加工する前に格納する受信データ用メモリ20と、
その受信データ用メモリ20へ格納されたデジタルデータについてのSUM値を算出するデータ処理装置10Bと、
前記の受信データ用メモリ20へ格納されたデジタルデータに対するプロトコル処理を実行するCPU40と、
そのCPU40にてプロトコル処理されたプロトコル処理済みデータ、および前記のデータ処理装置10Bによって算出された前記のSUM値を格納する送信データ用メモリ50と、
を備えたデータ送信装置における前記のデータ処理装置10Bに係る(図6参照)
第一の発明との相違点は、DMAライト部(14)が、レジスタ部(13)へ格納したSUM値をも送信データ用メモリ50へ転送することとしている点である。
(Second invention)
The second invention includes a received data memory 20 for storing digital data to be transmitted via a communication network before processing the data into protocol processed data,
A data processing device 10B for calculating a SUM value for the digital data stored in the received data memory 20,
CPU 40 for executing protocol processing on the digital data stored in the received data memory 20;
A transmission data memory 50 for storing the protocol processed data processed by the CPU 40 and the SUM value calculated by the data processing device 10B;
(Refer to FIG. 6)
It differs from the first invention, DMA write unit (14), also a SUM value stored register unit (13) is a point that is to be transferred to the transmission data memory 50.

(作用)
SUM計算手段(12)によって計算されたSUM値は、DMAライト部(14)が送信データ用メモリ(50)へ転送させる。SUM値付きデジタルデータへ加工するタイミングは、DMAライト部(14)が調整することとなる。
(Function)
The DMA write unit (14) transfers the SUM value calculated by the SUM calculation means (12) to the transmission data memory (50). The timing for processing the digital data with the SUM value is adjusted by the DMA write unit (14).

(第一の発明のバリエーション2)
第一の発明は、以下のように形成することも可能である。
すなわち、前記の受信データ用メモリ(20)から前記のDMAリード部(11)へのデータ転送用のリード用バス(61)と、 前記のDMAライト部(14)から前記の送信データ用メモリ(50)へのデータ転送用のライト用バス(62)と、を備えることとしてもよい。
(Variation 2 of the first invention)
The first invention can also be formed as follows.
That is, a read bus (61) for data transfer from the received data memory (20) to the DMA read unit (11), and a transmission data memory (from the DMA write unit (14)) And a write bus (62) for data transfer to (50).

(作用)
CPUバス(60)とは別に、リード用バス(61)およびライト用バス(62)を備えることによって、処理速度の向上に寄与したり、並列でCPU処理実行に寄与したりする。
(Function)
In addition to the CPU bus (60), the provision of the read bus (61) and the write bus (62) contributes to an improvement in processing speed or contributes to CPU processing execution in parallel.

第一の発明によれば、容量の大きなデジタルデータを送信する場合において、CPUの演算負担を軽減し、送信速度を速められるデータ処理装置を提供することができた。
According to the first aspect of the present invention, it is possible to provide a data processing device that can reduce the calculation burden on the CPU and increase the transmission speed when transmitting large-capacity digital data.

一般(旧システム)におけるカメラ画像をネットワーク経由で送信する場合の手順を示すフローチャートである。It is a flowchart which shows the procedure in the case of transmitting the camera image in a general (old system) via a network. 一般(旧システム)におけるカメラ画像をネットワーク経由で送信するハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions which transmit the camera image in a general (old system) via a network. 一般(旧システム)において、被写体を撮影したカメラの画像がどのように加工されるのかを示す概念図である。In general (old system), it is a conceptual diagram which shows how the image of the camera which image | photographed the to-be-photographed object is processed. 本願に係る実施形態(新システム)におけるカメラ画像をネットワーク経由で送信する場合の手順を示すフローチャートである。It is a flowchart which shows the procedure in the case of transmitting the camera image via a network in embodiment (new system) which concerns on this application. 本願に係る実施形態(新システム)におけるカメラ画像をネットワーク経由で送信するハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions which transmit the camera image via network in embodiment (new system) which concerns on this application. 図5の第一のバリエーションにおけるハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions in the 1st variation of FIG. 図5の第二のバリエーションにおけるハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions in the 2nd variation of FIG. 図5の第三のバリエーションにおけるハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions in the 3rd variation of FIG. 本願に係る実施形態(新システム)において、被写体を撮影したカメラの画像がどのように加工されるのかを示す概念図である。It is a conceptual diagram which shows how the image of the camera which image | photographed the object is processed in embodiment (new system) which concerns on this application. 第二の実施形態において、被写体を撮影したカメラの画像がどのように加工されるのかを示す概念図である。It is a conceptual diagram which shows how the image of the camera which image | photographed the to-be-photographed object is processed in 2nd embodiment.

以下、本発明を実施形態に基づいて説明する。ここで使用する図面は、図4から図10である。また、必要に応じて図3を比較参照する。   Hereinafter, the present invention will be described based on embodiments. The drawings used here are FIGS. 4 to 10. Further, FIG. 3 is referred to and compared as necessary.

(図4および図5)
図4および図5を用いて、本実施形態の構成および処理手順を説明する。
カメラ100で画像または映像(以降、画像と総称)を撮影し、カメラインタフェースによって画像処理部101へ入力する(S11)。
画像処理部101において原画像へ画像処理を施し、その処理済みの画像データを通信受信部22へ保存する(S12)。
通信受信部22へ保存された処理済み画像データをDMAコントローラ部21の制御によって、メモリ部20へバースト転送する(S13)。
(FIGS. 4 and 5)
The configuration and processing procedure of this embodiment will be described with reference to FIGS. 4 and 5.
An image or video (hereinafter referred to as “image”) is taken by the camera 100 and input to the image processing unit 101 via the camera interface (S11).
The image processing unit 101 performs image processing on the original image, and stores the processed image data in the communication receiving unit 22 (S12).
The processed image data stored in the communication receiving unit 22 is burst transferred to the memory unit 20 under the control of the DMA controller unit 21 (S13).

メモリ部20へ転送された画像データをSUM処理内臓DMAコントローラ10(図5では10A)の制御によって、メモリ部50のTCPペイロードへバースト転送する。その転送と同時に、SUM処理内臓DMAコントローラ10へ内蔵されたSUM計算部12でSUM値を計算し、レジスタ部13へ格納する(S14)。   The image data transferred to the memory unit 20 is burst transferred to the TCP payload of the memory unit 50 under the control of the SUM processing built-in DMA controller 10 (10A in FIG. 5). Simultaneously with the transfer, the SUM calculation unit 12 built in the SUM processing built-in DMA controller 10 calculates the SUM value and stores it in the register unit 13 (S14).

CPU40は、レジスタ部13へ格納されたSUM値をメモリ部50のTCPヘッダへ格納する(S15)。
メモリ部50へ保管されたTCPパケットデータをDMAコントローラ51の制御によって、通信送信部52へバースト転送する(S16)。
通信送信部52は、受信したTCPパケットをネットワークへ送信する(S17)。
The CPU 40 stores the SUM value stored in the register unit 13 in the TCP header of the memory unit 50 (S15).
The TCP packet data stored in the memory unit 50 is burst transferred to the communication transmission unit 52 under the control of the DMA controller 51 (S16).
The communication transmitter 52 transmits the received TCP packet to the network (S17).

図5に示すように、SUM処理内臓DMAコントローラ10Aでは、DMAリード部11がメモリ部20(受信データ用メモリ)から読み込んだデータは、SUM計算部12へ送り込むとともに、データバッファとしてのFIFO15にて、DMAライト部14によるメモリ部50(送信データ用メモリ)への書き込みのタイミングを調整している。   As shown in FIG. 5, in the SUM processing built-in DMA controller 10A, the data read from the memory unit 20 (received data memory) by the DMA read unit 11 is sent to the SUM calculation unit 12 and also in the FIFO 15 as a data buffer. The timing of writing to the memory unit 50 (transmission data memory) by the DMA write unit 14 is adjusted.

(図6)
図6は、図5に示した実施形態のバリエーションを示している。
図6に示すSUM処理内臓DMAコントローラ10Bでは、DMAリード部11がメモリ部20(受信データ用メモリ)から読み込んだデータを、SUM計算部12とFIFO15とへ送り込むこととしている。
(Fig. 6)
FIG. 6 shows a variation of the embodiment shown in FIG.
In the SUM processing built-in DMA controller 10 </ b> B shown in FIG. 6, the data read from the memory unit 20 (received data memory) by the DMA read unit 11 is sent to the SUM calculation unit 12 and the FIFO 15.

SUM計算部12にて計算されたSUM値は、レジスタ部13に書き込む。 DMAライト部14は、FIFO15へ蓄積したデータとレジスタ部13に書き込まれたSUM値とをメモリ部50(送信データ用メモリ)へデータ転送する。
The SUM value calculated by the SUM calculation unit 12 is written in the register unit 13. The DMA write unit 14 transfers the data accumulated in the FIFO 15 and the SUM value written in the register unit 13 to the memory unit 50 (transmission data memory).

(図7)
図7もまた、図5に示した実施形態のバリエーションを示している。
図7に示すSUM処理内臓DMAコントローラ10Cでは、CPUバス60とは別に、メモリ部20(受信データ用メモリ)からDMAリード部11へのデータ転送用のリード用バス61を備えている。 また、DMAライト部14からメモリ部50(送信データ用メモリ)へのデータ転送用のライト用バス62と、を備えている。
(Fig. 7)
FIG. 7 also shows a variation of the embodiment shown in FIG.
7 includes a read bus 61 for data transfer from the memory unit 20 (received data memory) to the DMA read unit 11 in addition to the CPU bus 60. Also, a write bus 62 for data transfer from the DMA write unit 14 to the memory unit 50 (transmission data memory) is provided.

FIFO15へ蓄積されたデータは、DMAライト部14によって、ライト用バス62を経由してメモリ部50へ転送される。
一方、レジスタ部13に蓄積されたSUM値は、CPUバス60を経由してメモリ部50へ転送される。
The data accumulated in the FIFO 15 is transferred to the memory unit 50 via the write bus 62 by the DMA write unit 14.
On the other hand, the SUM value stored in the register unit 13 is transferred to the memory unit 50 via the CPU bus 60.

この実施形態では、リード用バス61およびライト用バス62を備えているので、CPUバス60を使わずにデータの授受が実行できることによる処理速度の向上に寄与したり、並列でCPU処理実行に寄与したりする。   In this embodiment, since the read bus 61 and the write bus 62 are provided, it contributes to an improvement in processing speed by being able to exchange data without using the CPU bus 60, or contributes to CPU processing execution in parallel. To do.

(図8)
図8もまた、図5に示した実施形態のバリエーションを示している。
図8に示した実施形態もまた、リード用バス61およびライト用バス62を備えている。
図7との相違点は、レジスタ部13に蓄積されたSUM値が、FIFO15へ蓄積されたデジタルデータとともに、ライト用バス62を経由してメモリ部50へ転送される点である。
(Fig. 8)
FIG. 8 also shows a variation of the embodiment shown in FIG.
The embodiment shown in FIG. 8 also includes a read bus 61 and a write bus 62.
The difference from FIG. 7 is that the SUM value stored in the register unit 13 is transferred to the memory unit 50 via the write bus 62 together with the digital data stored in the FIFO 15.

この実施形態においても、リード用バス61およびライト用バス62を備えているので、CPUバス60を使わずにデータの授受が実行できることによる処理速度の向上に寄与したり、並列でCPU処理実行に寄与したりする。
Also in this embodiment, since the read bus 61 and the write bus 62 are provided, it is possible to contribute to an improvement in processing speed by being able to exchange data without using the CPU bus 60, or to execute CPU processing in parallel. Or contribute.

(図9)
図9に基づいて、被写体を撮影したカメラの画像が、どのようにデータとして加工され、どこへ送信されたり格納されたりするのか、を説明する。 図9において、吹き出しにて表現しているのは、矢印の方向で示す処理を、どのハードウェアが中心となって実行しているか、を示すものである。
必要に応じて、図3と比較すると、本発明(各実施形態)が従来技術とどこが異なるか、明確となる。
(Fig. 9)
Based on FIG. 9, it will be described how an image of a camera that captured a subject is processed as data, and where it is transmitted and stored. In FIG. 9, what is expressed by a balloon indicates which hardware is mainly performing the process indicated by the direction of the arrow.
If necessary, it becomes clear where the present invention (each embodiment) differs from the prior art when compared with FIG.

まず、被写体をカメラ100が撮影すると、アナログである画像(静止画であっても動画であってもよい)は、カメラ100における画像処理部101においてデジタル化され、画像データとなる。 デジタル化された画像データは、メモリ部20(受信データ用メモリ)へ格納される。   First, when the camera 100 captures a subject, an analog image (which may be a still image or a moving image) is digitized by the image processing unit 101 in the camera 100 to become image data. The digitized image data is stored in the memory unit 20 (received data memory).

メモリ部20へ格納された画像データは、通信回線にて送信が可能であるようにプロトコル加工を施す。このプロトコル加工は、CPU40が実行する。
一方、メモリ部20へ格納された画像データを用いて、SUM値を計算するのであるが、その計算処理は、SUM処理内蔵DMAコントローラ10Aが実行する。以下、更に詳しく説明する。
The image data stored in the memory unit 20 is subjected to protocol processing so that it can be transmitted through a communication line. This protocol processing is executed by the CPU 40.
On the other hand, the SUM value is calculated using the image data stored in the memory unit 20, and the calculation process is executed by the DMA controller 10A with a built-in SUM process. This will be described in more detail below.

まず、メモリ部20へ格納された画像データをDMAリード部11へ読み込む。そして、SUM計算部12がSUM値を計算する。計算したSUM値は、レジスタ部13へ格納し、CPU40は、メモリ部50へSUM値を書き込む。   First, the image data stored in the memory unit 20 is read into the DMA read unit 11. Then, the SUM calculation unit 12 calculates the SUM value. The calculated SUM value is stored in the register unit 13, and the CPU 40 writes the SUM value in the memory unit 50.

メモリ部20へ格納された画像データは、FIFO15にも一旦格納する。このFIFO15へのデータ格納と、SUM計算部12への画像データの転送とを、DMAリード部11が同時に実行させるのである。
なお、メモリ部50(送信データ用メモリ)へ送るタイミングをDMAライト部14が制御している。
The image data stored in the memory unit 20 is also temporarily stored in the FIFO 15. The DMA read unit 11 simultaneously executes data storage in the FIFO 15 and image data transfer to the SUM calculation unit 12.
Note that the DMA write unit 14 controls the timing of transmission to the memory unit 50 (transmission data memory).

SUM値とプロトコル加工された画像データとは、メモリ部50へ格納され、CPU40によってSUM値付き画像データとしてパケット化される。そのSUM値付き画像データは、通信送信部52によってネットワークへ送信される。   The SUM value and the image data subjected to protocol processing are stored in the memory unit 50 and packetized as image data with a SUM value by the CPU 40. The image data with the SUM value is transmitted to the network by the communication transmission unit 52.

図9に示した処理手順においては、前述したDMAリード部11が、従来のボトルネック解消に寄与し、画像データ送信の速度向上にも寄与するのである。
図9に示した処理手順は、図3に示した処理手順よりも、円滑にパケット化データを作成できる。図3の処理手順では、図9のような並列処理が存在しない
In the processing procedure shown in FIG. 9, the DMA read unit 11 described above contributes to the resolution of the conventional bottleneck and also contributes to the improvement of the image data transmission speed.
The processing procedure shown in FIG. 9 can create packetized data more smoothly than the processing procedure shown in FIG. In the processing procedure of FIG. 3, there is no parallel processing as shown in FIG .

(図10)
図10では、図9に示した実施形態のバリエーションを示す。
前述した実施形態との相違点は、カメラ100における画像処理部101がデジタル化した画像データをメモリ部20とは別に備えたサブメモリ25にも格納することとした点である。
なお、サブメモリ25は、メモリ部20と物理的に異なる存在とする場合の他、メモリ部20にパーティションを設定することでサブメモリ25を存在させる場合を含む。
(Fig. 10)
FIG. 10 shows a variation of the embodiment shown in FIG.
The difference from the above-described embodiment is that the image data digitized by the image processing unit 101 in the camera 100 is also stored in the sub memory 25 provided separately from the memory unit 20.
The sub memory 25 includes a case where the sub memory 25 exists by setting a partition in the memory unit 20 in addition to a case where the sub memory 25 is physically different from the memory unit 20.

SUM処理内蔵DMAコントローラ10BのDMAリード部11は、サブメモリ25に格納された画像データを用いてSUM計算部12にSUM値を計算させるように制御する。サブメモリ25の存在によって、メモリ部20の負担を軽減できる。
The DMA read unit 11 of the SUM processing built-in DMA controller 10 </ b> B controls the SUM calculation unit 12 to calculate the SUM value using the image data stored in the sub memory 25. The presence of the sub memory 25 can reduce the load on the memory unit 20.

本発明は、情報通信機器の製造業、情報通信サービスのためのコンピュータソフトウェアを作成するソフトウェア産業、などにおいて利用可能性を有する。
The present invention has applicability in the manufacturing industry of information communication equipment, the software industry for creating computer software for information communication services, and the like.

10 ;SUM処理部
10A,10B,10C,10D ;SUM処理内蔵DMAコントローラ
11 ;DMAリード部 12 ;SUM計算部
13 ;レジスタ部 14 ;DMAライト部
15 ;FIFO(バッファメモリ)
20 ;メモリ部(画像データ受信用) 21 ;DMAコントローラ
22 ;画像通信受信部
25 ;サブメモリ
30 ;DMAコントローラ(SUM転送用)
31 ;DMAコントローラ(メモリ転送用)
40 ;CPU
50 ;メモリ部(送信データ格納用) 51 ;DMAコントローラ
52 ;通信送信部
60 ;CPUバス 61 ;リード用バス
62 ;ライト用バス
100 ;カメラ 101 ;画像処理部
DESCRIPTION OF SYMBOLS 10; SUM processing part 10A, 10B, 10C, 10D; SUM processing built-in DMA controller 11; DMA read part 12; SUM calculation part 13; Register part 14; DMA write part 15; FIFO (buffer memory)
20; Memory unit (for receiving image data) 21; DMA controller 22; Image communication receiving unit 25; Sub-memory 30; DMA controller (for SUM transfer)
31; DMA controller (for memory transfer)
40; CPU
50; Memory unit (for storing transmission data) 51; DMA controller 52; Communication transmission unit 60; CPU bus 61; Read bus 62; Write bus 100; Camera 101;

Claims (3)

通信ネットワークを介して送信対象となるデジタルデータをプロトコル処理済みデータへ加工する前に格納する受信データ用メモリと、
その受信データ用メモリへ格納されたデジタルデータについてのSUM値を算出するデータ処理装置と、
前記の受信データ用メモリへ格納されたデジタルデータに対するプロトコル処理を実行してプロトコル処理済みデータへ加工するCPUと、
前記のプロトコル処理済みデータ、および前記のデータ処理装置によって算出された前記のSUM値を格納する送信データ用メモリと、
を備えたデータ送信装置における前記のデータ処理装置であって、
前記の受信データ用メモリへ格納されたデジタルデータに対してDMA処理を施すDMAリード部と、
そのDMAリード部がDMA処理したデジタルデータの送信用のSUM値を計算するSUM計算手段と、
そのSUM計算手段によって計算されたSUM値を格納するレジスタ部と、
前記の受信データ用メモリへ格納されたデジタルデータを一時的に格納するデータバッファと、
そのデータバッファへ格納したデジタルデータを前記の送信データ用メモリへ転送するDMAライト部と、
を備え、
前記のDMAリード部は、前記のSUM計算手段への前記のデジタルデータの転送を、前記のデジタルデータのデータバッファへの格納と同時に実行することとした
データ処理装置。
Received data memory for storing digital data to be transmitted via a communication network before processing into protocol processed data,
A data processing device for calculating a SUM value for the digital data stored in the received data memory;
A CPU that performs protocol processing on the digital data stored in the received data memory and processes the data into protocol-processed data;
A transmission data memory for storing the protocol processed data and the SUM value calculated by the data processing device;
The data processing device in a data transmission device comprising:
A DMA read unit for performing DMA processing on the digital data stored in the received data memory;
SUM calculation means for calculating a SUM value for transmission of digital data DMA-processed by the DMA read unit;
A register unit for storing the SUM value calculated by the SUM calculation means;
A data buffer for temporarily storing the digital data stored in the received data memory;
A DMA write unit for transferring the digital data stored in the data buffer to the transmission data memory;
With
The data read device, wherein the DMA read unit executes the transfer of the digital data to the SUM calculation means simultaneously with the storage of the digital data in a data buffer.
通信ネットワークを介して送信対象となるデジタルデータをプロトコル処理済みデータへ加工する前に格納する受信データ用メモリと、
その受信データ用メモリへ格納されたデジタルデータについてのSUM値を算出するデータ処理装置と、
前記の受信データ用メモリへ格納されたデジタルデータに対するプロトコル処理を実行してプロトコル処理済みデータへ加工するCPUと、
前記のプロトコル処理済みデータ、および前記のデータ処理装置によって算出された前記のSUM値を格納する送信データ用メモリと、
を備えたデータ送信装置における前記のデータ処理装置であって、
前記の受信データ用メモリに格納されたデジタルデータに対してDMA処理を施すDMAリード部と、
そのDMAリード部がDMA処理したデジタルデータの送信用のSUM値を計算するSUM計算手段と、
そのSUM計算手段によって計算されたSUM値を格納するレジスタ部と、
前記の受信データ用メモリへ格納されたデジタルデータを一時的に格納するデータバッファと、
そのデータバッファへ格納したデジタルデータおよび前記のレジスタ部が格納したSUM値を送信データ用メモリへ転送するDMAライト部と、
を備え、
前記のDMAリード部は、前記のSUM計算手段への前記のデジタルデータの転送を、
前記のデジタルデータのデータバッファへの格納と同時に実行することとした
データ処理装置。
Received data memory for storing digital data to be transmitted via a communication network before processing into protocol processed data,
A data processing device for calculating a SUM value for the digital data stored in the received data memory;
A CPU that performs protocol processing on the digital data stored in the received data memory and processes the data into protocol-processed data;
A transmission data memory for storing the protocol processed data and the SUM value calculated by the data processing device;
The data processing device in a data transmission device comprising:
A DMA read unit for performing DMA processing on the digital data stored in the received data memory;
SUM calculation means for calculating a SUM value for transmission of digital data DMA-processed by the DMA read unit;
A register unit for storing the SUM value calculated by the SUM calculation means;
A data buffer for temporarily storing the digital data stored in the received data memory;
A DMA write unit for transferring the digital data stored in the data buffer and the SUM value stored in the register unit to a transmission data memory;
With
The DMA read unit transfers the digital data to the SUM calculation unit.
A data processing apparatus which is executed simultaneously with the storage of the digital data in the data buffer.
前記の受信データ用メモリから前記のDMAリード部へのデータ転送用のリード用バスと、
前記のDMAライト部から前記の送信データ用メモリへのデータ転送用のライト用バスと、
を備えた
請求項1または請求項2のいずれかに記載のデータ処理装置。
A read bus for data transfer from the received data memory to the DMA read unit;
A write bus for data transfer from the DMA write unit to the transmission data memory ;
A data processing apparatus according to claim 1, comprising:
JP2016157931A 2016-08-10 2016-08-10 Data processing device Active JP6567476B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016157931A JP6567476B2 (en) 2016-08-10 2016-08-10 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016157931A JP6567476B2 (en) 2016-08-10 2016-08-10 Data processing device

Publications (2)

Publication Number Publication Date
JP2018026004A JP2018026004A (en) 2018-02-15
JP6567476B2 true JP6567476B2 (en) 2019-08-28

Family

ID=61194133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016157931A Active JP6567476B2 (en) 2016-08-10 2016-08-10 Data processing device

Country Status (1)

Country Link
JP (1) JP6567476B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10161954A (en) * 1996-11-29 1998-06-19 Hitachi Ltd Data communication device
JP3628286B2 (en) * 2001-07-31 2005-03-09 アンリツ株式会社 IP header generator
JP2005204173A (en) * 2004-01-16 2005-07-28 Nec Electronics Corp Apparatus and method for data conversion
JP4845674B2 (en) * 2006-10-26 2011-12-28 キヤノン株式会社 Data processing apparatus and method, communication apparatus, and program
JP6433146B2 (en) * 2014-04-22 2018-12-05 キヤノン株式会社 Information processing apparatus, system, information processing method, computer program

Also Published As

Publication number Publication date
JP2018026004A (en) 2018-02-15

Similar Documents

Publication Publication Date Title
JP6433146B2 (en) Information processing apparatus, system, information processing method, computer program
CN102945215A (en) Information processing apparatus and method, and program
US20180181421A1 (en) Transferring packets between virtual machines via a direct memory access device
US11336297B2 (en) DMA transfer apparatus, method of controlling the same, communication apparatus, method of controlling the same, and non-transitory computer-readable storage medium
TWI753063B (en) Data transfer apparatus and data transfer method
JP5482230B2 (en) COMMUNICATION DEVICE, INFORMATION PROCESSING DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND CONTROL PROGRAM
US8046503B2 (en) DMA controller, system on chip comprising such a DMA controller, method of interchanging data via such a DMA controller
TW200415474A (en) Method and apparatus for intermediate buffer segmentation and reassembly
JP5293283B2 (en) Semiconductor integrated circuit and memory access control method
US20030076822A1 (en) Data and context memory sharing
JP6567476B2 (en) Data processing device
US8842547B2 (en) Communication control apparatus and control method
JP4883520B2 (en) Memory control device and memory control method
JP5440105B2 (en) Image processing system, image processing apparatus, data transfer control method, program, and recording medium
CN117579570A (en) A PCIe-based data transmission method, device and system
JP6938399B2 (en) Communication equipment, communication methods and programs
JP7145607B2 (en) DMA TRANSFER DEVICE, DMA TRANSFER CONTROL METHOD, AND COMMUNICATION DEVICE
JP2004056376A (en) Semiconductor device and data transfer control method
JP2008502977A (en) Interrupt method for bus controller
JP5587530B2 (en) Engine / processor linkage system and linkage method
US7174395B2 (en) Communication interface method and device utilizing direct memory access data transfer
JP6976786B2 (en) Communication device and control method of communication device
JP2015014866A (en) Electronic apparatus, image forming device, and program
JP3606145B2 (en) Data transfer control device and electronic device
JP2005293435A (en) Data transfer device and its setting method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180612

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190328

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190423

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190703

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190718

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190730

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190731

R150 Certificate of patent or registration of utility model

Ref document number: 6567476

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250