From 826a53eb640022769cc90852f78afbca730ffdb2 Mon Sep 17 00:00:00 2001
From: vauban353 <vauban353@gmail.com>
Date: Sat, 29 Apr 2023 20:15:51 +0100
Subject: [PATCH] Programming: Add design version info to gateware design.

---
 BUILD_BVF_GATEWARE.tcl | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)

diff --git a/BUILD_BVF_GATEWARE.tcl b/BUILD_BVF_GATEWARE.tcl
index 4cdc011..c88deb0 100644
--- a/BUILD_BVF_GATEWARE.tcl
+++ b/BUILD_BVF_GATEWARE.tcl
@@ -87,6 +87,17 @@ if {[info exists PROJECT_LOCATION]} {
     set project_dir "$local_dir/$project_name"
 }
 
+if {[info exists DESIGN_VERSION]} {
+    set gateware_design_version "$DESIGN_VERSION"
+} else {
+    set gateware_design_version "1"
+}
+
+if {[info exists SILICON_SIGNATURE]} {
+    set gateware_silicon_signature "$SILICON_SIGNATURE"
+} else {
+    set gateware_silicon_signature "deadc001"
+}
 
 source ./script_support/additional_configurations/functions.tcl
 
@@ -197,11 +208,17 @@ organize_tool_files \
     -module {BVF_GATEWARE::work} \
     -input_type {constraint}
 
-    organize_tool_files \
-        -tool {VERIFYTIMING} \
-        -file "${project_dir}/constraint/fic_clocks.sdc" \
-        -module {BVF_GATEWARE::work} \
-        -input_type {constraint}
+organize_tool_files \
+    -tool {VERIFYTIMING} \
+    -file "${project_dir}/constraint/fic_clocks.sdc" \
+    -module {BVF_GATEWARE::work} \
+    -input_type {constraint}
+
+configure_tool \
+         -name {CONFIGURE_PROG_OPTIONS} \
+         -params {back_level_version:0} \
+         -params design_version:$gateware_design_version \
+         -params silicon_signature:$gateware_silicon_signature 
 
 #
 # // Derive timing constraints
-- 
GitLab