-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (34 loc) · 792 Bytes
/
Makefile
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
vivado = vivado -mode batch -source
script = compile.tcl
tb_script = waveform.tcl
constr = ./V707/constraints.xdc
VLOG_SRC_FILES = src/cpu_pkg.sv \
src/fpga_cores/cache/data_cache.sv \
src/fpga_cores/cache/LRU.sv \
src/ALUControl.sv \
src/ALU.sv \
src/Control.sv \
src/CPU.sv \
src/Execute.sv \
src/ForwardingUnit.sv \
src/HazardDetection.sv \
src/ImmGen.sv \
src/InstructionCache.sv \
src/InstructionDecode.sv \
src/InstructionFetch.sv \
src/Interfaces.sv \
src/Memory.sv \
src/RegisterFile.sv \
src/Writeback.sv \
tb/tb.sv
.PHONY: build clean
build:
$(vivado) $(script) -tclargs $(constr)
test:
vlog -sv $(VLOG_SRC_FILES)
vsim -do wave.do -do "run -all" +nowarn3691 tb
clean:
-rm -r build
-rm vivado*
-rm webtalk*
-rm x*