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

Subversion Repositories uart16750

[/] [uart16750/] [trunk/] [sim/] [rtl_sim/] [run/] [Makefile] - Blame information for rev 17

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

Line No. Rev Author Line
1 12 hasw
#
2
# Makefile for ghdl simulation
3
#
4
 
5
# Programs
6
GHDL = ghdl
7
PERL = perl
8
 
9
# Directories
10
SRCDIR = vhdl
11
TBDIR  = tbench
12
SIMDIR = sim
13
 
14
# UART16750 sources
15
SRC =  slib_clock_div.vhd
16
SRC += slib_counter.vhd
17
SRC += slib_edge_detect.vhd
18
SRC += slib_fifo.vhd
19
SRC += slib_input_filter.vhd
20
SRC += slib_input_sync.vhd
21
SRC += slib_mv_filter.vhd
22
SRC += uart_baudgen.vhd
23
SRC += uart_interrupt.vhd
24
SRC += uart_receiver.vhd
25
SRC += uart_transmitter.vhd
26
SRC += uart_16750.vhd
27
 
28
# Testbench source
29
TBSRC =  txt_util.vhd
30
TBSRC += uart_package.vhd
31
TBSRC += uart_transactor.vhd
32
 
33
# Testbench stimuli and log
34
TBSTIMGEN = $(SIMDIR)/uart_test_stim.pl
35
TBSTIMDAT = $(SIMDIR)/uart_stim.dat
36
TBLOG     = $(SIMDIR)/uart_log.txt
37
TBVCD     = $(SIMDIR)/uart_log.vcd
38
 
39
# Simulation entity and options
40
SIMPROG = uart_transactor
41
SIMOPTS = --stop-time=140ms
42
 
43
all: $(SIMPROG)
44
 
45
$(TBSTIMDAT): $(TBSTIMGEN)
46
                          $(PERL) $^ > $@
47
 
48
$(SIMPROG): $(addprefix $(SRCDIR)/,$(SRC)) $(addprefix $(TBDIR)/,$(TBSRC))
49
                        $(GHDL) -a $^
50
                        $(GHDL) -e $@
51
 
52
sim:            $(SIMPROG) $(TBSTIMDAT)
53
                        $(GHDL) -r $(SIMPROG) $(SIMOPTS)
54
 
55
vcd:            $(SIMPROG) $(TBSTIMDAT)
56
                        $(GHDL) -r $(SIMPROG) $(SIMOPTS) --vcd=$(TBVCD)
57
 
58
clean:
59
                        $(GHDL) --clean
60
                        rm -f $(TBSTIMDAT) $(TBVCD)
61
 
62
.PHONY:         clean sim vcd

powered by: WebSVN 2.1.0

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