-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (26 loc) · 1.43 KB
/
Makefile
File metadata and controls
30 lines (26 loc) · 1.43 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
################################ Makefile for washing machine controller Project
# =============================================================================
# Project Paths
rtl_path = "F:/washing_machine/rtl"
tb_path = "F:/washing_machine/tb"
work_path = "../questa_directory"
# =============================================================================
# FLAGS
SHOW_WAVEFORM_FLAG =1
# =============================================================================
compile_all:
@vlog +cover+bcs -work $(work_path)/work -vopt -v +incdir+$(rtl_path)/+$(tb_path)/ -stats=none $(rtl_path)/*.v $(tb_path)/*.v
compile_rtl:
@vlog -work $(work_path)/work -vopt -v +incdir+$(rtl_path)/+$(tb_path)/ -stats=none $(rtl_path)/*.v
run:
ifeq ($(SHOW_WAVEFORM_FLAG), 1)
@vsim -coverage $(work_path)/work.tb_washing_machine_controller -voptargs=+acc -l $(work_path)/transcript_vsim.txt -do "source wave.do; run -all; coverage report -codeAll -cvg -verbose"
else
@vsim -c $(work_path)/work.tb_washing_machine_controller -voptargs=+acc -l $(work_path)/transcript_vsim.txt -do "run -all"
endif
################## Target for Makefile help
help:
@echo ============================================================================
@echo " compile_all => Compile TB and DUT files "
@echo " run => Run the simulation "
@echo ============================================================================