From 1d9aabd633c0c5b958f305da59f87a2894b4115d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gendre?= <sebastien.gendre@etu.hesge.ch>
Date: Wed, 12 Mar 2025 18:21:01 +0100
Subject: [PATCH] Exploration of Hog generics: Add custom 1 generic to
 simulation

---
 Top/hog-build-info/sim.conf                                | 3 +++
 .../hog-build-info.srcs/sim_1/new/explore_build_info.vhd   | 7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/Top/hog-build-info/sim.conf b/Top/hog-build-info/sim.conf
index e209ed6..ade4c5d 100644
--- a/Top/hog-build-info/sim.conf
+++ b/Top/hog-build-info/sim.conf
@@ -2,3 +2,6 @@
 ACTIVE=1
 TOP=explore_build_info
 
+[generics]
+BANANA=01234567
+
diff --git a/hog-build-info/hog-build-info.srcs/sim_1/new/explore_build_info.vhd b/hog-build-info/hog-build-info.srcs/sim_1/new/explore_build_info.vhd
index 8f44541..21c1a69 100644
--- a/hog-build-info/hog-build-info.srcs/sim_1/new/explore_build_info.vhd
+++ b/hog-build-info/hog-build-info.srcs/sim_1/new/explore_build_info.vhd
@@ -30,7 +30,8 @@ entity explore_build_info is
     GLOBAL_DATE : std_logic_vector(31 downto 0) := (others => '0');
     GLOBAL_TIME : std_logic_vector(31 downto 0) := (others => '0');
     GLOBAL_VER  : std_logic_vector(31 downto 0) := (others => '0');
-    GLOBAL_SHA  : std_logic_vector(31 downto 0) := (others => '0')
+    GLOBAL_SHA  : std_logic_vector(31 downto 0) := (others => '0');
+    BANANA      : integer := 0
     );
 end explore_build_info;
 
@@ -54,4 +55,8 @@ begin
     report "GLOBAL_SHA: " & to_hstring(to_bitvector(GLOBAL_SHA))
     severity note;
 
+  assert false
+    report "BANANA: " & integer'image(BANANA)
+    severity note;
+
 end Behavioral;
-- 
GitLab