# simulation control script for counters_leds testbench

# prepare working library
file delete -force work
vlib work
vmap work work

puts "Compile Testbench"
vlog tb_counters_leds.v

puts "Compile DUT modules"
vlog    ../src/counters_leds.v \
        ../src/mod_n_counter_10bit.v \
        ../src/d_ff.v \
        +define+SIMULATION

puts "Starting Simulation"
vsim -c -t ps tb_counters_leds

# display simulation waveforms
do sim_counters_leds_wave.tcl

# run simulation for 500ns
run 15 us