scripts- fix path and device defaults and override

main
Rejeesh Kutty 2016-08-19 15:56:07 -04:00
parent 6ef9555909
commit 67bf8f8e78
2 changed files with 7 additions and 6 deletions

View File

@ -1,8 +1,9 @@
# environment related stuff
set ad_hdl_dir "../../.."
set ad_phdl_dir "../../.."
set ad_hdl_dir [file normalize [file join [file dirname [info script]] "../.."]]
set ad_phdl_dir $ad_hdl_dir
if [info exists ::env(ADI_HDL_DIR)] {
set ad_hdl_dir $::env(ADI_HDL_DIR)

View File

@ -16,6 +16,10 @@ if {[info exists ::env(ADI_IGNORE_VERSION_CHECK)]} {
set IGNORE_VERSION_CHECK 0
}
set p_board "not-applicable"
set p_device "none"
set sys_zynq 1
proc adi_project_create {project_name {mode 0}} {
global ad_hdl_dir
@ -26,10 +30,6 @@ proc adi_project_create {project_name {mode 0}} {
global REQUIRED_VIVADO_VERSION
global IGNORE_VERSION_CHECK
set p_device "none"
set p_board "none"
set sys_zynq 0
if [regexp "_ac701$" $project_name] {
set p_device "xc7a200tfbg676-2"
set p_board "xilinx.com:ac701:part0:1.0"