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

Subversion Repositories lateq

[/] [lateq/] [trunk/] [hdl_single_type/] [makefile] - Blame information for rev 4

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

Line No. Rev Author Line
1 2 wzab
STD=synopsys
2
VSTD=93c
3
ENTITY=ex1_proc_tb
4
RUN_OPTIONS= --stop-time=2900ns --wave=${ENTITY}.ghw
5
#RUN_OPTIONS=  --wave=${ENTITY}.ghw
6
SOURCES = \
7
  src/lateq_pkg.vhd \
8
  src/lateq_read_pkg.vhd \
9
  src/ex1_pkg.vhd \
10
  src/ex1_trees_pkg.vhd \
11
  src/max_finder_1st.vhd \
12
  src/max_finder.vhd \
13
  src/tree_adder_1st.vhd \
14
  src/tree_adder.vhd \
15
  src/data_sel.vhd \
16
  src/lateq.vhd \
17
  src/ex1_proc.vhd \
18
  src/ex1_proc_tb.vhd \
19
 
20
OBJECTS=$(SOURCES:.vhd=.o)
21
 
22
all: $(OBJECTS)
23
 
24
%.o : %.vhd
25
        ghdl -a -g -C --workdir=comp --std=${VSTD} --ieee=${STD} $<
26
 
27
${ENTITY}.ghw: ${ENTITY}
28
        ./${ENTITY} --wave=${ENTITY}.ghw  ${RUN_OPTIONS} --stop-time=100000ns
29
 
30
reader:   ${ENTITY} ${ENTITY}.ghw
31
        gtkwave ${ENTITY}.ghw ${ENTITY}.sav
32
 
33
${ENTITY}: $(SOURCES:.vhd=.o)
34
        ghdl -e -g --mb-comments --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
35
 
36
# Create initial configuration
37
initial:
38
        rm -f /tmp/latrep.txt
39
        $(MAKE) -C src
40
# Final simulation
41
final:
42
        echo 1 > /tmp/lateq_mode.txt
43
        $(MAKE) ${ENTITY}.ghw
44
# Synchronize
45
synchro:
46
        echo 0 > /tmp/lateq_mode.txt
47
        rm -f /tmp/latrep.txt
48
        $(MAKE) -C src
49
        $(MAKE) ${ENTITY}.ghw
50
        $(MAKE) -C src
51
        $(MAKE) ${ENTITY}.ghw
52
clean:
53
        rm -f comp/* *.o *.vcd *.ghw events* ${ENTITY}
54
 

powered by: WebSVN 2.1.0

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