-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathiob_lib.mk
51 lines (39 loc) · 1.01 KB
/
iob_lib.mk
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
#PATHS
#paths that need disambiguation by prefix
HW_DIR:=$(ROOT_DIR)/hardware
SW_DIR:=$(ROOT_DIR)/software
#paths that need no disambiguation
REMOTE_ROOT_DIR ?= sandbox/$(TOP_MODULE)
SIM_DIR ?=$(HW_DIR)/simulation/$(SIMULATOR)
#FPGA_DIR ?=$(shell find $(ROOT_DIR)/hardware -name $(FPGA_FAMILY))
FPGA_DIR ?=$(HW_DIR)/fpga
DOC_DIR ?=$(ROOT_DIR)/document/$(DOC)
# submodule paths
LIB_DIR ?=$(ROOT_DIR)/submodules/LIB
MEM_DIR ?=$(ROOT_DIR)/submodules/MEM
AXI_DIR ?=$(ROOT_DIR)/submodules/AXI
#DEFAULT SIMULATOR
SIMULATOR ?=icarus
SIMULATOR_LIST ?=icarus verilator
#DEFAULT FPGA FAMILY
FPGA_FAMILY ?=CYCLONEV-GT
FPGA_FAMILY_LIST ?=CYCLONEV-GT XCKU
#DEFAULT DOC
DOC ?=pb
DOC_LIST ?=pb ug
# VERSION
VERSION ?=0.1
VLINE ?="V$(VERSION)"
$(TOP_MODULE)_version.txt:
ifeq ($(VERSION),)
$(error "variable VERSION is not set")
endif
echo $(VLINE) > version.txt
gen-clean:
@rm -f *# *~
clean-testlog:
@rm -f test.log
clean-all: clean-testlog clean
hw-clean: gen-clean
@rm -f *.vh
.PHONY: gen-clean clean-testlog clean-all hw-clean