# simulation control script for counters testbench

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

# compile testbench
vlog tb_n_bit_counter.v
# compile design under test
vlog ../src/n_bit_counter.v

# execute simulation
vsim -c -t ps tb_n_bit_counter

# display simulation waveforms
do wave_counter.tcl

# run simulation for 500ns
run 500 ns