#remove working directory
file delete -force work

#Creating the work lib
vlib work
vmap work work
vlib "libs/spi_master"
vmap spi_master "libs/spi_master"

#Top level testbench
vlog spi_master_tb.v 

#Simulate
vsim -c -t ps -L spi_master spi_master_tb 

#get wave
do wave.do

run 25 us