forked from ENGR-850/Main
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (40 loc) · 1.79 KB
/
Copy pathMakefile
File metadata and controls
51 lines (40 loc) · 1.79 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Makefile for SystemVerilog Lab1
RTL= ./top.v
SVTB = ./top_tb.v
SEED = 1
default: test
test: compile run
run:
./simv -l simv.log +ntb_random_seed=$(SEED)
compile:
vcs -l vcs.log -sverilog -debug_all -full64 $(SVTB) $(RTL)
dve:
dve -vpd vcdplus.vpd &
debug:
./simv -l simv.log -gui -tbug +ntb_random_seed=$(SEED)
solution: clean
cp ../../solutions/lab1/*.sv .
clean:
rm -rf simv* csrc* *.tmp *.vpd *.key *.log *hdrs.h
nuke: clean
rm -rf *.v* *.sv include .*.lock .*.old DVE* *.tcl *.h
cp .orig/* .
help:
@echo ==========================================================================
@echo " "
@echo " USAGE: make target <SEED=xxx> "
@echo " "
@echo " ------------------------- Test TARGETS ------------------------------ "
@echo " test => Compile TB and DUT files, runs the simulation. "
@echo " compile => Compile the TB and DUT. "
@echo " run => Run the simulation. "
@echo " dve => Run dve in post-processing mode "
@echo " debug => Runs simulation interactively with dve "
@echo " clean => Remove all intermediate simv and log files. "
@echo " "
@echo " -------------------- ADMINISTRATIVE TARGETS ------------------------- "
@echo " help => Displays this message. "
@echo " solution => Copies all files from solutions directory "
@echo " nuke => Erase all changes. Put all files back to original state "
@echo " "
@echo ==========================================================================