From 9630ed074f5c0d891f8cc4e0803b905cd9591fc3 Mon Sep 17 00:00:00 2001
From: dam1n19 <dam1n19@soton.ac.uk>
Date: Fri, 30 Jun 2023 21:07:25 +0100
Subject: [PATCH] Added regression SoCSim script

---
 simulate/socsim/regression_aes128.sh | 31 ++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100755 simulate/socsim/regression_aes128.sh

diff --git a/simulate/socsim/regression_aes128.sh b/simulate/socsim/regression_aes128.sh
new file mode 100755
index 0000000..737c8ae
--- /dev/null
+++ b/simulate/socsim/regression_aes128.sh
@@ -0,0 +1,31 @@
+#-----------------------------------------------------------------------------
+# SoC Labs Simulation script for system level verification
+# A joint work commissioned on behalf of SoC Labs, under Arm Academic Access license.
+#
+# Contributors
+#
+# David Mapstone (d.a.mapstone@soton.ac.uk)
+#
+# Copyright  2023, SoC Labs (www.soclabs.org)
+#-----------------------------------------------------------------------------
+
+#!/usr/bin/env bash
+
+# Get simulation name from name of script
+SIM_NAME=`basename -s .sh "$0"`
+
+# Directory to put simulation files
+SIM_DIR=$SOCLABS_PROJECT_DIR/simulate/sim/$SIM_NAME
+
+# Create Directory to put simulation files
+mkdir -p $SIM_DIR
+cd $SOCLABS_PROJECT_DIR/simulate/sim/$SIM_NAME
+
+# Compile Simulation
+# Call makefile in NanoSoC Repo with options
+echo ${2}
+make -C $SOCLABS_NANOSOC_TECH_DIR regression_mti \
+    SIM_DIR=$SIM_DIR \
+    ACCELERATOR=yes \
+    ${@:2}
+
-- 
GitLab