@echo off
REM ****************************************************************************
REM Vivado (TM) v2022.1 (64-bit)
REM
REM Filename    : simulate.bat
REM Simulator   : Xilinx Vivado Simulator
REM Description : Script for simulating the design by launching the simulator
REM
REM Generated by Vivado on Fri Mar 31 19:46:28 +0100 2023
REM SW Build 3526262 on Mon Apr 18 15:48:16 MDT 2022
REM
REM IP Build 3524634 on Mon Apr 18 20:55:01 MDT 2022
REM
REM usage: simulate.bat
REM
REM ****************************************************************************
REM simulate design
echo "xsim Neuron_with_Encoder_toplevel_tb_behav -key {Behavioral:sim_1:Functional:Neuron_with_Encoder_toplevel_tb} -tclbatch Neuron_with_Encoder_toplevel_tb.tcl -view C:/vivado_projects/PhD/DATE_SNN_tutorial/Neuron_top_level_tb_noEncoder_behav.wcfg -view C:/vivado_projects/PhD/DATE_SNN_tutorial/Neuron_with_Encoder_toplevel_tb_behav.wcfg -log simulate.log"
call xsim  Neuron_with_Encoder_toplevel_tb_behav -key {Behavioral:sim_1:Functional:Neuron_with_Encoder_toplevel_tb} -tclbatch Neuron_with_Encoder_toplevel_tb.tcl -view C:/vivado_projects/PhD/DATE_SNN_tutorial/Neuron_top_level_tb_noEncoder_behav.wcfg -view C:/vivado_projects/PhD/DATE_SNN_tutorial/Neuron_with_Encoder_toplevel_tb_behav.wcfg -log simulate.log
if "%errorlevel%"=="0" goto SUCCESS
if "%errorlevel%"=="1" goto END
:END
exit 1
:SUCCESS
exit 0
