1
0

Merge pull request #5 from sifive/vivado_vsrcs_using_file

Use a file instead of environment variable to pass VSRCS into Vivado
This commit is contained in:
Henry Styles 2017-09-19 14:13:36 -07:00 committed by GitHub
commit e9019d7570

View File

@ -41,14 +41,9 @@ if {[get_filesets -quiet sources_1] eq ""} {
}
set obj [current_fileset]
# Add verilog files from VSRCS environment variable
if {[info exists ::env(VSRCS)]} {
# Split string into words even with multiple consecutive spaces
# http://wiki.tcl.tk/989
set vsrcs [regexp -inline -all -- {\S+} $::env(VSRCS)]
foreach vsrc $vsrcs {
add_files -norecurse -fileset $obj $vsrc
}
# Add verilog files TCL from VSRCSVIVADOTCL environment variable
if {[info exists ::env(VSRCSVIVADOTCL)]} {
source $::env(VSRCSVIVADOTCL)
}
# Add IP Vivado TCL from IPVIVADOTCL environment variable