-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.txt
55 lines (38 loc) · 1.32 KB
/
Makefile.txt
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
GHDL=ghdl
GHDL_OP = -v --ieee=synopsys -fexplicit
C_MOD_DIR = ../C_model/
all : main_tb
ram.o : ram.vhdl
${GHDL} -a ${GHDL_OP} ram.vhdl
icache.o : icache.vhdl ram.o
${GHDL} -a ${GHDL_OP} icache.vhdl
dcache.o : dcache.vhdl ram.o
${GHDL} -a ${GHDL_OP} dcache.vhdl
main_tb.o : main_tb.vhdl icache.o dcache.o ram.o
${GHDL} -a ${GHDL_OP} main_tb.vhdl
arm_core.o : arm_core.vhdl ifetch.o decod.o exec.o mem.o
${GHDL} -a ${GHDL_OP} arm_core.vhdl
ifetch.o : ifetch.vhdl fifo_32b.o
${GHDL} -a ${GHDL_OP} ifetch.vhdl
decod.o : decod.vhdl fifo_32b.o fifo_127b.o reg.o
${GHDL} -a ${GHDL_OP} decod.vhdl
reg.o : reg.vhdl
${GHDL} -a ${GHDL_OP} reg.vhdl
exec.o : exec.vhdl fifo_72b.o alu.o shifter.o
${GHDL} -a ${GHDL_OP} exec.vhdl
fifo_72b.o : fifo_72b.vhdl
${GHDL} -a ${GHDL_OP} fifo_72b.vhdl
fifo_32b.o : fifo_32b.vhdl
${GHDL} -a ${GHDL_OP} fifo_32b.vhdl
fifo_127b.o : fifo_127b.vhdl
${GHDL} -a ${GHDL_OP} fifo_127b.vhdl
alu.o : alu.vhdl
${GHDL} -a ${GHDL_OP} alu.vhdl
shifter.o : shifter.vhdl
${GHDL} -a ${GHDL_OP} shifter.vhdl
mem.o : mem.vhdl
${GHDL} -a ${GHDL_OP} mem.vhdl
main_tb : main_tb.o ram.o icache.o dcache.o arm_core.o ${C_MOD_DIR}/lib/arm_ghdl.o
${GHDL} -e ${GHDL_OP} -Wl,${C_MOD_DIR}/lib/mem.o -Wl,${C_MOD_DIR}/lib/arm_ghdl.o -Wl,${C_MOD_DIR}/ReadElf/lib/ElfObj.o main_tb
clean :
rm *.o main_tb work-obj93.cf *.vcd