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
117 set do_check_syntax 0
122 set allow_empty_proj 0
128 set do_list_file_parse 0
129 set do_check_yaml_ref 0
131 set do_check_list_files 0
139 set NO_DIRECTIVE_FOUND 0
140 Msg Debug "Looking for a $directive in : $default_commands"
141 switch -regexp -- $directive $default_commands
143 if {$NO_DIRECTIVE_FOUND == 1} {
144 Msg Debug "No directive found in default commands, looking in custom commands..."
145 if {[
string length $custom_commands] > 0 && [dict exists $custom_commands $directive]} {
146 Msg Debug "Directive $directive found in custom commands."
147 if {$cmd == "custom_tcl"} {
148 eval [dict get $custom_commands $directive SCRIPT]
152 Msg Info "Launching command: $cmd..."
155 set ret [
catch {
exec which $ide}]
157 Msg Error "$ide not found in your system. Make sure to add $ide to your PATH enviromental variable."
161 if {[
string first libero $cmd] >= 0} {
164 set libero_script [open "launch-libero-hog.sh" w]
165 puts $libero_script "#!/bin/sh"
166 puts $libero_script $cmd
168 set cmd "sh launch-libero-hog.sh"
171 set ret [
catch {
exec -ignorestderr {*}$cmd >@ stdout 2>@ stderr} result]
174 Msg Error "IDE returned an error state."
180 if {[
string first libero $cmd] >= 0} {
181 file delete "launch-libero-hog.sh"
187 eval [dict get $custom_commands $directive SCRIPT]
189 set no_exit [dict get $custom_commands $directive NO_EXIT]
195 Msg Info "No directive found, pre ide exiting..."
196 Msg Status "ERROR: Unknown directive $directive.\n\n"
202 if {$options(all) == 1} {
209 if {$options(ci_run) == 1} {
213 if {$options(dst_dir) == "" && ($do_ipbus_xml == 1 || $do_check_list_files == 1) && $project != ""} {
215 lassign [
GetRepoVersions [
file normalize $repo_path/Top/$group_name/$project] $repo_path $ext_path] commit version \
216 hog_hash hog_ver top_hash top_ver libs hashes vers cons_ver cons_hash ext_names ext_hashes xml_hash xml_ver \
217 user_ip_repos user_ip_hashes user_ip_vers
220 set describe [
GetHogDescribe [
file normalize $repo_path/Top/$group_name/$project] $repo_path]
221 set dst_dir [
file normalize "$repo_path/bin/$group_name/$project\-$describe"]
226 Msg Status "\n\nPossible projects are:"
230 }
elseif {$cmd == -2} {
232 Msg Status "ERROR: You must specify a project with directive $directive."
234 Msg Status "Possible projects are:"
237 }
elseif {$cmd == 0} {
239 Msg Info "$::argv0 was launched from the IDE."
246 if {$do_checkproj_env == 1} {
251 if {$do_checkproj_ver == 1} {
256 if {[
info exists env(GITLAB_CI)] && $env(GITLAB_CI) eq "true" && [
auto_execok glab] != ""} {
258 Msg Info "Running in the GitLab CI/CD. I will check only the active projects in the current pipeline..."
261 if {[
info exists env(CI_SERVER_HOST)]} {
262 set env(GITLAB_HOST) $env(CI_SERVER_HOST)
264 if {[
info exists env(CI_PROJECT_PATH)]} {
265 lassign [
ExecuteRet glab ci get -p $env(CI_PIPELINE_ID)] ret ci_config
267 lassign [
ExecuteRet glab ci get] ret ci_config
270 Msg Warning "Failed to get CI config from GitLab, checking all projects instead."
275 if {[
info exists env(CI_CONFIG_PATH)]} {
276 set ci_config_path $env(CI_CONFIG_PATH)
278 set ci_config_path $repo_path/.gitlab-ci.yml
281 if {[
file exists $ci_config_path]} {
282 set fh [open $ci_config_path r]
283 set content [read $fh]
285 if {[
string first "hog-dynamic.yml" $content] != -1} {
289 Msg Warning "CI config file $ci_config_path not found, checking all projects instead."
292 }
elseif {[
info exists env(GITHUB_ACTIONS)] && $env(GITHUB_ACTIONS) eq "true"} {
294 set workflow_dir "$repo_path/.github/workflows"
296 foreach workflow_file [glob -nocomplain -directory $workflow_dir -- *.yml *.yaml] {
297 set fh [open $workflow_file r]
298 set content [read $fh]
300 if {[
string first "Hog-pull.yml" $content] != -1} {
301 set ci_config $content
312 if {$project_name eq ""} {
314 foreach p $projects {
315 if {$ci_run == 0 || ($ci_run == 1 && [
string first $p $ci_config] != -1)} {
316 if {[
CheckProjVer $repo_path $p $options(simcheck) $options(ext_path)] == 0} {
317 lappend proj_to_do $p
322 if {[
CheckProjVer $repo_path $project_name $options(simcheck) $options(ext_path)] == 0} {
323 lappend proj_to_do $project_name
327 set n [
llength $proj_to_do]
329 Msg Info "The following projects were modified: \n[
join $proj_to_do \n]"
332 Msg Info "$n projects were modified since last official version."
336 if {$do_check_ci_env == 1} {
342 if {$do_ipbus_xml == 1} {
343 if {[
llength $project_name] == 0} {
344 Msg Error "XML option needs a project name."
347 Msg Info "Handling IPbus XMLs for $project_name..."
349 set proj_dir $repo_path/Top/$project_name
351 if {$options(generate) == 1} {
357 if {$options(dst_dir) != ""} {
358 set dst_dir $options(dst_dir)
360 if {![
info exists dst_dir]} {
364 set xml_dst "$dst_dir/xml"
367 if {[
llength [glob -nocomplain $proj_dir/list/*.ipb]] > 0} {
368 if {![
file exists $xml_dst]} {
369 Msg Info "$xml_dst directory not found, creating it..."
373 Msg Error "No .ipb files found in $proj_dir/list/"
378 set sha [
lindex $ret 13]
379 set hex_ver [
lindex $ret 14]
382 CopyIPbusXMLs $proj_dir $repo_path $xml_dst $ver $sha 1 $xml_gen
387 if {$do_list_file_parse == 1} {
388 set proj_dir $repo_path/Top/$project_name
389 set proj_list_dir $repo_path/Top/$project_name/list
390 GetHogFiles -print_log -list_files {.src,.con,.sim,.ext,.ipb} $proj_list_dir $repo_path
396 if {$do_hierarchy == 1} {
397 source $tcl_path/utils/hierarchy.tcl
398 set proj_dir $repo_path/Top/$project_name
399 set proj_list_dir $repo_path/Top/$project_name/list
400 lassign [
GetHogFiles -ext_path $ext_path -list_files ".src,.ext" $proj_list_dir $repo_path] listLibraries \
401 listProperties listSrcSets
402 set hierarchy_result \
403 [
Hierarchy $listProperties $listLibraries $repo_path $output_path $compile_order $light_hierarchy $top_module \
404 $ignored_hierarchy $include_ieee $include_gen_prods]
405 puts $hierarchy_result
408 if {$do_sigasi == 1} {
410 Msg Info "Creating Sigasi CSV files for project $project_name..."
411 set proj_dir $repo_path/Top/$project_name
412 set proj_list_dir $repo_path/Top/$project_name/list
413 set project [
file tail $project_name]
414 lassign [
GetHogFiles -list_files {.src} $proj_list_dir $repo_path] libraries
415 set csv_file [open "sigasi_$project.csv" w]
416 foreach lib $libraries {
417 set source_files [
DictGet $libraries $lib]
418 foreach source_file $source_files {
420 [
file extension $source_file] eq ".vhd"
421 || [
file extension $source_file] eq ".vhdl"
422 || [
file extension $source_file] eq ".sv"
423 || [
file extension $source_file] eq ".v"
425 puts $csv_file [
concat [
file rootname $lib] "," $source_file]
429 lassign [
GetHogFiles -list_files ".sim" $proj_list_dir $repo_path] \
431 foreach lib $listSimLibraries {
432 set source_files [
DictGet $listSimLibraries $lib]
433 foreach source_file $source_files {
435 [
file extension $source_file] eq ".vhd"
436 || [
file extension $source_file] eq ".vhdl"
437 || [
file extension $source_file] eq ".sv"
438 || [
file extension $source_file] eq ".v"
440 puts $csv_file [
concat [
file rootname $lib] "," $source_file]
445 Msg Info "Sigasi CSV file created: sigasi_$project.csv"
446 Msg Info "You can use the python script provided by Sigasi to convert the generated csv file into a Sigasi project."
449 https://www.sigasi.com/knowledge/how_tos/generating-sigasi-project-vivado-project/#2-generate-the-sigasi-project-files-from-the-csv-file"
453 if {$do_vhdl_ls == 1} {
455 Msg Info "Creating VHDL-LS configuration file for project $project_name..."
456 set proj_dir $repo_path/Top/$project_name
457 set proj_list_dir $repo_path/Top/$project_name/list
458 set project [
file tail $project_name]
459 lassign [
GetHogFiles -list_files {.src} $proj_list_dir $repo_path] libraries
460 set toml_file [open "vhdl_ls_$project.toml" w]
461 puts $toml_file "\[libraries\]"
462 dict for {lib source_files} $libraries {
463 puts $toml_file "[file rootname $lib].files = \["
464 foreach source_file $source_files {
466 [file extension $source_file] == ".vhd"
467 || [file extension $source_file] == ".vhdl"
469 # puts [Relative $repo_path $source_file ]
470 puts $toml_file "\'[Relative $repo_path $source_file]\',"
473 puts $toml_file "\]\n"
476 Msg Info "VHDL-LS TOML File created: vhdl_ls_$project.toml"
478 "You can copy the content of this file into your VHDL-LS configuration vhdl_ls.toml, to import all Hog libraries."
482 if {$do_cocotb == 1} {
483 source $tcl_path/utils/cocotb.tcl
484 source $tcl_path/utils/hierarchy.tcl
489 if {$do_check_yaml_ref == 1} {
490 Msg Info "Checking if \"ref\" in .gitlab-ci.yml actually matches the included yml file in Hog submodule"
495 if {$do_buttons == 1} {
496 Msg Info "Adding Hog buttons to Vivado bar (will use the vivado currently in PATH)..."
498 set cmd "vivado -mode batch -notrace -source $repo_path/Hog/Tcl/utils/add_hog_custom_button.tcl"
501 if {$do_compile_lib == 1} {
502 if {$project eq ""} {
503 Msg Error "You need to specify a simulator as first argument."
506 set simulator $project
507 Msg Info "Selecting $simulator simulator..."
509 if {$options(dst_dir) != ""} {
510 set output_dir $options(dst_dir)
512 Msg Info "No destination directory defined. Using default: SimulationLib/"
513 set output_dir "SimulationLib"
518 "vivado -mode batch -notrace -source $repo_path/Hog/Tcl/utils/compile_simlib.tcl -tclargs -simulator $simulator \
519 -output_dir $output_dir"
523 if {$do_simulation == 1} {
525 set hdl_simsets_pre [list]
526 if {$options(simset) ne ""} {
527 foreach s $options(simset) {
528 if {![regexp {^(csim|cosim):} $s]} {
529 lappend hdl_simsets_pre $s
535 set ghdl_simsets [
GetSimSets $project_name $repo_path "$hdl_simsets_pre" 1]
537 dict for {simset_name simset_dict} $ghdl_simsets {
538 if {$ghdl_import == 0} {
539 ImportGHDL $project_name $repo_path $simset_name $simset_dict $ext_path
542 LaunchGHDL $project_name $repo_path $simset_name $simset_dict $ext_path
544 set ide_simsets [
GetSimSets $project_name $repo_path $hdl_simsets_pre 0 1]
546 if {[dict size $ide_simsets] == 0} {
548 set has_hls [
expr {$options(simset) eq ""}]
550 foreach s $options(simset) {
551 if {[regexp {^(csim|cosim):} $s]} {
558 Msg Info "All simulations have been run, exiting..."
564 if {$do_version == 1} {
566 set proj_dir $repo_path/Top/$project_name
568 if {$options(describe) == 1} {
583 Msg Info "Launching command: $cmd..."
586 set ret [
catch {
exec which $ide}]
588 if {[
string match "*vitis_unified*" $ide_name]} {
590 "This is a '$ide_name' project: make sure to add both Vivado and Vitis to your PATH environment variable."
592 Msg Error "$ide not found in your system. Make sure to add $ide to your PATH environment variable."
597 if {[
string first libero $cmd] >= 0} {
600 set libero_script [open "launch-libero-hog.sh" w]
601 puts $libero_script "#!/bin/sh"
602 puts $libero_script $cmd
604 set cmd "sh launch-libero-hog.sh"
607 set ret [
catch {
exec -ignorestderr {*}$cmd >@ stdout 2>@ stderr} result]
610 Msg Error "IDE returned an error state."
616 if {[
string first libero $cmd] >= 0} {
617 file delete "launch-libero-hog.sh"
628 if {[
info exists env(HOG_TCLLIB_PATH)]} {
629 lappend auto_path $env(HOG_TCLLIB_PATH)
632 "ERROR: To run Hog with Microsemi Libero SoC or Lattice Diamond, you need to define the HOG_TCLLIB_PATH variable."
637 if {[
catch {
package require cmdline} ERROR] || [
catch {
package require struct::matrix} ERROR]} {
639 "$ERROR\n Tcllib not found. If you are running this script on tclsh for debuggin purpose ONLY, you can fix this by \
644 set run_folder [
file normalize "$repo_path/Projects/$project_name/$project.runs/"]
646 set run_folder [
file normalize "$repo_path/Projects/$project_name/"]
650 set project_path [
file normalize "$repo_path/Projects/$project_name/"]
653 if {$allow_empty_proj == 0 || $project_name ne ""} {
659 set ide_name [
lindex [regexp -all -inline {\S+} $ide_name_and_ver] 0]
663 [list vivado vivado_vitis_classic vivado_vitis_unified vitis_classic vitis_unified quartus planahead libero diamond \
665 if {$ide_name ni $supported_ides} {
666 if {$ide_name eq "vitis"} {
668 "The IDE set in hog.conf ('vitis') is not supported. Did you mean 'vitis_unified' or 'vitis_classic'? Supported \
669 IDEs: [
join $supported_ides {, }]"
671 Msg Error "The IDE set in hog.conf ('$ide_name') is not supported. Supported IDEs: [
join $supported_ides {, }]"
678 ([
string tolower $ide_name] eq "vivado_vitis_classic" || [
string tolower $ide_name] eq "vitis_classic")
679 && ($options(vivado_only) != 1)
681 set globalSettings::vitis_classic 1
682 set globalSettings::vitis_unified 0
684 ([
string tolower $ide_name] eq "vivado_vitis_unified" || [
string tolower $ide_name] eq "vitis_unified")
685 && ($options(vivado_only) != 1)
687 set globalSettings::vitis_classic 0
688 set globalSettings::vitis_unified 1
689 if {[
auto_execok vitis] eq ""} {
691 "Vitis Unified IDE is required for project $project_name but 'vitis' was not found in PATH. Please source Vitis \
695 set globalSettings::vitis_classic 0
696 set globalSettings::vitis_unified 0
700 if {$ide_name eq "vitis_unified" || $ide_name eq "vitis_classic"} {
701 set options(vitis_only) 1
704 set is_vitis_ide [
expr {$globalSettings::vitis_classic == 1 || $globalSettings::vitis_unified == 1}]
705 set is_build_step [
expr {$do_synthesis == 1 || $do_implementation == 1 || $do_compile == 1}]
706 if {$is_vitis_ide && $options(vitis_only) == 1 && $is_build_step} {
711 if {$options(no_bitstream) == 1} {
716 if {$options(recreate) == 1} {
720 if {$options(synth_only) == 1} {
721 set do_implementation 0
728 if {$options(impl_only) == 1} {
729 set do_implementation 1
736 if {$options(vitis_only) == 1 || $ide_name eq "vitis_classic" || $ide_name eq "vitis_unified"} {
737 set do_implementation 0
743 if {$options(bitstream_only) == 1} {
744 set do_bitstream_only 1
746 set do_implementation 0
751 set do_bitstream_only 0
754 if {$options(no_reset) == 1} {
758 if {$options(check_syntax) == 1} {
759 set do_check_syntax 1
762 if {$options(scripts_only) == 1} {
766 if {$options(compile_only) == 1} {
771 Msg Info "Number of jobs set to $options(njobs)."
777 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
779 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_unified/_ide/settings.json]
780 Msg Info "Setting project file for Vitis Unified project $project_name to $project_file"
781 }
elseif {$options(vitis_only) == 1 && ($ide_name eq "vitis_classic" || $ide_name eq "vivado_vitis_classic")} {
783 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_classic/.metadata/]
784 Msg Info "Setting project file for Vitis Classic project $project_name to $project_file"
787 set project_file [
file normalize $repo_path/Projects/$project_name/$project.ppr]
790 set project_file [
file normalize $repo_path/Projects/$project_name/$project.xpr]
793 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_classic/.metadata/]
794 Msg Info "Setting project file for Vitis Classic project $project_name to $project_file"
797 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_unified/_ide/settings.json]
798 Msg Info "Setting project file for Vitis Unified project $project_name to $project_file"
800 if {[
catch {
package require ::quartus::project} ERROR]} {
801 Msg Error "$ERROR\n Can not find package ::quartus::project"
805 Msg Info "Loaded package ::quartus::project"
808 set project_file "$project_path/$project.qpf"
810 set project_file [
file normalize $repo_path/Projects/$project_name/$project.prjx]
813 set project_file [
file normalize $repo_path/Projects/$project_name/$project.ldf]
815 Msg Error "Unknown IDE, can't set project file path."
819 if {[
file exists $project_file]} {
820 Msg Info "Found project file $project_file for $project_name."
825 set repo_norm [
file normalize $repo_path]
826 set rel [
string trimleft [
string range $project_file [
string length $repo_norm] end] "/"]
828 foreach start_dir [list [
file dirname [
info script]] [
pwd]] {
830 Msg Debug "FindRepoRoot([list $start_dir]) => [list $repo_candidate]"
831 if {$repo_candidate ne ""} {
832 set project_file_alt [
file join $repo_candidate $rel]
834 if {[
file exists $project_file_alt]} {
836 }
elseif {$options(vitis_only) == 1 && [
string match "*vitis_unified*" $rel]} {
837 set ide_dir [
file join $repo_candidate Projects $project_name vitis_unified _ide]
838 if {[
file exists $ide_dir]} {
842 if {$options(vitis_only) == 1 && [
string match "*vitis_unified*" $rel]} {
844 "Checking file [list $project_file_alt] exists=[
file exists $project_file_alt]; _ide dir [list $ide_dir] \
845 exists=[
file exists $ide_dir]"
847 Msg Debug "Checking [list $project_file_alt] exists=[
file exists $project_file_alt]"
850 set project_file $project_file_alt
851 set repo_path $repo_candidate
852 Msg Info "Found project file $project_file for $project_name."
859 Msg Info "Project file not found for $project_name."
863 if {($proj_found == 0 || $recreate == 1)} {
865 Msg Info "Creating (possibly replacing) the project $project_name..."
866 Msg Debug "launch.tcl: calling GetConfFiles with $repo_path/Top/$project_name"
867 lassign [
GetConfFiles $repo_path/Top/$project_name] conf sim pre post pre_rtl post_rtl
869 if {[
file exists $conf]} {
870 set globalSettings::vitis_only_pass $options(vitis_only)
871 if {$options(vivado_only) == 1} {
872 CreateProject -simlib_path $lib_path -xsa $options(xsa) -vivado_only $project_name $repo_path
873 }
elseif {$options(vitis_only) == 1} {
874 CreateProject -simlib_path $lib_path -xsa $options(xsa) -vitis_only $project_name $repo_path
876 CreateProject -simlib_path $lib_path -xsa $options(xsa) $project_name $repo_path
878 Msg Info "Done creating project $project_name."
879 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
880 set project_file [
file join $repo_path Projects $project_name vitis_unified _ide settings.json]
883 Msg Error "Project $project_name is incomplete: no hog.conf file found, please create one..."
885 }
elseif {$proj_found == 0} {
886 Msg Error "Project $project_name not found. Please create it first using the 'CREATE' or 'C' directive."
889 Msg Info "Opening existing project file $project_file..."
890 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
891 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_unified/]
892 Msg Info "Setting Vitis Unified workspace to $vitis_workspace"
894 file mkdir "$repo_path/Projects/$project_name/$project.gen/sources_1"
897 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_classic/]
898 Msg Info "Setting workspace to $vitis_workspace"
900 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_unified/]
901 Msg Info "Setting workspace to $vitis_workspace"
909 if {$do_check_syntax == 1} {
910 if {$ide_name eq "vitis_unified" || $ide_name eq "vitis_classic"} {
911 Msg Info "Skipping syntax check for $project_name: pure Vitis project has no HDL syntax to check"
913 Msg Info "Checking syntax for project $project_name..."
920 lassign [
GetConfFiles $repo_path/Top/$project_name] conf sim pre post pre_rtl post_rtl
924 if {$do_vitis_build == 1} {
927 set conf_file_path [
file normalize "$repo_path/Top/$project_name/hog.conf"]
928 if {[
file exists $conf_file_path]} {
929 set proj_properties [
ReadConf $conf_file_path]
930 set hls_components [dict filter $proj_properties key {hls:*}]
931 if {[dict size $hls_components] > 0} {
932 Msg Info "Found [dict size $hls_components] HLS component(s), launching HLS build..."
936 set has_apps [
expr {[dict size [dict filter $proj_properties key {app:*}]] > 0}]
944 Msg Error "Vitis build is not supported for $ide_name (only Vitis Classic and Vitis Unified are supported)"
950 if {$do_synthesis == 1} {
951 LaunchSynthesis $do_reset $do_create $run_folder $project_name $repo_path $ext_path $options(njobs)
954 if {$do_implementation == 1} {
955 LaunchImplementation $do_reset $do_create $run_folder $project_name $repo_path $options(njobs) $do_bitstream
958 if {$do_bitstream_only == 1 && [
IsXilinx]} {
960 }
elseif {$do_bitstream_only == 1 && ![
IsXilinx]} {
961 Msg Error "Bitstream only option is not supported for this IDE."
964 if {$do_bitstream == 1 && ![
IsXilinx]} {
968 if {$do_simulation == 1} {
970 set hdl_simsets [list]
971 set hls_simsets [list]
972 if {$options(simset) ne ""} {
973 foreach s $options(simset) {
974 if {[regexp {^(csim|cosim):} $s]} {
975 lappend hls_simsets $s
977 lappend hdl_simsets $s
981 set run_hdl [
expr {[llength $hdl_simsets] > 0 || $options(simset) eq ""}]
982 set run_hls [
expr {[llength $hls_simsets] > 0 || $options(simset) eq ""}]
986 set simsets [
GetSimSets $project_name $repo_path $hdl_simsets]
987 if {[dict size $simsets] > 0} {
988 LaunchSimulation $project_name $lib_path $simsets $repo_path $scripts_only $compile_only
999 if {$do_check_list_files} {
1000 Msg Info "Running list file checker..."
1007 set argv0 check_list_files
1008 if {$ext_path ne ""} {
1009 set argv [list "-ext_path" "$ext_path" "-outDir" "$dst_dir" "-pedantic"]
1011 set argv [list "-outDir" "$dst_dir" "-pedantic"]
1014 source $tcl_path/utils/check_list_files.tcl
1019 Msg Info "All done."