parse_vtr_task¶
This script is used to parse the output of one or more Tasks. The values that will be parsed are specified using a Parse Configuration file, which is specified in the task configuration.
The script will always parse the results of the latest execution of the task.
The script is located at:
$VTR_ROOT/vtr_flow/scripts/python_libs/vtr/parse_vtr_task.py
Usage¶
Typical usage is:
parse_vtr_task.py <task_name1> <task_name2> ...
Note
At least one task must be specified, either directly as a parameter or through the -l
option.
Output¶
By default this script produces no standard output. A tab delimited file containing the parse results will be produced for each task. The file will be located here:
$VTR_ROOT/vtr_flow/tasks/<task_name>/run<#>/parse_results.txt
If the -check_golden
is used, the script will output one line for each task in the format:
<task_name>...<status>
where <status>
will be [Pass]
, [Fail]
, or [Error]
.
Detailed Command-line Options¶
- -l <task_list_file>¶
A file containing a list of tasks to parse. Each task name should be on a separate line.
- -temp_dir <path>¶
Alternate directory containing task results to parse (see run_vtr_task).
Default:
config/..
for each task being parsedSpecifies the parent directory for the output of a set of tasks, which will contain
<task_name>/run<#>
directories, as well as any generated parse results.A task folder or list with a config directory must still be specified when invoking the script.
- -create_golden¶
The results will be stored as golden results. If previous golden results exist they will be overwritten.
The golden results are located here:
$VTR_ROOT/vtr_flow/tasks/<task_name>/config/golden_results.txt
- -check_golden¶
The results will be compared to the golden results using the Pass Requirements file specified in the task configuration. A
Pass
orFail
will be output for each task (see below). In order to compare against the golden results, they must already exist, and have the same architectures, circuits and parse fields, otherwise the script will reportError
.If the golden results are missing, or need to be updated, use the
-create_golden
option.