#!/bin/bash


if [ -z "${PY_STIM_INSTALL_DIR}" ]; then
    echo "PY_STIM_INSTALL_DIR is not defined"
    exit 1
fi

# export PYTHONPATH=${PYTHONPATH}:${PY_STIM_INSTALL_DIR}/examples/pow_numbers/src

# Add your script code here
echo "Running simulation..."
echo "PY_STIM_INSTALL_DIR=$PY_STIM_INSTALL_DIR"
vlog -O0 +acc  -f $PY_STIM_INSTALL_DIR/examples/hello_world/list/compile_list.f
vsim -voptargs=+acc -c  -lib work hello_world -do "run -all; quit"  -l run.log   -sv_lib $PY_STIM_INSTALL_DIR/lib/libpystim -gblso $PY_STIM_INSTALL_DIR/lib/libpystim.so

echo "Simulation complete!"

