-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·38 lines (27 loc) · 867 Bytes
/
Makefile
File metadata and controls
executable file
·38 lines (27 loc) · 867 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
IVERILOG=iverilog -I ./rtl -y ./rtl
VVP=vvp
ALL_V_FILES := $(wildcard rtl/*.v)
RTL_V_FILES := $(filter-out rtl/tb_%.v, $(ALL_V_FILES))
TESTBENCHES = data_recovery_unit manchester_decoder2
tb: clean $(addsuffix .vcd, $(addprefix tb_, $(TESTBENCHES)))
tb_%: rtl/tb_%.v
$(IVERILOG) -o $@ $^
%.vcd: %
$(VVP) $<
.PHONY: clean
clean:
rm -f tb_* *.vcd
find . -name "._*" -exec rm {} \;
rm -rf vivado.*
rm -rf vivado*
rm -rf xil_test_receiver
rm -rf gw_test_tx
PHONY: xil_project xil_synth xil_impl
xil_project:
vivado -mode batch -s tcl/xil_receiver.tcl
xil_synth:
vivado -mode batch -s tcl/xil_synth.tcl xil_test_receiver/xil_test_receiver.xpr
xil_impl:
vivado -mode batch -s tcl/xil_impl.tcl xil_test_receiver/xil_test_receiver.xpr
verible.filelist: rtl/*.v rtl/*.vh
find . -name "*.sv" -o -name "*.svh" -o -name "*.v" | sort > verible.filelist