changed path settings

main
Rejeesh Kutty 2014-03-03 10:06:36 -05:00
parent 3c0ea759a0
commit 350ec5e633
1 changed files with 16 additions and 1 deletions

View File

@ -2,6 +2,9 @@
proc adi_project_create {project_name} { proc adi_project_create {project_name} {
global ad_hdl_dir
global ad_phdl_dir
set project_part "none" set project_part "none"
set project_board "none" set project_board "none"
@ -34,7 +37,13 @@ proc adi_project_create {project_name} {
create_project $project_name . -part $project_part -force create_project $project_name . -part $project_part -force
set_property board $project_board [current_project] set_property board $project_board [current_project]
set_property ip_repo_paths ../../../library [current_fileset]
set lib_dirs $ad_hdl_dir/library
if {$ad_hdl_dir ne $ad_phdl_dir} {
lappend lib_dirs $ad_phdl_dir/library
}
set_property ip_repo_paths $lib_dirs [current_fileset]
update_ip_catalog update_ip_catalog
create_bd_design "system" create_bd_design "system"
@ -47,12 +56,18 @@ proc adi_project_create {project_name} {
proc adi_project_files {project_name project_files} { proc adi_project_files {project_name project_files} {
global ad_hdl_dir
global ad_phdl_dir
add_files -norecurse -fileset sources_1 $project_files add_files -norecurse -fileset sources_1 $project_files
set_property top system_top [current_fileset] set_property top system_top [current_fileset]
} }
proc adi_project_run {project_name} { proc adi_project_run {project_name} {
global ad_hdl_dir
global ad_phdl_dir
set project_system_dir "./$project_name.srcs/sources_1/bd/system" set project_system_dir "./$project_name.srcs/sources_1/bd/system"
launch_runs synth_1 launch_runs synth_1