Files
fvh_vezbe/code/Vezba 13 - prateci materijal/i2c_uvc/sim/run.do

30 lines
836 B
Plaintext
Raw Normal View History

2026-06-12 07:53:32 +02:00
################################################################################
# +-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+ +-+-+-+-+-+-+-+-+
# |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/i2c_pkg.sv \
../examples/i2c_test_top.sv
# run simulation
vsim i2c_test_top -novopt +UVM_TESTNAME=i2c_test_simple -sv_seed random