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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fpga/] [mc-vl/] [Makefile] - Diff between revs 309 and 310

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 309 Rev 310
Line 2... Line 2...
# Makefile for multicycle simulation of ECO32, using Verilator
# Makefile for multicycle simulation of ECO32, using Verilator
#
#
 
 
BUILD = ../../build
BUILD = ../../build
 
 
 
# set TRACE to '--trace' if VCD traces should be generated
 
# see the 'show' target below
 
 
SRCS = eco32test.v \
SRCS = eco32test.v \
       src/eco32/eco32.v \
       src/eco32/eco32.v \
       src/clk_rst/clk_rst.v \
       src/clk_rst/clk_rst.v \
       src/cpu/cpu.v \
       src/cpu/cpu.v \
       src/cpu/cpu_bus.v \
       src/cpu/cpu_bus.v \
Line 16... Line 19...
       src/dsp/dsp.v \
       src/dsp/dsp.v \
       src/kbd/kbd.v \
       src/kbd/kbd.v \
       src/ser/ser.v
       src/ser/ser.v
BIN = Veco32test
BIN = Veco32test
 
 
.PHONY:         all install run clean
.PHONY:         all install run show clean
 
 
all:
all:
 
 
install:
install:
 
 
$(BIN):         $(SRCS) main.cpp
$(BIN):         $(SRCS) main.cpp
                verilator -Wall -Wno-style -Wno-CASEX -Wno-CASEOVERLAP \
                verilator -Wall -Wno-style -Wno-CASEX -Wno-CASEOVERLAP \
                  --cc $(SRCS) --exe main.cpp
                  $(TRACE) --cc $(SRCS) --exe main.cpp
                make -C obj_dir -j -f $(BIN).mk $(BIN)
                make -C obj_dir -j -f $(BIN).mk $(BIN)
                cp obj_dir/$(BIN) .
                cp obj_dir/$(BIN) .
 
 
run:            $(BIN)
run:            $(BIN)
                @if [ ! -r duration.dat ] ; then \
                @if [ ! -r duration.dat ] ; then \
Line 51... Line 54...
                  echo "cp defdata/ser1.dat ." ; \
                  echo "cp defdata/ser1.dat ." ; \
                  cp defdata/ser1.dat . ; \
                  cp defdata/ser1.dat . ; \
                fi
                fi
                ./$(BIN)
                ./$(BIN)
 
 
 
show:
 
                $(MAKE) run TRACE='--trace'
 
                gtkwave dump.vcd eco32test.cfg
 
 
clean:
clean:
                rm -f *~ $(BIN)
                rm -f *~ $(BIN) dump.vcd
                rm -f duration.dat rom.dat
                rm -f duration.dat rom.dat
                rm -f kbd.dat dsp.out
                rm -f kbd.dat dsp.out
                rm -f ser0.dat ser0.out
                rm -f ser0.dat ser0.out
                rm -f ser1.dat ser1.out
                rm -f ser1.dat ser1.out
                rm -f src/*~
                rm -f src/*~

powered by: WebSVN 2.1.0

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