# set Prjname "BaseR_TOP"
import_files -stimulus "./src/stimulus/BaseR_TOP_TB.v"
build_design_hierarchy 
set_root -module {BaseR_TOP_TB::work} 

organize_tool_files -tool {SIM_PRESYNTH} -file ../Libero_design/${Prjname}/stimulus/BaseR_TOP_TB.v -module {BaseR_TOP_TB::work} -input_type {stimulus}
set_modelsim_options -use_automatic_do_file 1 \
                     -sim_runtime $SimTime \
                     -tb_module_name {BaseR_TOP_TB} \
                     -log_all_signals 1 \
                     -include_do_file 1 \
                     -disable_pulse_filtering 1 \
                     -resolution {1ps} \
                     -timeunit 1 \
                     -timeunit_base {ns} \
                     -precision 1 \
                     -precision_base {ps} \
                     -add_vsim_options {-voptargs="+acc -noprotectopt"}
					 
				 
			 
					 
catch {run_tool -name {SIM_PRESYNTH}}
save_project
puts "Simulation completed successfully\n"

