×

PROGRAM GENERATING APPARATUS AND BLOCK DIAGRAM GENERATING APPARATUS

  • US 20090199157A1
  • Filed: 01/29/2009
  • Published: 08/06/2009
  • Est. Priority Date: 01/31/2008
  • Status: Active Grant
First Claim
Patent Images

1. A program generating apparatus comprising:

  • a block diagram storing unit configured to store a block diagram including an input block element, a calculation block element, an output block element, data lines indicating data flows between the input block element, the calculation block element and the output block element, and a branch point that branches at least one of the data lines;

    a block diagram dividing unit configured to divide the block diagram into an input side piece and one or more output side pieces at the branch point and connect a branch point block element to one end of each of data lines which have been connected to the branch point in the input side piece and the one or more output side pieces to generate a plurality of block diagram pieces each of which includes the input side piece or one of the one or more output side pieces;

    a program instruction generator configured to generate program instructions for performing processing on a respective one of the block diagram pieces;

    an execution sequence determining unit configured to determine an execution sequence of the generated program instructions so that the program instruction of the block diagram piece including the input side piece are executed before program instructions of the block diagram pieces including the one or more output side pieces;

    a structural information generator configured to generate structural information of a respective one of the block diagram pieces; and

    a program generator configured to arrange the generated program instructions according to the execution sequence, write structural information of each of the block diagram pieces into a comment line of each of the program instructions corresponding to each of the block diagram pieces and thereby generate a program,wherein the structural information generator generates structural information of each of the block diagram pieces so that a block element at an end of each of the plurality of block diagram pieces is assigned to a child node of a root node of a tree structure, the block element being one of the input block element, the calculation block element, the output block element and the branch point block element, and a block element to be processed immediately before a block element assigned to a parent node different from the root node is assigned to a child node of the parent node, the former block element and the latter block element each being one of the input block element, the calculation block element, the output block element and the branch point block element.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×