WO2023163156A1 - Computation device and anomaly detection device - Google Patents

Computation device and anomaly detection device Download PDF

Info

Publication number
WO2023163156A1
WO2023163156A1 PCT/JP2023/006977 JP2023006977W WO2023163156A1 WO 2023163156 A1 WO2023163156 A1 WO 2023163156A1 JP 2023006977 W JP2023006977 W JP 2023006977W WO 2023163156 A1 WO2023163156 A1 WO 2023163156A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
memory
calculator
selector
arithmetic
Prior art date
Application number
PCT/JP2023/006977
Other languages
French (fr)
Japanese (ja)
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 ローム株式会社
Publication of WO2023163156A1 publication Critical patent/WO2023163156A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations

Definitions

  • the invention disclosed in this specification relates to an arithmetic device and an anomaly detection device including the arithmetic device.
  • machine learning is used in anomaly detection for machine health monitoring systems (see Patent Document 1).
  • machine learning mathematics operations on matrices and vectors are performed.
  • the REDUCE operation is also frequently used for matrices and vectors. Note that the REDUCE operation is an operation for obtaining a single value by applying the same operation to a plurality of values.
  • Equation (1) As an example of matrix operation in machine learning, there is Equation (1) described in Non-Patent Document 1.
  • Formula (1) represents Figure 3 described in Non-Patent Document 1 as a formula.
  • Equation (1) is an equation for estimation using learning results.
  • ⁇ and ⁇ in equation (1) are matrices
  • x, y, and b in equation (1) are vectors.
  • G() in equation (1) is a vector function.
  • y G(x ⁇ +b) ⁇ (1)
  • the formula for learning is formula (5) described in Non-Patent Document 1.
  • P, H, and I in the formula (5) are each row.
  • P i P i-1 -P i-1 H i T (I + H i P i-1 H i T ) -1 H i P i-1 (5)
  • ⁇ i ⁇ i-1 +P i H i T (t i -H i ⁇ i-1 )
  • REDUCE calculation examples include Average Pooling and Max-Pooling described in Non-Patent Document 2. These are often used in Convolution Neural Networks (CNN).
  • the computing device disclosed in this specification includes a memory, a selector, a first computing unit configured to compute first data read from the memory and an output of the selector, the first and a second computing unit configured to perform computation using the output of the computing unit.
  • the selector is configured to output one of the second data read from the memory and the previous computation result of the first computing unit.
  • the anomaly detection device disclosed in this specification includes the computing device configured as described above.
  • the computation execution time can be shortened.
  • FIG. 1 is a diagram showing the configuration of an arithmetic unit according to a reference example.
  • FIG. 2 is a diagram for explaining the processing flow when the first computing unit according to the reference example performs the REDUCE computation.
  • FIG. 3 is a diagram illustrating a configuration of an arithmetic device according to the embodiment;
  • FIG. 4 is a diagram for explaining a processing flow when the first calculator according to the embodiment performs a REDUCE calculation;
  • FIG. 5 is a diagram showing a schematic configuration of a motor driver.
  • FIG. 6 is a diagram showing an example of acceleration signals and abnormal values.
  • FIG. 1 is a diagram showing the configuration of an arithmetic device 100 according to a reference example.
  • a computing device 100 includes a memory 1 , a control unit 2 , a first computing unit 11 , a second computing unit 21 , and a latch 22 .
  • the memory 1, the control unit 2, the first calculator 11, the second calculator 21, and the latch 22 are configured to operate in synchronization with the same clock signal.
  • the memory 1 is configured to store data used for computation.
  • the control unit 2 is configured to control the memory 1.
  • the control unit 2 is configured to output a control signal S ⁇ b>1 to the memory 1 and control data reading from the memory 1 and data writing to the memory 1 .
  • the first computing unit 11 is configured to compute the first data read from the memory 1 and the second data read from the memory 1 .
  • the calculation result of the first calculator 11 is supplied to the memory 1 and the second calculator 21 .
  • the calculation result of the first calculator 11 is supplied to the first input terminal of the second calculator 21 , and the output of the latch 22 is supplied to the second input terminal of the second calculator 21 .
  • the second calculator 21 is configured to calculate the calculation result of the first calculator 11 and the previous calculation result of the second calculator 21 .
  • a calculation result of the second calculator 21 is supplied to the memory 1 and the latch 22 .
  • the latch 22 is provided on a feedback path from the output end of the second computing unit 21 to the second input end of the second computing unit 21 .
  • the latch 22 is configured to latch the computation result of the second computing unit 21 . This enables the second calculator 21 to perform the REDUCE calculation.
  • data A1 and A5 are read from the memory 1 in state ST1.
  • the first calculator 11 outputs data B1, which is the product of data A1 and data A5, to memory 1, and data B1 is written in memory 1.
  • the first calculator 11 outputs data B2, which is the product of data A2 and data A6, to memory 1, and data B2 is written in memory 1.
  • the first calculator 11 outputs data B3, which is the product of data A3 and data A6, to memory 1, and data B3 is written in memory 1.
  • the first calculator 11 outputs data B4, which is the product of data A4 and data A8, to memory 1, and data B4 is written in memory 1.
  • the first calculator 11 outputs data C1, which is the product of data B1 and data B3, to the memory 1, and the data C1 is written in the memory 1.
  • the first calculator 11 outputs data C2, which is the product of data B2 and data B4, to memory 1, and data C2 is written in memory 1.
  • the first calculator 11 outputs data D1, which is the product of data C1 and data C2, to memory 1, and data D1 is written in memory 1.
  • data D1 is written in memory 1.
  • the product of the data A1 to A8 is stored in the memory 1.
  • the arithmetic device 100 needs frequent access to the memory 1 when obtaining the product of the data A1 to A8.
  • FIG. 3 is a diagram showing the configuration of the arithmetic device 101 according to the embodiment. Here, differences from the configuration according to the reference example shown in FIG. 1 will be mainly described.
  • a computing device 101 includes a memory 1, a control unit 2, a first computing unit 11, a first latch 12, a selector 13, a second computing unit 21, and a second latch 22. .
  • the memory 1, control unit 2, first calculator 11, first latch 12, selector 13, second calculator 21, and second latch 22 are configured to operate in synchronization with the same clock signal.
  • the memory 1 is configured to store data used for computation.
  • the control unit 2 is configured to control the memory 1 and the selector 13.
  • the control unit 2 is configured to output a control signal S ⁇ b>1 to the memory 1 and control data reading from the memory 1 and data writing to the memory 1 .
  • the control unit 2 is configured to output a control signal (selection signal) S2 to the selector 13 to cause the selector 13 to select one of the two inputs.
  • the memory addresses of data to be read from and written to the memory 1 are not necessarily consecutive, and may be discontinuous.
  • the first computing unit 11 is configured to compute the first data read from the memory 1 and the output of the selector 13 .
  • the calculation result of the first calculator 11 is supplied to the first latch 12 and the second calculator 21 .
  • the first calculator 11 may be, for example, a multiplier, a maximum value selection circuit, or a minimum value selection circuit. Further, in order to diversify the operations that can be executed by the arithmetic device 101 according to the embodiment, the first arithmetic unit 11 includes, for example, a multiplier, a maximum value selection circuit, and a minimum value selection circuit. The circuit may be configured to select one of the maximum value selection circuit and the minimum value selection circuit.
  • the first latch 12 is provided on the first feedback path from the first calculator 11 to the selector 13 . More specifically, the first latch 12 is provided on a first feedback path from the output end of the first calculator 11 to the second input end of the selector 13 . The first latch 12 is configured to latch the calculation result of the first calculator 11 .
  • the second data read from the memory 1 is supplied to the first input terminal of the selector 13, and the output of the first latch 12 is supplied to the first input terminal of the selector 13.
  • the selector 13 is configured to output one of the second data read from the memory 1 and the result of the immediately previous operation of the first operator 11 .
  • the calculation result of the first calculator 11 is supplied to the first input terminal of the second calculator 21 , and the output of the second latch 22 is supplied to the second input terminal of the second calculator 21 .
  • the second calculator 21 is configured to calculate the calculation result of the first calculator 11 and the previous calculation result of the second calculator 21 .
  • the calculation result of the second calculator 21 is supplied to the memory 1 and the second latch 22 .
  • the second calculator 21 may be, for example, a summation calculator.
  • the calculator 101 when the first calculator 11 is a multiplier and the second calculator 21 is a summation calculator, the calculator 101 according to the embodiment calculates the sum of products of three or more numbers ( ⁇ n[ ⁇ m (xmn )]) can be computed. Further, for example, when the first arithmetic unit 11 is a maximum value selection circuit and the second arithmetic unit 21 is a summation arithmetic unit, the arithmetic unit 101 according to the embodiment can calculate the sum of three or more maximum values ( ⁇ n[Maxm(xmn)]) can be calculated.
  • the second latch 22 is provided on a second feedback path from the output end of the second computing unit 21 to the second input end of the second computing unit 21 .
  • the second latch 22 is configured to latch the calculation result of the second calculator 21 . This enables the second calculator 21 to perform the REDUCE calculation.
  • data A1 and A2 are read from memory 1 in state ST21.
  • the first arithmetic unit 11 outputs data E1, which is the product of data A1 and data A2, to the first latch 12.
  • the first calculator 11 outputs to the first latch 12 data E2, which is the product of data A3 and data E1.
  • the first calculator 11 outputs to the first latch 12 data E3, which is the product of data A4 and data E2.
  • the first arithmetic unit 11 outputs data E4, which is the product of data A5 and data E3, to the first latch 12.
  • the first arithmetic unit 11 outputs data E5, which is the product of data A6 and data E4, to the first latch 12.
  • the first computing unit 11 outputs data E6, which is the product of data A7 and data E5, to the first latch 12.
  • the first calculator 11 outputs data E7, which is the product of data A8 and data E6, to memory 1, and data E7 is written in memory 1.
  • data E7 is written in memory 1.
  • the product of the data A1 to A8 is stored in the memory 1.
  • the arithmetic device 101 When calculating the product of data A1 to A8, the arithmetic device 101 according to the embodiment first accesses the memory 1 once to read the data and only accesses the memory 1 last time to write the data. is enough. Therefore, the computation device 101 according to the embodiment can shorten the computation execution time.
  • the data A1 to A8 described above may be, for example, the elements of a vector arranged in order, or may be the elements of a matrix arranged in order, for example. That is, the arithmetic device 101 according to the embodiment can repeatedly perform vector arithmetic by using the output of the first arithmetic unit 11 as the input of the first arithmetic unit 11 .
  • the data A1 to A8 described above may be, for example, some time-series data, or may be, for example, data of each pixel of an image.
  • the REDUCE operation in the first computing unit 11 was the product, but operations other than the product, such as maximum value selection, minimum value selection, etc., may be used.
  • FIG. 5 is a diagram showing a schematic configuration of a motor driver.
  • the motor driver 200 includes a drive control signal generation circuit 201, a pre-driver circuit 202, a three-phase inverter circuit 203, an abnormality detection device 204, and terminals T1 to T6.
  • the terminal T1 is connected to the U-phase winding of the motor.
  • Terminal T2 is connected to the V-phase winding of the motor.
  • Terminal T3 is connected to the W-phase winding of the motor.
  • the terminal T4 receives the U-phase Hall signal output from the U-phase Hall sensor.
  • a terminal T5 receives a V-phase Hall signal output from the V-phase Hall sensor.
  • a terminal T6 receives a W-phase Hall signal output from the W-phase Hall sensor.
  • a drive control signal generation circuit 201 generates a drive control signal based on each phase Hall signal.
  • the pre-driver circuit 202 controls the three-phase inverter circuit 203 according to the drive control signal.
  • the three-phase inverter circuit 203 outputs the U-phase drive signal to the terminal T1, the V-phase drive signal to the terminal T2, and the W-phase drive signal to the terminal T3.
  • the abnormality detection device 204 detects motor abnormalities using machine learning based on the Hall signals of each phase.
  • Machine learning uses the calculation result of the calculation device 101 according to the embodiment. Since the calculation execution time of the calculation device 101 according to the embodiment is short, a complicated algorithm can be adopted in machine learning. Thereby, the abnormality detection accuracy in the abnormality detection device 204 can be improved.
  • the arithmetic device 101 may be included in an abnormality detection device provided in a sensorless motor driver that does not use Hall signals.
  • a sensorless motor driver detects the rotor position of a motor by detecting a back electromotive force generated as the rotor rotates.
  • the arithmetic device 101 may be included in an abnormality detection device that uses the output signal of the acceleration sensor.
  • the mounting location of the acceleration sensor include a moving body, a rotating body, and the vicinity of the rotating body.
  • mobile objects include vehicles, elevators, and transport devices in factories.
  • Rotating bodies include, for example, rotating shafts of machines.
  • the vicinity of the rotating body includes, for example, bearings.
  • FIG. 6 is a diagram showing an example of acceleration signals and abnormal values.
  • the vertical axis indicates each value and abnormal value of the acceleration signals x, y, and z
  • the horizontal axis indicates time.
  • Acceleration signals x, y, and z are the output signals of the acceleration sensor.
  • An acceleration signal x is an output signal of an acceleration sensor indicating acceleration in the X-axis direction.
  • An acceleration signal y is an output signal of an acceleration sensor indicating acceleration in the Y-axis direction.
  • the acceleration signal z is an output signal of the acceleration sensor indicating acceleration in the Z-axis direction.
  • the X-axis, Y-axis, and Z-axis are orthogonal to each other.
  • the anomaly detection device can calculate one anomaly value.
  • the outliers shown in FIG. 6 are the outliers calculated by the anomaly detector.
  • the abnormality detection device 204 is an abnormality detection device that uses the output signal of an acceleration sensor, and the abnormality value calculated by the abnormality detection device 204 exceeds a preset threshold value, the drive control signal generation circuit 201 The three-phase inverter circuit 203 may be stopped.
  • the abnormality detection device 204 is an abnormality detection device that uses the output signal of an acceleration sensor, and the abnormality value calculated by the abnormality detection device 204 is equal to or greater than the preset threshold for a preset threshold time or longer.
  • the drive control signal generation circuit 201 may stop the three-phase inverter circuit 203 .
  • the abnormality detection device 204 is an abnormality detection device that uses the output signal of an acceleration sensor, and the abnormality value calculated by the abnormality detection device 204 exceeds a preset threshold value, the abnormality detection device 204 An abnormality may be notified to a device in which the motor driver 200 is mounted.
  • the arithmetic device (101) described above includes a memory (1), a selector (13), and a first arithmetic unit (11 ), and a second computing unit (21) configured to perform computation using the output of the first computing unit, wherein the selector comprises second data read from the memory and the first computation
  • the computing device having the first configuration can reduce the number of times the memory is accessed. Therefore, the computing device having the first configuration can shorten the computing execution time.
  • the arithmetic device having the first configuration may have a configuration (second configuration) including a first latch (12) provided in a first feedback path from the first computing unit to the selector.
  • the computing device having the above second configuration can supply the previous computing result of the first computing unit with a simple configuration.
  • a configuration (third configuration ).
  • the computing device having the above third configuration is capable of REDUCE computation in the second computing unit.
  • the arithmetic device having any one of the first to third configurations may have a configuration (fourth configuration) including a control section (2) configured to control the memory and the selector.
  • the arithmetic device having the fourth configuration above can execute arithmetic processing without receiving a control signal from the outside.
  • the first arithmetic unit includes a multiplier, a maximum value selection circuit, and a minimum value selection circuit, and the multiplier, the maximum value selection circuit, and A configuration (fifth configuration) that is a circuit configured to select one of the minimum value selection circuits may be employed.
  • the computing device having the fifth configuration can diversify executable computations.
  • the abnormality detection device described above may have a configuration (fifth configuration) including an arithmetic device having any one of the first to fourth configurations.
  • the abnormality detection device having the fifth configuration it is possible to shorten the computation execution time of the computation device.
  • control unit 11 first arithmetic unit 12 first latch 13 selector 21 second arithmetic unit 22 latch, second latch 100 arithmetic device according to reference example 101 arithmetic device according to embodiment 200 motor driver 201 drive control signal generation circuit 202 pre-driver circuit 203 three-phase inverter circuit 204 abnormality detection device T1 to T6 terminals

Abstract

Provided is a computation device comprising a memory, a selector, a first computation unit configured to perform computation on first data read out from the memory and output of the selector, and a second computation unit configured to perform computation using output of the first computation unit. The selector is configured to output either second data read out from the memory or the previous computation result of the first computation unit.

Description

演算装置及び異常検出装置Arithmetic device and anomaly detection device
 本明細書中に開示されている発明は、演算装置及び当該演算装置を備える異常検出装置に関する。 The invention disclosed in this specification relates to an arithmetic device and an anomaly detection device including the arithmetic device.
 例えばマシンヘルスモニタリングシステム向けの異常検出において機械学習が用いられる(特許文献1参照)。機械学習では、行列及びベクトルの数値演算が実行される。そして、機械学習では行列及びベクトルに対してREDUCE演算も多用される。なお、REDUCE演算とは、複数の値に対して同一の演算を適用して単一の値を得る演算のことをいう。 For example, machine learning is used in anomaly detection for machine health monitoring systems (see Patent Document 1). In machine learning, mathematics operations on matrices and vectors are performed. In machine learning, the REDUCE operation is also frequently used for matrices and vectors. Note that the REDUCE operation is an operation for obtaining a single value by applying the same operation to a plurality of values.
 機械学習の行列演算例としては、非特許文献1に記載されている式(1)がある。式(1)は、非特許文献1に記載されているFigure 3を式で表したものである。式(1)は、学習結果を用いて推定を行うときの式である。式(1)中のα、βはそれぞれ行例であり、式(1)中のx、y、bはそれぞれベクトルである。そして、式(1)中のG()はベクトル関数である。
 y=G(x・α+b)β  (1)
As an example of matrix operation in machine learning, there is Equation (1) described in Non-Patent Document 1. Formula (1) represents Figure 3 described in Non-Patent Document 1 as a formula. Equation (1) is an equation for estimation using learning results. α and β in equation (1) are matrices, and x, y, and b in equation (1) are vectors. And G() in equation (1) is a vector function.
y=G(x·α+b)β (1)
 学習するときの式は、非特許文献1に記載されている式(5)である。式(5)中のP、H、Iはそれぞれ行例である。
 Pi=Pi-1-Pi-1i T(I+Hii-1i T-1ii-1  (5)
 βi=βi-1+Pii T(ti-Hiβi-1
The formula for learning is formula (5) described in Non-Patent Document 1. P, H, and I in the formula (5) are each row.
P i =P i-1 -P i-1 H i T (I + H i P i-1 H i T ) -1 H i P i-1 (5)
β ii-1 +P i H i T (t i -H i β i-1 )
 REDUCE演算例としては、非特許文献2に記載されているAverage  Pooling、Max-Poolingがある。これらは、Convolution  Neural  Networks(CNN)でよく用いられる。 Examples of REDUCE calculation include Average Pooling and Max-Pooling described in Non-Patent Document 2. These are often used in Convolution Neural Networks (CNN).
国際公開第2019/035279号WO2019/035279
 複雑なアルゴリズムでの機械学習が遅滞なく実施されるためには、演算装置における演算実行時間の短縮が必要となる。 In order for machine learning with complex algorithms to be implemented without delay, it is necessary to shorten the calculation execution time of the calculation device.
 本明細書中に開示されている演算装置は、メモリと、セレクタと、前記メモリから読み出される第1データと前記セレクタの出力とを演算するように構成される第1演算器と、前記第1演算器の出力を用いて演算を行うように構成される第2演算器と、を備える。前記セレクタは、前記メモリから読み出される第2データと前記第1演算器の1つ前の演算結果とのいずれか一方を出力するように構成される。 The computing device disclosed in this specification includes a memory, a selector, a first computing unit configured to compute first data read from the memory and an output of the selector, the first and a second computing unit configured to perform computation using the output of the computing unit. The selector is configured to output one of the second data read from the memory and the previous computation result of the first computing unit.
 本明細書中に開示されている異常検出装置は、上記構成の演算装置を備える。 The anomaly detection device disclosed in this specification includes the computing device configured as described above.
 本明細書中に開示されている発明によれば、演算実行時間の短縮を図ることができる。 According to the invention disclosed in this specification, the computation execution time can be shortened.
図1は、参考例に係る演算装置の構成を示す図である。FIG. 1 is a diagram showing the configuration of an arithmetic unit according to a reference example. 図2は、参考例に係る第1演算器がREDUCE演算を行うときの処理フローを説明するための図である。FIG. 2 is a diagram for explaining the processing flow when the first computing unit according to the reference example performs the REDUCE computation. 図3は、実施形態に係る演算装置の構成を示す図である。FIG. 3 is a diagram illustrating a configuration of an arithmetic device according to the embodiment; 図4は、実施形態に係る第1演算器がREDUCE演算を行うときの処理フローを説明するための図である。FIG. 4 is a diagram for explaining a processing flow when the first calculator according to the embodiment performs a REDUCE calculation; 図5は、モータドライバの概略構成を示す図である。FIG. 5 is a diagram showing a schematic configuration of a motor driver. 図6は、加速度信号及び異常値の一例を示す図である。FIG. 6 is a diagram showing an example of acceleration signals and abnormal values.
<参考例に係る演算装置>
 まず、実施形態について説明する前に、実施形態の特徴を理解するための参考例について説明する。図1は、参考例に係る演算装置100の構成を示す図である。
<Arithmetic device according to reference example>
First, before describing the embodiment, a reference example for understanding the features of the embodiment will be described. FIG. 1 is a diagram showing the configuration of an arithmetic device 100 according to a reference example.
 参考例に係る演算装置100は、メモリ1と、制御部2と、第1演算器11と、第2演算器21と、ラッチ22と、を備える。 A computing device 100 according to the reference example includes a memory 1 , a control unit 2 , a first computing unit 11 , a second computing unit 21 , and a latch 22 .
 メモリ1、制御部2、第1演算器11、第2演算器21、及びラッチ22は、同一のクロック信号に同期して動作するように構成される。 The memory 1, the control unit 2, the first calculator 11, the second calculator 21, and the latch 22 are configured to operate in synchronization with the same clock signal.
 メモリ1は、演算に用いられるデータを記憶するように構成される。 The memory 1 is configured to store data used for computation.
 制御部2は、メモリ1を制御するように構成される。制御部2は、制御信号S1をメモリ1に出力し、メモリ1からのデータ読み出し及びメモリ1へのデータ書き込みを制御するように構成される。 The control unit 2 is configured to control the memory 1. The control unit 2 is configured to output a control signal S<b>1 to the memory 1 and control data reading from the memory 1 and data writing to the memory 1 .
 第1演算器11は、メモリ1から読み出される第1データとメモリ1から読み出される第2データとを演算するように構成される。第1演算器11の演算結果は、メモリ1及び第2演算器21に供給される。 The first computing unit 11 is configured to compute the first data read from the memory 1 and the second data read from the memory 1 . The calculation result of the first calculator 11 is supplied to the memory 1 and the second calculator 21 .
 第2演算器21の第1入力端に第1演算器11の演算結果が供給され、第2演算器21の第2入力端にラッチ22の出力が供給される。第2演算器21は、第1演算器11の演算結果と第2演算器21の1つ前の演算結果とを演算するように構成される。第2演算器21の演算結果は、メモリ1及びラッチ22に供給される。 The calculation result of the first calculator 11 is supplied to the first input terminal of the second calculator 21 , and the output of the latch 22 is supplied to the second input terminal of the second calculator 21 . The second calculator 21 is configured to calculate the calculation result of the first calculator 11 and the previous calculation result of the second calculator 21 . A calculation result of the second calculator 21 is supplied to the memory 1 and the latch 22 .
 ラッチ22は、第2演算器21の出力端から第2演算器21の第2入力端に至るフィードバック経路に設けられる。ラッチ22は、第2演算器21の演算結果をラッチするように構成される。これにより、第2演算器21がREDUCE演算を行うことが可能となる。 The latch 22 is provided on a feedback path from the output end of the second computing unit 21 to the second input end of the second computing unit 21 . The latch 22 is configured to latch the computation result of the second computing unit 21 . This enables the second calculator 21 to perform the REDUCE calculation.
 ここで、例として、参考例に係る第1演算器11がREDUCE演算によってデータA1~A8の積を求めるときの処理フローについて図2を参照して説明する。 Here, as an example, the processing flow when the first calculator 11 according to the reference example obtains the product of the data A1 to A8 by the REDUCE calculation will be described with reference to FIG.
 まず、状態ST1において、メモリ1からデータA1及びA5が読み出される。 First, data A1 and A5 are read from the memory 1 in state ST1.
 次に、状態ST2において、第1演算器11がデータA1とデータA5との乗算値であるデータB1をメモリ1に出力し、メモリ1にデータB1が書き込まれる。 Next, in state ST2, the first calculator 11 outputs data B1, which is the product of data A1 and data A5, to memory 1, and data B1 is written in memory 1.
 次に、状態ST3において、メモリ1からデータA2及びA6が読み出される。 Next, in state ST3, data A2 and A6 are read from memory 1.
 次に、状態ST4において、第1演算器11がデータA2とデータA6との乗算値であるデータB2をメモリ1に出力し、メモリ1にデータB2が書き込まれる。 Next, in state ST4, the first calculator 11 outputs data B2, which is the product of data A2 and data A6, to memory 1, and data B2 is written in memory 1.
 次に、状態ST5において、メモリ1からデータA3及びA7が読み出される。 Next, in state ST5, data A3 and A7 are read from memory 1.
 次に、状態ST6において、第1演算器11がデータA3とデータA6との乗算値であるデータB3をメモリ1に出力し、メモリ1にデータB3が書き込まれる。 Next, in state ST6, the first calculator 11 outputs data B3, which is the product of data A3 and data A6, to memory 1, and data B3 is written in memory 1.
 次に、状態ST7において、メモリ1からデータA4及びA8が読み出される。 Next, in state ST7, data A4 and A8 are read from memory 1.
 次に、状態ST8において、第1演算器11がデータA4とデータA8との乗算値であるデータB4をメモリ1に出力し、メモリ1にデータB4が書き込まれる。 Next, in state ST8, the first calculator 11 outputs data B4, which is the product of data A4 and data A8, to memory 1, and data B4 is written in memory 1.
 次に、状態ST9において、メモリ1からデータB1及びB3が読み出される。 Next, in state ST9, data B1 and B3 are read from memory 1.
 次に、状態ST10において、第1演算器11がデータB1とデータB3との乗算値であるデータC1をメモリ1に出力し、メモリ1にデータC1が書き込まれる。 Next, in state ST10, the first calculator 11 outputs data C1, which is the product of data B1 and data B3, to the memory 1, and the data C1 is written in the memory 1.
 次に、状態ST11において、メモリ1からデータB2及びB4が読み出される。 Next, in state ST11, data B2 and B4 are read from memory 1.
 次に、状態ST12において、第1演算器11がデータB2とデータB4との乗算値であるデータC2をメモリ1に出力し、メモリ1にデータC2が書き込まれる。 Next, in state ST12, the first calculator 11 outputs data C2, which is the product of data B2 and data B4, to memory 1, and data C2 is written in memory 1.
 次に、状態ST13において、メモリ1からデータC1及びC2が読み出される。 Next, in state ST13, data C1 and C2 are read from memory 1.
 最後に、状態ST14において、第1演算器11がデータC1とデータC2との乗算値であるデータD1をメモリ1に出力し、メモリ1にデータD1が書き込まれる。これにより、データA1~A8の積がメモリ1に格納される。 Finally, in state ST14, the first calculator 11 outputs data D1, which is the product of data C1 and data C2, to memory 1, and data D1 is written in memory 1. As a result, the product of the data A1 to A8 is stored in the memory 1. FIG.
 参考例に係る演算装置100は、データA1~A8の積を求める場合にメモリ1に頻繁にアクセス必要がある。 The arithmetic device 100 according to the reference example needs frequent access to the memory 1 when obtaining the product of the data A1 to A8.
<実施形態に係る演算装置>
 次に、実施形態について説明する。図3は、実施形態に係る演算装置101の構成を示す図である。ここでは、先述した図1に示した参考例に係る構成との相違点について主に述べる。
<Arithmetic device according to the embodiment>
Next, embodiments will be described. FIG. 3 is a diagram showing the configuration of the arithmetic device 101 according to the embodiment. Here, differences from the configuration according to the reference example shown in FIG. 1 will be mainly described.
 実施形態に係る演算装置101は、メモリ1と、制御部2と、第1演算器11と、第1ラッチ12と、セレクタ13と、第2演算器21と、第2ラッチ22と、を備える。 A computing device 101 according to the embodiment includes a memory 1, a control unit 2, a first computing unit 11, a first latch 12, a selector 13, a second computing unit 21, and a second latch 22. .
 メモリ1、制御部2、第1演算器11、第1ラッチ12、セレクタ13、第2演算器21、及び第2ラッチ22は、同一のクロック信号に同期して動作するように構成される。 The memory 1, control unit 2, first calculator 11, first latch 12, selector 13, second calculator 21, and second latch 22 are configured to operate in synchronization with the same clock signal.
 メモリ1は、演算に用いられるデータを記憶するように構成される。 The memory 1 is configured to store data used for computation.
 制御部2は、メモリ1及びセレクタ13を制御するように構成される。制御部2は、制御信号S1をメモリ1に出力し、メモリ1からのデータ読み出し及びメモリ1へのデータ書き込みを制御するように構成される。また、制御部2は、制御信号(選択信号)S2をセレクタ13に出力し、セレクタ13に2つの入力のいずれか一方を選択させるように構成される。メモリ1から読み書きするデータのメモリアドレスは、連続したものとは限らず、不連続でも構わない。 The control unit 2 is configured to control the memory 1 and the selector 13. The control unit 2 is configured to output a control signal S<b>1 to the memory 1 and control data reading from the memory 1 and data writing to the memory 1 . Also, the control unit 2 is configured to output a control signal (selection signal) S2 to the selector 13 to cause the selector 13 to select one of the two inputs. The memory addresses of data to be read from and written to the memory 1 are not necessarily consecutive, and may be discontinuous.
 第1演算器11は、メモリ1から読み出される第1データとセレクタ13の出力とを演算するように構成される。第1演算器11の演算結果は、第1ラッチ12及び第2演算器21に供給される。 The first computing unit 11 is configured to compute the first data read from the memory 1 and the output of the selector 13 . The calculation result of the first calculator 11 is supplied to the first latch 12 and the second calculator 21 .
 第1演算器11は、例えば、掛け算器、最大値選択回路、又は最小値選択回路であってもよい。また、実施形態に係る演算装置101で実行可能な演算の多様化を図るために、第1演算器11は、例えば、掛け算器、最大値選択回路、及び最小値選択回路を含み、掛け算器、最大値選択回路、及び最小値選択回路の中からいずれか一つを選択できるように構成される回路であってもよい。 The first calculator 11 may be, for example, a multiplier, a maximum value selection circuit, or a minimum value selection circuit. Further, in order to diversify the operations that can be executed by the arithmetic device 101 according to the embodiment, the first arithmetic unit 11 includes, for example, a multiplier, a maximum value selection circuit, and a minimum value selection circuit. The circuit may be configured to select one of the maximum value selection circuit and the minimum value selection circuit.
 第1ラッチ12は、第1演算器11からセレクタ13に至る第1フィードバック経路に設けられる。より詳細には、第1ラッチ12は、第1演算器11の出力端からセレクタ13の第2入力端に至る第1フィードバック経路に設けられる。第1ラッチ12は、第1演算器11の演算結果をラッチするように構成される。 The first latch 12 is provided on the first feedback path from the first calculator 11 to the selector 13 . More specifically, the first latch 12 is provided on a first feedback path from the output end of the first calculator 11 to the second input end of the selector 13 . The first latch 12 is configured to latch the calculation result of the first calculator 11 .
 セレクタ13の第1入力端にメモリ1から読み出される第2データが供給され、セレクタ13の第1入力端に第1ラッチ12の出力が供給される。セレクタ13は、メモリ1から読み出される第2データと第1演算器11の1つ前の演算結果とのいずれか一方を出力するように構成される。 The second data read from the memory 1 is supplied to the first input terminal of the selector 13, and the output of the first latch 12 is supplied to the first input terminal of the selector 13. The selector 13 is configured to output one of the second data read from the memory 1 and the result of the immediately previous operation of the first operator 11 .
 第2演算器21の第1入力端に第1演算器11の演算結果が供給され、第2演算器21の第2入力端に第2ラッチ22の出力が供給される。第2演算器21は、第1演算器11の演算結果と第2演算器21の1つ前の演算結果とを演算するように構成される。第2演算器21の演算結果は、メモリ1及び第2ラッチ22に供給される。 The calculation result of the first calculator 11 is supplied to the first input terminal of the second calculator 21 , and the output of the second latch 22 is supplied to the second input terminal of the second calculator 21 . The second calculator 21 is configured to calculate the calculation result of the first calculator 11 and the previous calculation result of the second calculator 21 . The calculation result of the second calculator 21 is supplied to the memory 1 and the second latch 22 .
 第2演算器21は、例えば、総和演算器であってもよい。例えば第1演算器11が掛け算器であって、第2演算器21が総和演算器である場合、実施形態に係る演算装置101は、3つ以上の数の積の和(Σn[Πm  (xmn)])を演算することができる。また、例えば第1演算器11が最大値選択回路であって、第2演算器21が総和演算器である場合、実施形態に係る演算装置101は、3つ以上の数の最大値の和(Σn[Maxm(xmn)])を演算することができる。 The second calculator 21 may be, for example, a summation calculator. For example, when the first calculator 11 is a multiplier and the second calculator 21 is a summation calculator, the calculator 101 according to the embodiment calculates the sum of products of three or more numbers (Σn[Πm (xmn )]) can be computed. Further, for example, when the first arithmetic unit 11 is a maximum value selection circuit and the second arithmetic unit 21 is a summation arithmetic unit, the arithmetic unit 101 according to the embodiment can calculate the sum of three or more maximum values ( Σn[Maxm(xmn)]) can be calculated.
 第2ラッチ22は、第2演算器21の出力端から第2演算器21の第2入力端に至る第2フィードバック経路に設けられる。第2ラッチ22は、第2演算器21の演算結果をラッチするように構成される。これにより、第2演算器21がREDUCE演算を行うことが可能となる。 The second latch 22 is provided on a second feedback path from the output end of the second computing unit 21 to the second input end of the second computing unit 21 . The second latch 22 is configured to latch the calculation result of the second calculator 21 . This enables the second calculator 21 to perform the REDUCE calculation.
 ここで、例として、本実施形態に係る第1演算器11がREDUCE演算によってデータA1~A8の積を求めるときの処理フローについて図4を参照して説明する。 Here, as an example, the processing flow when the first calculator 11 according to the present embodiment obtains the product of the data A1 to A8 by the REDUCE calculation will be described with reference to FIG.
 まず、状態ST21において、メモリ1からデータA1及びA2が読み出される。 First, data A1 and A2 are read from memory 1 in state ST21.
 次に、状態ST22において、第1演算器11がデータA1とデータA2との乗算値であるデータE1を第1ラッチ12に出力する。 Next, in state ST22, the first arithmetic unit 11 outputs data E1, which is the product of data A1 and data A2, to the first latch 12.
 次に、状態ST23において、第1演算器11にデータA3とデータE1とが供給される。 Next, in state ST23, data A3 and data E1 are supplied to the first computing unit 11.
 次に、状態ST24において、第1演算器11がデータA3とデータE1との乗算値であるデータE2を第1ラッチ12に出力する。 Next, in state ST24, the first calculator 11 outputs to the first latch 12 data E2, which is the product of data A3 and data E1.
 次に、状態ST25において、第1演算器11にデータA4とデータE2とが供給される。 Next, in state ST25, data A4 and data E2 are supplied to the first calculator 11.
 次に、状態ST26において、第1演算器11がデータA4とデータE2との乗算値であるデータE3を第1ラッチ12に出力する。 Next, in state ST26, the first calculator 11 outputs to the first latch 12 data E3, which is the product of data A4 and data E2.
 次に、状態ST27において、第1演算器11にデータA5とデータE3とが供給される。 Next, in state ST27, data A5 and data E3 are supplied to the first computing unit 11.
 次に、状態ST28において、第1演算器11がデータA5とデータE3との乗算値であるデータE4を第1ラッチ12に出力する。 Next, in state ST28, the first arithmetic unit 11 outputs data E4, which is the product of data A5 and data E3, to the first latch 12.
 次に、状態ST29において、第1演算器11にデータA6とデータE4とが供給される。 Next, in state ST29, data A6 and data E4 are supplied to the first arithmetic unit 11.
 次に、状態ST30において、第1演算器11がデータA6とデータE4との乗算値であるデータE5を第1ラッチ12に出力する。 Next, in state ST30, the first arithmetic unit 11 outputs data E5, which is the product of data A6 and data E4, to the first latch 12.
 次に、状態ST31において、第1演算器11にデータA7とデータE5とが供給される。 Next, in state ST31, data A7 and data E5 are supplied to the first computing unit 11.
 次に、状態ST32において、第1演算器11がデータA7とデータE5との乗算値であるデータE6を第1ラッチ12に出力する。 Next, in state ST32, the first computing unit 11 outputs data E6, which is the product of data A7 and data E5, to the first latch 12.
 次に、状態ST33において、第1演算器11にデータA8とデータE6とが供給される。 Next, in state ST33, data A8 and data E6 are supplied to the first arithmetic unit 11.
 最後に、状態ST34において、第1演算器11がデータA8とデータE6との乗算値であるデータE7をメモリ1に出力し、メモリ1にデータE7が書き込まれる。これにより、データA1~A8の積がメモリ1に格納される。 Finally, in state ST34, the first calculator 11 outputs data E7, which is the product of data A8 and data E6, to memory 1, and data E7 is written in memory 1. As a result, the product of the data A1 to A8 is stored in the memory 1. FIG.
 実施形態に係る演算装置101は、データA1~A8の積を求める場合に、データを読み出すためにメモリ1に最初に1回アクセスし、データを書き込みためにメモリ1に最後に1回アクセスするだけで済む。したがって、実施形態に係る演算装置101は、演算実行時間の短縮を図ることができる。 When calculating the product of data A1 to A8, the arithmetic device 101 according to the embodiment first accesses the memory 1 once to read the data and only accesses the memory 1 last time to write the data. is enough. Therefore, the computation device 101 according to the embodiment can shorten the computation execution time.
 なお、上述したデータA1~A8は、例えばベクトルの各要素を順に並べたものであってもよく、また例えば行列の要素を順に並べたものであってもよい。つまり、実施形態に係る演算装置101は、第1演算器11の出力を第1演算器11の入力として用いることで、繰り返しでベクトル演算を実施することができる。 The data A1 to A8 described above may be, for example, the elements of a vector arranged in order, or may be the elements of a matrix arranged in order, for example. That is, the arithmetic device 101 according to the embodiment can repeatedly perform vector arithmetic by using the output of the first arithmetic unit 11 as the input of the first arithmetic unit 11 .
 上述したデータA1~A8は、例えば何らかの時系列のデータであってもよく、また例えば画像の各画素のデータであってもよい。 The data A1 to A8 described above may be, for example, some time-series data, or may be, for example, data of each pixel of an image.
 図4で示された例では、第1演算器11でのREDUCE演算は、積であったが、積以外の演算、例えば最大値選択、最小値選択等であってもよい。 In the example shown in FIG. 4, the REDUCE operation in the first computing unit 11 was the product, but operations other than the product, such as maximum value selection, minimum value selection, etc., may be used.
<異常検出装置への適用>
 実施形態に係る演算装置101は、例えばモータドライバに搭載される。図5は、モータドライバの概略構成を示す図である。モータドライバ200は、駆動制御信号生成回路201と、プリドライバ回路202と、三相インバータ回路203と、異常検出装置204と、端子T1~T6と、を備える。
<Application to abnormality detection device>
The computing device 101 according to the embodiment is mounted on, for example, a motor driver. FIG. 5 is a diagram showing a schematic configuration of a motor driver. The motor driver 200 includes a drive control signal generation circuit 201, a pre-driver circuit 202, a three-phase inverter circuit 203, an abnormality detection device 204, and terminals T1 to T6.
 端子T1は、モータのU相巻線に接続される。端子T2は、モータのV相巻線に接続される。端子T3は、モータのW相巻線に接続される。 The terminal T1 is connected to the U-phase winding of the motor. Terminal T2 is connected to the V-phase winding of the motor. Terminal T3 is connected to the W-phase winding of the motor.
 端子T4は、U相ホールセンサから出力されるU相ホール信号を受け取る。端子T5は、V相ホールセンサから出力されるV相ホール信号を受け取る。端子T6は、W相ホールセンサから出力されるW相ホール信号を受け取る。 The terminal T4 receives the U-phase Hall signal output from the U-phase Hall sensor. A terminal T5 receives a V-phase Hall signal output from the V-phase Hall sensor. A terminal T6 receives a W-phase Hall signal output from the W-phase Hall sensor.
 駆動制御信号生成回路201は、各相ホール信号に基づき、駆動制御信号を生成する。プリドライバ回路202は、駆動制御信号に従って三相インバータ回路203を制御する。三相インバータ回路203は、U相駆動信号を端子T1に出力し、V相駆動信号を端子T2に出力し、W相駆動信号を端子T3に出力する。 A drive control signal generation circuit 201 generates a drive control signal based on each phase Hall signal. The pre-driver circuit 202 controls the three-phase inverter circuit 203 according to the drive control signal. The three-phase inverter circuit 203 outputs the U-phase drive signal to the terminal T1, the V-phase drive signal to the terminal T2, and the W-phase drive signal to the terminal T3.
 異常検出装置204は、各相ホール信号に基づき機械学習を用いて、モータの異常を検出する。機械学習では、実施形態に係る演算装置101の演算結果が用いられる。実施形態に係る演算装置101の演算実行時間が短いため、機械学習において複雑なアルゴリズムを採用することができる。これにより、異常検出装置204における異常検出精度を向上させることができる。 The abnormality detection device 204 detects motor abnormalities using machine learning based on the Hall signals of each phase. Machine learning uses the calculation result of the calculation device 101 according to the embodiment. Since the calculation execution time of the calculation device 101 according to the embodiment is short, a complicated algorithm can be adopted in machine learning. Thereby, the abnormality detection accuracy in the abnormality detection device 204 can be improved.
 上述したモータドライバ200はホール信号を利用する構成であるが、ホール信号を利用しないセンサレスモータドライバに設けられる異常検出装置に、実施形態に係る演算装置101を含めてもよい。センサレスモータドライバは、ロータの回転に伴い発生する逆起電圧を検出することでモータのロータ位置を検知する。 Although the motor driver 200 described above is configured to use Hall signals, the arithmetic device 101 according to the embodiment may be included in an abnormality detection device provided in a sensorless motor driver that does not use Hall signals. A sensorless motor driver detects the rotor position of a motor by detecting a back electromotive force generated as the rotor rotates.
 また、加速度センサの出力信号を利用する異常検出装置に、実施形態に係る演算装置101を含めてもよい。加速度センサの取り付け場所としては、例えば、移動体、回転体、回転体付近等を挙げることができる。移動体としては、例えば、車両、エレベータ、工場内の運搬装置等がある。回転体としては、例えば、機械の回転シャフト等がある。回転体付近としては、例えば軸受け等がある。 Also, the arithmetic device 101 according to the embodiment may be included in an abnormality detection device that uses the output signal of the acceleration sensor. Examples of the mounting location of the acceleration sensor include a moving body, a rotating body, and the vicinity of the rotating body. Examples of mobile objects include vehicles, elevators, and transport devices in factories. Rotating bodies include, for example, rotating shafts of machines. The vicinity of the rotating body includes, for example, bearings.
 図6は、加速度信号及び異常値の一例を示す図である。図6において、縦軸は加速度信号x、y、及びzの各値並びに異常値を示しており、横軸は時間を示している。加速度信号x、y、及びzは、加速度センサの出力信号である。加速度信号xは、X軸方向の加速度を示す加速度センサの出力信号である。加速度信号yは、Y軸方向の加速度を示す加速度センサの出力信号である。加速度信号zは、Z軸方向の加速度を示す加速度センサの出力信号である。X軸、Y軸、Z軸は互いに直交している。例えば、時系列で100個の加速度信号x、同じ時間の時系列で100個の加速度信号y、同じ時間の時系列で100個の加速度信号zを順に並べたものを実施形態に係る演算装置101の入力とすることで、異常検出装置は一つの異常値を計算することができる。図6に示されている異常値は、異常検出装置によって計算された異常値である。 FIG. 6 is a diagram showing an example of acceleration signals and abnormal values. In FIG. 6, the vertical axis indicates each value and abnormal value of the acceleration signals x, y, and z, and the horizontal axis indicates time. Acceleration signals x, y, and z are the output signals of the acceleration sensor. An acceleration signal x is an output signal of an acceleration sensor indicating acceleration in the X-axis direction. An acceleration signal y is an output signal of an acceleration sensor indicating acceleration in the Y-axis direction. The acceleration signal z is an output signal of the acceleration sensor indicating acceleration in the Z-axis direction. The X-axis, Y-axis, and Z-axis are orthogonal to each other. For example, 100 acceleration signals x in time series, 100 acceleration signals y in the same time series, and 100 acceleration signals z in the same time series are arranged in this order. By inputting , the anomaly detection device can calculate one anomaly value. The outliers shown in FIG. 6 are the outliers calculated by the anomaly detector.
 例えば、異常検出装置204が加速度センサの出力信号を利用する異常検出装置であって、異常検出装置204によって計算された異常値があらかじめ設定した閾値以上となった場合、駆動制御信号生成回路201が三相インバータ回路203を停止させてもよい。 For example, when the abnormality detection device 204 is an abnormality detection device that uses the output signal of an acceleration sensor, and the abnormality value calculated by the abnormality detection device 204 exceeds a preset threshold value, the drive control signal generation circuit 201 The three-phase inverter circuit 203 may be stopped.
 また例えば、異常検出装置204が加速度センサの出力信号を利用する異常検出装置であって、予め設定した閾値時間以上にわたって、異常検出装置204によって計算された異常値があらかじめ設定した閾値以上となった場合、駆動制御信号生成回路201が三相インバータ回路203を停止させてもよい。 Further, for example, the abnormality detection device 204 is an abnormality detection device that uses the output signal of an acceleration sensor, and the abnormality value calculated by the abnormality detection device 204 is equal to or greater than the preset threshold for a preset threshold time or longer. In this case, the drive control signal generation circuit 201 may stop the three-phase inverter circuit 203 .
 また例えば、異常検出装置204が加速度センサの出力信号を利用する異常検出装置であって、異常検出装置204によって計算された異常値があらかじめ設定した閾値以上となった場合、異常検出装置204が、モータドライバ200を搭載する装置に異常を通知してもよい。 Further, for example, when the abnormality detection device 204 is an abnormality detection device that uses the output signal of an acceleration sensor, and the abnormality value calculated by the abnormality detection device 204 exceeds a preset threshold value, the abnormality detection device 204 An abnormality may be notified to a device in which the motor driver 200 is mounted.
<その他>
 本明細書中に開示されている種々の技術的特徴は、上記実施形態のほか、その技術的創作の主旨を逸脱しない範囲で種々の変更を加えることが可能である。すなわち、上記実施形態は、全ての点で例示であって制限的なものではないと考えられるべきであり、本発明の技術的範囲は、上記実施形態の説明ではなく、特許請求の範囲によって示されるものであり、特許請求の範囲と均等の意味及び範囲内に属する全ての変更が含まれると理解されるべきである。
<Others>
Various modifications can be made to the various technical features disclosed in this specification without departing from the gist of the technical creation in addition to the above-described embodiments. That is, the above-described embodiments should be considered as examples and not restrictive in all respects, and the technical scope of the present invention is indicated by the scope of claims rather than the description of the above-described embodiments. It should be understood that all changes that fall within the meaning and range of equivalency to the claims are included.
 以上説明した演算装置(101)は、メモリ(1)と、セレクタ(13)と、前記メモリから読み出される第1データと前記セレクタの出力とを演算するように構成される第1演算器(11)と、前記第1演算器の出力を用いて演算を行うように構成される第2演算器(21)と、を備え、前記セレクタは、前記メモリから読み出される第2データと前記第1演算器の1つ前の演算結果とのいずれか一方を出力するように構成される構成(第1の構成)である。 The arithmetic device (101) described above includes a memory (1), a selector (13), and a first arithmetic unit (11 ), and a second computing unit (21) configured to perform computation using the output of the first computing unit, wherein the selector comprises second data read from the memory and the first computation This is a configuration (first configuration) that is configured to output either one of the computation result of the unit and the one immediately before.
 上記第1の構成である演算装置は、メモリにアクセスする回数を減らすことができる。したがって、上記第1の構成である演算装置は、演算実行時間の短縮を図ることができる。 The computing device having the first configuration can reduce the number of times the memory is accessed. Therefore, the computing device having the first configuration can shorten the computing execution time.
 上記第1の構成である演算装置において、前記第1演算器から前記セレクタに至る第1フィードバック経路に設けられる第1ラッチ(12)を備える構成(第2の構成)であってもよい。 The arithmetic device having the first configuration may have a configuration (second configuration) including a first latch (12) provided in a first feedback path from the first computing unit to the selector.
 上記第2の構成である演算装置は、簡単な構成で第1演算器の1つ前の演算結果を供給することができる。 The computing device having the above second configuration can supply the previous computing result of the first computing unit with a simple configuration.
 上記第2の構成である演算装置において、前記第2演算器の出力端から前記第2演算器の入力端に至る第2フィードバック経路に設けられる第2ラッチ(22)を備える構成(第3構成)であってもよい。 In the computing device having the second configuration, a configuration (third configuration ).
 上記第3構成である演算装置は、第2演算器においてREDUCE演算が可能となる。 The computing device having the above third configuration is capable of REDUCE computation in the second computing unit.
 上記第1~第3いずれかの構成である演算装置において、前記メモリ及び前記セレクタを制御するように構成される制御部(2)を備える構成(第4構成)であってもよい。 The arithmetic device having any one of the first to third configurations may have a configuration (fourth configuration) including a control section (2) configured to control the memory and the selector.
 上記第4構成である演算装置は、外部からの制御信号を受け取らずに、演算処理を実行することが可能となる。 The arithmetic device having the fourth configuration above can execute arithmetic processing without receiving a control signal from the outside.
 上記第1~第4いずれかの構成である演算装置において、前記第1演算器は、掛け算器、最大値選択回路、及び最小値選択回路を含み、前記掛け算器、前記最大値選択回路、及び前記最小値選択回路の中からいずれか一つを選択できるように構成される回路である構成(第5構成)であってもよい。 In the arithmetic device having any one of the first to fourth configurations, the first arithmetic unit includes a multiplier, a maximum value selection circuit, and a minimum value selection circuit, and the multiplier, the maximum value selection circuit, and A configuration (fifth configuration) that is a circuit configured to select one of the minimum value selection circuits may be employed.
 上記第5構成である演算装置は、実行可能な演算の多様化を図ることができる。 The computing device having the fifth configuration can diversify executable computations.
 以上説明した異常検出装置は、上記第1~第4いずれかの構成である演算装置を備える構成(第5構成)であってもよい。 The abnormality detection device described above may have a configuration (fifth configuration) including an arithmetic device having any one of the first to fourth configurations.
 上記第5構成である異常検出装置では、演算装置における演算実行時間の短縮を図ることができる。 In the abnormality detection device having the fifth configuration, it is possible to shorten the computation execution time of the computation device.
   1 メモリ
   2 制御部
   11 第1演算器
   12 第1ラッチ
   13 セレクタ
   21 第2演算器
   22 ラッチ、第2ラッチ
   100 参考例に係る演算装置
   101 実施形態に係る演算装置
   200 モータドライバ
   201 駆動制御信号生成回路
   202 プリドライバ回路
   203 三相インバータ回路
   204 異常検出装置
   T1~T6 端子
1 memory 2 control unit 11 first arithmetic unit 12 first latch 13 selector 21 second arithmetic unit 22 latch, second latch 100 arithmetic device according to reference example 101 arithmetic device according to embodiment 200 motor driver 201 drive control signal generation circuit 202 pre-driver circuit 203 three-phase inverter circuit 204 abnormality detection device T1 to T6 terminals

Claims (6)

  1.  メモリと、
     セレクタと、
     前記メモリから読み出される第1データと前記セレクタの出力とを演算するように構成される第1演算器と、
     前記第1演算器の出力を用いて演算を行うように構成される第2演算器と、
     を備え、
     前記セレクタは、前記メモリから読み出される第2データと前記第1演算器の1つ前の演算結果とのいずれか一方を出力するように構成される、演算装置。
    memory;
    a selector;
    a first computing unit configured to compute first data read from the memory and the output of the selector;
    a second computing unit configured to perform computation using the output of the first computing unit;
    with
    The arithmetic device, wherein the selector is configured to output one of the second data read from the memory and the previous arithmetic result of the first arithmetic unit.
  2.  前記第1演算器から前記セレクタに至る第1フィードバック経路に設けられる第1ラッチを備える、請求項1に記載の演算装置。 2. The computing device according to claim 1, comprising a first latch provided on a first feedback path from said first computing unit to said selector.
  3.  前記第2演算器の出力端から前記第2演算器の入力端に至る第2フィードバック経路に設けられる第2ラッチを備える、請求項1又は請求項2に記載の演算装置。 3. The computing device according to claim 1, comprising a second latch provided on a second feedback path from the output end of the second computing unit to the input end of the second computing unit.
  4.  前記メモリ及び前記セレクタを制御するように構成される制御部を備える、請求項1~3のいずれか一項に記載の演算装置。 The arithmetic device according to any one of claims 1 to 3, comprising a control unit configured to control said memory and said selector.
  5.  前記第1演算器は、掛け算器、最大値選択回路、及び最小値選択回路を含み、前記掛け算器、前記最大値選択回路、及び前記最小値選択回路の中からいずれか一つを選択できるように構成される回路である、請求項1~4のいずれか一項に記載の演算装置。 The first calculator includes a multiplier, a maximum value selection circuit, and a minimum value selection circuit, and can select any one of the multiplier, the maximum value selection circuit, and the minimum value selection circuit. The arithmetic device according to any one of claims 1 to 4, which is a circuit configured with:
  6.  請求項1~5のいずれか一項に記載の演算装置を備える、異常検出装置。 An anomaly detection device comprising the arithmetic device according to any one of claims 1 to 5.
PCT/JP2023/006977 2022-02-28 2023-02-27 Computation device and anomaly detection device WO2023163156A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2022-029023 2022-02-28
JP2022029023 2022-02-28

Publications (1)

Publication Number Publication Date
WO2023163156A1 true WO2023163156A1 (en) 2023-08-31

Family

ID=87766245

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2023/006977 WO2023163156A1 (en) 2022-02-28 2023-02-27 Computation device and anomaly detection device

Country Status (1)

Country Link
WO (1) WO2023163156A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124299A (en) * 1992-06-01 1994-05-06 Seiko Epson Corp Matrix arithmetic circuit and storage means

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124299A (en) * 1992-06-01 1994-05-06 Seiko Epson Corp Matrix arithmetic circuit and storage means

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
AZETSU, AKIHIRO: "First numerical calculation circuit design", INTAFESU -INTERFACE, CO SHUPPAN, TOKYO, JP, vol. 16, no. 12, 1 December 1990 (1990-12-01), JP , pages 148 - 158, XP009548777, ISSN: 0387-9569 *

Similar Documents

Publication Publication Date Title
JP4677037B2 (en) Servo controller that suppresses backlash
US10481566B2 (en) Machine learning device, servo control device, servo control system and machine learning method
TWI470545B (en) Apparatus,processor,system,method,instruction,and logic for performing range detection
JP6386492B2 (en) Servo control device, servo control method and servo control program with filter added to proportional term calculated at high speed
JP6457569B2 (en) Servo motor control device, servo motor control method, and servo motor control program
US10126734B2 (en) Servo control apparatus for driving plurality of motors
WO2023163156A1 (en) Computation device and anomaly detection device
CN114131611A (en) Joint error offline compensation method, system and terminal for robot gravity pose decomposition
JP6851544B2 (en) Motor drive device and method for controlling the operation of the induction motor
WO1988007229A1 (en) Output system for determining axial speed
CN107894749A (en) Servo motor control unit and its method, computer-readable recording medium
JP2014119903A (en) Control device, control program, and control method
JP3929828B2 (en) Servo control device
WO2021240959A1 (en) Abnormal device determination system
EP3495947B1 (en) Operation device and method of operating same
KR101059029B1 (en) Position decision module
JP6736398B2 (en) Vehicle control device
JP6000496B1 (en) Numerical controller
JP2020090168A (en) Electric power steering device
KR100925274B1 (en) Circuit and apparatus for controlling multi-axis motion
JP2007073071A (en) Servo controller
CN117639607B (en) Motor control method, device, equipment and storage medium
US20210279518A1 (en) Learning method, learning system, and learning program
WO2022138798A1 (en) Characteristic calculation device, characteristic calculation method, and program
JP3773033B2 (en) Data arithmetic processing apparatus and data arithmetic processing program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23760154

Country of ref document: EP

Kind code of ref document: A1