From a7e7a2eea1480f17f2f77b677196db8e539c594d Mon Sep 17 00:00:00 2001
From: dam1n19 <dam1n19@soton.ac.uk>
Date: Wed, 5 Jul 2023 16:06:19 +0100
Subject: [PATCH] Added aes socsim scripts back in

---
 simulate/socsim/regression_aes128.sh | 31 ++++++++++++++++++++++++++++
 simulate/socsim/system_aes128.sh     | 31 ++++++++++++++++++++++++++++
 soctools_flow                        |  2 +-
 3 files changed, 63 insertions(+), 1 deletion(-)
 create mode 100755 simulate/socsim/regression_aes128.sh
 create mode 100755 simulate/socsim/system_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}
+
diff --git a/simulate/socsim/system_aes128.sh b/simulate/socsim/system_aes128.sh
new file mode 100755
index 0000000..1bfacd4
--- /dev/null
+++ b/simulate/socsim/system_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 run_mti \
+    SIM_DIR=$SIM_DIR \
+    ACCELERATOR=yes \
+    ${@:2}
+
diff --git a/soctools_flow b/soctools_flow
index ccf4e4f..53dcd2f 160000
--- a/soctools_flow
+++ b/soctools_flow
@@ -1 +1 @@
-Subproject commit ccf4e4fbbf8c555cb5b8bf4e624c03f57052918d
+Subproject commit 53dcd2f07e622f2d7de5b8158a88cfff0a10e28e
-- 
GitLab