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 @@ ...@@ -11,6 +11,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p $SHA_2_ACC_DIR/simulate/sim/ mkdir -p $SOC_TOP/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 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 $SHA_2_ACC_DIR/simulate/sim/ && vvp $1.vvp $2 cd $SOC_TOP/simulate/sim/ && vvp $1.vvp $2
\ No newline at end of file \ No newline at end of file
...@@ -15,4 +15,4 @@ DEFAULT_SIMULATOR="ivlog" ...@@ -15,4 +15,4 @@ DEFAULT_SIMULATOR="ivlog"
if [[ -z "${SIMULATOR}" ]]; then if [[ -z "${SIMULATOR}" ]]; then
SIMULATOR=$DEFAULT_SIMULATOR SIMULATOR=$DEFAULT_SIMULATOR
fi fi
$SHA_2_ACC_DIR"/flow/simulators/"$SIMULATOR"_sim.sh" $@ $SOC_TOP"/flow/simulators/"$SIMULATOR"_sim.sh" $@
...@@ -15,19 +15,30 @@ if [ -z "$SHA_2_ACC_DIR" ]; then ...@@ -15,19 +15,30 @@ if [ -z "$SHA_2_ACC_DIR" ]; then
# Set environment Variables for Repository # Set environment Variables for Repository
export SHA_2_ACC_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" export SHA_2_ACC_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
# Add flow directory to Path if [ -z "$SOC_ENV_SET" ]; then
export PATH=$PATH:$SHA_2_ACC_DIR/flow # Add flow directory to Path
export PATH=$PATH:$SHA_2_ACC_DIR/flow
# Set Default Simulator # Set Default Simulator
export SIMULATOR="ivlog" export SIMULATOR="ivlog"
# Source Top-level sourceme # Set Top-level Directory
for d in $WRAP_ACC_DIR/../* ; do export SOC_TOP=$SHA_2_ACC_DIR
if [ -d "$d" ]; then
if test -f "$d/sourceme"; then # Set flag to say this is top level repo
source $d/sourceme export SOC_ENV_SET="True"
# Source Top-level sourceme
for d in $WRAP_ACC_DIR/../* ; do
if [ -d "$d" ]; then
if test -f "$d/sourceme"; then
source $d/sourceme
fi
fi fi
fi done
done
# Clear SOC_ENV_SET Variable
unset SOC_ENV_SET
fi
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment