JPH04182803A - Computer for event driving type vehicle control - Google Patents
Computer for event driving type vehicle controlInfo
- Publication number
- JPH04182803A JPH04182803A JP31135790A JP31135790A JPH04182803A JP H04182803 A JPH04182803 A JP H04182803A JP 31135790 A JP31135790 A JP 31135790A JP 31135790 A JP31135790 A JP 31135790A JP H04182803 A JPH04182803 A JP H04182803A
- Authority
- JP
- Japan
- Prior art keywords
- event
- processor
- events
- data
- vehicle
- 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
Links
Landscapes
- Control By Computers (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明は、車両の制御機器に用いるコンピュータに関し
、特に、運転者の操作や車両の運転状態の変化、すなわ
ちイベントを速やかに検出し、これに即座に応動して演
算処理を行ない、最適な制御操作を時間遅れなく実行す
るコンピュータに関する。[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a computer used in a vehicle control device, and in particular, a computer for quickly detecting a driver's operation or a change in the driving state of a vehicle, that is, an event, and responding to the change. The present invention relates to a computer that responds immediately and performs arithmetic processing to execute optimal control operations without time delay.
マイクロコンピュータを用いて車両の各種制御を行なう
装置に関しては、従来、種々のものが提案されている(
例えば、特開昭55−60639号、特開昭55−13
4732号、特開昭54−58116号等、多数あり)
。Various devices have been proposed in the past for controlling various types of vehicles using microcomputers (
For example, JP-A-55-60639, JP-A-55-13
4732, JP-A-54-58116, and many others)
.
車両用の制御装置においては、運転者の操作や車両の運
転状態の変化、すなわちイベントを即座に検出し、これ
に応じた制御を即座に実行する必要がある。なお、上記
のごとき意味でパイベント″という語を使用した例とし
ては、「アイ イーイーイー トランザクションズ オ
ン ソフトウェア エンジニアリング(IEEE TR
ANSACTIONS 0NSOFTWARE ENG
INEERING、VOL、5E−6,NO,1,JA
NUARY1980、 ”Specifying So
ftware Requirements forCo
mplex System : New Techni
ques and TheirApplication
”)」がある。In a vehicle control device, 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 in accordance with the detected event. An example of using the word "Pavent" in the above sense is "IEE Transactions on Software Engineering (IEEE TR
ANSACTIONS 0NSOFTWARE ENG
INEERING, VOL, 5E-6, NO, 1, JA
NUARY1980, “Specifying So
ftware Requirements forCo
complex System: New Techni
ques and their application
There is “)”.
しかし、従来のマイクロコンピュータを用いた制御装置
においては、本来、上記のようなイベントに即応して実
行されなければいけない処理、すなわちイベント処理を
、定周期割込みルーチンで実行するか、もしくはバック
グラウンドでのプログラムの実行ループで行なわざるを
得ながった。However, in conventional control devices using microcomputers, processing that should be executed immediately in response to the above events, that is, event processing, is executed in a fixed periodic interrupt routine or in the background. I had no choice but to do this in the program's execution loop.
そのため実際のイベントの発生からイベントの検出およ
びその処理までに時間的な遅れが生じ、車両の制御特性
、例えばエンジンの排気浄化性能や燃費性能の悪化を招
き、また運転者にとって不快な応答遅れや予期せぬ反応
を引き起こす原因になっている。さらに、微妙なタイミ
ングのずれによって制御機器の動作が大きく異なるため
、外部からの制御機器の検証を困難にし、そのうえ実現
のためにいたずらに煩雑なプログラムロジックを必要と
するため、制御プログラムを開発する際に多大の工数を
必要とし、またこのような時間的空間的に分断された論
理の流れは人間の思考特性に一致しないため、プログラ
ム作成の際にミスを生じ易く、信頼性の低下を招くおそ
れがある。また、そのようなプログラムは第三者による
判読を困難にしてメンテナンス性の悪化を招く等、多大
の悪影響を与えている。As a result, there is a time delay between the actual occurrence of an event and its detection and processing, leading to deterioration of vehicle control characteristics such as engine exhaust purification performance and fuel efficiency, and a delay in response that is unpleasant for the driver. This causes unexpected reactions. Furthermore, since the operation of the control equipment differs greatly due to subtle timing discrepancies, it becomes difficult to verify the control equipment from the outside, and furthermore, it requires unnecessarily complicated program logic to realize it, so it is difficult to develop a control program. This requires a large amount of man-hours when creating a program, and because the flow of logic that is separated in time and space does not match the human thinking characteristics, it is easy to make mistakes when creating a program, leading to a decrease in reliability. There is a risk. In addition, such programs have many negative effects, such as making it difficult for third parties to read them and causing deterioration in maintainability.
上記の問題を解決するため、本出願人等は、演算処理を
実行する制御演算用プロセッサの他に、イベント処理専
用のイベント処理用プロセッサを備え、イベントの発生
を制御演算用プロセッサにおける演算周期とは独立に検
出するように構成したイベント駆動型車両制御用コンピ
ュータを既に出願(特願平2−237153号)してい
る。In order to solve the above problem, the present applicant et al. has provided an event processing processor dedicated to event processing in addition to a control calculation processor that executes calculation processing, and has determined that the occurrence of an event is determined according to the calculation cycle of the control calculation processor. has already filed an application (Japanese Patent Application No. 2-237153) for an event-driven vehicle control computer configured to perform independent detection.
上記の車両制御用コンピュータにおいては、従来のよう
に制御演算用プロセッサで演算周期に従ってイベントの
検出を行なう必要がなくなるので、イベントの検出を高
速で行なうことが出来、かつ。In the above-mentioned vehicle control computer, there is no need for the control calculation processor to detect events according to the calculation cycle as in the conventional case, and therefore events can be detected at high speed.
膨大な割込みの発生によって他の演算に支障を来すおそ
れもない。また、イベント検出用のプログラムも煩雑で
認識・理解のしにくいものは不必要になるので、プログ
ラムの開発やメンテナンスも容易になる、という特徴が
ある。There is no fear that other calculations will be hindered by the occurrence of a huge number of interrupts. Furthermore, since there is no need for an event detection program that is complicated and difficult to recognize and understand, it also facilitates program development and maintenance.
しかし、上記の先行出願に記載の装置においては、イベ
ント処理用プロセッサが全てのイベントのリストを有し
、全てのイベントが常に判定の対象となるように構成さ
九ていた。そのため、イベントの判定をする際に、所定
のイベント群の中から一致するものが現われるまで順次
比較していくのに時間がかかるので、判定すべきイベン
トの数が多い場合はイベントの検出が遅くなってしまい
、場合によってはイベントの発生を見逃してしまう畏れ
がある。また、短時間で比較するためには多数の比較器
を並列に設置する必要があるため、システムのコストが
上昇すると共に信頼性の面からも好ましくない、という
問題がある。However, in the device described in the above-mentioned prior application, the event processing processor has a list of all events, and is configured such that all events are always subject to determination. Therefore, when determining events, it takes time to sequentially compare them until a matching event appears from a predetermined group of events, so if there are many events to be determined, event detection will be slow. In some cases, there is a fear that the occurrence of an event may be missed. Furthermore, in order to perform comparisons 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 unfavorable from the viewpoint of reliability.
本発明は、上記のごとき先行技術をさらに改良し、イベ
ントの検出がさらに高速であり、かつ多数の比較器等を
必要とせず、低コストで高信頼性のイベント駆動型車両
制御用コンピュータを提供することを目的とする。The present invention further improves the prior art as described above, and provides a low-cost, highly reliable event-driven vehicle control computer that detects events even faster, does not require a large number of comparators, etc. The purpose is to
上記の目的を達成するため、本発明においては、特許請
求の範囲に記載するように構成している。In order to achieve the above object, the present invention is configured as described in the claims.
第1図は請求項1に記載した本発明の機能ブロック図で
ある。FIG. 1 is a functional block diagram of the present invention as set forth in claim 1.
第1図において、1はイベント処理用プロセッサであり
、各種センサからの入力信号SIに基づいて、どのイベ
ントが発生したかを検出する。In FIG. 1, an event processing processor 1 detects which event has occurred based on input signals SI from various sensors.
すなわち、上記イベント処理用プロセッサは、アドレス
上の任意のデータにおけるトランジェントの発生を検出
し、上記トランジェントの発生が所定の順序に整列した
トランジェントの組を判別して、それが予め定められた
複数のイベントにそれぞれ対応したトランジェントの組
のうちのいずれであるかを検出し、それを当該所定のイ
ベントの発生として出力するものである。That is, the event processing processor detects the occurrence of a transient in arbitrary data on an address, determines a set of transients in which the occurrences of the transients are arranged in a predetermined order, and identifies the set of transients arranged in a predetermined order. It detects which of a set of transients corresponds to each event, and outputs it as the occurrence of the predetermined event.
また、イベント処理用プロセッサ1は、発生頻度の高い
イベントに関して常時イベントの発生を判定する常時判
定イベントリスト2と、後述する制御演算用プロセッサ
4内のイベント判定要求手段5の要求に基づいて、判定
するイベントを追加する割込み判定設定手段3とを有し
ている。そして常時判定イベントリスト2に登録されて
いる発生頻度の高いイベントに関しては、常にイベント
の判定を行なうが、発生頻度の低いイベントに関しては
、制御演算用プロセッサ4内のイベント判定要求手段5
の要求があった場合にのみイベントの判定を行なう。Further, the event processing processor 1 makes a judgment based on a constantly judged event list 2 that judges the occurrence of events with a high occurrence frequency, and a request from an event judgment requesting means 5 in the control calculation processor 4, which will be described later. and an interrupt determination setting means 3 for adding an event to be performed. Events with a high frequency of occurrence registered in the constant determination event list 2 are always determined, but events with a low frequency of occurrence are determined by the event determination requesting means 5 in the control calculation processor 4.
The event is determined only when there is a request.
また、4は制御演算用プロセッサであり1通常は所定の
プログラムに従って制御演算を行ない、その結果として
得られた制御用の出力信号SOを出力する。また、イベ
ント発生時にはイベント処理用プロセッサlの検呂結果
に基づいて、その発生したイベントに対応した制御プロ
グラムの演算を実行し、その結果として得られたイベン
ト発生時の出力信号を出力する。また、制御演算用プロ
セッサ4は、イベント判定要求手段5備え、発生頻度の
低いイベントについては、判定するタイミングを上記イ
ベント判定要求手段5によってイベント処理用プロセッ
サ1に指示する。Reference numeral 4 denotes a control calculation processor 1 which normally performs control calculations according to a predetermined program and outputs a control output signal SO obtained as a result. Further, when an event occurs, based on the check result of the event processing processor 1, calculations of a control program corresponding to the generated event are executed, and an output signal obtained at the time of the event occurrence is outputted as a result. Further, the control calculation processor 4 includes an event determination requesting means 5, and the event determination requesting means 5 instructs the event processing processor 1 regarding the timing of determination for events that occur less frequently.
次に、請求項2に記載の発明は、通常のメインバス以外
に、イベント関連のアドレス及びデータの転送を行なう
イベント専用バスを備え、イベント処理用プロセッサは
、上記イベント専用バスを介して転送されるイベントに
関連する特定のデータのみを監視するように構成したも
のである。Next, the invention according to claim 2 is provided with an event-dedicated bus for transferring event-related addresses and data in addition to the normal main bus, and the event processing processor is configured to transfer event-related addresses and data via the event-dedicated bus. It is configured to monitor only specific data related to events.
上記のように、本発明においては、演算処理を実行する
制御演算用プロセッサの他に、イベント処理専用のイベ
ント処理用プロセッサを備え、イベントの発生を制御演
算用プロセッサにおける演算周期とは独立に検出するよ
うに構成している。As described above, in the present invention, in addition to the control calculation processor that executes calculation processing, an event processing processor dedicated to event processing is provided, and the occurrence of an event is detected independently of the calculation cycle in the control calculation processor. It is configured to do so.
すなわち、イベント処理用プロセッサは、アドレス上の
任意のデータにトランジェント(遷移)が発生した場合
に、該トランジェントの発生が所定の順序に整列したト
ランジェントの組を検出し、そのトランジェントの組が
予め定められたどのイベントに対応したものであるかを
判別して、それを当該所定のイベントの発生として出力
するものである。That is, when a transient (transition) occurs in arbitrary data on an address, the event processing processor detects a set of transients in which the occurrences of the transient are arranged in a predetermined order, and the event processing processor detects a set of transients in which the occurrence of the transient is arranged in a predetermined order It determines which event the event corresponds to, and outputs it as the occurrence of the predetermined event.
また、請求項1に記載の発明においては、イベントを発
生頻度の高いものと低いものに分離し、発生頻度の高い
イベントについては、イベント処理用プロセッサにおい
て常時判定し、発生頻度の低いイベントは、判定するタ
イミングを制御演算用プロセッサ内のイベント判定要求
手段からイベント処理用プロセッサに指示し、イベント
処理用プロセッサは要求があってからはじめて判定を行
なうように構成している。Furthermore, in the invention described in claim 1, events are separated into those with a high frequency of occurrence and those with a low frequency of occurrence, and events with a high frequency of occurrence are constantly determined by the event processing processor, and events with a low frequency of occurrence are determined by the event processing processor. The event processing processor is configured to instruct the event processing processor regarding the timing of the determination from the event determination requesting means in the control processor, and the event processing processor performs the determination only after receiving the request.
上記のように構成したことにより、従来のように制御演
算用プロセッサで演算周期に従ってイベントの検出を行
なう必要がなくなるので、イベントの検出を高速で行な
うことが出来、かつ、膨大な割込みの発生によって他の
演算に支障を来すおそれもない。また、イベント検出用
のプログラムも煩雑で認識・理解のしにくいものは不必
要になるので、プログラムの開発やメンテナンスも容易
になる。With the above configuration, it is no longer necessary for the control calculation processor to detect events according to the calculation cycle as in the past, so events can be detected at high speed, and it is possible to avoid the occurrence of a huge number of interrupts. There is no risk of interfering with other calculations. Further, since a complicated event detection program that is difficult to recognize and understand is unnecessary, the development and maintenance of the program becomes easier.
また、発生頻度の高いイベントについてはイベント処理
用プロセッサにおいて常時判定し、発生頻度の低いイベ
ントはイベント判定要求手段の要求があってからはじめ
て判定を行なうように構成したことにより、常時判定す
るイベントの種類を大幅に減少させることが出来る。そ
のためイベント判定を高速で行なうことが出来ると共に
、発生頻度の低いイベントについても確実に検出するこ
とが出来る。また、多数の比較器を設置する必要もない
ので、低コスト、高信頼性を実現することが出来る。In addition, by configuring the system so that frequently occurring events are constantly judged by the event processing processor, and infrequently occurring events are judged only after receiving a request from the event judgment requesting means, events that are constantly judged are The number of species can be significantly reduced. Therefore, event determination can be performed at high speed, and even events with low occurrence frequency can be reliably detected. Furthermore, since there is no need to install a large number of comparators, low cost and high reliability can be achieved.
また、請求項2に記載の発明においては、通常のメイン
バス以外に、イベント関連のアドレス及びデータの転送
を行なうイベント専用バスを備え、イベント処理用プロ
セッサは、上記イベント専用バスを介して転送されるイ
ベントに関連する特定のデータのみを監視するように構
成したことにより、イベント処理用プロセッサが監視す
べきデータ数を削減することができるので、イベント検
出を迅速に行なうことが出来ると共に、ハードウェアを
大幅に簡略化することが出来る。Further, in the invention according to claim 2, in addition to the normal main bus, there is provided an event-dedicated bus for transferring event-related addresses and data, and the event processing processor transfers the event-related addresses and data via the event-dedicated bus. By configuring the system to monitor only specific data related to events, the event processing processor can reduce the amount of data that must be monitored. can be greatly simplified.
第2図は、本発明の一実施例のブロック図であり、請求
項1の発明に対応する。FIG. 2 is a block diagram of one embodiment of the present invention, and corresponds to the invention of claim 1.
第2図において、11はイベント処理用プロセッサ、1
2は制御演算用プロセッサである。また、RAM13お
よびROM14はそれぞれイベント処理用プロセッサ1
1専用のメモリ、RAM15およびROM16はそれぞ
れ制御演算用プロセッサ12専用のメモリである。また
、RAM17はイベント処理用プロセッサ11と制御演
算用プロセッサ12との共用のメモリであり、両プロセ
ッサから同じ情報を読み書きできるものである。In FIG. 2, 11 is an event processing processor;
2 is a control calculation processor. Further, the RAM 13 and the ROM 14 are each used by the event processing processor 1.
The RAM 15 and ROM 16 are memories dedicated to the control calculation processor 12, respectively. Further, the RAM 17 is a memory shared by the event processing processor 11 and the control calculation processor 12, and allows both processors to read and write the same information.
また、SI、〜SI。は各種センサがらの入力信号であ
り、例えばエンジンの吸入空気量信号、回転速度信号、
冷却水温信号、スロットル開度信号。Also, SI, ~SI. are input signals from various sensors, such as engine intake air amount signal, rotational speed signal,
Cooling water temperature signal, throttle opening signal.
アイドルスイッチ信号、空燃比信号等である。また、S
O工〜SO,は各種アクチュエータへの出力信号であり
、例えば燃料噴射信号、ブレーキ制御信号、電子制御変
速機への変速信号等である。These are idle switch signals, air-fuel ratio signals, etc. Also, S
O~SO are output signals to various actuators, such as fuel injection signals, brake control signals, and speed change signals to electronically controlled transmissions.
また、入呂力装置18は、上記の各種入力信号SI、〜
SI。を入力(必要がある場合はA/D変換後に入力)
し、かつ、演算結果の各種出力信号801〜SO,を出
力する。The bathing power device 18 also receives the various input signals SI, .
S.I. (If necessary, input after A/D conversion)
In addition, various output signals 801 to SO of the calculation results are output.
また、上記の各構成要素間の信号の授受は、アドレスバ
スとデータバスとを備えたメインバス19を介して行な
われる。Furthermore, signals are exchanged between the above-mentioned components via a main bus 19 that includes an address bus and a data bus.
次ぎに、第3図(A)は、上記のイベント処理用プロセ
ッサ11における演算内容の一実施例をブロックで示し
た図であり、第3図(B)はイベント管理プログラムの
一例図である。Next, FIG. 3(A) is a block diagram showing an example of calculation contents in the event processing processor 11, and FIG. 3(B) is an example of an event management program.
以下、第3図に基づいてイベント処理用プロセッサの動
作を説明する。The operation of the event processing processor will be explained below based on FIG.
第3図(A)において、2oはデジタル比較手段であり
、メモリ(RAM17)上の任意のビット数の所定のデ
ータ(ビット、ワード等の単位)を比較する。このデジ
タル比較手段20は、所定のアドレスのメモリに対する
書き込みが行なわ扛たことを検出するアドレス一致検出
手段20−1と、イベント管理プログラム24中の所定
値とメモリ上のデータとを比較し、その結果を状態コー
ドとして出力するデータ比較手段20−2から構成され
る。In FIG. 3(A), 2o is a digital comparing means, which compares predetermined data (in units of bits, words, etc.) of an arbitrary number of bits on the memory (RAM 17). This digital comparison means 20 compares a predetermined value in the event management program 24 with the data on the memory, and an address coincidence detection means 20-1 that detects that a predetermined address has been written to the memory. It is comprised of data comparing means 20-2 which outputs the result as a status code.
また、21はトランジェント検出手段であり、デジタル
比較手段20の出力、メモリ上の所定のビット、もしく
は入力信号の状態を入力して過去の状態と比較し、デー
タの状態変化の方向(オン−オフ、オフ→オン、両方向
等)を検出し、トランジェント発生信号として出力する
。Further, 21 is a transient detection means, which inputs the output of the digital comparison means 20, a predetermined bit on the memory, or the state of an input signal and compares it with the past state, and detects the direction of the data state change (on-off). , off → on, both directions, etc.) and outputs it as a transient signal.
また、22はイベント判定手段であり、トランジェント
の発生順序が予め定められた何のイベントに対応するも
のであるかを判別して、最終的にイベント検出信号とし
て出力するものである。Further, reference numeral 22 denotes an event determining means, which determines which event the order of occurrence of transients corresponds to, which is determined in advance, and finally outputs the result as an event detection signal.
なお、このイベント処理用プロセッサは、内部的に直列
に接続され、さらに複雑なイベント発生シーケンスを検
出する構成とすることも可能である。Note that the event processing processors can also be configured to be internally connected in series to detect a more complex event occurrence sequence.
また、23ばイベント管理手段であり、上記20〜22
の連携動作をイベント管理プログラム24によって制御
する。In addition, 23 is an event management means, and 20 to 22 above
The event management program 24 controls the cooperative operation of the event management program 24.
また、25は常時判定イベントリストであり、詳細を後
述するごとく、判定すべきイベントのうちから発生頻度
の少ないイベントを除いたイベントのリストである。な
お、実際上は、この常時判定イベントリスト25はイベ
ント管理プログラム24内に含まれるが、説明の都合上
、分けて表示している。この常時判定イベントリスト2
5にあるイベントについては、上記20〜24の部分で
説明したイベント判定を常時行なう。Further, 25 is a constant judgment event list, which is a list of events to be judged excluding events with low frequency of occurrence, as will be described in detail later. Note that, in practice, this constant determination event list 25 is included in the event management program 24, but for convenience of explanation, it is displayed separately. This constant judgment event list 2
Regarding the event in item 5, the event determination described in items 20 to 24 above is always performed.
また、26は割込み判定設定手段であり、詳細を後述す
るように、上記の常時判定イベントリスト25にないイ
ベントについて、図示しない制御演算用プロセッサ内の
イベント判定要求手段からの判定要求があった場合に、
当該イベントの判定を行なう割込みを発生させる。Further, 26 is an interrupt determination setting means, and as will be described in detail later, when there is a determination request from the event determination requesting means in the control calculation processor (not shown) regarding an event not included in the above-mentioned constant determination event list 25. To,
Generates an interrupt to determine the event.
なお、イベント管理プログラム24は、例えば第3図(
B)に示すごときものである。この例は、アイドルスイ
ッチがオンからオフ(スロットル弁が閉状態から開状態
になる)になった場合に″加速イベント”であることを
判別する場合を例示している。Note that the event management program 24 may be configured as shown in FIG. 3 (
It is as shown in B). This example illustrates a case where an "acceleration event" is determined when the idle switch changes from on to off (throttle valve changes from closed state to open state).
以下、まず、常時判定イベントリストにあるイベントに
関するイベント判定について、加速イベントを例として
説明する。Hereinafter, first, event determination regarding events in the constant determination event list will be described using an acceleration event as an example.
まず、運転者のアクセル操作は、スロットル全閉を示す
スイッチ信号(アイドルスイッチ)のオン/オフとして
メモリに書き込まれる。なお、第3図では図示していな
いが、前記第2図の入出力装置18が入力レジスタのデ
ータを入力レジスタが割り付けられたメモリへ転送する
。この結果。First, the driver's accelerator operation is written into the memory as an on/off switch signal (idle switch) indicating that the throttle is fully closed. Although not shown in FIG. 3, the input/output device 18 shown in FIG. 2 transfers the data in the input register to the memory to which the input register is allocated. As a result.
メモリに対する書き込み操作が行なわれ、アイドルスイ
ッチのアドレスにWR信号r発生する。A write operation to the memory is performed and a WR signal r is generated at the address of the idle switch.
この信号を受けて、アドレス一致検出手段20−1はイ
ベント管理プログラム24で指定されたアドレスと一致
するものがあるか否かを検出する。Upon receiving this signal, the address match detection means 20-1 detects whether there is an address that matches the address specified by the event management program 24.
そして一致が検出された場合は、通常はイベント管理プ
ログラム中の比較データとメモリ上の一致が検出さtた
アドレスのデータとを比較手段20−2で比較するが、
この例の場合はビットデータであるため、比較手段2o
−2は用いられず、直ちにトランジェント検出手段21
に入力される。When a match is detected, the comparing 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 was detected.
In this example, since it is bit data, the comparison means 2o
-2 is not used and immediately the transient detection means 21
is input.
比較データが通常のデータであれば、アドレスの一致を
検出した組の比較値とメモリ上の書き込みが行なわれた
アドレスのデータとを比較手段20−2によって比較し
、この比較結果が2値の出力としてトランジェント検出
手段21に入力される。If the comparison data is normal data, the comparison means 20-2 compares the comparison value of the set in which address matching was detected and the data of the address written on the memory, and the comparison result is converted into a binary value. It is input to the transient detection means 21 as an output.
トランジェント検出手段21は、予め指定されたオン−
オフの変化(全開状態からアクセルが踏まれたトランジ
ェント、すなわちこの場合は即イベント)を検出し、そ
のイベントに対応した所定の出力、すなわち、この場合
は加速イベント検出用信号(aecel−event)
を発生する。The transient detection means 21 detects a pre-designated on-state.
Detects a change in off state (transient when the accelerator is pressed from a fully open state, i.e., an immediate event in this case), and outputs a predetermined output corresponding to that event, i.e., an acceleration event detection signal (aecel-event) in this case.
occurs.
同時に順序比較のため、この時のアイドルスイッチの状
態がイベント処理用プロセッサ11の持つメモリ(定義
されたイベント毎に確保される)に保存される。At the same time, for order comparison, the state of the idle switch at this time is stored in the memory (secured for each defined event) of the event processing processor 11.
なお、この例の場合は、単一のトランジェントがそのま
まイベントとして定義されているので、イベント判定手
段22の動作はない。Note that in this example, since a single transient is directly defined as an event, there is no operation of the event determining means 22.
次に、常時判定イベントリストにないイベントに関する
イベント判定について説明する。Next, event determination regarding events not included in the regular determination event list will be explained.
第4図は、イベント処理プロセッサ11と制御演算用プ
ロセッサ12の内容を示す一実施例のブロック図である
。第4図において、常時判定イベントリスト3oは、全
体のイベントから発生頻度の低いイベントを除いたイベ
ントのリストであり、イベント処理用プロセッサ11に
設けられている(例えば第2図のROM14に記憶)。FIG. 4 is a block diagram of an embodiment showing the contents of the event processing processor 11 and the control calculation processor 12. In FIG. 4, the constant judgment event list 3o is a list of events obtained by excluding events with low occurrence frequency from all events, and is provided in the event processing processor 11 (for example, stored in the ROM 14 in FIG. 2). .
また、イベント判定要求手段32は、制御演算用プロセ
ッサ12の機能であり、常時判定イベントリスト30に
ないイベントの検出が必要になったときに、イベント処
理用プロセッサ11にイベント判定の要求を出すもので
ある。Further, the event determination requesting means 32 is a function of the control calculation processor 12, and issues a request for event determination to the event processing processor 11 when it becomes necessary to detect an event that is not in the constant determination event list 30. It is.
また1割込判定設定手段31は、イベント処理用プロセ
ッサ11の機能であり、制御演算用プロセッサ12から
のイベント判定要求に基づいて、判定イベントを追加す
る。The 1-interrupt determination setting means 31 is a function of the event processing processor 11, and adds a determined event based on an event determination request from the control calculation processor 12.
通常、イベント処理用プロセッサ11は、前記第3図で
説明したごとく、全体のイベントから発生頻度の低いイ
ベントを除いた常時判定イベントリスト30を用いて、
イベントの判定を行なっている。そして常時判定イベン
トリストにないイベントの判定が必要になったときには
、制御演算用プロセッサ12のイベント判定要求手段3
2から、イベント処理用プロセッサ11にイベント判定
要求が出される。Normally, as explained in FIG. 3, the event processing processor 11 uses the constant judgment event list 30 that excludes events with low occurrence frequency from all events.
Judging events. When it becomes necessary to judge an event that is not on the regular judgment event list, the event judgment requesting means 3 of the control calculation processor 12
2, an event determination request is issued to the event processing processor 11.
イベント処理用プロセッサ11では、制御演算用プロセ
ッサ12からのイベント判定要求に基づいて、割込判定
設定手段31が、判定するイベントを追加する。In the event processing processor 11, the interrupt determination setting means 31 adds an event to be determined based on the event determination request from the control calculation processor 12.
以下、実例に基づいて詳細に説明する。A detailed explanation will be given below based on an example.
常時判定イベントリストに入れるイベントと、発生頻度
が低いため常時判定イベントリスト30から除くイベン
トの例としては、例えば、フューエル・カット(減速時
の燃料遮断)の2つのイベントがある。Examples of events to be included in the constant determination event list and events to be excluded from the constant determination event list 30 because of their low frequency of occurrence include, for example, two events: fuel cut (fuel cutoff during deceleration).
フューエル・カットは、車両減速時における排気浄化性
能の向上と燃料節約とを目的としたものであり、所定の
条件を満足する減速時に燃料供給を停止するものである
。The purpose of fuel cut is to improve exhaust purification performance and save fuel during vehicle deceleration, and is to stop fuel supply when deceleration satisfies predetermined conditions.
フューエル・カットに入る条件としては次の2つのイベ
ントがある。すなわち、
■車速およびエンジン回転数がそれぞれ所定値以上の状
態のときに、アイドルスイッチがオン(スロットル弁が
閉)になった場合、
■アイドルスイッチがオンになった後に、車速およびエ
ンジン回転数がそれぞれ所定値以上になった場合、であ
る。There are two conditions for entering a fuel cut: In other words, ■ If the idle switch is turned on (throttle valve closed) when the vehicle speed and engine speed are respectively above the predetermined values, ■ After the idle switch is turned on, the vehicle speed and engine speed are If each exceeds a predetermined value, then
上記■は、高速からスロットル弁を閉じて減速に入る場
合であり1通常の減速時に生じる状態である。したがっ
てこのイベント■が発生する頻度は高い。これに対して
、上記■は、例えば下り坂走行中などにおいて、スロッ
トル弁を閉じた時点では車速や回転数が所定値より低い
状態であったものが、次第に加速されて所定値以上に達
した場合である。このような走行状態が生じることば稀
であるから、このイベント■が発生する頻度は上記イベ
ント■に比して大幅に小さい。The above case (2) is a case where the throttle valve is closed from a high speed and deceleration begins, and is a state that occurs during normal deceleration. Therefore, the frequency with which this event ■ occurs is high. On the other hand, (2) above means that when the throttle valve is closed, the vehicle speed and rotational speed are lower than the predetermined value when the throttle valve is closed, but they gradually accelerate and reach the predetermined value or higher. This is the case. Since such a driving condition rarely occurs, the frequency with which this event (2) occurs is significantly lower than that of the above-mentioned event (2).
上記のように、イベント■は発生頻度が高いので常時判
定イベントリストに入れるが、イベント■は発生頻度が
低いので、常時監視する必要はなく、″アイドルスイッ
チがオン”というトランジェントが発生した場合にのみ
監視すればよい。そのため、イベント処理用プロセッサ
11の常時判定イベントリスト30からイベント■を除
き、代わりに、′アイドルスイッチがオンというトラン
ジェントが発生したらイベント■を判定する″というス
テップを制御演算用プロセッサ12のプログラム・フロ
ーに入れておく。As mentioned above, event ■ occurs frequently, so it is included in the constant judgment event list, but event ■ occurs infrequently, so there is no need to constantly monitor it. only need to be monitored. Therefore, the event ■ is removed from the constant determination event list 30 of the event processing processor 11, and instead, the step of ``determine the event ■ when a transient that the idle switch is turned on'' occurs is added to the program flow of the control calculation processor 12. Put it in.
上記のように設定しておけば、第5図に示すように、′
アイドルスイッチがオン”というトランジェントが発生
し、所定の処理Sが終わり、イベント■か否かの判定が
必要になったとき、すなわち車速やエンジン回転数が所
定値以上になったときに、制御演算用プロセッサ12の
イベント判定要求手段32から、イベント処理用プロセ
ッサ11にイベント■か否かのイベント判定要求が出さ
れる。With the above settings, as shown in Figure 5, '
When a transient such as "idle switch is turned on" occurs, the predetermined processing S is completed, and it becomes necessary to determine whether or not event The event determination requesting means 32 of the event processing processor 12 issues an event determination request to the event processing processor 11 to determine whether the event is an event (2) or not.
イベント処理用プロセッサ11では、上記の要求を受け
、′イベント■”を判定イベントの最初に割り込ませる
。そして″アイドルスイッチがオン“、7車速が所定値
以上”、6回転数が所定値以上”という条件からイベン
ト■を判定し、その結果を制御演算用プロセッサ12に
戻す。制御演算用プロセッサ12はその結果に応じて、
イベント■であった場合は燃料遮断(処理Y)、イベン
ト■でなかった場合は燃料供給継続(処理N)等の処理
を実行する。In response to the above request, the event processing processor 11 inserts ``event ■'' at the beginning of the judgment event.Then, ``idle switch is on,'' 7 vehicle speed is above a predetermined value, and 6 rotation speed is above a predetermined value.'' The event ■ is determined based on the condition, and the result is returned to the control calculation processor 12.The control calculation processor 12, according to the result,
If the event (2) is the event, the fuel is cut off (processing Y), and if the event is not the event (2), the fuel supply is continued (processing N).
次に、第6図に基づいて判定イベント割込みの方法につ
いて説明する。Next, a method of interrupting a determination event will be explained based on FIG.
第6図において、左側が常時判定イベントリストであり
1通常は、例えば、上から下へと順番に判定して行く。In FIG. 6, the left side is a constant determination event list, and normally, for example, determinations are made in order from top to bottom.
また、右側が割込み判定イベントリストである。Also, the right side is an interrupt determination event list.
制御演算用プロセッサ12から、′イベントAを判定せ
よ″という要求が来た場合には1割込み判定イベントリ
ストの中からイベントAを選び、常時判定イベントリス
トの判定順番の前に割り込んで1判定を行なう。When a request to 'judge event A' is received from the control calculation processor 12, event A is selected from the 1-interrupt judgment event list, and the 1-judge is performed by interrupting before the judgment order in the regular judgment event list. Let's do it.
さらに、複数の割込みを行なうこともある。例えば、イ
ベントAの検出が終わらないうちに、イベントBを判定
する必要が生じた場合には、上記と同様に、常時判定イ
ベントリストの前に判定を行なう。また、イベントAと
イベントBとのいずれが発生するか判らないときなども
、AとBの両方のイベントについて割込み判定すること
が考えられる。゛
なお、この例では簡単のためイベント(トランジェント
)が同一信号の排他的状態を検出するものとして説明し
たが、多数のトランジェントが複合して1つのイベント
として判定される場合はどその効果が大きいことはもち
ろんである。Furthermore, multiple interrupts may occur. For example, if it becomes necessary to judge event B before the detection of event A is finished, the judgment is made before the regular judgment event list, as described above. Further, when it is not known whether event A or event B will occur, it is conceivable to make an interrupt determination for both events A and B.゛Although in this example, for simplicity, the event (transient) was explained as detecting an exclusive state of the same signal, the effect is greater when multiple transients are combined and judged as one event. Of course.
次に、請求項2に記載の発明について説明する。Next, the invention according to claim 2 will be explained.
前記特願平2−237153号公報に記載のイベント駆
動型車両用コンピュータにおいては、イベント処理用プ
ロセッサと制御演算用プロセッサとがメインバスを介し
て信号の授受を行なっている。そしてメインバスには、
プログラム・データ、命令アドレス・データ、メモリ・
アドレス・データなどの各種のアドレスやデータが転送
されるので、これらの全てをイベント処理用プロセッサ
で監視するには多くのハードウェアが必要となる。In the event-driven vehicle computer described in Japanese Patent Application No. 2-237153, an event processing processor and a control calculation processor exchange signals via a main bus. And on the main bus,
Program data, instruction address data, memory
Since various addresses and data such as addresses and data are transferred, a large amount of hardware is required to monitor all of them with an event processing processor.
すなわち、イベント処理用プロセッサにおいては、転送
されているアドレスの全てを予め指定されたイベントの
データのアドレスと比較し、一致するか否かを判別する
必要がある。したがって前記のイベント駆動型車両用コ
ンピュータの構成においては、イベント処理用プロセッ
サのイベント検知部分のハードウェアが大規模になり、
またイベント処理が遅くなる畏れもある。That is, in the event processing processor, it is necessary to compare all of the transferred addresses with the addresses of event data specified in advance to determine whether they match or not. Therefore, in the configuration of the event-driven vehicle computer described above, the hardware of the event detection part of the event processing processor becomes large-scale.
There is also the fear that event processing will be delayed.
請求項2に記載の発明は、上記の問題製解決するために
なされたものであり、以下詳細に説明する。The invention set forth in claim 2 has been made to solve the above problem, and will be described in detail below.
第7図は、請求項2に記載の発明の一実施例のブロック
図である。第7図において、40はイベント専用バスで
ある。このイベント専用バス40は、通常のメインバス
19とは独立に設けられたものであり、イベント処理用
プロセッサ11と演算処理用プロセッサ12間において
イベント関連のアドレス及びデータの伝送を行なう専用
のバスである。また、RAM17の内部は、通常のアド
レス、データ用の部分】7−1とイベント専用部分17
−2とに分けられている。その他、前記第2図と同符号
は同一部分を示す。FIG. 7 is a block diagram of an embodiment of the invention according to claim 2. In FIG. 7, 40 is a dedicated event bus. This event dedicated bus 40 is provided independently of the normal main bus 19, and is a dedicated bus for transmitting event-related addresses and data between the event processing processor 11 and the arithmetic processing processor 12. be. In addition, the inside of the RAM 17 includes a normal address and data section 7-1 and an event-only section 17.
-2. In addition, the same reference numerals as in FIG. 2 indicate the same parts.
メインバス19においては、通常のプロセッサと同様の
動作が行なわれる。例えば、第8図の(19)に示すよ
うに、アドレスAとデータDとが次々に転送されている
(実際には必ずしもこのような順番とは限らない)。上
記のアドレスとしては、例えばメモリやボートのアドレ
スがあり。On the main bus 19, operations similar to those of a normal processor are performed. For example, as shown in (19) in FIG. 8, address A and data D are transferred one after another (actually, this is not necessarily the order). Examples of the above addresses include memory and boat addresses.
その他にレジスタの指令も含まれる。また、データとし
ては、プログラム・データ、入力データ、演算結果デー
タ、出力データ等がある。第8図の(19)は、上記の
ごとき種々のアドレスAとそれに付随するデータDとが
マイクロプログラムに従って次々に転送されている様子
を模式的に示したものである。In addition, register instructions are also included. Furthermore, the data includes program data, input data, calculation result data, output data, and the like. (19) in FIG. 8 schematically shows how the various addresses A and their associated data D as described above are transferred one after another according to the microprogram.
一方、イベント専用バス40には、上記と同様にアドレ
スAとデータDが転送されるが、この場合には、第8図
の(4o)に示すように、予めイベント処理用プロセッ
サ11によって指定されている“監視すべき状態変化″
すなわちイベントに係るアドレスとデータのみである。On the other hand, address A and data D are transferred to the event dedicated bus 40 in the same manner as described above, but in this case, as shown in (4o) in FIG. “Changes in status that should be monitored”
That is, only the address and data related to the event.
また、RAM17は1通常部17−1とイベント専用部
17−2の2つの部分に分けられている。Further, the RAM 17 is divided into two parts: a normal part 17-1 and an event-only part 17-2.
そして通常部17−’lにはイベントに無関係なデータ
を格納し5通常のメインバス19を介して制御演算用プ
ロセッサ12や図示しないタイマなどから転送を行なう
、また、イベント専用部17−2には、イベントに係る
データを格納し、イベント専用バス40を介して制御演
算用プロセッサ12やイベント処理用プロセッサ11な
どと転送を行なう。なお、プログラムが与えられると、
どのデータがイベントに係るものであるかが判るので、
それに応じてメモリの割当を作るようにしておけばよい
。The normal section 17-'1 stores data unrelated to the event, and transfers it from the control calculation processor 12, a timer (not shown), etc. via the normal main bus 19. stores data related to events, and transfers the data to the control calculation processor 12, event processing processor 11, etc. via the event dedicated bus 40. Furthermore, given a program,
Since you can see which data is related to the event,
All you need to do is to allocate memory accordingly.
イベント処理用プロセッサ11は、イベント専用バス4
0を監視し、データの種類をアドレスの違いで判定し、
データの種類が特定できたら、そのデータの範囲や変化
がイベントに相当するか否かを判断する。そして、その
結果に応じて1割り込み信号やメモリ書換信号を含む処
理信号と、イベントに係るデータを指定するデータ指定
信号とをイベント専用バス40を介して制御演算用プロ
セッサ12へ送る。The event processing processor 11 includes an event dedicated bus 4
0, determine the type of data based on the difference in addresses,
Once the type of data has been identified, it is then determined whether the range and changes in the data correspond to an event. Then, in accordance with the result, processing signals including an interrupt signal and a memory rewriting signal, and a data designation signal designating data related to the event are sent to the control calculation processor 12 via the event dedicated bus 40.
上記のようなバス構成にするためには、イベントに係る
データの転送とイベントに係らないデータの転送とを並
列に行なうための並列化手段(水平化マイクロプログラ
ム等)、あるいはパイプライン化手段が必要であるが、
それらは通常の並列化、パイプライン化の手法を用いて
実現可能である。In order to achieve the above bus configuration, parallelization means (leveling microprogram, etc.) or pipeline means are required to transfer event-related data and non-event-related data in parallel. Although it is necessary,
These can be realized using normal parallelization and pipelining techniques.
第9図は、イベント処理用プロセッサ11内のアドレス
比較を行なう回路を示し、(A)はイベント専用バスを
用いない場合、(B)は本発明におけるイベント専用バ
スを用いた場合を示す6第9図(A)の場合には、多数
のアドレス・データが次々に転送されてくるので、シリ
アルに順次比較している時間的余裕はなく、多数の比較
器50−1〜50−nを並列に並べる必要がある。9 shows a circuit for comparing addresses in the event processing processor 11, (A) shows the case where the event dedicated bus is not used, and (B) shows the case where the event dedicated bus according to the present invention is used. In the case of Figure 9 (A), since a large number of address data are transferred one after another, there is no time to compare them serially, so a large number of comparators 50-1 to 50-n are connected in parallel. It is necessary to arrange them in
これに対して、イベント専用バスを用いた場合には、デ
ータ数が少ないので、(B)に示すように、1個の比較
器50と1個のレジスタ51とを用い、レジスタ51の
アドレスを順次変えてシリアルに比較しても時間的に余
裕がある。したがってハードウェアを大幅に削減するこ
とが出来る。なお、上記の構成において、イベントに係
るアドレス、データのフローでアドレスとデータ間が接
近する場合も考えられるので、FIFOレジスタに一時
格納することも考えられる。On the other hand, when an event-dedicated bus is used, since the amount of data is small, one comparator 50 and one register 51 are used, and the address of the register 51 is set as shown in (B). Even if you change them one by one and compare them serially, there is plenty of time. Therefore, hardware can be significantly reduced. Note that in the above configuration, it is conceivable that the address and data may be close to each other due to the flow of address and data related to an event, so it may be possible to temporarily store the address and data in a FIFO register.
次に、実例について説明する。Next, an example will be explained.
第1ONは、請求項2に記載した発明における並列処理
の実際の例を示す図であり、(19゛)はメインバス1
9内を転送されるアドレスとデータ、(40)はイベン
ト専用バスを転送されるアドレスとデータを、それぞれ
模式的に示したものである。The first ON is a diagram showing an actual example of parallel processing in the invention described in claim 2, and (19゛) is a diagram showing the main bus 1.
Addresses and data transferred through 9 and (40) schematically show addresses and data transferred through the event dedicated bus, respectively.
この演算は、メインバス19を介した方では基本燃料噴
射時間TPを演算し、また、イベント専用バスを介した
方では加速イベントを検出し、加速時には基本燃料噴射
時間”rpに加速補正分子eを加えたものを実際の燃料
噴射時間Tiとする場合を示す。This calculation calculates the basic fuel injection time TP via the main bus 19, and detects an acceleration event via the event dedicated bus, and when accelerating, adds the acceleration correction numerator e to the basic fuel injection time The case is shown in which the actual fuel injection time Ti is calculated by adding .
まず、(19)に示すのは、エンジンの基本燃料噴射時
間の演算であり、吸入空気量Qとエンジン回転数Nから
基本燃料噴射時間’rpを計算するためのアドレスとデ
ータの転送を行なう場合を示し、下記(、)〜(j)の
ごとき順序で転送される。First, (19) shows the calculation of the basic fuel injection time of the engine, and the case where the address and data are transferred to calculate the basic fuel injection time 'rp from the intake air amount Q and the engine speed N. , and are transferred in the following order (,) to (j).
(a)Qをメモリに入れるためのアドレスA9゜(b)
QのデータD9の転送(外部入力又は内部レジスタより
)。(a) Address A9゜ to put Q into memory (b)
Transfer of Q data D9 (from external input or internal register).
(c)Nをメモリに入れるためのアドレスA n e(
d)NのデータDnの転送。(c) Address A n e (
d) Transfer of data Dn of N.
(e)ALUを指定するアドレスAu。(e) Address Au specifying the ALU.
(f)DqをALUのレジスタへ転送する。(f) Transfer Dq to the ALU register.
(g)DnをALUのレジスタへ転送する。(g) Transfer Dn to the ALU register.
(h)ALUへ演算命令を比す(Iu)。(h) Compare the operation instruction to the ALU (Iu).
(i)演算結果TPをメモリへ入れるためのアドレスA
t。(i) Address A for storing the calculation result TP into memory
t.
(j)Tpをメモリへ格納する。(j) Store Tp in memory.
次に、(4o)に示すのは、アクセル開度Aと冷却水温
Twのデータを転送し、イベント処理用プロセッサ11
では、こわらのデータを監視して加速イベントの判定を
行なう場合を示し、下記(a′)〜(k′)のごとき順
序で転送される。なお、この場合には、転送すべきアド
レスとデータは上記のAとTwだけでよい。Next, (4o) shows that the data of the accelerator opening degree A and the cooling water temperature Tw are transferred to the event processing processor 11.
Now, a case will be shown in which stiffness data is monitored to determine an acceleration event, and the data is transferred in the following order (a') to (k'). In this case, the addresses and data to be transferred need only be the above A and Tw.
(a′)アクセル開度データDaのためのメモリ・アド
レスAa。(a') Memory address Aa for accelerator opening data Da.
(b′)Daの転送(イベント処理用プロセッサ11が
監視)。(b') Transfer of Da (monitored by the event processing processor 11).
(C′)冷却水温データDIl+のためのメモリ・アド
レスAw。(C') Memory address Aw for cooling water temperature data DIl+.
(d’)D−の転送(イベント処理用プロセッサ11が
監視→b′とd′からイベント発生検出)。(d') Transfer of D- (event processing processor 11 monitors → event occurrence detected from b' and d').
(C′)イベント発生命令Ieの転送(イベント処理用
プロセッサ]1から制御演算用プロセッサ12へ)。(C') Transfer of event generation instruction Ie (from event processing processor 1 to control calculation processor 12).
(f′)イベント番号データDiの転送(イベント処理
用プロセッサ11から制御演算用プロセッサ12へ)。(f') Transfer of event number data Di (from event processing processor 11 to control calculation processor 12).
これでイベントの種類を指定する。上記のIeとDiと
でイベント処理信号を構成する。This specifies the event type. The above Ie and Di constitute an event processing signal.
(g′)イベント処理命令Ie’(制御演算用プロセッ
サ12内で有効)
(h’)ALUを指定するアドレス(Aa’)。(g') Event processing instruction Ie' (valid within the control calculation processor 12) (h') Address (Aa') specifying the ALU.
(i’)DaをALUのレジスタへ転送する。(i') Transfer Da to the ALU register.
(j’)DwをALUのレジスタへ転送する。(j') Transfer Dw to the ALU register.
(k’)ALUへ演算命令Iu’を出力する。(k') Output the operation instruction Iu' to the ALU.
以下、加速イベント時の演算および処理を行なう。すな
わち、加速イベントに対応する燃料噴射時間の加速補正
分子eを計算し、それを前記の基本燃料噴射時間”rp
に加算して実際の燃料噴射時間Tiを算出する。Below, calculations and processing at the time of an acceleration event will be performed. That is, calculate the acceleration correction numerator e of the fuel injection time corresponding to the acceleration event, and apply it to the basic fuel injection time "rp".
is added to calculate the actual fuel injection time Ti.
なお、上記の(g′)以降はメインバス】9で行なうこ
とも出来るが、メインバス19では前記のごとく基本燃
料噴射時間”rpを演算する仕事をしているので、並列
化のため(g′)〜(k′)のようにしている。Note that the steps after (g') above can be performed using the main bus ]9, but since the main bus 19 is responsible for calculating the basic fuel injection time "rp" as described above, for parallelization (g') ') to (k').
上記のように、イベント専用バスを設けると、イベント
判定のためのアトI/スおよびデータの数が少なくて済
むので、イベント検出のためのハードウェアが簡単にな
り、かつイベント判定を迅速に行なうことが出来る。ま
た、制御演算用プロセッサにおける通常の演算とイベン
ト処理の演算とを並行して行なうことが出来る。As mentioned above, when a dedicated event bus is provided, the number of Atto I/S and data for event determination is reduced, which simplifies the hardware for event detection and enables quick event determination. I can do it. Furthermore, normal calculations and event processing calculations in the control calculation processor can be performed in parallel.
ただし、2つのバスを並列に制御するため、マイクロプ
ログラムの水平方向が約2倍になり、また、2つのバス
とA 1.、 Uなどをパイプライン制御するために、
パイプライン・レジスタに必要とする。However, since the two buses are controlled in parallel, the horizontal direction of the microprogram is approximately doubled, and the two buses and A1. , U, etc., in order to control the pipeline,
Required for pipeline registers.
以上説明したように、本発明においては、演算処理を実
行する制御演算用プロセッサの他に、イベント処理専用
のイベント処理用プロセッサを備え、イベントの発生を
制御演算用プロセッサにおける演算周期とは独立に検出
するように構成している。そのため、従来のように制御
演算用プロセッサで演算周期に従ってイベントの検出を
行なう必要がなくなるので、イベントの検出を高速で行
なうことが出来、かつ、膨大な割込みの発生によって他
の演算に支障を来すおそれもない。また。As explained above, in the present invention, in addition to the control calculation processor that executes calculation processing, an event processing processor dedicated to event processing is provided, and the occurrence of an event is controlled independently of the calculation cycle of the control calculation processor. configured to detect it. Therefore, it is no longer necessary for the control calculation processor to detect events according to the calculation cycle as in the past, so it is possible to detect events at high speed. There's no fear. Also.
イベント検出用のプログラムも従来のような煩雑で認識
・理解のしにくいものは不必要になるので。This eliminates the need for event detection programs that are complicated and difficult to recognize and understand.
プログラムの開発やメンテナンスも容易になる。Program development and maintenance will also become easier.
また、請求項】に記載の発明においては、イベントを発
生頻度の高いものと低いものに分離し。Furthermore, in the invention described in claim 1, events are separated into those with a high frequency of occurrence and those with a low frequency of occurrence.
発生頻度の高いイベントについては、イベント処理用プ
ロセッサにおいて常時判定し1発生類度の低いイベント
は、判定するタイミングを制御演算用プロセッサ内のイ
ベント判定要求手段からイベント処理用プロセッサに指
示し、イベント処理用プロセッサは要求があってからは
じめて判定を行なうように構成している。そのため、常
時判定するイベントの種類を大幅に減少させることが出
来るので、イベント判定を高速で行なうことが出来ると
共に1発生類度の低いイベントについても確実に検出す
ることが出来る。また、多数の比較器を設置する必要も
ないので、低コスト、高信頼性を実現することが出来る
。Events with a high occurrence frequency are constantly judged by the event processing processor, and events with a low occurrence degree are judged by the event judgment requesting means in the control calculation processor, which instructs the event processing processor to judge the timing. The processor is configured to make a determination only after receiving a request. Therefore, the types of events that are constantly determined can be significantly reduced, so that event determination can be performed at high speed, and even events with a low degree of occurrence can be reliably detected. Furthermore, since there is no need to install a large number of comparators, low cost and high reliability can be achieved.
また、請求項2に記載の発明においては、通常のメイン
バスの他に、イベントに係るデータを転送するイベント
専用バスを設けることにより、イベント検知をイベント
に係らないデータの転送とは別個に並列に行なうことが
出来る。そのためイベント検出を迅速に行なうことが出
来ると共に。In addition, in the invention described in claim 2, by providing an event-dedicated bus for transferring event-related data in addition to the normal main bus, event detection can be performed in parallel and separately from the transfer of data not related to events. can be done. Therefore, event detection can be performed quickly.
イベントに係るデータのみを監視すればよいので。You only need to monitor data related to events.
監視のためハードウェアを大幅に簡略化することが出来
る、という優れた効果が得られる。An excellent effect can be obtained in that the hardware for monitoring can be greatly simplified.
第1図は本発明の機能を示すブロック図、第2図は本発
明の一実施例のブロック図、第3図はイベント処理用プ
ロセッサの機能を示すブロック図、第4図はイベント処
理用プロセッサと制御演算用プロセッサの機能を示すブ
ロック図、第5図は制御演算用プロセッサからのイベン
ト判定要求の一実施例のフローチャート、第6図は常時
判定イベントリストと割込み判定イベントリストの一実
施例図、第7図は本発明の他の実施例のブロック図、第
8図はメインバスとイベント専用バス内におけるデータ
の転送状態を示す模式図、第9図はイベントの発生を検
出する比較回路の一例図、第10図はメインバスとイベ
ント専用バス内におけるデータの転送状態の実例を示す
模式図である。
〈符号の説明〉
1・・・イベント処理用プロセッサ
2・・・常時判定イベントリスト
3・・・割込み判定設定手段
4・・・制御演算用プロセッサ
5・・・イベント判定要求手段
SI・・・入力信号
SO・・・出力信号
11・・・イベント処理用プロセッサ
12・・・制御演算用プロセッサ
13.15.17・・RAM
14、16・・・ROM
18・・・入出力装置
19・・・メインバス
20・・・デジタル比較手段
20−1・・・アドレス一致検出手段
20−2・・・データ比較手段
21・・・トランジェント検出手段
22・・・イベント判定手段
23・・・イベント管理手段
24・・・イベント管理プログラム
25・・・常時判定イベントリスト
26・・・割込み判定設定手段
30・・・常時判定イベントリスト
31・・・割込判定設定手段
32・・・イベント判定要求手段
40・・・イベント専用バスFIG. 1 is a block diagram showing the functions of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a block diagram showing the functions of the event processing processor, and FIG. 4 is the event processing processor. and a block diagram showing the functions of the control calculation processor, FIG. 5 is a flowchart of an example of an event determination request from the control calculation processor, and FIG. 6 is a diagram of an example of the constant determination event list and the interrupt determination event list. , FIG. 7 is a block diagram of another embodiment of the present invention, FIG. 8 is a schematic diagram showing the state of data transfer within the main bus and the event dedicated bus, and FIG. 9 is a diagram of a comparison circuit for detecting the occurrence of an event. An example diagram, FIG. 10, is a schematic diagram showing an example of the state of data transfer within the main bus and the event dedicated bus. <Explanation of symbols> 1... Processor for event processing 2... Constant judgment event list 3... Interrupt judgment setting means 4... Processor for control calculation 5... Event judgment requesting means SI... Input Signal SO...Output signal 11...Event processing processor 12...Control calculation processor 13, 15, 17...RAM 14, 16...ROM 18...I/O device 19...Main Bus 20...Digital comparing means 20-1...Address matching detecting means 20-2...Data comparing means 21...Transient detecting means 22...Event determining means 23...Event managing means 24... . . . Event management program 25 . . . Constant judgment event list 26 . . . Interrupt judgment setting means 30 . . . Constant judgment event list 31 . . . Interrupt judgment setting means 32 . . . Event judgment requesting means 40 . Event dedicated bus
Claims (1)
センサの信号を入力し、上記信号に基づいて車両の制御
に必要な各種制御演算を行ない、上記演算結果に基づい
た制御信号を車両制御用の各種アクチュエータに送出す
る車両制御用コンピュータにおいて、 運転中の操作や車両の運転状況の変化、すなわちイベン
トをアドレス上のデータから検出するイベント処理用プ
ロセッサと、 上記イベント処理用プロセッサの検出結果に基づいて演
算処理を実行し、必要に応じて上記イベント処理用プロ
セッサにイベント判定の要求を出す制御演算用プロセッ
サとを備え、 かつ、上記制御演算用プロセッサは、発生頻度の低いイ
ベントに関して、自身の処理内容に基づいてイベント処
理用プロセッサへイベントの判定を要求するイベント判
定要求手段を備えており、また、上記イベント処理用プ
ロセッサは、アドレス上の任意のデータにおけるトラン
ジェントの発生を検出し、上記トランジェントの発生が
所定の順序に整列したトランジェントの組を判別して、
それが予め定められた複数のイベントにそれぞれ対応し
たトランジェントの組のいずれかであるかを検出し、そ
れを当該所定のイベントの発生として出力するものであ
り、さらに、発生頻度の高いイベントに関して常時イベ
ントの発生を判定する常時判定イベントリストと、上記
リストにないイベントに関しては上記イベント判定要求
手段の要求に基づいて、判定するイベントを追加する割
込み判定設定手段とを有するものであることを特徴とす
るイベント駆動型車両制御用コンピュータ。 2、車両の各種運転状況や運転者の操作状態を検出する
センサの信号を入力し、上記信号に基づいて車両の制御
に必要な各種制御演算を行ない、上記演算結果に基づい
た制御信号を車両制御用の各種アクチュエータに送出す
る車両制御用コンピュータにおいて、 運転中の操作や車両の運転状況の変化、すなわちイベン
トをアドレス上のデータから検出するイベント処理用プ
ロセッサと、 上記イベント処理用プロセッサの検出結果に基づいて演
算処理を実行する制御演算用プロセッサと、 通常のメインバス以外に、イベント関連のアドレス及び
データの転送を行なうイベント専用バスと、を備え、 かつ、上記イベント処理用プロセッサは、上記イベント
専用バスを介して転送されるイベントに関連する特定の
データのみを監視し、アドレス上の任意のデータにおけ
るトランジェントの発生を検出し、上記トランジェント
の発生が所定の順序に整列したトランジェントの組を判
別して、それが予め定められた複数のイベントにそれぞ
れ対応したトランジェントの組のいずれかであるかを検
出し、それを当該所定のイベントの発生として出力する
ものである、ことを特徴とするイベント駆動型車両制御
用コンピュータ。[Claims] 1. Inputting sensor signals that detect various driving conditions of the vehicle and operating conditions of the driver, performing various control calculations necessary for controlling the vehicle based on the above signals, and applying the above calculation results to In a vehicle control computer that sends control signals based on the data to various actuators for vehicle control, there is an event processing processor that detects operations during driving or changes in vehicle driving conditions, that is, events from data on addresses; a control calculation processor that executes calculation processing based on the detection result of the processing processor and issues an event determination request to the event processing processor as necessary; The event processing processor is provided with an event judgment requesting means for requesting the event processing processor to judge the event based on the processing content of the event processing processor regarding an event with a low value. detecting the occurrence of the transients, determining a set of transients in which the occurrences of the transients are arranged in a predetermined order,
It detects whether it is one of a set of transients corresponding to a plurality of predetermined events, and outputs it as the occurrence of the predetermined event. It is characterized by having a constant judgment event list for judging the occurrence of an event, and an interrupt judgment setting means for adding an event to be judged based on a request from the event judgment requesting means for an event not included in the list. event-driven vehicle control computer. 2. Input sensor signals that detect various driving conditions of the vehicle and operating conditions of the driver, perform various control calculations necessary for controlling the vehicle based on the above signals, and send control signals based on the above calculation results to the vehicle. In the vehicle control computer that sends data to various actuators for control, there is an event processing processor that detects operations during driving and changes in vehicle driving conditions, that is, events from data on addresses, and a detection result of the event processing processor. a control calculation processor that performs calculation processing based on the event processing; and an event-dedicated bus that transfers event-related addresses and data in addition to the normal main bus; Monitors only specific data related to events transferred via a dedicated bus, detects the occurrence of a transient in any data on an address, and determines a set of transients in which the occurrences of the above transients are arranged in a predetermined order. An event characterized in that it detects whether it is one of a set of transients corresponding to a plurality of predetermined events, and outputs it as the occurrence of the predetermined event. Drive-type vehicle control computer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31135790A JPH04182803A (en) | 1990-11-19 | 1990-11-19 | Computer for event driving type vehicle control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31135790A JPH04182803A (en) | 1990-11-19 | 1990-11-19 | Computer for event driving type vehicle control |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04182803A true JPH04182803A (en) | 1992-06-30 |
Family
ID=18016189
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP31135790A Pending JPH04182803A (en) | 1990-11-19 | 1990-11-19 | Computer for event driving type vehicle control |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04182803A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007196859A (en) * | 2006-01-26 | 2007-08-09 | Hitachi Ltd | Vehicle control device |
| JP2013006482A (en) * | 2011-06-23 | 2013-01-10 | Autonetworks Technologies Ltd | On-vehicle processing apparatus and processing program |
-
1990
- 1990-11-19 JP JP31135790A patent/JPH04182803A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007196859A (en) * | 2006-01-26 | 2007-08-09 | Hitachi Ltd | Vehicle control device |
| JP2013006482A (en) * | 2011-06-23 | 2013-01-10 | Autonetworks Technologies Ltd | On-vehicle processing apparatus and processing program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH04169350A (en) | Event drive type vehicle control computer | |
| US20040236488A1 (en) | Motor vehicle control system and method for controlling a motor vehicle | |
| JP2574892B2 (en) | Load sharing control method for automobile | |
| JP2793993B2 (en) | Program runaway detection method in microcomputer | |
| JPH03167649A (en) | Wait cycle controller | |
| US6789258B1 (en) | System and method for performing a synchronization operation for multiple devices in a computer system | |
| JP2011141782A (en) | Information processing apparatus, electronic control unit and task allocation method | |
| US7937710B1 (en) | Context switch signaling method and system | |
| US5659760A (en) | Microprocessor having interrupt vector generation unit and vector fetching command unit to initiate interrupt processing prior to returning interrupt acknowledge information | |
| US5126944A (en) | Data processing apparatus for producing in sequence pulses having variable width at output ports | |
| JPH04182803A (en) | Computer for event driving type vehicle control | |
| US5678062A (en) | Input/output control method and data processor | |
| US7930523B2 (en) | Inter-CPU data transfer device | |
| JP2914580B2 (en) | Event-driven vehicle control computer | |
| JPH0740794A (en) | Automotive control unit | |
| JPH07160650A (en) | Task execution controller | |
| JP3688224B2 (en) | Automotive control unit | |
| JP2001290510A (en) | Automotive control unit | |
| JPH04197837A (en) | Event-driven type computer for controlling vehicle | |
| JPH08328885A (en) | Microcomputer failure detection method | |
| CN109213027B (en) | A marine low-speed common rail diesel engine speed control unit based on μ/COS-II real-time operating system | |
| JPH0194466A (en) | Data processing system responding to preference interrupt command | |
| JP2903526B2 (en) | Pulse generator | |
| JPH0516703A (en) | Computer for controlling event drive type vehicle | |
| JP2011076584A (en) | Semiconductor integrated circuit device |