JP2008014811A - Data processor and data processing method - Google Patents
Data processor and data processing method Download PDFInfo
- Publication number
- JP2008014811A JP2008014811A JP2006186563A JP2006186563A JP2008014811A JP 2008014811 A JP2008014811 A JP 2008014811A JP 2006186563 A JP2006186563 A JP 2006186563A JP 2006186563 A JP2006186563 A JP 2006186563A JP 2008014811 A JP2008014811 A JP 2008014811A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- read
- data
- measurement data
- sampling data
- 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.)
- Granted
Links
Images
Landscapes
- Recording Measured Values (AREA)
Abstract
Description
本発明は、測定データをメモリに書き込むと共にメモリから読み出した測定データを用いて所定の演算処理を実行するデータ処理装置およびデータ処理方法に関するものである。 The present invention relates to a data processing apparatus and a data processing method for writing measurement data into a memory and executing predetermined arithmetic processing using the measurement data read from the memory.
この種のデータ処理方法に従って測定データをデータ処理するデータ処理装置として、入力信号(入力データ)について所定周期でサンプリングした測定データ(デジタルデータ)の記録、および記録した測定データに基づく信号波形のい表示が可能に構成された2チャンネル波形記録装置(以下、「波形記録装置」ともいう)が特開2002−250745号公報に開示されている。この波形記録装置は、入力信号をA/D変換して(サンプリングして)測定データを生成するA/D変換器と、生成された測定データを記憶するメモリと、メモリに対する測定データの書き込みおよびメモリからの測定データの読み出しを管理するメモリコントローラと、測定データに基づく信号波形を表示器に表示させる表示コントローラと、信号波形を表示させるべき測定データをメモリから読み出して表示コントローラに出力するCPUと、測定データの記録や信号波形の表示を開始すべきタイミングを特定するためのトリガを検出するトリガ検出器とを備えている。 As a data processing apparatus for processing measurement data according to this type of data processing method, recording of measurement data (digital data) sampled at a predetermined cycle with respect to an input signal (input data), and a signal waveform based on the recorded measurement data Japanese Patent Application Laid-Open No. 2002-250745 discloses a two-channel waveform recording apparatus (hereinafter also referred to as “waveform recording apparatus”) configured to be capable of display. This waveform recording apparatus includes an A / D converter that performs A / D conversion (sampling) on an input signal to generate measurement data, a memory that stores the generated measurement data, writing measurement data to the memory, and A memory controller that manages reading of measurement data from the memory; a display controller that displays a signal waveform based on the measurement data on a display; and a CPU that reads the measurement data to be displayed on the signal waveform from the memory and outputs the data to the display controller; And a trigger detector for detecting a trigger for specifying timing for starting measurement data recording and signal waveform display.
この波形記録装置では、測定開始に伴い、まず、A/D変換器が入力信号をA/D変換して測定データを生成する。また、メモリコントローラは、トリガ検出器の制御に従って生成された測定データをメモリに順次書き込む。一方、トリガ検出器は、メモリに書き込まれる測定データを監視して、所定の基準を満たすイベントが生じたと判定したときに、その測定データのメモリアドレス(データ番号)を特定してCPUに報告する。これに応じて、CPUは、トリガ検出器によって報告されたメモリアドレスに基づき、イベント発生時に生成された測定データと、その前後において生成された測定データとをメモリから読み出して表示コントローラに出力する。これにより、表示コントローラの制御下でイベント発生時における入力信号の信号波形が表示器に表示される。
ところが、従来の波形記録装置には、以下の問題点が存在する。すなわち、従来の波形記録装置では、トリガ検出器によって報告されたメモリアドレスに基づいてCPUが測定データをメモリから読み出して表示コントローラに出力する構成が採用されている。したがって、この波形記録装置では、メモリに書き込まれている測定データをCPUが読み出す際に対象の測定データが記録されているメモリアドレスをメモリコントローラに報告するために、メモリコントローラとCPUとの間にアドレス線を配設する必要がある。一方、この種の波形記録装置のなかには、表示器、表示コントローラおよびCPU等が配設された記録装置本体と、A/D変換器、メモリおよびメモリコントローラ等からなるデータ記録ユニットとが別体に構成されたタイプの装置が存在する。この場合、記録装置本体とデータ記録ユニットとの間には、相互間の電源電圧の差異を吸収するためのレベル変換回路や絶縁回路等のインターフェース回路が必要となる。したがって、アドレス線を必要とする分だけインターフェース回路が複雑化する結果、従来の波形記録装置には、その製造コストが高騰しているという問題点がある。 However, the conventional waveform recording apparatus has the following problems. That is, the conventional waveform recording apparatus employs a configuration in which the CPU reads measurement data from the memory and outputs it to the display controller based on the memory address reported by the trigger detector. Therefore, in this waveform recording device, when the CPU reads out the measurement data written in the memory, the memory address at which the target measurement data is recorded is reported to the memory controller between the memory controller and the CPU. It is necessary to provide an address line. On the other hand, in this type of waveform recording apparatus, a recording apparatus main body provided with a display, a display controller, a CPU, and the like, and a data recording unit including an A / D converter, a memory, a memory controller, and the like are separated. There are configured types of devices. In this case, an interface circuit such as a level conversion circuit or an insulation circuit is required between the recording apparatus main body and the data recording unit to absorb the difference in power supply voltage between them. Therefore, as a result of the complexity of the interface circuit required for the address lines, the conventional waveform recording apparatus has a problem that its manufacturing cost has increased.
この場合、従来の波形記録装置におけるメモリコントローラに代えて、FIFO(First-In First-Out)コントローラ(先入れ先出し法によってメモリに対する測定データの書き込みおよび読み出しを管理するメモリコントローラ)を採用することで、アドレス線が不要となる分だけインターフェース回路を簡素化することが可能となる。一方、この種の波形記録装置では、入力信号についての実効値を取得するために、A/D変換器によって順次生成される測定データを用いてCPUがRMS(Root Mean Square)変換処理(測定値を二乗した値の平均値についての平方根を演算する処理)を実行する構成が採用されている。この場合、FIFOコントローラの管理下でCPUがメモリから測定データを読み出したときには、読み出された測定データの次にメモリに書き込んだ測定データの位置に対応させてFIFOコントローラがリードポインタ(メモリから測定データを読み出す読み出し位置を特定するためのポインタ)を移動させる。 In this case, instead of the memory controller in the conventional waveform recording apparatus, an FIFO (First-In First-Out) controller (a memory controller that manages writing and reading of measurement data to and from the memory by a first-in first-out method) is adopted. It is possible to simplify the interface circuit as much as the line becomes unnecessary. On the other hand, in this type of waveform recording apparatus, the CPU performs RMS (Root Mean Square) conversion processing (measurement value) using measurement data sequentially generated by an A / D converter in order to obtain an effective value for an input signal. A process of executing a process of calculating a square root of an average value of values obtained by squaring. In this case, when the CPU reads the measurement data from the memory under the control of the FIFO controller, the FIFO controller reads the measurement data written in the memory next to the read measurement data, and the FIFO controller reads the measurement data from the memory. A pointer for specifying a reading position for reading data is moved.
このため、CPUが1つの測定データを読み出した後に、RMS変換処理(二乗算)の実行のためにその1つの測定データ(既に読み出した測定データと同一の測定データ)をメモリから再び読み出すことができないため、RMS変換処理を実行する波形記録装置において通常のFIFOコントローラを採用する場合、CPUがメモリから読み出した測定データを一時的に記憶させておくキャッシュメモリを別途配設して、CPUのメモリ空間内にメモリから読み出した測定データを展開する処理を実行する必要が生じる。このため、インターフェース回路の構成を簡素化すべくFIFOコントローラを採用したとしても、キャッシュメモリを必要とする分だけ、その製造コストが高騰すると共に、メモリから読み出した測定データの展開に時間を要するために高速なデータ処理(積和演算処理)が困難になるという問題が発生する。 For this reason, after the CPU reads out one measurement data, the one measurement data (the same measurement data as the already read out measurement data) can be read out again from the memory in order to execute the RMS conversion process (double multiplication). Therefore, when a normal FIFO controller is adopted in the waveform recording apparatus that executes the RMS conversion process, a cache memory for temporarily storing the measurement data read from the memory by the CPU is separately provided, and the CPU memory It is necessary to execute processing for expanding the measurement data read from the memory in the space. For this reason, even if the FIFO controller is adopted to simplify the configuration of the interface circuit, the manufacturing cost increases as much as the cache memory is required, and it takes time to develop the measurement data read from the memory. There arises a problem that high-speed data processing (product-sum operation processing) becomes difficult.
本発明は、かかる問題点に鑑みてなされたものであり、二乗算を含む演算処理を低コストでしかも高速に実行し得るデータ処理装置およびデータ処理方法を提供することを主目的とする。 The present invention has been made in view of such a problem, and a main object of the present invention is to provide a data processing apparatus and a data processing method capable of executing arithmetic processing including double multiplication at low cost and at high speed.
上記目的を達成すべく請求項1記載のデータ処理装置は、測定データを記憶するメモリと、当該メモリに対して前記測定データを書き込む書き込み位置を特定する書き込みポインタおよび当該メモリから当該測定データを読み出す読み出し位置を特定する読み出しポインタを備えて当該測定データの書き込みおよび読み出しを先入れ先出し法で管理するメモリコントローラと、前記メモリから読み出した前記測定データを用いて二乗算を含む所定の演算処理を実行する演算部とを備えたデータ処理装置であって、前記メモリコントローラは、前記演算部によって前記メモリから1つの前記測定データが2回読み出されたときに、当該読み出された測定データの次に当該メモリに書き込まれた前記測定データの書き込み位置を特定可能に前記読み出しポインタを移動させる。なお、本発明における「読み出しポインタを移動させる」との処理は、読み出しポインタによって特定される読み出し位置についての値(情報)を変更する処理を意味する。 In order to achieve the above object, the data processing apparatus according to claim 1, wherein a memory for storing measurement data, a write pointer for specifying a write position for writing the measurement data to the memory, and the measurement data are read from the memory. A memory controller having a read pointer for specifying a read position and managing writing and reading of the measurement data by a first-in first-out method, and an operation for executing a predetermined calculation process including a double multiplication using the measurement data read from the memory The memory controller, when the one measurement data is read twice from the memory by the arithmetic unit, the memory controller next to the read measurement data The reading position can be specified to write the measurement data written in the memory. The pointer is moved out. Note that the process of “moving the read pointer” in the present invention means a process of changing the value (information) about the read position specified by the read pointer.
また、請求項2記載のデータ処理方法は、メモリに対して測定データを書き込む書き込み位置を特定する書き込みポインタおよび当該メモリから当該測定データを読み出す読み出し位置を特定する読み出しポインタを用いて当該測定データの書き込みおよび読み出しを先入れ先出し法で管理すると共に、前記メモリから読み出した前記測定データを用いて二乗算を含む所定の演算処理を実行するデータ処理方法であって、前記メモリから1つの前記測定データを2回読み出したときに、当該読み出した測定データの次に当該メモリに書き込んだ前記測定データの書き込み位置を特定可能に前記読み出しポインタを移動させる。 According to a second aspect of the present invention, there is provided a data processing method using a write pointer for specifying a write position for writing measurement data to the memory and a read pointer for specifying a read position for reading the measurement data from the memory. A data processing method for managing writing and reading by a first-in first-out method, and executing predetermined arithmetic processing including double multiplication using the measurement data read from the memory, wherein two pieces of the measurement data from the memory are When the data is read once, the read pointer is moved so as to be able to specify the write position of the measurement data written in the memory next to the read measurement data.
請求項1記載のデータ処理装置および請求項2記載のデータ処理方法によれば、測定データの書き込みおよび読み出しを先入れ先出し法で管理すると共に、メモリから1つの測定データが2回読み出されたときに、読み出された測定データの次にメモリに書き込まれた測定データの書き込み位置を特定可能に読み出しポインタを移動させることにより、メモリから測定データを読み出すためのアドレス線が不要となる分だけ従来の波形記録装置よりもメモリコントローラと演算部との間に配設すべきインターフェース回路を簡素化することができる。また、二乗算を実行するために測定データを演算部のメモリ空間内に展開する必要ないため、測定データを展開するためのキャッシュメモリが不要となる。したがって、データ処理装置の製造コストを十分に低減することができる。また、メモリから読み出した測定データの展開処理を不要にできるため、その分、高速なデータ処理(RMS変換処理等の積和演算処理など)を実現することができる。
According to the data processing device according to claim 1 and the data processing method according to
以下、本発明に係るデータ処理装置およびデータ処理方法の最良の形態について、添付図面を参照して説明する。 The best mode of a data processing apparatus and data processing method according to the present invention will be described below with reference to the accompanying drawings.
最初に、測定装置1の構成について、図面を参照して説明する。 First, the configuration of the measuring apparatus 1 will be described with reference to the drawings.
図1に示す測定装置1は、測定対象の入力信号SについてのサンプリングデータDを記録すると共に記録したサンプリングデータDに基づく信号波形等を図示しない表示部に表示させる装置(例えば波形記録装置)であって、測定装置本体2および測定ユニット3がインターフェース回路4を介して電気的に接続されて構成されている。測定装置本体2は、CPU11および表示部等を備えている。この場合、CPU11は、本発明における演算部に相当する積和演算器11aを備えている。この場合、積和演算器11aは、サンプリングデータDに基づいて入力信号Sについての実効値を演算する。
A measuring apparatus 1 shown in FIG. 1 is an apparatus (for example, a waveform recording apparatus) that records sampling data D for an input signal S to be measured and displays a signal waveform or the like based on the recorded sampling data D on a display unit (not shown). Thus, the measuring device
一方、測定ユニット3は、A/D変換部21、RAM22およびメモリコントローラ23を備えて構成されている。A/D変換部21は、入力信号Sを所定の周期でA/D変換して(サンプリングして)本発明における測定データに相当するサンプリングデータDを生成する。RAM22は、本発明におけるメモリに相当し、メモリコントローラ23の管理下でサンプリングデータDを記憶する。メモリコントローラ23は、いわゆるFIFOコントローラであって、A/D変換部21によって生成されるサンプリングデータDのRAM22への書き込みと、CPU11によるRAM22からのサンプリングデータDの読み出しとを先入れ先出し法で管理する。具体的には、図2に示すように、メモリコントローラ23は、RAM22に対してサンプリングデータDを書き込む書き込み位置を特定する書き込みポインタ(Write Pointer )WPと、RAM22からサンプリングデータDを読み出す読み出し位置を特定する読み出しポインタ(Read Pointer)RPとを備えている。
On the other hand, the
なお、図2および後に参照する図3,4,6,7では、本発明についての理解を容易とするために、書き込みポインタWPや読み出しポインタRPを用いたデータ管理方法を概念的に図示しているが、実際には、両ポインタWP,RPは、RAM22上の所定のメモリアドレスを特定可能な値(情報)を記憶するレジスタ等によって構成されている。また、図2〜4,6,7では、「区画01」〜「区画10」の10個の区画(1つのサンプリングデータDを記録する領域)を両WP,RPで管理する例について図示しているが、この区画の数は例示であって、実際には、入力信号Sについてのサンプリング速度を10kHz、CPU11が毎秒20回処理を行うとした場合、1回について500のサンプリングデータDを処理するため、約1000個程度の区画を対象として先入れ先出し法による管理が実行される。さらに、メモリコントローラ23は、両ポインタWP,RPの他に、フルフラグ(Full Flag )やエンプティフラグ(Empty Flag)等を備えているが、これらの機能については公知のFIFOコントローラと同様のため、その図示および詳細な説明を省略する。
In FIG. 2 and FIGS. 3, 4, 6 and 7 to be referred to later, in order to facilitate understanding of the present invention, a data management method using the write pointer WP and the read pointer RP is conceptually illustrated. In practice, however, both pointers WP and RP are configured by a register or the like that stores a value (information) that can specify a predetermined memory address on the
インターフェース回路4は、測定装置本体2および測定ユニット3を相互に絶縁しつつ、CPU11およびメモリコントローラ23の間における各種の制御信号やサンプリングデータDの送受信を許容する絶縁回路およびレベル変換回路を備えている。また、インターフェース回路4は、CPU11がメモリコントローラ23にアクセスするための制御線や、RAM22からサンプリングデータDを読み出すためのデータ線(共に図示せず)などを備えている。なお、この測定装置1では、RAM22、メモリコントローラ23、インターフェース回路4およびCPU11(積和演算器11a)が相俟って本発明におけるデータ処理装置を構成する。
The
次に、測定装置1によるサンプリングデータDの記録およびサンプリングデータDを用いた演算処理の方法について、図面を参照して説明する。 Next, a method of recording the sampling data D by the measuring apparatus 1 and a calculation processing method using the sampling data D will be described with reference to the drawings.
この測定装置1では、A/D変換部21によるサンプリングデータDの生成処理(入力信号Sについてのサンプリング処理)と、生成されたサンプリングデータDに基づくRMS変換処理とが並行して実行されて、入力信号Sについての実効値に基づく信号波形が図示しない表示部に表示される。具体的には、まず、A/D変換部21が入力信号Sを所定の周期でA/D変換することでサンプリングデータDを生成してメモリコントローラ23に順次出力する。この際に、図2に示すように、メモリコントローラ23における書き込みポインタWPは、先頭の「区画01」を指し示し、読み出しポインタRPは、最後尾の「区画10」を指し示した状態となっている。
In the measurement apparatus 1, the A /
なお、このメモリコントローラ23では、RAM22に対してサンプリングデータDを書き込むべき位置(区画)を書き込みポインタWPによって指し示し、RAM22からのサンプリングデータDの読み出しが完了した位置(区画:RAM22からサンプリングデータDを読み出すべき区画の1つ前の区画)を読み出しポインタRPによって指し示す管理方法が採用されている。したがって、メモリコントローラ23は、書き込みポインタWPが指し示す位置(この例では「区画01」)に対応して、A/D変換部21から出力されたサンプリングデータD(図3における「D01」)をRAM22に書き込むと共に、同図に示すように、書き込みポインタWPを次の「区画02」に移動させる。
In the
一方、メモリコントローラ23によってRAM22にサンプリングデータDが書き込まれることでエンプティフラグが「値=1」から「値=0」に書き換えられるのに伴い、CPU11は、サンプリングデータDについてのRMS変換処理を開始する。具体的には、CPU11は、予め規定されたFIFOメモリ番地(CPU11のメモリ空間においてRAM22に対するアクセスのために割り当てられたメモリ番地)にアクセスしてサンプリングデータDを読み出す。この際に、メモリコントローラ23は、CPU11によるRAM22へのアクセス要求(サンプリングデータDの読み出し要求)に応じて、読み出しポインタRPが指し示す位置(区画:この例では「区画10」)の次の区画(この例では、「区画01」)に対応するメモリアドレスを特定し、特定したメモリアドレスに対するアクセスを許容する。この結果、RAM22の「区画01」に対応するメモリアドレスからCPU11によって最初のサンプリングデータD(同図における「D01」)が読み出される。
On the other hand, as the empty flag is rewritten from “value = 1” to “value = 0” by the sampling data D being written to the
次いで、CPU11は、上記のFIFOメモリ番地にアクセスしてRAM22から直前に読み出したサンプリングデータDと同一のサンプリングデータDを読み出す。この場合、一般的なFIFOコントローラでは、CPU11によってRAM22から所定のサンプリングデータDが1回読み出された時点において読み出しポインタRPが次の区画を指し示す位置に移動させられるのに対して、このメモリコントローラ23では、CPU11によって所定のサンプリングデータD(この例では、「D01」)が1回読み出された時点においては、読み出しポインタRPが同じ位置に維持される。したがって、メモリコントローラ23は、読み出しポインタRPが指し示す位置(区画:この例では「区画10」)の次の区画(この例では、「区画01」)に対応するメモリアドレスを特定し、特定したメモリアドレスに対するアクセスを許容する。これにより、CPU11は、直前に読み出したサンプリングデータD(同図における「D01」)と同一のサンプリングデータD(すなわち、「D01」)をRAM22から読み出す。また、CPU11では、積和演算器11aが、読み出された2つのサンプリングデータDを用いて測定値についての二乗算を実行する。
Next, the
また、メモリコントローラ23は、CPU11によってRAM22内における同一の1つのサンプリングデータD(この例では、「D01」)が2回読み出されたのに伴い、図4に示すように、読み出しを完了したサンプリングデータDに対応する区画(この例では、「区画01」)に読み出しポインタRPを移動させる。このように、CPU11がRAM22から1つのサンプリングデータDを最初に読み出した際に読み出しポインタRPが同じ位置に維持され、その1つのサンプリングデータDの2回目の読み出しに伴って読み出しポインタRPが次の区画に移動させられることにより、図5に示すように、CPU11側では、同一のFIFOメモリ番地において同一の1つのサンプリングデータD(この例では、「D01」)が連続して書き込まれているかのように認識される。
Further, as shown in FIG. 4, the
一方、A/D変換部21によって次のサンプリングデータD(この例では、「D02」)が出力されたときに、メモリコントローラ23は、図6に示すように、書き込みポインタWPが指し示す位置(この際には、「区画02」)に対応して、A/D変換部21から出力されたサンプリングデータD(同図における「D02」)をRAM22に書き込むと共に、書き込みポインタWPを次の「区画03」に移動させる。また、CPU11は、上記のFIFOメモリ番地にアクセスしてサンプリングデータDを読み出す。この際に、メモリコントローラ23は、読み出しポインタRPが指し示す位置(区画:この例では「区画01」)の次の区画(この例では、「区画02」)に対応するメモリアドレスを特定し、特定したメモリアドレスに対するアクセスを許容する。この結果、RAM22の「区画02」に対応するメモリアドレスからCPU11によって2つ目のサンプリングデータD(同図における「D02」)が読み出される。
On the other hand, when the next sampling data D (in this example, “D02”) is output by the A /
次いで、CPU11は、上記のFIFOメモリ番地に再びアクセスしてRAM22から直前に読み出したサンプリングデータDと同一のサンプリングデータD(この例では、「D02」を読み出す。この場合、前述したように、このメモリコントローラ23では、CPU11によって所定のサンプリングデータD(この例では、「D02」)が1回読み出された時点においては、読み出しポインタRPが同じ位置に維持される。したがって、メモリコントローラ23は、読み出しポインタRPが指し示す位置(区画:この例では「区画01」)の次の区画(この例では、「区画02」)に対応するメモリアドレスを特定し、特定したメモリアドレスに対するアクセスを許容する。これにより、CPU11は、直前に読み出したサンプリングデータD(同図における「D02」)と同一のサンプリングデータD(すなわち、「D02」)をRAM22から読み出す。また、CPU11では、積和演算器11aが読み出された2つのサンプリングデータDを用いて測定値についての二乗算を実行すると共に、直前に演算した二乗算の解との平均値を演算する。
Next, the
また、メモリコントローラ23は、CPU11によってRAM22内における同一の1つのサンプリングデータD(この例では、「D02」)が2回読み出されたのに伴い、図7に示すように、読み出しを完了したサンプリングデータDに対応する区画(この例では、「区画02」)に読み出しポインタRPを移動させる。この後、A/D変換部21によって順次生成されるサンプリングデータD(「D03」、「D04」・・)についても、上記のサンプリングデータD(「D01」および「D02」)と同様にして、メモリコントローラ23によるRAM22への書き込みと、CPU11によるRAM22からの読み出しおよび演算処理が実行される。これにより、入力信号Sについての実効値が演算されて、演算された実効値に基づく信号波形が表示部に表示される(図示せず)。
Further, as shown in FIG. 7, the
このように、この測定装置1および測定装置1によるデータ処理方法によれば、サンプリングデータDの書き込みおよび読み出しを先入れ先出し法で管理すると共に、RAM22から1つのサンプリングデータDが2回読み出されたときに、読み出されたサンプリングデータDの次にRAM22に書き込まれたサンプリングデータDの書き込み位置を特定可能に読出しポインタRPを移動させることにより、RAM22からサンプリングデータDを読み出すためのアドレス線が不要となる分だけ従来の波形記録装置よりもインターフェース回路4を簡素化することができる。また、二乗算を実行するためにサンプリングデータDをCPU11のメモリ空間内に展開する必要ないため、サンプリングデータDを展開するためのキャッシュメモリが不要となる。したがって、測定装置1の製造コストを十分に低減することができる。また、RAM22から読み出したサンプリングデータDの展開処理を不要にできるため、その分、高速なデータ処理(RMS変換処理:積和演算処理)を実現することができる。
As described above, according to the measurement apparatus 1 and the data processing method by the measurement apparatus 1, writing and reading of the sampling data D are managed by the first-in first-out method, and one sampling data D is read from the
なお、本発明は、上記の構成および方法に限定されない。例えば、上記の測定装置1では、図5に示すように、CPU11のメモリ空間における同一のFIFOメモリ番地において同一の1つのサンプリングデータD(この例では、「D01」)が連続して書き込まれているかのように認識される構成を採用しているが、本発明はこれに限定されない。
In addition, this invention is not limited to said structure and method. For example, in the measurement apparatus 1 described above, as shown in FIG. 5, the same sampling data D (in this example, “D01”) is continuously written at the same FIFO memory address in the memory space of the
具体的には、一例として、図8に示すように、CPU11のメモリ空間における2つのFIFOメモリ番地(この例では、「FIFOメモリ番地A,B」)に同一の1つのサンプリングデータD(この例では、「D01」)が1つずつ書き込まれているかのように認識される構成を採用することができる。この構成を採用した場合、CPU11によって「FIFOメモリ番地A,B」のいずれに対するメモリアクセスを要求されたときにおいてもRAM22上の同一のメモリアドレスに対するアクセスを許容するように構成すると共に、「FIFOメモリ番地A」に対応するサンプリングデータDの読み出しを完了した時点においては読み出しポインタRPを移動させることなくその位置を維持すると共に、「FIFOメモリ番地B」に対応するサンプリングデータDの読み出しを完了した時点において読み出しポインタRPを次の区画に移動させるようにメモリコントローラ23を構成すればよい。この構成においても、上記の測定装置1と同様にして、従来の波形記録装置よりもインターフェース回路4を簡素化することができると共に、サンプリングデータDを展開するためのキャッシュメモリを不要とすることができる。したがって、測定装置1の製造コストを十分に低減することができる。また、RAM22から読み出したサンプリングデータDの展開処理を不要にできるため、その分、高速なデータ処理(RMS変換処理:積和演算処理)を実現することができる。
Specifically, as an example, as shown in FIG. 8, one sampling data D (in this example) is identical to two FIFO memory addresses (in this example, “FIFO memory addresses A and B”) in the memory space of the
1 測定装置
2 測定装置本体
3 測定ユニット
4 インターフェース回路
11 CPU
11a 積和演算器
22 RAM
23 メモリコントローラ
D サンプリングデータ
RP 読み出しポインタ
S 入力信号
WP 書き込みポインタ
DESCRIPTION OF SYMBOLS 1
11a Multiply-
23 Memory Controller D Sampling Data RP Read Pointer S Input Signal WP Write Pointer
Claims (2)
前記メモリコントローラは、前記演算部によって前記メモリから1つの前記測定データが2回読み出されたときに、当該読み出された測定データの次に当該メモリに書き込まれた前記測定データの書き込み位置を特定可能に前記読み出しポインタを移動させるデータ処理装置。 A memory for storing measurement data, a write pointer for specifying a write position for writing the measurement data to the memory, and a read pointer for specifying a read position for reading the measurement data from the memory; A data processing apparatus comprising: a memory controller that manages reading by a first-in first-out method; and a calculation unit that executes predetermined calculation processing including double multiplication using the measurement data read from the memory,
The memory controller, when one piece of measurement data is read from the memory by the arithmetic unit twice, writes a write position of the measurement data written in the memory next to the read measurement data. A data processing apparatus for moving the read pointer in an identifiable manner.
前記メモリから1つの前記測定データを2回読み出したときに、当該読み出した測定データの次に当該メモリに書き込んだ前記測定データの書き込み位置を特定可能に前記読み出しポインタを移動させるデータ処理方法。 The writing and reading of the measurement data are managed by a first-in first-out method using a write pointer for specifying a write position for writing measurement data to the memory and a read pointer for specifying a read position for reading the measurement data from the memory. A data processing method for executing predetermined arithmetic processing including double multiplication using the measurement data read from a memory,
A data processing method for moving the read pointer so as to be able to specify a write position of the measurement data written in the memory next to the read measurement data when one measurement data is read out from the memory twice.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006186563A JP4878940B2 (en) | 2006-07-06 | 2006-07-06 | Data processing apparatus and data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006186563A JP4878940B2 (en) | 2006-07-06 | 2006-07-06 | Data processing apparatus and data processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008014811A true JP2008014811A (en) | 2008-01-24 |
JP4878940B2 JP4878940B2 (en) | 2012-02-15 |
Family
ID=39071963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006186563A Expired - Fee Related JP4878940B2 (en) | 2006-07-06 | 2006-07-06 | Data processing apparatus and data processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4878940B2 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0528283A (en) * | 1991-07-23 | 1993-02-05 | Fuji Electric Co Ltd | Storing method for sampling data |
JPH0549152A (en) * | 1991-08-13 | 1993-02-26 | Nissin Electric Co Ltd | Processing circuit for sample data in effective value (r.m.s. value) processing relay |
JPH06308167A (en) * | 1993-02-23 | 1994-11-04 | Hioki Ee Corp | Measurement device of effective value |
JPH0875793A (en) * | 1994-09-01 | 1996-03-22 | Hioki Ee Corp | Waveform recorder with effective value producing trigger generator by program processing |
JP2001025148A (en) * | 1999-07-08 | 2001-01-26 | Mitsubishi Electric Corp | Protective relay |
JP2002062316A (en) * | 2000-08-23 | 2002-02-28 | Yokogawa Electric Corp | Waveform recorder |
-
2006
- 2006-07-06 JP JP2006186563A patent/JP4878940B2/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0528283A (en) * | 1991-07-23 | 1993-02-05 | Fuji Electric Co Ltd | Storing method for sampling data |
JPH0549152A (en) * | 1991-08-13 | 1993-02-26 | Nissin Electric Co Ltd | Processing circuit for sample data in effective value (r.m.s. value) processing relay |
JPH06308167A (en) * | 1993-02-23 | 1994-11-04 | Hioki Ee Corp | Measurement device of effective value |
JPH0875793A (en) * | 1994-09-01 | 1996-03-22 | Hioki Ee Corp | Waveform recorder with effective value producing trigger generator by program processing |
JP2001025148A (en) * | 1999-07-08 | 2001-01-26 | Mitsubishi Electric Corp | Protective relay |
JP2002062316A (en) * | 2000-08-23 | 2002-02-28 | Yokogawa Electric Corp | Waveform recorder |
Also Published As
Publication number | Publication date |
---|---|
JP4878940B2 (en) | 2012-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8935574B2 (en) | Correlating traces in a computing system | |
US20080209443A1 (en) | Apparatus and method for displaying process operation | |
JP2008287319A (en) | Semiconductor device, electronic device and access log acquisition method | |
JP2013016117A (en) | Bus monitoring device, bus monitoring method, and program | |
JP4878940B2 (en) | Data processing apparatus and data processing method | |
CN101651839A (en) | Time stamp adding device, time stamp adding method, and time stamp adding program | |
CN102254569B (en) | Quad-data rate (QDR) controller and realization method thereof | |
US7734860B2 (en) | Signal processor | |
JP2005165825A (en) | Trace information recorder | |
JP5312918B2 (en) | Time stamp acquisition circuit and time stamp acquisition method | |
JP3087928B2 (en) | Testing equipment | |
JPH06202715A (en) | State change detecting and recording circuit | |
JP2008145336A (en) | Device of monitoring sensor detection value | |
JP2004348635A (en) | Method for developing program | |
JP3928730B2 (en) | Semiconductor device, microcomputer and electronic device | |
JP2007205953A (en) | Data collector | |
JP2006331269A (en) | Hardware/software cooperative simulation device and method | |
JP5218225B2 (en) | MEMORY ACCESS DEVICE, MEMORY ACCESS SYSTEM, AND MEMORY ACCESS DEVICE PROCESSING METHOD | |
JP2010211654A (en) | Data transfer method and device | |
JP5171062B2 (en) | Memory access circuit | |
JP2990099B2 (en) | Trace buffer control method | |
CN110245096A (en) | A method of realizing that processor is directly connected to extension computing module | |
JPH02150931A (en) | Information processor | |
JP2009002655A (en) | Waveform measuring instrument | |
JP2013016010A (en) | Program debugging device, method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090629 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111125 |
|
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: 20111129 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111129 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4878940 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141209 Year of fee payment: 3 |
|
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 |
|
LAPS | Cancellation because of no payment of annual fees |