URL
https://opencores.org/ocsvn/lateq/lateq/trunk
Subversion Repositories lateq
[/] [lateq/] [trunk/] [hdl_various_types/] [makefile] - Rev 2
Compare with Previous | Blame | View Log
STD=synopsys
VSTD=93c
ENTITY=ex1_proc_tb
RUN_OPTIONS= --stop-time=2900ns --wave=${ENTITY}.ghw
#RUN_OPTIONS= --wave=${ENTITY}.ghw
SOURCES = \
src/lateq_pkg.vhd \
src/lateq_read_pkg.vhd \
src/ex1_pkg.vhd \
src/ex1_trees_pkg.vhd \
src/max_finder_1st.vhd \
src/max_finder.vhd \
src/tree_adder_1st.vhd \
src/tree_adder.vhd \
src/data_sel.vhd \
src/ex1_eq_mf.vhd \
src/ex1_eq_calc.vhd \
src/ex1_proc.vhd \
src/ex1_proc_tb.vhd \
OBJECTS=$(SOURCES:.vhd=.o)
all: $(OBJECTS)
%.o : %.vhd
ghdl -a -g -C --workdir=comp --std=${VSTD} --ieee=${STD} $<
${ENTITY}.ghw: ${ENTITY}
./${ENTITY} --wave=${ENTITY}.ghw ${RUN_OPTIONS} --stop-time=100000ns
reader: ${ENTITY} ${ENTITY}.ghw
gtkwave ${ENTITY}.ghw ${ENTITY}.sav
${ENTITY}: $(SOURCES:.vhd=.o)
ghdl -e -g --mb-comments --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
# Create initial configuration
initial:
rm -f /tmp/latrep.txt
$(MAKE) -C src
# Final simulation
final:
echo 1 > /tmp/lateq_mode.txt
$(MAKE) ${ENTITY}.ghw
# Synchronize
synchro:
echo 0 > /tmp/lateq_mode.txt
rm -f /tmp/latrep.txt
$(MAKE) -C src
$(MAKE) ${ENTITY}.ghw
$(MAKE) -C src
$(MAKE) ${ENTITY}.ghw
clean:
rm -f comp/* *.o *.vcd *.ghw events* ${ENTITY}