adi_ip.tcl: Initialize ip_repo_paths

Initialize ip_repo_paths so that when building a peripheral we have access to the interface definitions stored in the repository.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2015-04-01 14:14:02 +02:00
parent d17cd22ef1
commit 11cc18be79
1 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,8 @@ if {[info exists ::env(ADI_IGNORE_VERSION_CHECK)]} {
# ip related stuff
proc adi_ip_create {ip_name} {
global ad_hdl_dir
global ad_phdl_dir
global REQUIRED_VIVADO_VERSION
global IGNORE_VERSION_CHECK
@ -24,6 +26,14 @@ proc adi_ip_create {ip_name} {
create_project $ip_name . -force
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
set proj_dir [get_property directory [current_project]]
set proj_name [get_projects $ip_name]
}