-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 926 Bytes
/
Makefile
File metadata and controls
37 lines (30 loc) · 926 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
SCRIPT = fpga/arty-a7-100/create_project.tcl # Arty A7-100
# SCRIPT = fpga/basys-3/create_project.tcl # Basys 3
SRCS = alu.sv \
control_interface.sv \
controler.sv \
datapath.sv \
mux.sv \
package_alu.sv \
package_control_data.sv \
package_gpr_destination_selector.sv \
package_ir_source_selector.sv \
package_lbus_source_selector.sv \
package_machine_data.sv \
package_rbus_source_selector.sv \
package_shifter.sv \
shifter.sv
TESTS = tb_alu.sv \
tb_controler.sv \
tb_datapath.sv \
tb_mux.sv \
tb_shifter.sv
.PHONY: all test clean
all: vivado
vivado: $(SCRIPT) $(addprefix src/, $(SRCS))
vivado -mode tcl -source $(SCRIPT)
test: vunit_out
vunit_out: script/unittest.py $(addprefix src/, $(SRCS)) $(addprefix tb/, $(TESTS))
python script/unittest.py
clean:
rm -rf vivado *.jou *.log vunit_out