JP2011186999A - Device for supporting conversion of floating point representation program to fixed point representation and support program thereof - Google Patents

Device for supporting conversion of floating point representation program to fixed point representation and support program thereof Download PDF

Info

Publication number
JP2011186999A
JP2011186999A JP2010054325A JP2010054325A JP2011186999A JP 2011186999 A JP2011186999 A JP 2011186999A JP 2010054325 A JP2010054325 A JP 2010054325A JP 2010054325 A JP2010054325 A JP 2010054325A JP 2011186999 A JP2011186999 A JP 2011186999A
Authority
JP
Japan
Prior art keywords
floating
point
attribute value
program
relationship
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
JP2010054325A
Other languages
Japanese (ja)
Inventor
Yoshikazu Imai
良和 今井
Koji Mori
晃二 森
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.)
Toyota Motor Corp
Cats Co Ltd
Original Assignee
Toyota Motor Corp
Cats 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 Toyota Motor Corp, Cats Co Ltd filed Critical Toyota Motor Corp
Priority to JP2010054325A priority Critical patent/JP2011186999A/en
Publication of JP2011186999A publication Critical patent/JP2011186999A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device for supporting the conversion of a floating point representation program to fixed point representation and a support program thereof for reducing the labor of setting attribute values to numerical elements to be converted to fixed point representation in a floating point representation program. <P>SOLUTION: The device for supporting the conversion of a floating point representation program to fixed point representation provides a user interface for: extracting numerical elements used in the floating point representation program (extracting numerical element information); extracting a relationship between the numerical elements used in the floating point representation program and one or a plurality of the other numerical elements which are connected by a formula (connection relationship information); generating attribute value relationship information representing a relationship between attribute values of the numerical elements represented by the numerical element information regarding attribute items required for fixed point representation of the numerical elements and attribute values of the other numerical elements, on the basis of a relationship between the numerical elements and one of a plurality of the other numerical elements which are connected by the formula; and setting an attribute value of each of the attribute items of the numerical elements on the basis of the attribute value relationship information. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、浮動小数点表現の変数等の数要素を用いた演算処理を記述する浮動小数点表現プログラムを固定小数点表現の数要素を用いた演算処理を記述する固定小数点表現プログラムに変える際のユーザ支援処理を行う浮動小数点表現プログラムの固定小数点表現化支援装置及び支援プログラムに関する。   The present invention provides a user support for changing a floating-point expression program describing arithmetic processing using numerical elements such as variables of floating-point expression into a fixed-point expression program describing arithmetic processing using numerical elements of fixed-point expression. The present invention relates to a fixed-point expression support apparatus and a support program for a floating-point expression program that performs processing.

一般に、コンピュータ(CPU)が実行する演算処理を記述したプログラムには、その演算処理に用いられる変数、定数等の数要素が浮動小数点表現される浮動小数点表現プログラムと、その演算処理に用いられる変数、定数等の数要素が固定小数点表現される固定小数点表現プログラムがある。浮動小数点表現の数要素(変数、定数等)は、仮数部と指数部にてその数値が表現されることから、同じビットサイズの固定小数点表現の数要素に比べて表現できる数値の範囲を広くすることができ、その精度は、仮数部の桁数によって決まる。一方、固定小数点表現の数要素(変数、定数等)については、その固定小数点表現に必要となる属性項目の値(属性値という)、例えば、解像度(LSB)、サイズ(ビットサイズ)、オフセットの値が定義され、その属性値によって表現できる数値の範囲が決まり、その精度は、特に解像度の値で決まる。   In general, a program describing arithmetic processing executed by a computer (CPU) includes a variable used for the arithmetic processing, a floating point expression program in which numerical elements such as constants are expressed in floating point, and a variable used for the arithmetic processing. There are fixed-point expression programs in which numerical elements such as constants are expressed in fixed-point. Since numerical values (variables, constants, etc.) of floating-point expressions are represented by their mantissa and exponent parts, the range of numerical values that can be expressed is wider than that of fixed-point expressions of the same bit size. The accuracy is determined by the number of digits in the mantissa part. On the other hand, for numerical elements (variables, constants, etc.) of fixed-point representation, attribute item values (attribute values) required for the fixed-point representation, for example, resolution (LSB), size (bit size), and offset The value is defined, the range of numerical values that can be expressed by the attribute value is determined, and the accuracy is determined in particular by the resolution value.

一般には、コンピュータに実行させるべき演算処理は、浮動小数点表現プログラムにて記述される。しかし、コンピュータ(CPU)の性能等の制約から、その演算処理を固定小数点表現プログラムにて記述する場合がある。例えば、車両に搭載されるECU(電子制御ユニット)は、物理量(電圧、速度、時間等)を表す信号を数要素(変数や定数)の数値として表して演算処理するが、その演算処理が固定小数点表現プログラムにて記述される場合がある。このような場合、車両エンジン等の制御対象に精通した「制御設計者」が、その制御に係る演算処理を記述する浮動小数点表現プログラムを作成し、その後、その浮動小数点表現プログラムをECU等のコンピュータに精通した「ソフト設計者」がコンピュータの性能等を考慮して固定小数点表現プログラムに書き換えるようにしている。   In general, arithmetic processing to be executed by a computer is described by a floating-point expression program. However, there are cases where the arithmetic processing is described in a fixed-point expression program because of restrictions on the performance of the computer (CPU). For example, an ECU (electronic control unit) mounted on a vehicle performs arithmetic processing by expressing a signal representing a physical quantity (voltage, speed, time, etc.) as a numerical value of several elements (variables and constants), but the arithmetic processing is fixed. It may be described by a decimal point expression program. In such a case, a “control designer” who is familiar with the control target of the vehicle engine or the like creates a floating-point expression program that describes arithmetic processing related to the control, and then stores the floating-point expression program in a computer such as an ECU. “Software designers” who are familiar with computer programs are rewritten into fixed-point representation programs in consideration of computer performance.

また、前記浮動小数点表現プログラムが作成された後、その浮動小数点表現プログラムを固定小数点表現プログラムに変換するためのプログラム変換装置も提案されている(特許文献1参照)。このプログラム変換装置では、まず、浮動小数点表現プログラムをその実行時に対象変数(数要素)の値の変化が履歴として出力されるように改造したプロファイルプログラムが作成される。次いで、そのプロファイルプログラム(改造された浮動小数点表現プログラム)を実行し、その際に出力される対象変数の値の範囲に基づいて、その変数が固定小数点表現に変換されるように、前記浮動小数点表現プログラムの変更がなされる。   There has also been proposed a program conversion apparatus for converting a floating-point expression program into a fixed-point expression program after the floating-point expression program is created (see Patent Document 1). In this program conversion apparatus, first, a profile program is created by modifying the floating-point expression program so that changes in the value of the target variable (several elements) are output as a history when the program is executed. Then, the profile program (modified floating-point expression program) is executed, and the variable is converted into the fixed-point expression based on the value range of the target variable output at that time. The expression program is changed.

特開2008−33729号公報JP 2008-33729 A

前述した従来のプログラム変換装置では、様々な浮動小数点表現プログラムを改造して目的にあったプロファイルプログラムを作成することは難しく、また、種々の条件で変数の取り得る範囲が変わってくるような場合には、多くの条件(パラメータ)のもとでそのプロファイルプログラムを実行させなければならず、その処理量が膨大になってしまう。従って、前述したプログラム変換装置は、汎用性に問題がある。   In the above-described conventional program conversion apparatus, it is difficult to create a profile program that suits the purpose by modifying various floating-point expression programs, and the range of variables that can be changed under various conditions In this case, the profile program must be executed under many conditions (parameters), and the amount of processing becomes enormous. Therefore, the above-described program conversion apparatus has a problem in versatility.

また、浮動小数点表現プログラムをコンピュータに精通した「ソフト設計者」がそのコンピュータの性能等を考慮して固定小数点表現プログラムに書き換える場合、浮動小数点表現プログラムにて用いられる数要素(変数、定数)の固定小数点表現に必要な各属性項目(解像度(LSB)、サイズ(ビットサイズ)、オフセット等)の値、即ち、属性値を定義する必要がある。その「ソフト設計者」が浮動小数点表現プログラムから固定小数点表現化すべき数要素を抽出する際に漏れが生ずる可能性が高く、また、その抽出された数要素に対して各属性項目の属性値を設定するための手間がかかる。   In addition, when a “software designer” who is familiar with a floating-point representation program rewrites it into a fixed-point representation program in consideration of the performance of the computer, the numerical elements (variables and constants) used in the floating-point representation program It is necessary to define the value of each attribute item (resolution (LSB), size (bit size), offset, etc.)) necessary for fixed-point representation, that is, the attribute value. There is a high possibility that the “software designer” will extract a numerical element that should be expressed as a fixed-point number from a floating-point expression program, and the attribute value of each attribute item is set to the extracted numerical element. It takes time and effort to set.

本発明は、このような事情に鑑みてなされたもので、浮動小数点表現プログラムにおける固定小数点表現化すべき数要素に対する属性値を設定するための手間を低減させることのできる浮動小数点表現プログラムの固定小数点表現化支援装置及び支援プログラムを提供するものである。   The present invention has been made in view of such circumstances, and the fixed-point of a floating-point expression program that can reduce the effort for setting an attribute value for a numerical element to be expressed as a fixed-point in the floating-point expression program. An expression support device and a support program are provided.

本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置は、浮動小数点表現の数要素を用いた演算処理を記述する浮動小数点表現プログラムを固定小数点表現の数要素を用いた演算処理を記述する固定小数点表現プログラムに変える際のユーザ支援処理を行うコンピュータシステムにて構成された浮動小数点表現プログラムの固定小数点表現化支援装置であって、前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている数要素を抽出する数要素抽出手段と、前記抽出された数要素を表す数要素情報を格納する数要素情報格納手段と、前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている各数要素の他の一または複数の数要素との式で結ばれる関係を抽出する関係抽出手段と、前記抽出された関係を表す結合関係情報を格納する関係情報格納手段と、数要素の固定小数点表現に必要な各属性項目についての前記数要素情報にて表される各数要素の属性値の他の数要素の属性値との関係を表す属性値関係情報を、前記結合関係情報にて表される前記各数要素の他の一または複数の数要素との式で結ばれる関係に基づいて生成する属性値関係生成手段と、前記属性値関係情報に基づいて前記各数要素の各属性項目ついての属性値を設定するためのユーザインタフェースを提供する手段とを有する構成となる。   A floating-point representation program supporting apparatus for a floating-point representation program according to the present invention describes a floating-point representation program that describes a computation process that uses a number element of a floating-point representation and a computation process that uses a number element of a fixed-point representation. A floating-point representation program fixed-point representation support apparatus configured by a computer system that performs user support processing when changing to a fixed-point representation program, wherein the floating-point representation program is analyzed to analyze the floating-point representation program Number element extraction means for extracting number elements used in the expression program, number element information storage means for storing number element information representing the extracted number elements, and analysis of the description of the floating-point expression program And an expression with one or more other numerical elements used in the floating-point expression program. A relation extracting means for extracting a relation, a relation information storing means for storing joint relation information representing the extracted relation, and the number element information for each attribute item necessary for fixed-point expression of the number element. Attribute value relationship information representing the relationship between the attribute value of each number element and the attribute value of another number element, and one or more other number elements of the number elements represented by the connection relationship information Attribute value relationship generating means for generating based on the relationship connected by the formula: and means for providing a user interface for setting an attribute value for each attribute item of each of the number elements based on the attribute value relationship information; It becomes the composition which has.

このような構成により、浮動小数点表現プログラムから抽出される各数要素の固定小数点表現に必要な各属性項目についての属性値の他の数要素の属性値との関係を表す属性値関係情報に基づいて各数要素の各属性項目についての属性値を設定するためのユーザインタフェースが提供されるので、ユーザは、その提供されるユーザインタフェースにより、浮動小数点表現プログラムに含まれる各数要素の属性値を、直接当該浮動小数点表現プログラムを解析して個々的に設定することなく、他の数要素の属性値との関係に従って設定することができるようになる。   With such a configuration, based on attribute value relation information that represents the relationship between the attribute value of each attribute element required for fixed-point expression of each numerical element extracted from the floating-point expression program and the attribute value of another numerical element. Therefore, a user interface for setting an attribute value for each attribute item of each numerical element is provided, and the user can specify the attribute value of each numerical element included in the floating-point expression program by the provided user interface. Therefore, the program can be set according to the relationship with the attribute values of other numerical elements without directly analyzing the floating-point expression program and setting it individually.

前記プログラムは、コンピュータによる処理を表す記述であって、コンピュータが実行可能な言語に直接的または間接的に翻訳可能なものである。また、属性項目は、数要素を固定小数点表現するために必要なものであって、例えば、ビットサイズ、解像度、数値範囲のオフセット、符号の有無等を含み得る。   The program is a description representing processing by a computer and can be directly or indirectly translated into a language executable by the computer. Further, the attribute item is necessary for expressing a number element in a fixed point, and may include, for example, bit size, resolution, numerical range offset, presence / absence of a code, and the like.

本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置において、前記ユーザインタフェースを提供する手段は、前記属性値関係情報に基づいて、前記各属性項目についての前記各数要素の属性値の他の数要素の属性値との関係を表示部に表示させるように構成することができる。   In the fixed-point expression support device for a floating-point expression program according to the present invention, the means for providing the user interface includes, in addition to the attribute value of each numerical element for each attribute item, based on the attribute value relation information. The display unit can be configured to display the relationship with the attribute values of several elements.

このような構成により、浮動小数点表現プログラムから抽出される各数要素の各属性項目についての属性値の他の数要素の属性値との関係が表示部に表示されるので、ユーザは、各数要素の各属性項目についての属性値を浮動小数点表現プログラムから個々的に判断する必要がなく、数要素の属性値を、属性値のわかっている他の数要素の当該属性値との関係から容易に設定することができる。   With such a configuration, the relation between the attribute value of each numerical element extracted from the floating-point expression program and the attribute value of another numerical element is displayed on the display unit. There is no need to individually determine the attribute value for each attribute item of the element from the floating-point expression program, and the attribute value of the number element can be easily determined from the relationship with the attribute value of another number element whose attribute value is known. Can be set to

また、本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置において、前記関係抽出手段は、数要素と他の一または複数の数要素とが代入式の右辺と左辺となる関係を前記式で結ばれる関係として抽出するよう構成することができる。   Further, in the fixed-point expression support device for a floating-point expression program according to the present invention, the relationship extraction means indicates a relationship in which the number element and one or more other number elements are the right side and the left side of the assignment expression. It can be configured so as to be extracted as a relationship connected by.

このような構成により、代入式の右辺と左辺となる関係にある数要素については、その代入式で結ばれる関係に基づいて、一方(例えば、左辺)の数要素の属性値の他方(例えば、右辺)の一または複数の数要素の属性値との関係を表す属性値関係情報を生成することができる。   With such a configuration, for the number elements that are in the relationship between the right side and the left side of the assignment formula, the attribute value of the other number element (for example, the left side) of the other (eg, the left side) (for example, the left side) It is possible to generate attribute value relationship information that represents a relationship with the attribute values of one or more numerical elements on the right side).

また、本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置において、前記関係抽出手段は、数要素と他の一または複数の数要素とが条件式の右辺と左辺となる関係を前記式で結ばれる関係として抽出するように構成することができる。   Further, in the fixed-point expression support device for a floating-point expression program according to the present invention, the relationship extracting means indicates a relationship in which the number element and one or more other number elements are the right side and the left side of the conditional expression. It can be configured so as to be extracted as a relationship connected by.

このような構成により、条件式の右辺と左辺となる関係にある数要素については、その条件式で結ばれる関係に基づいて、一方(例えば、左辺)の数要素の属性値の他方(例えば、右辺)の一または複数の数要素の属性値との関係を表す属性値関係情報を生成することができる。   With such a configuration, with respect to the number elements that are in the relationship between the right side and the left side of the conditional expression, the other (for example, the left side) attribute value of the number element (for example, the left side) (for example, the left side) It is possible to generate attribute value relationship information that represents a relationship with the attribute values of one or more numerical elements on the right side).

更に、本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置において、前記数要素抽出手段は、前記浮動小数点表現プログラムにて使用されている変数を数要素として抽出するように構成することができる。   Furthermore, in the fixed-point expression support device for a floating-point expression program according to the present invention, the number element extraction means may be configured to extract a variable used in the floating-point expression program as a number element. it can.

このような構成により、浮動小数点表現化プログラムから変数が数要素として抽出されるので、当該浮動小数点表現プログラムに含まれる変数の固定小数点表現に必要な各属性項目の属性値を、ユーザは、直接浮動小数点表現プログラムを解析して個々的に設定することなく、提供されるユーザインタフェースにより、他の数要素の属性値との関係に従って設定することができるようになる。   With such a configuration, variables are extracted as numerical elements from the floating-point expression program, so that the user can directly set the attribute value of each attribute item necessary for the fixed-point expression of the variable included in the floating-point expression program. The user interface provided can be set according to the relationship with the attribute values of other numerical elements without analyzing and individually setting the floating point expression program.

また、本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置において、前記数要素抽出手段は、前記浮動小数点表現プログラムにて使用されている定数を数要素として抽出するように構成することができる。   Further, in the fixed-point expression support device for a floating-point expression program according to the present invention, the number element extraction means may be configured to extract a constant used in the floating-point expression program as a number element. it can.

このような構成により、浮動小数点表現プログラムから定数が数要素として抽出されるので、当該浮動小数点表現プログラムに含まれる定数の固定小数点表現に必要な各属性項目の属性値を、ユーザは、直接浮動小数点表現プログラムを解析して個々的に設定することなく、提供されるユーザインタフェースにより、他の数要素の属性値との関係に従って設定することができるようになる。   With this configuration, constants are extracted as numerical elements from the floating-point representation program, so the user can directly enter the attribute values of each attribute item necessary for fixed-point representation of the constants included in the floating-point representation program. The user interface provided can be set according to the relationship with the attribute values of other numerical elements without analyzing and individually setting the decimal point expression program.

更に、本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置において、前記属性値関係情報生成手段は、前記抽出された数要素のうち前記浮動小数点表現プログラムが記述する演算処理における内部状態を表す数要素の前記属性値の他の数要素の属性値との関係を表す情報を前記属性値関係情報に含めるように構成することができる。   Furthermore, in the fixed-point expression support device for a floating-point expression program according to the present invention, the attribute value relationship information generating unit is configured to display an internal state in the arithmetic processing described by the floating-point expression program among the extracted number elements. Information representing the relationship between the attribute value of the number element to be represented and the attribute value of another number element may be included in the attribute value relationship information.

このような構成により、浮動小数点表現プログラムが記述する演算処理における内部状態を表す数要素の属性値の他の数要素の属性値との関係を表す情報が属性値情報に含まれるようになるので、当該浮動小数点プログラムが記述する演算処理における内部状態を表す数要素の固定小数点表現に必要な各属性項目の属性値を、ユーザは、直接浮動小数点表現プログラムを解析して個々的に設定することなく、提供されるユーザインタフェースにより、他の数要素の属性値との関係に従って設定することができるようになる。   With such a configuration, the attribute value information includes information indicating the relationship between the attribute value of the number element representing the internal state in the arithmetic processing described by the floating point expression program and the attribute value of the other number element. The user must directly set the attribute value of each attribute item necessary for the fixed-point representation of the numerical elements representing the internal state in the arithmetic processing described by the floating-point program by directly analyzing the floating-point representation program. Instead, the provided user interface allows the user interface to be set according to the relationship with the attribute values of several other elements.

また、本発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置において、前記属性関係情報生成手段は、前記抽出された数要素のうち前記浮動小数点表現プログラム内における定数の属性値と他の数要素の属性値との関係を表す情報を前記属性値関係情報に含めるように構成することができる。   In the fixed-point expression support device for a floating-point expression program according to the present invention, the attribute relationship information generating means includes a constant attribute value and other numbers in the floating-point expression program among the extracted number elements. Information representing a relationship with an attribute value of an element can be configured to be included in the attribute value relationship information.

このような構成により、浮動小数点表現プログラム内における定数の属性値の他の数要素の属性値との関係を表す情報が属性値関係情報に含まれるようになるので、当該浮動小数点表現プログラム内の定数の固定小数点表現に必要な各属性項目の属性値を、ユーザは、直接浮動小数点表現プログラムを解析して個々的に設定することなく、提供されるユーザインタフェースにより、他の数要素の属性値との関係に従って設定することができるようになる。   With such a configuration, the attribute value relationship information includes information indicating the relationship between the attribute values of constants in the floating point representation program and the attribute values of other numerical elements. The user interface does not directly set the attribute value of each attribute item required for fixed-point representation of constants by directly analyzing the floating-point representation program. Can be set according to the relationship.

本発明に係る支援プログラムは、浮動小数点表現の数要素を用いた演算処理を記述する浮動小数点表現プログラムを固定小数点表現の数要素を用いた演算処理を記述する固定小数点表現プログラムに変える際のユーザ支援処理をコンピュータシステムに実行させる支援プログラムであって、前記コンピュータに、前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている数要素を抽出する数要素抽出ステップと、前記抽出された数要素を表す数要素情報を数要素格納手段に格納するステップと、前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている各数要素の他の一または複数の数要素との関係を抽出する関係抽出ステップと、前記抽出された関係を表す関係情報を関係格納手段に格納するステップと、数要素の固定小数点表現に必要な各属性項目についての前記数要素情報にて表される各数要素の属性値の他の数要素の属性値との関係を表す属性値関係情報を、前記関係情報にて表される前記各数要素の他の一または複数の数要素との関係に基づいて生成する属性値関係生成ステップと、前記属性値関係情報に基づいて前記各数要素の各属性項目ついての属性値を設定するためのユーザインタフェースを提供するステップとを実行させる構成となる。   The support program according to the present invention is a user who changes a floating-point expression program describing an arithmetic process using a number element of a floating-point expression into a fixed-point expression program describing an arithmetic process using a number element of a fixed-point expression. A support program for causing a computer system to execute support processing, wherein the computer analyzes the description of the floating-point expression program and extracts a number element used in the floating-point expression program Storing numerical element information representing the extracted numerical elements in a numerical element storage means; analyzing the description of the floating-point expression program; and each numerical element used in the floating-point expression program A relationship extracting step of extracting a relationship with one or more other numerical elements, and the extracted relationship A step of storing the relationship information to be represented in the relationship storage means, and the attribute value of another number element other than the attribute value of each number element represented by the number element information for each attribute item required for fixed-point representation of the number element An attribute value relationship generating step for generating attribute value relationship information representing a relationship between the attribute value and the attribute value based on a relationship with one or more other number elements of the number elements represented by the relationship information; And a step of providing a user interface for setting an attribute value for each attribute item of each of the several elements based on the relationship information.

本発明に係る支援プログラムにおいて、前記ユーザインタフェースを提供するステップは、前記属性値関係情報に基づいて、前記各属性項目についての前記各数要素の属性値の他の数要素の属性値との関係を表示部に表示させるように構成することができる。   In the support program according to the present invention, the step of providing the user interface is based on the attribute value relationship information, and the relationship between the attribute values of the number elements and the attribute values of other number elements for the attribute items. Can be displayed on the display unit.

本発明に係る浮動小数点表現プログラムの固定小数点表現化装置及び支援プログラムによれば、浮動小数点表現プログラムから抽出される各数要素の固定小数点表現に必要な各属性項目についての属性値の他の数要素の属性値との関係を表す属性値関係情報に基づいて各数要素の各属性項目についての属性値を設定するためのユーザインタフェースが提供され、ユーザは、その提供されるユーザインタフェースにより、浮動小数点表現プログラムに含まれる各数要素の属性値を、直接当該浮動小数点表現プログラムを解析して個々的に求めることなく、他の数要素の属性値との関係に従って求めることができるようになるので、浮動小数点表現プログラムにおける固定小数点表現化すべき数要素に対する属性値を設定するための手間を低減させることができるようになる。   According to the fixed-point expression device and the support program for a floating-point expression program according to the present invention, other numbers of attribute values for each attribute item necessary for fixed-point expression of each numerical element extracted from the floating-point expression program A user interface is provided for setting an attribute value for each attribute item of each number element based on attribute value relationship information representing a relationship with the attribute value of the element, and the user can float by the provided user interface. Because the attribute value of each number element included in the decimal point representation program can be obtained according to the relationship with the attribute value of other number elements without directly analyzing the floating point representation program directly, Reduces the hassle of setting attribute values for numeric elements that should be represented in fixed-point representation in floating-point representation programs So that it is Rukoto.

固定小数点表現プログラムの作成手順の一例を示すフローチャートである。It is a flowchart which shows an example of the preparation procedure of a fixed point expression program. 本発明の実施の形態に係る浮動小数点表現プログラムの固定小数点表現化支援装置を構成するコンピュータシステムを示すブロック図である。It is a block diagram which shows the computer system which comprises the fixed point expression support apparatus of the floating point expression program which concerns on embodiment of this invention. C言語で記述された浮動小数点表現プログラムの一例を示す図である。It is a figure which shows an example of the floating point expression program described by C language. 図3に示す浮動小数点表現プログラムにて記述された演算処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the arithmetic processing described by the floating point expression program shown in FIG. 本発明の実施の形態に係る浮動小数点表現プログラムの固定小数点表現化支援装置での処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in the fixed point expression support apparatus of the floating point expression program which concerns on embodiment of this invention. 変数リスト(数要素情報)の一例を示す図である。It is a figure which shows an example of a variable list (number element information). 代入式の式リスト(結合関係情報)の一例を示す図である。It is a figure which shows an example of the formula list (joining relationship information) of an assignment formula. 条件式の式リスト(結合関係情報)の一例を示す図である。It is a figure which shows an example of the formula list | wrist (joining relationship information) of a conditional expression. 空状態の属性リストの一例を示す図である。It is a figure which shows an example of the attribute list | wrist of an empty state. 属性値の関係(属性値関係情報)が記述された結果リスト(その1)を示す図である。It is a figure which shows the result list (the 1) in which the relationship (attribute value relationship information) of the attribute value was described. 属性値の関係(属性値関係情報)が記述された結果リスト(その2)を示す図である。It is a figure which shows the result list (the 2) in which the relationship (attribute value relationship information) of the attribute value was described. 結果リスト(ユーザインタフェース)の変数uの各属性項目に属性値を設定したときの状態(その1)を示す図である。It is a figure which shows a state (the 1) when an attribute value is set to each attribute item of the variable u of a result list (user interface). 結果リスト(ユーザインタフェース)の変数uの各属性項目に属性値を設定したときの状態(その2)を示す図である。It is a figure which shows a state (the 2) when an attribute value is set to each attribute item of the variable u of a result list (user interface). 結果リスト(ユーザインタフェース)の変数yの各属性項目に属性値を設定したときの状態(その1)を示す図である。It is a figure which shows a state (the 1) when an attribute value is set to each attribute item of the variable y of a result list (user interface). 結果リスト(ユーザインタフェース)の変数Cの各属性項目に属性値を設定したときの状態を示す図である。It is a figure which shows a state when an attribute value is set to each attribute item of the variable C of a result list (user interface). 図3に示されるC言語で記述された浮動小数点表現プログラムを変換して作成される固定小数点表現プログラムの一例を示す図である。FIG. 4 is a diagram showing an example of a fixed-point expression program created by converting the floating-point expression program described in the C language shown in FIG. 3. 式の解像度(属性項目)についての属性値を設定するための規則の一例を示す図である。It is a figure which shows an example of the rule for setting the attribute value about the resolution (attribute item) of a type | formula. 式のサイズ(属性項目)につての属性値を設定するための規則の一例を示す図である。It is a figure which shows an example of the rule for setting the attribute value about the size (attribute item) of a formula. 式のオフセット(属性項目)につての属性値を設定するための規則の一例を示す図である。It is a figure which shows an example of the rule for setting the attribute value about the offset (attribute item) of a type | formula. 式の符号(属性項目)についての属性値を設定するための規則の一例を示す図である。It is a figure which shows an example of the rule for setting the attribute value about the code | symbol (attribute item) of a formula.

以下、本発明の実施の形態について図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

固定小数点表現プログラムは、例えば、図1に示す手順に従って作成される。図1において、まず、対象の制御(例えば、車両エンジンの燃料噴射制御、車両の走行制御等々)に精通した「制御設計者」が、制御に係る演算処理内容に従って浮動小数点プログラムを作成する(S1)。そして、作成された浮動小数点表現プログラムがテストされ、「制御設計者」は、その処理(アルゴリズム)が意図した通りに進行するか否かを確認する(S2)。意図した通りに進行しない場合(S2でNO)、それが意図した通りに進行するようになる(S2でYES)まで、「制御設計者」は、作成された浮動小数点表現プログラムを修正する(S1)。作成及び修正された浮動小数点表現プログラムに従って処理(アルゴリズム)が「制御設計者」の意図した通りに進行するものであれば(S2でYES)、浮動小数点表現プログラムが完成し、「制御設計者」の作業が終了する。   The fixed-point expression program is created, for example, according to the procedure shown in FIG. In FIG. 1, first, a “control designer” who is familiar with target control (for example, vehicle engine fuel injection control, vehicle travel control, etc.) creates a floating-point program according to the contents of arithmetic processing related to control (S1). ). Then, the created floating-point expression program is tested, and the “control designer” confirms whether or not the processing (algorithm) proceeds as intended (S2). If it does not proceed as intended (NO in S2), the “control designer” modifies the created floating-point expression program until it proceeds as intended (YES in S2) (S1). ). If the processing (algorithm) proceeds as intended by the “control designer” according to the created and modified floating-point expression program (YES in S2), the floating-point expression program is completed, and “control designer” Is finished.

次に、「制御設計者」に代わって実際に使用されるコンピュータシステム(例えば、車両搭載のECU等)の性能に精通した「ソフト設計者」が、そのコンピュータシステムの制約(メモリ容量、計算量)等を考慮して、前記浮動小数点表現プログラムを固定小数点表現プログラムに変換する(S3、S4)。具体的には、浮動小数点表現プログラムから当該浮動小数点プログラムに使用されている変数及び定数(数要素)を抽出し、その抽出された変数及び定数のそれぞれに対して固定小数点表現に必要な属性項目(例えば、ビットサイズ、解像度、数値範囲のオフセット、符号の有無等)の属性値を設定する。そして、各属性項目の属性値の設定(定義)された変数及び定数をもって、前述した浮動小数点表現プログラムにて記述された演算処理と同じ内容の演算処理を記述する固定小数点表現プログラムが作成される(S3)。   Next, a “software designer” who is familiar with the performance of a computer system (for example, an ECU mounted on a vehicle) that is actually used on behalf of the “control designer” has the constraints (memory capacity, calculation amount) of the computer system. ) And the like are converted into a fixed-point representation program (S3, S4). Specifically, the variables and constants (number elements) used in the floating-point program are extracted from the floating-point representation program, and the attribute items necessary for the fixed-point representation for each of the extracted variables and constants Attribute values (for example, bit size, resolution, numerical range offset, presence / absence of code, etc.) are set. Then, a fixed-point expression program describing an arithmetic process having the same contents as the arithmetic process described in the above-described floating-point expression program is created with the variables and constants in which attribute values of the attribute items are set (defined). (S3).

そして、その「ソフト設計者」は、作成された固定小数点表現プログラムに従って演算処理を実際のコンピュータシステムに実行させ、その実行結果を確認する(S4)。固定小数点表現プログラムに従った前記処理の結果は、数値の誤差とオーバーフロー(固定小数点で表現できる範囲を越えた値になること)によって、浮動小数点表現プログラムに従った処理の結果と異なる。これが、当該コンピュータシステムの動作として許されない場合には、変数や定数の各属性項目の属性値の再設定を行って固定小数点表現プログラムを修正する。この作業を繰り返して、固定小数点表現プログラムに従った処理のコンピュータシステムでの動作結果が、許容されるものとなったとき、その固定小数点表現プログラムが完成する。   Then, the “software designer” causes the actual computer system to execute arithmetic processing according to the created fixed-point expression program, and confirms the execution result (S4). The result of the process according to the fixed-point expression program differs from the result of the process according to the floating-point expression program due to numerical error and overflow (becomes a value that exceeds the range that can be expressed by the fixed point). If this is not permitted as the operation of the computer system, the fixed-point expression program is corrected by resetting the attribute values of the variable and constant attribute items. This operation is repeated, and when the operation result in the computer system of processing according to the fixed-point expression program becomes acceptable, the fixed-point expression program is completed.

本発明の実施の形態に係る浮動小数点表現プログラムの固定小数点表現化支援装置(以下、実施の形態の説明において支援装置という)は、前述した、浮動小数点表現プログラムで用いられる変数や定数の数要素の固定小数点表現に必要となる各属性項目の属性値を設定する際(図1におけるS3)に、ユーザの作業を支援するために利用される。   A fixed-point expression support device for a floating-point expression program according to an embodiment of the present invention (hereinafter referred to as a support device in the description of the embodiment) is a numerical element of variables and constants used in the above-described floating-point expression program. This is used to support the user's work when setting the attribute value of each attribute item necessary for the fixed-point expression (S3 in FIG. 1).

本発明の実施の一形態に係る支援装置を構成するコンピュータシステムは、図2に示すように構成される。   A computer system constituting the support apparatus according to the embodiment of the present invention is configured as shown in FIG.

図2において、このコンピュータシステム(支援装置)は、プログラムに従って種々の処理を実行する処理ユニット(CPU)101を有している。処理ユニット101には、バス107を介してメモリ102、ハードディスク装置等の外部記憶装置103、マウス、キーボード等の操作部105及びモニタ106(表示部)が接続されている。処理ユニット101は、ユーザによる操作部105での操作に基づいた操作信号に応じて外部記憶装置103から浮動小数点表現プログラムの固定小数点表現化の支援処理に係るプログラムをメモリ103に読み出し、そのプログラムに従って処理を実行する。その処理の実行により生成される支援情報がモニタ106に表示される(ユーザインタフェース)。   In FIG. 2, the computer system (supporting device) has a processing unit (CPU) 101 that executes various processes according to a program. The processing unit 101 is connected to a memory 102, an external storage device 103 such as a hard disk device, an operation unit 105 such as a mouse and a keyboard, and a monitor 106 (display unit) via a bus 107. The processing unit 101 reads, from the external storage device 103, a program related to support processing for fixed-point expression of a floating-point expression program to the memory 103 in accordance with an operation signal based on an operation performed by the user on the operation unit 105, and in accordance with the program Execute the process. Support information generated by executing the processing is displayed on the monitor 106 (user interface).

固定小数点表現化すべき浮動小数点表現プログラムは、予め外部記憶装置103に格納されている。この浮動小数点表現プログラムは、例えば、図3に示すようにC言語で記述される。図3に示す浮動小数点表現プログラムは、センサからの入力uを補正して出力yを得る演算処理を記述したもので、その処理手順は、図4に示すフローチャートによっても表すことができる。この演算処理を簡単に説明する。   A floating-point expression program to be converted into a fixed-point expression is stored in the external storage device 103 in advance. This floating point expression program is written in C language as shown in FIG. 3, for example. The floating-point expression program shown in FIG. 3 describes a calculation process for correcting the input u from the sensor to obtain the output y, and the processing procedure can also be expressed by the flowchart shown in FIG. This calculation process will be briefly described.

センサからの入力uは、多くのノイズを含んでいるため、その入力uに対してローパスフィルタ処理が施される。具体的には、
y=C・u+(1−C)・y
y:前回の出力値
C:フィルタ係数(0.0≦C≦1.0)
に従って、フィルタ出力yが算出される。
更に、センサ自体の回路や当該センサをCPUに接続する信号線は、物理的な故障の危険性をはらんでおり、CPUが故障を検知し、適切な処理をさせる必要がある。そこで、センサからサンプリングされる入力uが連続(Nf1回)して規定範囲外であればセンサが故障(断線、ショート)しているとして値(true)が変数fxにセットされ、サンプリングされる入力uの変化量(|u1−u|)が連続(Nf2回)して既定値(Udelta)より大きくなればセンサが故障(センサ破壊)しているとして値(true)が変数fxにセットされる。そして、変数fxが値(ture)にセットされていると(センサ故障の場合)、フィルタ出力yは、強制的に安全な固定値(Ysafe)に設定される。
Since the input u from the sensor includes a lot of noise, the input u is subjected to low-pass filter processing. In particular,
y = C · u + (1−C) · y
y: previous output value C: filter coefficient (0.0 ≦ C ≦ 1.0)
Accordingly, the filter output y is calculated.
Furthermore, the circuit of the sensor itself and the signal line connecting the sensor to the CPU are at risk of physical failure, and the CPU needs to detect the failure and perform appropriate processing. Therefore, if the input u sampled from the sensor is continuous (Nf 1 time) and out of the specified range, the value (true) is set to the variable fx, assuming that the sensor is faulty (disconnected, shorted), and sampled input. If the change amount (| u1-u |) of u is continuous (Nf 2 times) and becomes larger than a predetermined value (Udelta), the value (true) is set in the variable fx as a sensor failure (sensor destruction). . When the variable fx is set to a value (ture) (in the case of a sensor failure), the filter output y is forcibly set to a safe fixed value (Ysafe).

以下、このような演算処理を記述する浮動小数点表現プログラム(図3及び図4参照)を固定小数点表現化する場合を例に、本支援装置の動作について説明する。   Hereinafter, the operation of the support apparatus will be described by taking as an example a case where a floating-point expression program (see FIGS. 3 and 4) describing such arithmetic processing is expressed as a fixed-point expression.

処理ユニット101は、ユーザ(「ソフト設計者」)による操作部105の所定の操作に従って、例えば、図3に示すようにC言語で記述された浮動小数点表現プログラムを外部記憶装置103からメモリ102上に読み出して、図5に示す手順に従って支援処理を実行する。   In accordance with a predetermined operation of the operation unit 105 by the user (“software designer”), the processing unit 101 stores, for example, a floating-point expression program written in C language from the external storage device 103 on the memory 102 as shown in FIG. And the support process is executed according to the procedure shown in FIG.

処理ユニット101は、メモリ102に展開された浮動小数点表現プロラムの字句構造を解析して、当該浮動小数点表現プログラムにて使用されている変数及び定数(数要素:以下、便宜上、単に変数という)を抽出し、その情報(数要素情報)をリスト化した変数リストを作成する(S11)。その変数リストはメモリ102(数要素格納手段)に格納される。処理ユニット101は、前記変数とともに当該浮動小数点表現プログラムにおいて当該変数に対して定義される情報(定義情報)も抽出しており、その定義情報が変数に対応するように前記変数リストに含められている。例えば、図3に示すC言語で記述された浮動小数点表現プログラムから以下の変数が抽出される。


nf1
nf2
fx

Umin
Umax
u1
Udelta
Nf1
Nf2
Ysafe
The processing unit 101 analyzes the lexical structure of the floating-point expression program expanded in the memory 102, and uses variables and constants (number elements: hereinafter simply referred to as variables for convenience) used in the floating-point expression program. A variable list is created by extracting and listing the information (number element information) (S11). The variable list is stored in the memory 102 (several element storage means). The processing unit 101 extracts information (definition information) defined for the variable in the floating-point expression program together with the variable, and the definition information is included in the variable list so as to correspond to the variable. Yes. For example, the following variables are extracted from the floating-point expression program described in the C language shown in FIG.
u
y
nf1
nf2
fx
C
Umin
Umax
u1
Udelta
Nf1
Nf2
Ysafe

これらの変数とともに、各変数に対して定義される定義情報である「種別」及び「型」が抽出され、前記変数(変数名)及び「種別」、「型」の定義情報から、例えば、図6に示すような変数リストが作成される。なお、「種別」は、入力、出力、内部情報、定数等の変数(数要素)の種類についての定義情報である。内部情報は、その浮動小数点表現プログラムが記述する演算処理において保持される計数値や設定値等の内部状態をいう。「型」は、C言語で決められている変数(数要素)の型であって、浮動小数点型(float)、整数値型(int)、真偽値型(bool)、倍精度浮動小数点型(double)、文字型(char)等がある。   Along with these variables, “type” and “type”, which are definition information defined for each variable, are extracted. From the definition information of the variable (variable name), “type”, and “type”, for example, FIG. A variable list as shown in FIG. The “type” is definition information about the type of variable (number element) such as input, output, internal information, and constant. The internal information refers to an internal state such as a count value and a set value held in the arithmetic processing described by the floating point expression program. "Type" is a variable (number element) type defined in the C language, and is a floating point type (float), integer value type (int), boolean value type (bool), double precision floating point type (Double), character type (char), etc.

次いで、処理ユニット101は、メモリ102に展開された浮動小数点表現プログラムの字句構造を解析して、当該浮動小数点プログラムにて使用される各変数の他の一または複数の変数との式で結ばれている関係を抽出する(S12)。具体的には、変数と他の一または複数の変数とが、変数の値を更新するための代入式の右辺と左辺となる関係、及び変数と他の一または複数の変数とが、条件分岐に係る条件式の右辺と左辺となる関係が抽出され、その関係を表す情報(結合関係情報)をリスト化した式リストが生成される。式リストは、メモリ102(関係情報格納手段)に格納される。例えば、図3(図4参照)に示すC言語で記述された浮動小数点表現プログラムから以下の関係が抽出される。
代入式
nf1=nf1+1
fx=true
nf 1=0
nf2=nf2+1
nf2=0
u1=u
y=C*u+(1−C)*y
y=Ysafe

条件式
u<umin
nf1>Nf1
Umax<u
u<u1−Udelta
u1+Udelta<u
nf2>Nf2
fx=true
Next, the processing unit 101 analyzes the lexical structure of the floating-point expression program expanded in the memory 102 and connects it with an expression with one or more other variables of each variable used in the floating-point program. Are extracted (S12). Specifically, the relationship between the variable and one or more other variables is the right and left sides of the assignment expression for updating the value of the variable, and the variable and the other one or more variables are conditional branches. The relationship between the right side and the left side of the conditional expression related to is extracted, and an expression list in which information representing the relationship (binding relation information) is listed is generated. The expression list is stored in the memory 102 (relation information storage means). For example, the following relationship is extracted from the floating-point expression program written in C language shown in FIG. 3 (see FIG. 4).
Substitution formula nf1 = nf1 + 1
fx = true
nf 1 = 0
nf2 = nf2 + 1
nf2 = 0
u1 = u
y = C * u + (1-C) * y
y = Ysafe

Conditional expression u <umin
nf1> Nf1
Umax <u
u <u1-Udelta
u1 + Udelta <u
nf2> Nf2
fx = true

そして、前記代入式に係る関係から図7に示すような式リストが作成され、前記条件式に係る関係から図8に示すような式リストが生成される。   Then, an expression list as shown in FIG. 7 is created from the relationship related to the substitution expression, and an expression list as shown in FIG. 8 is generated from the relation related to the conditional expression.

処理ユニット101は、変数リスト(図6参照)及び式リスト(図7及び図8参照)を作成すると、変数リストから変数を選択し(S13)、その変数が後述する属性リストに含まれていないか否か及びその変数の「型」が浮動小数点型(float)または倍精度浮動小数点型(double)であるか否かを判定する(S14)。変数リストから選択された前記変数がまだ属性リストに含まれておらず、かつ、その「型」が浮動小数点型(float)または倍精度浮動小数点型(double)である場合(S14でYES)、処理ユニット101は、外部記憶装置103から読み出してメモリ102に展開している属性リストに前記変数リストから選択した前記変数を追加する(S15)。   When the processing unit 101 creates the variable list (see FIG. 6) and the expression list (see FIGS. 7 and 8), it selects a variable from the variable list (S13), and the variable is not included in the attribute list described later. And whether or not the “type” of the variable is a floating-point type (float) or a double-precision floating-point type (double) is determined (S14). When the variable selected from the variable list is not yet included in the attribute list and the “type” is a floating-point type (float) or a double-precision floating-point type (double) (YES in S14), The processing unit 101 adds the variable selected from the variable list to the attribute list read from the external storage device 103 and developed in the memory 102 (S15).

この属性リストは、各変数の固定小数点表現に必要な各属性項目(ビットサイズ、解像度、数値範囲表現のオフセット、符号の有無)の属性値をリスト化して表すもので、具体的には、図9に示すように構成される。図6に示す変数リストからは、「型」が浮動小数点型(float)または倍精度浮動小数点型(double)の次の変数が属性リストに加えられる(図9参照)。



Umin
Umax
u1
Udelta
Ysafe
This attribute list is a list of attribute values of each attribute item (bit size, resolution, numerical range offset, sign presence / absence) required for fixed-point representation of each variable. 9 is configured. From the variable list shown in FIG. 6, the next variable whose “type” is a floating-point type (float) or a double-precision floating-point type (double) is added to the attribute list (see FIG. 9).
u
y
C
Umin
Umax
u1
Udelta
Ysafe

処理ユニット101が変数リスト(図6参照)内の全ての変数についての前記処理(S14、S15)を終えると(S16でYES)、メモリ102内には、浮動小数点表現プログラムに含まれる浮動小数点型(float)及び倍精度浮動小数点型(double)の全ての変数がリスト化された図9に示す属性リストが構成される。次いで、処理ユニット101は、前記属性リストから変数を選択し(S17)、変数リストを参照して、その選択された変数の「種別」が定数または内部状態であるか否かを判定する(S18)。選択された変数の「種別」が定数または内部状態である場合(S18でYES)、処理ユニット101は、選択された変数の固定小数点表現に必要な各属性項目の属性値の他の変数の属性値との関係を、前記式リスト(図7及び図8参照)に示される変数相互の関係から以下の規則に従って設定する(S19)。   When the processing unit 101 finishes the processing (S14, S15) for all variables in the variable list (see FIG. 6) (YES in S16), the floating-point type included in the floating-point expression program is stored in the memory 102. An attribute list shown in FIG. 9 is formed in which all variables of (float) and double-precision floating-point type (double) are listed. Next, the processing unit 101 selects a variable from the attribute list (S17), and refers to the variable list to determine whether the “type” of the selected variable is a constant or an internal state (S18). ). When the “type” of the selected variable is a constant or an internal state (YES in S18), the processing unit 101 determines the attribute of the other variable of the attribute value of each attribute item necessary for the fixed-point representation of the selected variable. The relationship with the value is set according to the following rule from the relationship between the variables shown in the formula list (see FIGS. 7 and 8) (S19).

(1)規則1
式リストにおける右辺または左辺の単項の変数は、他方の辺の変数(複数項であってもよい)と同じ属性値である。
(2)規則2
変数が加減算式の項である場合、その変数は、当該加減算式の他の項の変数と同じ属性値である。
(1) Rule 1
The unary variable on the right side or the left side in the expression list has the same attribute value as the variable on the other side (may be multiple terms).
(2) Rule 2
When the variable is a term of the addition / subtraction expression, the variable has the same attribute value as the variable of the other term of the addition / subtraction expression.

一方、属性リストから選択された変数の「種別」が定数または内部状態でない場合(S18でNO)、即ち、その「種別」が入力あるいは出力であると、処理ユニット101は、その変数に対する処理を特に行わない。   On the other hand, if the “type” of the variable selected from the attribute list is not a constant or an internal state (NO in S18), that is, if the “type” is input or output, the processing unit 101 performs processing for the variable. No particular action is taken.

上記処理の結果、変数Uminの図8に示す式リストの変数uとの関係から前記規則1に従って、変数Uminの固定小数点表現に必要な各属性項目(ビットサイズ、解像度、オフセット、符号の有無)の属性値が変数uの属性値と同じであると判定される。変数Umaxについても同様に、図8に示す式リストの変数uとの関係から前記規則1に従って、その固定小数点表現に必要な各属性項目の属性値が変数uの属性値と同じであると判定される。変数u1については、図7に示す式リストの変数uとの関係から前記規則1に従って、その固定小数点表現に必要な各属性項目の属性値が変数uの属性値と同じであると判定される。変数Ysafeについては、図7に示す式リストの変数yとの関係から前記規則1に従って、その固定小数点表現に必要な各属性項目の属性値が変数yの属性値と同じであると判定される。従って、図10に示すように、属性リストの前記変数Umin、Umax、u1のそれぞれに対応した各属性項目に、変数uの属性値と同じ属性値であることを表す情報(属性値関係情報)である参照式(=u)が対応づけられるとともに、変数Ysafeに対応した各属性項目に、変数yの属性値と同じ属性値であることを表す情報(属性値関係情報)である参照式(=y)が対応付けられる。   As a result of the above processing, each attribute item (bit size, resolution, offset, presence / absence of sign) necessary for the fixed-point expression of the variable Umin according to the rule 1 based on the relationship between the variable Umin and the variable u in the expression list shown in FIG. Is determined to be the same as the attribute value of the variable u. Similarly, regarding the variable Umax, it is determined that the attribute value of each attribute item necessary for the fixed-point expression is the same as the attribute value of the variable u from the relationship with the variable u of the expression list shown in FIG. Is done. Regarding the variable u1, it is determined that the attribute value of each attribute item necessary for the fixed-point expression is the same as the attribute value of the variable u according to the rule 1 from the relationship with the variable u in the expression list shown in FIG. . Regarding the variable Ysafe, it is determined that the attribute value of each attribute item necessary for the fixed-point expression is the same as the attribute value of the variable y according to the rule 1 from the relationship with the variable y in the expression list shown in FIG. . Therefore, as shown in FIG. 10, information indicating that each attribute item corresponding to each of the variables Umin, Umax, u1 in the attribute list has the same attribute value as the attribute value of the variable u (attribute value relation information) A reference expression (= u) is associated, and each attribute item corresponding to the variable Ysafe has a reference expression (attribute value relation information) indicating that the attribute value is the same attribute value as the attribute value of the variable y. = Y) is associated.

変数Udeltaについては、図8に示す式リストにおける右辺の変数u1と同じ加減式に含まれるという関係から前記規則2に従って、その固定小数点表現に必要な各属性項目の属性値が変数u1の属性値と同じであると判定される。従って、図11に示すように、属性リストの前記変数Udeltaに対応した各属性項目に、変数u1の属性値と同じ属性値であることを表す情報(属性値関係情報)である参照式(=u1)が対応づけられる。   For the variable Udelta, the attribute value of each attribute item necessary for its fixed-point expression is the attribute value of the variable u1 according to the rule 2 because it is included in the same addition / subtraction formula as the variable u1 on the right side in the formula list shown in FIG. It is determined that Therefore, as shown in FIG. 11, each attribute item corresponding to the variable Udelta in the attribute list has a reference expression (= attribute value relation information) indicating that the attribute value is the same attribute value as the attribute value of the variable u1. u1) are associated.

このような処理が属性リストにリスト化された全ての変数に対してなされると(S20でYES)、処理ユニット101は、メモリ102内には、変数Umin、Umax、u1、Udelta、Ysafeの各属性項目に、それらの変数の属性値が他の属性値と同じであることを表す属性関係情報(=u、=u1、=y)が対応付けられた図11に示すような結果リストが構成される。   When such processing is performed for all variables listed in the attribute list (YES in S20), the processing unit 101 stores the variables Umin, Umax, u1, Udelta, and Ysafe in the memory 102. A result list as shown in FIG. 11 is formed in which attribute relationship information (= u, = u1, = y) indicating that the attribute values of these variables are the same as other attribute values is associated with the attribute items. Is done.

なお、変数u、yは、その「種別」が入力及び出力であって、定数及び内部状態のいずれでもないので、その各属性項目に対して他の変数の属性値の関係を表す情報(属性関係情報)は設定されない。「種別」が入力、出力となる変数u、yの固定小数点表現に必要な各属性項目の属性値は、外部要件としてユーザ(「ソフト設計者」)によって設定されるべきものである。また、変数Cは、その「種別」が定数ではあるが、前記規則1及び前記規則2のいずれでも、式リスト(図7参照)の情報からはその属性値の他の変数の属性値との関係が判別できないので、その関係を表す情報(属性関係情報)は設定されない。   The variables u and y have the “type” of input and output, and are neither constants nor internal states. Therefore, information (attributes) indicating the relationship between the attribute values of other variables for each attribute item. (Related information) is not set. The attribute value of each attribute item necessary for the fixed-point expression of the variables u and y whose “type” is input and output is to be set by the user (“software designer”) as an external requirement. In addition, the variable C has a “type” that is a constant. In either of the rule 1 and the rule 2, the information of the expression list (see FIG. 7) indicates that the attribute value of another variable Since the relationship cannot be determined, information representing the relationship (attribute relationship information) is not set.

処理ユニット101は、図11に示すような結果リストをモニタ106(表示部)に表示させる。ユーザは、モニタ106に表示される結果リスト(ユーザインタフェース)を見て、変数u、y、Cの各属性項目に対する属性値が設定されていないことを知り、操作部105を操作して変数u、y、Cの各属性項目に対する属性値を入力(設定)する。例えば、図12に示すように、モニタ106に表示される結果リストにおける変数uの各属性項目(ビットサイズ、解像度、オフセット、符号)に対してその属性値(ビットサイズ:8、解像度:2-4、オフセット:0、符号:なし)の入力操作なされると、処理ユニット101は、結果リストにおける当該変数uの各属性項目にその入力された属性値を設定するとともに、変数uと同じ属性値であることを表す属性関係情報(参照式=u)に基づいて、変数umin、Umax、u1それぞれの各属性項目に変数uの属性値と同じ属性値を設定する。このように変数u1の各属性項目の属性値が変数uとの属性関係情報(=u)に従って設定されると、処理ユニット101は、更に、変数u1と同じ属性値であることを表す属性関係情報(参照式=u1)に基づいて、変数Udeltaの各属性項目の属性値を、図13に示すように、変数u1、即ち変数uの属性値と同じ属性値を設定する。 The processing unit 101 displays a result list as shown in FIG. 11 on the monitor 106 (display unit). The user looks at the result list (user interface) displayed on the monitor 106 and knows that no attribute value is set for each attribute item of the variables u, y, and C, and operates the operation unit 105 to operate the variable u. , Y, and C are input (set) for attribute values. For example, as shown in FIG. 12, for each attribute item (bit size, resolution, offset, sign) of the variable u in the result list displayed on the monitor 106, its attribute value (bit size: 8, resolution: 2 − 4 , offset: 0, sign: none), the processing unit 101 sets the input attribute value to each attribute item of the variable u in the result list, and the same attribute value as the variable u Based on the attribute relation information (reference expression = u) indicating that the same as the attribute value of the variable u is set in each attribute item of the variables umin, Umax, u1. As described above, when the attribute value of each attribute item of the variable u1 is set according to the attribute relationship information (= u) with the variable u, the processing unit 101 further represents the attribute relationship indicating the same attribute value as the variable u1. Based on the information (reference formula = u1), the attribute value of each attribute item of the variable Udelta is set to the variable u1, that is, the same attribute value as the attribute value of the variable u, as shown in FIG.

更に、モニタ106に表示される結果リスト(図13参照)における変数yの各属性項目(ビットサイズ、解像度、オフセット、符号)に対してその属性値(ビットサイズ:8、解像度:2-4、オフセット:0、符号:なし)の入力操作なされると、処理ユニット101は、結果リストにおける当該変数yの各属性項目にその入力された属性値を設定するともに、変数yと同じ属性値であることを表す属性関係情報(参照式=y)に基づいて、変数Ysafeの各属性項目の属性値を、図14に示すように、変数yの属性値と同じ属性値を設定する。また、モニタ106に表示される結果リスト(図14参照)における変数Cの各属性項目に対してその属性値の入力操作がなされると、処理ユニット101は、結果リストにおける当該変数Cの各属性項目にその入力された属性値を設定して、モニタ106に表示される結果リストを図15に示すように更新する。 Furthermore, for each attribute item (bit size, resolution, offset, sign) of the variable y in the result list (see FIG. 13) displayed on the monitor 106, its attribute value (bit size: 8, resolution: 2 −4 , When an input operation of offset: 0, sign: none is performed, the processing unit 101 sets the input attribute value in each attribute item of the variable y in the result list and has the same attribute value as the variable y. Based on the attribute relationship information indicating that (reference expression = y), the attribute value of each attribute item of the variable Ysafe is set to the same attribute value as the attribute value of the variable y as shown in FIG. Further, when the attribute value is input to each attribute item of the variable C in the result list (see FIG. 14) displayed on the monitor 106, the processing unit 101 causes each attribute of the variable C in the result list to be input. The input attribute value is set in the item, and the result list displayed on the monitor 106 is updated as shown in FIG.

このようにして、属性リスト(図9参照)にリスト化された全ての変数の固定小数点表現に必要な各属性項目の属性値の設定がなされると、ユーザ(「ソフト設計者」)は、モニタ106に表示される結果リスト(図15参照)に表れている各変数に対する各属性項目の属性値を参照して、浮動小数点表現プログラムから固定小数点表現化プログラムを作成する作業を行う。その結果、図3に示すC言語で記述された浮動小数点表現プログラムは、例えば、図16に示す固定小数点表現プログラムに変換される。なお、この際、各変数に対して設定された固定小数点表現に必要な各属性項目の属性値の情報を用いて、浮動小数点表現プログラムから固定小数点表現化プログラムを作成する公知のアプリケーションソフトウェア(例えば、米国MathWorks 社製 Fixed Point Toolbox)を利用することもできる。   When the attribute values of the respective attribute items necessary for the fixed-point representation of all the variables listed in the attribute list (see FIG. 9) are set in this way, the user (“software designer”) With reference to the attribute value of each attribute item for each variable appearing in the result list (see FIG. 15) displayed on the monitor 106, an operation of creating a fixed-point expression program from the floating-point expression program is performed. As a result, the floating-point expression program described in the C language shown in FIG. 3 is converted into, for example, a fixed-point expression program shown in FIG. At this time, well-known application software (for example, a fixed-point expression program for creating a fixed-point expression program from a floating-point expression program using attribute value information of each attribute item necessary for fixed-point expression set for each variable) You can also use the Fixed Point Toolbox (MathWorks, USA).

上述したような支援装置では、浮動小数点表現プログラムから抽出される各変数の固定小数点表現に必要な各属性項目(Umin、Umax、u1、Udelta、Ysafe)についての属性値の他の変数(u、y)の属性値との関係を表す属性値関係情報(参照式=u、=y)の設定された結果リスト(図11参照)がモニタ106にユーザインタフェースとして表示されるので、ユーザ(「ソフト設計者」)は、浮動小数点表現プログラムに含まれる全ての変数に対して当該浮動小数点表現プログラムを解析して個々的にその属性値を求めなくても、一部の変数(u、y、C)の属性値を求めれば、他の変数については、表示される結果リスト(図11参照)に挙げられた属性値関係情報に従ってその属性値を求めることができるようになる。   In the support apparatus as described above, other variables (u, Umax, Umax, u1, Udelta, Ysafe) of the attribute values necessary for the fixed-point representation of each variable extracted from the floating-point representation program. Since a result list (see FIG. 11) in which attribute value relationship information (reference expression = u, = y) representing a relationship with the attribute value of y) is set is displayed on the monitor 106 as a user interface, the user (“soft The designer ”) does not need to analyze the floating-point representation program for all the variables included in the floating-point representation program and individually determine the attribute values thereof, but some variables (u, y, C ), The attribute values of other variables can be obtained according to the attribute value relation information listed in the displayed result list (see FIG. 11).

更に、前記支援装置では、前記一部の変数(u、y、C)の属性値をモニタ106に表示される結果リストに入力すれば(図12、図13、図14参照)、支援装置が、他の変数(Umin、Umax、u1、Udelta、Ysafe)については、その入力された変数の属性値との関係(属性値関係情報)に基づいて自動的に属性値を設定して結果リストに表示させるので、ユーザは、更に、容易に浮動小数点表現プログラムに含まれる変数の固定小数点表現に必要な各属性項目の属性値を知ることができるようになる。   Further, in the support device, if the attribute values of the some variables (u, y, C) are input to the result list displayed on the monitor 106 (see FIGS. 12, 13, and 14), the support device For other variables (Umin, Umax, u1, Udelta, Ysafe), attribute values are automatically set based on the relationship with the attribute values of the input variables (attribute value relationship information) and displayed in the result list. Since it is displayed, the user can easily know the attribute value of each attribute item necessary for the fixed-point expression of the variable included in the floating-point expression program.

このように、前記支援装置によれば、浮動小数点表現プログラムにおける固定小数点表現化すべき変数に対する属性値を設定するための手間を低減させることができるようになる。よって、より効率的に固定小数点表現プログラムを作成することができるようになる。   As described above, according to the support device, it is possible to reduce time and effort for setting attribute values for variables to be expressed in fixed-point numbers in a floating-point expression program. Therefore, it becomes possible to create a fixed-point expression program more efficiently.

なお、前述した支援装置では、変数の属性値の他の変数の属性値との関係(属性値関係)を前記規則1及び規則2に従って決めていたが、式全体の属性値を判定することによってその関係を決めることもできる。解像度の属性項目については、例えば、図17に示す関係に従って、ビットサイズの属性項目については、例えば、図18に示す関係に従って、数値表現範囲のオフセットの属性項目については、例えば、図19に示す関係に従って、更に、符号の有無の属性項目については、例えば、図20に示す関係に従って、それぞれ、加算式(a+b)、減算式(a−b)、乗算式(a×b)及び除算式(a/b)の属性値を決めることができる。   In the above-described support device, the relationship between the attribute value of the variable and the attribute value of the other variable (attribute value relationship) is determined according to the rules 1 and 2, but by determining the attribute value of the entire expression You can also determine that relationship. The resolution attribute item is, for example, according to the relationship shown in FIG. 17, and the bit size attribute item is, for example, according to the relationship shown in FIG. Further, according to the relationship, for the attribute item with or without the sign, for example, according to the relationship shown in FIG. 20, the addition formula (a + b), the subtraction formula (ab), the multiplication formula (a × b), and the division formula ( The attribute value of a / b) can be determined.

また、前記支援装置においては、結果リスト(図11〜図15)がユーザインタフェースとしてモニタ106に表示されるものであったが、変数リスト(図6)や式リスト(図7、図8)をモニタ106に表示させるようにしてもよい。また、各変数(Umin、Umax、u1、Udelta、Ysafe)の属性値の他の変数(u、y)の属性値との関係(属性値関係情報)を表示する結果リスト(図11)だけが表示されるものであってもよい。この場合、ユーザは、その属性値関係情報に従って、自らが操作部105を用いて、前記各変数に対する属性値入力の操作を行えばよい。   In the support apparatus, the result list (FIGS. 11 to 15) is displayed on the monitor 106 as a user interface. However, the variable list (FIG. 6) and the expression list (FIGS. 7 and 8) are displayed. It may be displayed on the monitor 106. Further, only the result list (FIG. 11) that displays the relationship (attribute value relationship information) of the attribute value of each variable (Umin, Umax, u1, Udelta, Ysafe) with the attribute value of another variable (u, y). It may be displayed. In this case, according to the attribute value relation information, the user may use the operation unit 105 to perform an operation for inputting attribute values for each variable.

前述した実施の形態では、C言語で記載されたプログラム(浮動小数点表現プログラム及び固定小数点表現プログラム)について説明したが、本発明は、そのようなプログラムに限られず、コンピュータが実行可能な言語に直接的または間接的に翻訳可能なものであれば、他の言語や他の形式で記載されたプログラムにも適用することができる。   In the above-described embodiment, the program written in the C language (floating point expression program and fixed point expression program) has been described. However, the present invention is not limited to such a program, and is directly applied to a computer executable language. It can be applied to programs written in other languages or in other formats as long as they can be translated either indirectly or indirectly.

以上、説明したように、本件発明に係る浮動小数点表現プログラムの固定小数点表現化支援装置は、その浮動小数点表現プログラムにおける固定小数点表現化すべき数要素に対する属性値を設定するための手間を低減させることができるという効果を有し、浮動小数点表現の変数等の数要素を用いた演算処理を記述する浮動小数点表現プログラムを固定小数点表現の数要素を用いた演算処理を記述する固定小数点表現プログラムに変える際のユーザ支援処理を行う浮動小数点表現プログラムの固定小数点表現化支援装置及び支援プログラムとして有用である。   As described above, the fixed-point representation support device for a floating-point representation program according to the present invention reduces the effort for setting attribute values for the number elements to be fixed-point representation in the floating-point representation program. The floating-point representation program that describes arithmetic processing using numerical elements such as variables of floating-point representation is changed to a fixed-point representation program that describes arithmetic processing using numerical elements of fixed-point representation. This is useful as a fixed-point expression support apparatus and support program for a floating-point expression program that performs user support processing.

101 処理ユニット(CPU)
102 メモリ
103 外部記憶装置(HDD)
105 操作部
106 モニタ(表示部)
107 バス
101 processing unit (CPU)
102 Memory 103 External storage device (HDD)
105 Operation unit 106 Monitor (display unit)
107 bus

Claims (10)

浮動小数点表現の数要素を用いた演算処理を記述する浮動小数点表現プログラムを固定小数点表現の数要素を用いた演算処理を記述する固定小数点表現プログラムに変える際のユーザ支援処理を行うコンピュータシステムにて構成された浮動小数点表現プログラムの固定小数点表現化支援装置であって、
前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている数要素を抽出する数要素抽出手段と、
前記抽出された数要素を表す数要素情報を格納する数要素情報格納手段と、
前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている各数要素の他の一または複数の数要素との式で結ばれる関係を抽出する関係抽出手段と、
前記抽出された関係を表す結合関係情報を格納する関係情報格納手段と、
数要素の固定小数点表現に必要な各属性項目についての前記数要素情報にて表される各数要素の属性値の他の数要素の属性値との関係を表す属性値関係情報を、前記結合関係情報にて表される前記各数要素の他の一または複数の数要素との式で結ばれる関係に基づいて生成する属性値関係生成手段と、
前記属性値関係情報に基づいて前記各数要素の各属性項目ついての属性値を設定するためのユーザインタフェースを提供する手段とを有する浮動小数点表現プログラムの固定小数点化支援装置。
In a computer system that performs user support processing when changing a floating-point expression program that describes arithmetic processing using a number element of a floating-point expression to a fixed-point expression program that describes arithmetic processing using a number element of a fixed-point expression A fixed-point expression support device for a configured floating-point expression program,
Analyzing a description of the floating-point expression program, and extracting a number element used in the floating-point expression program;
Number element information storage means for storing number element information representing the extracted number elements;
Analyzing the description of the floating-point expression program, and extracting a relationship connected by an expression with one or more other numerical elements of each numerical element used in the floating-point expression program;
Relationship information storage means for storing connection relationship information representing the extracted relationship;
The attribute value relation information representing the relation between the attribute value of each number element represented by the number element information for each attribute item necessary for the fixed-point representation of the number element and the attribute value of another number element. Attribute value relationship generating means for generating based on a relationship connected by an expression with one or a plurality of other number elements represented by the relationship information;
A fixed-point support apparatus for a floating-point expression program, comprising: means for providing a user interface for setting an attribute value for each attribute item of each numerical element based on the attribute value relation information.
前記ユーザインタフェースを提供する手段は、前記属性値関係情報に基づいて、前記各属性項目についての前記各数要素の属性値の他の数要素の属性値との関係を表示部に表示させる請求項1記載の浮動小数点表現プログラムの固定小数点表現化支援装置。   The means for providing the user interface causes a display unit to display a relationship between an attribute value of each number element and an attribute value of another number element for each attribute item based on the attribute value relationship information. A fixed-point expression support device for a floating-point expression program according to claim 1. 前記関係抽出手段は、数要素と他の一または複数の数要素とが代入式の右辺と左辺となる関係を前記式で結ばれる関係として抽出する請求項1または2記載の浮動小数点表現プログラムの固定小数点表現化支援装置。   The floating point expression program according to claim 1, wherein the relation extraction unit extracts a relation in which a numerical element and one or a plurality of other numerical elements are a right side and a left side of an assignment expression as a relation connected by the expression. Fixed-point expression support device. 前記関係抽出手段は、数要素と他の一または複数の数要素とが条件式の右辺と左辺となる関係を前記式で結ばれる関係として抽出する請求項1乃至3のいずれかに記載の浮動小数点表現プログラムの固定小数点表現化支援装置。   The floating point according to any one of claims 1 to 3, wherein the relation extracting unit extracts a relation in which a numerical element and one or more numerical elements are a right side and a left side of a conditional expression as a relation connected by the expression. Fixed-point expression support device for decimal point expression program. 前記数要素抽出手段は、前記浮動小数点表現プログラムにて使用されている変数を数要素として抽出する請求項1乃至4のいずれかに記載の浮動小数点表現プログラムの固定小数点表現化支援装置。   5. The floating-point expression program fixed-point expression support apparatus according to claim 1, wherein the number element extraction unit extracts a variable used in the floating-point expression program as a number element. 前記数要素抽出手段は、前記浮動小数点表現プログラムにて使用されている定数を数要素として抽出する請求項1乃至5のいずれかに記載の浮動小数点表現プログラムの固定小数点表現化装置。   6. The fixed-point expression device for a floating-point expression program according to claim 1, wherein the number element extraction unit extracts a constant used in the floating-point expression program as a number element. 前記属性値関係情報生成手段は、前記抽出された数要素のうち前記浮動小数点表現プログラムが記述する演算処理における内部状態を表す数要素の前記属性値の他の数要素の属性値との関係を表す情報を前記属性値関係情報に含める請求項1乃至6のいずれかに記載の浮動小数点表現プログラムの固定小数点表現化支援装置。   The attribute value relationship information generating means is configured to determine a relationship between an attribute value of another number element of the attribute value of the number element representing an internal state in the arithmetic processing described by the floating point expression program among the extracted number elements. 7. The floating-point expression program fixed-point expression support apparatus according to claim 1, wherein information to be included is included in the attribute value relation information. 前記属性関係情報生成手段は、前記抽出された数要素のうち前記浮動小数点表現プログラム内における定数の属性値と他の数要素の属性値との関係を表す情報を前記属性値関係情報に含める請求項1乃至7のいずれかに記載の浮動小数点表現プログラムの固定小数点表現化支援装置。   The attribute relation information generating means includes information representing a relation between a constant attribute value in the floating-point expression program and an attribute value of another number element among the extracted number elements in the attribute value relation information. Item 8. A fixed-point expression support device for a floating-point expression program according to any one of Items 1 to 7. 浮動小数点表現の数要素を用いた演算処理を記述する浮動小数点表現プログラムを固定小数点表現の数要素を用いた演算処理を記述する固定小数点表現プログラムに変える際のユーザ支援処理をコンピュータシステムに実行させる支援プログラムであって、
前記コンピュータに、
前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている数要素を抽出する数要素抽出ステップと、
前記抽出された数要素を表す数要素情報を数要素格納手段に格納するステップと、
前記浮動小数点表現プログラムの記述を解析して、当該浮動小数点表現プログラムにて使用されている各数要素の他の一または複数の数要素との関係を抽出する関係抽出ステップと、
前記抽出された関係を表す関係情報を関係格納手段に格納するステップと、
数要素の固定小数点表現に必要な各属性項目についての前記数要素情報にて表される各数要素の属性値の他の数要素の属性値との関係を表す属性値関係情報を、前記関係情報にて表される前記各数要素の他の一または複数の数要素との関係に基づいて生成する属性値関係生成ステップと、
前記属性値関係情報に基づいて前記各数要素の各属性項目ついての属性値を設定するためのユーザインタフェースを提供するステップとを実行させる支援プログラム。
Causes a computer system to execute user-supported processing when changing a floating-point representation program describing arithmetic processing using a number element of floating-point representation into a fixed-point representation program describing arithmetic processing using a number element of fixed-point representation A support program,
In the computer,
Analyzing the description of the floating-point expression program and extracting a number element used in the floating-point expression program; and
Storing number element information representing the extracted number elements in a number element storage means;
Analyzing the description of the floating-point expression program, and extracting a relationship with one or more other numerical elements of each numerical element used in the floating-point expression program;
Storing relationship information representing the extracted relationship in a relationship storage means;
Attribute value relationship information representing a relationship between an attribute value of each number element represented by the number element information for each attribute item necessary for fixed-point representation of the number element and an attribute value of another number element. An attribute value relationship generating step for generating based on a relationship with one or more other numerical elements of each of the numerical elements represented by information;
Providing a user interface for setting an attribute value for each attribute item of each of the number elements based on the attribute value relation information.
前記ユーザインタフェースを提供するステップは、前記属性値関係情報に基づいて、前記各属性項目についての前記各数要素の属性値の他の数要素の属性値との関係を表示部に表示させる請求項9記載の支援プログラム。   The step of providing the user interface causes a display unit to display a relationship between an attribute value of each numerical element and an attribute value of another numerical element for each attribute item based on the attribute value relationship information. 9. Support program according to 9.
JP2010054325A 2010-03-11 2010-03-11 Device for supporting conversion of floating point representation program to fixed point representation and support program thereof Pending JP2011186999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010054325A JP2011186999A (en) 2010-03-11 2010-03-11 Device for supporting conversion of floating point representation program to fixed point representation and support program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010054325A JP2011186999A (en) 2010-03-11 2010-03-11 Device for supporting conversion of floating point representation program to fixed point representation and support program thereof

Publications (1)

Publication Number Publication Date
JP2011186999A true JP2011186999A (en) 2011-09-22

Family

ID=44793148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010054325A Pending JP2011186999A (en) 2010-03-11 2010-03-11 Device for supporting conversion of floating point representation program to fixed point representation and support program thereof

Country Status (1)

Country Link
JP (1) JP2011186999A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015007820A (en) * 2013-06-24 2015-01-15 キヤノン株式会社 Information processing apparatus, information processing method, and program
JP6599053B1 (en) * 2018-12-27 2019-10-30 三菱電機株式会社 Information processing apparatus, information processing method, and information processing program
CN114556242A (en) * 2019-10-03 2022-05-27 欧姆龙株式会社 Program development device and program for realizing the same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015007820A (en) * 2013-06-24 2015-01-15 キヤノン株式会社 Information processing apparatus, information processing method, and program
JP6599053B1 (en) * 2018-12-27 2019-10-30 三菱電機株式会社 Information processing apparatus, information processing method, and information processing program
WO2020136793A1 (en) * 2018-12-27 2020-07-02 三菱電機株式会社 Information processing device, information processing method, and information processing program
CN114556242A (en) * 2019-10-03 2022-05-27 欧姆龙株式会社 Program development device and program for realizing the same

Similar Documents

Publication Publication Date Title
De Dinechin et al. Certifying the floating-point implementation of an elementary function using Gappa
US10318290B2 (en) Merged floating point operation using a modebit
KR20190090817A (en) Apparatus and method for performing arithmetic operations to accumulate floating point numbers
JP5910108B2 (en) High-level synthesis apparatus, high-level synthesis method, high-level synthesis program, integrated circuit design method
US20200225921A1 (en) Lookup table optimization for programming languages that target synchronous digital circuits
US20100185836A1 (en) Arithmetic program conversion apparatus, arithmetic program conversion method, and program
US10423733B1 (en) Systems and methods for sharing resources having different data types
US20090300560A1 (en) Method and system for formal verification of an electronic circuit design
JP2009181446A (en) Program generating device and block diagram generating apparatus
Letellier et al. Difference equations versus differential equations, a possible equivalence for the Rössler system?
KR101639972B1 (en) Plc system and arithmetic expression data creation assistance device
Daly et al. Synthesizing Instruction Selection Rewrite Rules from RTL using SMT.
JP2011186999A (en) Device for supporting conversion of floating point representation program to fixed point representation and support program thereof
CN103218201B (en) Digital signal processor and treatment process
JP2014021573A (en) Method for optimizing netlist used in logic circuit design for semiconductor integrated circuit; device for assisting in logic circuit design using the same method; and computer program that can be executed on the same
Jerez et al. A low complexity scaling method for the lanczos kernel in fixed-point arithmetic
US8805651B1 (en) Properties, instrumentation and automatic scaling for signals in a modeling environment
KR20220017993A (en) Recovering behavior designs from flat netlists
KR102228995B1 (en) Model calculation unit and control unit for calculation of databased function-model with data in various number formats
Luckow et al. Symbolic pathfinder v7
US10666255B1 (en) System and method for compacting X-pessimism fixes for gate-level logic simulation
JP2005222221A (en) Integrated controller development tool, integrated controller and integrated controller development process
Dyer et al. Bounded verification of sparse matrix computations
Seidel Formal verification of an iterative low-power x86 floating-point multiplier with redundant feedback
JP6519530B2 (en) Verification apparatus, verification program, and verification method