# simulation control script for counters testbench

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

# compile testbench
vlog tb_counter.v
# compile design under test
vlog ../src/mod_n_counter_10bit.v

# execute simulation
vsim -c -t ps tb_counter

# display simulation waveforms
do sim_counters_wave.tcl

# run simulation for 500ns
run 500 ns