head	1.15;
access;
symbols
	rel_1_1:1.15
	rel_1_0:1.14
	rel_0_6_1_beta:1.11
	rel_0_6__beta:1.11
	rel_0_6_beta:1.11
	rel_0_5_beta:1.9
	rel_0_4_beta:1.9
	rel_0_3_beta:1.9
	rel_0_2_beta:1.8
	rel_0_1_beta:1.7;
locks; strict;
comment	@# @;


1.15
date	2008.04.29.21.17.16;	author arniml;	state Exp;
branches;
next	1.14;
commitid	5e14817905a4567;

1.14
date	2006.07.14.01.08.45;	author arniml;	state Exp;
branches;
next	1.13;
commitid	5c5144b6ee9b4567;

1.13
date	2006.06.21.01.14.52;	author arniml;	state Exp;
branches;
next	1.12;
commitid	60e544989d8a4567;

1.12
date	2006.03.25.17.21.27;	author arniml;	state Exp;
branches;
next	1.11;
commitid	683144257c0f4567;

1.11
date	2004.12.03.19.41.34;	author arniml;	state Exp;
branches;
next	1.10;

1.10
date	2004.12.02.07.12.04;	author arniml;	state Exp;
branches;
next	1.9;

1.9
date	2004.06.01.20.39.55;	author arniml;	state Exp;
branches;
next	1.8;

1.8
date	2004.05.16.15.36.39;	author arniml;	state Exp;
branches;
next	1.7;

1.7
date	2004.04.25.16.22.32;	author arniml;	state Exp;
branches;
next	1.6;

1.6
date	2004.04.24.23.50.16;	author arniml;	state Exp;
branches;
next	1.5;

1.5
date	2004.04.24.19.53.10;	author arniml;	state Exp;
branches;
next	1.4;

1.4
date	2004.04.18.19.03.26;	author arniml;	state Exp;
branches;
next	1.3;

1.3
date	2004.03.26.22.30.46;	author arniml;	state Exp;
branches;
next	1.2;

1.2
date	2004.03.25.22.03.47;	author arniml;	state Exp;
branches;
next	1.1;

1.1
date	2004.03.24.23.21.07;	author arniml;	state Exp;
branches;
next	;


desc
@@


1.15
log
@update to new mnemonic decoder
@
text
@##############################################################################
#
# Tool-specific Makefile for the GHDL compiler.
#
# It sets all variables needed for VHDL code compilation with Makefile.hier.
#
#
# Copyright (c) 2004-2006 Arnim Laeuger (arniml@@opencores.org)
#
# All rights reserved
#
##############################################################################

# Generate diagnosis files for line coverage
#GCOV = -Wc,-ftest-coverage -Wc,-fprofile-arcs
GCOV =

# In case elaborating/linking throws error messages about undefined references
#GCOV_LINK = -Wl,-lgcov
GCOV_LINK =

LIB_WORK  = ghdl-work

CLEAN     = ghdl --clean --std=87 --workdir=$(LIB_WORK); \
            rm -f tb_*_c0 *.gcno *.gcda *.gcov *.hex UNUSED

ANALYZE   = ghdl -a --std=87 --workdir=$(LIB_WORK) $(GCOV)

ELABORATE = ghdl -e -Wl,-s --std=87 --workdir=$(LIB_WORK) $(GCOV_LINK)

MAKE_LIB  = mkdir -p $(LIB_WORK)


##############################################################################
# The analyze targets
#
tb_t8243_behav_c0 = $(LIB_WORK)/tb_t8243-c.o
tb_t8243 = $(LIB_WORK)/tb_t8243.o
tb_t8048_t8243_behav_c0 = $(LIB_WORK)/tb_t8048_t8243-c.o
tb_t8048_t8243 = $(LIB_WORK)/tb_t8048_t8243.o
t8243_struct_c0 = $(LIB_WORK)/t8243-c.o
t8243 = $(LIB_WORK)/t8243.o
t8243_async_notri_struct_c0 = $(LIB_WORK)/t8243_async_notri-c.o
t8243_async_notri = $(LIB_WORK)/t8243_async_notri.o
t8243_sync_notri_struct_c0 = $(LIB_WORK)/t8243_sync_notri-c.o
t8243_sync_notri = $(LIB_WORK)/t8243_sync_notri.o
t8243_core_rtl_c0 = $(LIB_WORK)/t8243_core-c.o
t8243_core = $(LIB_WORK)/t8243_core.o
t8243_comp_pack = $(LIB_WORK)/t8243_comp_pack-p.o
tb_t8039_behav_c0 = $(LIB_WORK)/tb_t8039-c.o
tb_t8039 = $(LIB_WORK)/tb_t8039.o
tb_t8048_behav_c0 = $(LIB_WORK)/tb_t8048-c.o
tb_t8048 = $(LIB_WORK)/tb_t8048.o
tb_behav_c0 = $(LIB_WORK)/tb-c.o
tb = $(LIB_WORK)/tb.o
if_timing_behav_c0 = $(LIB_WORK)/if_timing-c.o
if_timing = $(LIB_WORK)/if_timing.o
t8048_struct_c0 = $(LIB_WORK)/t8048-c.o
t8048 = $(LIB_WORK)/t8048.o
t8039_struct_c0 = $(LIB_WORK)/t8039-c.o
t8039 = $(LIB_WORK)/t8039.o
t48_system_comp_pack = $(LIB_WORK)/t48_system_comp_pack-p.o
t8039_notri_struct_c0 = $(LIB_WORK)/t8039_notri-c.o
t8039_notri = $(LIB_WORK)/t8039_notri.o
t8048_notri_struct_c0 = $(LIB_WORK)/t8048_notri-c.o
t8048_notri = $(LIB_WORK)/t8048_notri.o
t48_tb_pack = $(LIB_WORK)/t48_tb_pack-p.o
t48_pack = $(LIB_WORK)/t48_pack-p.o
t48_core_struct_c0 = $(LIB_WORK)/t48_core-c.o
t48_core = $(LIB_WORK)/t48_core.o
t48_core_comp_pack = $(LIB_WORK)/t48_core_comp_pack-p.o
t48_comp_pack = $(LIB_WORK)/t48_comp_pack-p.o
lpm_rom = $(LIB_WORK)/lpm_rom.o
t48_rom = $(LIB_WORK)/t48_rom-e.o
t48_rom_lpm_a = $(LIB_WORK)/t48_rom-lpm-a.o
t48_rom_lpm_c0 = $(LIB_WORK)/t48_rom-lpm-c.o
t49_rom = $(LIB_WORK)/t49_rom-e.o
t49_rom_lpm_a = $(LIB_WORK)/t49_rom-lpm-a.o
t49_rom_lpm_c0 = $(LIB_WORK)/t49_rom-lpm-c.o
generic_ram_ena = $(LIB_WORK)/generic_ram_ena.o
generic_ram_ena_rtl_c0 = $(LIB_WORK)/generic_ram_ena-c.o
lpm_ram_dq = $(LIB_WORK)/lpm_ram_dq.o
psw_rtl_c0 = $(LIB_WORK)/psw-c.o
psw = $(LIB_WORK)/psw.o
pmem_ctrl_rtl_c0 = $(LIB_WORK)/pmem_ctrl-c.o
pmem_ctrl_pack = $(LIB_WORK)/pmem_ctrl_pack-p.o
pmem_ctrl = $(LIB_WORK)/pmem_ctrl.o
p2_rtl_c0 = $(LIB_WORK)/p2-c.o
p2 = $(LIB_WORK)/p2.o
p1_rtl_c0 = $(LIB_WORK)/p1-c.o
p1 = $(LIB_WORK)/p1.o
timer_rtl_c0 = $(LIB_WORK)/timer-c.o
timer = $(LIB_WORK)/timer.o
int_rtl_c0 = $(LIB_WORK)/int-c.o
int = $(LIB_WORK)/int.o
dmem_ctrl_rtl_c0 = $(LIB_WORK)/dmem_ctrl-c.o
dmem_ctrl_pack = $(LIB_WORK)/dmem_ctrl_pack-p.o
dmem_ctrl = $(LIB_WORK)/dmem_ctrl.o
decoder_rtl_c0 = $(LIB_WORK)/decoder-c.o
decoder_pack = $(LIB_WORK)/decoder_pack-p.o
decoder = $(LIB_WORK)/decoder.o
db_bus_rtl_c0 = $(LIB_WORK)/db_bus-c.o
db_bus = $(LIB_WORK)/db_bus.o
cond_branch_rtl_c0 = $(LIB_WORK)/cond_branch-c.o
cond_branch_pack = $(LIB_WORK)/cond_branch_pack-p.o
cond_branch = $(LIB_WORK)/cond_branch.o
clock_ctrl_rtl_c0 = $(LIB_WORK)/clock_ctrl-c.o
clock_ctrl = $(LIB_WORK)/clock_ctrl.o
bus_mux_rtl_c0 = $(LIB_WORK)/bus_mux-c.o
bus_mux = $(LIB_WORK)/bus_mux.o
alu_rtl_c0 = $(LIB_WORK)/alu-c.o
alu_pack = $(LIB_WORK)/alu_pack-p.o
alu = $(LIB_WORK)/alu.o
#
##############################################################################


##############################################################################
# The default target for elaboration
#
.PHONY: all
all: elaborate
#
##############################################################################


##############################################################################
# The elaboration targets
#
tb_elab             = tb_behav_c0
tb_t8048_elab       = tb_t8048_behav_c0
tb_t8039_elab       = tb_t8039_behav_c0
tb_t8048_t8243_elab = tb_t8048_t8243_behav_c0
tb_t8243_elab       = tb_t8243_behav_c0
#
##############################################################################


##############################################################################
# Tool-specific elaboration rules
#
$(tb_elab) : $(tb_behav_c0)
	$(ELABORATE) tb_behav_c0

$(tb_t8048_elab) : $(tb_t8048_behav_c0)
	$(ELABORATE) tb_t8048_behav_c0

$(tb_t8039_elab) : $(tb_t8039_behav_c0)
	$(ELABORATE) tb_t8039_behav_c0

$(tb_t8048_t8243_elab) : $(tb_t8048_t8243_behav_c0)
	$(ELABORATE) tb_t8048_t8243_behav_c0

$(tb_t8243_elab) : $(tb_t8243_behav_c0)
	$(ELABORATE) tb_t8243_behav_c0

.PHONY: elaborate
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab) \
           $(tb_t8048_t8243_elab) $(tb_t8243_elab)
#
##############################################################################


include Makefile.hier
@


1.14
log
@added t8243 core plus related testbenches
@
text
@a93 4
opc_table_rtl_c0 = $(LIB_WORK)/opc_table-c.o
opc_table = $(LIB_WORK)/opc_table.o
opc_decoder_rtl_c0 = $(LIB_WORK)/opc_decoder-c.o
opc_decoder = $(LIB_WORK)/opc_decoder.o
@


1.13
log
@update to new memory concept
@
text
@d37 13
d134 5
a138 3
tb_elab       = tb_behav_c0
tb_t8048_elab = tb_t8048_behav_c0
tb_t8039_elab = tb_t8039_behav_c0
d155 6
d162 2
a163 1
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab)
@


1.12
log
@simplifications
@
text
@d25 1
a25 1
            rm -f tb_*_c0 *.gcno *.gcda *.gcov UNUSED
a59 3
syn_rom = $(LIB_WORK)/syn_rom-e.o
syn_rom-lpm-a = $(LIB_WORK)/syn_rom-lpm-a.o
syn_rom_lpm_c0 = $(LIB_WORK)/syn_rom-lpm-c.o
d61 8
a68 3
syn_ram = $(LIB_WORK)/syn_ram-e.o
syn_ram-lpm-a = $(LIB_WORK)/syn_ram-lpm-a.o
syn_ram_lpm_c0 = $(LIB_WORK)/syn_ram-lpm-c.o
@


1.11
log
@added t8039_notri hierarchy
@
text
@d8 1
a8 1
# Copyright (c) 2004, Arnim Laeuger (arniml@@opencores.org)
d29 1
a29 1
ELABORATE = ghdl -e --std=87 --workdir=$(LIB_WORK) $(GCOV_LINK)
d130 1
a130 2
	$(ELABORATE) tb_behav_c0; \
	strip tb_behav_c0
d133 1
a133 2
	$(ELABORATE) tb_t8048_behav_c0; \
	strip tb_t8048_behav_c0
d136 1
a136 2
	$(ELABORATE) tb_t8039_behav_c0; \
	strip tb_t8039_behav_c0
@


1.10
log
@added hierarchy t8048_notri and components package for t48 systems
@
text
@d50 2
@


1.9
log
@adapt to GHDL 0.12 / gcc 3.4.0
@
text
@d49 3
@


1.8
log
@add support for line coverage evaluation with gcov
@
text
@d18 3
d24 2
a25 1
CLEAN     = ghdl --clean --std=87 --workdir=$(LIB_WORK); rm -f tb_*_c0 *.bb *.bbg *.da *.gcov
d29 1
a29 1
ELABORATE = ghdl -e --std=87 --workdir=$(LIB_WORK)
@


1.7
log
@add if_timing module
@
text
@d14 4
d21 1
a21 1
CLEAN     = ghdl --clean --std=87 --workdir=$(LIB_WORK); rm -f tb_*_c0
d23 1
a23 1
ANALYZE   = ghdl -a --std=87 --workdir=$(LIB_WORK)
@


1.6
log
@move from std_logic_arith to numeric_std
@
text
@d35 2
@


1.5
log
@remove obsolete design unit
@
text
@d19 1
a19 1
ANALYZE   = ghdl -a --ieee=synopsys --std=87 --workdir=$(LIB_WORK)
d21 1
a21 1
ELABORATE = ghdl -e --ieee=synopsys --std=87 --workdir=$(LIB_WORK)
@


1.4
log
@add T8039 and its testbench
@
text
@a82 2
clk_gate_rtl_c0 = $(LIB_WORK)/clk_gate-c.o
clk_gate = $(LIB_WORK)/clk_gate.o
d88 9
@


1.3
log
@fix header
@
text
@d17 1
a17 1
CLEAN     = ghdl --clean --std=87 --workdir=$(LIB_WORK)
d29 2
d37 2
d97 3
a99 2
tb_elab = $(LIB_WORK)/e~tb_behav_c0.o
tb_t8048_elab = $(LIB_WORK)e~tb_t8048_behav_c0.o
d115 4
d120 1
a120 1
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab)
@


1.2
log
@add description
@
text
@d1 1
a1 1
#######################################################################################
d5 1
a5 4
# The following environment variables should be set from the shell:
#
#  SOURCE_DIR : VHDL source base directory
#               <local path>/t48/rtl/vhdl
@


1.1
log
@initial check-in
@
text
@d1 17
d28 10
a37 6
tb_t8048_behav_c0=$(LIB_WORK)/tb_t8048-c.o
tb_t8048=$(LIB_WORK)/tb_t8048.o
tb_behav_c0=$(LIB_WORK)/tb-c.o
tb=$(LIB_WORK)/tb.o
t8048_struct_c0=$(LIB_WORK)/t8048-c.o
t8048=$(LIB_WORK)/t8048.o
d89 2
a91 2
tb_elab=$(LIB_WORK)/e~tb_behav_c0.o
tb_t8048_elab=$(LIB_WORK)e~tb_t8048_behav_c0.o
d93 12
d115 3
@

