JP7027857B2 - 制御装置 - Google Patents
制御装置 Download PDFInfo
- Publication number
- JP7027857B2 JP7027857B2 JP2017235099A JP2017235099A JP7027857B2 JP 7027857 B2 JP7027857 B2 JP 7027857B2 JP 2017235099 A JP2017235099 A JP 2017235099A JP 2017235099 A JP2017235099 A JP 2017235099A JP 7027857 B2 JP7027857 B2 JP 7027857B2
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- control device
- division
- value
- multiplication
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/483—Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers
- G06F7/487—Multiplying; Dividing
- G06F7/4873—Dividing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/483—Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/499—Denomination or exception handling, e.g. rounding or overflow
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Program control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0426—Programming the control sequence
Landscapes
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computing Systems (AREA)
- Pure & Applied Mathematics (AREA)
- Computational Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Nonlinear Science (AREA)
- Advance Control (AREA)
- Executing Machine-Instructions (AREA)
Description
[1.第1実施形態]
[1-1.構成]
図1は、本発明が適用された電子制御システム1の構成を示すブロック図である。電子制御システム1は、電子制御装置5を備える。電子制御システム1は、クランク角センサ31と、インジェクタ32とを備えてもよい。
次に、演算部20A,20Bが実行する命令実行処理について、図3のフローチャートを用いて説明する。命令実行処理は、演算部20A,20Bが浮動小数点演算を実行する際に起動される処理であり、浮動小数点演算が終了するまで繰り返し実行される処理である。なお、下記では演算部20Aが命令実行処理を実行する構成を例示するが、演算部20Bが命令実行処理を実行してもよいし、演算部20A,20Bが協働して命令実行処理を実行してもよい。
続いて、S120で、演算部20Aは、選択した演算に無効命令が含まれているか否かを判定する。演算部20Aは、S120で無効命令が含まれていると判定した場合には、S130へ移行し、例外設定が有効であるか否かを判定する。例外設定とは、例外処理等の割込処理を実行するか否かを決定するための設定であり、例えば、FPU22A,22Bのレジスタで管理される。特に、例外設定は、制御単位毎に設定される。制御単位とは、エアコン、燃料噴射等の制御対象毎、或いは、制御対象を制御する際の演算毎等を表す。
一方、演算部20Aは、S130で例外設定が有効でないと判定した場合には、S150へ移行し、無効命令に換えてデフォルト値を出力した後、図3の命令実行処理を終了する。すなわち、演算部20Aは、例外設定が無効の際に、除算命令を含む予め設定された無効命令があると、無効命令の演算結果を規定値であるデフォルト値に置換して出力する。
まず、S200で、退避処理を実行する。退避処理では、前述のように、処理情報を、基準レジスタ23Dを含む領域に退避させる。なお、この際、処理情報を基準レジスタ23Dのみを使って退避させてもよい。演算部20Aが処理情報を基準レジスタ23Dのみを使って退避させる場合には、通常の処理では利用しない基準レジスタ23Dのみが退避処理によって書き変わるため、例外処理によってレジスタ群23A,23Bに書き込まれるデータが、退避された処理情報に影響を与えることがないようにすることができる。
続いて、演算部20Aは、サブルーチンの実行が終了すると、S290で、例外設定を有効に設定する。例外設定を再び有効にすることで、次に選択する命令に無効命令が含まれる場合に、例外処理を実行できるようにする。
続いて、S310で、演算部20Aは、前述の復帰処理を実行する。この際、基準レジスタ23Dに基準アドレス13Dを記載する。なお、基準アドレス13Dは、予めROM12内の特定の領域に記載されており、この領域を参照することで基準アドレス13Dを特定することができるように設定されている。
[1-3.効果]
以上詳述した第1実施形態によれば、以下の効果を奏する。
[2.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
上記実施形態において、演算部20A,20Bは本開示でいう制御装置に相当する。また、演算部20A,20Bが実行する処理のうちの、S120,S220の処理は本開示でいう演算判定部に相当し、S130,S150,S200,S250,S260,S310の処理は命令実行部に相当する。また、S270,S290の処理は本開示でいう設定変更部に相当する。
Claims (5)
- 車両に搭載され、浮動小数点演算を実行可能な制御装置(20A,20B)であって、
浮動小数点演算によって分子の値が0となり分母の値が0となる除算であって、前記分子の値の符号及び前記分母の値の符号を加味した除算をさせる演算命令を表す除算命令の有無を判定するように構成された演算判定部(S120,S220)と、
前記除算命令がある場合に、前記除算命令に含まれる前記分子の値の符号及び前記分母の値の符号を用いて、前記分子の値に前記分母の値を乗じる演算をする乗算命令を生成し、前記除算命令に換えて前記乗算命令を実行させるように構成された命令実行部(S130,S150,S200,S250,S260,S310)と、
を備える制御装置。 - 請求項1に記載の制御装置であって、
前記命令実行部は、前記乗算命令を含むサブルーチンを予め設定されたRAM上に生成し、該サブルーチンを実行する
ように構成された制御装置。 - 請求項2に記載の制御装置であって、
前記命令実行部は、予め準備された例外設定が有効であり、かつ前記除算命令がある場合に、前記乗算命令を生成するように構成されるとともに、前記例外設定が無効の際に、前記除算命令を含む予め設定された無効命令があると、前記無効命令に換えてデフォルト値を出力するように構成され、
前記サブルーチンに基づく前記乗算命令を実行する際に、前記例外設定を無効とし、前記乗算命令を実行させた後に、前記例外設定を有効とするように構成された設定変更部(S270,S290)、
をさらに備える制御装置。 - 請求項1から請求項3の何れか1項に記載の制御装置であって、
演算によって得られるデータを保持するように構成された複数のレジスタを有するレジスタ群(23A,23B)をさらに備え、
該レジスタ群のうちの相対アドレスアクセスの際の基準アドレス(13D)が記載されたレジスタを基準レジスタ(23D)として、
前記命令実行部は、前記乗算命令を生成して前記乗算命令を実行する際に、前記基準レジスタを含むレジスタを、データの退避領域として利用する
ように構成された制御装置。 - 請求項1から請求項4の何れか1項に記載の制御装置であって、
当該制御装置は、前記命令実行部が実行する処理に対して、制御単位毎に予め準備された例外設定を有効とするか無効とするかを設定可能に構成され、
前記命令実行部は、実行する処理についての例外設定が有効であり、かつ前記除算命令がある場合に、前記乗算命令を生成し、実行する処理についての例外設定が無効の際に、前記除算命令を含む予め設定された無効命令があると、前記無効命令に換えてデフォルト値を出力する
ように構成された制御装置。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017235099A JP7027857B2 (ja) | 2017-12-07 | 2017-12-07 | 制御装置 |
| DE102018220851.4A DE102018220851A1 (de) | 2017-12-07 | 2018-12-03 | Steuereinheit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017235099A JP7027857B2 (ja) | 2017-12-07 | 2017-12-07 | 制御装置 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2019101962A JP2019101962A (ja) | 2019-06-24 |
| JP7027857B2 true JP7027857B2 (ja) | 2022-03-02 |
Family
ID=66629448
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017235099A Active JP7027857B2 (ja) | 2017-12-07 | 2017-12-07 | 制御装置 |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP7027857B2 (ja) |
| DE (1) | DE102018220851A1 (ja) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7273317B2 (ja) * | 2020-01-28 | 2023-05-15 | サミー株式会社 | 回胴式遊技機 |
| JP7273316B2 (ja) * | 2020-01-28 | 2023-05-15 | サミー株式会社 | 回胴式遊技機 |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003280891A (ja) | 2002-01-15 | 2003-10-02 | Denso Corp | 電子制御装置及び制御プログラム |
| JP2015180983A (ja) | 2014-03-02 | 2015-10-15 | 裕 道脇 | 零除算演算処理プログラム |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0769783B2 (ja) * | 1987-11-16 | 1995-07-31 | 日本電気株式会社 | 例外処理方式 |
| JP5379712B2 (ja) | 2010-02-08 | 2013-12-25 | 日立オートモティブシステムズ株式会社 | 車載制御装置 |
-
2017
- 2017-12-07 JP JP2017235099A patent/JP7027857B2/ja active Active
-
2018
- 2018-12-03 DE DE102018220851.4A patent/DE102018220851A1/de active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003280891A (ja) | 2002-01-15 | 2003-10-02 | Denso Corp | 電子制御装置及び制御プログラム |
| JP2015180983A (ja) | 2014-03-02 | 2015-10-15 | 裕 道脇 | 零除算演算処理プログラム |
Also Published As
| Publication number | Publication date |
|---|---|
| DE102018220851A1 (de) | 2019-06-13 |
| JP2019101962A (ja) | 2019-06-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5573134B2 (ja) | ベクトル型計算機及びベクトル型計算機の命令制御方法 | |
| US8745111B2 (en) | Methods and apparatuses for converting floating point representations | |
| US10261796B2 (en) | Processor and method for executing in-memory copy instructions indicating on-chip or off-chip memory | |
| US20130246496A1 (en) | Floating-point vector normalisation | |
| US11967952B2 (en) | Electronic system including FPGA and operation method thereof | |
| KR20190045316A (ko) | 벡터 곱셈 덧셈 명령 | |
| CN112445454A (zh) | 使用范围特定的系数集字段执行一元函数的系统 | |
| JP7027857B2 (ja) | 制御装置 | |
| JP2022519258A (ja) | アンカーデータ要素における特殊値の符号化 | |
| JPH0546383A (ja) | データ処理装置 | |
| EP3716043B1 (en) | Information processor, information processing method, and program | |
| JP2019168753A (ja) | ソースコード解析装置およびソースコード解析プログラム | |
| US20080282071A1 (en) | Microprocessor and register saving method | |
| CN118012508A (zh) | 一种处理器可变指令的架构方法 | |
| JPS6343773B2 (ja) | ||
| JP6332091B2 (ja) | 電子制御装置 | |
| TWI536261B (zh) | 用於資料元素的條件式選擇的設備、方法、電腦程式產品、及虛擬機 | |
| JP3745673B2 (ja) | プロセッサ | |
| JPH01297727A (ja) | 浮動小数点演算の正規化制御方式 | |
| JP2006323710A (ja) | データプロセッサ、データ処理方法及び演算制御プログラム | |
| JPS61173345A (ja) | 計算機システム | |
| US20100235607A1 (en) | Processor | |
| CN121683666A (zh) | 一种用于加速高精度adc数据运算的装置及方法 | |
| CN118057308A (zh) | 指令处理优化方法及相关装置 | |
| JPH0215089B2 (ja) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20201111 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210805 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210817 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210928 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220118 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220131 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 7027857 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |