-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·53 lines (37 loc) · 1.14 KB
/
Makefile
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
51
52
53
######################################################################
# ECE593 - Fundamentals of Pre-Silicon Validation
# Bid Controller
#
# Group 16: Supreet Gulavani, Sreeja Boyina
######################################################################
# Target
TARGET := bid_controller
# Directories for source files and builds
SRC_DIR := src
BUILD_DIR := work transcript *~ vsim.wlf *.log dgs.dbg dmslogdir covhtmlreport
# sources
SRCS := $(wildcard $(SRC_DIR)/*.sv)
# build recipies
all: setup compile opt $(TARGET)
setup:
vlib work
vmap work work
compile:
vlog -coveropt 3 +cover=sbfec +acc src/BIDS22pkg.sv $(SRCS)
#opt:
#vopt top -o top_optimized +acc
release:
vsim -coverage -vopt work.top -c -do "coverage save -onexit -directive -cvg -codeAll func_cov; run -all" +RUNS=5000 +InitialTask="ResetTask"
report:
vcover report -verbose func_cov > report_func_cov.txt
html:
vcover report -html func_cov
build: all
.PHONY: all clean setup compile opt release report html info
.DEFAULT_GOAL := build
clean:
rm -rf $(BUILD_DIR) $(TARGET)
@echo "Cleanup done!"
info:
@echo "Application:" $(TARGET)
@echo "Sources:" $(SRCS)