22 set tcl_path [
file normalize "[
file dirname [
info script]]"]
23 source $tcl_path/hog.tcl
24 source $tcl_path/create_project.tcl
25 source $tcl_path/commands.tcl
28 set globalSettings::vitis_unified 0
29 set globalSettings::vitis_classic 0
33 if {[
info commands platform] ne ""} {
34 set globalSettings::vitis_classic 1
35 set globalSettings::vitis_unified 0
42 set argv $quartus(args)
48 set commands_path [
file normalize "$tcl_path/../../hog-commands/"]
51 lassign [
InitLauncher $::argv0 $tcl_path $parameters $default_commands $argv $custom_commands] directive project \
52 project_name group_name repo_path old_path bin_dir top_path usage short_usage cmd ide list_of_options
54 array set options $list_of_options
56 if {$options(verbose) == 1} {
60 "Returned by InitLauncher: \n - project: $project \n - project_name $project_name \n - group_name $group_name \n - \
61 repo_path $repo_path \n - old_path $old_path \n - bin_dir $bin_dir \n - top_path $top_path \n - cmd $cmd"
64 if {$options(ext_path) ne ""} {
65 set ext_path $options(ext_path)
68 if {$options(lib) ne ""} {
69 set lib_path [
file normalize $options(lib)]
71 if {[
info exists env(HOG_SIMULATION_LIB_PATH)]} {
72 set lib_path $env(HOG_SIMULATION_LIB_PATH)
74 if {[
file exists "$repo_path/SimulationLib"]} {
75 set lib_path [
file normalize "$repo_path/SimulationLib"]
83 if {$options(verbose) == 1} {
86 set env(HOG_DEBUG_MODE) "1"
92 if {$options(output) ne ""} {
93 set output_path $options(output)
96 set light_hierarchy $options(light)
97 set ignored_hierarchy $options(ignore)
98 set top_module $options(top)
99 set compile_order $options(compile_order)
100 set include_ieee $options(include_ieee)
101 set include_gen_prods $options(include_gen_prods)
105 set do_checkproj_env 0
106 set do_check_ci_env 0
107 set do_checkproj_ver 0
108 set do_implementation 0
118 set do_check_syntax 0
123 set allow_empty_proj 0
130 set do_list_file_parse 0
131 set do_check_yaml_ref 0
133 set do_check_list_files 0
136 set do_sigasi_export 0
set do_sigasi_lint 0
set do_sigasi_docs 0
set do_sigasi_format 0
142 set NO_DIRECTIVE_FOUND 0
143 Msg Debug "Looking for a $directive in : $default_commands"
144 switch -regexp -- $directive $default_commands
146 if {$NO_DIRECTIVE_FOUND == 1} {
147 Msg Debug "No directive found in default commands, looking in custom commands..."
148 if {[
string length $custom_commands] > 0 && [dict exists $custom_commands $directive]} {
149 Msg Debug "Directive $directive found in custom commands."
150 if {$cmd == "custom_tcl"} {
151 eval [dict get $custom_commands $directive SCRIPT]
155 Msg Info "Launching command: $cmd..."
158 set ret [
catch {
exec which $ide}]
160 Msg Error "$ide not found in your system. Make sure to add $ide to your PATH enviromental variable."
164 if {[
string first libero $cmd] >= 0} {
167 set libero_script [open "launch-libero-hog.sh" w]
168 puts $libero_script "#!/bin/sh"
169 puts $libero_script $cmd
171 set cmd "sh launch-libero-hog.sh"
174 set ret [
catch {
exec -ignorestderr {*}$cmd >@ stdout 2>@ stderr} result]
177 Msg Error "IDE returned an error state: $result"
183 if {[
string first libero $cmd] >= 0} {
184 file delete "launch-libero-hog.sh"
190 eval [dict get $custom_commands $directive SCRIPT]
192 set no_exit [dict get $custom_commands $directive NO_EXIT]
198 Msg Info "No directive found, pre ide exiting..."
199 Msg Status "ERROR: Unknown directive $directive.\n\n"
205 if {$options(all) == 1} {
212 if {$options(ci_run) == 1} {
216 if {$options(dst_dir) == "" && ($do_ipbus_xml == 1 || $do_cheby == 1 || $do_check_list_files == 1) && $project != ""} {
218 set proj_dir [
file normalize $repo_path/Top/$group_name/$project]
219 lassign [
GetRepoVersions $proj_dir $repo_path $ext_path] commit version \
220 hog_hash hog_ver top_hash top_ver libs hashes vers cons_ver cons_hash ext_names ext_hashes xml_hash xml_ver \
221 user_ip_repos user_ip_hashes user_ip_vers cheby_hash cheby_ver
225 set dst_dir [
file normalize "$repo_path/bin/$group_name/$project\-$describe"]
230 Msg Status "\n\nPossible projects are:"
234 }
elseif {$cmd == -2} {
236 Msg Status "ERROR: You must specify a project with directive $directive."
238 Msg Status "Possible projects are:"
241 }
elseif {$cmd == 0} {
243 Msg Info "$::argv0 was launched from the IDE."
250 if {$do_checkproj_env == 1} {
255 if {$do_checkproj_ver == 1} {
260 if {[
info exists env(GITLAB_CI)] && $env(GITLAB_CI) eq "true" && [
auto_execok glab] != ""} {
262 Msg Info "Running in the GitLab CI/CD. I will check only the active projects in the current pipeline..."
265 if {[
info exists env(CI_SERVER_HOST)]} {
266 set env(GITLAB_HOST) $env(CI_SERVER_HOST)
268 if {[
info exists env(CI_PROJECT_PATH)]} {
269 lassign [
ExecuteRet glab ci get -p $env(CI_PIPELINE_ID)] ret ci_config
271 lassign [
ExecuteRet glab ci get] ret ci_config
274 Msg Warning "Failed to get CI config from GitLab, checking all projects instead."
279 if {[
info exists env(CI_CONFIG_PATH)]} {
280 set ci_config_path $env(CI_CONFIG_PATH)
282 set ci_config_path $repo_path/.gitlab-ci.yml
285 if {[
file exists $ci_config_path]} {
286 set fh [open $ci_config_path r]
287 set content [read $fh]
289 if {[
string first "hog-dynamic.yml" $content] != -1} {
293 Msg Warning "CI config file $ci_config_path not found, checking all projects instead."
296 }
elseif {[
info exists env(GITHUB_ACTIONS)] && $env(GITHUB_ACTIONS) eq "true"} {
298 set workflow_dir "$repo_path/.github/workflows"
300 foreach workflow_file [glob -nocomplain -directory $workflow_dir -- *.yml *.yaml] {
301 set fh [open $workflow_file r]
302 set content [read $fh]
304 if {[
string first "Hog-pull.yml" $content] != -1} {
305 set ci_config $content
316 if {$project_name eq ""} {
318 foreach p $projects {
319 if {$ci_run == 0 || ($ci_run == 1 && [
string first $p $ci_config] != -1)} {
320 if {[
CheckProjVer $repo_path $p $options(simcheck) $options(ext_path)] == 0} {
321 lappend proj_to_do $p
326 if {[
CheckProjVer $repo_path $project_name $options(simcheck) $options(ext_path)] == 0} {
327 lappend proj_to_do $project_name
331 set n [
llength $proj_to_do]
333 Msg Info "The following projects were modified: \n[
join $proj_to_do \n]"
336 Msg Info "$n projects were modified since last official version."
340 if {$do_check_ci_env == 1} {
346 if {$do_ipbus_xml == 1} {
347 if {[
llength $project_name] == 0} {
348 Msg Error "XML option needs a project name."
351 Msg Info "Handling IPbus XMLs for $project_name..."
353 set proj_dir $repo_path/Top/$project_name
355 if {$options(generate) == 1} {
361 if {$options(dst_dir) != ""} {
362 set dst_dir $options(dst_dir)
364 if {![
info exists dst_dir]} {
368 set xml_dst "$dst_dir/xml"
371 if {[
llength [glob -nocomplain $proj_dir/list/*.ipb]] > 0} {
372 if {![
file exists $xml_dst]} {
373 Msg Info "$xml_dst directory not found, creating it..."
377 Msg Error "No .ipb files found in $proj_dir/list/"
382 set sha [
lindex $ret 13]
383 set hex_ver [
lindex $ret 14]
386 CopyIPbusXMLs $proj_dir $repo_path $xml_dst $ver $sha 1 $xml_gen
391 if {$do_cheby == 1} {
392 Msg Info "Handling Cheby register-map outputs for $project_name..."
394 set proj_dir $repo_path/Top/$project_name
396 if {$options(generate) == 1} {
402 if {$options(dst_dir) != ""} {
403 set dst_dir $options(dst_dir)
405 set cheby_dst "$dst_dir/cheby"
407 if {[
llength [glob -nocomplain $proj_dir/list/*.chb]] > 0} {
408 if {![
file exists $cheby_dst]} {
409 Msg Info "$cheby_dst directory not found, creating it..."
410 file mkdir $cheby_dst
413 Msg Error "No .chb files found in $proj_dir/list/"
417 set cheby_tool $options(tool)
418 if {$cheby_tool eq ""} {
419 if {[
info exists env(HOG_CHEBY_TOOL)]} {
420 set cheby_tool $env(HOG_CHEBY_TOOL)
422 set cheby_tool "cheby"
426 set cheby_profile $options(profile)
427 if {$cheby_profile eq ""} {
428 set cheby_profile "all"
432 set sha [
lindex $ret 18]
433 set hex_ver [
lindex $ret 19]
437 $ver $sha $cheby_gen $cheby_profile $cheby_tool \
438 $options(strict) $options(verbose)]
441 Msg CriticalWarning "Cheby step finished with $n_errors error(s)."
447 if {$do_list_file_parse == 1} {
448 set proj_dir $repo_path/Top/$project_name
449 set proj_list_dir $repo_path/Top/$project_name/list
450 GetHogFiles -print_log -list_files {.src,.con,.sim,.ext,.ipb,.chb} $proj_list_dir $repo_path
456 if {$do_hierarchy == 1} {
457 source $tcl_path/utils/hierarchy.tcl
458 set proj_dir $repo_path/Top/$project_name
459 set proj_list_dir $repo_path/Top/$project_name/list
460 lassign [
GetHogFiles -ext_path $ext_path -list_files ".src,.ext" $proj_list_dir $repo_path] listLibraries \
461 listProperties listSrcSets
462 set hierarchy_result \
463 [
Hierarchy $listProperties $listLibraries $repo_path $output_path $compile_order $light_hierarchy $top_module \
464 $ignored_hierarchy $include_ieee $include_gen_prods]
465 puts $hierarchy_result
468 if {$do_sigasi == 1} {
469 source $tcl_path/utils/sigasi_cli.tcl
470 if {$do_sigasi_export == 1} {
474 if {$do_sigasi_lint == 1} {
478 if {$do_sigasi_format == 1} {
482 if {$do_sigasi_docs == 1} {
487 if {$do_vhdl_ls == 1} {
489 Msg Info "Creating VHDL-LS configuration file for project $project_name..."
490 set proj_dir $repo_path/Top/$project_name
491 set proj_list_dir $repo_path/Top/$project_name/list
492 set project [
file tail $project_name]
493 lassign [
GetHogFiles -list_files {.src} $proj_list_dir $repo_path] libraries
494 set toml_file [open "vhdl_ls_$project.toml" w]
495 puts $toml_file "\[libraries\]"
496 dict for {lib source_files} $libraries {
497 puts $toml_file "[file rootname $lib].files = \["
498 foreach source_file $source_files {
500 [file extension $source_file] == ".vhd"
501 || [file extension $source_file] == ".vhdl"
503 # puts [Relative $repo_path $source_file ]
504 puts $toml_file "\'[Relative $repo_path $source_file]\',"
507 puts $toml_file "\]\n"
510 Msg Info "VHDL-LS TOML File created: vhdl_ls_$project.toml"
512 "You can copy the content of this file into your VHDL-LS configuration vhdl_ls.toml, to import all Hog libraries."
516 if {$do_cocotb == 1} {
517 source $tcl_path/utils/cocotb.tcl
518 source $tcl_path/utils/hierarchy.tcl
523 if {$do_check_yaml_ref == 1} {
524 Msg Info "Checking if \"ref\" in .gitlab-ci.yml actually matches the included yml file in Hog submodule"
529 if {$do_buttons == 1} {
530 Msg Info "Adding Hog buttons to Vivado bar (will use the vivado currently in PATH)..."
532 set cmd "vivado -nojournal -nolog -mode batch -notrace -source $repo_path/Hog/Tcl/utils/add_hog_custom_button.tcl"
535 if {$do_compile_lib == 1} {
536 if {$project eq ""} {
537 Msg Error "You need to specify a simulator as first argument."
540 set simulator $project
541 Msg Info "Selecting $simulator simulator..."
543 if {$options(dst_dir) != ""} {
544 set output_dir $options(dst_dir)
546 Msg Info "No destination directory defined. Using default: SimulationLib/"
547 set output_dir "SimulationLib"
552 "vivado -nojournal -nolog -mode batch -notrace -source $repo_path/Hog/Tcl/utils/compile_simlib.tcl -tclargs -simulator $simulator \
553 -output_dir $output_dir"
557 if {$do_simulation == 1} {
559 set hdl_simsets_pre [list]
560 if {$options(simset) ne ""} {
561 foreach s $options(simset) {
562 if {![regexp {^(csim|cosim):} $s]} {
563 lappend hdl_simsets_pre $s
569 set ghdl_simsets [
GetSimSets $project_name $repo_path "$hdl_simsets_pre" 1]
571 dict for {simset_name simset_dict} $ghdl_simsets {
572 if {$ghdl_import == 0} {
573 ImportGHDL $project_name $repo_path $simset_name $simset_dict $ext_path
576 LaunchGHDL $project_name $repo_path $simset_name $simset_dict $ext_path
578 set ide_simsets [
GetSimSets $project_name $repo_path $hdl_simsets_pre 0 1]
580 if {[dict size $ide_simsets] == 0} {
582 set has_hls [
expr {$options(simset) eq ""}]
584 foreach s $options(simset) {
585 if {[regexp {^(csim|cosim):} $s]} {
592 Msg Info "All simulations have been run, exiting..."
598 if {$do_version == 1} {
600 set proj_dir $repo_path/Top/$project_name
602 if {$options(describe) == 1} {
617 Msg Info "Launching command: $cmd..."
620 set ret [
catch {
exec which $ide}]
622 if {[
string match "*vitis_unified*" $ide_name]} {
624 "This is a '$ide_name' project: make sure to add both Vivado and Vitis to your PATH environment variable."
626 Msg Error "$ide not found in your system. Make sure to add $ide to your PATH environment variable."
631 if {[
string first libero $cmd] >= 0} {
634 set libero_script [open "launch-libero-hog.sh" w]
635 puts $libero_script "#!/bin/sh"
636 puts $libero_script $cmd
638 set cmd "sh launch-libero-hog.sh"
641 set ret [
catch {
exec -ignorestderr {*}$cmd >@ stdout 2>@ stderr} result]
644 Msg Error "IDE returned an error state: $result"
650 if {[
string first libero $cmd] >= 0} {
651 file delete "launch-libero-hog.sh"
662 if {[
info exists env(HOG_TCLLIB_PATH)]} {
663 lappend auto_path $env(HOG_TCLLIB_PATH)
666 "ERROR: To run Hog with Microsemi Libero SoC or Lattice Diamond, you need to define the HOG_TCLLIB_PATH variable."
671 if {[
catch {
package require cmdline} ERROR] || [
catch {
package require struct::matrix} ERROR]} {
673 "$ERROR\n Tcllib not found. If you are running this script on tclsh for debuggin purpose ONLY, you can fix this by \
678 set run_folder [
file normalize "$repo_path/Projects/$project_name/$project.runs/"]
680 set run_folder [
file normalize "$repo_path/Projects/$project_name/"]
684 set project_path [
file normalize "$repo_path/Projects/$project_name/"]
687 if {$allow_empty_proj == 0 || $project_name ne ""} {
693 set ide_name [
lindex [regexp -all -inline {\S+} $ide_name_and_ver] 0]
697 [list vivado vivado_vitis_classic vivado_vitis_unified vitis_classic vitis_unified quartus planahead libero diamond \
699 if {$ide_name ni $supported_ides} {
700 if {$ide_name eq "vitis"} {
702 "The IDE set in hog.conf ('vitis') is not supported. Did you mean 'vitis_unified' or 'vitis_classic'? Supported \
703 IDEs: [
join $supported_ides {, }]"
705 Msg Error "The IDE set in hog.conf ('$ide_name') is not supported. Supported IDEs: [
join $supported_ides {, }]"
712 ([
string tolower $ide_name] eq "vivado_vitis_classic" || [
string tolower $ide_name] eq "vitis_classic")
713 && ($options(vivado_only) != 1)
715 set globalSettings::vitis_classic 1
716 set globalSettings::vitis_unified 0
718 ([
string tolower $ide_name] eq "vivado_vitis_unified" || [
string tolower $ide_name] eq "vitis_unified")
719 && ($options(vivado_only) != 1)
721 set globalSettings::vitis_classic 0
722 set globalSettings::vitis_unified 1
723 if {[
auto_execok vitis] eq ""} {
725 "Vitis Unified IDE is required for project $project_name but 'vitis' was not found in PATH. Please source Vitis \
729 set globalSettings::vitis_classic 0
730 set globalSettings::vitis_unified 0
734 if {$ide_name eq "vitis_unified" || $ide_name eq "vitis_classic"} {
735 set options(vitis_only) 1
738 set is_vitis_ide [
expr {$globalSettings::vitis_classic == 1 || $globalSettings::vitis_unified == 1}]
739 set is_build_step [
expr {$do_synthesis == 1 || $do_implementation == 1 || $do_compile == 1}]
740 if {$is_vitis_ide && $options(vitis_only) == 1 && $is_build_step} {
745 if {$options(no_bitstream) == 1} {
750 if {$options(recreate) == 1} {
754 if {$options(synth_only) == 1} {
755 set do_implementation 0
762 if {$options(impl_only) == 1} {
763 set do_implementation 1
770 if {$options(vitis_only) == 1 || $ide_name eq "vitis_classic" || $ide_name eq "vitis_unified"} {
771 set do_implementation 0
777 if {$options(bitstream_only) == 1} {
778 set do_bitstream_only 1
780 set do_implementation 0
785 set do_bitstream_only 0
788 if {$options(no_reset) == 1} {
792 if {$options(check_syntax) == 1} {
793 set do_check_syntax 1
796 if {$options(scripts_only) == 1} {
800 if {$options(compile_only) == 1} {
805 Msg Info "Number of jobs set to $options(njobs)."
811 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
813 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_unified/_ide/settings.json]
814 Msg Info "Setting project file for Vitis Unified project $project_name to $project_file"
815 }
elseif {$options(vitis_only) == 1 && ($ide_name eq "vitis_classic" || $ide_name eq "vivado_vitis_classic")} {
817 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_classic/.metadata/]
818 Msg Info "Setting project file for Vitis Classic project $project_name to $project_file"
821 set project_file [
file normalize $repo_path/Projects/$project_name/$project.ppr]
824 set project_file [
file normalize $repo_path/Projects/$project_name/$project.xpr]
827 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_classic/.metadata/]
828 Msg Info "Setting project file for Vitis Classic project $project_name to $project_file"
831 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_unified/_ide/settings.json]
832 Msg Info "Setting project file for Vitis Unified project $project_name to $project_file"
834 if {[
catch {
package require ::quartus::project} ERROR]} {
835 Msg Error "$ERROR\n Can not find package ::quartus::project"
839 Msg Info "Loaded package ::quartus::project"
842 set project_file "$project_path/$project.qpf"
844 set project_file [
file normalize $repo_path/Projects/$project_name/$project.prjx]
847 set project_file [
file normalize $repo_path/Projects/$project_name/$project.ldf]
849 Msg Error "Unknown IDE, can't set project file path."
853 if {[
file exists $project_file]} {
854 Msg Info "Found project file $project_file for $project_name."
859 set repo_norm [
file normalize $repo_path]
860 set rel [
string trimleft [
string range $project_file [
string length $repo_norm] end] "/"]
862 foreach start_dir [list [
file dirname [
info script]] [
pwd]] {
864 Msg Debug "FindRepoRoot([list $start_dir]) => [list $repo_candidate]"
865 if {$repo_candidate ne ""} {
866 set project_file_alt [
file join $repo_candidate $rel]
868 if {[
file exists $project_file_alt]} {
870 }
elseif {$options(vitis_only) == 1 && [
string match "*vitis_unified*" $rel]} {
871 set ide_dir [
file join $repo_candidate Projects $project_name vitis_unified _ide]
872 if {[
file exists $ide_dir]} {
876 if {$options(vitis_only) == 1 && [
string match "*vitis_unified*" $rel]} {
878 "Checking file [list $project_file_alt] exists=[
file exists $project_file_alt]; _ide dir [list $ide_dir] \
879 exists=[
file exists $ide_dir]"
881 Msg Debug "Checking [list $project_file_alt] exists=[
file exists $project_file_alt]"
884 set project_file $project_file_alt
885 set repo_path $repo_candidate
886 Msg Info "Found project file $project_file for $project_name."
893 Msg Info "Project file not found for $project_name."
897 if {$proj_found == 0 && $do_upgrade_ips == 1} {
898 Msg Error "Project $project_name not found. UPGRADE_IP requires an existing project."
900 }
elseif {($proj_found == 0 || $recreate == 1)} {
902 Msg Info "Creating (possibly replacing) the project $project_name..."
903 Msg Debug "launch.tcl: calling GetConfFiles with $repo_path/Top/$project_name"
904 lassign [
GetConfFiles $repo_path/Top/$project_name] conf sim pre post pre_rtl post_rtl
906 if {[
file exists $conf]} {
907 set globalSettings::vitis_only_pass $options(vitis_only)
908 if {$options(vivado_only) == 1} {
909 CreateProject -simlib_path $lib_path -xsa $options(xsa) -vivado_only $project_name $repo_path
910 }
elseif {$options(vitis_only) == 1} {
911 CreateProject -simlib_path $lib_path -xsa $options(xsa) -vitis_only $project_name $repo_path
913 CreateProject -simlib_path $lib_path -xsa $options(xsa) $project_name $repo_path
915 Msg Info "Done creating project $project_name."
916 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
917 set project_file [
file join $repo_path Projects $project_name vitis_unified _ide settings.json]
920 Msg Error "Project $project_name is incomplete: no hog.conf file found, please create one..."
922 }
elseif {$proj_found == 0} {
923 Msg Error "Project $project_name not found. Please create it first using the 'CREATE' or 'C' directive."
926 Msg Info "Opening existing project file $project_file..."
927 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
928 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_unified/]
929 Msg Info "Setting Vitis Unified workspace to $vitis_workspace"
931 file mkdir "$repo_path/Projects/$project_name/$project.gen/sources_1"
934 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_classic/]
935 Msg Info "Setting workspace to $vitis_workspace"
937 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_unified/]
938 Msg Info "Setting workspace to $vitis_workspace"
944 if {$do_upgrade_ips == 1} {
946 Msg Error "The UPGRADE_IP directive is only supported for Vivado projects."
955 if {$do_check_syntax == 1} {
956 if {$ide_name eq "vitis_unified" || $ide_name eq "vitis_classic"} {
957 Msg Info "Skipping syntax check for $project_name: pure Vitis project has no HDL syntax to check"
959 Msg Info "Checking syntax for project $project_name..."
966 lassign [
GetConfFiles $repo_path/Top/$project_name] conf sim pre post pre_rtl post_rtl
970 if {$do_vitis_build == 1} {
973 set conf_file_path [
file normalize "$repo_path/Top/$project_name/hog.conf"]
974 if {[
file exists $conf_file_path]} {
975 set proj_properties [
ReadConf $conf_file_path]
976 set hls_components [dict filter $proj_properties key {hls:*}]
977 if {[dict size $hls_components] > 0} {
978 Msg Info "Found [dict size $hls_components] HLS component(s), launching HLS build..."
982 set has_apps [
expr {[dict size [dict filter $proj_properties key {app:*}]] > 0}]
990 Msg Error "Vitis build is not supported for $ide_name (only Vitis Classic and Vitis Unified are supported)"
996 if {$do_synthesis == 1} {
997 LaunchSynthesis $do_reset $do_create $run_folder $project_name $repo_path $ext_path $options(njobs)
1000 if {$do_implementation == 1} {
1001 LaunchImplementation $do_reset $do_create $run_folder $project_name $repo_path $options(njobs) $do_bitstream
1004 if {$do_bitstream_only == 1 && [
IsXilinx]} {
1006 }
elseif {$do_bitstream_only == 1 && ![
IsXilinx]} {
1007 Msg Error "Bitstream only option is not supported for this IDE."
1010 if {$do_bitstream == 1 && ![
IsXilinx]} {
1014 if {$do_simulation == 1} {
1016 set hdl_simsets [list]
1017 set hls_simsets [list]
1018 if {$options(simset) ne ""} {
1019 foreach s $options(simset) {
1020 if {[regexp {^(csim|cosim):} $s]} {
1021 lappend hls_simsets $s
1023 lappend hdl_simsets $s
1027 set run_hdl [
expr {[llength $hdl_simsets] > 0 || $options(simset) eq ""}]
1028 set run_hls [
expr {[llength $hls_simsets] > 0 || $options(simset) eq ""}]
1032 set simsets [
GetSimSets $project_name $repo_path $hdl_simsets]
1033 if {[dict size $simsets] > 0} {
1034 LaunchSimulation $project_name $lib_path $simsets $repo_path $scripts_only $compile_only
1045 if {$do_check_list_files} {
1046 Msg Info "Running list file checker..."
1053 set argv0 check_list_files
1054 if {$ext_path ne ""} {
1055 set argv [list "-ext_path" "$ext_path" "-outDir" "$dst_dir" "-pedantic"]
1057 set argv [list "-outDir" "$dst_dir" "-pedantic"]
1060 source $tcl_path/utils/check_list_files.tcl
1065 Msg Info "All done."