-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (29 loc) · 1.38 KB
/
makefile
File metadata and controls
35 lines (29 loc) · 1.38 KB
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
33
34
35
cmp:
vlib work
vlog -sv ./TB/apb_testbench.sv -l compile.txt
sim_1:
@echo "*********START OF SIMULATION*********************"
vsim -c -do "vcd file ./vcds/apb_test_wr.vcd;vcd add -r /*;run -all; quit;" apb_testbench +UVM_TESTNAME=apb_test_wr -l ./logs/apb_test_wr.log
@echo "*********END OF SIMULATION***********************"
sim_2:
@echo "*********START OF SIMULATION*********************"
vsim -c -do "vcd file ./vcds/apb_test_rd.vcd;vcd add -r /*;run -all; quit;" apb_testbench +UVM_TESTNAME=apb_test_rd -l ./logs/apb_test_rd.log
@echo "*********END OF SIMULATION***********************"
sim_3:
@echo "*********START OF SIMULATION*********************"
vsim -c -do "vcd file ./vcds/apb_test_error.vcd;vcd add -r /*;run -all; quit;" apb_testbench +UVM_TESTNAME=apb_test_error -l ./logs/apb_test_error.log
@echo "*********END OF SIMULATION***********************"
sim_4:
@echo "*********START OF SIMULATION*********************"
vsim -c -do "vcd file ./vcds/apb_test.vcd;vcd add -r /*;run -all; quit;" apb_testbench +UVM_TESTNAME=apb_test -l ./logs/apb_test.log
@echo "*********END OF SIMULATION***********************"
clean:
rm -f ./logs/apb_test_wr.log
rm -f ./vcds/apb_test_wr.vcd
rm -f ./logs/apb_test_rd.log
rm -f ./vcds/apb_test_rd.vcd
rm -f ./logs/apb_test_error.log
rm -f ./vcds/apb_test_error.vcd
rm -f ./logs/apb_test.log
rm -f ./vcds/apb_test.vcd
rm -rf work