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

Subversion Repositories yahamm

[/] [yahamm/] [trunk/] [sim/] [rtl_sim/] [bin/] [Makefile] - Rev 11

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

# This Makefile requires that you have ghdl compiled with gcc backend
# (objects files *.o and executable targets don't make sense
# otherwise).
#
# Compile matrix_pkg yahamm_pkg in the main root before compiling he
# tests-benches.


VIEWER=gtkwave
LIBPREFIX=../run/libs

VPATH = $(LIBPREFIX)/yahamm:../../../rtl/vhdl:../../../bench/vhdl
GHDLFLAGS=--std=08 --workdir=$(LIBPREFIX)/yahamm --work=yahamm

all: yahamm_enc.o yahamm_dec.o yahamm_tb0 yahamm_tb1 yahamm_tb2 yahamm_tb3

yahamm_dec.o: matrix_pkg.o yahamm_pkg.o
yahamm_enc.o: matrix_pkg.o yahamm_pkg.o
yahamm_tb0 yahamm_tb1 yahamm_tb2 yahamm_tb3: yahamm_dec.o yahamm_enc.o

%: %.o
        ghdl -e $(GHDLFLAGS) $@

%.o: %.vhd
        @mkdir -p $(LIBPREFIX)/yahamm
        ghdl -a $(GHDLFLAGS) $<

simulate: simulate_tb0 simulate_tb1 simulate_tb2 simulate_tb3

simulate_%: yahamm_%
        ./$<  --vcdgz=../out/$<.vcdgz

view_%: yahamm_%
        gunzip -c ../out/$<.vcdgz | $(VIEWER) --vcd

clean:
        @ghdl --remove $(GHDLFLAGS)
        @rm -f ../../../sim/rtl_sim/out/*.vcdgz

.PHONY: simulate clean view_%

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

powered by: WebSVN 2.1.0

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