In automatic code generation processing, by function block unit which composes an arithmetic model, an original source code is generated based on an arithmetic model (S315), also a converted source code is generated by using a variable of which data format is converted according to a conversion rule (S320 and S325), and between them, a source code with smaller consumption of hardware resources is selected. 自動コード生成処理では、演算モデルを構成する関数ブロック単位で、該演算モデルに基づく原ソースコードと(S315)、変換ルールに従いデータ形式が変換された変数が用いられた変換ソースコードとが生成され(S320,S325)、これらのうち、ハードウェアリソースの消費量がより小さいソースコードが選択される。 - 特許庁