-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (42 loc) · 1.06 KB
/
Makefile
File metadata and controls
58 lines (42 loc) · 1.06 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
51
52
53
54
55
56
57
58
PRJ = futurecore
GEN_DIR = $(abspath hw/gen)
SIM_DIR = $(abspath sim/rust)
ARGS ?=
IMG ?=
verilog:
$(call git_commit, "generate verilog")
mkdir -p $(GEN_DIR)
TARGET_DIR=$(GEN_DIR) mill -i $(PRJ).runMain $(PRJ).Elaborate
verilog-legacy:
$(call git_commit, "generate verilog")
mkdir -p $(GEN_DIR)
TARGET_DIR=$(GEN_DIR) mill -i $(PRJ).runMain $(PRJ).legacy.Elaborate
sim:
$(call git_commit, "sim RTL")
make -C $(SIM_DIR) run ARGS="$(ARGS)" IMG=$(IMG)
test:
$(call git_commit, "test RTL")
mill -i __.test
formal:
$(call git_commit, "verify RTL")
mill -i $(PRJ).runMain $(PRJ).Verify
help:
mill -i $(PRJ).runMain Elaborate --help
reformat:
mill -i __.reformat
checkformat:
mill -i __.checkFormat
bsp:
mill -i mill.bsp.BSP/install
idea:
mill -i mill.idea.GenIdea/idea
clean:
@make -C $(SIM_DIR) clean
-rm $(GEN_DIR)/*
clean-verilog:
-rm $(GEN_DIR)/*
clean-all: clean
@make -C $(SIM_DIR) clean-all
-rm -r out simWorkspace .bsp .bloop .metals .idea
.PHONY: sim test verilog help reformat checkformat clean clean-verilog clean-all
-include ../Makefile