Skip to content

Topology Input

bocchino edited this page Oct 6, 2021 · 2 revisions

This page describes the topology input read by FPL.

Input Format

FPL reads a table of connections in the following format:

  1. For the first connection, six non-blank lines specifying the elements of the connection. The lines contain the following:

    1. Line 1: The name of the instance from which the connection extends

    2. Line 2: The name of the port array from which the connection extends

    3. Line 3 The port number from which the connection extends

    4. Line 4: The name of the instance to which the connection goes

    5. Line 5: The name of the port array to which the connection goes

    6. Line 6: The port number to which the connection goes

  2. For each of the second and following connections, a blank line and then six lines in the format described in item 1.

Example

Here is an example:

A
out
0
B
in
0

A
out
1
C
in
0

There are two connections. In the FPP modeling language, you would write these connections as follows:

A.out[0] -> B.in[0]
A.out[1] -> C.in[0]

Here is what the output of fpl-write-eps looks like on this example:

Example Topology
Figure 1. An example of an FPL topology

Converting from F Prime XML

To generate an FPL topology from an F Prime XML topology, you can run the following tools:

  • fpl-extract-xml to extract a list of connections from the XML topology specification.

  • fpl-convert-xml to convert the list of connections to this format.

Converting from FPP

The FPP topology tools are still under development. When we develop these tools, we will provide the capability to convert FPP topologies to the FPL format.