1 if {[file exists behav_work]} {
2 vdel -all -lib behav_work
5 # create work library directory
8 # map directory to library name "work"
12 vcom -work work ../../src/demo_pkg.vhd
13 vcom -work work -cover bs ../../src/demo.vhd
16 vcom -work work demo_tb.vhd
18 # compile configuration file
19 vcom -work work config_behav.vhd
22 vsim -coverage work.conf
26 # add signals to waveform
27 # add all testbench signals
30 # add internal signals of unit under test
31 add wave -divider DEMO