JP2013242828A - Data consistency guarantee system - Google Patents
Data consistency guarantee system Download PDFInfo
- Publication number
- JP2013242828A JP2013242828A JP2012117150A JP2012117150A JP2013242828A JP 2013242828 A JP2013242828 A JP 2013242828A JP 2012117150 A JP2012117150 A JP 2012117150A JP 2012117150 A JP2012117150 A JP 2012117150A JP 2013242828 A JP2013242828 A JP 2013242828A
- Authority
- JP
- Japan
- Prior art keywords
- data
- data reference
- storage buffer
- buffer
- storage
- 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
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
【課題】複数のデータ参照S/Wの演算に用いるデータの整合性保証が得られるデータ整合性保障システムを得る。
【解決手段】データ参照S/W1、2、3が演算に用いるデータを演算用データ保管バッファ41で保管し、この演算用データ保管バッファ41は、データ参照S/W1、2、3による演算用データ保管バッファ41の参照有無を記録するデータ参照有無記録領域411を有し、バッファ管理S/W4は、データ参照有無記録領域411の記録に応じて、最新データの演算用データ保管バッファ41への格納と、データ参照S/W1、2、3からのデータ参照要求に対し、演算用データ保管バッファ41の参照指示と、データ参照有無記録領域411の記録の更新を行い、データ参照有無記録領域411が、すべてのデータ参照S/Wによって参照済みのとき、すべてのデータ参照S/Wの未参照にする。
【選択図】図1A data integrity guarantee system capable of guaranteeing the integrity of data used for calculation of a plurality of data reference S / Ws.
Data used by a data reference S / W1, 2, and 3 is stored in a calculation data storage buffer 41. The calculation data storage buffer 41 is used for calculation by a data reference S / W1, 2, and 3. A data reference presence / absence recording area 411 for recording the presence / absence of reference to the data storage buffer 41 is provided, and the buffer management S / W 4 stores the latest data in the data storage buffer 41 for calculation according to the recording in the data reference presence / absence recording area 411. In response to the data reference request from the storage and data reference S / W 1, 2, 3, the reference instruction of the operation data storage buffer 41 and the update of the data reference presence / absence recording area 411 are performed, and the data reference presence / absence recording area 411 is updated. However, when all the data references S / W have already been referenced, all the data references S / W are made unreferenced.
[Selection] Figure 1
Description
この発明は、複数のデータ参照S/W(ソフトウェア)に対するデータの整合性保証を与えるデータ整合性保障システムに関するものである。 The present invention relates to a data integrity assurance system that provides data integrity assurance for a plurality of data reference S / Ws (software).
近年の自動車は、様々なセンサより得られた情報を用いることで高度な制御を実現している。例えば、車輌統合制御では、車速/加速度/ヨーレート/操舵角/アクセル開度などの情報を基にして車輌の挙動を推定し、車輌の挙動を安定化する方向にアンチロックブレーキシステム(以降、ABS)やトラクションコントロールシステム(以降、TCS)、電動パワーステアリング(以降、EPS)を制御する。
車両統合制御において、ABS、TCS、EPSの制御ソフトウェア(S/W)は、車両の挙動を統合的に制御するシステムの構成要素の一つと考え、個々の制御S/Wがそれぞれ独立に制御するのではなく、統合的に制御する。
また、ABS、TCS、EPSの各制御S/Wが、それぞれ共通で用いるデータとして車速がある。もし、各制御S/Wが同一タイミングで更新されていない車速データを用いた場合、車両全体の挙動は不安定になる。したがって、各制御S/Wは同一タイミングに更新されたデータ、つまり、整合性の保証されたデータを基に演算することが重要となる。
また、車速データのような時系列的に取得できるデータにおいて、整合性を保証できるデータの数が多いほど、それを用いて演算する制御S/Wの制御周期を短くすることができ、より滑らかに車両の挙動を制御できる。
Recent automobiles realize advanced control by using information obtained from various sensors. For example, in vehicle integrated control, the behavior of a vehicle is estimated based on information such as vehicle speed / acceleration / yaw rate / steering angle / accelerator opening, and the anti-lock brake system (hereinafter referred to as ABS) is applied in a direction to stabilize the vehicle behavior. ), Traction control system (hereinafter TCS), and electric power steering (hereinafter EPS).
In vehicle integrated control, ABS, TCS, and EPS control software (S / W) is considered as one of the components of a system that controls vehicle behavior in an integrated manner, and each control S / W controls each independently. Instead of integrated control.
Further, there is a vehicle speed as data commonly used by each control S / W of ABS, TCS, and EPS. If each control S / W uses vehicle speed data that is not updated at the same timing, the behavior of the entire vehicle becomes unstable. Therefore, it is important for each control S / W to perform calculations based on data updated at the same timing, that is, data with guaranteed consistency.
In addition, in data that can be acquired in time series such as vehicle speed data, the greater the number of data that can guarantee consistency, the shorter the control cycle of the control S / W that is calculated using it, and smoother It is possible to control the behavior of the vehicle.
特許文献1は、データを参照して何らかの演算を行うS/W(データ参照S/W)とデータを公開するS/W(データ公開S/W)のそれぞれにおいて、処理の実行優先度が設定されている。
データ公開S/Wは、データ参照S/Wに対して提供するデータとして、公開データと保管データの2種類を持つ。公開データには最新データが、保管データには整合性を保証するデータが格納されている。
データ公開S/Wは、データ参照S/Wが参照要求をしてきた際、自身の実行優先度とデータ参照S/Wの実行優先度を比較することで、データ参照S/Wの参照先を公開データか保管データのどちらかに切り替える。
整合性の保証されたデータを基に演算処理を行うデータ参照S/Wに対しては、データ公開S/Wよりも低い実行優先度を設定することで、データの整合性を確保している。
In
The data disclosure S / W has two types of data to be provided to the data reference S / W: public data and storage data. The latest data is stored in the public data, and data that guarantees consistency is stored in the stored data.
When the data reference S / W makes a reference request, the data disclosure S / W compares the execution priority of the data reference S / W with the execution priority of the data reference S / W, thereby determining the reference destination of the data reference S / W. Switch to public data or stored data.
For the data reference S / W that performs arithmetic processing based on data with guaranteed consistency, the execution priority is set lower than the data disclosure S / W, thereby ensuring data consistency. .
データ公開S/Wによるデータ更新処理と複数あるデータ参照S/Wの演算処理の理想的な起動順番は、全部のデータ参照S/Wの処理が完了してから、データ公開S/Wによる保管データの更新処理を行う起動順番(後述する図2参照)である。このような条件の場合、特許文献1に記載されたデータ整合性保証方法を用いることで、データの整合性を十分に保証できる。
The ideal activation order of the data update processing by the data disclosure S / W and the calculation processing of a plurality of data reference S / Ws is to be stored by the data disclosure S / W after all the data reference S / W processing is completed. This is the activation order for performing data update processing (see FIG. 2 described later). Under such conditions, the data consistency can be sufficiently guaranteed by using the data consistency guarantee method described in
しかし、必ずしも理想的な順番でデータの更新処理と複数あるデータ参照S/Wの演算
処理が行われるとは限らない。
その一例として、その他のS/Wの割り込み処理などにより、データの更新処理が遅れた結果、R+1サイクル目のデータ参照S/W1とデータ参照S/W2の演算処理の間にデータの更新処理が入った場合(後述する図3参照)、更新処理が間に入ったことにより、データ参照S/W1は保管データNを、データ参照S/W2とデータ参照S/W3は保管データN+1を用いて演算することになり、R+1サイクル目の演算に用いるデータの整合性が保証できない。
However, the update process of data and the calculation process of a plurality of data reference S / Ws are not necessarily performed in an ideal order.
As an example, data update processing is delayed between the data reference S / W1 and the data reference S / W2 in the R + 1 cycle as a result of data update processing being delayed due to other S / W interrupt processing or the like. If entered (see FIG. 3 to be described later), the data reference S / W1 uses the stored data N, and the data reference S / W2 and the data reference S / W3 use the stored data N + 1 because the update process has been inserted. Since the calculation is performed, the consistency of data used for the calculation in the R + 1 cycle cannot be guaranteed.
また、マルチタスク/マルチスレッド/マルチコアなどで構成されたシステムにおいて、複数あるデータ参照S/Wの起動順番が毎回同じになるような処理を施していない場合、その他のS/Wの割り込み処理などによりデータ参照S/Wの起動順番が入れ替わり、1サイクルの処理が完了するまでの間に同じデータ参照S/Wが複数回起動することもある(後述する図7参照)。
例えば、Rサイクル目のデータ参照S/W3とR+1サイクル目のデータ参照S/W1の起動順番が入れ替わり、Rサイクル目のデータ参照S/Wの処理が完了するまでにデータ参照S/W1が2回起動した場合に、整合性を保証できるデータの数は一つのみとすると、Rサイクル目のデータ参照S/W3はデータN+1を参照するしかないので、Rサイクル目のデータ参照S/Wが演算に用いたデータの整合性は崩れる。
したがって、整合性を保証できるデータの数が一つのみの場合、データ参照S/Wの起動順番が入れ替わった時などに、入れ替わったどちらかのデータ参照S/Wが演算に用いたデータの整合性を保証することができない。
車両統合制御において同様な現象が起こった場合、整合性の保証されていないデータを基に演算した各制御S/Wの結果は、制御に用いることができないので、車両統合制御から与える制御値のタイミングが不規則になり、車両の挙動は不安定になるという問題があった。
In addition, in a system configured with multitask / multithread / multicore, etc., if the processing in which the activation order of a plurality of data reference S / Ws is not the same every time, other S / W interrupt processing, etc. As a result, the activation order of the data reference S / W is changed, and the same data reference S / W may be activated a plurality of times until one cycle of processing is completed (see FIG. 7 described later).
For example, the activation order of the data reference S / W3 in the R cycle and the data reference S / W1 in the R + 1 cycle are switched, and the data reference S / W1 becomes 2 before the processing of the data reference S / W in the R cycle is completed. If the number of data that can guarantee the consistency is only one when the activation is performed once, the data reference S / W3 in the R cycle can only refer to the data N + 1. The consistency of the data used for the calculation is lost.
Therefore, when the number of data that can guarantee the consistency is only one, when the start order of the data reference S / W is changed, the data used by the replaced data reference S / W for the calculation is matched. Sex cannot be guaranteed.
When the same phenomenon occurs in the vehicle integrated control, the result of each control S / W calculated based on the data whose consistency is not guaranteed cannot be used for the control. There is a problem that the timing becomes irregular and the behavior of the vehicle becomes unstable.
この発明は、上記のような課題を解決するためになされたものであり、複数のデータ参照S/Wの演算に用いるデータの整合性保証が得られるデータ整合性保障システムを得ることを目的としている。 The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a data integrity guarantee system that can guarantee the integrity of data used to calculate a plurality of data reference S / Ws. Yes.
この発明に係わるデータ整合性保証システムにおいては、それぞれデータを用いて演算を行う複数のデータ参照手段、このデータ参照手段による演算に用いるデータを保管するとともに、データ参照手段によるデータの参照有無を記録するデータ参照有無記録領域を有する保管バッファ、及びこの保管バッファへのデータの保管と、この保管されたデータに対するデータ参照手段による参照とを管理するバッファ管理手段を備え、バッファ管理手段は、保管バッファのデータ参照有無記録領域で、すべてのデータ参照手段が未参照の場合、新たなデータを保管バッファへ格納し、データ参照手段が保管バッファに保管されたデータを参照要求した場合、データ参照有無記録領域で当該データ参照手段が未参照であれば、当該データ参照手段に対し、保管バッファのデータの参照を指示するとともに、データ参照有無記録領域に当該データ参照手段による参照を記録し、保管バッファのデータ参照有無記録領域が、すべてのデータ参照手段によって参照済みとなった場合、保管バッファのデータ参照有無記録領域をすべてのデータ参照手段が未参照にするものである。 In the data integrity guarantee system according to the present invention, a plurality of data reference means for performing calculations using data respectively, data used for the calculations by the data reference means are stored, and whether data is referenced by the data reference means is recorded. A storage buffer having a data reference presence / absence recording area, and buffer management means for managing storage of data in the storage buffer and reference by the data reference means for the stored data. In the data reference presence / absence recording area, when all data reference means are unreferenced, new data is stored in the storage buffer, and when the data reference means requests reference to data stored in the storage buffer, data reference presence / absence recording is performed. If the data reference means is unreferenced in the area, the data reference means In addition, the reference of the data in the storage buffer is instructed, the reference by the data reference means is recorded in the data reference presence / absence recording area, and the data reference presence / absence recording area of the storage buffer is already referenced by all the data reference means In this case, all data reference means unreference the data reference presence / absence recording area of the storage buffer.
この発明によれば、それぞれデータを用いて演算を行う複数のデータ参照手段、このデータ参照手段による演算に用いるデータを保管するとともに、データ参照手段によるデータの参照有無を記録するデータ参照有無記録領域を有する保管バッファ、及びこの保管バッファへのデータの保管と、この保管されたデータに対するデータ参照手段による参照とを管理するバッファ管理手段を備え、バッファ管理手段は、保管バッファのデータ参照有無記録領域で、すべてのデータ参照手段が未参照の場合、新たなデータを保管バッファへ格納し、データ参照手段が保管バッファに保管されたデータを参照要求した場合、データ参照有無記録領域で当該データ参照手段が未参照であれば、当該データ参照手段に対し、保管バッファのデータの参照を指示するとともに、データ参照有無記録領域に当該データ参照手段による参照を記録し、保管バッファのデータ参照有無記録領域が、すべてのデータ参照手段によって参照済みとなった場合、保管バッファのデータ参照有無記録領域をすべてのデータ参照手段が未参照にするので、データの整合性が崩れないタイミングで新たなデータを保管バッファへ格納させ、複数のデータ参照手段が演算に用いるデータの整合性を保証することができる。 According to this invention, the data reference presence / absence recording area for storing a plurality of data reference means for performing calculations using data, storing data used for the calculation by the data reference means, and recording the presence / absence of data reference by the data reference means And a buffer management means for managing storage of data in the storage buffer and reference by the data reference means for the stored data, the buffer management means including a data reference presence / absence recording area of the storage buffer When all the data reference means are unreferenced, new data is stored in the storage buffer. When the data reference means requests reference to the data stored in the storage buffer, the data reference means is stored in the data reference presence / absence recording area. Is not referenced, the data reference means is referred to the data in the storage buffer. When the reference by the data reference means is recorded in the data reference presence / absence recording area and the data reference presence / absence recording area of the storage buffer is already referenced by all the data reference means, the data reference presence / absence recording of the storage buffer is recorded. Since all data reference means make the area unreferenced, new data is stored in the storage buffer at the timing when the data consistency is not lost, and the consistency of data used by multiple data reference means is guaranteed. Can do.
実施の形態1.
<構成>
以下、実施の形態1による、車輌の挙動を安定化する方向に制御するための車輌統合制御システム(データ整合性保障システム)について説明する。
図1は、この発明の実施の形態1による車輌統合制御システムのシステム構成を示す概略図である。
図1において、車輌統合制御システムは、それぞれデータを用いて演算するデータ参照S/W1〜3(データ参照手段)と、データ参照S/W1〜3が演算に用いるデータを保管する演算用データ保管バッファ41(保管バッファ)と、この演算用データ保管バッファ41を管理するバッファ管理S/W4(バッファ管理手段)から構成され、これらのデータ参照S/W1〜3とバッファ管理S/W4は、コンピュータにより実行される。
演算用データ保管バッファ41は、データ参照S/W1〜3の参照有無情報を記録する領域であるデータ参照有無記録領域411を有する。
データ参照S/W1は、ABS制御S/Wである。データ参照S/W2は、TCS制御S/Wである。データ参照S/W3は、EPS制御S/Wである。
バッファ管理S/W4は、データ参照S/Wのデータ参照要求によって、データ参照有無記録領域411に記録された情報に基づいて、データ参照S/Wに対して、演算用データ保管バッファ41を参照するように指示し、データ参照有無記録領域411に記録された参照有無情報を更新する。
ここで、説明の簡略化のため、扱うデータは車速データのみとする。この理由は、ABS制御S/W、TCS制御S/W、EPS制御S/Wのすべてにおいて、車速データのみ共通で使用するからである。各データ参照S/Wの動作例については後述にて説明する。
<Configuration>
Hereinafter, a vehicle integrated control system (data consistency guarantee system) for controlling the vehicle behavior in a direction to stabilize the vehicle according to the first embodiment will be described.
1 is a schematic diagram showing a system configuration of a vehicle integrated control system according to
In FIG. 1, the vehicle integrated control system includes data references S / W1 to 3 (data reference means) that calculate using data, and data storage for calculation that stores data used by the data references S / W1 to S3. The buffer 41 (storage buffer) and the buffer management S / W 4 (buffer management means) for managing the calculation
The calculation
The data reference S / W1 is an ABS control S / W. The data reference S / W2 is a TCS control S / W. The data reference S / W3 is an EPS control S / W.
The buffer management S / W 4 refers to the calculation
Here, for simplification of explanation, it is assumed that the data handled is only vehicle speed data. This is because only the vehicle speed data is commonly used in all of the ABS control S / W, the TCS control S / W, and the EPS control S / W. An operation example of each data reference S / W will be described later.
図2は、車輌統合制御システムにおける理想的なデータ更新処理と複数のデータ参照S/Wの演算処理順番を示す図である。
図2において、Rサイクル目として、ステップS201、S301、S401で、データ参照S/W1、データ参照S/W2、データ参照S/W3がそれぞれ起動され、データ参照した後に、ステップS501で、バッファ管理S/W4が、最新データN+1を取得し、次いで、R+1サイクル目として、ステップS202、S302、S402で、データ参照S/W1、データ参照S/W2、データ参照S/W3がそれぞれ起動され、データ参照した後に、ステップS502で、バッファ管理S/W4が、最新データN+2を取得し、次いで、ステップS203、S303、S403で、データ参照S/W1、データ参照S/W2、データ参照S/W3がそれぞれ起動され、データ参照する。
FIG. 2 is a diagram showing an ideal data update process and a calculation process order of a plurality of data reference S / Ws in the vehicle integrated control system.
In FIG. 2, as the R cycle, in steps S201, S301, and S401, the data reference S / W1, the data reference S / W2, and the data reference S / W3 are activated, and after the data reference, the buffer management is performed in step S501. The S / W 4 acquires the latest data N + 1, and then, in the R + 1 cycle, in steps S202, S302, and S402, the data reference S / W1, the data reference S / W2, and the data reference S / W3 are activated, respectively. After the reference, in step S502, the buffer management S / W4 acquires the latest data N + 2, and then in steps S203, S303, and S403, the data reference S / W1, the data reference S / W2, and the data reference S / W3 are obtained. Each is activated and references data.
図3は、この発明の実施の形態1による車輌統合制御システムの動作例1におけるデータ参照S/Wの演算処理順番を示す図である。
図3において、ステップS511の最新データN+1取得が、データ参照S/W1の起動より後になっている。詳細については後述する。
FIG. 3 is a diagram showing the calculation processing order of the data reference S / W in the operation example 1 of the vehicle integrated control system according to the first embodiment of the present invention.
In FIG. 3, the latest data N + 1 acquisition in step S511 is after the start of the data reference S / W1. Details will be described later.
次に、動作について説明する。
バッファ管理S/W4は、演算用データ保管バッファ41のデータ参照有無記録領域411にどのデータ参照S/Wも参照済みでなかった場合、取得した最新データを演算用データ保管バッファ41に格納する。演算用データ保管バッファ41のデータ参照有無記録領域に一つでも参照済みのデータ参照S/Wが存在した場合は、最新データを演算用データ保管バッファ41に格納しない。
なお、最新のデータを取得する周期が遅い場合には、一旦最新のデータを別の保管バッファに格納し、データの整合性を崩さないタイミングにて、別の保管バッファに格納された最新データを演算用データ保管バッファ41にコピーするものとしても良い。
Next, the operation will be described.
When no data reference S / W has been referred to the data reference presence /
If the latest data acquisition cycle is slow, the latest data is temporarily stored in another storage buffer, and the latest data stored in another storage buffer is stored at a timing that does not destroy the integrity of the data. It may be copied to the calculation
また、バッファ管理S/W4は、演算用データ保管バッファ41のデータ参照有無記録領域411の情報に基づいて、参照要求を出してきたデータ参照S/Wに対して演算用データ保管バッファ41に格納されたデータの参照許可/不許可を出す。
そして、データ参照有無記録領域411に参照済みとなったデータ参照S/Wを記録する。
また、バッファ管理S/W4は、すべてのデータ参照S/Wが演算用データ保管バッファ41に保管されたデータを参照した場合、演算用データ保管バッファ41のデータ参照有無記録領域411をすべて未参照にする。
Further, the buffer management S / W 4 stores the data reference S / W that has issued a reference request in the calculation
Then, the data reference S / W that has been referred to is recorded in the data reference presence /
Further, when all the data references S / W refer to the data stored in the operation
<処理フロー>
次に、バッファ管理S/W4の処理の流れを、図4のフローチャートを用いて説明する
。
バッファ管理S/W4は、最新データの取得やデータ参照S/W1〜3の参照要求によって、もしくは周期起動によって起動するものとする。実施の形態1では、最新データの取得やデータ参照S/Wの参照要求によって起動する場合で説明を行う。
始めに、バッファ管理S/W4は、最新データの取得とデータ参照S/Wの参照要求のどちらによって起動したかを確認する(S1011)。最新データの取得による場合は、ステップS1012へ、データ参照S/Wの参照要求による場合は、ステップS1014へ進む。
<Processing flow>
Next, the flow of processing of the buffer management S / W 4 will be described using the flowchart of FIG.
The buffer management S / W4 is activated by acquisition of the latest data, a reference request for the data reference S / W1 to S3, or by periodic activation. In the first embodiment, a description will be given of a case where activation is performed by acquisition of the latest data or a reference request for data reference S / W.
First, the buffer management S / W 4 confirms whether the latest data acquisition or the data reference S / W reference request is activated (S1011). If the latest data is acquired, the process proceeds to step S1012. If the data reference S / W is requested, the process proceeds to step S1014.
ステップS1012では、演算用データ保管バッファ41のデータ参照有無記録領域411がすべて未参照であるかどうかを判定する。データ参照有無記録領域411がすべて未参照であった場合、それは、依然として演算用データ保管バッファ41に保管されているデータを参照したデータ参照S/Wが存在しない状態、もしくは、演算用データ保管バッファ41に保管されているデータはすべてのデータ参照S/Wが参照したため、データ参照有無記録領域411がリセットされた状態であることを意味する。
よって、現時点で演算用データ保管バッファ41に保管されているデータを必要とするデータ参照S/Wは存在しないので、最新データを演算用データ保管バッファ41に格納する(S1013)。格納後、もしくは、いずれかのデータ参照S/Wが参照済みであった場合は、バッファ管理S/W4の処理を終了する。
In step S1012, it is determined whether or not all the data reference presence /
Therefore, since there is no data reference S / W that requires data currently stored in the calculation
ステップS1014では、参照を要求してきたデータ参照S/Wが演算用データ保管バッファ41を参照済みであるかどうかを判定する。参照済みでない場合は、参照を要求してきたデータ参照S/Wに対して、演算用データ保管バッファ41を参照するよう指示し、参照を要求してきたデータ参照S/Wのデータ参照有無記録領域411を参照済みに変更する(S1015)。変更後、もしくは、参照済みであった場合は、ステップS1016へ進む。
In step S1014, it is determined whether or not the data reference S / W requesting the reference has already referred to the calculation
ステップS1016では、演算用データ保管バッファ41のデータ参照有無記録領域411がすべて参照済みであるかどうかを判定する。すべて参照済みであった場合は、演算用データ保管バッファ41に保管されているデータは、すべてのデータ参照S/W1〜3が参照したことになるので、データを保管しておく必要はなくなる。
よって、データ参照有無記録領域411をリセットするため、演算用データ保管バッファ41のデータ参照有無記録領域411をすべて未参照に変更する(S1017)。すべて参照済みでない場合は、未参照であるデータ参照S/Wの参照が完了するまで、演算用データ保管バッファ41のデータを保管しておく必要があるので、何もせずにバッファ管理S/W4の処理を終了する。
In step S1016, it is determined whether all the data reference presence /
Therefore, in order to reset the data reference presence /
<動作例1>
図1、図3、図5を用いて、具体的な動作例として動作例1を説明する。
図1のバッファ管理S/W4は、演算用データ保管バッファ41のデータ参照有無記録領域411に記録されたデータ参照S/W1、データ参照S/W2、データ参照S/W3の各参照有無情報を基に、演算用データ保管バッファ41に保管されたデータの整合性を崩さないタイミングで、取得した最新データを演算用データ保管バッファ41に格納する。
データ参照S/W1、データ参照S/W2、データ参照S/W3は、バッファ管理S/W4の管理する演算用データ保管バッファ41に保管された車速データを参照することで演算処理を行う。
<Operation example 1>
An operation example 1 will be described as a specific operation example with reference to FIGS. 1, 3, and 5.
The buffer management S / W 4 in FIG. 1 stores the reference presence / absence information of the data reference S /
The data reference S / W1, the data reference S / W2, and the data reference S / W3 perform arithmetic processing by referring to the vehicle speed data stored in the arithmetic
まず、この動作例1における初期条件を説明する。
データ参照S/W1、データ参照S/W2、データ参照S/W3は、演算処理を行う際
に必要となる車速データを、バッファ管理S/W4の管理する演算用データ保管バッファ41にアクセスすることにより取得する。データ参照S/W1、データ参照S/W2、データ参照S/W3は、それぞれ独立したS/Wであり、互いに起動順番や起動周期に直接干渉しないものとする。
First, initial conditions in this operation example 1 will be described.
The data reference S / W1, the data reference S / W2, and the data reference S / W3 access the calculation
次に、データ参照S/W1、データ参照S/W2、データ参照S/W3の起動順番について説明する。本実施の形態1において、データ参照S/W1、データ参照S/W2、データ参照S/W3の順番で起動する場合を理想的な起動順番とする。本実施の形態1でも、各データ参照S/Wは、図3に示す順番で起動するものとする。また、図3に示すように、同一の車速データを用いて、すべてのデータ参照S/Wの演算処理が完了した状況を1サイクルとする。
図3は、図2と同じ起動順番で、データ参照S/Wが順次起動されるが、最新データ取得タイミングが図2とは異なっている。
Next, the activation order of the data reference S / W1, the data reference S / W2, and the data reference S / W3 will be described. In the first embodiment, the case of starting in the order of data reference S / W1, data reference S / W2, and data reference S / W3 is set as an ideal start order. Also in the first embodiment, each data reference S / W is activated in the order shown in FIG. Further, as shown in FIG. 3, a state in which the calculation processing of all the data reference S / Ws is completed using the same vehicle speed data is defined as one cycle.
In FIG. 3, the data reference S / W is sequentially activated in the same activation order as in FIG. 2, but the latest data acquisition timing is different from that in FIG.
図3のR+1サイクル目のデータ参照S/W1が起動するステップS212から動作例1の説明を始める。この時の演算用データ保管バッファ41の状況は、図5のB101とする。
まず、データ参照S/W1が起動し、バッファ管理S/W4に対してデータ参照を要求する(図3ステップS212)。データ参照S/W1の参照要求により起動したバッファ管理S/W4は、データ参照S/W1の演算用データ保管バッファ41に対する参照有無をデータ参照有無記録領域411に基づいて判定する(図4ステップS1014)。
図5のB101のデータ参照有無記録領域411を見ると、未参照となっているので、バッファ管理S/W4は、データ参照S/W1に対して演算用データ保管バッファ41を参照するよう指示し、演算用データ保管バッファ41のデータ参照有無記録領域411にデータ参照S/W1が参照したことを記録した後(図4ステップS1015)、データ参照S/W1は、取得したデータNを用いて演算処理を行う。
図3ステップS212後の保管バッファの状況は、図5のB102となるので、図3ステップS1016に進んだ場合、データ参照S/W2とデータ参照S/W3によるデータの参照が完了していないため、バッファ管理S/W4は、処理を終了する。
The description of the operation example 1 starts from step S212 in which the data reference S / W1 in the R + 1 cycle in FIG. 3 is activated. The situation of the calculation
First, the data reference S / W1 is activated and requests data reference to the buffer management S / W4 (step S212 in FIG. 3). The buffer management S / W4 activated by the reference request for the data reference S / W1 determines whether or not the data reference S / W1 is referred to the calculation
Since the data reference presence /
Since the state of the storage buffer after step S212 in FIG. 3 is B102 in FIG. 5, when the process proceeds to step S1016 in FIG. 3, the data reference by the data reference S / W2 and the data reference S / W3 is not completed. The buffer management S / W4 ends the process.
ここで、最新の車速データ(データN+1)が提供されたとする(図3ステップS511)。最新データの取得により起動したバッファ管理S/W4は、取得した最新データを演算用データ保管バッファ41に格納するかどうかを判定する(図4ステップS1012)。
図5のB102のデータ参照有無記録領域411を見ると、データ参照S/W2とデータ参照S/W3は、データNの参照を完了していないことがわかる。よって、この時点でデータN+1を演算用データ保管バッファ41に格納してしまうと、R+1サイクル目のデータ参照S/Wが演算に用いるデータの整合性が崩れてしまうため、最新のデータN+1は演算用データ保管バッファ41に格納せずに破棄され、バッファ管理S/W4は、処理を終了する。
図3ステップS212後の演算用データ保管バッファの状況は、図5のB103とする。
Here, it is assumed that the latest vehicle speed data (data N + 1) is provided (step S511 in FIG. 3). The buffer management S / W 4 activated by acquiring the latest data determines whether or not to store the acquired latest data in the calculation data storage buffer 41 (step S1012 in FIG. 4).
Looking at the data reference presence /
The state of the operation data storage buffer after step S212 in FIG. 3 is B103 in FIG.
次に、データ参照S/W2が起動し、バッファ管理S/W4に対してデータの参照を要求する(図3ステップS312)。データ参照S/W2の参照要求により起動したバッファ管理S/W4は、データ参照S/W2の演算用データ保管バッファ41に対する参照有無をデータ参照有無記録領域411に基づいて判定する(図4ステップS1014)。
図5のB103のデータ参照有無記録領域411を見ると、データ参照S/W2は、演算用データ保管バッファ41を参照していないことがわかる。よって、バッファ管理S/W4は、データ参照S/W2に対して演算用データ保管バッファ41を参照するよう指示
し、演算用データ保管バッファ41のデータ参照有無記録領域411にデータ参照S/W2が参照したことを記録した後(図4ステップS1015)、データ参照S/W2は、取得したデータNを用いて演算処理を行う。
図3ステップS312後の保管バッファの状況は、図5のB104となるので、図3ステップS1016に進んだ場合、データ参照S/W3によるデータの参照が完了していないため、バッファ管理S/W4は処理を終了する。
Next, the data reference S / W2 is activated and requests the buffer management S / W4 to refer to the data (step S312 in FIG. 3). The buffer management S / W4 activated by the reference request for the data reference S / W2 determines whether or not the data reference S / W2 is referred to the operation
From the data reference presence /
Since the status of the storage buffer after step S312 in FIG. 3 is B104 in FIG. 5, when the process proceeds to step S1016 in FIG. 3, the data reference by the data reference S / W3 has not been completed, so the buffer management S / W4 Ends the process.
続いて、データ参照S/W3が起動し、バッファ管理S/W4に対してデータの参照を要求する(図3ステップS412)。データ参照S/W3の参照要求により起動したバッファ管理S/W4は、データ参照S/W3の演算用データ保管バッファ41に対する参照有無をデータ参照有無記録領域411に基づいて判定する(図4ステップS1014)。
図5のB104のデータ参照有無記録領域411を見ると、データ参照S/W3は、演算用データ保管バッファ41を参照していないことがわかる。よって、バッファ管理S/W4は、データ参照S/W3に対して演算用データ保管バッファ41を参照するよう指示し、演算用データ保管バッファ41のデータ参照有無記録領域411にデータ参照S/W3が参照したことを記録した後(図4ステップS1015)、データ参照S/W3は、取得したデータNを用いて演算処理を行う。
図3ステップS412後の演算用データ保管バッファ41の状況は、図5のB105となる。
Subsequently, the data reference S / W3 is activated and requests the buffer management S / W4 to refer to the data (step S412 in FIG. 3). The buffer management S / W4 activated by the reference request for the data reference S / W3 determines whether or not the data reference S / W3 is referred to the calculation
Looking at the data reference presence /
The state of the calculation
このとき、図5のB105のデータ参照有無記録領域411を見ると、演算用データ保管バッファ41に保管されたデータNは、すべてのデータ参照S/Wが参照したことがわかる。よって、演算用データ保管バッファ41のデータNを保管しておく必要はなくなるので、図3ステップS1016に進んだ場合、演算用データ保管バッファ41のデータ参照有無記録領域411をすべて未参照にし(図4ステップS1017)、バッファ管理S/W4は、処理を終了する。
図3ステップS412後の演算用データ保管バッファ41の状況は、図5のB106となる。
At this time, when the data reference presence /
The state of the calculation
その後、最新データN+2を取得したとする(図3ステップS512)。最新データの取得により起動したバッファ管理S/W4は、取得した最新データを演算用データ保管バッファ41に格納するかどうかを判定する(図4ステップS1012)。演算用データ保管バッファ41のデータ参照有無記録領域411がすべて未参照であるため、最新データN+2を演算用データ保管バッファ41に格納し(図4ステップS1013)、バッファ管理S/W4は、処理を終了する。
図3ステップS512後の保管バッファの状況は、図5のB107となる。
Thereafter, it is assumed that the latest data N + 2 is acquired (step S512 in FIG. 3). The buffer management S / W 4 activated by acquiring the latest data determines whether or not to store the acquired latest data in the calculation data storage buffer 41 (step S1012 in FIG. 4). Since all the data reference presence /
The state of the storage buffer after step S512 in FIG. 3 is B107 in FIG.
<実施の形態1の動作例1における効果>
実施の形態1の動作例1によれば、データ参照S/Wの演算用データ保管バッファ41に対する参照有無を記録し、データの整合性が崩れるタイミングでの新たなデータの演算用データ保管バッファ41への格納を防止することで、複数のデータ参照S/Wが演算に用いるデータの整合性を保証することができる。
<Effect in Operation Example 1 of
According to the operation example 1 of the first embodiment, the presence / absence of reference to the calculation
また、車速データを取得できる周期がデータ参照S/Wの起動周期に比べて長い場合、データ参照S/Wは、更新されていないデータを用いて再度演算することがある。一度用いたデータで再び演算しても同じ演算結果が得られるだけで、無駄な演算処理となる。
この場合、本実施の形態1のシステム構成にもう一つ別のバッファを追加することで無駄な演算処理を抑えることができる。
もう一つ別のバッファを追加したシステムでは、取得した最新データを、演算用データ保管バッファ41に直接格納するのではなく、新しく追加したバッファに一旦格納する。
そして、バッファ管理S/W4は、演算用データ保管バッファ41に格納されているデータの整合性を崩さないタイミングで、別のバッファに保管したデータを演算用データ保管バッファ41に格納することで、データの整合性を保証しつつ無駄な演算処理を抑えることができる。
In addition, when the cycle in which the vehicle speed data can be acquired is longer than the activation cycle of the data reference S / W, the data reference S / W may be calculated again using data that has not been updated. Even if the calculation is performed again with the data once used, only the same calculation result is obtained, which is a wasteful calculation process.
In this case, useless arithmetic processing can be suppressed by adding another buffer to the system configuration of the first embodiment.
In a system in which another buffer is added, the acquired latest data is not stored directly in the operation
The buffer management S / W 4 stores the data stored in another buffer in the calculation
実施の形態2.
<構成>
図6は、この発明の実施の形態2による車輌統合制御システムのシステム構成を示す概略図である。
図6において、1〜4は図1におけるものと同一のものである。図6では、演算に用いられるデータを格納する保管バッファ6、保管バッファ7、保管バッファ8を備え、各保管バッファ6、7、8は、各データ参照S/Wによるデータ参照の有無情報を記録するデータ参照有無記録領域61、71、81と、保管バッファごとのデータの格納順番を記録するデータ格納順番記録領域62、72、82(格納順番記録領域)とを有する。
バッファ管理S/W4は、最新データの取得や各データ参照S/Wのデータ参照要求によって、各保管バッファ6、7、8のデータ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81に記録された情報を更新する。
また、バッファ管理S/W4は、各保管バッファの情報を基に、各データ参照S/Wが参照する保管バッファを指示する。
<Configuration>
FIG. 6 is a schematic diagram showing a system configuration of a vehicle integrated control system according to
In FIG. 6, 1-4 are the same as those in FIG. In FIG. 6, a storage buffer 6, a storage buffer 7, and a storage buffer 8 for storing data used for calculation are provided, and each storage buffer 6, 7, and 8 records data reference presence / absence information by each data reference S / W. Data reference presence /
The buffer management S / W 4 acquires the data storage
Further, the buffer management S / W 4 designates a storage buffer referred to by each data reference S / W based on the information of each storage buffer.
図7は、この発明の実施の形態2による車輌統合制御システムの動作例2におけるデータ参照S/Wの演算処理順番を示す図である。
図7において、ステップS222とS421のように、Rサイクル目のデータ参照S/W3の起動に先立って、R+1サイクル目のデータ参照S/W1が起動している。詳細については後述する。
FIG. 7 is a diagram showing the calculation processing order of the data reference S / W in the operation example 2 of the vehicle integrated control system according to the second embodiment of the present invention.
In FIG. 7, the data reference S / W1 in the R + 1 cycle is activated prior to the activation of the data reference S / W3 in the R cycle, as in steps S222 and S421. Details will be described later.
図10は、この発明の実施の形態2による車輌統合制御システムの動作例3におけるデータ参照S/Wの演算処理順番を示す図である。
図10において、データ参照S/W1、データ参照S/W2、データ参照S/W3の順番どおりデータ参照S/Wが起動されていない。詳細については後述する。
FIG. 10 is a diagram showing the calculation processing order of the data reference S / W in the operation example 3 of the vehicle integrated control system according to the second embodiment of the present invention.
In FIG. 10, the data reference S / W is not activated in the order of the data reference S / W1, the data reference S / W2, and the data reference S / W3. Details will be described later.
図12は、この発明の実施の形態2による車輌統合制御システムの動作例4におけるデータ参照S/Wの起動タイミングのずれを説明する図である。
図12において、縦軸をデータ参照S/W、横軸を時間としたグラフで、データ参照S/W1、データ参照S/W2、データ参照S/W3でそれぞれ起動間隔が異なっている。
FIG. 12 is a diagram for explaining a start timing shift of the data reference S / W in the operation example 4 of the vehicle integrated control system according to the second embodiment of the present invention.
In FIG. 12, the vertical axis represents the data reference S / W and the horizontal axis represents time, and the data reference S / W1, the data reference S / W2, and the data reference S / W3 have different activation intervals.
図13は、この発明の実施の形態2による車輌統合制御システムの動作例4におけるデータ参照S/Wの起動タイミングの調整を説明する図である。
図13において、縦軸をデータ参照S/W、横軸を時間としたグラフで、起動間隔の短いデータ参照S/W2、データ参照S/W3にそれぞれ応分の調整時間を挿入して、すべてのデータ参照S/Wが同じ起動間隔としている。
FIG. 13 is a diagram for explaining the adjustment of the activation timing of the data reference S / W in the operation example 4 of the vehicle integrated control system according to the second embodiment of the present invention.
In FIG. 13, the vertical axis represents the data reference S / W and the horizontal axis represents the time. The appropriate adjustment time is inserted into each of the data reference S / W2 and the data reference S / W3 with a short activation interval, The data reference S / W has the same activation interval.
次に、動作について説明する。
バッファ管理S/W4は、保管バッファへ最新データを格納するタイミングにて、データ参照有無記録領域61、71、81とバッファ格納順番記録領域62、72、82の情報を基に、最新データを所定の保管バッファへ格納する。
ここで、所定の保管バッファとは、最も古いデータを保管している、もしくは、どのデータ参照S/Wも参照していない等のいずれか1つの条件を満たす保管バッファのことを指す。保管バッファへデータを格納後、データを格納した保管バッファのバッファ格納順番記録領域に記録された格納順番を更新する。
Next, the operation will be described.
The buffer management S / W 4 determines the latest data based on the information in the data reference presence /
Here, the predetermined storage buffer refers to a storage buffer that satisfies any one condition such as storing the oldest data or not referring to any data reference S / W. After storing data in the storage buffer, the storage order recorded in the buffer storage order recording area of the storage buffer storing the data is updated.
各データ参照S/Wは、各保管バッファのデータ参照有無記録領域とバッファ格納順番記録領域の情報を基に、バッファ管理S/W4が選択した保管バッファを参照する。そして、バッファ管理S/W4は、選択した保管バッファのデータ参照有無記録領域に参照済みとなったデータ参照S/Wを記録する。
バッファ管理S/W4は、全てのデータ参照S/Wが参照済みである保管バッファが存在する場合、その保管バッファのデータ参照有無記録領域をすべて未参照にする。
Each data reference S / W refers to the storage buffer selected by the buffer management S / W 4 based on the information of the data reference presence / absence recording area and the buffer storage order recording area of each storage buffer. Then, the buffer management S / W 4 records the data reference S / W that has been referred to in the data reference presence / absence recording area of the selected storage buffer.
When there is a storage buffer in which all the data references S / W have been referred to, the buffer management S / W 4 makes all the data reference presence / absence recording areas of the storage buffer unreferenced.
これによれば、例えば、1サイクルに、あるデータ参照S/Wが2回起動してしまった場合、1回目に起動したそのデータ参照S/Wが参照した保管バッファをデータ参照有無記録領域に記録された情報から判断し、2回目に起動したデータ参照S/Wは、1回目に起動したデータ参照S/Wが参照したデータと異なるデータが格納された保管バッファを参照することができる。
つまり、起動回数によってデータ参照S/Wの演算に用いるデータを変更しなければならない状況において、バッファ管理S/W4は、それらのデータ参照S/Wに対してそれぞれ異なるデータを提供することができる。
According to this, for example, when a data reference S / W is activated twice in one cycle, the storage buffer referred to by the data reference S / W activated first time is stored in the data reference presence / absence recording area. Judging from the recorded information, the data reference S / W activated second time can refer to a storage buffer in which data different from the data referred to by the data reference S / W activated first time is stored.
That is, in a situation where the data used for the calculation of the data reference S / W has to be changed depending on the number of activations, the buffer management S / W 4 can provide different data for each of the data reference S / Ws. .
このように、1サイクルで複数回起動したデータ参照S/Wに対してデータを提供する際に、各保管バッファのデータ参照S/Wの参照有無と保管されているデータの格納順番の情報を用いることで、それぞれ異なるタイミングで得られたデータの整合性を保証しつつ、データ参照S/Wの起動回数に応じたデータを提供することができる。 As described above, when data is provided to the data reference S / W activated a plurality of times in one cycle, information on the presence / absence of the data reference S / W in each storage buffer and the storage order of the stored data are displayed. By using it, it is possible to provide data according to the number of activations of the data reference S / W while guaranteeing the consistency of data obtained at different timings.
また、別の状況として、ある一つのデータ参照S/Wが最新データの格納された保管バッファ以外の全ての保管バッファを参照済みである状況で、バッファ管理S/W4がそのデータ参照S/Wに対して最新データの格納された保管バッファを参照するよう指示した場合、すべての保管バッファは、そのデータ参照S/Wによって参照済みとなる。
つまり、すべての保管バッファにおいて、保管されているデータの整合性を保証しなければならない状態となる。この状態で、さらに新しいデータを取得した場合、いずれかの保管バッファに最新データを格納するので、その保管バッファに元々保管されていたデータは最新データによって上書きされる。
よって、バッファ管理S/W4は、元々保管されていたデータをまだ参照していなかったデータ参照S/Wに対してそのデータを提供できなくなるので、データの整合性が崩れることになる。
このような場合には、ある一つのデータ参照S/Wによって最新データ以外が保管されたすべての保管バッファを参照済みである状況において、そのデータ参照S/Wがデータの参照を要求してきた場合、そのデータ参照S/Wに対してデータの参照を許可しないようにする。
As another situation, in a situation where one data reference S / W has already referred to all the storage buffers other than the storage buffer in which the latest data is stored, the buffer management S / W 4 has the data reference S / W. Is instructed to refer to the storage buffer in which the latest data is stored, all the storage buffers are already referred to by the data reference S / W.
In other words, the integrity of the stored data must be guaranteed in all the storage buffers. In this state, when newer data is acquired, the latest data is stored in one of the storage buffers, so that the data originally stored in the storage buffer is overwritten with the latest data.
Therefore, the buffer management S / W 4 cannot provide the data to the data reference S / W that has not yet referred to the originally stored data, and the data consistency is lost.
In such a case, when the data reference S / W requests the data reference in a situation where all the storage buffers in which data other than the latest data are stored have been referred to by one data reference S / W. The data reference S / W is not allowed to refer to the data.
このように、すべてのデータ参照S/Wによってデータの参照が完了していない保管バッファを最新データで上書きする状況が発生しないように、データ参照S/Wの各保管バッファへの参照有無を記録し、保管バッファの状況に応じてデータ参照S/Wに対して参照許可/不許可を出すことで、保管バッファに格納されているデータの整合性を保証することができる。 In this way, the presence / absence of reference to each storage buffer of the data reference S / W is recorded so as not to cause a situation in which the storage buffer in which data reference has not been completed by all the data reference S / Ws is overwritten with the latest data. Then, it is possible to guarantee the consistency of the data stored in the storage buffer by issuing reference permission / non-permission to the data reference S / W according to the status of the storage buffer.
<処理フロー>
次に、図6のバッファ管理S/W4が行う処理の流れを、図8のフローチャートを参照して説明する。
実施の形態2におけるバッファ管理S/W4は、データ参照S/Wの参照要求によって起動する、もしくは周期的に起動するものとする。
<Processing flow>
Next, the flow of processing performed by the buffer management S / W 4 in FIG. 6 will be described with reference to the flowchart in FIG.
The buffer management S / W 4 in the second embodiment is activated by a reference request for the data reference S / W, or is activated periodically.
まず、データ参照S/Wからのデータ参照要求がないかどうかを確認する(S10201)。データ参照の要求がなかった場合は、処理を終了し、参照の要求があった場合は保管バッファ6〜8の参照有無記録情報を確認する(S10202)。参照有無記録領域の情報を基に、最新データの格納された保管バッファを参照したデータ参照S/Wが存在するかどうかを判定する(S10203)。存在した場合はステップS10204へ、存在しなかった場合はステップS10207へ進む。 First, it is confirmed whether or not there is a data reference request from the data reference S / W (S10201). If there is no data reference request, the process is terminated, and if there is a reference request, the reference presence / absence record information in the storage buffers 6 to 8 is confirmed (S10202). Based on the information in the reference presence / absence recording area, it is determined whether there is a data reference S / W referring to the storage buffer in which the latest data is stored (S10203). When it exists, it progresses to step S10204, and when it does not exist, it progresses to step S10207.
ステップS10204では、最新データの格納された保管バッファを参照したデータ参照S/Wが、データの参照を要求してきたデータ参照S/Wであるかどうかを判定する。
最新データの格納された保管バッファを参照したデータ参照S/Wが、データの参照を要求してきたデータ参照S/Wであった場合、当該データ参照S/Wは、データが更新されていないにも関わらず起動したことになるので、何もせずに処理を終了する。
逆に、最新データの格納された保管バッファを参照したデータ参照S/Wが、データの参照を要求してきたデータ参照S/Wでなかった場合、データの参照を要求してきたデータ参照S/Wよりも早く起動したデータ参照S/Wが存在することを意味するので、参照する保管バッファを選択するためにステップS10205に進む。
In step S10204, it is determined whether the data reference S / W referring to the storage buffer in which the latest data is stored is the data reference S / W that has requested data reference.
When the data reference S / W that refers to the storage buffer in which the latest data is stored is the data reference S / W that has requested data reference, the data reference S / W indicates that the data has not been updated. However, since it has been activated, the process ends without doing anything.
Conversely, if the data reference S / W that refers to the storage buffer in which the latest data is stored is not the data reference S / W that has requested data reference, the data reference S / W that has requested data reference. This means that there is a data reference S / W that has been activated earlier, and the process advances to step S10205 to select a storage buffer to be referred to.
ステップS10205では、データの参照を要求してきたデータ参照S/Wが参照する保管バッファを選択する。いずれかのデータ参照S/Wが参照済み、かつデータの参照を要求してきたデータ参照S/Wは未参照という条件を満たすバッファのうち、最も古いバッファを選択する。そして、選択した保管バッファのデータ参照有無記録領域を参照済みに変更する(S10206)。変更後、ステップS10210へ進む。 In step S10205, the storage buffer referred to by the data reference S / W that has requested data reference is selected. The oldest buffer is selected from among the buffers satisfying the condition that any data reference S / W has been referred to and the data reference S / W that has requested data reference has not been referred to. Then, the data reference presence / absence recording area of the selected storage buffer is changed to “referenced” (S10206). After the change, go to step S10210.
ステップS10207では、他のデータ参照S/Wが参照済み、かつデータの参照を要求してきたデータ参照S/Wは未参照である保管バッファが存在するかどうかを判断する。
ステップS10207の条件を満たす保管バッファが一つでも存在した場合は、ステップS10205に進み、条件を満たすバッファが存在しない場合は、ステップS10208に進む。
In step S10207, it is determined whether there is a storage buffer in which another data reference S / W has been referred to and the data reference S / W that has requested data reference has not been referenced.
If there is even one storage buffer that satisfies the condition of step S10207, the process proceeds to step S10205. If no buffer satisfies the condition, the process proceeds to step S10208.
ステップS10208では、データの参照を要求してきたデータ参照S/Wは、最新データの格納された保管バッファ以外のすべての保管バッファを参照済みであるかどうかを判定する。最新データの格納された保管バッファ以外のすべての保管バッファを参照済みであった場合は、ステップS10210へ進み、そうでない場合は、ステップS10209へ進む。 In step S10208, it is determined whether the data reference S / W that has requested the data reference has already referred to all the storage buffers other than the storage buffer in which the latest data is stored. If all the storage buffers other than the storage buffer storing the latest data have been referred to, the process proceeds to step S10210. If not, the process proceeds to step S10209.
ステップS10209では、参照を要求してきたデータ参照S/Wに対して、最新データを格納した保管バッファを参照するよう指示し、最新データを格納した保管バッファのデータ参照有無記録領域にそのデータ参照S/Wが参照したことを記録する。その後、ステップS10210へ進む。 In step S10209, the data reference S / W requesting the reference is instructed to refer to the storage buffer in which the latest data is stored, and the data reference S is stored in the data reference presence / absence recording area of the storage buffer in which the latest data is stored. Record what / W referenced. Thereafter, the process proceeds to step S10210.
ステップS10210では、全てのデータ参照S/Wが参照済みである保管バッファが存在するかどうかを判定する。存在した場合は、該当する保管バッファに保管されているデータは、全てのデータ参照S/Wが参照したことになるため、保管しておく必要がなくなる。
よって、該当する保管バッファのデータ参照有無記録領域をリセットするため、そのデータ参照有無記録領域を全て未参照にする(S10211)。
In step S10210, it is determined whether there is a storage buffer to which all data reference S / Ws have been referenced. If the data exists, the data stored in the corresponding storage buffer is referred to by all the data reference S / Ws, so that it is not necessary to store the data.
Therefore, in order to reset the data reference presence / absence recording area of the corresponding storage buffer, all the data reference presence / absence recording areas are unreferenced (S10211).
<動作例2>
図7、図8、図9を用いて、実施の形態2における具体的な動作例として動作例2を説
明する。
なお、動作例2の初期条件は、動作例1の初期条件と同じとする。
ただし、データ参照S/W1、データ参照S/W2、データ参照S/W3は、演算処理を行う際に必要となる車速データを、バッファ管理S/W4がデータ参照有無記録領域61、71、81とデータ格納順番記録領域62、72、82の情報に基づいて選択した保管バッファにアクセスすることにより取得する点が異なる。
また、バッファ管理S/W4は、最新データを取得した場合、その時点でどのデータ参照S/Wも参照していない保管バッファのうち、最も古い保管バッファに格納するものとする。どのデータ参照S/Wも参照していない保管バッファが存在しなかった場合は、最も古い保管バッファへ格納するものとする。
<Operation example 2>
Operation example 2 will be described as a specific operation example in the second embodiment with reference to FIGS.
Note that the initial conditions of Operation Example 2 are the same as the initial conditions of Operation Example 1.
However, the data reference S / W1, the data reference S / W2, and the data reference S / W3 are vehicle speed data necessary for performing the calculation process, and the buffer management S / W4 is a data reference presence /
Further, when the latest data is acquired, the buffer management S / W 4 stores the latest data in the oldest storage buffer among the storage buffers that are not referenced by any data reference S / W at that time. If there is no storage buffer that does not refer to any data reference S / W, it is stored in the oldest storage buffer.
次に、各データ参照S/Wの起動順番について説明する。
動作例2の起動順番では、各データ参照S/Wの処理時間、割り込み処理時間、その他のS/Wの処理時間などによりデータ参照S/Wの起動順番が入れ替わり、必ずしも図2のような理想的な順番で順次起動するとは限らない場合を考え、図7のような起動順番を考える。
Next, the activation order of each data reference S / W will be described.
In the activation order of the operation example 2, the activation order of the data reference S / W is changed depending on the processing time of each data reference S / W, the interrupt processing time, and the other S / W processing time. Consider a case in which activation is not always performed in a specific order, and consider an activation order as shown in FIG.
さらに、図7のRサイクル目のデータ参照S/W2が起動した後に、バッファ管理S/W4が最新の車速データを取得したものとする。 Furthermore, it is assumed that the buffer management S / W4 has acquired the latest vehicle speed data after the data reference S / W2 in the R cycle in FIG. 7 is activated.
図7のRサイクル目のデータ参照S/W1が起動するステップS221から動作例2の説明を始める。
この時の各保管バッファの状況は、図9のB201とする。図9のデータ格納順番記録領域に格納された数値が大きいほど新しい車速データとする。
The description of the operation example 2 starts from step S221 in which the data reference S / W1 in the R cycle in FIG. 7 is activated.
The status of each storage buffer at this time is B201 in FIG. The larger the numerical value stored in the data storage order recording area of FIG. 9, the newer the vehicle speed data.
まず、データ参照S/W1が起動し、バッファ管理S/W4に対してデータの参照を要求する(図7ステップS221)。データ参照S/W1の参照要求により起動したバッファ管理S/W4は、データ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81の情報を確認する(図8ステップS10202)。
図9のB201のデータ参照有無記録領域を見ると、どの保管バッファにおいても参照したデータ参照S/Wはない。また、図9のB201のデータ格納順番記録領域を見ると、保管バッファ6に最新の車速データが格納されていることがわかる。
よって、バッファ管理S/W4は、データ参照S/W1に対して保管バッファ6を参照するよう指示し、保管バッファ6のデータ参照有無記録領域61にデータ参照S/W1が参照したことを記録する(図8ステップ10209)。データ参照S/W1は、取得したデータNを用いて演算処理を行う。
図7ステップS221後の各保管バッファの状況は、図9のB202となる。
First, the data reference S / W1 is activated and requests the buffer management S / W4 to refer to data (step S221 in FIG. 7). The buffer management S / W4 activated by the reference request for the data reference S / W1 confirms the information in the data storage
Looking at the data reference presence / absence recording area B201 in FIG. 9, there is no data reference S / W referenced in any storage buffer. 9 shows that the latest vehicle speed data is stored in the storage buffer 6. FIG.
Therefore, the buffer management S / W 4 instructs the data reference S /
The status of each storage buffer after step S221 in FIG. 7 is B202 in FIG.
次に、データ参照S/W2が起動し、バッファ管理S/W4に対してデータの参照を要求する(図7ステップS321)。データ参照S/W2の参照要求により起動したバッファ管理S/W4は、データ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81の情報を確認する(図8ステップS10202)。
図9のB202のデータ参照有無記録領域を見ると、保管バッファ6はデータ参照S/W1のみが参照済みで、保管バッファ7と保管バッファ8を参照したデータ参照S/Wはないことがわかる。
よって、バッファ管理S/W4は、先に起動したデータ参照S/W1が参照した保管バッファ6を参照するように指示し(図8ステップ10205)、保管バッファ6のデータ参照有無記録領域61にデータ参照S/W2が参照したことを記録する(図8ステップ10206)。その後、データ参照S/W2は、取得したデータNを用いて演算処理を行う。
図7ステップS321後の各保管バッファの状況は、図9のB203となる。
Next, the data reference S / W2 is activated and requests the buffer management S / W4 to refer to the data (step S321 in FIG. 7). The buffer management S / W4 activated by the reference request for the data reference S / W2 confirms the information in the data storage
Looking at the data reference presence / absence recording area of B202 in FIG. 9, it can be seen that only the data reference S / W1 has been referred to in the storage buffer 6, and there is no data reference S / W referring to the storage buffer 7 and the storage buffer 8.
Therefore, the buffer management S / W 4 instructs to refer to the storage buffer 6 referred to by the previously activated data reference S / W 1 (step 10205 in FIG. 8), and data is stored in the data reference presence /
The status of each storage buffer after step S321 in FIG. 7 is B203 in FIG.
ここで、最新の車速データ(データN+1)を取得したとする(図7ステップS521)。
本実施の形態2において、最新データを取得した場合、その時点でどのデータ参照S/Wも参照していない保管バッファのうち、最も古い保管バッファに格納するものとした。
図9のB203のデータ参照有無記録領域を見ると、保管バッファ6には、整合性を保証しなければならないデータが保管されているので、最新データで更新できない。保管バッファ7および保管バッファ8に関しては、どのデータ参照S/Wも参照していないので、整合性を保証しなければならないデータではない。
また、図9のB203のデータ格納順番記録領域を見ると、保管バッファ7に最も古い車速データが格納されていることがわかる。
よって、提供された最新の車速データを格納する保管バッファは、保管バッファ7となり、保管バッファ7のデータ格納順番記録領域72を更新する(図9のB204)。
Here, it is assumed that the latest vehicle speed data (data N + 1) is acquired (step S521 in FIG. 7).
In the second embodiment, when the latest data is acquired, it is assumed that it is stored in the oldest storage buffer among the storage buffers that do not refer to any data reference S / W at that time.
Looking at the data reference presence / absence recording area of B203 in FIG. 9, since data for which consistency must be guaranteed is stored in the storage buffer 6, it cannot be updated with the latest data. Regarding the storage buffer 7 and the storage buffer 8, since no data reference S / W is referred to, it is not data for which consistency must be guaranteed.
9 shows that the oldest vehicle speed data is stored in the storage buffer 7.
Therefore, the storage buffer for storing the latest vehicle speed data provided becomes the storage buffer 7 and updates the data storage
次に、R+1サイクル目のデータ参照S/W1が起動して、データの参照を要求する(図7ステップS222)。データ参照S/W1の参照要求により起動したバッファ管理S/W4は、データ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81の情報を確認する(図8ステップS10202)。
図9のB204のデータ参照有無記録領域を見ると、保管バッファ6はすでにデータ参照S/W1が参照済みであることがわかる。図9のB204のデータ格納順番記録領域を見ると、保管バッファ7に最新の車速データが格納されているとわかる。
よって、バッファ管理S/W4は、データ参照S/W1に対して、保管バッファ7を参照するよう指示し、保管バッファ7のデータ参照有無記録領域71にデータ参照S/W1が参照したことを記録する(図8ステップ10209)。データ参照S/W1は、取得したデータN+1を用いて演算処理を行う。
図7ステップS222後の各保管バッファの状況は図9のB205となる。
Next, the data reference S / W1 in the (R + 1) th cycle is activated to request data reference (step S222 in FIG. 7). The buffer management S / W4 activated by the reference request for the data reference S / W1 confirms the information in the data storage
Looking at the data reference presence / absence recording area B204 in FIG. 9, it can be seen that the storage buffer 6 has already referred to the data reference S / W1. Looking at the data storage order recording area of B204 in FIG. 9, it can be seen that the latest vehicle speed data is stored in the storage buffer 7.
Therefore, the buffer management S / W 4 instructs the data reference S /
The status of each storage buffer after step S222 in FIG. 7 is B205 in FIG.
次に、データ参照S/W3が起動して、データの参照を要求する(図7ステップS421)。データ参照S/W3の参照要求により起動したバッファ管理S/W4は、データ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81の情報を確認する(図8ステップS10202)。
図9のB205のデータ参照有無記録領域を見ると、保管バッファ6と保管バッファ7は、いずれかのデータ参照S/Wが参照済みであり、データ参照S/W3はまだどの保管バッファも参照していないことがわかる。
また、図9のB205のデータ格納順番記録領域を見ると、いずれかのデータ参照S/Wが参照済みである保管バッファ6と保管バッファ7では、保管バッファ6の方が古いデータを格納していることがわかる。
よって、バッファ管理S/W4は、データ参照S/W3に対して、先に起動したデータ参照S/W1とデータ参照S/W2が参照した保管バッファ6を参照するように指示し(図8ステップ10205)、保管バッファ6のデータ参照有無記録領域61にデータ参照S/W3が参照したことを記録する(図8ステップ10206)。その後、データ参照S/W3は、取得したデータNを用いて演算処理を行う。
図7ステップS321後の各保管バッファの状況は図9のB206となる。
Next, the data reference S /
Looking at the data reference presence / absence recording area of B205 in FIG. 9, the storage buffer 6 and the storage buffer 7 have already been referred to by any data reference S / W, and the data reference S / W3 still refers to any storage buffer. You can see that it is not.
Further, in the data storage order recording area of B205 in FIG. 9, in the storage buffer 6 and the storage buffer 7 to which any data reference S / W has already been referenced, the storage buffer 6 stores older data. I understand that.
Therefore, the buffer management S / W 4 instructs the data reference S /
The status of each storage buffer after step S321 in FIG. 7 is B206 in FIG.
このとき、図9のB206のデータ参照有無記録領域を見ると、保管バッファ6に保管された車速データは、すべてのデータ参照S/Wが参照したとわかる。よって、保管バッファ6の車速データを保管しておく必要はなくなるので、保管バッファ6のデータ参照有無記録領域61をすべて未参照にする(図8ステップ10211)。
図7ステップS421後の各保管バッファの状況は、図9のB207となる。
At this time, when the data reference presence / absence recording area B206 in FIG. 9 is viewed, it can be seen that the vehicle speed data stored in the storage buffer 6 is referred to by all the data references S / W. Therefore, since it is not necessary to store the vehicle speed data in the storage buffer 6, all the data reference presence /
The status of each storage buffer after step S421 in FIG. 7 is B207 in FIG.
次に、R+1サイクル目のデータ参照S/W2が起動して、データの参照を要求する(図7ステップS322)。データ参照S/W2の参照要求により起動したバッファ管理S/W4は、データ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81の情報を確認する(図8ステップS10202)。
図9のB207のデータ参照有無記録領域を見ると、保管バッファ7はデータ参照S/W1のみが参照済みで、保管バッファ6と保管バッファ8を参照したデータ参照S/Wはないことがわかる。
よって、バッファ管理S/W4は、データ参照S/W2に対して、先に起動したデータ参照S/W1の参照した保管バッファ7を参照するように指示し(図8ステップ10205)、保管バッファ7のデータ参照有無記録領域71にデータ参照S/W2が参照したことを記録する(図8ステップ10206)。その後、データ参照S/W2は、取得したデータN+1を用いて演算処理を行う。
図7ステップS322後の各保管バッファの状況は、図9のB208となる。
Next, the data reference S / W2 in the R + 1 cycle is activated to request data reference (step S322 in FIG. 7). The buffer management S / W4 activated by the reference request for the data reference S / W2 confirms the information in the data storage
Looking at the data reference presence / absence recording area of B207 in FIG. 9, it can be seen that only the data reference S / W1 has been referred to in the storage buffer 7, and there is no data reference S / W referring to the storage buffer 6 and the storage buffer 8.
Therefore, the buffer management S / W 4 instructs the data reference S /
The status of each storage buffer after step S322 in FIG. 7 is B208 in FIG.
次に、R+1サイクル目のデータ参照S/W3が起動して、データの参照を要求する(図7ステップS422)。データ参照S/W3の参照要求により起動したバッファ管理S/W4は、データ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81の情報を確認する(図8ステップS10202)。
図9のB208のデータ参照有無記録領域を見ると、保管バッファ7はデータ参照S/W1とデータ参照S/W2が参照済みで、保管バッファ6と保管バッファ8を参照したデータ参照S/Wはないとわかる。よって、バッファ管理S/W4は、データ参照S/W3に対して、先に起動したデータ参照S/W1とデータ参照S/W2の参照した保管バッファ7を参照するよう指示し(図8ステップ10205)、保管バッファ7のデータ参照有無記録領域71にデータ参照S/W3が参照したことを記録する(図8ステップ10206)。その後、データ参照S/W3は、取得したデータNを用いて演算処理を行う。
図7ステップS422後の各保管バッファの状況は、図9のB209となる。
Next, the data reference S / W3 in the R + 1 cycle is activated to request data reference (step S422 in FIG. 7). The buffer management S / W4 activated by the reference request of the data reference S / W3 confirms the information in the data storage
Looking at the data reference presence / absence recording area of B208 in FIG. 9, the storage buffer 7 has already been referred to the data reference S / W1 and the data reference S / W2, and the data reference S / W referring to the storage buffer 6 and the storage buffer 8 is I don't know. Therefore, the buffer management S / W4 instructs the data reference S / W3 to refer to the storage buffer 7 referred to by the previously activated data reference S / W1 and data reference S / W2 (step 10205 in FIG. 8). The data reference S /
The status of each storage buffer after step S422 in FIG. 7 is B209 in FIG.
このとき、図9のB209のデータ参照有無記録領域を見ると、保管バッファ7に保管された車速データは、すべてのデータ参照S/Wが参照したとわかる。
よって、保管バッファ7の車速データを保管しておく必要はなくなるので、保管バッファ7のデータ参照有無記録領域71をすべて未参照にする(図8ステップ10211)。
図7ステップS421後の各保管バッファの状況は図9のB210となる。
At this time, when the data reference presence / absence recording area B209 in FIG. 9 is viewed, it can be seen that the vehicle speed data stored in the storage buffer 7 is referred to by all the data references S / W.
Accordingly, since it is not necessary to store the vehicle speed data in the storage buffer 7, all the data reference presence /
The status of each storage buffer after step S421 in FIG. 7 is B210 in FIG.
<実施の形態2の動作例2における効果>
本実施の形態2における動作例2によれば、データを格納する複数の保管バッファと保管バッファ毎にデータ参照S/Wの参照有無を記録する領域及びデータを格納する順番を記録する領域を備えることで、異なるサイクルのデータ参照S/Wの実行順番が入れ替わったとしても、各データ参照S/Wで演算する際に必要なデータの整合性を保証できる。
<Effect in Operation Example 2 of
According to the operation example 2 in the second embodiment, a plurality of storage buffers for storing data, an area for recording presence / absence of the data reference S / W for each storage buffer, and an area for recording the order of storing the data are provided. As a result, even if the execution order of the data reference S / Ws in different cycles is changed, it is possible to guarantee the data consistency required for the calculation with each data reference S / W.
<動作例3>
動作例2では、最新の車速データを保管バッファへ格納したことにより、バッファ管理S/W4の提供するデータの整合性が崩れることはなかった。しかし、最新の車速データを保管バッファへ格納したことで、データの整合性が崩れてしまう場合もある。動作例3では、そのような場合におけるデータの整合性を保証する方法を説明する。動作例3は、図8、図10、図11を用いて説明する。
<Operation example 3>
In the operation example 2, since the latest vehicle speed data is stored in the storage buffer, the consistency of data provided by the buffer management S / W 4 is not lost. However, storing the latest vehicle speed data in the storage buffer may break the data consistency. In the operation example 3, a method for guaranteeing data consistency in such a case will be described. The operation example 3 will be described with reference to FIGS. 8, 10, and 11.
動作例2では、Rサイクル目のデータ参照S/W3(図7ステップS421)とR+1サイクル目のデータ参照S/W1(図7ステップS222)の起動順番のみ入れ替わった
条件であった。
動作例3では、Rサイクル目のデータ参照S/W3(図10ステップS431)が起動するよりも早く、さらに新しい車速データ(データN+2)を取得し(図10ステップS532)、R+2サイクル目のデータ参照S/W1が起動(図10ステップS233)した場合のデータ参照S/Wの起動順番を考える。
このときの、動作例3における初期条件は、動作例2の初期条件と同じとする。また、図11に示すように、動作例3における、データ参照S/W1が起動してデータN+1を用いて演算するまでの処理の流れも、動作例2の処理の流れと同じとする。
In the operation example 2, only the activation order of the data reference S / W3 in the R cycle (step S421 in FIG. 7) and the data reference S / W1 in the R + 1 cycle (step S222 in FIG. 7) are switched.
In the operation example 3, new vehicle speed data (data N + 2) is acquired earlier than the data reference S / W3 in the R cycle (step S431 in FIG. 10) is activated (step S532 in FIG. 10), and the data in the R + 2 cycle. Consider the activation order of the data reference S / W when the reference S / W1 is activated (step S233 in FIG. 10).
At this time, the initial condition in the operation example 3 is the same as the initial condition in the operation example 2. Also, as shown in FIG. 11, the flow of processing until the data reference S / W1 is activated and calculation is performed using data N + 1 in the operation example 3 is the same as the process flow of the operation example 2.
動作例3では、ステップS532からの処理の流れについて説明する。
データ参照S/W1が起動してデータN+1を用いて演算した後、バッファ管理S/W4は、最新の車速データ(データN+2)を取得した(図10ステップS532)。本実施の形態2において、最新データを取得した場合、その時点でどのデータ参照S/Wも参照していない保管バッファのうち、最も古い保管バッファに格納するものとする。
図11のB305のデータ参照有無記録領域を見ると、保管バッファ6および保管バッファ7には、整合性を保証しなければならないデータが保管されているので、最新データで更新できない。保管バッファ8に関しては、どのデータ参照S/Wも参照していないので、整合性を保証しなければならないデータではない。
また、図11のB305のデータ格納順番記録領域を見ると、保管バッファ8に最も古い車速データが保管されていることがわかる。
よって、提供された最新の車速データを格納するバッファは、保管バッファ8となり、保管バッファ8のデータ格納順番記録領域82を更新する(図11のB306)。
In the operation example 3, the flow of processing from step S532 will be described.
After the data reference S / W1 is activated and calculated using the data N + 1, the buffer management S / W4 acquires the latest vehicle speed data (data N + 2) (step S532 in FIG. 10). In the second embodiment, when the latest data is acquired, it is assumed that it is stored in the oldest storage buffer among the storage buffers not referring to any data reference S / W at that time.
Looking at the data reference presence / absence recording area of B305 in FIG. 11, the storage buffer 6 and the storage buffer 7 store data whose consistency must be guaranteed, and therefore cannot be updated with the latest data. Regarding the storage buffer 8, since no data reference S / W is referred to, it is not data for which consistency must be guaranteed.
11 shows that the oldest vehicle speed data is stored in the storage buffer 8. In FIG.
Therefore, the buffer for storing the latest vehicle speed data provided is the storage buffer 8, and the data storage order recording area 82 of the storage buffer 8 is updated (B306 in FIG. 11).
次に、R+2サイクル目のデータ参照S/W1が起動し、データの参照を要求する(図10ステップS233)。データ参照S/W1の参照要求により起動したバッファ管理S/W4は、データ格納順番記録領域62、72、82とデータ参照有無記録領域61、71、81の情報を確認する(図8ステップS10202)。
図11のB306のデータ参照有無記録領域を見ると、保管バッファ6および保管バッファ7はすでにデータ参照S/W1が参照済みであることがわかる。図11のB306のデータ格納順番記録領域を見ると、保管バッファ8に最新の車速データが格納されていることがわかる。
よって、バッファ管理S/W4は、データ参照S/W1に対して、保管バッファ8を参照するよう指示するが、データ参照S/W1が保管バッファ8を参照してしまった場合、全ての保管バッファにおいてデータ参照S/W1が参照済みとなる(図11のB307)。つまり、図11のB307の状態は、全ての保管バッファには整合性を保証しなければならないデータが保管されていることを意味する。
Next, the data reference S / W1 in the R + 2 cycle is activated to request data reference (step S233 in FIG. 10). The buffer management S / W4 activated by the reference request for the data reference S / W1 confirms the information in the data storage
Looking at the data reference presence / absence recording area of B306 in FIG. 11, it can be seen that the storage buffer 6 and the storage buffer 7 have already referred to the data reference S / W1. Looking at the data storage order recording area of B306 in FIG. 11, it can be seen that the latest vehicle speed data is stored in the storage buffer 8.
Therefore, the buffer management S / W 4 instructs the data reference S /
ここで、さらに新しいデータ(データN+3)を取得したとする(図10ステップS533)。どのデータ参照S/Wも参照していない保管バッファが存在しない場合は、最も古い保管バッファへ最新データを格納することとしたので、バッファ管理S/W4は、保管バッファ6にデータN+3を格納することになる(図11のB308)。
すると、保管バッファ6に元々保管されていたデータNを参照していないデータ参照S/W3は、データNを参照することができなくなるため、バッファ管理S/W4は、整合性の保証したデータをデータ参照S/W3に対して提供することができない。
Here, it is assumed that new data (data N + 3) is acquired (step S533 in FIG. 10). If there is no storage buffer that does not refer to any data reference S / W, the latest data is stored in the oldest storage buffer, so the buffer management S / W 4 stores data N + 3 in the storage buffer 6. (B308 in FIG. 11).
Then, since the data reference S / W3 that does not refer to the data N originally stored in the storage buffer 6 cannot refer to the data N, the buffer management S / W4 stores the data with guaranteed consistency. It cannot be provided for the data reference S / W3.
そこで、上記のような図11のB306の状態で、データの参照を要求してきたデータ参照S/W1が、最新データ以外のデータが保管されているすべての保管バッファを参照済みの状況であるかどうかを判定する(図8ステップS10208)。判定した結果、最新データ以外のデータが保管されている保管バッファで未参照である保管バッファが存在した場合、最新データの保管された保管バッファを参照するよう指示し(図8ステップS1
0209)、そうでない場合は何も指示しない(保管バッファを参照しないよう指示する)。
これにより、図11のB307の状態になることはなくなる。
Therefore, whether or not the data reference S / W1 that has requested data reference in the state of B306 in FIG. 11 has already referred to all the storage buffers in which data other than the latest data is stored. It is determined whether or not (step S10208 in FIG. 8). As a result of the determination, if there is an unreferenced storage buffer in which data other than the latest data is stored, an instruction is given to refer to the storage buffer in which the latest data is stored (step S1 in FIG. 8).
0209), otherwise, nothing is indicated (instruction not to refer to the storage buffer).
As a result, the state of B307 in FIG.
<実施の形態2の動作例3における効果>
本実施の形態2における動作例3によれば、保管バッファ毎に各データ参照S/Wの参照有無を記録することで、データの整合性が崩れてしまう状況を検知することができる。
そして、データの整合性が崩れてしまう状況を検知した場合、データ参照S/Wに対して、保管バッファを参照しないように指示することで、保管バッファに保管されているデータの整合性を保証することができる。
<Effect in Operation Example 3 of
According to the operation example 3 in the second embodiment, by recording the presence / absence of each data reference S / W for each storage buffer, it is possible to detect a situation in which the consistency of data is lost.
When a situation where the integrity of data is lost is detected, the data reference S / W is instructed not to refer to the storage buffer, thereby guaranteeing the consistency of the data stored in the storage buffer. can do.
<動作例4>
動作例3によれば、データ参照S/Wの参照要求があった時点で、データの整合性が崩れてしまう状況であるかどうかを判断するとした。しかし、データの参照を要求されるよりも前の時点でデータの整合性が崩れてしまう状況であるかどうかを判断できれば、データ参照S/Wの余分な参照要求を削減できる。
<Operation example 4>
According to the operation example 3, it is determined whether or not the data consistency is lost when the data reference S / W reference request is made. However, if it is possible to determine whether or not the data consistency is lost before the data reference is requested, it is possible to reduce unnecessary reference requests for the data reference S / W.
そこで、各データ参照S/Wの起動時間を時間計測手段で計測し、バッファ管理S/W4によりデータ参照S/Wの起動間隔を算出する。
バッファ管理S/W4は、算出した各データ参照S/Wの起動間隔を比較することで、起動間隔が極端に短いデータ参照S/Wを判定する。
起動間隔が極端に短いデータ参照S/Wが存在した場合、その他のデータ参照S/Wと起動間隔が同程度になるように、そのデータ参照S/Wの起動タイミングを調整する。
Therefore, the activation time of each data reference S / W is measured by the time measuring means, and the activation interval of the data reference S / W is calculated by the buffer management S / W4.
The buffer management S / W 4 determines the data reference S / W having an extremely short activation interval by comparing the calculated activation intervals of the data reference S / Ws.
When there is a data reference S / W whose activation interval is extremely short, the activation timing of the data reference S / W is adjusted so that the activation interval is about the same as the other data reference S / W.
図12のようなデータ参照S/W1とデータ参照S/W2の起動間隔が、データ参照S/W3よりも短い場合を考える。
図12の時刻T1を見ると、データ参照S/W3は5回目の起動が始まるタイミングだが、データ参照S/W2は6回目、データ参照S/W1は8回目の起動が始まるタイミングであり、データの整合性が崩れる状況になりつつある。
Consider a case where the activation interval between the data reference S / W1 and the data reference S / W2 as shown in FIG. 12 is shorter than the data reference S / W3.
Looking at time T1 in FIG. 12, the data reference S / W3 is the timing when the fifth activation starts, but the data reference S / W2 is the sixth activation, and the data reference S / W1 is the eighth activation. It is becoming a situation where the consistency of
そこで、図13に示すように、バッファ管理S/W4が、起動間隔の短いデータ参照S/W1とデータ参照S/W2の実行間隔に調整時間を組み込むことで(図13の調整時刻AT1、AT2)、最も起動間隔の長いデータ参照S/W3の起動タイミングに合わせる。
この場合、データ参照要求してきたデータ参照S/Wに対し、調整時間後にもう一度参照要求させるか、あるいは、データ参照S/Wに対し、次回データ参照要求するタイミングを指示することにより行う。
この処理により、データ参照S/Wの起動順番の入れ替わり頻度の低減や、データ参照S/Wの余分な参照要求の削減を行える。
Therefore, as shown in FIG. 13, the buffer management S / W4 incorporates the adjustment time into the execution intervals of the data reference S / W1 and the data reference S / W2 with short activation intervals (adjustment times AT1, AT2 in FIG. 13). ), Matching with the activation timing of the data reference S / W3 having the longest activation interval.
In this case, the data reference S / W requesting the data reference is requested again after the adjustment time, or the data reference S / W is instructed by the next data reference request timing.
By this processing, it is possible to reduce the frequency of switching the start order of the data reference S / W and to reduce unnecessary reference requests for the data reference S / W.
<実施の形態2の動作例4における効果>
本実施の形態2における動作例4によれば、データを格納する複数の保管バッファと保管バッファ毎にデータ参照S/Wの参照有無を記録する領域及びデータを格納する順番を記録する領域、さらにデータ参照S/Wの起動時間を計測する手段を備えることで、データ参照S/Wの起動タイミングを調整し、データ参照S/Wをより理想的な起動順番(図2参照)に近づけることができる。
そして、データ参照S/Wをより理想的な起動順番に近づけることで、データの整合性が崩れる状況を回避することができる。
<Effect in Operation Example 4 of
According to the operation example 4 in the second embodiment, a plurality of storage buffers for storing data, an area for recording presence / absence of reference of the data reference S / W for each storage buffer, and an area for recording the order of storing data, By providing means for measuring the activation time of the data reference S / W, the activation timing of the data reference S / W can be adjusted to bring the data reference S / W closer to the ideal activation order (see FIG. 2). it can.
Then, by bringing the data reference S / W closer to the ideal startup order, it is possible to avoid a situation in which data consistency is lost.
なお、本発明は、その発明の範囲内において、各実施の形態を自由に組み合わせたり、
各実施の形態を適宜、変形、省略することが可能である。
In the present invention, the embodiments can be freely combined within the scope of the invention,
Each embodiment can be modified or omitted as appropriate.
1〜3 データ参照S/W
4 バッファ管理S/W
41 演算用データ保管バッファ
411 データ参照有無記録領域
6〜8 保管バッファ
61 保管バッファ6用データ参照有無記録領域
62 保管バッファ6用データ格納順番記録領域
71 保管バッファ7用データ参照有無記録領域
72 保管バッファ7用データ格納順番記録領域
81 保管バッファ8用データ参照有無記録領域
82 保管バッファ8用データ格納順番記録領域
1-3 Data reference S / W
4 Buffer management S / W
41 Operation
この発明に係わるデータ整合性保証システムにおいては、それぞれデータを用いて演算を行う複数のデータ参照手段、このデータ参照手段による演算に用いるデータを保管するとともに、データ参照手段によるデータの参照有無を記録するデータ参照有無記録領域を有する保管バッファ、及びこの保管バッファへのデータの保管と、この保管されたデータに対するデータ参照手段による参照とを管理するバッファ管理手段を備え、バッファ管理手段は、保管バッファのデータ参照有無記録領域で、すべてのデータ参照手段が未参照の場合、新たなデータを保管バッファへ格納するとともに、いずれかのデータ参照手段が参照済みで、かついずれかのデータ参照手段が未参照の場合には新たなデータを保管バッファへ格納せず、廃棄し、データ参照手段が保管バッファに保管されたデータを参照要求した場合、データ参照有無記録領域で当該データ参照手段が未参照であれば、当該データ参照手段に対し、保管バッファのデータの参照を指示するとともに、データ参照有無記録領域に当該データ参照手段による参照を記録し、保管バッファのデータ参照有無記録領域が、すべてのデータ参照手段によって参照済みとなった場合、保管バッファのデータ参照有無記録領域をすべてのデータ参照手段が未参照にするものである。 In the data integrity guarantee system according to the present invention, a plurality of data reference means for performing calculations using data respectively, data used for the calculations by the data reference means are stored, and whether data is referenced by the data reference means is recorded. A storage buffer having a data reference presence / absence recording area, and buffer management means for managing storage of data in the storage buffer and reference by the data reference means for the stored data. If all data reference means are unreferenced in the data reference presence / absence recording area, new data is stored in the storage buffer , one of the data reference means is already referenced, and one of the data reference means is not yet without storing the new data to the storage buffer in the case of the reference, and discarded, the data When the reference means requests to reference the data stored in the storage buffer, if the data reference means is unreferenced in the data reference presence / absence recording area, the data reference means is instructed to refer to the data in the storage buffer. When the reference by the data reference means is recorded in the data reference presence / absence recording area and the data reference presence / absence recording area of the storage buffer is already referenced by all the data reference means, all the data reference presence / absence recording areas of the storage buffer are recorded. This data reference means makes it unreferenced.
この発明によれば、それぞれデータを用いて演算を行う複数のデータ参照手段、このデータ参照手段による演算に用いるデータを保管するとともに、データ参照手段によるデータの参照有無を記録するデータ参照有無記録領域を有する保管バッファ、及びこの保管バッファへのデータの保管と、この保管されたデータに対するデータ参照手段による参照とを管理するバッファ管理手段を備え、バッファ管理手段は、保管バッファのデータ参照有無記録領域で、すべてのデータ参照手段が未参照の場合、新たなデータを保管バッファへ格納するとともに、いずれかのデータ参照手段が参照済みで、かついずれかのデータ参照手段が未参照の場合には新たなデータを保管バッファへ格納せず、廃棄し、データ参照手段が保管バッファに保管されたデータを参照要求した場合、データ参照有無記録領域で当該データ参照手段が未参照であれば、当該データ参照手段に対し、保管バッファのデータの参照を指示するとともに、データ参照有無記録領域に当該データ参照手段による参照を記録し、保管バッファのデータ参照有無記録領域が、すべてのデータ参照手段によって参照済みとなった場合、保管バッファのデータ参照有無記録領域をすべてのデータ参照手段が未参照にするので、データの整合性が崩れないタイミングで新たなデータを保管バッファへ格納させ、複数のデータ参照手段が演算に用いるデータの整合性を保証することができる。 According to this invention, the data reference presence / absence recording area for storing a plurality of data reference means for performing calculations using data, storing data used for the calculation by the data reference means, and recording the presence / absence of data reference by the data reference means And a buffer management means for managing storage of data in the storage buffer and reference by the data reference means for the stored data, the buffer management means including a data reference presence / absence recording area of the storage buffer If all data reference means are unreferenced, new data is stored in the storage buffer , and if any data reference means is already referenced and any data reference means is unreferenced , new data is stored. such data without storing into a storage buffer, discard, data reference means is stored in the storage buffer If the data reference means is not referenced in the data reference presence / absence recording area, the data reference means is instructed to refer to the data in the storage buffer and the data reference presence / absence recording area When the reference by the data reference means is recorded and the data reference presence / absence recording area of the storage buffer is already referenced by all the data reference means, the data reference presence / absence recording area of the storage buffer is unreferenced by all the data reference means. Therefore, new data can be stored in the storage buffer at a timing at which the data consistency is not lost, and the consistency of the data used by the plurality of data reference means can be ensured.
Claims (4)
このデータ参照手段による上記演算に用いるデータを保管するとともに、上記データ参照手段による上記データの参照有無を記録するデータ参照有無記録領域を有する保管バッファ、
及びこの保管バッファへのデータの保管と、この保管されたデータに対する上記データ参照手段による参照とを管理するバッファ管理手段を備え、
上記バッファ管理手段は、
上記保管バッファの上記データ参照有無記録領域で、すべての上記データ参照手段が未参照の場合、新たなデータを上記保管バッファへ格納し、
上記データ参照手段が上記保管バッファに保管されたデータを参照要求した場合、上記データ参照有無記録領域で当該データ参照手段が未参照であれば、当該データ参照手段に対し、上記保管バッファのデータの参照を指示するとともに、上記データ参照有無記録領域に当該データ参照手段による参照を記録し、
上記保管バッファのデータ参照有無記録領域が、すべての上記データ参照手段によって参照済みとなった場合、上記保管バッファのデータ参照有無記録領域をすべての上記データ参照手段が未参照にすることを特徴とするデータ整合性保証システム。 A plurality of data reference means for performing calculations using data respectively;
A storage buffer for storing data used for the calculation by the data reference means and having a data reference presence / absence recording area for recording presence / absence of reference of the data by the data reference means,
And buffer management means for managing storage of data in the storage buffer and reference by the data reference means for the stored data,
The buffer management means includes
When all the data reference means are unreferenced in the data reference presence / absence recording area of the storage buffer, new data is stored in the storage buffer,
When the data reference means requests to reference the data stored in the storage buffer, if the data reference means is unreferenced in the data reference presence / absence recording area, the data reference means stores the data in the storage buffer. Instructing the reference and recording the reference by the data reference means in the data reference presence / absence recording area,
When the data reference presence / absence recording area of the storage buffer is already referred to by all the data reference means, all the data reference means unreference the data reference presence / absence recording area of the storage buffer. Data integrity assurance system.
このデータ参照手段による上記演算に用いるデータを保管するとともに、それぞれ上記データ参照手段による上記データの参照有無を記録するデータ参照有無記録領域及び上記データの格納順番を記録する格納順番記録領域を有する複数の保管バッファ、
及びこの複数の保管バッファへのデータの保管と、この保管されたデータに対する上記データ参照手段による参照を管理するバッファ管理手段を備え、
上記バッファ管理手段は、
上記保管バッファへ新たなデータを格納する場合、上記バッファ格納順番記録領域と上記データ参照有無記録領域とに基づき、上記新たなデータを取得したタイミングに応じて上記保管バッファを選定して上記新たなデータを格納した後、上記新たなデータを格納した保管バッファの上記格納順番記録領域に記録された格納順番を更新し、
上記データ参照手段が上記保管バッファに保管されたデータを参照要求した場合、上記格納順番記録領域と上記データ参照有無記録領域に基づいて、当該データ参照手段に対し、参照先の上記保管バッファを指示するとともに、当該保管バッファの上記データ参照有無記録領域に当該データ参照手段による参照を記録し、
いずれかの保管バッファの上記データ参照有無記録領域が、すべての上記データ参照手段によって参照済みとなった場合、当該保管バッファのデータ参照有無記録領域をすべての上記データ参照手段が未参照にすることを特徴とするデータ整合性保証システム。 A plurality of data reference means for performing calculations using data respectively;
A plurality of data reference presence / absence recording areas for recording data used by the data reference means for recording the data used by the data reference means and a storage order recording area for recording the data storage order. Storage buffer,
And buffer management means for managing the storage of the data in the plurality of storage buffers and the reference by the data reference means for the stored data,
The buffer management means includes
When storing new data in the storage buffer, the storage buffer is selected based on the buffer storage order recording area and the data reference presence / absence recording area according to the timing at which the new data is acquired. After storing the data, update the storage order recorded in the storage order recording area of the storage buffer storing the new data,
When the data reference means requests reference to the data stored in the storage buffer, the data reference means is instructed to refer to the storage buffer based on the storage order recording area and the data reference presence / absence recording area. And records the reference by the data reference means in the data reference presence / absence recording area of the storage buffer,
When the data reference presence / absence recording area of any storage buffer is already referred to by all the data reference means, the data reference presence / absence recording area of the storage buffer is unreferenced by all the data reference means. A data integrity guarantee system.
上記バッファ管理手段は、上記時間計測手段により計測された上記データ参照手段の起動時間の差分である起動間隔が、他のデータ参照手段の起動間隔より短い場合に、当該データ参照手段の起動時間を調整することを特徴とする請求項2記載のデータ整合性保証システム。
A time measuring means for measuring an activation time for referring to the data of each of the data referring means,
The buffer management means determines the activation time of the data reference means when the activation interval, which is the difference between the activation times of the data reference means measured by the time measurement means, is shorter than the activation intervals of the other data reference means. 3. The data integrity guarantee system according to claim 2, wherein adjustment is performed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012117150A JP5438800B2 (en) | 2012-05-23 | 2012-05-23 | Data integrity guarantee system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012117150A JP5438800B2 (en) | 2012-05-23 | 2012-05-23 | Data integrity guarantee system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2013242828A true JP2013242828A (en) | 2013-12-05 |
| JP5438800B2 JP5438800B2 (en) | 2014-03-12 |
Family
ID=49843628
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012117150A Active JP5438800B2 (en) | 2012-05-23 | 2012-05-23 | Data integrity guarantee system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5438800B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016062608A (en) * | 2014-09-15 | 2016-04-25 | ジーイー・アビエイション・システムズ・エルエルシー | Mechanism and method for accessing data in shared memory |
| JP2016118818A (en) * | 2014-12-18 | 2016-06-30 | 本田技研工業株式会社 | Control device of vehicle |
-
2012
- 2012-05-23 JP JP2012117150A patent/JP5438800B2/en active Active
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016062608A (en) * | 2014-09-15 | 2016-04-25 | ジーイー・アビエイション・システムズ・エルエルシー | Mechanism and method for accessing data in shared memory |
| JP2016118818A (en) * | 2014-12-18 | 2016-06-30 | 本田技研工業株式会社 | Control device of vehicle |
Also Published As
| Publication number | Publication date |
|---|---|
| JP5438800B2 (en) | 2014-03-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9058217B2 (en) | Preferential CPU utilization for tasks | |
| JP4687729B2 (en) | Cache memory, vector processing apparatus, and vector data alignment method | |
| US20080091974A1 (en) | Device for controlling a multi-core CPU for mobile body, and operating system for the same | |
| JP2015090615A5 (en) | ||
| JP2017509985A (en) | Method and processor for data processing | |
| WO2014040840A1 (en) | Deferred re-most-recently-used operations to reduce lock contention | |
| JP6297232B2 (en) | Data processing apparatus, data processing method, and data processing program | |
| CN105512251A (en) | Page cache method and device | |
| JP2019510327A (en) | Method and apparatus for driving a control device | |
| JP5438800B2 (en) | Data integrity guarantee system | |
| US20160019154A1 (en) | Prefetch list management in a computer system | |
| JP5768627B2 (en) | Programmable controller, program creation support apparatus, digital control program, and program creation support program | |
| JP5213485B2 (en) | Data synchronization method and multiprocessor system in multiprocessor system | |
| JP2007287007A (en) | Information processor equipped with operation task reservation function, operation task reservation processing program, and operation task reservation processing method | |
| JP2004192403A (en) | Information processing system and method for managing data in cache memory | |
| US9330005B2 (en) | Interface and method for inter-thread communication | |
| JPWO2015075803A1 (en) | Information processing apparatus, method, program, and recording medium | |
| CN103279562B (en) | A kind of method, device and database storage system for database L2 cache | |
| JP5783348B2 (en) | Control device, control program, and image forming apparatus | |
| JP2017199294A (en) | On-vehicle control unit | |
| JPH02189658A (en) | Cache memory | |
| JP2015022667A (en) | Trace information collection device, trace information collection method, and computer program | |
| JP4692501B2 (en) | Data storage system and data storage method | |
| JP2010026575A (en) | Scheduling method, scheduling device, and multiprocessor system | |
| JP2006163888A (en) | Application management device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130925 |
|
| 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: 20131203 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131213 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 5438800 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| 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 |
|
| 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 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |