URL
https://opencores.org/ocsvn/t400/t400/trunk
Subversion Repositories t400
[/] [t400/] [trunk/] [sim/] [rtl_sim/] [Makefile] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
##############################################################################
#
# Makefile for the T400 Core project.
#
# The dependencies for all VHDL source files are stored here.
#
# Copyright (c) 2006, Arnim Laeuger (arnim.laeuger@gmx.net)
#
# All rights reserved
#
##############################################################################
PROJECT_DIR = ../..
RTL_DIR = $(PROJECT_DIR)/rtl/vhdl
TECH_DIR = $(PROJECT_DIR)/rtl/tech/cyclone
GTECH_DIR = $(PROJECT_DIR)/rtl/tech/generic
SYSTEM_DIR = $(RTL_DIR)/system
BENCH_DIR = $(PROJECT_DIR)/bench/vhdl
ANALYZE=ghdl -a --std=87 --workdir=work
ELABORATE=ghdl -e -Wl,-s --std=87 --workdir=work
.PHONY: all
all: work elaborate
work:
mkdir work
##############################################################################
# Technology dependent parts
#
work/t400_tech_comp_pack-p.o: $(PROJECT_DIR)/rtl/tech/t400_tech_comp_pack-p.vhd
$(ANALYZE) $<
work/t400_por.o: $(TECH_DIR)/t400_por.vhd
$(ANALYZE) $<
work/t400_por-c.o: $(TECH_DIR)/t400_por-c.vhd \
work/t400_por.o
$(ANALYZE) $<
work/generic_ram.o: $(GTECH_DIR)/generic_ram.vhd
$(ANALYZE) $<
work/generic_ram-c.o: $(GTECH_DIR)/generic_ram-c.vhd \
work/generic_ram.o
$(ANALYZE) $<
#
##############################################################################
##############################################################################
# T400 Core
#
work/t400_opt_pack-p.o: $(RTL_DIR)/t400_opt_pack-p.vhd
$(ANALYZE) $<
work/t400_pack-p.o: $(RTL_DIR)/t400_pack-p.vhd
$(ANALYZE) $<
work/t400_comp_pack-p.o: $(RTL_DIR)/t400_comp_pack-p.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o
$(ANALYZE) $<
work/t400_io_pack-p.o: $(RTL_DIR)/t400_io_pack-p.vhd \
work/t400_opt_pack-p.o
$(ANALYZE) $<
work/t400_clkgen.o: $(RTL_DIR)/t400_clkgen.vhd \
work/t400_opt_pack-p.o
$(ANALYZE) $<
work/t400_clkgen-c.o: $(RTL_DIR)/t400_clkgen-c.vhd \
work/t400_clkgen.o
$(ANALYZE) $<
work/t400_reset.o: $(RTL_DIR)/t400_reset.vhd \
work/t400_opt_pack-p.o
$(ANALYZE) $<
work/t400_reset-c.o: $(RTL_DIR)/t400_reset-c.vhd \
work/t400_reset.o
$(ANALYZE) $<
work/t400_stack.o: $(RTL_DIR)/t400_stack.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o
$(ANALYZE) $<
work/t400_stack-c.o: $(RTL_DIR)/t400_stack-c.vhd \
work/t400_stack.o
$(ANALYZE) $<
work/t400_pmem_ctrl.o: $(RTL_DIR)/t400_pmem_ctrl.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o
$(ANALYZE) $<
work/t400_pmem_ctrl-c.o: $(RTL_DIR)/t400_pmem_ctrl-c.vhd \
work/t400_pmem_ctrl.o
$(ANALYZE) $<
work/t400_alu.o: $(RTL_DIR)/t400_alu.vhd \
work/t400_pack-p.o
$(ANALYZE) $<
work/t400_alu-c.o: $(RTL_DIR)/t400_alu-c.vhd \
work/t400_alu.o
$(ANALYZE) $<
work/t400_dmem_ctrl.o: $(RTL_DIR)/t400_dmem_ctrl.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o
$(ANALYZE) $<
work/t400_dmem_ctrl-c.o: $(RTL_DIR)/t400_dmem_ctrl-c.vhd \
work/t400_dmem_ctrl.o
$(ANALYZE) $<
work/t400_opc_table.o: $(RTL_DIR)/t400_opc_table.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o
$(ANALYZE) $<
work/t400_opc_table-c.o: $(RTL_DIR)/t400_opc_table-c.vhd \
work/t400_opc_table.o
$(ANALYZE) $<
work/t400_skip.o: $(RTL_DIR)/t400_skip.vhd \
work/t400_pack-p.o
$(ANALYZE) $<
work/t400_skip-c.o: $(RTL_DIR)/t400_skip-c.vhd \
work/t400_skip.o
$(ANALYZE) $<
work/t400_decoder.o: $(RTL_DIR)/t400_decoder.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o \
work/t400_comp_pack-p.o
$(ANALYZE) $<
work/t400_decoder-c.o: $(RTL_DIR)/t400_decoder-c.vhd \
work/t400_opc_table-c.o \
work/t400_decoder.o
$(ANALYZE) $<
work/t400_io_l.o: $(RTL_DIR)/t400_io_l.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o \
work/t400_io_pack-p.o
$(ANALYZE) $<
work/t400_io_l-c.o: $(RTL_DIR)/t400_io_l-c.vhd \
work/t400_io_l.o
$(ANALYZE) $<
work/t400_io_d.o: $(RTL_DIR)/t400_io_d.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o \
work/t400_io_pack-p.o
$(ANALYZE) $<
work/t400_io_d-c.o: $(RTL_DIR)/t400_io_d-c.vhd \
work/t400_io_d.o
$(ANALYZE) $<
work/t400_io_g.o: $(RTL_DIR)/t400_io_g.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o \
work/t400_io_pack-p.o
$(ANALYZE) $<
work/t400_io_g-c.o: $(RTL_DIR)/t400_io_g-c.vhd \
work/t400_io_g.o
$(ANALYZE) $<
work/t400_sio.o: $(RTL_DIR)/t400_sio.vhd \
work/t400_pack-p.o \
work/t400_opt_pack-p.o
$(ANALYZE) $<
work/t400_sio-c.o: $(RTL_DIR)/t400_sio-c.vhd \
work/t400_sio.o
$(ANALYZE) $<
work/t400_core.o: $(RTL_DIR)/t400_core.vhd \
work/t400_opt_pack-p.o \
work/t400_pack-p.o \
work/t400_comp_pack-p.o
$(ANALYZE) $<
work/t400_core-c.o: $(RTL_DIR)/t400_core-c.vhd \
work/t400_clkgen-c.o \
work/t400_reset-c.o \
work/t400_pmem_ctrl-c.o \
work/t400_dmem_ctrl-c.o \
work/t400_decoder-c.o \
work/t400_skip-c.o \
work/t400_alu-c.o \
work/t400_stack-c.o \
work/t400_io_l-c.o \
work/t400_io_d-c.o \
work/t400_io_g-c.o \
work/t400_sio-c.o \
work/t400_core.o
$(ANALYZE) $<
work/t400_core_comp_pack-p.o: $(RTL_DIR)/t400_core_comp_pack-p.vhd \
work/t400_opt_pack-p.o
$(ANALYZE) $<
#
##############################################################################
##############################################################################
# T400 Systems
#
work/t410_rom-e.o: $(SYSTEM_DIR)/t410_rom-e.vhd
$(ANALYZE) $<
work/t410_notri.o: $(SYSTEM_DIR)/t410_notri.vhd \
work/t400_opt_pack-p.o \
work/t400_core_comp_pack-p.o \
work/t400_tech_comp_pack-p.o
$(ANALYZE) $<
work/t410_notri-c.o: $(SYSTEM_DIR)/t410_notri-c.vhd \
work/t400_core-c.o \
work/generic_ram-c.o \
work/t410_rom-lpm-c.o \
work/t400_por-c.o \
work/t410_notri.o
$(ANALYZE) $<
work/t400_system_comp_pack-p.o: $(SYSTEM_DIR)/t400_system_comp_pack-p.vhd
$(ANALYZE) $<
work/t411.o: $(SYSTEM_DIR)/t411.vhd \
work/t400_system_comp_pack-p.o
$(ANALYZE) $<
work/t411-c.o: $(SYSTEM_DIR)/t411-c.vhd \
work/t410_notri-c.o \
work/t411.o
$(ANALYZE) $<
#
##############################################################################
##############################################################################
# Testbenches
#
work/lpm_rom.o: $(BENCH_DIR)/lpm_rom.vhd
$(ANALYZE) $<
work/lpm_ram_dq.o: $(BENCH_DIR)/lpm_ram_dq.vhd
$(ANALYZE) $<
work/t410_rom-lpm-a.o: $(BENCH_DIR)/t410_rom-lpm-a.vhd \
work/t410_rom-e.o
$(ANALYZE) $<
work/t410_rom-lpm-c.o: $(BENCH_DIR)/t410_rom-lpm-c.vhd \
work/lpm_rom.o \
work/t410_rom-lpm-a.o
$(ANALYZE) $<
work/tb_core.o: $(BENCH_DIR)/tb_core.vhd \
work/t400_opt_pack-p.o \
work/t400_core_comp_pack-p.o
$(ANALYZE) $<
work/tb_core-c.o: $(BENCH_DIR)/tb_core-c.vhd \
work/t400_core-c.o \
work/lpm_ram_dq.o \
work/tb_core.o
$(ANALYZE) $<
work/tb_t411.o: $(BENCH_DIR)/tb_t411.vhd \
work/t400_opt_pack-p.o \
work/t400_system_comp_pack-p.o
$(ANALYZE) $<
work/tb_t411-c.o: $(BENCH_DIR)/tb_t411-c.vhd \
work/t411-c.o \
work/tb_t411.o
$(ANALYZE) $<
##############################################################################
.PHONY: elaborate
elaborate: tb_core_behav_c0 tb_t411_behav_c0
tb_core_behav_c0: work/tb_core-c.o
$(ELABORATE) $@
tb_t411_behav_c0: work/tb_t411-c.o
$(ELABORATE) $@
.PHONY: analyze
analyze: work work/tb_core-c.o work/tb_t411-c.o
.PHONY: clean
clean:
rm -rf *~ UNUSED *hex \
tb_core_behav_c0 \
tb_t411_behav_c0 \
work
Go to most recent revision | Compare with Previous | Blame | View Log