From 891302d7aeef6361faef95731151f1d85a762db6 Mon Sep 17 00:00:00 2001
From: dwn1c21 <dwn1c21@soton.ac.uk>
Date: Mon, 23 Sep 2024 09:06:05 +0100
Subject: [PATCH] Auto-fetch memory module when set_env runs

---
 set_env.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/set_env.sh b/set_env.sh
index 0341095..8a9a725 100644
--- a/set_env.sh
+++ b/set_env.sh
@@ -1,2 +1,6 @@
 export SOCLABS_AHB_QSPI_DIR=$(pwd)
-export SOCLABS_SOCTOOLS_FLOW_DIR=$SOCLABS_AHB_QSPI_DIR/soctools_flow
\ No newline at end of file
+export SOCLABS_SOCTOOLS_FLOW_DIR=$SOCLABS_AHB_QSPI_DIR/soctools_flow
+
+if [ ! -f ./verif/VIP/SST26VF064B.v ]; then
+    make get_flash_model
+fi
\ No newline at end of file
-- 
GitLab