def _create_common_script(self, config, output_path): """ Create tcl script with functions common to interactive and batch modes """ tcl = "" tcl += get_is_test_suite_done_tcl(get_result_file_name(output_path)) tcl += self._create_load_function(config) tcl += self._create_run_function() return tcl
def _create_common_script(self, config, output_path): """ Create tcl script with functions common to interactive and batch modes """ tcl = "" tcl += get_is_test_suite_done_tcl(get_result_file_name(output_path)) tcl += self._create_load_function(config, output_path) tcl += self._create_run_function() return tcl
def _create_common_script(self, test_suite_name, config, script_path, output_path): """ Create tcl script with functions common to interactive and batch modes """ tcl = """ proc vunit_help {} { puts {List of VUnit commands:} puts {vunit_help} puts { - Prints this help} puts {vunit_load [vsim_extra_args]} puts { - Load design with correct generics for the test} puts { - Optional first argument are passed as extra flags to vsim} puts {vunit_user_init} puts { - Re-runs the user defined init file} puts {vunit_run} puts { - Run test, must do vunit_load first} puts {vunit_compile} puts { - Recompiles the source files} puts {vunit_restart} puts { - Recompiles the source files} puts { - and re-runs the simulation if the compile was successful} } proc vunit_run {} { if {[catch {_vunit_run} failed_or_err]} { echo $failed_or_err return true; } if {![is_test_suite_done]} { echo echo "Test Run Failed!" echo _vunit_run_failure; return true; } return false; } """ tcl += self._create_init_files_after_load(config) tcl += self._create_load_function(test_suite_name, config, script_path) tcl += get_is_test_suite_done_tcl(get_result_file_name(output_path)) tcl += self._create_run_function() tcl += self._create_restart_function() return tcl