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
parent
d17cd22ef1
commit
11cc18be79
|
@ -14,6 +14,8 @@ if {[info exists ::env(ADI_IGNORE_VERSION_CHECK)]} {
|
||||||
# ip related stuff
|
# ip related stuff
|
||||||
|
|
||||||
proc adi_ip_create {ip_name} {
|
proc adi_ip_create {ip_name} {
|
||||||
|
global ad_hdl_dir
|
||||||
|
global ad_phdl_dir
|
||||||
|
|
||||||
global REQUIRED_VIVADO_VERSION
|
global REQUIRED_VIVADO_VERSION
|
||||||
global IGNORE_VERSION_CHECK
|
global IGNORE_VERSION_CHECK
|
||||||
|
@ -24,6 +26,14 @@ proc adi_ip_create {ip_name} {
|
||||||
|
|
||||||
create_project $ip_name . -force
|
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_dir [get_property directory [current_project]]
|
||||||
set proj_name [get_projects $ip_name]
|
set proj_name [get_projects $ip_name]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue