forked from ryuz/study_uvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 791 Bytes
/
Makefile
File metadata and controls
47 lines (38 loc) · 791 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
SHELL := /bin/bash
TOP_MODULE := tb
TEST_NAME := mem_test
SRC_FILES += ./DUT/memory.sv
SRC_FILES += ./Agent/mem_agent_pkg.sv ./Agent/mem_if.sv
SRC_FILES += ./Env/mem_env_pkg.sv
SRC_FILES += ./Seq/mem_sequence_lib_pkg.sv
SRC_FILES += ./Test/mem_test_lib_pkg.sv
SRC_FILES += ./TB/tb.sv
INC_FILES += $(shell ls ./Agent/*.svh)
INC_FILES += $(shell ls ./Env/*.svh)
SIMULATOR := DSIM
ifdef XILINX_VIVADO
SIMULATOR := XSIM
endif
ifdef DSIM_HOME
SIMULATOR := DSIM
endif
ifdef USE_XSIM
SIMULATOR := XSIM
endif
ifdef USE_DSIM
SIMULATOR := DSIM
endif
ifeq ($(SIMULATOR),XSIM)
include xsim.mk
else
include dsim.mk
endif
all : build run
run_% :
make run TEST_NAME=$*
## Manual Invoke
dsim_% :
make $* USE_DSIM=1
xsim_% :
make $* USE_XSIM=1
clean_all : xsim_clean dsim_clean