@@ -34,20 +34,12 @@ if { [string first $scripts_vivado_version $current_vivado_version] == -1 } {
3434# START
3535# ###############################################################
3636
37- # To test this script, run the following commands from Vivado Tcl console:
38- # source soc_system_script.tcl
39-
40- # If there is no project opened, this script will create a
41- # project, but make sure you do not have an existing project
42- # <./myproj/project_1.xpr> in the current working folder.
43-
44- set list_projs [get_projects -quiet]
45- if { $list_projs eq " " } {
46- create_project project_1 myproj -part xczu3eg-sbva484-1-e
47- set_property BOARD_PART em.avnet.com:ultra96v1:part0:1.2 [current_project]
37+ # CHECKING IF PROJECT EXISTS
38+ if { [get_projects -quiet] eq " " } {
39+ puts " ERROR: Please open or create a project!"
40+ return 1
4841}
4942
50-
5143# CHANGE DESIGN NAME HERE
5244variable design_name
5345set design_name soc_system
@@ -89,7 +81,7 @@ if { ${design_name} eq "" } {
8981 set errMsg " Design <$design_name > already exists in your project, please set the variable <design_name> to another value."
9082 set nRet 1
9183} elseif { [get_files -quiet ${design_name} .bd] ne " " } {
92- # USE CASES:
84+ # USE CASES:
9385 # 6) Current opened design, has components, but diff names, design_name exists in project.
9486 # 7) No opened design, design_name exists in project.
9587
@@ -123,7 +115,7 @@ set bCheckIPsPassed 1
123115# #################################################################
124116set bCheckIPs 1
125117if { $bCheckIPs == 1 } {
126- set list_check_ips " \
118+ set list_check_ips " \
127119machinekit.io:user:HostMot2_ip_wrap:1.0\
128120xilinx.com:ip:clk_wiz:6.0\
129121machinekit.io:user:hm2_axilite_int:1.0\
0 commit comments