From abb9fa013954f3ad4b12760ba9923951d024ed5b Mon Sep 17 00:00:00 2001
From: Romain Broucquart <romain.broucquart@synchrotron-soleil.fr>
Date: Wed, 20 Apr 2022 15:26:30 +0200
Subject: [PATCH] Add generation of package version

* Add a gitignore to ignore the generated file.
* For now, this package has no use.
---
 .gitignore   | 2 ++
 tcl/main.tcl | 4 ++++
 2 files changed, 6 insertions(+)
 create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9dccb44
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+# Ignore generated package file
+hdl/pkg_version.vhd
diff --git a/tcl/main.tcl b/tcl/main.tcl
index eb47258..81730b7 100644
--- a/tcl/main.tcl
+++ b/tcl/main.tcl
@@ -14,6 +14,10 @@ proc init {} {
 # ==============================================================================
 proc setSources {} {
   variable Vhdl
+
+  # Generate VHDL package with modle version
+  genModVerFile VHDL ../hdl/pkg_version.vhd
+
   lappend Vhdl ../hdl/combpm_protocol_electron.vhd
   lappend Vhdl ../hdl/top_combpm_electron.vhd
   lappend Vhdl ../others/gthe_common.vhd
-- 
GitLab