-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache_test.do
More file actions
32 lines (24 loc) · 977 Bytes
/
cache_test.do
File metadata and controls
32 lines (24 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# quit simulation
quit -sim
# clean main window
.main clear
vlib work
vmap work work
# set include file
#-----------------------------------------------------------------
# complie source file
#-----------------------------------------------------------------
vlog -work work +incdir+../src/include ../src/*.v
vlog -work work +incdir+../src/include ../src/*.sv
#------------------------------------------------------------------
# start simulation
#------------------------------------------------------------------
vsim -novopt work.cache_difftest
#------------------------------------------------------------------
# add waves of simulation
#------------------------------------------------------------------
add wave -radix hex cache_difftest/dut/*
#------------------------------------------------------------------
# run simulations
#------------------------------------------------------------------
run -all