Basic Design Flow Tutorial

The following steps show you to run the VTR design flow to map a sample circuit to an FPGA architecture containing embedded memories and multipliers:

  1. From the $VTR_ROOT, move to the vtr_flow/tasks directory, and run:

    ../scripts/ basic_flow

    This command will run the VTR flow on a single circuit and a single architecture. The files generated from the run are stored in basic_flow/run[#] where [#] is the number of runs you have done. If this is your first time running the flow, the results will be stored in basic_flow/run001. When the script completes, enter the following command:

    ../scripts/ basic_flow/

    This parses out the information of the VTR run and outputs the results in a text file called run[#]/parse_results.txt.

    More info on how to run the flow on multiple circuits and architectures along with different options later. Before that, we need to ensure that the run that you have done works.

  2. The basic_flow comes with golden results that you can use to check for correctness. To do this check, enter the following command:

    ../scripts/ -check_golden basic_flow

    It should return: basic_flow...[Pass]


    Due to the nature of the algorithms employed, the measurements that you get may not match exactly with the golden measurements. We included margins in our scripts to account for that noise during the check. We also included runtime estimates based on our machine. The actual runtimes that you get may differ dramatically from these values.

  3. To see precisely which circuits, architecture, and CAD flow was employed by the run, look at vtr_flow/tasks/basic_flow/config/config.txt. Inside this directory, the config.txt file contains the circuits and architecture file employed in the run.

    Some also contain a golden_results.txt file that is used by the scripts to check for correctness.

    The vtr_release/vtr_flow/scripts/ script describes the CAD flow employed in the test. You can modify the flow by editing this script.

    At this point, feel free to run any of the tasks pre-pended with “regression”. These are regression tests included with the flow that test various combinations of flows, architectures, and benchmarks.

  4. For more information on how the vtr_flow infrastructure works (and how to add the tests that you want to do to this infrastructure) see Tasks.