摘要 |
PROBLEM TO BE SOLVED: To provide an arithmetic program conversion apparatus for obtaining a hardware model program from an arithmetic program such as an algorithm model program, an arithmetic program conversion method and a program. SOLUTION: An arithmetic program conversion apparatus 1 includes: a program storage section 12 for storing an arithmetic program written by a logical expression; an intermediate variable generation section 16 for generating an intermediate variable; expression conversion sections 17 and 18 for converting the logical expression into a plurality of binomials including a binomial for obtaining the intermediate variable and a binomial for obtaining the output variable from the intermediate variable; an expression update section 19 for updating the original logical expression stored in the program storage section 12 by the plurality of binomials; a bit width determination section 15 for determining bit widths of the output variable, input variable, and intermediate variable of the logical expression stored in the program storage section 12; and a bit width storage section 13 for storing the bit widths of the output variable, input variable, and intermediate variable. COPYRIGHT: (C)2010,JPO&INPIT |