Skip to content

fpp to layout

Justine West edited this page Dec 3, 2024 · 7 revisions

This tool writes layout text files for connection graphs within F Prime topologies.

Options:

  1. -d dir: Set the output directory to dir. If this option is not present, then the output directory is the current directory.

  2. -i files: Import files. The definitions in these files are part of the FPP model, but they do not cause any code to be generated.

Input:

  1. A list fl_tr of files to translate: either the single file stdin or a list of files specified on the command line.

  2. A list fl_i of files to import, specified as arguments to the -i option.

Output:

  1. A set of .txt files, written to a topology layout directory (name format: <TopologyName>Layout) at the directory specified with the -d option (if present).

Procedure:

  1. Parse each of the files in fl_tr, generating a list tul_tr of translation units. When parsing, recursively resolve include specifiers.

  2. Do the same for fl_i, generating a list tul_i.

  3. Perform semantic checking on the concatenation of tul_fl and tul_i.

  4. Check that no two definitions in tul_tr will generate a directory with the same name. If so, halt with an error message.

  5. For each topology definition T in tul_tr:

    1. Check to see if a directory already exists for the topology. If a directory already exists, delete the directory and re-create it.

    2. Generate the layout text output (according to FPL Input Format) of each connection graph in the topology.

    3. Write layout text files to the topology directory.

Clone this wiki locally