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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Makefile] - Blame information for rev 14

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

Line No. Rev Author Line
1 6 jt_eaton
SHELL=/bin/sh
2
MAKE=make
3
CUR_DIR=$(shell pwd)
4
home=$(CUR_DIR)/..
5
design=socgen
6
 
7
 
8
all: run_sims build_fpgas check_sims check_fpgas
9
 
10
 
11 10 jt_eaton
.PHONY install:
12
install:
13
        (\
14
        cp ./bin/* ~/bin;\
15
        chmod 755 ~/bin/* ;\
16
        )
17 6 jt_eaton
 
18
 
19
 
20
.PHONY build_hw:
21
build_hw:
22
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
23
        echo "################################################"; \
24
        echo "build_hw: $$PROJECT ####"; echo; \
25
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
26
        ${MAKE} group_build_hw;\
27
        done; \
28
 
29
.PHONY build_sw:
30
build_sw: build_hw
31
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
32
        echo "################################################"; \
33
        echo "build_sw: $$PROJECT ####"; echo; \
34
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
35
        ${MAKE} group_build_sw;\
36
        done; \
37
 
38
.PHONY run_sims:
39
run_sims: build_sw
40
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
41
        echo "################################################"; \
42
        echo "run_sims: $$PROJECT ####"; echo; \
43
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
44
        ${MAKE} group_run_sims;\
45
        done; \
46
 
47
.PHONY build_fpgas:
48
build_fpgas:
49
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
50
        echo "################################################"; \
51
        echo "build_fpgas: $$PROJECT ####"; echo; \
52
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
53
        ${MAKE} group_build_fpgas;\
54
        done; \
55
 
56
.PHONY check_sims:
57
check_sims:
58
        (\
59
        cd ${home}/${design}_cmp  ;\
60
        echo " number of sims run";\
61
        find . | grep dut| grep -v children | wc -l  ;\
62
        echo " number of sims that finished";\
63
        find . | grep _sim.log | xargs grep PASSED $1 | wc -l ;\
64
        echo " number of warnings";\
65
        find . | grep _sim.log | xargs grep WARNING $1 | wc -l ;\
66
        echo " number of errors";\
67
        find . | grep _sim.log | xargs grep ERROR $1 | wc -l ;\
68
         )
69
 
70
 
71
.PHONY check_fpgas:
72
check_fpgas:
73
        (\
74
        cd ${home}/${design}_cmp  ;\
75
        echo " number of fpgas";\
76
        find . | grep def_file  | wc    ;\
77
        echo " number that finished";\
78
        find . | grep bitstream.svf |wc   ;\
79
         )
80
 
81
 
82
 
83
 
84
 
85
 
86
 
87
 
88
 
89
 
90
 
91
 
92
 
93
 
94
 
95
 
96
 
97
 
98
 
99
 
100
 
101
 

powered by: WebSVN 2.1.0

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