#Time: 2017-05-06  
#By : YINBin@122275  
 
quit -sim  
 
cd D:/Documents/Work/UVM_PRJ/uvm-crc-test

set UVM_DPI_HOME C:/questasim64_10.2c/uvm-1.1d/win64
set UVM_HOME C:/questasim64_10.2c/verilog_src/uvm-1.1d/src
set SRC_DIR D:/Documents/Work/UVM_PRJ/uvm-crc-test/src

if [file exists work] {  
  vdel -all  
}  
vlib work

vlog -timescale "1ns/1ns" -quiet -mfcu -suppress 2181 +acc=rmb -writetoplevels questa.tops -incr +incdir+$SRC_DIR +incdir+$UVM_HOME $UVM_HOME/uvm.sv +incdir+. $SRC_DIR/crc7_pkg.sv
vlog -timescale "1ns/1ns" -quiet -mfcu -suppress 2181 +acc=rmb -writetoplevels questa.tops -incr +incdir+$SRC_DIR +incdir+$UVM_HOME $UVM_HOME/uvm.sv +incdir+. $SRC_DIR/crc7_if.sv
vlog -timescale "1ns/1ns" -quiet -mfcu -suppress 2181 +acc=rmb -writetoplevels questa.tops -incr +incdir+$SRC_DIR +incdir+$UVM_HOME $UVM_HOME/uvm.sv +incdir+. $SRC_DIR/crc7.v
vlog -timescale "1ns/1ns" -quiet -mfcu -suppress 2181 +acc=rmb -writetoplevels questa.tops -incr +incdir+$SRC_DIR +incdir+$UVM_HOME $UVM_HOME/uvm.sv +incdir+. $SRC_DIR/crc7_tb_top.sv

vsim -novopt -c -sv_lib $UVM_DPI_HOME/uvm_dpi work.crc7_tb_top

do wave.do

run 500ns

05-11 18:14