This document gives examples for the NX testcase template using argparser feature.
This template is used in TrainingPackage testcases.
Management examples:
nxpython nxmap_script.py -h : get help nxpython nxmap_script.py -i : get info about default values and allowed values nxpython nxmap_script.py -c : clean directory removing all generated directories and files
Test launch examples :
nxpython nxmap_script.py --variant NG-LARGE : Launch the script for NG-LARGE variant nxpython nxmap_script.py --variant NG-LARGE --argument USE_DSP : Launch the script for NG-LARGE variant with argument "USE_DSP" which is used in sub_scripts nxpython nxmap_script.py --variant NG-LARGE --progress synthesized : Launch the script for NG-LARGE variant reloading synthesized project from previous run with same variant and same argument nxpython nxmap_script.py --variant NG-LARGE --suffix try_1 : Launch the script for NG-LARGE variant adding a suffix in the project name. Useful in case of multiple tries changing scripts nxpython nxmap_script.py --variant NG-LARGE --topcellname switch_counter --topcelllib work : Launch the script for NG-LARGE variant for a different top cell than the default one. Useful in case of unitary run before top run nxpython nxmap_script.py --variant NG-LARGE --timingdriven Yes : Launch the script for NG-LARGE variant with TimingDriven enablednxpython nxpython nxmap_script.py --variant NG-LARGE --seed 3557 : Launch the script for NG-LARGE variant with a different seednxpython nxpython nxmap_script.py --variant NG-LARGE --sta all --stacondition typical : Launch the script for NG-LARGE variant generating sta after Prepared and Routed steps in typical conditions nxpython nxmap_script.py --variant NG-LARGE --bitstream Yes : Launch the script for NG-LARGE variant generating a bitstream at the endnxpython nxmap_script.py --variant NG-LARGE --option RoutingEffort.Low_MappingEffort.Medium : Launch the script for NG-LARGE variant with nxmap options RoutingEffort set to Low and MappingEffort set to Medium