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

Subversion Repositories yahamm

[/] [yahamm/] [trunk/] [sim/] [rtl_sim/] [bin/] [Makefile] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 ndesimone
# This Makefile requires that you have ghdl compiled with gcc backend
2
# (objects files *.o and executable targets don't make sense
3
# otherwise).
4
#
5
# Compile matrix_pkg yahamm_pkg in the main root before compiling he
6
# tests-benches.
7
 
8
 
9
VIEWER=gtkwave
10
LIBPREFIX=../run/libs
11
 
12
VPATH = $(LIBPREFIX)/yahamm:../../../rtl/vhdl:../../../bench/vhdl
13
GHDLFLAGS=--std=08 --workdir=$(LIBPREFIX)/yahamm --work=yahamm
14
 
15
all: yahamm_enc.o yahamm_dec.o yahamm_tb0 yahamm_tb1 yahamm_tb2 yahamm_tb3
16
 
17
yahamm_dec.o: matrix_pkg.o yahamm_pkg.o
18
yahamm_enc.o: matrix_pkg.o yahamm_pkg.o
19
yahamm_tb0 yahamm_tb1 yahamm_tb2 yahamm_tb3: yahamm_dec.o yahamm_enc.o
20
 
21
%: %.o
22
        ghdl -e $(GHDLFLAGS) $@
23
 
24
%.o: %.vhd
25
        @mkdir -p $(LIBPREFIX)/yahamm
26
        ghdl -a $(GHDLFLAGS) $<
27
 
28 7 ndesimone
simulate: simulate_tb0 simulate_tb1 simulate_tb2 simulate_tb3
29 6 ndesimone
 
30 7 ndesimone
simulate_%: yahamm_%
31
        ./$<  --vcdgz=../out/$<.vcdgz
32
 
33 6 ndesimone
view_%: yahamm_%
34
        gunzip -c ../out/$<.vcdgz | $(VIEWER) --vcd
35
 
36
clean:
37
        @ghdl --remove $(GHDLFLAGS)
38
        @rm -f ../../../sim/rtl_sim/out/*.vcdgz
39 7 ndesimone
 
40
.PHONY: simulate clean view_%

powered by: WebSVN 2.1.0

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