adi_project_xilinx: Fix the adi_project process
In most of the standalone projects the generic project creation flow is not followed. The project's device is defined manualy. This fix makes sure that those projects still builds without an issue. NOTE: In these case we should use adi_project_create directly in system_project.tcl.main
parent
b9ac8df503
commit
9ec3408c79
|
@ -47,6 +47,9 @@ set p_prcfg_status ""
|
|||
#
|
||||
proc adi_project {project_name {mode 0} {parameter_list {}} } {
|
||||
|
||||
set device ""
|
||||
set board ""
|
||||
|
||||
# Determine the device based on the board name
|
||||
if [regexp "_ac701$" $project_name] {
|
||||
set device "xc7a200tfbg676-2"
|
||||
|
@ -123,12 +126,15 @@ proc adi_project_create {project_name mode parameter_list device {board "not-app
|
|||
global ADI_USE_OOC_SYNTHESIS
|
||||
global ADI_USE_INCR_COMP
|
||||
|
||||
## update the value of $p_device only if it was not already updated elsewhere
|
||||
if {$p_device eq "none"} {
|
||||
set p_device $device
|
||||
}
|
||||
set p_board $board
|
||||
|
||||
if [regexp "^xc7z" $device] {
|
||||
if [regexp "^xc7z" $p_device] {
|
||||
set sys_zynq 1
|
||||
} elseif [regexp "^xczu" $device] {
|
||||
} elseif [regexp "^xczu" $p_device] {
|
||||
set sys_zynq 2
|
||||
} else {
|
||||
set sys_zynq 0
|
||||
|
|
Loading…
Reference in New Issue