From d93d645f835c3ba933ea7c0ea7945c9ad6dfe26d Mon Sep 17 00:00:00 2001
From: Romain Broucquart <romain.broucquart@synchrotron-soleil.fr>
Date: Mon, 4 Oct 2021 16:49:08 +0200
Subject: [PATCH] Add a source script to add files in project

Calling this script will add VHDL and XCI source files to the current
project.
---
 scripts/add_files.tcl | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 scripts/add_files.tcl

diff --git a/scripts/add_files.tcl b/scripts/add_files.tcl
new file mode 100644
index 0000000..e3b4f07
--- /dev/null
+++ b/scripts/add_files.tcl
@@ -0,0 +1,10 @@
+# This will add sources files and import IP for the com_bpm bloc
+
+set module_root [file normalize [file dirname [file normalize [info script]]]/../]
+
+add_files "$module_root/hdl/combpm_protocol_electron_ctrl.vhd"
+add_files "$module_root/hdl/combpm_protocol_electron.vhd"
+add_files "$module_root/hdl/combpm_gtsfp_htgfmc2qsfp.vhd"
+add_files "$module_root/hdl/top_combpm_electron.vhd"
+
+import_ip "$module_root/ip_cores/gtwizard_ultrascale_htgfmc2qsfp.xci"
-- 
GitLab