From ae767458af62d2e9bd9410cb5225642090cfafee Mon Sep 17 00:00:00 2001 From: Shreesha Srinath Date: Fri, 18 Aug 2017 11:27:02 -0700 Subject: [PATCH] Pass debug hooks through project-specific makefiles --- xilinx/common/tcl/post-impl-debug.tcl | 3 --- xilinx/common/tcl/pre-impl-debug.tcl | 3 --- xilinx/common/tcl/vivado.tcl | 8 ++++++-- 3 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 xilinx/common/tcl/post-impl-debug.tcl delete mode 100644 xilinx/common/tcl/pre-impl-debug.tcl diff --git a/xilinx/common/tcl/post-impl-debug.tcl b/xilinx/common/tcl/post-impl-debug.tcl deleted file mode 100644 index 240b1cc..0000000 --- a/xilinx/common/tcl/post-impl-debug.tcl +++ /dev/null @@ -1,3 +0,0 @@ -# See LICENSE for license details. - -# Write debug probes, save MMI for BRAMs in the design diff --git a/xilinx/common/tcl/pre-impl-debug.tcl b/xilinx/common/tcl/pre-impl-debug.tcl deleted file mode 100644 index 0176f04..0000000 --- a/xilinx/common/tcl/pre-impl-debug.tcl +++ /dev/null @@ -1,3 +0,0 @@ -# See LICENSE for license details. - -# Instantiate ILAs diff --git a/xilinx/common/tcl/vivado.tcl b/xilinx/common/tcl/vivado.tcl index fae8d28..7c4962e 100644 --- a/xilinx/common/tcl/vivado.tcl +++ b/xilinx/common/tcl/vivado.tcl @@ -4,7 +4,9 @@ source [file join $scriptdir "synth.tcl"] # Pre-implementation debug -source [file join $scriptdir "pre-impl-debug.tcl"] +if {[info exists ::env(PRE_IMPL_DEBUG_TCL)]} { + source [file join $scriptdir ::env(PRE_IMPL_DEBUG_TCL)] +} # Post synthesis optimization source [file join $scriptdir "opt.tcl"] @@ -19,7 +21,9 @@ source [file join $scriptdir "route.tcl"] source [file join $scriptdir "bitstream.tcl"] # Post-implementation debug -source [file join $scriptdir "post-impl-debug.tcl"] +if {[info exists ::env(POST_IMPL_DEBUG_TCL)]} { + source [file join $scriptdir ::env(POST_IMPL_DEBUG_TCL)] +} # Create reports for the current implementation source [file join $scriptdir "report.tcl"]