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

Subversion Repositories yahamm

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 5 to Rev 6
    Reverse comparison

Rev 5 → Rev 6

/yahamm/trunk/sim/rtl_sim/bin/Makefile
0,0 → 1,38
# 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: yahamm_tb0 yahamm_tb1 yahamm_tb2 yahamm_tb3
@for f in $^ ;do \
./$$f --vcdgz=../out/$$f.vcdgz; \
done
 
view_%: yahamm_%
gunzip -c ../out/$<.vcdgz | $(VIEWER) --vcd
 
clean:
@ghdl --remove $(GHDLFLAGS)
@rm -f ../../../sim/rtl_sim/out/*.vcdgz

powered by: WebSVN 2.1.0

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