Skip to content
Snippets Groups Projects
Commit 16b662c6 authored by dam1n19's avatar dam1n19
Browse files

Updated Simulation Scripts

parent 8710ac50
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@
#!/usr/bin/env bash
mkdir -p $SHA_2_ACC_DIR/simulate/sim/
iverilog -I $SHA_2_ACC_DIR/hdl/verif/ -I $SHA_2_ACC_DIR/hdl/src/ -g2012 -o $SHA_2_ACC_DIR/simulate/sim/$1.vvp $SHA_2_ACC_DIR/hdl/verif/tb_$1.sv
cd $SHA_2_ACC_DIR/simulate/sim/ && vvp $1.vvp $2
\ No newline at end of file
mkdir -p $SOC_TOP/simulate/sim/
iverilog -I $SOC_TOP/hdl/verif/ -I $SOC_TOP/hdl/src/ -g2012 -o $SOC_TOP/simulate/sim/$1.vvp $SOC_TOP/hdl/verif/tb_$1.sv
cd $SOC_TOP/simulate/sim/ && vvp $1.vvp $2
\ No newline at end of file
......@@ -15,4 +15,4 @@ DEFAULT_SIMULATOR="ivlog"
if [[ -z "${SIMULATOR}" ]]; then
SIMULATOR=$DEFAULT_SIMULATOR
fi
$SHA_2_ACC_DIR"/flow/simulators/"$SIMULATOR"_sim.sh" $@
$SOC_TOP"/flow/simulators/"$SIMULATOR"_sim.sh" $@
......@@ -15,12 +15,19 @@ if [ -z "$SHA_2_ACC_DIR" ]; then
# Set environment Variables for Repository
export SHA_2_ACC_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [ -z "$SOC_ENV_SET" ]; then
# Add flow directory to Path
export PATH=$PATH:$SHA_2_ACC_DIR/flow
# Set Default Simulator
export SIMULATOR="ivlog"
# Set Top-level Directory
export SOC_TOP=$SHA_2_ACC_DIR
# Set flag to say this is top level repo
export SOC_ENV_SET="True"
# Source Top-level sourceme
for d in $WRAP_ACC_DIR/../* ; do
if [ -d "$d" ]; then
......@@ -29,5 +36,9 @@ if [ -z "$SHA_2_ACC_DIR" ]; then
fi
fi
done
# Clear SOC_ENV_SET Variable
unset SOC_ENV_SET
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment