From 97e628639af1d420389bdf92b0f663d4e5ff7a89 Mon Sep 17 00:00:00 2001 From: Henry Styles Date: Tue, 19 Sep 2017 14:12:23 -0700 Subject: [PATCH] Use a file instead of environment variable to pass VSRCS into Vivado --- xilinx/common/tcl/prologue.tcl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/xilinx/common/tcl/prologue.tcl b/xilinx/common/tcl/prologue.tcl index 9fee57d..89e4e64 100644 --- a/xilinx/common/tcl/prologue.tcl +++ b/xilinx/common/tcl/prologue.tcl @@ -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