init
This commit is contained in:
29
code/Vezba 13 - prateci materijal/apb_uvc/sim/run.do
Normal file
29
code/Vezba 13 - prateci materijal/apb_uvc/sim/run.do
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
# +-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+ +-+-+-+-+-+-+-+-+
|
||||
# |F|u|n|c|t|i|o|n|a|l| |V|e|r|i|f|i|c|a|t|i|o|n| |o|f| |H|a|r|d|w|a|r|e|
|
||||
# +-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+ +-+-+-+-+-+-+-+-+
|
||||
#
|
||||
# FILE run
|
||||
#
|
||||
# DESCRIPTION
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# Create the library.
|
||||
if [file exists work] {
|
||||
vdel -all
|
||||
}
|
||||
vlib work
|
||||
|
||||
# compile testbench
|
||||
vlog -sv \
|
||||
+incdir+$env(UVM_HOME) \
|
||||
+incdir+../sv \
|
||||
+incdir+../examples \
|
||||
+incdir+../examples/tests \
|
||||
../sv/apb_pkg.sv \
|
||||
../examples/apb_test_top.sv
|
||||
|
||||
# run simulation
|
||||
vsim apb_test_top -novopt +UVM_TESTNAME=apb_test_simple -sv_seed random
|
||||
|
||||
Reference in New Issue
Block a user