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} 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 set ci_config [
exec glab ci config compile -R $env(CI_PROJECT_PATH)]
267 set ci_config [
exec glab ci config compile]
270 if {[
string first "hog-dynamic.yml" $ci_config] != -1} {
273 }
elseif {[
info exists env(GITHUB_ACTIONS)] && $env(GITHUB_ACTIONS) eq "true"} {
275 set workflow_dir "$repo_path/.github/workflows"
277 foreach workflow_file [glob -nocomplain -directory $workflow_dir -- *.yml *.yaml] {
278 set fh [open $workflow_file r]
279 set content [read $fh]
281 if {[
string first "Hog-pull.yml" $content] != -1} {
282 set ci_config $content
293 if {$project_name eq ""} {
295 foreach p $projects {
296 if {$ci_run == 0 || ($ci_run == 1 && [
string first $p $ci_config] != -1)} {
297 if {[
CheckProjVer $repo_path $p $options(simcheck) $options(ext_path)] == 0} {
298 lappend proj_to_do $p
303 if {[
CheckProjVer $repo_path $project_name $options(simcheck) $options(ext_path)] == 0} {
304 lappend proj_to_do $project_name
308 set n [
llength $proj_to_do]
310 Msg Info "The following projects were modified: \n[
join $proj_to_do \n]"
313 Msg Info "$n projects were modified since last official version."
317 if {$do_check_ci_env == 1} {
323 if {$do_ipbus_xml == 1} {
324 if {[
llength $project_name] == 0} {
325 Msg Error "XML option needs a project name."
328 Msg Info "Handling IPbus XMLs for $project_name..."
330 set proj_dir $repo_path/Top/$project_name
332 if {$options(generate) == 1} {
338 if {$options(dst_dir) != ""} {
339 set dst_dir $options(dst_dir)
341 if {![
info exists dst_dir]} {
345 set xml_dst "$dst_dir/xml"
348 if {[
llength [glob -nocomplain $proj_dir/list/*.ipb]] > 0} {
349 if {![
file exists $xml_dst]} {
350 Msg Info "$xml_dst directory not found, creating it..."
354 Msg Error "No .ipb files found in $proj_dir/list/"
359 set sha [
lindex $ret 13]
360 set hex_ver [
lindex $ret 14]
363 CopyIPbusXMLs $proj_dir $repo_path $xml_dst $ver $sha 1 $xml_gen
368 if {$do_list_file_parse == 1} {
369 set proj_dir $repo_path/Top/$project_name
370 set proj_list_dir $repo_path/Top/$project_name/list
371 GetHogFiles -print_log -list_files {.src,.con,.sim,.ext,.ipb} $proj_list_dir $repo_path
377 if {$do_hierarchy == 1} {
378 source $tcl_path/utils/hierarchy.tcl
379 set proj_dir $repo_path/Top/$project_name
380 set proj_list_dir $repo_path/Top/$project_name/list
381 lassign [
GetHogFiles -ext_path $ext_path -list_files ".src,.ext" $proj_list_dir $repo_path] listLibraries \
382 listProperties listSrcSets
383 set hierarchy_result \
384 [
Hierarchy $listProperties $listLibraries $repo_path $output_path $compile_order $light_hierarchy $top_module \
385 $ignored_hierarchy $include_ieee $include_gen_prods]
386 puts $hierarchy_result
389 if {$do_sigasi == 1} {
391 Msg Info "Creating Sigasi CSV files for project $project_name..."
392 set proj_dir $repo_path/Top/$project_name
393 set proj_list_dir $repo_path/Top/$project_name/list
394 set project [
file tail $project_name]
395 lassign [
GetHogFiles -list_files {.src} $proj_list_dir $repo_path] libraries
396 set csv_file [open "sigasi_$project.csv" w]
397 foreach lib $libraries {
398 set source_files [
DictGet $libraries $lib]
399 foreach source_file $source_files {
401 [
file extension $source_file] eq ".vhd"
402 || [
file extension $source_file] eq ".vhdl"
403 || [
file extension $source_file] eq ".sv"
404 || [
file extension $source_file] eq ".v"
406 puts $csv_file [
concat [
file rootname $lib] "," $source_file]
410 lassign [
GetHogFiles -list_files ".sim" $proj_list_dir $repo_path] \
412 foreach lib $listSimLibraries {
413 set source_files [
DictGet $listSimLibraries $lib]
414 foreach source_file $source_files {
416 [
file extension $source_file] eq ".vhd"
417 || [
file extension $source_file] eq ".vhdl"
418 || [
file extension $source_file] eq ".sv"
419 || [
file extension $source_file] eq ".v"
421 puts $csv_file [
concat [
file rootname $lib] "," $source_file]
426 Msg Info "Sigasi CSV file created: sigasi_$project.csv"
427 Msg Info "You can use the python script provided by Sigasi to convert the generated csv file into a Sigasi project."
430 https://www.sigasi.com/knowledge/how_tos/generating-sigasi-project-vivado-project/#2-generate-the-sigasi-project-files-from-the-csv-file"
434 if {$do_vhdl_ls == 1} {
436 Msg Info "Creating VHDL-LS configuration file for project $project_name..."
437 set proj_dir $repo_path/Top/$project_name
438 set proj_list_dir $repo_path/Top/$project_name/list
439 set project [
file tail $project_name]
440 lassign [
GetHogFiles -list_files {.src} $proj_list_dir $repo_path] libraries
441 set toml_file [open "vhdl_ls_$project.toml" w]
442 puts $toml_file "\[libraries\]"
443 dict for {lib source_files} $libraries {
444 puts $toml_file "[file rootname $lib].files = \["
445 foreach source_file $source_files {
447 [file extension $source_file] == ".vhd"
448 || [file extension $source_file] == ".vhdl"
450 # puts [Relative $repo_path $source_file ]
451 puts $toml_file "\'[Relative $repo_path $source_file]\',"
454 puts $toml_file "\]\n"
457 Msg Info "VHDL-LS TOML File created: vhdl_ls_$project.toml"
459 "You can copy the content of this file into your VHDL-LS configuration vhdl_ls.toml, to import all Hog libraries."
463 if {$do_cocotb == 1} {
464 source $tcl_path/utils/cocotb.tcl
465 source $tcl_path/utils/hierarchy.tcl
470 if {$do_check_yaml_ref == 1} {
471 Msg Info "Checking if \"ref\" in .gitlab-ci.yml actually matches the included yml file in Hog submodule"
476 if {$do_buttons == 1} {
477 Msg Info "Adding Hog buttons to Vivado bar (will use the vivado currently in PATH)..."
479 set cmd "vivado -mode batch -notrace -source $repo_path/Hog/Tcl/utils/add_hog_custom_button.tcl"
482 if {$do_compile_lib == 1} {
483 if {$project eq ""} {
484 Msg Error "You need to specify a simulator as first argument."
487 set simulator $project
488 Msg Info "Selecting $simulator simulator..."
490 if {$options(dst_dir) != ""} {
491 set output_dir $options(dst_dir)
493 Msg Info "No destination directory defined. Using default: SimulationLib/"
494 set output_dir "SimulationLib"
499 "vivado -mode batch -notrace -source $repo_path/Hog/Tcl/utils/compile_simlib.tcl -tclargs -simulator $simulator \
500 -output_dir $output_dir"
504 if {$do_simulation == 1} {
506 set hdl_simsets_pre [list]
507 if {$options(simset) ne ""} {
508 foreach s $options(simset) {
509 if {![regexp {^(csim|cosim):} $s]} {
510 lappend hdl_simsets_pre $s
516 set ghdl_simsets [
GetSimSets $project_name $repo_path "$hdl_simsets_pre" 1]
518 dict for {simset_name simset_dict} $ghdl_simsets {
519 if {$ghdl_import == 0} {
520 ImportGHDL $project_name $repo_path $simset_name $simset_dict $ext_path
523 LaunchGHDL $project_name $repo_path $simset_name $simset_dict $ext_path
525 set ide_simsets [
GetSimSets $project_name $repo_path $hdl_simsets_pre 0 1]
527 if {[dict size $ide_simsets] == 0} {
529 set has_hls [
expr {$options(simset) eq ""}]
531 foreach s $options(simset) {
532 if {[regexp {^(csim|cosim):} $s]} {
539 Msg Info "All simulations have been run, exiting..."
545 if {$do_version == 1} {
547 set proj_dir $repo_path/Top/$project_name
549 if {$options(describe) == 1} {
564 Msg Info "Launching command: $cmd..."
567 set ret [
catch {
exec which $ide}]
569 if {[
string match "*vitis_unified*" $ide_name]} {
571 "This is a '$ide_name' project: make sure to add both Vivado and Vitis to your PATH environment variable."
573 Msg Error "$ide not found in your system. Make sure to add $ide to your PATH environment variable."
578 if {[
string first libero $cmd] >= 0} {
581 set libero_script [open "launch-libero-hog.sh" w]
582 puts $libero_script "#!/bin/sh"
583 puts $libero_script $cmd
585 set cmd "sh launch-libero-hog.sh"
588 set ret [
catch {
exec -ignorestderr {*}$cmd >@ stdout} result]
591 Msg Error "IDE returned an error state."
597 if {[
string first libero $cmd] >= 0} {
598 file delete "launch-libero-hog.sh"
609 if {[
info exists env(HOG_TCLLIB_PATH)]} {
610 lappend auto_path $env(HOG_TCLLIB_PATH)
613 "ERROR: To run Hog with Microsemi Libero SoC or Lattice Diamond, you need to define the HOG_TCLLIB_PATH variable."
618 if {[
catch {
package require cmdline} ERROR] || [
catch {
package require struct::matrix} ERROR]} {
620 "$ERROR\n Tcllib not found. If you are running this script on tclsh for debuggin purpose ONLY, you can fix this by \
625 set run_folder [
file normalize "$repo_path/Projects/$project_name/$project.runs/"]
627 set run_folder [
file normalize "$repo_path/Projects/$project_name/"]
631 set project_path [
file normalize "$repo_path/Projects/$project_name/"]
634 if {$allow_empty_proj == 0 || $project_name ne ""} {
640 set ide_name [
lindex [regexp -all -inline {\S+} $ide_name_and_ver] 0]
644 [list vivado vivado_vitis_classic vivado_vitis_unified vitis_classic vitis_unified quartus planahead libero diamond \
646 if {$ide_name ni $supported_ides} {
647 if {$ide_name eq "vitis"} {
649 "The IDE set in hog.conf ('vitis') is not supported. Did you mean 'vitis_unified' or 'vitis_classic'? Supported \
650 IDEs: [
join $supported_ides {, }]"
652 Msg Error "The IDE set in hog.conf ('$ide_name') is not supported. Supported IDEs: [
join $supported_ides {, }]"
659 ([
string tolower $ide_name] eq "vivado_vitis_classic" || [
string tolower $ide_name] eq "vitis_classic")
660 && ($options(vivado_only) != 1)
662 set globalSettings::vitis_classic 1
663 set globalSettings::vitis_unified 0
665 ([
string tolower $ide_name] eq "vivado_vitis_unified" || [
string tolower $ide_name] eq "vitis_unified")
666 && ($options(vivado_only) != 1)
668 set globalSettings::vitis_classic 0
669 set globalSettings::vitis_unified 1
670 if {[
auto_execok vitis] eq ""} {
672 "Vitis Unified IDE is required for project $project_name but 'vitis' was not found in PATH. Please source Vitis \
676 set globalSettings::vitis_classic 0
677 set globalSettings::vitis_unified 0
681 if {$ide_name eq "vitis_unified" || $ide_name eq "vitis_classic"} {
682 set options(vitis_only) 1
685 set is_vitis_ide [
expr {$globalSettings::vitis_classic == 1 || $globalSettings::vitis_unified == 1}]
686 set is_build_step [
expr {$do_synthesis == 1 || $do_implementation == 1 || $do_compile == 1}]
687 if {$is_vitis_ide && $options(vitis_only) == 1 && $is_build_step} {
692 if {$options(no_bitstream) == 1} {
697 if {$options(recreate) == 1} {
701 if {$options(synth_only) == 1} {
702 set do_implementation 0
709 if {$options(impl_only) == 1} {
710 set do_implementation 1
717 if {$options(vitis_only) == 1 || $ide_name eq "vitis_classic" || $ide_name eq "vitis_unified"} {
718 set do_implementation 0
724 if {$options(bitstream_only) == 1} {
725 set do_bitstream_only 1
727 set do_implementation 0
732 set do_bitstream_only 0
735 if {$options(no_reset) == 1} {
739 if {$options(check_syntax) == 1} {
740 set do_check_syntax 1
743 if {$options(scripts_only) == 1} {
747 if {$options(compile_only) == 1} {
752 Msg Info "Number of jobs set to $options(njobs)."
758 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
760 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_unified/_ide/settings.json]
761 Msg Info "Setting project file for Vitis Unified project $project_name to $project_file"
762 }
elseif {$options(vitis_only) == 1 && ($ide_name eq "vitis_classic" || $ide_name eq "vivado_vitis_classic")} {
764 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_classic/.metadata/]
765 Msg Info "Setting project file for Vitis Classic project $project_name to $project_file"
768 set project_file [
file normalize $repo_path/Projects/$project_name/$project.ppr]
771 set project_file [
file normalize $repo_path/Projects/$project_name/$project.xpr]
774 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_classic/.metadata/]
775 Msg Info "Setting project file for Vitis Classic project $project_name to $project_file"
778 set project_file [
file normalize $repo_path/Projects/$project_name/vitis_unified/_ide/settings.json]
779 Msg Info "Setting project file for Vitis Unified project $project_name to $project_file"
781 if {[
catch {
package require ::quartus::project} ERROR]} {
782 Msg Error "$ERROR\n Can not find package ::quartus::project"
786 Msg Info "Loaded package ::quartus::project"
789 set project_file "$project_path/$project.qpf"
791 set project_file [
file normalize $repo_path/Projects/$project_name/$project.prjx]
794 set project_file [
file normalize $repo_path/Projects/$project_name/$project.ldf]
796 Msg Error "Unknown IDE, can't set project file path."
800 if {[
file exists $project_file]} {
801 Msg Info "Found project file $project_file for $project_name."
806 set repo_norm [
file normalize $repo_path]
807 set rel [
string trimleft [
string range $project_file [
string length $repo_norm] end] "/"]
809 foreach start_dir [list [
file dirname [
info script]] [
pwd]] {
811 Msg Debug "FindRepoRoot([list $start_dir]) => [list $repo_candidate]"
812 if {$repo_candidate ne ""} {
813 set project_file_alt [
file join $repo_candidate $rel]
815 if {[
file exists $project_file_alt]} {
817 }
elseif {$options(vitis_only) == 1 && [
string match "*vitis_unified*" $rel]} {
818 set ide_dir [
file join $repo_candidate Projects $project_name vitis_unified _ide]
819 if {[
file exists $ide_dir]} {
823 if {$options(vitis_only) == 1 && [
string match "*vitis_unified*" $rel]} {
825 "Checking file [list $project_file_alt] exists=[
file exists $project_file_alt]; _ide dir [list $ide_dir] \
826 exists=[
file exists $ide_dir]"
828 Msg Debug "Checking [list $project_file_alt] exists=[
file exists $project_file_alt]"
831 set project_file $project_file_alt
832 set repo_path $repo_candidate
833 Msg Info "Found project file $project_file for $project_name."
840 Msg Info "Project file not found for $project_name."
844 if {($proj_found == 0 || $recreate == 1)} {
846 Msg Info "Creating (possibly replacing) the project $project_name..."
847 Msg Debug "launch.tcl: calling GetConfFiles with $repo_path/Top/$project_name"
848 lassign [
GetConfFiles $repo_path/Top/$project_name] conf sim pre post pre_rtl post_rtl
850 if {[
file exists $conf]} {
851 set globalSettings::vitis_only_pass $options(vitis_only)
852 if {$options(vivado_only) == 1} {
853 CreateProject -simlib_path $lib_path -xsa $options(xsa) -vivado_only $project_name $repo_path
854 }
elseif {$options(vitis_only) == 1} {
855 CreateProject -simlib_path $lib_path -xsa $options(xsa) -vitis_only $project_name $repo_path
857 CreateProject -simlib_path $lib_path -xsa $options(xsa) $project_name $repo_path
859 Msg Info "Done creating project $project_name."
860 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
861 set project_file [
file join $repo_path Projects $project_name vitis_unified _ide settings.json]
864 Msg Error "Project $project_name is incomplete: no hog.conf file found, please create one..."
866 }
elseif {$proj_found == 0} {
867 Msg Error "Project $project_name not found. Please create it first using the 'CREATE' or 'C' directive."
870 Msg Info "Opening existing project file $project_file..."
871 if {$options(vitis_only) == 1 && ($ide_name eq "vitis_unified" || $ide_name eq "vivado_vitis_unified")} {
872 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_unified/]
873 Msg Info "Setting Vitis Unified workspace to $vitis_workspace"
875 file mkdir "$repo_path/Projects/$project_name/$project.gen/sources_1"
878 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_classic/]
879 Msg Info "Setting workspace to $vitis_workspace"
881 set vitis_workspace [
file normalize $repo_path/Projects/$project_name/vitis_unified/]
882 Msg Info "Setting workspace to $vitis_workspace"
890 if {$do_check_syntax == 1} {
891 if {$ide_name eq "vitis_unified" || $ide_name eq "vitis_classic"} {
892 Msg Info "Skipping syntax check for $project_name: pure Vitis project has no HDL syntax to check"
894 Msg Info "Checking syntax for project $project_name..."
901 lassign [
GetConfFiles $repo_path/Top/$project_name] conf sim pre post pre_rtl post_rtl
905 if {$do_vitis_build == 1} {
908 set conf_file_path [
file normalize "$repo_path/Top/$project_name/hog.conf"]
909 if {[
file exists $conf_file_path]} {
910 set proj_properties [
ReadConf $conf_file_path]
911 set hls_components [dict filter $proj_properties key {hls:*}]
912 if {[dict size $hls_components] > 0} {
913 Msg Info "Found [dict size $hls_components] HLS component(s), launching HLS build..."
917 set has_apps [
expr {[dict size [dict filter $proj_properties key {app:*}]] > 0}]
925 Msg Error "Vitis build is not supported for $ide_name (only Vitis Classic and Vitis Unified are supported)"
931 if {$do_synthesis == 1} {
932 LaunchSynthesis $do_reset $do_create $run_folder $project_name $repo_path $ext_path $options(njobs)
935 if {$do_implementation == 1} {
936 LaunchImplementation $do_reset $do_create $run_folder $project_name $repo_path $options(njobs) $do_bitstream
939 if {$do_bitstream_only == 1 && [
IsXilinx]} {
941 }
elseif {$do_bitstream_only == 1 && ![
IsXilinx]} {
942 Msg Error "Bitstream only option is not supported for this IDE."
945 if {$do_bitstream == 1 && ![
IsXilinx]} {
949 if {$do_simulation == 1} {
951 set hdl_simsets [list]
952 set hls_simsets [list]
953 if {$options(simset) ne ""} {
954 foreach s $options(simset) {
955 if {[regexp {^(csim|cosim):} $s]} {
956 lappend hls_simsets $s
958 lappend hdl_simsets $s
962 set run_hdl [
expr {[llength $hdl_simsets] > 0 || $options(simset) eq ""}]
963 set run_hls [
expr {[llength $hls_simsets] > 0 || $options(simset) eq ""}]
967 set simsets [
GetSimSets $project_name $repo_path $hdl_simsets]
968 if {[dict size $simsets] > 0} {
969 LaunchSimulation $project_name $lib_path $simsets $repo_path $scripts_only $compile_only
980 if {$do_check_list_files} {
981 Msg Info "Running list file checker..."
988 set argv0 check_list_files
989 if {$ext_path ne ""} {
990 set argv [list "-ext_path" "$ext_path" "-outDir" "$dst_dir" "-pedantic"]
992 set argv [list "-outDir" "$dst_dir" "-pedantic"]
995 source $tcl_path/utils/check_list_files.tcl
1000 Msg Info "All done."