OpenCores
URL https://opencores.org/ocsvn/t48/t48/trunk

Subversion Repositories t48

[/] [t48/] [tags/] [rel_1_4/] [sim/] [rtl_sim/] [Makefile.ghdl] - Blame information for rev 303

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 arniml
##############################################################################
2 11 arniml
#
3
# Tool-specific Makefile for the GHDL compiler.
4
#
5 16 arniml
# It sets all variables needed for VHDL code compilation with Makefile.hier.
6 11 arniml
#
7
#
8 218 arniml
# Copyright (c) 2004-2006 Arnim Laeuger (arniml@opencores.org)
9 11 arniml
#
10
# All rights reserved
11
#
12
##############################################################################
13
 
14 93 arniml
# Generate diagnosis files for line coverage
15
#GCOV = -Wc,-ftest-coverage -Wc,-fprofile-arcs
16
GCOV =
17 11 arniml
 
18 116 arniml
# In case elaborating/linking throws error messages about undefined references
19
#GCOV_LINK = -Wl,-lgcov
20
GCOV_LINK =
21 93 arniml
 
22 9 arniml
LIB_WORK  = ghdl-work
23
 
24 116 arniml
CLEAN     = ghdl --clean --std=87 --workdir=$(LIB_WORK); \
25 232 arniml
            rm -f tb_*_c0 *.gcno *.gcda *.gcov *.hex UNUSED
26 9 arniml
 
27 93 arniml
ANALYZE   = ghdl -a --std=87 --workdir=$(LIB_WORK) $(GCOV)
28 9 arniml
 
29 218 arniml
ELABORATE = ghdl -e -Wl,-s --std=87 --workdir=$(LIB_WORK) $(GCOV_LINK)
30 9 arniml
 
31
MAKE_LIB  = mkdir -p $(LIB_WORK)
32
 
33 11 arniml
 
34
##############################################################################
35
# The analyze targets
36
#
37 303 arniml
upi41_db_bus_rtl_c0 = $(LIB_WORK)/upi41_db_bus-c.o
38
upi41_db_bus = $(LIB_WORK)/upi41_db_bus.o
39
upi41_core_struct_c0 = $(LIB_WORK)/upi41_core-c.o
40
upi41_core = $(LIB_WORK)/upi41_core.o
41
t8041a_notri_struct_c0 = $(LIB_WORK)/t8041a_notri-c.o
42
t8041a_notri = $(LIB_WORK)/t8041a_notri.o
43
t8041a_struct_c0 = $(LIB_WORK)/t8041a-c.o
44
t8041a = $(LIB_WORK)/t8041a.o
45
tb_t8041a_behav_c0 = $(LIB_WORK)/tb_t8041a-c.o
46
tb_t8041a = $(LIB_WORK)/tb_t8041a.o
47
 
48 259 arniml
tb_t8243_behav_c0 = $(LIB_WORK)/tb_t8243-c.o
49
tb_t8243 = $(LIB_WORK)/tb_t8243.o
50
tb_t8048_t8243_behav_c0 = $(LIB_WORK)/tb_t8048_t8243-c.o
51
tb_t8048_t8243 = $(LIB_WORK)/tb_t8048_t8243.o
52
t8243_struct_c0 = $(LIB_WORK)/t8243-c.o
53
t8243 = $(LIB_WORK)/t8243.o
54
t8243_async_notri_struct_c0 = $(LIB_WORK)/t8243_async_notri-c.o
55
t8243_async_notri = $(LIB_WORK)/t8243_async_notri.o
56
t8243_sync_notri_struct_c0 = $(LIB_WORK)/t8243_sync_notri-c.o
57
t8243_sync_notri = $(LIB_WORK)/t8243_sync_notri.o
58
t8243_core_rtl_c0 = $(LIB_WORK)/t8243_core-c.o
59
t8243_core = $(LIB_WORK)/t8243_core.o
60
t8243_comp_pack = $(LIB_WORK)/t8243_comp_pack-p.o
61 71 arniml
tb_t8039_behav_c0 = $(LIB_WORK)/tb_t8039-c.o
62
tb_t8039 = $(LIB_WORK)/tb_t8039.o
63 11 arniml
tb_t8048_behav_c0 = $(LIB_WORK)/tb_t8048-c.o
64
tb_t8048 = $(LIB_WORK)/tb_t8048.o
65
tb_behav_c0 = $(LIB_WORK)/tb-c.o
66
tb = $(LIB_WORK)/tb.o
67 79 arniml
if_timing_behav_c0 = $(LIB_WORK)/if_timing-c.o
68
if_timing = $(LIB_WORK)/if_timing.o
69 11 arniml
t8048_struct_c0 = $(LIB_WORK)/t8048-c.o
70
t8048 = $(LIB_WORK)/t8048.o
71 71 arniml
t8039_struct_c0 = $(LIB_WORK)/t8039-c.o
72
t8039 = $(LIB_WORK)/t8039.o
73 151 arniml
t48_system_comp_pack = $(LIB_WORK)/t48_system_comp_pack-p.o
74 154 arniml
t8039_notri_struct_c0 = $(LIB_WORK)/t8039_notri-c.o
75
t8039_notri = $(LIB_WORK)/t8039_notri.o
76 151 arniml
t8048_notri_struct_c0 = $(LIB_WORK)/t8048_notri-c.o
77
t8048_notri = $(LIB_WORK)/t8048_notri.o
78 9 arniml
t48_tb_pack = $(LIB_WORK)/t48_tb_pack-p.o
79
t48_pack = $(LIB_WORK)/t48_pack-p.o
80
t48_core_struct_c0 = $(LIB_WORK)/t48_core-c.o
81
t48_core = $(LIB_WORK)/t48_core.o
82
t48_core_comp_pack = $(LIB_WORK)/t48_core_comp_pack-p.o
83
t48_comp_pack = $(LIB_WORK)/t48_comp_pack-p.o
84
lpm_rom = $(LIB_WORK)/lpm_rom.o
85 232 arniml
t48_rom = $(LIB_WORK)/t48_rom-e.o
86
t48_rom_lpm_a = $(LIB_WORK)/t48_rom-lpm-a.o
87
t48_rom_lpm_c0 = $(LIB_WORK)/t48_rom-lpm-c.o
88
t49_rom = $(LIB_WORK)/t49_rom-e.o
89
t49_rom_lpm_a = $(LIB_WORK)/t49_rom-lpm-a.o
90
t49_rom_lpm_c0 = $(LIB_WORK)/t49_rom-lpm-c.o
91
generic_ram_ena = $(LIB_WORK)/generic_ram_ena.o
92
generic_ram_ena_rtl_c0 = $(LIB_WORK)/generic_ram_ena-c.o
93 9 arniml
lpm_ram_dq = $(LIB_WORK)/lpm_ram_dq.o
94
psw_rtl_c0 = $(LIB_WORK)/psw-c.o
95
psw = $(LIB_WORK)/psw.o
96
pmem_ctrl_rtl_c0 = $(LIB_WORK)/pmem_ctrl-c.o
97
pmem_ctrl_pack = $(LIB_WORK)/pmem_ctrl_pack-p.o
98
pmem_ctrl = $(LIB_WORK)/pmem_ctrl.o
99
p2_rtl_c0 = $(LIB_WORK)/p2-c.o
100
p2 = $(LIB_WORK)/p2.o
101
p1_rtl_c0 = $(LIB_WORK)/p1-c.o
102
p1 = $(LIB_WORK)/p1.o
103
timer_rtl_c0 = $(LIB_WORK)/timer-c.o
104
timer = $(LIB_WORK)/timer.o
105
int_rtl_c0 = $(LIB_WORK)/int-c.o
106
int = $(LIB_WORK)/int.o
107
dmem_ctrl_rtl_c0 = $(LIB_WORK)/dmem_ctrl-c.o
108
dmem_ctrl_pack = $(LIB_WORK)/dmem_ctrl_pack-p.o
109
dmem_ctrl = $(LIB_WORK)/dmem_ctrl.o
110
decoder_rtl_c0 = $(LIB_WORK)/decoder-c.o
111
decoder_pack = $(LIB_WORK)/decoder_pack-p.o
112
decoder = $(LIB_WORK)/decoder.o
113
db_bus_rtl_c0 = $(LIB_WORK)/db_bus-c.o
114
db_bus = $(LIB_WORK)/db_bus.o
115
cond_branch_rtl_c0 = $(LIB_WORK)/cond_branch-c.o
116
cond_branch_pack = $(LIB_WORK)/cond_branch_pack-p.o
117
cond_branch = $(LIB_WORK)/cond_branch.o
118
clock_ctrl_rtl_c0 = $(LIB_WORK)/clock_ctrl-c.o
119
clock_ctrl = $(LIB_WORK)/clock_ctrl.o
120
bus_mux_rtl_c0 = $(LIB_WORK)/bus_mux-c.o
121
bus_mux = $(LIB_WORK)/bus_mux.o
122
alu_rtl_c0 = $(LIB_WORK)/alu-c.o
123
alu_pack = $(LIB_WORK)/alu_pack-p.o
124
alu = $(LIB_WORK)/alu.o
125 11 arniml
#
126
##############################################################################
127 9 arniml
 
128
 
129 11 arniml
##############################################################################
130 75 arniml
# The default target for elaboration
131
#
132
.PHONY: all
133
all: elaborate
134
#
135
##############################################################################
136
 
137
 
138
##############################################################################
139 11 arniml
# The elaboration targets
140
#
141 259 arniml
tb_elab             = tb_behav_c0
142
tb_t8048_elab       = tb_t8048_behav_c0
143
tb_t8039_elab       = tb_t8039_behav_c0
144
tb_t8048_t8243_elab = tb_t8048_t8243_behav_c0
145
tb_t8243_elab       = tb_t8243_behav_c0
146 303 arniml
tb_t8041a_elab      = tb_t8041a_behav_c0
147 11 arniml
#
148
##############################################################################
149
 
150
 
151
##############################################################################
152
# Tool-specific elaboration rules
153
#
154 9 arniml
$(tb_elab) : $(tb_behav_c0)
155 218 arniml
        $(ELABORATE) tb_behav_c0
156 9 arniml
 
157
$(tb_t8048_elab) : $(tb_t8048_behav_c0)
158 218 arniml
        $(ELABORATE) tb_t8048_behav_c0
159 9 arniml
 
160 71 arniml
$(tb_t8039_elab) : $(tb_t8039_behav_c0)
161 218 arniml
        $(ELABORATE) tb_t8039_behav_c0
162 71 arniml
 
163 259 arniml
$(tb_t8048_t8243_elab) : $(tb_t8048_t8243_behav_c0)
164
        $(ELABORATE) tb_t8048_t8243_behav_c0
165
 
166
$(tb_t8243_elab) : $(tb_t8243_behav_c0)
167
        $(ELABORATE) tb_t8243_behav_c0
168
 
169 303 arniml
$(tb_t8041a_elab) : $(tb_t8041a_behav_c0)
170
        $(ELABORATE) tb_t8041a_behav_c0
171
 
172 9 arniml
.PHONY: elaborate
173 259 arniml
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab) \
174 303 arniml
           $(tb_t8048_t8243_elab) $(tb_t8243_elab) \
175
           $(tb_t8041a_elab)
176 11 arniml
#
177
##############################################################################
178 9 arniml
 
179 11 arniml
 
180 9 arniml
include Makefile.hier

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.