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

Subversion Repositories plb2wbbridge

[/] [plb2wbbridge/] [trunk/] [systems/] [test_system_sim/] [32bit_on_128bitPLB_syn/] [simulation/] [test_cases/] [simple_line_rw/] [Makefile] - Rev 2

Compare with Previous | Blame | View Log

CUR_DIR=$(shell pwd)
SIM_DIR=$(CUR_DIR)/../..
SIM_BIN_DIR=$(SIM_DIR)/sim_bin
RESULT_DIR=$(CUR_DIR)/result
VSIM=vsim -quiet -c -assertfile $(RESULT_DIR)/assert.log -errorfile $(RESULT_DIR)/error.log -l $(RESULT_DIR)/simulation.log -do

TEST_CASE_TARGETS=./result/wave.wlf





sim: $(TEST_CASE_TARGETS)


$(TEST_CASE_TARGETS): $(SIM_BIN_DIR)/modelsim.ini $(COMPILE_COMPONENTS) transfers.do 
        @$(MAKE) link
        @mkdir -p result
        @echo "Run vsim ....."
        @$(VSIM) "do sim.do; exit" > /dev/null
        @echo ".... done! Result in $(RESULT_DIR)"



#
#       we first do `unlink`. If there are no links,  this does nothing.
#       If there are links,  we unlink it and link it again
link: unlink
        @ln -s `find ../../sim_bin -maxdepth 1` ./


unlink:
        @for file in $(shell find . -maxdepth 1 -type l); do \
        unlink $$file;  \
        done;

transfers.do: transfers.bfl
        xilbfc transfers.bfl



view:
        vsim -do "vsim -view result/wave.wlf; view wave; do wave.do"


clean: unlink 
        rm -rf \
        xilbfc.log \
        transfers.do \
        log \
        result


cleansim:
        rm -rf result

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.