Use a file instead of environment variable to pass VSRCS into Vivado
This commit is contained in:
parent
2bed0c30dc
commit
97e628639a
@ -41,14 +41,9 @@ if {[get_filesets -quiet sources_1] eq ""} {
|
|||||||
}
|
}
|
||||||
set obj [current_fileset]
|
set obj [current_fileset]
|
||||||
|
|
||||||
# Add verilog files from VSRCS environment variable
|
# Add verilog files TCL from VSRCSVIVADOTCL environment variable
|
||||||
if {[info exists ::env(VSRCS)]} {
|
if {[info exists ::env(VSRCSVIVADOTCL)]} {
|
||||||
# Split string into words even with multiple consecutive spaces
|
source $::env(VSRCSVIVADOTCL)
|
||||||
# http://wiki.tcl.tk/989
|
|
||||||
set vsrcs [regexp -inline -all -- {\S+} $::env(VSRCS)]
|
|
||||||
foreach vsrc $vsrcs {
|
|
||||||
add_files -norecurse -fileset $obj $vsrc
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add IP Vivado TCL from IPVIVADOTCL environment variable
|
# Add IP Vivado TCL from IPVIVADOTCL environment variable
|
||||||
|
Loading…
Reference in New Issue
Block a user