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

Subversion Repositories plb2wbbridge

[/] [plb2wbbridge/] [trunk/] [systems/] [test_system_sim/] [wb_retries/] [simulation/] [test_cases/] [simple_retries/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 feddischso
CUR_DIR=$(shell pwd)
2
SIM_DIR=$(CUR_DIR)/../..
3
SIM_BIN_DIR=$(SIM_DIR)/sim_bin
4
RESULT_DIR=$(CUR_DIR)/result
5
VSIM=vsim -quiet -c  -assertfile $(RESULT_DIR)/assert.log -errorfile $(RESULT_DIR)/error.log -l $(RESULT_DIR)/simulation.log -do
6
 
7
TEST_CASE_TARGETS=./result/wave.wlf
8
 
9
 
10
 
11
 
12
 
13
sim: $(TEST_CASE_TARGETS)
14
 
15
 
16
$(TEST_CASE_TARGETS): $(SIM_BIN_DIR)/modelsim.ini $(COMPILE_COMPONENTS) transfers.do
17
        @$(MAKE) link
18
        @mkdir -p result
19
        @echo "Run vsim ....."
20
        @$(VSIM) "do sim.do; exit" > /dev/null
21
        @echo ".... done! Result in $(RESULT_DIR)"
22
 
23
 
24
 
25
#
26
#       we first do `unlink`. If there are no links,  this does nothing.
27
#       If there are links,  we unlink it and link it again
28
link: unlink
29
        @ln -s `find ../../sim_bin -maxdepth 1` ./
30
 
31
 
32
unlink:
33
        @for file in $(shell find . -maxdepth 1 -type l); do \
34
        unlink $$file;  \
35
        done;
36
 
37
transfers.do: transfers.bfl
38
        xilbfc transfers.bfl
39
 
40
 
41
 
42
view:
43
        vsim -do "vsim -view result/wave.wlf; view wave; do wave.do"
44
 
45
 
46
clean: unlink
47
        rm -rf \
48
        xilbfc.log \
49
        transfers.do \
50
        log \
51
        result
52
 
53
 
54
cleansim:
55
        rm -rf result

powered by: WebSVN 2.1.0

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