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

Subversion Repositories lateq

[/] [lateq/] [trunk/] [hdl_single_type/] [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/lateq.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}

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.