JPH0516703A - Computer for controlling event drive type vehicle - Google Patents

Computer for controlling event drive type vehicle

Info

Publication number
JPH0516703A
JPH0516703A JP3176752A JP17675291A JPH0516703A JP H0516703 A JPH0516703 A JP H0516703A JP 3176752 A JP3176752 A JP 3176752A JP 17675291 A JP17675291 A JP 17675291A JP H0516703 A JPH0516703 A JP H0516703A
Authority
JP
Japan
Prior art keywords
event
order
occurrence
transient
events
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3176752A
Other languages
Japanese (ja)
Inventor
Kazuma Okura
一真 大蔵
Yukio Hiramoto
行雄 平本
Akito Yamamoto
明人 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP3176752A priority Critical patent/JPH0516703A/en
Publication of JPH0516703A publication Critical patent/JPH0516703A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Control By Computers (AREA)

Abstract

(57)【要約】 【目的】 イベント処理用プロセッサと制御演算用プロ
セッサとを備えたイベント駆動型車両制御用コンピュー
タにおいて、次に発生するイベントを予測して判定順序
を変更する場合に、予め関連データをプログラムしてお
く必要がなく、しかも環境の変化等に追従して予測を変
更することの出来る装置を提供する。 【構成】 イベント処理用プロセッサ1内に、発生する
可能性の高いイベントを関連データに基づいて予測する
と共に実際のイベント発生の状況に対応して上記の関連
データを書き換えるイベント予測手段3と、該イベント
予測手段3の予測結果に基づいて、イベントの判定順序
を発生確率の高いものを先順位とするように変更する判
定順序変更手段4と、を備えた構成。
(57) [Abstract] [Purpose] In an event-driven vehicle control computer including an event processing processor and a control calculation processor, when the next event is predicted and the judgment order is changed, the related order is related in advance. (EN) Provided is a device which does not need to program data and can change a prediction by following a change in environment. In the event processing processor 1, an event predicting unit 3 that predicts an event that is highly likely to occur based on related data and rewrites the related data according to a situation of actual event occurrence, A determination order changing unit 4 that changes the determination order of the events based on the prediction result of the event prediction unit 3 so that the event with the highest occurrence probability is the first order.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、車両の制御機器に用い
るコンピュータに関し、特に、運転者の操作や車両の運
転状態の変化、すなわちイベントを速やかに検出し、こ
れに即座に応動して演算処理を行ない、最適な制御操作
を時間遅れなく実行するコンピュータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer used for a control device of a vehicle, and more particularly, to promptly detect an operation of a driver or a change in a driving state of a vehicle, that is, an event, and immediately respond to the operation to perform calculation. The present invention relates to a computer that performs processing and executes optimal control operation without time delay.

【0002】[0002]

【従来の技術】マイクロコンピュータを用いて車両の各
種制御を行なう装置に関しては、従来、種々のものが提
案されている(例えば、特開昭55−60639号、特
開昭55−134732号、特開昭54−58116号
等、多数あり)。車両用の制御装置においては、運転者
の操作や車両の運転状態の変化、すなわちイベントを即
座に検出し、これに応じた制御を即座に実行する必要が
ある。なお、上記のごとき意味で“イベント”という語
を使用した例としては、「アイ イー イー イー トラン
ザクションズ オン ソフトウエア エンジニアリング
(IEEE TRANSACTIONS ON SOFTWARE ENGINEERING,VOL.SE-
6,NO.1,JANUARY 1980,“Specifying Software Requirem
ents for Complex System : New Techniquesand Their
Application”)」がある。
2. Description of the Related Art Conventionally, various devices have been proposed for controlling various vehicles using a microcomputer (for example, JP-A-55-60639, JP-A-55-134732, and JP-A-55-134732). There are many such as Kai 54-58116). In a control device for a vehicle, it is necessary to immediately detect a driver's operation or a change in the driving state of the vehicle, that is, an event, and immediately execute control according to the detected event. An example of using the word "event" in the above meaning is "IE Transactions on Software Engineering".
(IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, VOL.SE-
6, NO.1, JANUARY 1980, “Specifying Software Requirem
ents for Complex System: New Techniques and Their
Application ”)”

【0003】[0003]

【発明が解決しようとする課題】しかし、従来のマイク
ロコンピュータを用いた制御装置においては、本来、上
記のようなイベントに即応して実行されなければいけな
い処理、すなわちイベント処理を、定周期割込みルーチ
ンで実行するか、もしくはバックグラウンドでのプログ
ラムの実行ループで行なわざるを得なかった。そのため
実際のイベントの発生からイベントの検出およびその処
理までに時間的な遅れが生じ、車両の制御特性、例えば
エンジンの排気浄化性能や燃費性能の悪化を招き、また
運転者にとって不快な応答遅れや予期せぬ反応を引き起
こす原因になっている。さらに、微妙なタイミングのず
れによって制御機器の動作が大きく異なるため、外部か
らの制御機器の検証を困難にし、そのうえ実現のために
いたずらに煩雑なプログラムロジックを必要とするた
め、制御プログラムを開発する際に多大の工数を必要と
し、またこのような時間的空間的に分断された論理の流
れは人間の思考特性に一致しないため、プログラム作成
の際にミスを生じ易く、信頼性の低下を招くおそれがあ
る。また、そのようなプログラムは第三者による判読を
困難にしてメンテナンス性の悪化を招く等、多大の悪影
響を与えている。
However, in the conventional control device using the microcomputer, the process which should be executed in response to the event as described above, that is, the event process, is performed by the fixed-cycle interrupt routine. I had no choice but to run it in or in a background program execution loop. Therefore, a time delay occurs between the actual occurrence of an event and the detection and processing of the event, which leads to deterioration of vehicle control characteristics, such as engine exhaust purification performance and fuel consumption performance, and a response delay uncomfortable to the driver. It causes an unexpected reaction. Furthermore, since the operation of the control device varies greatly depending on the slight timing deviation, it is difficult to verify the control device from the outside, and in addition, a complicated program logic is required to realize it, so a control program is developed. It requires a lot of man-hours, and since such a logical flow that is divided in terms of time and space does not match human thought characteristics, mistakes are likely to occur during program creation, leading to a decrease in reliability. There is a risk. Further, such a program has a great adverse effect such that it is difficult for a third party to read the program and the maintainability is deteriorated.

【0004】上記の問題を解決するため、本出願人等
は、演算処理を実行する制御演算用プロセッサの他に、
イベント処理専用のイベント処理用プロセッサを備え、
イベントの発生を制御演算用プロセッサにおける演算周
期とは独立に検出するように構成したイベント駆動型車
両制御用コンピュータを既に出願(特願平2−2371
53号)している。上記の車両制御用コンピュータにお
いては、従来のように制御演算用プロセッサで演算周期
に従ってイベントの検出を行なう必要がなくなるので、
イベントの検出を高速で行なうことが出来、かつ、膨大
な割込みの発生によって他の演算に支障を来すおそれも
ない。また、イベント検出用のプログラムも煩雑で認識
・理解のしにくいものは不必要になるので、プログラム
の開発やメンテナンスも容易になる、という特徴があ
る。しかし、上記の先行出願に記載の装置においては、
イベント処理用プロセッサが全てのイベントのリストを
有し、全てのイベントが常に判定の対象となるように構
成されていた。そのため、イベントの判定をする際に、
所定のイベント群の中から一致するものが現われるまで
順次比較していくのに時間がかかるので、判定すべきイ
ベントの数が多い場合はイベントの検出が遅くなってし
まい、場合によってはイベントの発生を見逃してしまう
畏れがある。また、短時間で比較するためには多数の比
較器を並列に設置する必要があるため、システムのコス
トが上昇すると共に信頼性の面からも好ましくない、と
いう問題がある。
In order to solve the above-mentioned problems, the applicant of the present invention, in addition to a control arithmetic processor for executing arithmetic processing,
Equipped with an event processing processor dedicated to event processing,
An application has already been filed for an event-driven vehicle control computer configured to detect the occurrence of an event independently of the calculation cycle in the control calculation processor (Japanese Patent Application No. 2-2371).
No. 53). In the above vehicle control computer, it is not necessary to detect an event according to the calculation cycle in the control calculation processor as in the conventional case.
Event detection can be performed at high speed, and there is no fear that a large number of interrupts will interfere with other calculations. Further, since a program for event detection is complicated and difficult to recognize and understand is unnecessary, there is a feature that program development and maintenance become easy. However, in the device described in the above-mentioned prior application,
The event processing processor has a list of all events, and all events are always subject to determination. Therefore, when judging the event,
Since it takes time to compare sequentially until a matching event appears from a predetermined event group, event detection will be delayed if there are many events to be judged, and in some cases event occurrence will occur. There is a fear of overlooking. Further, in order to perform comparison in a short time, it is necessary to install a large number of comparators in parallel, which increases the cost of the system and is not preferable in terms of reliability.

【0005】上記先行技術の問題を解決するため、本出
願人は、上記先行技術を改良して、イベント予測手段と
判定順序変更手段とを設け、発生する可能性の高いイベ
ントおよびトランジェントを予測して、判定するイベン
トおよびトランジェントの順序を発生確率の高いものを
先順位とするように変更するイベント駆動型車両制御用
コンピュータを既に出願(特願平2−326010号)
している。上記の改良した先行出願に記載の装置におい
ては、イベントの判定において、一致検出までの比較回
数を減少させ、いたずらにハードウエア量を増大させる
ことなく、しかも高速でイベントを検出することが出来
る、という特徴がある。
In order to solve the above-mentioned problems of the prior art, the applicant has improved the above-mentioned prior art to provide an event predicting means and a judgment order changing means to predict an event and a transient which are likely to occur. Have already applied for an event-driven vehicle control computer that changes the order of events and transients to be judged so that those with a high probability of occurrence are prioritized (Japanese Patent Application No. 2-326010).
is doing. In the device described in the above improved prior application, in the determination of the event, the number of comparisons until the match detection is reduced, without increasing the amount of hardware unnecessarily, it is possible to detect the event at high speed. There is a feature called.

【0006】しかし、上記の装置においては、イベント
予測を行なうために、トランジェントとイベント間ある
いはイベントとイベント間の関連性を示す関連データを
予め記憶しておく必要があるため、実際のプログラム作
成に煩わしさがある。また、予め記憶した関連データに
基づいてイベント予測を行なうので、環境の変化による
イベント発生の変化や運転者の運転癖による差異を補う
ことが困難である、という問題があった。
However, in the above-mentioned device, in order to predict an event, it is necessary to previously store the related data indicating the relationship between the transient and the event or between the event and the event. It is annoying. Further, since the event prediction is performed based on the related data stored in advance, there is a problem that it is difficult to compensate for a change in event occurrence due to a change in environment and a difference due to the driving habit of the driver.

【0007】本発明は、上記のごとき先行技術をさらに
改良し、予め関連データをプログラムする必要がなく、
しかも環境の変化や運転者の好みに追従することの出来
る、イベント駆動型車両制御用コンピュータを提供する
ことを目的とする。
The present invention is a further improvement over the prior art as described above, which eliminates the need to pre-program relevant data.
Moreover, it is an object of the present invention to provide an event-driven vehicle control computer that can follow changes in the environment and driver preferences.

【0008】[0008]

【課題を解決するための手段】上記の目的を達成するた
め、本発明においては、特許請求の範囲に記載するよう
に構成している。図1は本発明の機能ブロック図であ
る。図1において、1はイベント処理用プロセッサであ
り、各種センサからの入力信号SIに基づいて、どのイ
ベントが発生したかを検出する。すなわち、上記イベン
ト処理用プロセッサ1は、アドレス上の任意のデータに
おけるトランジェントの発生を検出し、上記トランジェ
ントの発生が所定の順序に整列したトランジェントの組
を判別して、それが予め定められた複数のイベントにそ
れぞれ対応したトランジェントの組のうちのいずれであ
るかを検出し、それを当該所定のイベントの発生として
出力するものである。
In order to achieve the above object, the present invention is constructed as described in the claims. FIG. 1 is a functional block diagram of the present invention. In FIG. 1, reference numeral 1 is an event processing processor, which detects which event has occurred based on input signals SI from various sensors. That is, the event processing processor 1 detects the occurrence of a transient in arbitrary data on an address, discriminates a set of transients in which the occurrence of the transient is arranged in a predetermined order, and determines a plurality of predetermined transients. It is detected which one of the transient sets corresponding to each of the events, and outputs it as the occurrence of the predetermined event.

【0009】また、イベント処理用プロセッサ1は、発
生する可能性の高いイベントおよびトランジェントを関
連データに基づいて予測すると共に実際のイベント発生
の状況に対応して上記の関連データを書き換えるイベン
ト予測手段3と、該イベント予測手段3の予測結果に基
づいて、イベントおよびトランジェントの判定順序を発
生確率の高いものを先順位とするように変更する判定順
序変更手段4とを備えている。上記のイベント予測手段
3は、例えば、トランジェントとイベント間あるいはイ
ベントとイベント間の関連性を示す関連データを記憶し
ているイベント関連テーブルを備え、その記憶内容を実
際に発生したイベントの関連に応じて書き換え、その結
果に応じて、或るトランジェントまたはイベントが発生
した場合に、次に発生する可能性の高いイベントまたは
トランジェントを予測する。
Further, the event processing processor 1 predicts an event and a transient that are likely to occur based on the related data, and rewrites the related data according to the actual event occurrence situation. And the decision order changing means 4 for changing the decision order of the event and the transient based on the prediction result of the event prediction means 3 so that the event or the transient having the higher occurrence probability is the first order. The event prediction unit 3 includes, for example, an event relation table that stores relation data indicating the relation between transients and events or between events and events, and stores the stored contents according to the relation of the actually generated event. When a certain transient or event occurs, the event or transient most likely to occur next is predicted according to the result.

【0010】また、2は制御演算用プロセッサであり、
通常は所定のプログラムに従って制御演算を行ない、そ
の結果として得られた制御用の出力信号SOを出力す
る。また、イベント発生時にはイベント処理用プロセッ
サ1の検出結果に基づいて、その発生したイベントに対
応した制御プログラムの演算を実行し、その結果として
得られたイベント発生時の出力信号を出力する。
Reference numeral 2 is a control calculation processor,
Normally, a control operation is performed according to a predetermined program, and the resulting control output signal SO is output. When an event occurs, the control program corresponding to the event that has occurred is executed based on the detection result of the event processing processor 1, and the resulting output signal at the time of event occurrence is output.

【0011】[0011]

【作用】上記のように、本発明においては、演算処理を
実行する制御演算用プロセッサの他に、イベント処理専
用のイベント処理用プロセッサを備え、イベントの発生
を制御演算用プロセッサにおける演算周期とは独立に検
出するように構成している。また、イベント予測手段と
判定順序変更手段とを設け、発生する可能性の高いイベ
ントおよびトランジェントを予測して、判定するイベン
トおよびトランジェントの順序を発生確率の高いものを
先順位とするように変更することにより、一致検出まで
の比較回数を減少させ、いたずらにハードウエア量を増
大させることなく、しかも高速でイベントを検出するこ
とが出来る。また、イベント予測手段において、実際に
発生したイベントの関連に応じて関連データを書き換え
ることにより、関連データが実際に発生したイベントの
関連に対応して順次作成されるので、予め関連データを
記憶させておく必要がなくなり、かつ、環境の変化によ
ってイベント発生の関連が変化したり、運転者の運転癖
によってイベントの関連が異なる場合でも、その変化に
追従することが出来、常に高速でイベントの検出を行な
うことが出来る。
As described above, in the present invention, in addition to the control calculation processor for executing calculation processing, the event processing processor dedicated to event processing is provided, and the occurrence of an event is defined as the calculation cycle in the control calculation processor. It is configured to detect independently. In addition, an event predicting unit and a determination order changing unit are provided to predict events and transients that are likely to occur, and change the order of events and transients to be determined so that the one with the highest occurrence probability is the first order. As a result, it is possible to reduce the number of comparisons up to the match detection, detect an event at high speed without unnecessarily increasing the amount of hardware. Further, in the event prediction means, by rewriting the related data according to the relationship of the actually occurred event, the related data is sequentially created corresponding to the relationship of the actually occurred event, so that the related data is stored in advance. Even if the relationship of event occurrence changes due to changes in the environment or the relationship of events changes depending on the driving habits of the driver, it is possible to follow the changes and always detect events at high speed. Can be done.

【0012】[0012]

【発明の実施例】図2は、本発明の全体の構成を示す一
実施例のブロック図である。図2において、11はイベ
ント処理用プロセッサ、12は制御演算用プロセッサで
ある。また、RAM13およびROM14はそれぞれイ
ベント処理用プロセッサ11専用のメモリ、RAM15
およびROM16はそれぞれ制御演算用プロセッサ12
専用のメモリである。また、RAM17はイベント処理
用プロセッサ11と制御演算用プロセッサ12との共用
のメモリであり、両プロセッサから同じ情報を読み書き
できるものである。また、SI1〜SInは各種センサか
らの入力信号であり、例えばエンジンの吸入空気量信
号、回転速度信号、冷却水温信号、スロットル開度信
号、アイドルスイッチ信号、空燃比信号等である。ま
た、SO1〜SOmは各種アクチュエータへの出力信号で
あり、例えば燃料噴射信号、ブレーキ制御信号、電子制
御変速機への変速信号等である。また、入出力装置18
は、上記の各種入力信号SI1〜SInを入力(必要があ
る場合はA/D変換後に入力)し、かつ、演算結果の各
種出力信号SO1〜SOmを出力する。また、上記の各構
成要素間の信号の授受は、アドレスバスとデータバスと
を備えたメインバス19を介して行なわれる。
FIG. 2 is a block diagram of an embodiment showing the entire structure of the present invention. In FIG. 2, 11 is an event processing processor, and 12 is a control calculation processor. The RAM 13 and the ROM 14 are a memory dedicated to the event processing processor 11 and a RAM 15, respectively.
And the ROM 16 are respectively the control calculation processor 12
It is a dedicated memory. The RAM 17 is a memory shared by the event processing processor 11 and the control calculation processor 12, and can read and write the same information from both processors. SI 1 to SI n are input signals from various sensors, for example, an engine intake air amount signal, a rotation speed signal, a cooling water temperature signal, a throttle opening signal, an idle switch signal, an air-fuel ratio signal, and the like. Further, SO 1 to SO m are output signals to various actuators, for example, fuel injection signals, brake control signals, shift signals to electronically controlled transmissions, and the like. In addition, the input / output device 18
Inputs the above-mentioned various input signals SI 1 to SI n (when necessary, after A / D conversion), and outputs various output signals SO 1 to SO m as the calculation result. Signals are exchanged between the above-mentioned components via a main bus 19 having an address bus and a data bus.

【0013】次ぎに、図3(A)は、上記のイベント処
理用プロセッサ11の構成の一実施例図であり、図3
(B)はイベント管理プログラムの一例図である。以
下、図3に基づいてイベント処理用プロセッサ11の動
作を説明する。図3(A)において、20はデジタル比
較手段であり、メモリ(RAM17)上の任意のビット
数の所定のデータ(ビット、ワード等の単位)を比較す
る。このデジタル比較手段20は、所定のアドレスのメ
モリに対する書き込みが行なわれたことを検出するアド
レス一致検出手段20−1と、イベント管理プログラム
24中の所定値とメモリ上のデータとを比較し、その結
果を状態コードとして出力するデータ比較手段20−2
から構成される。また、21はトランジェント検出手段
であり、デジタル比較手段20の出力、メモリ上の所定
のビット、もしくは入力信号の状態を入力して過去の状
態と比較し、データの状態変化の方向(オン→オフ、オ
フ→オン、両方向等)を検出し、トランジェント発生信
号として出力する。また、22はイベント判定手段であ
り、トランジェントの発生順序が予め定められた何のイ
ベントに対応するものであるかを判別して、最終的にイ
ベント検出信号として出力するものである。なお、この
イベント処理用プロセッサは、内部的に直列に接続さ
れ、さらに複雑なイベント発生シーケンスを検出する構
成とすることも可能である。
Next, FIG. 3A is a diagram showing an embodiment of the configuration of the event processing processor 11 described above.
(B) is an example diagram of an event management program. The operation of the event processing processor 11 will be described below with reference to FIG. In FIG. 3A, reference numeral 20 denotes a digital comparison means, which compares predetermined data (units such as bits and words) having an arbitrary number of bits on the memory (RAM 17). The digital comparing means 20 compares the address coincidence detecting means 20-1 for detecting that a predetermined address has been written into the memory with a predetermined value in the event management program 24 and the data on the memory, and Data comparison means 20-2 for outputting the result as a status code
Composed of. Reference numeral 21 denotes a transient detecting means, which inputs the output of the digital comparing means 20, a predetermined bit on the memory, or the state of the input signal and compares it with the past state, and changes the state of the data (ON → OFF). , Off → on, both directions, etc.) are detected and output as a transient generation signal. Reference numeral 22 is an event determination means, which determines which event the transient occurrence order corresponds to in advance and finally outputs it as an event detection signal. The event processing processor may be internally connected in series and configured to detect a more complicated event generation sequence.

【0014】また、25はイベント予測手段であり、イ
ベント関連テーブル書換手段25−1とイベント関連テ
ーブル25−2とイベント候補選択手段25−3とから
構成されている。そして詳細を後述するごとく、現在起
こっているトランジェントまたはイベントの情報から次
に発生する確率の高いイベントまたはトランジェントを
予測し、かつ実際に発生したイベントやトランジェント
に応じてイベント関連テーブル25−2に記憶されてい
る内容を書き換える。また、26は判定順序変更手段で
あり、イベント予測手段25の予測結果に基づいて、イ
ベントおよびトランジェントの判定順序を、発生確率の
高いものを先順位とするように変更し、イベント管理手
段23へ出力する。イベント管理手段23は、イベント
判定順序変更手段26によって変更されたイベントの判
定順序とイベント管理プログラム24を用いて20〜2
2および25、26の連携動作を制御する。なお、イベ
ント管理プログラム24は、例えば図3(B)に示すご
ときものである。この例は、アイドルスイッチがオンか
らオフ(スロットル弁が閉状態から開状態になる)にな
った場合に“加速イベント”であることを判別する場合
を例示している。
Reference numeral 25 is an event predicting means, which comprises an event related table rewriting means 25-1, an event related table 25-2 and an event candidate selecting means 25-3. Then, as will be described later in detail, an event or transient with a high probability of occurring next is predicted from the information of the transient or event currently occurring, and stored in the event relation table 25-2 in accordance with the event or transient actually occurring. Rewrite the contents that have been described. Further, reference numeral 26 is a judgment order changing means, and based on the prediction result of the event prediction means 25, changes the judgment order of events and transients so that the one having the highest occurrence probability is the first order, and then the event management means 23. Output. The event management unit 23 uses the event determination order changed by the event determination order changing unit 26 and the event management program 24 to determine 20 to 2
Controls the coordinated operation of 2 and 25, 26. The event management program 24 is, for example, as shown in FIG. This example illustrates a case where it is determined that the "acceleration event" occurs when the idle switch is switched from on to off (the throttle valve is changed from the closed state to the open state).

【0015】次に、イベント関連テーブル25−2の記
憶内容の書き換えについて説明する。図4は、イベント
関連テーブル25−2の記憶内容の一例を示す図であ
り、現在検出されたイベントに対して次に起こると予想
されるイベントの順位(数字の小さい方が先順位)を示
したものである。また、図5は、イベント関連テーブル
書換手段25−1の動作内容を示すフローチャートであ
る。イベント関連テーブル書換手段25−1は、イベン
ト判定の進行情報を受けて、図5に示すような手順でイ
ベント関連テーブル25−2の内容を書き換える。例え
ば、イベントAに引き続いてイベントBが発生したとき
は、イベント関連テーブル25−2のイベントAの行を
変更する。すなわちイベントAの行のうちイベントBの
項目の順位を1とし、その他のイベントの相対順位が変
わらないようにする。次に、イベントCが発生したとき
は、イベントBの行のイベントCの項目の順位を1と
し、その行のイベントC以外のイベントの相対順位が変
わらないように各項目の順位を変更する。上記のように
すれば、例えば、イベントAに引き続いていつもイベン
トBが発生したとすると、イベントAの行のイベントB
の項目の順位はいつも1となり、また、イベントAに引
き続いてイベントBあるいはイベントCがいつも発生し
たとするとイベントAの行のイベントBあるいはイベン
トCの項目の順位はいつも1あるいは2となる。このよ
うに次に発生する傾向の高いイベントの順位が高くな
る。
Next, rewriting of the contents stored in the event relation table 25-2 will be described. FIG. 4 is a diagram showing an example of the stored contents of the event relation table 25-2, and shows the order of events that are expected to occur next with respect to the currently detected event (the smaller number is the first order). It is a thing. Further, FIG. 5 is a flowchart showing the operation contents of the event relation table rewriting means 25-1. Upon receiving the event determination progress information, the event relation table rewriting means 25-1 rewrites the contents of the event relation table 25-2 in the procedure as shown in FIG. For example, when the event B occurs subsequent to the event A, the row of the event A in the event related table 25-2 is changed. That is, the rank of the item of the event B in the row of the event A is set to 1 so that the relative ranks of other events do not change. Next, when the event C occurs, the rank of the item of the event C in the row of the event B is set to 1, and the rank of each item is changed so that the relative rank of the events other than the event C of the row does not change. With the above, for example, if event B always occurs following event A, event B in the row of event A
If the event B or event C always occurs subsequent to the event A, the rank of the item of the event B or event C of the row of the event A will always be 1 or 2. In this way, the rank of the event having a high tendency to occur next is high.

【0016】このような手続きで書き換えられたイベン
ト関連テーブル25−2を参照して、イベント候補選択
手段25−3は、次に発生する可能性の大きいイベント
を候補として選択し、その結果をイベント判定順序変更
手段26へ送る。イベント判定順序変更手段26は、上
記のイベント予測結果に応じてイベントの判定を行なう
順序を変更する。例えば、最後に検出されたイベントが
イベントAの場合、イベント関連テーブル25−2のイ
ベントAの行の順序に従って次のイベント判定を行なう
ことになり、効率的なイベント判定が行なわれる。
With reference to the event relation table 25-2 rewritten by such a procedure, the event candidate selecting means 25-3 selects an event having a high possibility of occurring next as a candidate, and the result is the event. It is sent to the judgment order changing means 26. The event determination order changing means 26 changes the order in which event determination is performed according to the event prediction result. For example, when the last detected event is the event A, the next event determination is performed according to the order of the row of the event A in the event association table 25-2, and the efficient event determination is performed.

【0017】また、イベント関連テーブル25−2の内
容書換は、イベントの発生した頻度に応じて行なうこと
もできる。以下、図6および図7に基づいて説明する。
図6は、イベント関連テーブル書換手段25−1内に設
けられたイベント発生頻度計数テーブルの内容例を示す
図であり、イベントの発生回数を示したものである。ま
た、図7は、イベント関連テーブル書換手段25−1の
他の動作内容を示すフローチャートである。この実施例
においては、イベント関連テーブル書換手段25−1は
図6に示すような発生頻度計数テーブルを有している。
そしてイベント判定の進行情報を受けて発生頻度計数テ
ーブルを書き換える。例えば、イベントAに引き続いて
イベントBが発生したときは、発生頻度計数テーブルの
イベントAの行のうちイベントBの項目の数を1だけカ
ウントアップし、同時に合計の項目の数も1だけカウン
トアップする。次いでイベントCが発生したときはイベ
ントBの行のうち、イベントCの項目の数と合計の項目
の数を1だけカウントアップする。そして、例えばイベ
ントAの行の合計数が100になったとき、イベントA
の行の各項目のカウント数が多い順に順位を変更し、イ
ベント関連テーブル25−2のイベントAの行を変更す
る。なお、イベント関連テーブル25−2を変更するタ
イミングを合計回数ではなく、一定時間毎に変更するよ
うに構成することも出来る。
The contents of the event relation table 25-2 can be rewritten according to the frequency of occurrence of events. Hereinafter, description will be given based on FIGS. 6 and 7.
FIG. 6 is a diagram showing an example of the contents of the event occurrence frequency counting table provided in the event related table rewriting means 25-1, and shows the number of times an event has occurred. FIG. 7 is a flowchart showing another operation content of the event related table rewriting means 25-1. In this embodiment, the event related table rewriting means 25-1 has an occurrence frequency counting table as shown in FIG.
Then, it receives the event determination progress information and rewrites the occurrence frequency counting table. For example, when an event B occurs subsequent to the event A, the number of items of the event B in the row of the event A of the occurrence frequency counting table is incremented by 1, and the total number of items is also incremented by 1. To do. Next, when the event C occurs, the number of items of the event C and the total number of items of the line of the event B are incremented by one. Then, for example, when the total number of rows of the event A reaches 100, the event A
The order is changed in the descending order of the number of counts of each item in the row, and the row of the event A in the event related table 25-2 is changed. Note that the timing of changing the event related table 25-2 may be changed not at the total number of times but at regular time intervals.

【0018】以下、加速イベントを例として全体の動作
を説明する。まず、運転者のアクセル操作は、スロット
ル全閉を示すスイッチ信号(アイドルスイッチ)のオン
/オフとしてメモリに書き込まれる。なお、図3では図
示していないが、前記図2の入出力装置18が入力レジ
スタのデータを入力レジスタが割り付けられたメモリへ
転送する。この結果、メモリに対する書き込み操作が行
なわれ、アイドルスイッチのアドレスにWR信号が発生
する。この信号を受けて、アドレス一致検出手段20−
1はイベント管理プログラム24で指定されたアドレス
と一致するものがあるか否かを検出する。そして一致が
検出された場合は、通常はイベント管理プログラム中の
比較データとメモリ上の一致が検出されたアドレスのデ
ータとを比較手段20−2で比較するが、この例の場合
はビットデータであるため、比較手段20−2は用いら
れず、直ちにトランジェント検出手段21に入力され
る。比較データが通常のデータであれば、アドレスの一
致を検出した組の比較値とメモリ上の書き込みが行なわ
れたアドレスのデータとを比較手段20−2によって比
較し、この比較結果が2値の出力としてトランジェント
検出手段21に入力される。トランジェント検出手段2
1は、予め指定されたオン−オフの変化(全閉状態から
アクセルが踏まれたトランジェント、すなわちこの場合
は即イベント)を検出し、そのイベントに対応した所定
の出力、すなわち、この場合は加速イベント検出用信号
(accel−event)を発生する。同時に順序比
較のため、この時のアイドルスイッチの状態がイベント
処理用プロセッサ11の持つメモリ(定義されたイベン
ト毎に確保される)に保存される。なお、この例の場合
は、単一のトランジェントがそのままイベントとして定
義されているので、イベント判定手段22の動作はな
い。次に、イベント予測手段25では、前記のように、
発生したイベントまたはトランジェントに応じてイベン
ト関連テーブル25−2の内容を書き換え、かつ、次に
発生する可能性の高いイベントまたはトランジェントの
予測データをイベント判定順序変更手段26へ送る。次
いで、イベント判定順序変更手段26では、イベント予
測手段25から与えられたイベント予測のデータ(イベ
ント候補と発生予想確率)を基に、発生の可能性の最も
高い、すなわち発生予想確率の値が大きなイベントまた
はトランジェントから判定するように、判定を行なう順
序を変更する。この順序の変更は、コンテント・アドレ
サブル・メモリ(連想メモリ)を用いて検索ポインタを
制御する方法など各種方式が提案されており、ここでは
詳述しない。次に、上記イベント判定順序変更手段26
の信号を受けて、イベント管理手段23がディジタル比
較手段20へ変更された結果に応じて判定順序を変更す
るように指示する。なお、この判定順序の変更は、使用
する検索テーブルを切り替えることによって容易に実現
できる。上記のようにして、最も短い時間でイベントの
検出が可能となる。また、イベント関連テーブル25−
2の記憶内容は、実際に発生したイベントやトランジェ
ントに対応して書き換えられるので、予めプログラムし
ておく必要がなく、しかも環境の変化によってイベント
発生の関連が変化したり、運転者の運転癖によってイベ
ントの関連が異なる場合でも、その変化に追従すること
が出来る。
The entire operation will be described below by taking an acceleration event as an example. First, the accelerator operation by the driver is written in the memory as ON / OFF of the switch signal (idle switch) indicating the throttle fully closed. Although not shown in FIG. 3, the input / output device 18 of FIG. 2 transfers the data in the input register to the memory to which the input register is allocated. As a result, a write operation is performed on the memory and a WR signal is generated at the address of the idle switch. Receiving this signal, the address coincidence detecting means 20-
1 detects whether or not there is a match with the address designated by the event management program 24. When a match is detected, the comparison means 20-2 normally compares the comparison data in the event management program with the data at the address in the memory where the match is detected. In this example, however, bit data is used. Therefore, the comparing means 20-2 is not used and is immediately input to the transient detecting means 21. If the comparison data is normal data, the comparison means 20-2 compares the comparison value of the set in which the address match is detected with the data of the address written in the memory, and the comparison result is binary. It is input to the transient detection means 21 as an output. Transient detection means 2
1 detects a predetermined on-off change (transient in which the accelerator is stepped on from the fully closed state, that is, an immediate event in this case), and a predetermined output corresponding to the event, that is, acceleration in this case. An event detection signal (accel-event) is generated. At the same time, for order comparison, the state of the idle switch at this time is stored in the memory (held for each defined event) of the event processing processor 11. In the case of this example, since a single transient is defined as an event as it is, the event determination means 22 does not operate. Next, in the event predicting means 25, as described above,
The contents of the event relation table 25-2 are rewritten according to the event or transient that has occurred, and the predicted data of the event or transient that is likely to occur next is sent to the event determination order changing means 26. Next, the event determination order changing means 26 has the highest possibility of occurrence, that is, the value of the occurrence probability is large, based on the event prediction data (event candidate and occurrence probability) given from the event prediction means 25. Change the order in which decisions are made, such as by events or transients. Various methods such as a method of controlling a search pointer using a content addressable memory (associative memory) have been proposed for changing the order, and will not be described in detail here. Next, the event determination order changing means 26
In response to the signal, the event management unit 23 instructs the digital comparison unit 20 to change the determination order according to the changed result. Note that this change of the determination order can be easily realized by switching the search table to be used. As described above, the event can be detected in the shortest time. Also, the event related table 25-
Since the memory contents of 2 are rewritten according to the events and transients that actually occurred, there is no need to program them in advance. Moreover, the relationship of event occurrence changes due to changes in the environment, and the driving habits of the driver Even if the relation of events is different, it is possible to follow the change.

【0019】[0019]

【発明の効果】以上説明したように、本発明において
は、イベント処理用プロセッサ内にイベント予測手段と
判定順序変更手段とを設け、発生する可能性の高いイベ
ントおよびトランジェントを予測して、判定の順序を発
生確率の高いものを先順位とするように変更することに
より、一致検出までの比較回数を減少させ、いたずらに
ハードウエア量を増大させることなく、しかも高速でイ
ベントを検出することが出来る。また、イベント予測手
段において、実際に発生したイベントの関連に応じて関
連データを書き換えることにより、関連データが実際に
発生したイベントの関連に対応して順次作成されるの
で、予め関連データを記憶させておく必要がなくなり、
かつ、環境の変化によってイベント発生の関連が変化し
たり、運転者の運転癖によってイベントの関連が異なる
場合でも、その変化に追従することが出来、常に高速で
イベントの検出を行なうことが出来る、という効果が得
られる。
As described above, according to the present invention, the event processing processor is provided with the event predicting means and the judgment order changing means to predict the events and transients that are likely to occur and to make the judgment. By changing the order so that the one with the highest occurrence probability is the first order, it is possible to reduce the number of comparisons until match detection, and to detect events at high speed without unnecessarily increasing the amount of hardware. .. Further, in the event prediction means, by rewriting the related data according to the relationship of the actually occurred event, the related data is sequentially created corresponding to the relationship of the actually occurred event, so that the related data is stored in advance. You do n’t have to
Moreover, even if the relation of event occurrence changes due to changes in the environment or the relation of events differs depending on the driving habit of the driver, it is possible to follow the change and always detect events at high speed. The effect is obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の機能を示すブロック図。FIG. 1 is a block diagram showing functions of the present invention.

【図2】本発明の一実施例のブロック図。FIG. 2 is a block diagram of an embodiment of the present invention.

【図3】(A)はイベント処理用プロセッサの一実施例
の構成を示すブロック図、(B)はイベント管理プログ
ラムの一実施例図。
3A is a block diagram showing the configuration of an embodiment of an event processing processor, and FIG. 3B is an embodiment of an event management program.

【図4】イベント関連テーブルの記憶内容の一実施例を
示す図。
FIG. 4 is a diagram showing an example of stored contents of an event related table.

【図5】イベント関連テーブル書換手段の演算内容の一
実施例を示すフローチャート。
FIG. 5 is a flowchart showing an example of calculation contents of an event related table rewriting means.

【図6】イベント発生頻度計数テーブルの内容例を示す
図。
FIG. 6 is a diagram showing an example of contents of an event occurrence frequency counting table.

【図7】イベント関連テーブル書換手段の演算内容の他
の実施例を示すフローチャート。
FIG. 7 is a flowchart showing another embodiment of the calculation contents of the event related table rewriting means.

【符号の説明】[Explanation of symbols]

1…イベント処理用プロセッサ 2…制御演算用プロセッサ 3…イベント予測手段 4…判定順序変更手段 SI…入力信号 SO…出力信号 11…イベント処理用プロセッサ 12…制御演算用プロセッサ 13、15、17…RAM 14、16…ROM 18…入出力装置 19…メインバス 20…デジタル比較手段 21…トランジェント検出手段 22…イベント判定手段 23…イベント管理手段 24…イベント管理プログラム 25…イベント予測手段 25−1…イベント関連テーブル書換手段 25−2…イベント関連テーブル 25−3…イベント候補選択手段 26…イベント判定順序変更手段 DESCRIPTION OF SYMBOLS 1 ... Event processing processor 2 ... Control calculation processor 3 ... Event prediction means 4 ... Judgment order change means SI ... Input signal SO ... Output signal 11 ... Event processing processor 12 ... Control calculation processor 13, 15, 17 ... RAM 14, 16 ... ROM 18 ... Input / output device 19 ... Main bus 20 ... Digital comparison means 21 ... Transient detection means 22 ... Event determination means 23 ... Event management means 24 ... Event management program 25 ... Event prediction means 25-1 ... Event-related Table rewriting means 25-2 ... Event related table 25-3 ... Event candidate selecting means 26 ... Event determination order changing means

Claims (1)

【特許請求の範囲】 【請求項1】車両の各種運転状況や運転者の操作状態を
検出するセンサの信号を入力し、該信号に基づいて車両
の制御に必要な各種制御演算を行ない、該演算結果に基
づいた制御信号を車両制御用の各種アクチュエータに送
出する車両制御用コンピュータにおいて、 運転中の操作や車両の運転状況の変化、すなわちイベン
トをアドレス上のデータから検出するイベント処理用プ
ロセッサと、 該イベント処理用プロセッサの検出結果に基づいて演算
処理を実行する制御演算用プロセッサとを備え、 上記イベント処理用プロセッサは、アドレス上の任意の
データにおけるトランジェントの発生を検出し、上記ト
ランジェントの発生が所定の順序に整列したトランジェ
ントの組を判別して、それが予め定められた複数のイベ
ントにそれぞれ対応したトランジェントの組のいずれか
であるかを検出し、それを当該所定のイベントの発生と
して出力するものであり、かつ、発生する可能性の高い
イベントおよびトランジェントを関連データに基づいて
予測すると共に実際のイベント発生の状況に対応して上
記の関連データを書き換えるイベント予測手段と、該イ
ベント予測手段の予測結果に基づいて、イベントおよび
トランジェントの判定順序を発生確率の高いものを先順
位とするように変更する判定順序変更手段と、を備えた
ものであることを特徴とするイベント駆動型車両制御用
コンピュータ。
Claim: What is claimed is: 1. A signal of a sensor for detecting various driving conditions of a vehicle and a driver's operation state is input, and various control calculations necessary for controlling the vehicle are performed based on the signal. In a vehicle control computer that sends a control signal based on the calculation result to various actuators for vehicle control, an event processing processor that detects an operation during driving or a change in the driving condition of the vehicle, that is, an event from the data on the address. A control operation processor that executes operation processing based on a detection result of the event processing processor, the event processing processor detects occurrence of a transient in arbitrary data on an address, and generates the transient. Discriminates the set of transients that are arranged in a predetermined order and It is to detect which one of the set of transients corresponding to each of the events, and output it as the occurrence of the predetermined event, and the event and transient that are likely to occur based on the related data. Event predicting means for predicting and rewriting the above-mentioned related data according to the actual event occurrence status, and based on the prediction result of the event predicting means, the order of judging events and transients is the one with the highest probability of occurrence An event-driven vehicle control computer, comprising: a determination order changing unit for changing the determination order to
JP3176752A 1991-07-17 1991-07-17 Computer for controlling event drive type vehicle Pending JPH0516703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3176752A JPH0516703A (en) 1991-07-17 1991-07-17 Computer for controlling event drive type vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3176752A JPH0516703A (en) 1991-07-17 1991-07-17 Computer for controlling event drive type vehicle

Publications (1)

Publication Number Publication Date
JPH0516703A true JPH0516703A (en) 1993-01-26

Family

ID=16019191

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3176752A Pending JPH0516703A (en) 1991-07-17 1991-07-17 Computer for controlling event drive type vehicle

Country Status (1)

Country Link
JP (1) JPH0516703A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011227833A (en) * 2010-04-22 2011-11-10 Toyota Motor Corp Driving support apparatus
CN116819998A (en) * 2023-05-31 2023-09-29 长城汽车股份有限公司 Execution method and device of control instruction, vehicle and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011227833A (en) * 2010-04-22 2011-11-10 Toyota Motor Corp Driving support apparatus
CN116819998A (en) * 2023-05-31 2023-09-29 长城汽车股份有限公司 Execution method and device of control instruction, vehicle and storage medium

Similar Documents

Publication Publication Date Title
US5305216A (en) Event detector used vehicle control apparatus
US6078944A (en) Process management method and system
US6591167B1 (en) Control unit for vehicle and total control system therefor
US5638272A (en) Control unit for vehicle and total control system therefor
JP4241462B2 (en) Control unit and microcomputer
JP3578082B2 (en) Processing execution device and recording medium
EP2179350B1 (en) Compound instructions in a multi-threaded processor
US5974346A (en) Method for controlling technical processes
US5519649A (en) Micro-processor having rapid condition comparison function
WO2000039669A1 (en) Routing dependent instructions to clustered execution units
CN114610472A (en) Multi-process management method in heterogeneous computing and computing equipment
US7003681B2 (en) Programmable logic controller with an auxiliary processing unit
US5586337A (en) Programmable controller with timing control
US20070055852A1 (en) Processing operation management systems and methods
JP2914580B2 (en) Event-driven vehicle control computer
JP4731126B2 (en) Interrupt control circuit
JP2005242806A (en) Data processing device
JPH04197837A (en) Event-driven type computer for controlling vehicle
JPH08137703A (en) Task switching device
CN116881195B (en) Chip system facing detection calculation and chip method facing detection calculation
CN118277308B (en) Sensor interrupt processing method, system, sensor and computer storage medium
JPH1063574A (en) Processor with cache memory
JP2005071046A (en) How to use cache memory
CN111767129B (en) Data flow task processing device and method
JP2860561B2 (en) Automotive control device