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

Subversion Repositories t48

[/] [t48/] [tags/] [rel_1_4/] [sim/] [rtl_sim/] [Makefile.hier] - Blame information for rev 151

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

Line No. Rev Author Line
1 11 arniml
##############################################################################
2
#
3
# Core Makefile for the T48 project.
4
#
5
# The dependencies for all VHDL source files are stored here.
6
# Include this file from within the tool-specific Makefile. See
7
# Makefile.ghdl for an example how to use it.
8
#
9
# The following environment/make variables are expected. Set them in the
10
# tool-specific Makefile or from the shell.
11
#
12 31 arniml
#  PROJECT_DIR : Project base directory
13
#                Set in sw/init_project.sh
14 11 arniml
#
15 31 arniml
#  LIB_WORK    : object directory for the work library
16
#                /t48/sim/rtl_sim/
17 11 arniml
#
18 31 arniml
#  MAKE_LIB    : command to create the work library
19 11 arniml
#
20 31 arniml
#  ANALYZE     : command calling the tool-specific compiler for analysis of
21
#                the VHDL code
22 11 arniml
#
23 31 arniml
#  CLEAN       : command to clean the tool-object directory
24 11 arniml
#
25
#  Various VHDL design units.
26
#
27
#
28
# Copyright (c) 2004, Arnim Laeuger (arniml@opencores.org)
29
#
30
# All rights reserved
31
#
32
##############################################################################
33 9 arniml
 
34 31 arniml
RTL_DIR   = $(PROJECT_DIR)/rtl/vhdl
35
BENCH_DIR = $(PROJECT_DIR)/bench/vhdl
36 9 arniml
 
37
 
38
$(LIB_WORK):
39
        $(MAKE_LIB)
40
 
41
.PHONY: clean
42
clean:
43
        $(CLEAN); \
44 71 arniml
        rm -rf *~
45 9 arniml
 
46
.PHONY: analyze
47
analyze: $(LIB_WORK) $(tb_behav_c0) $(tb_t8048_behav_c0)
48
 
49
 
50
$(alu) : $(RTL_DIR)/alu.vhd \
51
                $(alu_pack) \
52
                $(t48_pack) \
53
                $(t48_tb_pack)
54
        $(ANALYZE) $(RTL_DIR)/alu.vhd
55
 
56
$(alu_pack) : $(RTL_DIR)/alu_pack-p.vhd \
57
                $(t48_pack)
58
        $(ANALYZE) $(RTL_DIR)/alu_pack-p.vhd
59
 
60
$(alu_rtl_c0) : $(RTL_DIR)/alu-c.vhd \
61
                $(alu)
62
        $(ANALYZE) $(RTL_DIR)/alu-c.vhd
63
 
64
$(bus_mux) : $(RTL_DIR)/bus_mux.vhd \
65
                $(t48_pack)
66
        $(ANALYZE) $(RTL_DIR)/bus_mux.vhd
67
 
68
$(bus_mux_rtl_c0) : $(RTL_DIR)/bus_mux-c.vhd \
69
                $(bus_mux-rtl) \
70
                $(bus_mux)
71
        $(ANALYZE) $(RTL_DIR)/bus_mux-c.vhd
72
 
73
$(clock_ctrl) : $(RTL_DIR)/clock_ctrl.vhd \
74
                $(t48_pack)
75
        $(ANALYZE) $(RTL_DIR)/clock_ctrl.vhd
76
 
77
$(clock_ctrl_rtl_c0) : $(RTL_DIR)/clock_ctrl-c.vhd \
78
                $(clock_ctrl)
79
        $(ANALYZE) $(RTL_DIR)/clock_ctrl-c.vhd
80
 
81
$(cond_branch) : $(RTL_DIR)/cond_branch.vhd \
82
                $(cond_branch_pack) \
83
                $(t48_pack)
84
        $(ANALYZE) $(RTL_DIR)/cond_branch.vhd
85
 
86
$(cond_branch_pack) : $(RTL_DIR)/cond_branch_pack-p.vhd
87
        $(ANALYZE) $(RTL_DIR)/cond_branch_pack-p.vhd
88
 
89
$(cond_branch_rtl_c0) : $(RTL_DIR)/cond_branch-c.vhd \
90
                $(cond_branch)
91
        $(ANALYZE) $(RTL_DIR)/cond_branch-c.vhd
92
 
93
$(db_bus) : $(RTL_DIR)/db_bus.vhd \
94
                $(t48_pack)
95
        $(ANALYZE) $(RTL_DIR)/db_bus.vhd
96
 
97
$(db_bus_rtl_c0) : $(RTL_DIR)/db_bus-c.vhd \
98
                $(db_bus)
99
        $(ANALYZE) $(RTL_DIR)/db_bus-c.vhd
100
 
101
$(decoder) : $(RTL_DIR)/decoder.vhd \
102
                $(pmem_ctrl_pack) \
103
                $(dmem_ctrl_pack) \
104
                $(cond_branch_pack) \
105
                $(alu_pack) \
106
                $(t48_pack) \
107
                $(t48_comp_pack) \
108 55 arniml
                $(t48_tb_pack) \
109 9 arniml
                $(decoder_pack)
110
        $(ANALYZE) $(RTL_DIR)/decoder.vhd
111
 
112
$(decoder_pack) : $(RTL_DIR)/decoder_pack-p.vhd
113
        $(ANALYZE) $(RTL_DIR)/decoder_pack-p.vhd
114
 
115
$(decoder_rtl_c0) : $(RTL_DIR)/decoder-c.vhd \
116
                $(opc_decoder_rtl_c0) \
117
                $(int_rtl_c0) \
118
                $(decoder)
119
        $(ANALYZE) $(RTL_DIR)/decoder-c.vhd
120
 
121
$(dmem_ctrl) : $(RTL_DIR)/dmem_ctrl.vhd \
122
                $(dmem_ctrl_pack) \
123
                $(t48_pack)
124
        $(ANALYZE) $(RTL_DIR)/dmem_ctrl.vhd
125
 
126
$(dmem_ctrl_pack) : $(RTL_DIR)/dmem_ctrl_pack-p.vhd
127
        $(ANALYZE) $(RTL_DIR)/dmem_ctrl_pack-p.vhd
128
 
129
$(dmem_ctrl_rtl_c0) : $(RTL_DIR)/dmem_ctrl-c.vhd \
130
                $(dmem_ctrl)
131
        $(ANALYZE) $(RTL_DIR)/dmem_ctrl-c.vhd
132
 
133
$(int) : $(RTL_DIR)/int.vhd \
134
                $(t48_pack)
135
        $(ANALYZE) $(RTL_DIR)/int.vhd
136
 
137
$(int_rtl_c0) : $(RTL_DIR)/int-c.vhd \
138
                $(int)
139
        $(ANALYZE) $(RTL_DIR)/int-c.vhd
140
 
141
$(lpm_ram_dq) : $(RTL_DIR)/system/lpm_ram_dq.vhd
142
        $(ANALYZE) $(RTL_DIR)/system/lpm_ram_dq.vhd
143
 
144
$(lpm_rom) : $(RTL_DIR)/system/lpm_rom.vhd
145
        $(ANALYZE) $(RTL_DIR)/system/lpm_rom.vhd
146
 
147
$(opc_decoder) : $(RTL_DIR)/opc_decoder.vhd \
148
                $(decoder_pack) \
149
                $(t48_pack) \
150
                $(pmem_ctrl_pack) \
151
                $(dmem_ctrl_pack) \
152
                $(cond_branch_pack) \
153
                $(alu_pack) \
154
                $(t48_comp_pack)
155
        $(ANALYZE) $(RTL_DIR)/opc_decoder.vhd
156
 
157
$(opc_decoder_rtl_c0) : $(RTL_DIR)/opc_decoder-c.vhd \
158
                $(opc_table_rtl_c0) \
159
                $(opc_decoder)
160
        $(ANALYZE) $(RTL_DIR)/opc_decoder-c.vhd
161
 
162
$(opc_table) : $(RTL_DIR)/opc_table.vhd \
163
                $(decoder_pack) \
164
                $(t48_pack)
165
        $(ANALYZE) $(RTL_DIR)/opc_table.vhd
166
 
167
$(opc_table_rtl_c0) : $(RTL_DIR)/opc_table-c.vhd \
168
                $(opc_table)
169
        $(ANALYZE) $(RTL_DIR)/opc_table-c.vhd
170
 
171
$(p1) : $(RTL_DIR)/p1.vhd \
172
                $(t48_pack)
173
        $(ANALYZE) $(RTL_DIR)/p1.vhd
174
 
175
$(p1_rtl_c0) : $(RTL_DIR)/p1-c.vhd \
176
                $(p1)
177
        $(ANALYZE) $(RTL_DIR)/p1-c.vhd
178
 
179
$(p2) : $(RTL_DIR)/p2.vhd \
180
                $(t48_pack)
181
        $(ANALYZE) $(RTL_DIR)/p2.vhd
182
 
183
$(p2_rtl_c0) : $(RTL_DIR)/p2-c.vhd \
184
                $(p2)
185
        $(ANALYZE) $(RTL_DIR)/p2-c.vhd
186
 
187
$(pmem_ctrl) : $(RTL_DIR)/pmem_ctrl.vhd \
188
                $(pmem_ctrl_pack) \
189
                $(t48_pack)
190
        $(ANALYZE) $(RTL_DIR)/pmem_ctrl.vhd
191
 
192
$(pmem_ctrl_pack) : $(RTL_DIR)/pmem_ctrl_pack-p.vhd
193
        $(ANALYZE) $(RTL_DIR)/pmem_ctrl_pack-p.vhd
194
 
195
$(pmem_ctrl_rtl_c0) : $(RTL_DIR)/pmem_ctrl-c.vhd \
196
                $(pmem_ctrl)
197
        $(ANALYZE) $(RTL_DIR)/pmem_ctrl-c.vhd
198
 
199
$(psw) : $(RTL_DIR)/psw.vhd \
200
                $(t48_pack)
201
        $(ANALYZE) $(RTL_DIR)/psw.vhd
202
 
203
$(psw_rtl_c0) : $(RTL_DIR)/psw-c.vhd \
204
                $(psw)
205
        $(ANALYZE) $(RTL_DIR)/psw-c.vhd
206
 
207
$(syn_ram) : $(RTL_DIR)/system/syn_ram-e.vhd
208
        $(ANALYZE) $(RTL_DIR)/system/syn_ram-e.vhd
209
 
210
$(syn_ram-lpm-a) : $(RTL_DIR)/system/syn_ram-lpm-a.vhd \
211
                $(syn_ram)
212
        $(ANALYZE) $(RTL_DIR)/system/syn_ram-lpm-a.vhd
213
 
214
$(syn_ram_lpm_c0) : $(RTL_DIR)/system/syn_ram-lpm-c.vhd \
215
                $(lpm_ram_dq) \
216
                $(syn_ram-lpm-a)
217
        $(ANALYZE) $(RTL_DIR)/system/syn_ram-lpm-c.vhd
218
 
219
$(syn_rom) : $(RTL_DIR)/system/syn_rom-e.vhd
220
        $(ANALYZE) $(RTL_DIR)/system/syn_rom-e.vhd
221
 
222
$(syn_rom-lpm-a) : $(RTL_DIR)/system/syn_rom-lpm-a.vhd \
223
                $(syn_rom)
224
        $(ANALYZE) $(RTL_DIR)/system/syn_rom-lpm-a.vhd
225
 
226
$(syn_rom_lpm_c0) : $(RTL_DIR)/system/syn_rom-lpm-c.vhd \
227
                $(lpm_rom) \
228
                $(syn_rom-lpm-a)
229
        $(ANALYZE) $(RTL_DIR)/system/syn_rom-lpm-c.vhd
230
 
231
$(t48_comp_pack) : $(RTL_DIR)/t48_comp_pack-p.vhd \
232
                $(pmem_ctrl_pack) \
233
                $(dmem_ctrl_pack) \
234
                $(decoder_pack) \
235
                $(cond_branch_pack) \
236
                $(t48_pack) \
237
                $(alu_pack)
238
        $(ANALYZE) $(RTL_DIR)/t48_comp_pack-p.vhd
239
 
240
$(t48_core) : $(RTL_DIR)/t48_core.vhd \
241
                $(decoder_pack) \
242
                $(t48_comp_pack) \
243
                $(pmem_ctrl_pack) \
244
                $(dmem_ctrl_pack) \
245
                $(cond_branch_pack) \
246
                $(t48_pack) \
247
                $(alu_pack)
248
        $(ANALYZE) $(RTL_DIR)/t48_core.vhd
249
 
250
$(t48_core_comp_pack) : $(RTL_DIR)/t48_core_comp_pack-p.vhd
251
        $(ANALYZE) $(RTL_DIR)/t48_core_comp_pack-p.vhd
252
 
253
$(t48_core_struct_c0) : $(RTL_DIR)/t48_core-c.vhd \
254
                $(psw_rtl_c0) \
255
                $(pmem_ctrl_rtl_c0) \
256
                $(p2_rtl_c0) \
257
                $(p1_rtl_c0) \
258
                $(timer_rtl_c0) \
259
                $(dmem_ctrl_rtl_c0) \
260
                $(decoder_rtl_c0) \
261
                $(db_bus_rtl_c0) \
262
                $(cond_branch_rtl_c0) \
263
                $(clock_ctrl_rtl_c0) \
264
                $(bus_mux_rtl_c0) \
265
                $(alu_rtl_c0) \
266
                $(decoder_pack) \
267
                $(t48_comp_pack) \
268
                $(pmem_ctrl_pack) \
269
                $(dmem_ctrl_pack) \
270
                $(cond_branch_pack) \
271
                $(t48_pack) \
272
                $(alu_pack) \
273
                $(t48_core-struct) \
274
                $(t48_core)
275
        $(ANALYZE) $(RTL_DIR)/t48_core-c.vhd
276
 
277
$(t48_pack) : $(RTL_DIR)/t48_pack-p.vhd
278
        $(ANALYZE) $(RTL_DIR)/t48_pack-p.vhd
279
 
280
$(t48_tb_pack) : $(RTL_DIR)/t48_tb_pack-p.vhd
281
        $(ANALYZE) $(RTL_DIR)/t48_tb_pack-p.vhd
282
 
283 151 arniml
$(t8048_notri) : $(RTL_DIR)/system/t8048_notri.vhd \
284 9 arniml
                $(t48_core_comp_pack)
285 151 arniml
        $(ANALYZE) $(RTL_DIR)/system/t8048_notri.vhd
286 9 arniml
 
287 151 arniml
$(t8048_notri_struct_c0) : $(RTL_DIR)/system/t8048_notri-c.vhd \
288 9 arniml
                $(t48_core_struct_c0) \
289
                $(syn_ram_lpm_c0) \
290
                $(syn_rom_lpm_c0) \
291
                $(t48_core_comp_pack) \
292 151 arniml
                $(t8048_notri)
293
        $(ANALYZE) $(RTL_DIR)/system/t8048_notri-c.vhd
294
 
295
$(t48_system_comp_pack) : $(RTL_DIR)/system/t48_system_comp_pack-p.vhd
296
        $(ANALYZE) $(RTL_DIR)/system/t48_system_comp_pack-p.vhd
297
 
298
$(t8048) : $(RTL_DIR)/system/t8048.vhd \
299
                $(t48_system_comp_pack)
300
        $(ANALYZE) $(RTL_DIR)/system/t8048.vhd
301
 
302
$(t8048_struct_c0) : $(RTL_DIR)/system/t8048-c.vhd \
303
                $(t8048_notri_struct_c0) \
304 9 arniml
                $(t8048)
305
        $(ANALYZE) $(RTL_DIR)/system/t8048-c.vhd
306
 
307 71 arniml
$(t8039) : $(RTL_DIR)/system/t8039.vhd \
308
                $(t48_core_comp_pack)
309
        $(ANALYZE) $(RTL_DIR)/system/t8039.vhd
310
 
311
$(t8039_struct_c0) : $(RTL_DIR)/system/t8039-c.vhd \
312
                $(t48_core_struct_c0) \
313
                $(syn_ram_lpm_c0) \
314
                $(t48_core_comp_pack) \
315
                $(t8039)
316
        $(ANALYZE) $(RTL_DIR)/system/t8039-c.vhd
317
 
318 79 arniml
$(if_timing) : $(BENCH_DIR)/if_timing.vhd
319
        $(ANALYZE) $(BENCH_DIR)/if_timing.vhd
320
 
321
$(if_timing_behav_c0) : $(BENCH_DIR)/if_timing-c.vhd \
322
                $(if_timing)
323
        $(ANALYZE) $(BENCH_DIR)/if_timing-c.vhd
324
 
325 9 arniml
$(tb) : $(BENCH_DIR)/tb.vhd \
326
                $(t48_tb_pack) \
327
                $(t48_core_comp_pack)
328
        $(ANALYZE) $(BENCH_DIR)/tb.vhd
329
 
330
$(tb_behav_c0) : $(BENCH_DIR)/tb-c.vhd \
331 79 arniml
                $(if_timing_behav_c0) \
332 9 arniml
                $(t48_core_struct_c0) \
333
                $(syn_ram_lpm_c0) \
334 112 arniml
                $(lpm_rom) \
335 9 arniml
                $(t48_tb_pack) \
336
                $(t48_core_comp_pack) \
337
                $(tb-behav) \
338
                $(tb)
339
        $(ANALYZE) $(BENCH_DIR)/tb-c.vhd
340
 
341 71 arniml
$(tb_t8039) : $(BENCH_DIR)/tb_t8039.vhd \
342
                $(t48_tb_pack) \
343
                $(t48_core_comp_pack)
344
        $(ANALYZE) $(BENCH_DIR)/tb_t8039.vhd
345
 
346
$(tb_t8039_behav_c0) : $(BENCH_DIR)/tb_t8039-c.vhd \
347
                $(t8039_struct_c0) \
348
                $(syn_ram_lpm_c0) \
349
                $(t48_tb_pack) \
350
                $(t48_core_comp_pack) \
351
                $(tb_t8039)
352
        $(ANALYZE) $(BENCH_DIR)/tb_t8039-c.vhd
353
 
354 9 arniml
$(tb_t8048) : $(BENCH_DIR)/tb_t8048.vhd \
355
                $(t48_tb_pack) \
356
                $(t48_core_comp_pack)
357
        $(ANALYZE) $(BENCH_DIR)/tb_t8048.vhd
358
 
359
$(tb_t8048_behav_c0) : $(BENCH_DIR)/tb_t8048-c.vhd \
360
                $(t8048_struct_c0) \
361
                $(syn_ram_lpm_c0) \
362
                $(t48_tb_pack) \
363
                $(t48_core_comp_pack) \
364
                $(tb_t8048)
365
        $(ANALYZE) $(BENCH_DIR)/tb_t8048-c.vhd
366
 
367
$(timer) : $(RTL_DIR)/timer.vhd \
368
                $(t48_pack)
369
        $(ANALYZE) $(RTL_DIR)/timer.vhd
370
 
371
$(timer_rtl_c0) : $(RTL_DIR)/timer-c.vhd \
372
                $(timer-rtl) \
373
                $(t48_pack) \
374
                $(timer)
375
        $(ANALYZE) $(RTL_DIR)/timer-c.vhd

powered by: WebSVN 2.1.0

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