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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Makefile] - Rev 46

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

SHELL=/bin/sh
MAKE=make
CUR_DIR=$(shell pwd)
home=$(CUR_DIR)/..
design=socgen


all: run_sims build_fpgas check_sims check_fpgas


.PHONY install:
install:
        (\
        cp ./tools/bin/* ~/bin;\
        chmod 755 ~/bin/* ;\
        )



.PHONY build_hw:
build_hw: 
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
        echo "################################################"; \
        echo "build_hw: $$PROJECT ####"; echo; \
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
        ${MAKE} group_build_hw;\
        done; \

.PHONY build_sw:
build_sw: build_hw
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
        echo "################################################"; \
        echo "build_sw: $$PROJECT ####"; echo; \
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
        ${MAKE} group_build_sw;\
        done; \

.PHONY run_sims:
run_sims: build_sw
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
        echo "################################################"; \
        echo "run_sims: $$PROJECT ####"; echo; \
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
        ${MAKE} group_run_sims;\
        done; \

.PHONY build_fpgas:
build_fpgas:
        @for PROJECT in `ls $(CUR_DIR)/projects`; do \
        echo "################################################"; \
        echo "build_fpgas: $$PROJECT ####"; echo; \
        cd ${home}/${design}_cmp/projects/$$PROJECT/bin;\
        ${MAKE} group_build_fpgas;\
        done; \

.PHONY check_sims:
check_sims: 
        (\
        cd ${home}/${design}_cmp  ;\
        echo " number of logic sims run";\
        find . | grep dut| grep -v children| grep logic | wc -l  ;\
        echo " number of sims that finished";\
        find . | grep _sim.log | xargs grep PASSED $1 | grep logic| wc -l ;\
        echo " number of warnings";\
        find . | grep _sim.log | xargs grep WARNING $1 |grep logic | wc -l ;\
        echo " number of errors";\
        find . | grep _sim.log | xargs grep ERROR $1 |grep logic | wc -l ;\
        echo " number of pic_micro sims run";\
        find . | grep dut| grep -v children| grep pic_micro | wc -l  ;\
        echo " number of sims that finished";\
        find . | grep _sim.log | xargs grep PASSED $1 | grep pic_micro| wc -l ;\
        echo " number of warnings";\
        find . | grep _sim.log | xargs grep WARNING $1 |grep pic_micro | wc -l ;\
        echo " number of errors";\
        find . | grep _sim.log | xargs grep ERROR $1 |grep pic_micro | wc -l ;\
        echo " number of msp430 sims run";\
        find . | grep dut| grep -v children| grep msp430 | wc -l  ;\
        echo " number of sims that finished";\
        find . | grep _sim.log | xargs grep PASSED $1 | grep msp430| wc -l ;\
        echo " number of warnings";\
        find . | grep _sim.log | xargs grep WARNING $1 |grep msp430 | wc -l ;\
        echo " number of errors";\
        find . | grep _sim.log | xargs grep ERROR $1 |grep msp430 | wc -l ;\
        echo " number of M6502 sims run";\
        find . | grep dut| grep -v children| grep Mos6502 | wc -l  ;\
        echo " number of sims that finished";\
        find . | grep _sim.log | xargs grep PASSED $1 | grep Mos6502| wc -l ;\
        echo " number of warnings";\
        find . | grep _sim.log | xargs grep WARNING $1 |grep Mos6502 | wc -l ;\
        echo " number of errors";\
        find . | grep _sim.log | xargs grep ERROR $1 |grep Mos6502 | wc -l ;\
        echo " number of open sims run";\
        find . | grep dut| grep -v children| grep open | wc -l  ;\
        echo " number of sims that finished";\
        find . | grep _sim.log | xargs grep PASSED $1 | grep open| wc -l ;\
        echo " number of warnings";\
        find . | grep _sim.log | xargs grep WARNING $1 |grep open | wc -l ;\
        echo " number of errors";\
        find . | grep _sim.log | xargs grep ERROR $1 |grep open | wc -l ;\
        echo " number of wish sims run";\
        find . | grep dut| grep -v children| grep wish | wc -l  ;\
        echo " number of sims that finished";\
        find . | grep _sim.log | xargs grep PASSED $1 | grep wish| wc -l ;\
        echo " number of warnings";\
        find . | grep _sim.log | xargs grep WARNING $1 |grep wish | wc -l ;\
        echo " number of errors";\
        find . | grep _sim.log | xargs grep ERROR $1 |grep wish | wc -l ;\
         )


.PHONY check_fpgas:
check_fpgas: 
        (\
        cd ${home}/${design}_cmp  ;\
        echo " number of fpgas";\
        find . | grep def_file | grep -v children  | wc -l   ;\
        echo " number that finished";\
        find . | grep Board_Design_jtag.bit |wc -l  ;\
         )






















Go to most recent revision | 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.